/* ══════════════════════════════════════════════════════════
   BUYAB FACTORY — style.css
   ══════════════════════════════════════════════════════════ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */
:root {
    --primary:         #B5174D;
    --secondary:       #E8185A;
    --dark:            #2D1421;
    --footer-bg:       #1A0B12;
    --text-primary:    #2D1421;
    --text-secondary:  #6B3A4A;
    --bg-white:        #FFFFFF;
    --bg-lighter:      #FDF5F7;
    --border:          #E8D0D8;
    --success:         #28A745;
    --whatsapp:        #25D366;
    --shadow-sm:       0 2px 8px rgba(181,23,77,.08);
    --shadow-md:       0 8px 24px rgba(181,23,77,.12);
    --shadow-lg:       0 16px 48px rgba(181,23,77,.16);
    --radius-sm:       8px;
    --radius-md:       16px;
    --radius-lg:       24px;
    --transition:      all 0.3s ease;
    --header-height:   76px;
    --bottom-nav-h:    65px;
    --font-heading:    'Montserrat', sans-serif;
    --font-body:       'Roboto', sans-serif;
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    background: var(--bg-lighter);
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    word-wrap: break-word;
}
h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { word-wrap: break-word; }

/* ── 4. LAYOUT UTILITIES ──────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 60px 0;
}
.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    text-align: center;
    margin-bottom: 8px;
    color: var(--primary);
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 0.98rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    min-height: 44px;
    text-align: center;
    line-height: 1.2;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--secondary); transform: scale(1.02); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}
.btn-whatsapp:hover { background: #1eb455; transform: scale(1.02); }
.btn-block { width: 100%; }

.text-strike { text-decoration: line-through; color: var(--text-secondary); font-weight: 400; }

.page-section { display: none; }
.page-section.active { display: block; animation: fadePage .4s ease; }
@keyframes fadePage { from { opacity: 0; } to { opacity: 1; } }

main { padding-top: var(--header-height); }

/* ── 5. HEADER ────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    max-width: 1280px;
    margin: 0 auto;
    transition: var(--transition);
}
.header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    cursor: pointer;
}
.logo-area img { height: 48px; width: auto; }

.header-nav {
    display: flex;
    gap: 6px;
    margin-left: 8px;
}
.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: .95rem;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--bg-lighter); }
.nav-link.active { color: var(--primary); position: relative; }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.icon-btn {
    position: relative;
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 1.25rem;
}
.icon-btn:hover { background: var(--bg-lighter); color: var(--primary); }
.badge-count {
    position: absolute;
    top: 4px; right: 2px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    background: var(--primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.badge-bounce { animation: badgeBounce .4s ease; }
@keyframes badgeBounce {
    0%,100% { transform: scale(1); }
    40% { transform: scale(1.4); }
}
.auth-buttons { display: flex; gap: 6px; }
.auth-buttons .btn { padding: 7px 14px; min-height: 38px; font-size: .85rem; }

.user-menu { position: relative; }
.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: .9rem;
}
.user-menu-toggle:hover { background: var(--bg-lighter); }
.user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    min-width: 170px;
    padding: 6px;
    display: none;
}
.user-dropdown.open { display: block; }
.user-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--text-primary);
}
.user-dropdown button:hover { background: var(--bg-lighter); color: var(--primary); }

.mobile-search-icon { display: none; }
.hamburger-btn { display: none; }
.hamburger-lines { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 22px; }
.hamburger-lines span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}
.hamburger-btn[aria-expanded="true"] .hamburger-lines span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] .hamburger-lines span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] .hamburger-lines span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile slide-down menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0 20px;
    border-top: 0 solid var(--border);
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease, border-width .35s ease;
}
.mobile-menu.open {
    max-height: 320px;
    padding: 14px 20px 18px;
    border-top-width: 1px;
}
.mobile-menu-auth, .mobile-menu-user { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-greeting { font-weight: 700; font-family: var(--font-heading); color: var(--primary); text-align: center; margin-bottom: 4px; }

/* ── 6. SEARCH BAR ────────────────────────────────────────── */
.search-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 460px;
}
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.search-box input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 11px 14px;
    outline: none;
    font-size: .95rem;
}
.search-box button {
    padding: 0 16px;
    height: 44px;
    color: var(--primary);
    font-size: 1.1rem;
}
.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1100;
}
.search-results.open { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-lighter);
    transition: var(--transition);
}
.search-result-item:hover { background: var(--bg-lighter); }
.search-result-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.search-result-item .sr-name { font-weight: 600; font-size: .9rem; }
.search-result-item .sr-price { color: var(--primary); font-weight: 700; font-size: .9rem; }
.search-empty { padding: 18px; text-align: center; color: var(--text-secondary); }

