@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');
:root {
    --primary: #0F4C81;
    --primary-dark: #0B3A63;
    --accent: #FF6B00;
    --accent-hover: #E05F00;
    --green: #00A86B;
    --bg: #F7F9FC;
    --white: #FFFFFF;
    --text-heading: #1A1A1A;
    --text-body: #555555;
    --text-muted: #8A8A8A;
    --border: #E8ECF0;
    --footer-bg: #1D2636;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 18px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 18px;
    --radius-xl: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Hind Siliguri', sans-serif;
    background: var(--bg);
    color: var(--text-body);
    padding-top: 120px;
    padding-bottom: 70px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ======= TOP BAR ======= */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    padding: 8px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    height: 36px;
}
.top-bar a { color: rgba(255,255,255,0.9); transition: 0.2s; }
.top-bar a:hover { color: var(--accent); }
.top-bar .helpline i { font-size: 0.7rem; }
.top-bar .top-right { display: flex; align-items: center; gap: 16px; }
.top-bar .top-right a { font-size: 0.78rem; }
.top-bar .top-right .divider { width: 1px; height: 12px; background: rgba(255,255,255,0.3); }

/* ======= MAIN HEADER ======= */
.main-header {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: fixed;
    top: 36px; left: 0; right: 0;
    z-index: 1020;
    height: 70px;
    transition: 0.3s;
}
.main-header .header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.main-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-header .logo i { color: var(--accent); }
.main-header .search-form {
    flex: 1;
    max-width: 520px;
    position: relative;
}
.main-header .search-form input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: 0.3s;
    background: var(--bg);
}
.main-header .search-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}
.main-header .search-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.main-header .search-form button:hover { background: var(--primary-dark); }
.main-header .header-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}
.main-header .header-icons .icon-link {
    position: relative;
    color: var(--text-heading);
    font-size: 1.25rem;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.main-header .header-icons .icon-link span {
    font-size: 0.6rem;
    color: var(--text-muted);
}
.main-header .header-icons .icon-link:hover { color: var(--accent); }
.header-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* ======= HERO SLIDER ======= */
.hero-section { padding: 20px 0 10px; }
.hero-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 500px;
    box-shadow: var(--shadow);
}
.hero-slide {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 60px 80px;
    background-size: cover;
    background-position: center;
}
.hero-slide .hero-content { position: relative; z-index: 2; max-width: 550px; }
.hero-slide .hero-tag {
    display: inline-block;
    background: rgba(255,107,0,0.15);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.hero-slide .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 12px;
}
.hero-slide .hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 24px;
    line-height: 1.6;
}
.hero-slide .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}
.hero-slide .hero-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.hero-slide .hero-img {
    position: absolute;
    right: 60px;
    bottom: 0;
    max-height: 380px;
    z-index: 1;
}
.hero-slider .slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero-slider .slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}
.hero-slider .slider-dots button.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* ======= SECTION TITLES ======= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    position: relative;
    padding-bottom: 8px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
}
.section-link:hover { color: var(--accent); }

/* ======= CATEGORY GRID ======= */
.categories-section {
    background: var(--bg);
    padding: 30px 0;
}
.categories-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.category-card i {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    line-height: 1;
    transition: transform 0.3s ease;
}
.category-card:hover i {
    transform: scale(1.1);
}
.category-card span {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    display: block;
    line-height: 1.3;
}

