/* Face Care BD - Fixed Stylesheet with Mobile Menu Fix */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600;700&display=swap');

:root {
    --primary: #16a34a;
    --primary-hover: #15803d;
    --accent: #e11d48;
    --accent-hover: #be123c;
    --bg-light: #f0fdf4;
    --bg-rose: #fff1f2;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --border: #e2e8f0;
    --card-shadow: 0 2px 10px rgba(0,0,0,.06);
    --card-shadow-hover: 0 10px 32px rgba(0,0,0,.13);
    --radius: 16px;
}

/* Global */
* { box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }

/* Top Progress Bar */
#top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #16a34a; /* Primary Green */
    z-index: 10001; /* Above sticky header */
    transition: width 0.3s ease;
    opacity: 0;
}

#top-progress-bar.loading {
    opacity: 1;
    width: 90%; /* Animate to 90% then wait for page load */
    transition: width 1s cubic-bezier(0.1, 0.05, 0.4, 0.1);
}

#top-progress-bar.finish {
    width: 100% !important;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s 0.2s;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img, video, svg, canvas {
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    font-family: 'Hind Siliguri', system-ui, sans-serif;
    color: var(--text-dark);
    background: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =============================================
   MOBILE MENU - HIDDEN BY DEFAULT (CRITICAL!)
   Using multiple methods to ensure it stays hidden
   ============================================= */

/* Primary hide - these selectors must match header_fixed.php */
#mobile-menu-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* When opened via JS */
#mobile-menu-container.open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Topbar & Navigation */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.topbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .2px;
    color: var(--primary);
    text-decoration: none;
}

/* Desktop menu.
   nowrap + flex-shrink:0 so adding a nav item pushes the search bar narrower
   (it has a min-width and shrinks) instead of dropping menu links onto a
   second line and doubling the header height. */
.menu {
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
}

.menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.2s;
}

/* Below this the search bar has given up all it can; tighten the menu itself. */
@media (max-width: 1180px) {
    .menu { gap: 11px; }
    .menu a { font-size: 14px; }
}

.menu a:hover {
    color: var(--primary);
}

.right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language */
.lang a {
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-dark);
    transition: all 0.2s;
    display: inline-block;
}

.lang a:hover,
.lang a.active {
    background: var(--bg-light);
    border-color: #86efac;
}

/* Toast Notification Animation */
#toast {
    visibility: hidden;
    min-width: 280px;
    background-color: #16a34a !important; /* Force Green */
    color: #fff !important;
    text-align: center;
    border-radius: 12px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.4s, bottom 0.4s, visibility 0.4s;
}

#toast.show {
    visibility: visible !important;
    opacity: 1 !important;
    bottom: 50px !important;
}

/* Hamburger Button - HIDDEN ON DESKTOP */
.hamburger-btn {
    display: none !important;
}

/* Desktop-only class */
.desktop-only {
    display: flex !important;
}

/* ==================
   MOBILE BREAKPOINT
   ================== */
@media (max-width: 768px) {
    /* Hide desktop elements */
    .desktop-only {
        display: none !important;
    }
    
    .menu {
        display: none !important;
    }
    
    /* Show hamburger on mobile */
    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}

.heroGrid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
}

.h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #14532d;
}

.p {
    margin: 0 0 24px;
    color: var(--text-gray);
    font-size: 18px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-hover);
}

/* Badges */
.badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.badge {
    border: 1px dashed #86efac;
    background: var(--bg-light);
    border-radius: 14px;
    padding: 16px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    color: #166534;
}

/* Cards & Products */
.secTitle {
    font-size: clamp(22px, 4vw, 32px);
    margin: 4px 0 20px;
    text-align: center;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.2;
}

.cardRow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    text-align: center;
    font-weight: 600;
    transition: transform 0.2s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #86efac;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    background: #fff;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: #c7d2fe;
}

.prod-img {
    height: 195px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
    display: block;
}

.product:hover .prod-img img {
    transform: scale(1.06);
}