.mobile-search-panel {
    display: none;
    padding: 0 20px 12px;
}
.mobile-search-panel.open { display: block; }

/* ── 7. HERO SECTION ──────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #2D1421;
    background-image: linear-gradient(135deg, rgba(181,23,77,.55), rgba(45,20,33,.75)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px 20px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.28);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 20px;
    animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero h2 { color: #FFD6E4; font-size: clamp(1.1rem, 2.5vw, 1.6rem); margin-bottom: 14px; font-weight: 600; }
.hero p { font-size: clamp(1rem, 2vw, 1.15rem); margin-bottom: 30px; opacity: .95; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 30px; font-size: 1rem; }

/* ── 8. TRUST STRIP ───────────────────────────────────────── */
.trust-strip {
    background: var(--bg-lighter);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 34px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.trust-item img { width: 52px; height: 52px; object-fit: contain; background: transparent; }
.trust-item span { font-weight: 600; font-size: .95rem; color: var(--text-primary); }

/* ── 9. PRODUCT CARDS ─────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-lighter);
}
.card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    z-index: 2;
}
.card-wishlist {
    position: absolute;
    top: 10px; right: 10px;
    width: 38px; height: 38px;
    background: rgba(255,255,255,.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    z-index: 2;
    transition: var(--transition);
}
.card-wishlist:hover { background: #fff; transform: scale(1.1); }
.card-wishlist.active { color: #fff; background: var(--primary); }
.card-wishlist.pop { animation: heartPop .35s ease; }
@keyframes heartPop { 0%,100% { transform: scale(1); } 45% { transform: scale(1.35); } }
.card-quickview {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(45,20,33,.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: .82rem;
    font-weight: 600;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    white-space: nowrap;
}
.product-card:hover .card-quickview { opacity: 1; transform: translateX(-50%) translateY(0); }

.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    color: var(--text-primary);
}
.card-rating { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-secondary); }
.card-rating .stars { color: #FFB400; letter-spacing: 1px; }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price .now { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.card-price .was { font-size: .9rem; }
.card-price .off { font-size: .78rem; color: var(--success); font-weight: 700; }
.card-swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
    cursor: pointer;
    padding: 0;
    transition: transform .15s ease, box-shadow .15s ease;
}
.swatch:hover { transform: scale(1.15); }
.swatch.active { box-shadow: 0 0 0 2px var(--primary); transform: scale(1.1); }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn { flex: 1; padding: 9px 8px; font-size: .82rem; min-height: 40px; }

/* Featured horizontal slider */
.featured-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.featured-slider::-webkit-scrollbar { height: 8px; }
.featured-slider::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.featured-slider .product-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* ── 10. PRODUCT SECTIONS ─────────────────────────────────── */
.product-section { padding: 50px 0; }
.product-section:nth-child(even) { background: var(--bg-lighter); }
.product-section .section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 30px;
}

