@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
    /* Golden Luxury Glassmorphism Palette */
    --bg: #120E0A;
    --white: #FDFBF7;
    --black: #FDFBF7;
    --brown: #D4AF37;
    --brown-light: #E6C27A;
    --beige: rgba(212, 175, 55, 0.05);
    --beige-dark: rgba(212, 175, 55, 0.1);
    --text-primary: #FDFBF7;
    --text-secondary: #E6C27A;
    --text-muted: #A68A56;
    --border: rgba(212, 175, 55, 0.25);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.8);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #120E0A;
    --white: #FDFBF7;
    --black: #FDFBF7;
    --brown: #D4AF37;
    --brown-light: #E6C27A;
    --beige: rgba(212, 175, 55, 0.05);
    --beige-dark: rgba(212, 175, 55, 0.1);
    --text-primary: #FDFBF7;
    --text-secondary: #E6C27A;
    --text-muted: #A68A56;
    --border: rgba(212, 175, 55, 0.25);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(230, 194, 122, 0.2) 0%, transparent 40%);
    background-size: auto, auto;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; }

.font-bengali { font-family: 'Hind Siliguri', sans-serif; }

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(18, 14, 10, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 2rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

#navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo span { color: var(--brown); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 1.5rem;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--black);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brown);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    position: relative;
}

.nav-icon-btn:hover { background: var(--beige); }

.nav-icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--brown);
    color: var(--bg);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    border: 2px solid var(--bg);
}

/* ===== HERO BANNER ===== */
.hero-banner {
    margin-top: 80px;
    padding: 1.5rem;
}

.hero-card {
    background: var(--beige);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* WordPress Standard 16:9 Ratio */
}

.hero-card .hero-media-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Better centering */
    display: block;
}

/* Desktop Hero Fix */
@media (min-width: 1024px) {
    .hero-card {
        aspect-ratio: 21 / 9; /* WordPress Standard Widescreen 21:9 Ratio */
        min-height: auto;
        max-height: none;
    }
    .hero-card .hero-media-full {
        object-fit: cover;
        object-position: center;
    }
}


/* Swiper overrides for hero */
.heroSwiper .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}
.heroSwiper .swiper-pagination-bullet-active {
    background: var(--brown);
    opacity: 1;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brown);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--brown);
}

.btn-primary:hover {
    background: var(--bg);
    color: var(--brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.hero-decor {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(133, 77, 73, 0.08);
}

/* ===== SEARCH BAR ===== */
.search-section {
    padding: 1rem 1.5rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--beige);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.2rem;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(133, 77, 73, 0.08);
}

.search-bar input {
    border: none;
    outline: none;
    background: none;
    font-size: 0.85rem;
    color: var(--text-primary);
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.search-bar input::placeholder { color: var(--text-muted); }

/* ===== CATEGORY PILLS ===== */
.category-section {
    padding: 1.5rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
}

.see-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brown);
    cursor: pointer;
    transition: var(--transition);
}

.see-all:hover { color: var(--brown-light); }

.category-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.category-grid::-webkit-scrollbar { display: none; }

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-width: 80px;
    cursor: pointer;
    transition: var(--transition);
}

.hover-zoom:hover .zoom-img {
    transform: scale(1.1);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--beige);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
}

.category-pill.active .category-icon,
.category-pill:hover .category-icon {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.category-pill span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.category-pill.active span,
.category-pill:hover span {
    color: var(--black);
}

/* ===== CATEGORY CARDS CAROUSEL ===== */
.catCardSwiper {
    overflow: hidden;
}

.catCardSwiper .swiper-slide {
    height: auto;
}

.catCardSwiper .swiper-slide .cat-card {
    --card-accent: #FFFFFF;
    --card-accent-light: rgba(255, 255, 255, 0.1);
    background: var(--beige);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 1px solid var(--border);
    height: 100%;
}

/* Pagination dots */
.catCardPagination {
    text-align: center;
    margin-top: 1rem;
}

.catCardPagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--border);
    opacity: 1;
    transition: var(--transition);
}

.catCardPagination .swiper-pagination-bullet-active {
    background: var(--brown);
    width: 24px;
    border-radius: 4px;
}