/* ======= PRODUCT CARDS ======= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.product-card .img-wrap {
    position: relative;
    padding-top: 100%;
    background: #f0f2f5;
    overflow: hidden;
}
.product-card .img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: 0.5s;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF0000;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}
.product-card .card-body {
    padding: 14px 16px 16px;
}
.product-card .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    transition: 0.2s;
}
.product-card .product-name:hover { color: var(--primary); }
.product-card .product-rating {
    font-size: 0.78rem;
    color: #FFD700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-card .product-rating .rating-text {
    color: var(--text-muted);
    font-size: 0.72rem;
}
.product-card .product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.product-card .product-price .old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}
.product-card .product-actions {
    display: flex;
    gap: 8px;
}
.product-card .btn-add-cart {
    flex: 1;
    padding: 9px 8px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.product-card .btn-add-cart:hover { background: var(--accent-hover); }
.product-card .btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.product-card .btn-buy-now-card {
    flex: 1;
    padding: 9px 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}
.product-card .btn-buy-now-card:hover { background: var(--primary-dark); color: white; }

/* ======= FLASH SALE ======= */
.flash-section { padding: 10px 0; }
.flash-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.flash-header {
    background: linear-gradient(135deg, #DC143C, #FF4500);
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flash-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.flash-header h3 i { animation: flashPulse 1s infinite; }
@keyframes flashPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.flash-timer {
    background: rgba(0,0,0,0.2);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}
.flash-body { padding: 20px; }
.flash-body .product-grid { grid-template-columns: repeat(4, 1fr); }

/* ======= WHY CHOOSE US ======= */
.why-choose { padding: 30px 0; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.why-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: 0.3s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.why-card .why-icon {
    width: 56px;
    height: 56px;
    background: rgba(15,76,129,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
    color: var(--primary);
}
.why-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.why-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* ======= CUSTOMER REVIEWS ======= */
.reviews-section {
    padding: 30px 0;
    background: var(--bg);
}
.reviews-wrapper {
    position: relative;
}
.reviews-scroll {
    display: flex;
    gap: 16px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 8px 4px 12px;
    cursor: grab;
}
.reviews-scroll:active { cursor: grabbing; }
.review-slide-card {
    flex: 0 0 300px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}
.review-slide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.review-slide-card .reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.review-slide-card .reviewer img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.review-slide-card .reviewer .reviewer-name {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.9rem;
}
.review-slide-card .reviewer .reviewer-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.review-slide-card .review-text {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-slide-card .review-stars {
    color: #FFD700;
    font-size: 0.82rem;
    margin-top: 6px;
}

/* Review carousel dots */
.review-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.review-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}
.review-dot:hover {
    background: var(--primary);
    opacity: 0.7;
}



/* ======= WHATSAPP CTA ======= */
.whatsapp-cta {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    text-align: center;
    color: white;
    margin: 20px 0;
}
.whatsapp-cta i { font-size: 3rem; margin-bottom: 10px; }
.whatsapp-cta h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.whatsapp-cta p { opacity: 0.9; margin-bottom: 16px; font-size: 0.95rem; }
.whatsapp-cta .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #25D366;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.whatsapp-cta .whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* ======= FOOTER ======= */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 20px;
    margin-top: 40px;
}
.site-footer h5, .site-footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}
.site-footer h5 i { color: var(--accent); }
.site-footer p { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-link {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    display: block;
    padding: 3px 0;
    transition: 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}
.footer-contact-item i { width: 16px; color: var(--accent); }
.footer-whatsapp {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: white !important;
    padding: 8px 16px; border-radius: 8px;
    font-size: 0.88rem; font-weight: 500;
    transition: 0.3s; margin-top: 6px;
}
.footer-whatsapp:hover { background: #1DA851; color: white !important; transform: translateY(-1px); }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: 0.2s;
}
.social-links a:hover { background: var(--accent); color: white; }
.payment-logos {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.payment-logos .pay-item {
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 30px;
    padding-top: 16px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
.footer-dev-link { color: rgba(255,255,255,0.6); transition: 0.2s; text-decoration: none; }
.footer-dev-link:hover { color: #25D366; }
.footer-dev-link i { margin-right: 4px; }

/* ======= MOBILE BOTTOM NAV ======= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 4px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1050;
}
.mobile-nav-item {
    text-align: center;
    font-size: 0.62rem;
    color: var(--text-muted);
    transition: 0.2s;
    position: relative;
    padding: 4px 8px;
}
.mobile-nav-item i {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 1px;
}
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--primary); }
.mobile-bottom-nav .nav-cart-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--accent);
    color: white;
    font-size: 0.55rem;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 16px;
    text-align: center;
    font-weight: 600;
}

/* ======= DESKTOP HEADER LAYOUT ======= */
@media (min-width: 992px) {
    .main-header .header-inner {
        justify-content: space-between;
        position: relative;
    }
    .main-header .search-form {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex: none;
        max-width: 520px;
        width: 100%;
    }
}

/* ======= MOBILE SEARCH OVERLAY ======= */
.search-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    justify-content: center;
    padding-top: 80px;
}
.search-overlay.active { display: flex; }
.search-overlay-content {
    background: white;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    height: fit-content;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-overlay-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; font-weight: 600; font-size: 1.1rem;
    color: var(--text-heading);
}
.search-overlay-header button {
    background: none; border: none; font-size: 1.8rem; cursor: pointer;
    color: var(--text-muted); line-height: 1;
}
.search-overlay-header button:hover { color: var(--text-heading); }
.search-overlay-input-group {
    display: flex; gap: 10px;
}
.search-overlay-input-group input {
    flex: 1; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: 12px; font-family: inherit; font-size: 1rem;
    outline: none;
}
.search-overlay-input-group input:focus {
    border-color: var(--primary);
}
.search-overlay-input-group button {
    padding: 0 20px; background: var(--primary); color: white;
    border: none; border-radius: 12px; cursor: pointer;
    font-size: 1.2rem;
}
.search-overlay-input-group button:hover { background: var(--primary-dark); }

/* ======= TOAST ======= */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; }

/* ======= SHOP PAGE ======= */
.shop-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.filter-section { margin-bottom: 20px; }
.filter-section h6 {
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.filter-link {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-body);
    transition: 0.2s;
}
.filter-link:hover { color: var(--primary); font-weight: 500; }
.filter-link.active { color: var(--accent); font-weight: 600; }

/* ======= PRODUCT DETAIL ======= */
/* ======= PRODUCT DETAIL ======= */
.product-detail { padding: 20px 0; }

/* Gallery */
.product-gallery { position: relative; }
.gallery-main {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1/1;
    cursor: crosshair;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}
.gallery-main.zoomed img { transform: scale(1.8); }
.gallery-badge {
    position: absolute;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
}
.gallery-badge.discount {
    top: 12px;
    left: 12px;
    background: #FF0000;
    color: white;
}
.gallery-badge.hot {
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: white;
    animation: hotPulse 1.5s infinite;
}
@keyframes hotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.gallery-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    background: var(--white);
    padding: 4px;
}
.gallery-thumbs img:hover,
.gallery-thumbs img.active { border-color: var(--primary); }

/* Detail Title */
.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Rating */
.detail-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: #FFD700;
}
.detail-rating .rating-text {
    font-weight: 700;
    color: var(--text-heading);
    margin-left: 2px;
}
.detail-rating .rating-sep { color: var(--text-muted); font-size: 0.7rem; }
.detail-rating span:not(.rating-text):not(.rating-sep):not(.fa-star):not(.far) {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.detail-rating .sold-count { color: var(--green); font-weight: 600; }

/* Price */
.detail-price-area { margin-bottom: 12px; }
.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}
.old-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}
.save-badge {
    background: #E8F5E9;
    color: var(--green);
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Stock */
.detail-stock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.stock-in { background: #d4edda; color: var(--green); }
.stock-low { background: #fff3cd; color: #856404; }
.stock-out { background: #f8d7da; color: #dc3545; }
.stock-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.stock-urgency {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    animation: urgentPulse 1s infinite;
}
@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Highlights */
.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.highlights-list li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-body);
}
.highlights-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* Qty + Buttons */
.qty-cart-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}
.qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: #f7f9fc;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
    color: var(--text-heading);
    font-family: inherit;
}
.qty-btn:hover { background: var(--border); }
.qty-input {
    width: 50px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    background: var(--white);
    -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-buttons {
    display: flex;
    gap: 10px;
    flex: 1;
}
.btn-add-cart-detail {
    flex: 1;
    height: 52px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-add-cart-detail:hover { background: var(--accent-hover); color: white; }
.btn-add-cart-detail:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.btn-buy-now {
    flex: 1;
    height: 52px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn-buy-now:hover { background: var(--primary-dark); color: white; }
.btn-buy-now:disabled { background: #ccc; cursor: not-allowed; }

/* Delivery Info */
.delivery-info {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
}
.delivery-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-body);
    padding: 4px 0;
}
.delivery-item i {
    width: 18px;
    color: var(--primary);
    text-align: center;
}

/* Payment Icons */
.payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.payment-icons .pay-item {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-heading);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.trust-badges span {
    font-size: 0.82rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ======= TABS ======= */
.detail-tabs {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    background: #fafafa;
}
.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { width: 60%; }
.tab-btn:hover { color: var(--primary); }
.tabs-content { padding: 20px 24px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Desc tab */
.desc-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
}

/* Specs tab */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.specs-table tr:nth-child(even) { background: #f8f9fa; }
.specs-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}
.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-heading);
    width: 140px;
    background: #f8f9fa;
}

/* Reviews tab */
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-card {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fafafa;
}
.review-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.review-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.review-card-name { font-weight: 600; font-size: 0.9rem; color: var(--text-heading); }
.review-card-date { font-size: 0.75rem; color: var(--text-muted); }
.review-card-stars { color: #FFD700; font-size: 0.8rem; margin-bottom: 6px; }
.review-card-text { font-size: 0.88rem; color: var(--text-body); line-height: 1.5; margin: 0; }

/* ======= STICKY BUY BAR (Mobile) ======= */
.sticky-buy-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    align-items: center;
    gap: 12px;
}
.sticky-price { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; flex-shrink: 0; }
.sticky-price .cur { font-size: 1.2rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.sticky-price .old { font-size: 0.78rem; color: var(--text-muted); text-decoration: line-through; }
.sticky-actions { display: flex; gap: 8px; flex: 1; }
.sticky-cart, .sticky-buy {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-decoration: none;
}
.sticky-cart { background: var(--accent); color: white; }
.sticky-cart:hover { background: var(--accent-hover); color: white; }
.sticky-cart:disabled { background: #ccc; cursor: not-allowed; }
.sticky-buy { background: var(--primary); color: white; }
.sticky-buy:hover { background: var(--primary-dark); color: white; }

/* ======= FLOATING WHATSAPP ======= */
.whatsapp-float {
    position: fixed;
    bottom: 120px;
    right: 16px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    text-decoration: none;
    transition: 0.3s;
    animation: whatsappBounce 2s infinite;
}
.whatsapp-float:hover { background: #128C7E; color: white; transform: scale(1.05); }
.whatsapp-float i { font-size: 1.5rem; }
.whatsapp-float span { font-size: 0.72rem; font-weight: 600; line-height: 1.2; text-align: left; }
@keyframes whatsappBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ======= BACK TO TOP ======= */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 997;
    box-shadow: 0 3px 10px rgba(15,76,129,0.3);
    transition: 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(15,76,129,0.4);
}
.back-to-top.show { display: flex; }

@media (max-width: 768px) {
    .sticky-buy-bar { display: flex; }
    .whatsapp-float { bottom: 85px; right: 12px; padding: 8px 14px; }
    .whatsapp-float span { display: none; }
    .whatsapp-float i { font-size: 1.8rem; }
    .detail-title { font-size: 1.2rem; }
    .current-price { font-size: 1.4rem; }
    .tabs-nav .tab-btn { font-size: 0.85rem; padding: 12px 10px; }
    .tabs-content { padding: 16px; }
    .buy-buttons { flex-direction: column; }
    .btn-add-cart-detail, .btn-buy-now { height: 46px; font-size: 0.9rem; }
    .qty-cart-area { flex-direction: column; align-items: stretch; }
    .qty-selector { align-self: flex-start; }
}
.stock-out { background: #f8d7da; color: #721c24; }
.stock-low { background: #fff3cd; color: #856404; }

/* ======= PAGINATION ======= */
.pagination .page-link {
    color: var(--primary);
    font-family: inherit;
    border-radius: var(--radius-sm);
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 992px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .flash-body .product-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    body { padding-top: 106px; }
    .top-bar { height: 32px; font-size: 0.7rem; padding: 6px 0; }
    .top-bar .top-right { gap: 8px; }
    .top-bar .top-right a { font-size: 0.68rem; }
    .main-header { top: 32px; height: 60px; padding: 8px 0; }
    .main-header .search-form { max-width: 200px; }
    .main-header .search-form input { padding: 8px 36px 8px 12px; font-size: 0.8rem; }
    .main-header .header-icons .icon-link span { display: none; }
    .hero-slider, .hero-slide { min-height: 280px; border-radius: var(--radius-sm); }
    .hero-slide { padding: 30px 20px; }
    .hero-slide .hero-title { font-size: 1.4rem; }
    .hero-slide .hero-subtitle { font-size: 0.85rem; margin-bottom: 16px; }
    .hero-slide .hero-btn { padding: 10px 20px; font-size: 0.85rem; }
    .hero-slide .hero-img { max-height: 160px; right: 10px; }
    .hero-slide .hero-tag { font-size: 0.72rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0 12px;
        scrollbar-width: none;
    }
    .category-grid::-webkit-scrollbar { display: none; }
    .category-card {
        flex: 0 0 105px;
        scroll-snap-align: start;
        min-height: 100px;
        padding: 16px 8px;
    }
    .category-card i { font-size: 32px; }
    .category-card span { font-size: 13px; }
    .categories-subtitle { font-size: 0.8rem; }
    .section-title { font-size: 1.1rem; }
    .product-card .product-name { font-size: 0.82rem; min-height: auto; }
    .product-card .product-actions { flex-direction: column; }
    .product-card .btn-add-cart, .product-card .btn-buy-now-card { font-size: 0.75rem; padding: 7px; }
    .flash-header { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
    .flash-timer { font-size: 0.9rem; }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .why-card { padding: 20px 12px; }
    .review-slide-card { flex: 0 0 260px; }
    .whatsapp-cta { padding: 24px 20px; }
    .whatsapp-cta i { font-size: 2rem; }
    .whatsapp-cta h3 { font-size: 1.1rem; }
    .product-detail .detail-title { font-size: 1.2rem; }
    .product-detail .detail-price { font-size: 1.4rem; }
    body { padding-bottom: 58px; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .main-header .logo { font-size: 1.1rem; white-space: normal; line-height: 1.2; max-width: 95px; }
    .main-header .search-form { max-width: 120px; }
    .main-header .search-form input { font-size: 0.75rem; padding: 7px 32px 7px 10px; }
    .main-header .header-icons { gap: 10px; }
    .category-card { flex: 0 0 90px; padding: 12px 6px; }
    .category-card i { font-size: 28px; }
    .category-card span { font-size: 12px; }
}

/* ===== Auth Pages ===== */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 16px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
}
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}
.auth-header i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 8px;
}
.auth-header h3 {
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-error {
    background: #FFF0F0;
    color: #D32F2F;
    border: 1px solid #FFCDD2;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.auth-form .auth-field {
    margin-bottom: 16px;
}
.auth-form .auth-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-heading);
    margin-bottom: 6px;
}
.auth-form .auth-field label i {
    width: 18px;
    color: var(--primary);
    opacity: 0.6;
}
.auth-form .auth-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.auth-form .auth-field input:focus {
    outline: none;
    border-color: var(--primary);
}
.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.auth-btn:hover { background: var(--primary-dark); }
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* ===== Wishlist Toggle ===== */
.wishlist-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.wishlist-toggle:hover { color: #E91E63; background: #fff; }
.wishlist-toggle.active { color: #E91E63; }
.wishlist-toggle.active i { font-weight: 900; }
.wishlist-toggle-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-top: 10px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: #999;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.wishlist-toggle-detail:hover { border-color: #E91E63; color: #E91E63; }
.wishlist-toggle-detail.active { border-color: #E91E63; color: #E91E63; background: #FFF0F5; }
.sticky-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.sticky-wishlist:hover { border-color: #E91E63; color: #E91E63; }
.sticky-wishlist.active { border-color: #E91E63; color: #E91E63; background: #FFF0F5; }