/* ── 11. FILTER TABS ──────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.filter-tab {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    min-height: 40px;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── 12. MODALS ───────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45,20,33,.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(.9);
    transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--text-primary);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.modal-close:hover { background: var(--primary); color: #fff; }

/* Quick view modal */
.modal-quick { max-width: 720px; }
.quick-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.quick-img { aspect-ratio: 1/1; background: var(--bg-lighter); }
.quick-img img { width: 100%; height: 100%; object-fit: cover; }
.quick-info { padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.quick-info h3 { color: var(--text-primary); }
.quick-price { display: flex; align-items: baseline; gap: 10px; }
.quick-price .now { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* Product detail modal */
.modal-detail { max-width: 1100px; }
.detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px; }
.detail-gallery .main-img {
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-lighter);
    margin-bottom: 12px;
}
.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-thumbs img {
    width: 68px; height: 68px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
}
.detail-thumbs img.active { border-color: var(--primary); }
.detail-info { display: flex; flex-direction: column; gap: 14px; }
.detail-info h2 { color: var(--text-primary); }
.detail-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.detail-price .now { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.detail-savings { color: var(--success); font-weight: 700; font-size: .9rem; }
.option-group { }
.option-label { font-weight: 600; font-family: var(--font-heading); margin-bottom: 8px; display: block; font-size: .92rem; }
.option-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.color-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.color-btn.active { box-shadow: 0 0 0 2px var(--primary); transform: scale(1.1); }
.size-btn {
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-weight: 600;
    font-size: .85rem;
    min-height: 42px;
    transition: var(--transition);
}
.size-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-selector { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-selector button { width: 42px; height: 42px; font-size: 1.2rem; color: var(--primary); font-weight: 700; }
.qty-selector button:hover { background: var(--bg-lighter); }
.qty-selector input { width: 54px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 42px; }
.detail-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-cta-row .btn { flex: 1; min-width: 140px; }
.stock-info { color: var(--success); font-weight: 600; font-size: .9rem; }
.sku-info { color: var(--text-secondary); font-size: .82rem; }

/* Bulk calculator */
.bulk-calc {
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}
.bulk-calc h4 { font-family: var(--font-heading); margin-bottom: 12px; color: var(--primary); }
.bulk-calc label { font-weight: 600; font-size: .85rem; display: block; margin-bottom: 6px; }
.bulk-calc input[type=number] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.bulk-perunit-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.bulk-perunit-row input[type=number] { margin-bottom: 0; flex: 1; min-width: 0; }
.bulk-perunit-row .btn-auto { flex-shrink: 0; padding: 8px 16px; min-height: auto; white-space: nowrap; }
.bulk-result { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.bulk-result strong { color: var(--primary); }
.bulk-tiers { font-size: .78rem; color: var(--text-secondary); margin: 10px 0; line-height: 1.5; }
.bulk-freeship { color: var(--success); font-weight: 700; }

/* Tabs */
.detail-tabs { grid-column: 1 / -1; padding: 0 30px 30px; }
.tab-nav { display: flex; gap: 8px; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.tab-btn {
    padding: 12px 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.feature-list li { padding: 6px 0 6px 26px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.spec-table td:first-child { font-weight: 600; width: 40%; color: var(--text-secondary); }

/* Sticky add bar inside modal */
.modal-sticky-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 30px;
    display: none;
    gap: 10px;
    align-items: center;
    z-index: 5;
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.modal-sticky-bar.show { display: flex; }
.modal-sticky-bar .sticky-price { font-weight: 800; color: var(--primary); font-size: 1.2rem; margin-right: auto; }

/* ── 13. CART DRAWER ──────────────────────────────────────── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45,20,33,.5);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 100%;
    max-width: 420px;
    background: #fff;
    z-index: 1950;
    transform: translateX(100%);
    transition: transform .35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.drawer-header h3 { color: var(--primary); font-size: 1.15rem; }
.drawer-header button { font-size: 1.6rem; color: var(--text-secondary); width: 40px; height: 40px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-footer { padding: 18px 20px; border-top: 1px solid var(--border); background: var(--bg-lighter); }
.drawer-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-lighter);
    align-items: center;
}
.drawer-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.drawer-item .di-name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.drawer-item .di-meta { font-size: .78rem; color: var(--text-secondary); }
.drawer-item .di-price { font-weight: 700; color: var(--primary); font-size: .95rem; }
.di-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.di-qty button { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px; color: var(--primary); font-weight: 700; }
.di-remove { background: none; color: #d33; font-size: .78rem; font-weight: 600; margin-top: 4px; }
.drawer-subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.drawer-subtotal span:last-child { color: var(--primary); }
.drawer-empty { text-align: center; padding: 50px 20px; color: var(--text-secondary); }
.drawer-empty .emoji { font-size: 3rem; display: block; margin-bottom: 14px; }
.drawer-footer .btn { margin-bottom: 8px; }

/* ── 14. WISHLIST DRAWER ──────────────────────────────────── */
/* uses shared .drawer styles */

/* ── 15. PRIVATE LABEL PAGE ───────────────────────────────── */
.pl-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}
.pl-hero img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.pl-offer-list li { padding: 8px 0 8px 28px; position: relative; font-size: 1rem; }
.pl-offer-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; font-size: 1.1rem; }
.pl-process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 40px 0;
}
.pl-step {
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 14px;
    box-shadow: var(--shadow-sm);
}
.pl-step .step-num {
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    margin: 0 auto 12px;
    font-size: 1.2rem;
}
.pl-step h4 { font-size: .95rem; }
.pl-pricing {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    margin: 40px 0;
}
.pl-pricing h3 { color: #fff; font-size: 1.8rem; }
.pl-pricing .price-big { font-size: 2.6rem; font-weight: 800; font-family: var(--font-heading); margin: 8px 0; }
.pl-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.pl-gallery img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); width: 100%; }
.pl-badges { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.pl-badge {
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}
.pl-badge .emoji { font-size: 1.8rem; display: block; }

/* ── 16. ABOUT PAGE ───────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 50px;
}
.why-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card .emoji { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--primary); }
.why-card p { color: var(--text-secondary); font-size: .92rem; }
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
}
.stat-item .num { font-size: 2.2rem; font-weight: 800; font-family: var(--font-heading); }
.stat-item .lbl { font-size: .9rem; opacity: .9; }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; margin: 20px 0; }

/* ── 17. TESTIMONIALS ─────────────────────────────────────── */
.testi-slider { position: relative; max-width: 760px; margin: 0 auto; overflow: hidden; }
.testi-track { display: flex; transition: transform .5s ease; }
.testi-card {
    flex: 0 0 100%;
    padding: 34px 30px;
    text-align: center;
}
.testi-card .quote { font-size: 1.1rem; font-style: italic; color: var(--text-primary); margin-bottom: 20px; line-height: 1.6; }
.testi-card img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.testi-card .t-name { font-weight: 700; font-family: var(--font-heading); }
.testi-card .t-role { color: var(--text-secondary); font-size: .88rem; }
.testi-card .t-stars { color: #FFB400; margin-top: 6px; letter-spacing: 2px; }
.testi-nav { display: flex; justify-content: center; gap: 10px; margin-top: 16px; align-items: center; }
.testi-arrow {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--bg-lighter);
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testi-arrow:hover { background: var(--primary); color: #fff; }
.testi-dots { display: flex; gap: 8px; }
.testi-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); cursor: pointer; }
.testi-dot.active { background: var(--primary); width: 26px; border-radius: 6px; }

/* ── 18. FAQ ACCORDION ────────────────────────────────────── */
.faq-container { max-width: 780px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: .98rem;
    color: var(--text-primary);
}
.faq-question .faq-icon { color: var(--primary); font-size: 1.4rem; transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 20px 18px; color: var(--text-secondary); font-size: .93rem; }

/* ── 19. CONTACT PAGE ─────────────────────────────────────── */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.contact-card .emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); }
.contact-card a { display: block; color: var(--text-secondary); font-size: .92rem; padding: 2px 0; }
.contact-card a:hover { color: var(--primary); }
.contact-wa-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 720px; margin: 0 auto; }
.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(181,23,77,.1); }
textarea.form-control { resize: vertical; min-height: 110px; }
.field-error { color: #d33; font-size: .8rem; margin-top: 4px; display: none; }
.form-group.error .form-control { border-color: #d33; }
.form-group.error .field-error { display: block; }
.form-message { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 14px; font-weight: 600; display: none; }
.form-message.success { background: #e6f6ec; color: var(--success); display: block; }
.form-message.error { background: #fce8e8; color: #d33; display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.btn-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}
.btn.loading .btn-spinner { display: inline-block; }
.btn.loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 20. FOOTER (shared, plus policy-extra.css) ───────────── */
.footer {
    background: var(--footer-bg);
    color: #E8D0D8;
    padding: 50px 0 0;
    margin-top: 40px;
}
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer a { color: #C99CAC; transition: var(--transition); }
.footer a:hover { color: #fff; }
.footer-col p { color: #C99CAC; font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.footer-col img { height: 44px; margin-bottom: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .92rem; cursor: pointer; }
.footer-trust-badge {
    background: rgba(181,23,77,.25);
    border: 1px solid rgba(181,23,77,.4);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    margin: 14px 0;
    color: #fff;
}
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .85rem;
    color: #A87788;
}

/* ── 21. BOTTOM NAV (mobile only) ─────────────────────────── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    box-shadow: 0 -4px 16px rgba(181,23,77,.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-secondary);
    font-size: .68rem;
    font-weight: 600;
    height: 100%;
    transition: var(--transition);
    position: relative;
}
.bottom-nav-item .bn-icon { font-size: 1.25rem; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active::after {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 48px; height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; }

/* Toast */
.toast-wrap {
    position: fixed;
    bottom: 90px; left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 360px;
    pointer-events: none;
}
.toast {
    background: var(--dark);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    box-shadow: var(--shadow-md);
    animation: toastIn .3s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: #d33; }
.toast.info { background: var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── 22. ANIMATIONS & KEYFRAMES ───────────────────────────── */
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* ── 23. SCROLL REVEAL CLASSES ────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── 24. RESPONSIVE — TABLET (768px) ──────────────────────── */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .pl-process { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header-nav { display: none; }
    .auth-buttons { display: none; }
    .user-menu { display: none; }
    .search-wrap { display: none; }
    .mobile-search-icon { display: inline-flex; }
    .mobile-search-panel.open { display: block; }
    .hamburger-btn { display: inline-flex; }
    .mobile-menu { display: flex; }
    .logo-area img { height: 40px; }

    .bottom-nav { display: flex; }
    main { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }

    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .pl-hero { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .quick-body { grid-template-columns: 1fr; }
    .detail-body { grid-template-columns: 1fr; padding: 24px 20px; }
    .detail-tabs { padding: 0 20px 24px; }
    .modal-sticky-bar { padding: 12px 20px; }
    .back-to-top { bottom: calc(var(--bottom-nav-h) + 16px); }
}

/* ── 25. RESPONSIVE — MOBILE (480px) ──────────────────────── */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section { padding: 40px 0; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .why-grid { grid-template-columns: 1fr; }
    .pl-process { grid-template-columns: 1fr; }
    .pl-gallery { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 26px 14px; }
    .card-actions { flex-direction: column; }
    .card-body { padding: 12px; }
    .detail-cta-row .btn { min-width: 100%; }
}

/* ── 26. RESPONSIVE — SMALL (380px) ───────────────────────── */
@media (max-width: 380px) {
    .product-grid { grid-template-columns: 1fr; }
    .featured-slider .product-card { flex: 0 0 220px; }
}