.cat-card {
    --card-accent: #6B7D3E;
    --card-accent-light: #e8ecd8;
    background: linear-gradient(160deg, var(--card-accent-light) 0%, var(--bg) 55%, var(--white) 100%);
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Neon Glow for Dark Mode */
[data-theme="dark"] {
    --neon-color: #E2A856;
    --neon-glow: 0 0 10px rgba(226, 168, 86, 0.4), 0 0 25px rgba(226, 168, 86, 0.2);
}

[data-theme="dark"] .btn-primary {
    box-shadow: var(--neon-glow);
    border: 1px solid rgba(226, 168, 86, 0.3);
    transition: all 0.3s ease;
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 0 15px rgba(226, 168, 86, 0.6), 0 0 35px rgba(226, 168, 86, 0.4);
    border-color: var(--neon-color);
}

[data-theme="dark"] .navbar-brand {
    text-shadow: 0 0 12px rgba(226, 168, 86, 0.4);
}

[data-theme="dark"] .cat-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, var(--white) 55%, var(--bg) 100%);
    border-color: var(--border);
    transition: all 0.4s ease;
}

[data-theme="dark"] .cat-card:hover {
    box-shadow: var(--neon-glow);
    border-color: rgba(226, 168, 86, 0.3);
}

/* Image area */
.cat-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.03);
    border: 2.5px solid var(--card-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cat-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-card:hover .cat-card__image-wrap img {
    transform: scale(1.08);
}

/* Promo overlay banner */
.cat-card__promo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.02em;
    backdrop-filter: blur(2px);
}

/* Card body */
.cat-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem 0.15rem 0;
    flex: 1;
}

.cat-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.cat-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    flex: 1;
}

.cat-card__count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
}

.cat-card__count small {
    display: inline;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--card-accent);
    opacity: 0.8;
}

[data-theme="dark"] .cat-card__count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

[data-theme="dark"] .cat-card__count small {
    color: var(--text-primary);
    opacity: 0.8;
}

/* Tags */
.cat-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cat-card__tag {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.cat-card:hover .cat-card__tag {
    background: var(--card-accent-light);
    border-color: var(--card-accent);
    color: var(--card-accent);
}

/* Explore button */
.cat-card__explore {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--card-accent);
    margin-top: auto;
    transition: var(--transition);
    align-self: flex-end;
}

.cat-card__explore svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-card__explore svg {
    transform: translateX(4px) translateY(-2px);
}

.cat-card:hover .cat-card__explore {
    color: var(--black);
}

/* Color variations using Eliza palette */
.cat-card--amber {
    --card-accent: #C2AB8E;
    --card-accent-light: #F0E8DE;
}

.cat-card--emerald {
    --card-accent: #54737D;
    --card-accent-light: #dfe8eb;
}

.cat-card--navy {
    --card-accent: #41302C;
    --card-accent-light: #ebe5e2;
}

.cat-card--rose {
    --card-accent: #854D49;
    --card-accent-light: #f0e0de;
}

.cat-card--slate {
    --card-accent: #685C55;
    --card-accent-light: #e8e3df;
}

.cat-card--teal {
    --card-accent: #54737D;
    --card-accent-light: #d5e3e7;
}

/* Animation keyframes for card entrance */
@keyframes catCardFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cat-card {
    animation: catCardFadeUp 0.5s ease forwards;
}

.cat-card:nth-child(1) { animation-delay: 0s; }
.cat-card:nth-child(2) { animation-delay: 0.08s; }
.cat-card:nth-child(3) { animation-delay: 0.16s; }
.cat-card:nth-child(4) { animation-delay: 0.24s; }
.cat-card:nth-child(5) { animation-delay: 0.32s; }
.cat-card:nth-child(6) { animation-delay: 0.4s; }

/* ===== FILTER TABS ===== */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--beige);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--brown);
    color: var(--bg);
    border-color: var(--brown);
}

/* ===== PRODUCT GRID ===== */
.product-section {
    padding: 0.5rem 0 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    background: var(--beige);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
}

.product-card .card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: transparent;
    width: 100%;
}

.product-card .card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
}

.product-card:hover .card-image::after {
    opacity: 1;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease-in-out;
    will-change: transform;
    transform-origin: center center;
    z-index: 1;
    position: relative;
}

.product-card:hover .card-image img {
    transform: scale(1.12);
}

.product-card .badge-sale,
.product-card .wishlist-btn {
    z-index: 5;
}

/* Real mobile touch feedback */
.product-card:active .card-image img {
    transform: scale(1.08);
}

.product-card:active {
    transform: scale(0.98);
}



.product-card .wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--text-muted);
}

