
:root {
    --primary:rgb(18, 25, 56);
    --primary-dark:rgb(19, 16, 75);
    --accent: #f72585;
    --light: #f8f9fa;
    --primary-color: #fa561b;
    --dark: #212529;
    --success: #4bb543;
    --warning: #f8961e;
    --text: #2b2d42;
    --text-light: #8d99ae;
    --bg: #fefefe;
    --card-bg: #ffffff;

    --secondary-color: #d4af37;
    --danger-color: #fa561b;
}


/* Header Area */
.navbar-brand img {
    height: 40px;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
}

/* Product Section */
.product-section {
    padding: 2rem 0;
    background-color: var(--bg);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--danger-color) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(247, 37, 133, 0.3);
}

.product-wishlist {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-wishlist:hover {
    background: var(--accent);
    color: white;
}

.product-body {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #333333;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: #333333;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stars {
    color: #f1c40f;
    margin-right: 5px;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-price {
    display: flex;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    align-items: center;
    margin-bottom: 1.25rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e26f03;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-right: 10px;
}

.before-off{
    margin-top: 10px;
}

.before-off {
    font-size: 1rem;
    font-weight: 500;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #212529;
}

.original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--text-light);
}

/* Add to Cart Button */
.add-to-cart-button {
    background: linear-gradient(135deg, #333333 0%, #333333 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 40px;
    height: 40px;
}


.add-to-cart-button .material-icons {
    font-size: 1.2rem;
}


.btn-view {
    background-color: #e8e9eb;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: rgb(56, 55, 55);
    border: none;
    padding: 4px;
    width: 80%;
    border-radius: 5px;
    font-weight: 500;
}

.btn-view:hover{
background: #e8e9eb;
}


/* View All Button */
.view-all-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 12px 30px;
    background: white;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Delays for staggered animation */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* Loading Animation */
.adding-to-cart {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-10px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
    100% { transform: translateY(-10px) scale(1); }
}

@media (max-width: 1200px) {
    .current-price {
        font-size: 1rem;
        font-weight: 600;
        color: #cc6504;
    }
    .cart-buttons{
        gap: 5px;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .product-image-container {
        height: 220px;
    }
    
    .current-price {
        font-size: 1rem;
        font-weight: 600;
        color: #cc6504;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-image-container {
        height: 200px;
    }
    .before-off{
        margin-top: 15px;
    }
}


@media (max-width: 576px) {
    .product-card {
        width: auto; /* Let Bootstrap handle width */
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 16px; /* optional smaller gap */
    }
}

/* @media (max-width: 576px) {
    .product-card {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
} */


/* Categories Horizontal Carousel */
.categories-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;
}

/* Hide scrollbar (optional) */
.categories-carousel::-webkit-scrollbar {
    display: none;
}

.categories-carousel::-webkit-scrollbar-thumb {
    /* background: #ccc;
    border-radius: 10px; */
    display: none;
}


.category-item {
    min-width: 220px;
    flex: 0 0 auto;
}

/* Optional: Snap scrolling */
.categories-carousel {
    scroll-snap-type: x mandatory;
}

.category-item {
    scroll-snap-align: start;
}


.category-card {
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 200px;   /* FIXED HEIGHT */
    overflow: hidden;
    position: relative;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* VERY IMPORTANT */
}

.category-item {
    min-width: 220px;
    max-width: 220px;   /* ADD THIS */
    flex: 0 0 220px;    /* FORCE SAME WIDTH */
}


@media (max-width: 576px) {

    .category-item {
        min-width: 150px;
        max-width: 150px;
        flex: 0 0 150px;
    }

    .category-img {
        height: 140px;   /* reduce image height */
    }

    .category-name {
        font-size: 14px;  /* slightly smaller text */
    }
}