.prod-info {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price {
    font-weight: 800;
    margin-top: 6px;
    color: var(--primary);
    font-size: 19px;
}

.add-btn {
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2px;
    transition: opacity 0.15s, transform 0.15s;
}

.add-btn:hover {
    opacity: 0.88;
    transform: scale(1.01);
}

/* Footer */
footer {
    margin-top: 60px;
}

.footer-main {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 40px;
    border-top: 3px solid var(--primary, #e91e8c);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
}

.footer-col {}

.footer-brand .footer-tagline {
    font-size: 13.5px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 20px;
    max-width: 240px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    color: #fff;
}
.footer-social-btn:hover { transform: translateY(-3px); opacity: 0.85; }
.footer-social-btn.fb  { background: #1877f2; }
.footer-social-btn.wa  { background: #25d366; }
.footer-social-btn.ms  { background: #0099ff; }

.footer-heading {
    font-size: 14px;
    font-weight: 800;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e293b;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.footer-links li a:hover { color: #f1f5f9; }

.footer-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-trust li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.trust-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-trust strong {
    display: block;
    font-size: 13.5px;
    color: #f1f5f9;
    font-weight: 700;
    line-height: 1.3;
}

.footer-trust small {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Footer Bottom Bar */
.footer-bottom {
    background: #020617;
    color: #64748b;
    padding: 16px 0;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.payment-badge {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}
.payment-badge.cod {
    background: #14532d;
    color: #86efac;
    border-color: #166534;
}

/* Footer responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

.footer-link {
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Products Page Layout */
.page-header {
    background: var(--bg-light);
    padding: 32px 0 28px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.page-title {
    font-size: clamp(22px,4vw,32px);
    color: #0f172a;
    margin: 0;
    font-weight: 900;
}

.layout-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.sidebar {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.filter-group { margin-bottom: 24px; }
.filter-title { font-weight: 700; margin-bottom: 12px; display: block; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 8px; }
.filter-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; }

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* Product Details */
.breadcrumb { margin-bottom: 20px; font-size: 14px; color: #64748b; }
.breadcrumb a { color: #64748b; text-decoration: none; }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.main-image { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; }
.thumbnails { display: flex; gap: 12px; }
.thumb { width: 80px; height: 80px; background: #f1f5f9; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumb.active { border-color: var(--primary); }

.p-title { font-size: 32px; margin: 0 0 10px; line-height: 1.2; }
.p-price { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.p-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #166534; background: #dcfce7; padding: 4px 12px; border-radius: 99px; margin-bottom: 20px; }
.stock-dot { width: 8px; height: 8px; background: #16a34a; border-radius: 50%; }
.p-short-desc { color: var(--text-gray); line-height: 1.6; margin-bottom: 30px; }

.p-actions { display: flex; gap: 16px; margin-bottom: 16px; }
.qty-selector { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-selector button { background: #f8fafc; border: none; width: 40px; font-size: 18px; cursor: pointer; }
.qty-selector input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-weight: 600; }
.btn-add-cart { flex: 1; background: var(--text-dark); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-buy-now { width: 100%; background: var(--primary); color: white; border: none; padding: 14px; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; margin-bottom: 30px; }
.btn-buy-now:hover { background: var(--primary-hover); }

.product-tabs { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 40px; }
.tab-title { font-size: 20px; margin-bottom: 12px; color: #1e293b; }
.tab-content { color: var(--text-gray); margin-bottom: 30px; line-height: 1.7; }

/* --- Floating Cart Trigger --- */
@keyframes cartPulse {
    0%,  70%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
    72%            { transform: scale(1.07); box-shadow: 0 12px 28px rgba(0,77,64,0.5); }
    76%            { transform: scale(0.97); }
    80%            { transform: scale(1.03); }
    84%            { transform: scale(1); }
}
@keyframes cartRing {
    0%   { opacity: 0.55; transform: scale(1); }
    100% { opacity: 0;    transform: scale(1.85); }
}

#floating-cart-trigger {
    position: fixed;
    right: 20px;
    bottom: 30px;
    background: #004d40; /* Dark Green */
    color: white;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    min-width: 80px;
    animation: cartPulse 4s ease-in-out infinite;
}

#floating-cart-trigger::before,
#floating-cart-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: #004d40;
    opacity: 0;
    animation: cartRing 4s ease-out infinite;
    z-index: -1;
}

#floating-cart-trigger::after {
    animation-delay: 0.5s;
}

#floating-cart-trigger:hover {
    transform: scale(1.08) !important;
    animation: none;
}

#floating-cart-trigger:hover::before,
#floating-cart-trigger:hover::after {
    animation: none;
    opacity: 0;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 4px;
}

#floating-cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #dc2626; /* Red */
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 50%;
    border: 2px solid #004d40;
}

.cart-price-label {
    font-size: 13px;
    font-weight: 700;
    display: block;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 5px;
    padding-top: 3px;
}

/* --- Cart Sidebar --- */
#cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 350px;
    height: 100%;
    background: white;
    z-index: 10002;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

#cart-sidebar.open {
    right: 0;
}

#cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(2px);
}

#cart-sidebar-overlay.show {
    display: block;
}

/* Sidebar Header */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.close-sidebar {
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-sidebar:hover {
    background: #e2e8f0;
}

/* Sidebar Content */
#sidebar-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
    color: #0f172a;
}

.checkout-btn-sidebar {
    display: block;
    background: #8bc34a; /* Light Green */
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s;
}

.checkout-btn-sidebar:hover {
    background: #7cb342;
}

/* Mobile Responsive for Cart */
@media (max-width: 480px) {
    #cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    #floating-cart-trigger {
        bottom: 20px;
        right: 15px;
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .heroGrid { grid-template-columns: 1fr; text-align: center; }
    .cardRow, .badges { grid-template-columns: repeat(2, 1fr); }
    .products { grid-template-columns: repeat(3, 1fr); }
    .h1 { font-size: 32px; }
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

@media (max-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-bd-grid { grid-template-columns: 1fr; }
    .hero-bd-product { max-width: 320px; margin: 0 auto; }
    .hero-bd-img-wrap { height: 220px; }
    .trust-bar-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 480px) {
    .cardRow, .badges { grid-template-columns: 1fr; }
    .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .prod-img { height: 155px; }
    .hero-bd { padding: 32px 0 40px; }
    .trust-bar-grid { gap: 12px; }
}

/* ── Hero Section ─────────────────────────────────────── */
.hero-bd {
    background: linear-gradient(135deg, #fff5f5 0%, #f0fdf4 60%, #f8fafc 100%);
    padding: 52px 0 60px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}
.hero-bd::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(225,29,72,.07), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-bd::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(22,163,74,.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-bd-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: center;
    position: relative; z-index: 1;
}
.hero-bd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #fda4af;
    color: #e11d48;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(225,29,72,.1);
    letter-spacing: .3px;
}
.hero-bd-h1 {
    font-size: clamp(28px, 4.5vw, 50px);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 18px;
    color: #0f172a;
}
.hero-bd-h1 span { color: #e11d48; }
.hero-bd-p {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 24px;
    max-width: 460px;
}
.hero-bd-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.hero-bd-pills span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 5px 13px;
    border-radius: 99px;
}
.hero-bd-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-bd-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(225,29,72,.38);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: .2px;
}
.hero-bd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(225,29,72,.5);
}
.hero-bd-btn-secondary {
    display: inline-block;
    background: #fff;
    color: #0f172a;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s, background 0.2s;
}
.hero-bd-btn-secondary:hover { border-color: #94a3b8; background: #f8fafc; }

/* Hero product card */
.hero-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s;
}
.hero-product-card:hover { transform: translateY(-4px); }
.hero-product-img {
    position: relative;
    height: 290px;
    overflow: hidden;
}
.hero-product-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
    display: block;
}
.hero-product-card:hover .hero-product-img img { transform: scale(1.05); }
.hero-disc-badge {
    position: absolute; top: 14px; right: 14px;
    background: linear-gradient(135deg, #e11d48, #dc2626);
    color: #fff;
    width: 62px; height: 62px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900; line-height: 1.2; text-align: center;
    box-shadow: 0 4px 16px rgba(225,29,72,.5);
    animation: heroDiscSpin 3s ease-in-out infinite;
    z-index: 2;
}
@keyframes heroDiscSpin {
    0%,100% { transform: rotate(-6deg) scale(1); }
    50% { transform: rotate(6deg) scale(1.1); }
}
.hero-product-body { padding: 16px 18px 20px; }
.hero-product-name {
    font-size: 15px; font-weight: 700; color: #0f172a;
    margin-bottom: 10px; line-height: 1.4;
}
.hero-product-prices {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.hero-price-main { font-size: 26px; font-weight: 900; color: #16a34a; }
.hero-price-strike { font-size: 14px; color: #94a3b8; text-decoration: line-through; font-weight: 600; }
.hero-product-meta {
    display: flex; align-items: center; gap: 6px; font-size: 13px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.hero-stars { color: #f59e0b; font-size: 14px; letter-spacing: -1px; }
.hero-rating-val { color: #475569; font-weight: 600; }
.hero-sold-count { color: #16a34a; font-weight: 700; font-size: 12px; }
.hero-add-btn {
    width: 100%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff; border: none; padding: 13px;
    border-radius: 10px; font-size: 15px; font-weight: 800;
    cursor: pointer; font-family: inherit;
    transition: opacity 0.15s;
}
.hero-add-btn:hover { opacity: 0.88; }

/* ── Trust Bar ────────────────────────────────────────── */
.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: center;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.trust-big-icon { font-size: 28px; flex-shrink: 0; }
.trust-item-text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.trust-item-text small {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}

/* ── Flash badge animation (renamed from bogo) ─────── */
@keyframes flashBadgePulse {
    0%,100% { box-shadow: 0 2px 6px rgba(220,38,38,.3); }
    50% { box-shadow: 0 2px 16px rgba(220,38,38,.7); }
}

/* ── Section label chips ─────────────────────────────── */
.section-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .4px;
    margin-bottom: 10px;
}
.section-chip.red { background: #fff1f2; color: #e11d48; }
.section-chip.green { background: #f0fdf4; color: #16a34a; }
.section-chip.blue { background: #eff6ff; color: #2563eb; }

/* ── Hero Carousel ─────────────────────────────────── */
.hero-carousel {
    position: relative;
}

.hc-track {
    position: relative;
}

.hc-slide {
    display: none;
}
.hc-slide.active {
    display: block;
    animation: hcFadeIn 0.4s ease;
}
@keyframes hcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Prev / Next arrows */
.hc-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background 0.15s, box-shadow 0.15s;
    padding: 0;
    font-family: inherit;
}
.hc-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.hc-prev { left: -14px; }
.hc-next { right: -14px; }

/* Dot indicators */
.hc-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
}
.hc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s, width 0.2s;
}
.hc-dot.active {
    background: #16a34a;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .hc-prev { left: -8px; }
    .hc-next { right: -8px; }
    .hc-arrow { width: 30px; height: 30px; font-size: 18px; }
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE — COMPREHENSIVE FIXES
   ═══════════════════════════════════════════ */

/* ── Global tap-target minimums ─── */
.footer-social-btn  { width: 44px; height: 44px; }
.close-sidebar      { width: 44px; height: 44px; font-size: 22px; }
.qty-selector button{ width: 44px; min-height: 44px; font-size: 20px; }

/* ── Cart sidebar: full width on phones ─── */
@media (max-width: 768px) {
    #cart-sidebar { width: 100%; right: -100%; }
}

/* ── Header: search bar margins on mobile ─── */
@media (max-width: 768px) {
    .nav > form { margin: 0 6px; }
}

/* ── Product detail page ─── */
@media (max-width: 768px) {
    .product-detail-grid { gap: 20px; }
    .p-title { font-size: clamp(20px, 5.5vw, 28px); line-height: 1.25; }
    .p-price { font-size: 22px; }
    .p-actions { flex-wrap: wrap; gap: 10px; }
    .btn-add-cart {
        order: 1; flex: 1 0 100%;
        min-height: 48px; font-size: 16px;
        border-radius: 10px; padding: 14px;
    }
    .qty-selector { order: 2; }
    .btn-buy-now  { padding: 16px; font-size: 17px; }
    .p-short-desc { margin-bottom: 18px; }
    .product-tabs { margin-top: 36px; }
}

/* ── Products listing: 2-col mobile ─── */
@media (max-width: 768px) {
    /* Force 2-col even if inline style exists elsewhere */
    .products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .prod-img  { height: 160px; }
    .prod-info { padding: 10px 10px 12px; }
    .price     { font-size: 15px; margin-top: 4px; }
    .add-btn   { padding: 10px 6px; font-size: 13px; }
}
@media (max-width: 480px) {
    .products  { gap: 10px; }
    .prod-img  { height: 145px; }
    .prod-info { padding: 8px 8px 10px; }
    .price     { font-size: 14px; }
    .add-btn   { padding: 9px 4px; font-size: 12px; }
}

/* ── Sort bar on mobile ─── */
@media (max-width: 600px) {
    .sort-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Trust bar ─── */
@media (max-width: 480px) {
    .trust-bar       { padding: 12px 0; }
    .trust-bar-grid  { grid-template-columns: 1fr 1fr; gap: 12px; }
    .trust-big-icon  { font-size: 22px; }
    .trust-item      { gap: 8px; }
    .trust-item-text strong { font-size: 11px; }
    .trust-item-text small  { font-size: 10px; }
}
@media (max-width: 360px) {
    .trust-bar-grid { grid-template-columns: 1fr; }
}

/* ── Hero BD section ─── */
@media (max-width: 768px) {
    /* CRITICAL: base .hero-bd-grid is defined AFTER the old 768px block,
       so we must override it HERE at the end of the file */
    .hero-bd-grid {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }
    .hero-bd           { padding: 36px 0 44px; }
    /* Stretch carousel wider — break out of container padding, leave 10px sides */
    .hero-carousel {
        max-width: calc(100% + 12px) !important;
        width: calc(100% + 12px);
        margin-left: -6px;
        margin-right: -6px;
    }
    .hero-product-card { border-radius: 14px; }
    .hero-product-img  { height: 240px; }
    /* Move arrows inside the card on mobile so they don't overflow */
    .hc-prev { left: 6px; }
    .hc-next { right: 6px; }
    .hc-arrow {
        background: rgba(255,255,255,0.9);
        box-shadow: 0 2px 8px rgba(0,0,0,.15);
    }
}
@media (max-width: 480px) {
    .hero-bd-h1   { font-size: clamp(22px, 6vw, 32px); }
    .hero-bd-p    { font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
    .hero-bd-pills { gap: 7px; margin-bottom: 20px; }
    .hero-bd-pills span { font-size: 11px; padding: 4px 10px; }
    .hero-bd-ctas { flex-direction: column; gap: 10px; }
    .hero-bd-btn-primary,
    .hero-bd-btn-secondary { width: 100%; text-align: center; box-sizing: border-box; }
    .hero-carousel     { max-width: 100%; }
    .hero-product-img  { height: 200px; }
    .hero-product-body { padding: 12px 14px 16px; }
    .hero-price-main   { font-size: 22px; }
    .hero-disc-badge   { width: 52px; height: 52px; font-size: 12px; }
    .hero-add-btn      { padding: 12px; font-size: 14px; }
    /* Hide arrows on very small phones — touch swipe already works */
    .hc-arrow { display: none; }
}

/* ── Hero (old) section ─── */
@media (max-width: 768px) {
    .heroGrid { gap: 24px; }
    .h1 { font-size: clamp(24px, 6vw, 38px); }
    .p  { font-size: 16px; }
}

/* ── Card row ─── */
@media (max-width: 480px) {
    .cardRow { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card    { padding: 14px 10px; font-size: 13px; }
}

/* ── Footer ─── */
@media (max-width: 480px) {
    .footer-main          { padding: 36px 0 24px; }
    .footer-grid          { gap: 20px; }
    .footer-heading       { font-size: 13px; margin-bottom: 12px; }
    .footer-links li a    { font-size: 13px; }
    .footer-trust strong  { font-size: 13px; }
    .footer-bottom        { padding: 12px 0; font-size: 12px; }
    .footer-bottom-inner  { gap: 10px; }
}

/* ── Messenger bubble mobile ─── */
@media (max-width: 480px) {
    #messenger-bubble {
        padding: 12px;
        bottom: 20px;
        left: 16px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
    }
    #messenger-label { display: none; }
}

/* ── Toast notification ─── */
@media (max-width: 480px) {
    #toast { min-width: calc(100vw - 32px); font-size: 14px; padding: 14px; }
}

/* ── Purchase notification ─── */
@media (max-width: 480px) {
    #purchase-notif {
        min-width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        left: 16px !important;
        right: 16px !important;
        transform: none !important;
        bottom: 90px;
    }
}

/* ── Cart abandonment bar — single line on mobile ─── */
@media (max-width: 768px) {
    #cart-abandon-bar {
        flex-wrap: nowrap !important;
        padding: 8px 16px !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }
    /* Shrink + truncate the text so button and × stay on same line */
    #cart-abandon-bar > span {
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex-shrink: 1;
    }
    #cart-abandon-bar > a {
        font-size: 11px !important;
        padding: 6px 12px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    #cart-abandon-bar > button {
        flex-shrink: 0;
    }
}

/* ── Checkout form tweaks ─── */
@media (max-width: 480px) {
    .checkout-grid { gap: 16px; }
}

/* ── Exit popup ─── */
@media (max-width: 480px) {
    #exit-popup-discount > div,
    #exit-popup-overlay > div { max-width: calc(100vw - 32px) !important; padding: 24px 20px !important; }
}

/* ── Product details page ─── */
@media (max-width: 768px) {
    /* Title */
    .product-detail-grid h1 { font-size: clamp(20px, 5.5vw, 28px) !important; }

    /* Action buttons — stack vertically on small phones */
    #main-action-btns { flex-direction: column !important; }
    #main-action-btns button { width: 100% !important; padding: 14px !important; font-size: 15px !important; }

    /* "You might also like" → 2-col */
    .pdp-related-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .pdp-related-grid img { height: 140px !important; }
}

/* ── Cart page ─── */
@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr !important; gap: 20px; }

    /* Table → card rows */
    .cart-tbl thead { display: none; }
    .cart-tbl, .cart-tbl tbody { display: block; width: 100%; }

    /* Each row = two lines: [image+name] then [price · qty · total · ×] */
    .cart-tbl tr {
        display: grid;
        grid-template-columns: auto 1fr auto auto auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 6px;
        padding: 14px 0;
        border-bottom: 1px solid #e2e8f0;
        align-items: center;
    }
    /* Col 1: image+name spans all columns */
    .cart-tbl tr td:nth-child(1) {
        grid-column: 1 / -1;
        display: flex; align-items: center; gap: 12px;
        padding: 0;
    }
    /* Price */
    .cart-tbl tr td:nth-child(2) {
        padding: 0; font-size: 13px; color: #64748b; font-weight: 600;
    }
    /* Qty badge */
    .cart-tbl tr td:nth-child(3) {
        padding: 0; font-size: 13px;
    }
    /* Total */
    .cart-tbl tr td:nth-child(4) {
        padding: 0; font-size: 13px; font-weight: 800; color: #0f172a;
    }
    /* Remove × */
    .cart-tbl tr td:nth-child(5) {
        padding: 0;
    }

    /* Order summary full width */
    .cart-layout > div:last-child { padding: 18px !important; }

    /* "You'll also love" recs: 2-col */
    .container [style*="minmax(200px"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* ── Out of stock product cards ───────────────────── */
.product.is-oos .prod-img img {
    filter: grayscale(100%);
    opacity: .55;
}

.product.is-oos:hover .prod-img img {
    transform: none;
}

.product.is-oos .price {
    color: #64748b;
}

.oos-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    background: #475569;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .3px;
}

.oos-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    padding: 6px 4px;
    letter-spacing: .3px;
}

.add-btn.oos-btn {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.add-btn.oos-btn:hover {
    opacity: 1;
    transform: none;
}
