/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

/* --- General Styling --- */
body {
    font-family: 'Inter', sans-serif;
}

/* --- Hero Banner (Index Page) --- */
#hero-banner {
    background: url('./Images/Banner.png') center/cover no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

/* --- Navigation Links --- */
.nav-link {
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    color: #fef3c7; /* This is a fallback color for better visibility */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #facc15; /* amber-500 */
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #facc15; /* amber-500 */
}

/* --- Category Card (Index Page) --- */
.category-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.category-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- Product Card (Index & Shop Pages) --- */
.product-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f97316;
}

/* --- Add to Cart Button --- */
.add-to-cart-btn {
    margin-top: 1rem;
    background-color: #881337;
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn:hover {
    background-color: #be123c;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* --- Social Media Icons --- */
.social-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.social-image-link:hover .social-image {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- Animations --- */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* For the checkout page */
@keyframes cart-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: cart-pulse 1.5s infinite ease-in-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    #hero-banner {
        min-height: 200px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-card {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .add-to-cart-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #hero-banner {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .product-image {
        height: 150px;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}