/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #fff;
    color: #333;
}

/* Hero */
.hero {
    color: #fff;
    text-align: center;
    margin-top: 60px;
}

.hero h1 {
    font-size: 42px;
}

.hero p {
    margin: 12px 0;
    font-size: 18px;
}

.btn-primary {
    padding: 10px 22px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* Products */
.products {
    padding: 40px 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 22px;
    font-size: 28px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
}

.product-card img {
    width: 100%;
    height: auto;
}

.product-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.product-card .price {
    font-weight: 600;
    color: #000;
    margin: 6px 0;
}

.product-card .price span {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.product-card button {
    background: #000;
    color: #fff;
    border: none;
    padding: 7px 16px;
    cursor: pointer;
    border-radius: 4px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 18px 0;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

/* Category Menu */
.category-bar {
    background: #7a1f3d;
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 10px 0;
}

.category-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.category-bar a:hover {
    text-decoration: underline;
}

/* Category Bar */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 12px 0;
    background: #7a1f2b;
}

/* Category Links */
.category-bar a {
    color: #f7e7c4;
    text-decoration: none;
    font-size: 14px;
    position: relative;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 28px;
    left: 0;
    background: #fff7e1;
    min-width: 180px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    z-index: 10;
}

.dropdown-menu a {
    padding: 10px 14px;
    color: #5b0f1a;
}

.dropdown-menu a:hover {
    background: #f1e1b0;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Sale Highlight */
.sale {
    color: #ffd700;
    font-weight: 500;
}

/* Hover underline */
.category-bar a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s;
}

.category-bar a:hover::after {
    width: 100%;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}









/* Mobile */
/* CATEGORY BAR – DESKTOP DEFAULT */
.category-grid {
    display: flex;
    justify-content: center;
    gap: 36px;
    padding: 16px 0;
    background: #7a1f2b;
}

/* CATEGORY ITEM */
.category-item {
    text-decoration: none;
    color: #f7e7c4;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}

/* ROUND IMAGE */
.category-item img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER (Desktop) */
.category-item:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.category-item span {
    margin-top: 8px;
    letter-spacing: 0.4px;
}

/* 📱 MOBILE LAYOUT */
@media (max-width: 768px) {
            .category-bar {
                overflow-x: auto;
                justify-content: flex-start;
                padding-left: 12px;
            }


    /* Show ONLY when hamburger is clicked */
    .category-grid.active {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        padding: 22px 16px;
    }

    .hero {
    margin-top: 100px;
    width: 100%;
    }

        .category-item {
            font-size: 10px;
            margin-left: 2px;
            margin-right: 2px;
        }
    
        /* ROUND IMAGE */
        .category-item img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #d4af37;
            margin-top: 10px;
        }

                .category-item span {
                    margin-top: 2px;
                    letter-spacing: 0.4px;
                }

                .category-grid {
                    display: flex;
                    justify-content: center;
                    gap: 20px;
                    background: #7a1f2b;
                }

                .mobile-more {
                    display: block;
                    text-align: center;
                    padding: 10px 0;
                    background-color: #f7e7c4;
                    font-weight: bold;
                    cursor: pointer;
                    border-radius: 5px;
                    margin: 8px 16px;
                }

                .carousel-track {
                    height: 320px !important;
                    /* enforce taller height */
                }
          .carousel-slide img {
              height: 320px;
              /* taller for mobile */
          }

                          .carousel-btn {
                              width: 46px;
                              height: 46px;
                              font-size: 26px;
                          }
}

.hamburger {
    font-size: 24px;
    cursor: pointer;
    margin-left: 18px;
    color: #f7e7c4;
}


/* carousel */
.carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    height: auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    height: 420px;
}

/* Each Slide */
.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
    /* inherit from track */
}

.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: fill;
    height: 100%;
        /* fill parent container */
}


/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(122, 31, 61, 0.85);
    /* ethnic maroon */
    color: #fff;
    border: none;
    font-size: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #7a1f3d;
    transform: translateY(-50%) scale(1.1);
}

/* Position */
.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}







/* Featured Products Section */
.featured-products {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #7a1f3d;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-header p {
    font-size: 16px;
    color: #4b2a2a;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 1px solid #e0cfc2;
}

.product-card h3 {
    font-size: 18px;
    margin: 12px 0 6px;
    color: #7a1f3d;
    font-weight: 600;
}

.product-card .price {
    font-size: 16px;
    color: #f7b72c;
    margin-bottom: 12px;
}

.product-card .add-to-cart {
    background: #7a1f3d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.product-card .add-to-cart:hover {
    background: #f7b72c;
    color: #7a1f3d;
}


.image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    /* same as product image height */
    overflow: hidden;
    border-bottom: 1px solid #e0cfc2;
    background: #f0ece1;
    /* fallback bg */
}

/* Loader (animated gradient) */
.image-loader {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0ece1 25%, #e0d9c7 50%, #f0ece1 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Image styling */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}