.product-card .wishlist-btn:hover {
    color: #E53E3E;
    transform: scale(1.1);
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .product-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-card .product-rating .star {
    color: #C2AB8E;
    font-size: 0.7rem;
}

.product-card .product-rating span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.product-card .product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
}

.product-card .product-price .old-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Flash Sale Badge */
.badge-sale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #E53E3E;
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

/* ===== FLASH SALE SECTION ===== */
.flash-sale-section {
    padding: 1.5rem 0;
}

.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.flash-timer {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.flash-timer .time-box {
    background: var(--brown);
    color: var(--bg);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

.flash-timer .time-sep {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.7rem;
}

/* ===== REVIEW SECTION ===== */
.reviews-section {
    padding: 2rem 1.5rem;
}

.review-card {
    background: var(--beige);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--brown);
    font-size: 0.85rem;
}

.review-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.review-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(18, 14, 10, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--black);
    padding: 4rem 1.5rem 2rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

[data-theme="dark"] .site-footer {
    background: #110D0C; /* Very dark background to keep white text legible */
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.footer-brand h2 span { color: var(--brown-light); }

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brown-light);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--black); }

.footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover { color: var(--brown-light); }

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--black);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-links {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-menu-links a:hover, .mobile-menu-links a.active {
    color: var(--brown);
}

/* ===== CART DRAWER ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: rgba(18, 14, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    z-index: 1001;
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), -webkit-transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-panel.active {
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
}

.cart-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    max-width: 420px;
    background: rgba(18, 14, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border);
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-overlay.active + .cart-panel,
.cart-panel.active {
    transform: translateX(0);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 70px;
    height: 85px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}

.cart-item-img img { height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; }

.cart-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-size {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    width: fit-content;
}

.cart-qty-control button {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-control span {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 0.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: transparent;
}

.cart-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-totals .label { font-size: 0.8rem; color: var(--text-secondary); }
.cart-totals .amount { font-size: 1.2rem; font-weight: 700; }

.btn-checkout {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--brown);
    color: var(--bg);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--bg);
    color: var(--brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* ===== AUTH MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(18, 14, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(139, 90, 43, 0.3);
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-content .subtitle {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(133, 77, 73, 0.08);
}

.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .hero-card { padding: 0; aspect-ratio: 640 / 360; min-height: auto; max-height: none; }
    .btn-primary { padding: 0.6rem 1.2rem; font-size: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .section-title { font-size: 1.5rem; }
    .container { padding: 0 1rem; }
    #navbar { padding: 0.75rem 1rem; }
    .nav-logo { font-size: 1.25rem; }
    .nav-left { gap: 0.5rem !important; }
    .nav-actions { gap: 0.25rem; }
    
    /* Product Card Mobile Fixes */
    .product-card .card-image { aspect-ratio: 1 / 1; }
    .product-card .card-body { padding: 0.6rem; }
    .product-card .product-name { font-size: 0.75rem; margin-bottom: 0.2rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
    .product-card .product-rating { margin-bottom: 0.25rem; }
    .product-card .product-price { font-size: 0.85rem; }
    .product-card .product-price .old-price { font-size: 0.7rem; }
    .product-price-row .add-to-cart-btn { width: 28px !important; height: 28px !important; }
    .product-price-row .add-to-cart-btn svg { width: 14px; height: 14px; }
}

/* Section spacing */
section { padding: 0; }
.section-padding { padding: 2rem 0; }

/* ===== DYNAMIC PRODUCT LOADING SEE MORE BUTTON ===== */
.see-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.btn-see-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    color: var(--text-secondary);
    background: rgba(212, 175, 55, 0.03);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-see-more:hover {
    color: var(--bg);
    background: var(--brown);
    border-color: var(--brown-light);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-see-more:active {
    transform: translateY(0);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.btn-see-more .btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    margin-right: 10px;
    animation: btn-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.product-card-fade-in {
    animation: productFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== PDP GRID ===== */
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 991px) {
    .pdp-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== PDP REDESIGN ===== */
/* Image Zoom & Tilt */
.pdp-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg);
    aspect-ratio: 4/5;
    cursor: zoom-in;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.pdp-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 0.45s ease-in-out;
    will-change: transform;
    display: block;
}
.pdp-image-container:hover img {
    transform: scale(2);
}
/* Touch/active feedback for real mobile */
.pdp-image-container:active img {
    transform: scale(1.5);
}

/* Action Buttons */
.pdp-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-add-cart-lg {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: transparent;
    color: var(--brown);
    border: 2px solid var(--brown);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-add-cart-lg:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.btn-order-now-lg {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #D4AF37 0%, #B8962B 100%);
    color: #120E0A;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-order-now-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
    filter: brightness(1.1);
}

/* Accordion */
.pdp-accordion {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--brown);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-body {
    padding-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stock & Rating */
.pdp-meta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pdp-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.pdp-rating-stars {
    color: #C2AB8E;
    letter-spacing: 2px;
}

.pdp-stock-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4CAF50;
    padding: 0.2rem 0.6rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50px;
}
.pdp-stock-indicator.low-stock {
    color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}
.pdp-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseStock 2s infinite;
}

@keyframes pulseStock {
    0% { box-shadow: 0 0 0 0 currentColor; }
    70% { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* Sticky Mobile Bar */
@media (max-width: 768px) {
    .pdp-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(18, 14, 10, 0.95);
        backdrop-filter: blur(16px);
        padding: 1rem;
        margin: 0;
        z-index: 100;
        border-top: 1px solid var(--border);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    }
    
    .pdp-section-wrapper {
        padding-bottom: 80px; 
    }
}

/* ===== Bengali UI Redesign ===== */
.bn-quantity-wrapper {
    margin-bottom: 1.5rem;
}
.bn-quantity-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.bn-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
}
.bn-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: background 0.2s;
}
.bn-qty-btn:hover {
    background: rgba(255,255,255,0.05);
}
.bn-qty-input {
    width: 40px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-weight: 700;
    color: #8B0000;
    background: transparent;
}

.bn-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.bn-btn-add {
    background: #8B0000;
    color: #FFF;
    border: 1px solid #8B0000;
}
.bn-btn-buy {
    background: #FFF;
    color: #8B0000;
    border: 1px solid #8B0000;
}
.bn-btn-wa {
    background: #25D366;
    color: #FFF;
    border: 1px solid #25D366;
}
.bn-btn-call {
    background: #FFF;
    color: #333;
    border: 1px solid #ccc;
}
.bn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bn-details-link {
    display: block;
    text-align: center;
    color: #8B0000;
    font-weight: 600;
    margin-bottom: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
}
.bn-details-link:hover {
    text-decoration: underline;
}

/* Expanded Sections View */
.pdp-expanded-sections {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pdp-section-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.pdp-section-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.pdp-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.pdp-section-title i {
    color: var(--brown);
}

.pdp-section-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media(max-width: 768px) {
    .pdp-expanded-sections {
        margin-top: 2rem;
        gap: 1rem;
    }
    .pdp-section-card {
        padding: 1.25rem;
    }
}

/* EXACT USER FIX FOR PRODUCT CARD HOVER */
.product-card,
.product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-card {
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-image-wrapper img,
.product-card img.product-image,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease-in-out;
  transform-origin: center center;
  will-change: transform;
}

/* Desktop + browser mobile preview hover */
.product-card:hover .product-image-wrapper img,
.product-card:hover img.product-image,
.product-card:hover img {
  transform: scale(1.12);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.25);
}

/* Real mobile touch feedback */
.product-card:active .product-image-wrapper img,
.product-card:active img.product-image,
.product-card:active img {
  transform: scale(1.08);
}

.product-card:active {
  transform: scale(0.98);
}

/* --- MOBILE PRODUCT IMAGE CROP FIX --- */
@media (max-width: 768px) {
    .product-card-image,
    .product-image-wrapper,
    .product-image,
    .product-thumb,
    .product-popup-image,
    .single-product-image,
    .related-product-image,
    .category-product-image,
    .card-image {
        width: 100% !important;
        height: auto !important;
        min-height: 220px;
        aspect-ratio: 1 / 1 !important;
        background: #f7f7f7;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .product-card-image img,
    .product-image-wrapper img,
    .product-image img,
    .product-thumb img,
    .product-popup-image img,
    .single-product-image img,
    .related-product-image img,
    .category-product-image img,
    .product-card img,
    .card-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    .product-popup-image,
    .modal-product-image,
    .popup-product-image,
    .product-modal-image {
        width: 100% !important;
        height: auto !important;
        max-height: 70vh !important;
        aspect-ratio: 4 / 5 !important;
        background: #f7f7f7;
        overflow: hidden !important;
    }

    .product-popup-image img,
    .modal-product-image img,
    .popup-product-image img,
    .product-modal-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}
