/* ==========================================================================
   GadgetsBook.in — Brand Theme v3.0
   Yellow #FFD500 + Black #111111 — Official Brand Colors
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---- Variables ---- */
:root {
    /* ---- Brand Colors ---- */
    --primary:      #FFD500;   /* GadgetsBook Yellow */
    --primary-dark: #e6c000;   /* Darker Yellow (hover) */
    --primary-light:#fff9d6;   /* Light Yellow tint */
    --brand-black:  #111111;   /* GadgetsBook Black */
    --brand-black2: #1e1e1e;   /* Slightly lighter black */

    /* ---- Aliases (keeps old references working) ---- */
    --blue:         #111111;   /* All blue → black */
    --blue-dark:    #000000;
    --blue-light:   #fff9d6;   /* All blue-light → light yellow */

    /* ---- Status Colors ---- */
    --red:          #e53935;
    --green:        #2e7d32;
    --orange:       #f57c00;
    --star:         #FFD500;   /* Stars → brand yellow */

    /* ---- Layout ---- */
    --bg:           #f5f5f5;
    --surface:      #ffffff;
    --border:       #e5e7eb;
    --border-dark:  #d1d5db;
    --text-1:       #111111;
    --text-2:       #444444;
    --text-3:       #999999;
    --shadow-sm:    0 1px 4px rgba(0,0,0,0.10);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.13);
    --shadow-lg:    0 8px 36px rgba(0,0,0,0.18);
    --radius:       10px;
    --font-head:    'DM Sans', sans-serif;
    --font-body:    'Inter', sans-serif;
    --header-h:     80px;
    --sidebar-w:    260px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-1);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.ann-bar {
    background: linear-gradient(90deg, #111111, #1e1e1e, #111111);
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 34px;
    font-size: 0.75rem;
    font-family: var(--font-head);
}
.ann-bar__inner { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-bar__social { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.ann-bar__social a { color: rgba(255,255,255,0.7); transition: color 0.2s; display: flex; }
.ann-bar__social a:hover { color: #fff; }
.ann-bar__social i { width: 14px; height: 14px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
    padding: 0 20px;
    max-width: 1380px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}
/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex: 1; }
.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    /* The logo has white bg, crop it visually */
    mix-blend-mode: multiply;
    transition: height 0.2s ease;
}
.logo-text-fallback {
    display: none; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--brand-black);
}
.logo-text-fallback i { width: 22px; height: 22px; }
.logo-text-fallback em { color: var(--primary); font-style: normal; }

/* Search */
.header-search {
    flex: 1; max-width: 540px;
    display: flex; align-items: center;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
    margin: 0 auto;
}
.header-search:focus-within { border-color: var(--primary); }
.header-search__input {
    flex: 1; padding: 9px 14px; background: none; border: none;
    font-size: 0.875rem; color: var(--text-1);
}
.header-search__input:focus { outline: none; }
.header-search__input::placeholder { color: var(--text-3); }
.header-search__btn {
    background: var(--brand-black); color: var(--primary);
    padding: 9px 16px; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.header-search__btn:hover { background: #000; }
.header-search__btn i { width: 16px; height: 16px; }
.header-search__clear {
    padding: 8px; color: var(--text-3); display: flex;
    transition: color 0.2s;
}
.header-search__clear:hover { color: var(--red); }
.header-search__clear i { width: 14px; height: 14px; }

/* Right */
.header-right { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; flex-shrink: 0; }
.header-wa-btn {
    display: flex; align-items: center; gap: 10px;
    background: #25D366; color: #fff;
    padding: 8px 16px; border-radius: var(--radius);
    font-family: var(--font-head); font-size: 0.8rem;
    transition: background 0.2s, transform 0.2s;
    line-height: 1.3;
}
.header-wa-btn:hover { background: #1ea855; transform: translateY(-1px); }
.header-wa-btn small { display: block; font-weight: 400; font-size: 0.65rem; opacity: 0.85; }
.header-wa-btn strong { font-weight: 700; font-size: 0.85rem; }
.header-icons { display: flex; gap: 6px; }
.hicon-btn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2);
    transition: all 0.2s; background: #fff;
}
.hicon-btn:hover { border-color: var(--primary); color: var(--brand-black); background: var(--primary-light); }
.hicon-btn i { width: 18px; height: 18px; }
.hicon-badge {
    position: absolute; top: -5px; right: -5px;
    min-width: 18px; height: 18px;
    background: var(--primary); color: var(--brand-black);
    font-size: 0.6rem; font-weight: 700;
    border-radius: 99px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; font-family: var(--font-head);
}

/* Category Nav */
.cat-nav {
    background: var(--brand-black);
    border-top: 1px solid rgba(255,213,0,0.15);
}
.cat-nav__inner {
    display: flex; align-items: center; gap: 2px;
    max-width: 1380px; margin: 0 auto; padding: 0 20px;
    overflow-x: auto; scrollbar-width: none;
}
.cat-nav__inner::-webkit-scrollbar { display: none; }
.cat-nav__pill {
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap; padding: 8px 14px;
    font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
    color: rgba(255,255,255,0.75);
    background: transparent; border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s; flex-shrink: 0;
}
.cat-nav__pill i { width: 13px; height: 13px; }
.cat-nav__pill:hover { color: #fff; background: rgba(255,213,0,0.08); }
.cat-nav__pill.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(255,213,0,0.1); }

/* ==========================================================================
   PAGE BODY — SIDEBAR + MAIN
   ========================================================================== */
.page-body {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: 0;
    max-width: 1380px;
    margin: 0 auto;
    padding: 20px;
    align-items: start;
    gap: 20px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--header-h) + 34px + 10px); }
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.widget-title {
    font-family: var(--font-head); font-size: 0.85rem; font-weight: 700;
    color: var(--text-1); text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

/* Price Slider */
.price-slider-wrap { display: flex; flex-direction: column; gap: 12px; }
.price-track { position: relative; height: 4px; background: var(--border); border-radius: 4px; margin: 16px 4px; }
.price-fill { position: absolute; height: 100%; background: var(--primary); border-radius: 4px; }
.price-range {
    position: absolute; width: 100%; height: 4px;
    -webkit-appearance: none; appearance: none;
    background: transparent; pointer-events: none; top: 0; left: 0;
}
.price-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--brand-black); border: 3px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    pointer-events: all; cursor: pointer;
}
.price-inputs { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-2); }
.price-val { background: var(--bg); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); font-weight: 600; }
.price-dash { color: var(--text-3); }
.btn-filter-apply {
    background: var(--brand-black); color: var(--primary);
    padding: 8px 16px; border-radius: var(--radius);
    font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
    transition: all 0.2s; width: 100%;
}
.btn-filter-apply:hover { background: #000; box-shadow: 0 4px 12px rgba(255,213,0,0.3); }

/* Color Filter */
.color-filter-list { display: flex; flex-direction: column; gap: 8px; }
.color-filter-item label {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 0.83rem; color: var(--text-2);
}
.color-filter-item input { cursor: pointer; accent-color: var(--primary); }
.color-swatch { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.color-filter-item em { color: var(--text-3); font-style: normal; margin-left: auto; }

/* Category Accordion */
.cat-accordion { display: flex; flex-direction: column; gap: 2px; }
.cat-acc-btn {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 8px 10px; border-radius: 8px;
    font-size: 0.83rem; color: var(--text-2); font-weight: 500;
    transition: all 0.2s; text-align: left;
}
.cat-acc-btn i { width: 14px; height: 14px; flex-shrink: 0; }
.cat-acc-btn:hover { background: var(--primary-light); color: var(--brand-black); font-weight: 600; }
.cat-acc-btn.active { background: var(--primary); color: var(--brand-black); font-weight: 700; }
.cat-count { margin-left: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 99px; font-size: 0.7rem; padding: 1px 7px; color: var(--text-3); }

/* Status Filter */
.status-filter-list { display: flex; flex-direction: column; gap: 8px; }
.status-filter-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.83rem; color: var(--text-2); }
.status-filter-list input { accent-color: var(--primary); cursor: pointer; }

/* Featured Products */
.featured-products-list { display: flex; flex-direction: column; gap: 12px; }
.feat-prod-item { display: flex; gap: 10px; align-items: center; }
.feat-prod-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; cursor: pointer; }
.feat-prod-info { flex: 1; min-width: 0; }
.feat-prod-name { font-size: 0.78rem; font-weight: 600; color: var(--text-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.feat-prod-name:hover { color: var(--brand-black); text-decoration: underline; }
.feat-prod-price { font-size: 0.82rem; font-weight: 700; color: var(--red); margin-top: 2px; }
.feat-prod-old { font-size: 0.72rem; color: var(--text-3); text-decoration: line-through; }
.feat-stars { display: flex; gap: 1px; margin-top: 2px; }
.feat-stars .s { color: var(--star); font-size: 0.65rem; }

/* ==========================================================================
   MAIN AREA
   ========================================================================== */
.main-area { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.page-title-bar { text-align: center; padding: 8px 0; }
.page-title {
    font-family: var(--font-head); font-size: 1.8rem; font-weight: 800;
    color: var(--text-1); letter-spacing: 2px;
}

/* Category Bubbles */
.cat-bubbles-row {
    display: flex; gap: 12px;
    overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px;
}
.cat-bubbles-row::-webkit-scrollbar { display: none; }
.cat-bubble {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; flex-shrink: 0; min-width: 68px;
    transition: transform 0.25s;
}
.cat-bubble:hover { transform: translateY(-3px); }
.cat-bubble__icon {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    border: 3px solid transparent;
}
.cat-bubble:hover .cat-bubble__icon { box-shadow: var(--shadow-md); }
.cat-bubble.active .cat-bubble__icon { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,213,0,0.3); }
.cat-bubble__icon i { width: 24px; height: 24px; }
.cat-bubble span { font-size: 0.7rem; font-weight: 600; color: var(--text-2); text-align: center; line-height: 1.2; }
.cat-bubble:hover span, .cat-bubble.active span { color: var(--brand-black); font-weight: 700; }
.bubble-count {
    font-size: 0.6rem; font-weight: 700;
    background: var(--primary); color: var(--brand-black);
    border-radius: 99px; padding: 1px 5px;
    position: absolute; bottom: 18px; right: -4px;
}
.cat-bubble { position: relative; }
/* Skeleton for bubble row while loading */
.cat-bubble-skeleton {
    width: 68px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cat-bubble-skeleton::before {
    content: ''; display: block;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px; animation: shimmer 1.5s infinite;
}
.cat-bubble-skeleton::after {
    content: ''; display: block;
    width: 44px; height: 8px; border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px; animation: shimmer 1.5s infinite;
}

/* Filter Bar */
.filter-bar {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0 16px; display: flex; flex-direction: column; gap: 0;
}
.filter-tabs {
    display: flex; gap: 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 12px 16px; font-family: var(--font-head); font-size: 0.82rem; font-weight: 600;
    color: var(--text-2); border-bottom: 3px solid transparent;
    transition: all 0.2s; background: none;
}
.filter-tab:hover { color: var(--brand-black); }
.filter-tab.active { color: var(--brand-black); border-bottom-color: var(--primary); background: var(--primary-light); }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tab-dot--blue  { background: var(--brand-black); }
.tab-dot--red   { background: var(--red); }
.tab-dot--green { background: var(--green); }
.sort-bar { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.results-count { font-size: 0.78rem; color: var(--text-3); white-space: nowrap; }
.sort-select {
    border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px;
    font-size: 0.8rem; color: var(--text-2); background: #fff; cursor: pointer;
    margin-left: auto;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text-3);
    transition: all 0.2s; background: #fff;
}
.view-btn:hover { border-color: var(--primary); color: var(--brand-black); }
.view-btn.active { background: var(--brand-black); color: var(--primary); border-color: var(--brand-black); }
.view-btn i { width: 14px; height: 14px; }

/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.product-grid.list-view { grid-template-columns: 1fr; }

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.product-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.06), 0 0 0 1px var(--primary);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Image */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}
.card-img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .card-img {
    transform: scale(1.05);
}

/* Quick View overlay on hover */
.card-quickview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}
.product-card:hover .card-quickview-overlay {
    opacity: 1;
}
.btn-quickview-overlay {
    background: var(--primary);
    color: var(--brand-black);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-head);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-quickview-overlay:hover {
    background: var(--brand-black);
    color: var(--primary);
    border-color: var(--brand-black);
}
.btn-quickview-overlay i {
    width: 12px;
    height: 12px;
}

/* Wishlist heart on card */
.card-wish-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    transition: all 0.25s ease;
    z-index: 5;
    opacity: 0;
    box-shadow: var(--shadow-sm);
}
.product-card:hover .card-wish-btn {
    opacity: 1;
}
.card-wish-btn:hover {
    color: var(--red);
    border-color: var(--red);
    transform: scale(1.1);
}
.card-wish-btn i {
    width: 15px;
    height: 15px;
}

/* Badges */
.badge-new, .badge-sale, .badge-hot, .badge-disc {
    position: absolute;
    font-family: var(--font-head);
    font-size: 0.65rem;
    font-weight: 850;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: var(--shadow-sm);
}
.badge-new {
    top: 10px;
    left: 10px;
    background: var(--green);
    color: #fff;
}
.badge-sale {
    top: 10px;
    left: 10px;
    background: var(--brand-black);
    color: var(--primary);
    border: 1px solid var(--primary);
}
.badge-hot {
    top: 10px;
    left: 10px;
    background: var(--orange);
    color: #fff;
}
.badge-disc {
    top: 10px;
    left: 10px;
    right: auto;
    background: var(--red);
    color: #fff;
}
/* Sibling offset: if a SALE or NEW badge is already present on the top-left, stack it beautifully below! */
.badge-sale + .badge-disc, .badge-new + .badge-disc, .badge-hot + .badge-disc {
    top: 36px;
}

/* Card Body */
.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.card-category-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-3);
    background: transparent;
    padding: 0;
    display: inline-block;
    width: fit-content;
}
.card-title {
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 38px;
    transition: color 0.2s;
}
.card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.star {
    color: #d1d5db;
    font-size: 0.75rem;
}
.star.filled {
    color: var(--star);
}
.card-review-count {
    font-size: 0.68rem;
    color: var(--text-3);
    margin-left: 4px;
}
.card-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.price-curr {
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--red);
}
.price-orig {
    font-size: 0.82rem;
    color: var(--text-3);
    text-decoration: line-through;
}
.price-disc-pct {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--green);
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 4px;
}
.card-stock {
    font-size: 0.72rem;
    color: var(--green);
    font-weight: 600;
}
.card-stock.oos {
    color: var(--red);
}
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--brand-black);
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 6px;
    border: 1px solid var(--brand-black);
}
.btn-add-to-cart:hover {
    background: var(--primary);
    color: var(--brand-black);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(255,213,0,0.3);
    transform: translateY(-1px);
}
.btn-add-to-cart:disabled {
    background: #eaeaea;
    border-color: #eaeaea;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-add-to-cart i {
    width: 14px;
    height: 14px;
}

/* LIST VIEW card */
.product-grid.list-view .product-card {
    flex-direction: row;
}
.product-grid.list-view .card-img-wrapper {
    width: 180px;
    min-width: 180px;
    aspect-ratio: auto;
    height: 160px;
}
.product-grid.list-view .card-content {
    flex-direction: column;
}

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.active-filter-chip {
    display: flex; align-items: center; gap: 5px;
    background: var(--primary-light); color: var(--brand-black); border: 1px solid rgba(255,213,0,0.5);
    font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px;
}
.active-filter-chip button { color: var(--brand-black); display: flex; }
.active-filter-chip button i { width: 12px; height: 12px; }

/* Load More */
.load-more-wrap { text-align: center; padding: 20px 0; }
.btn-load-more {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-black); color: var(--primary);
    font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
    padding: 12px 36px; border-radius: 99px;
    transition: all 0.2s; box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
}
.btn-load-more:hover { background: #000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,213,0,0.3); }
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton */
@keyframes shimmer {
    0% { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.skeleton-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.skel { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 600px; animation: shimmer 1.5s infinite; border-radius: 4px; }

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */
.trust-section {
    background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 28px 20px; margin-top: 10px;
}
.trust-container {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
    max-width: 1380px; margin: 0 auto;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--primary); display: flex; align-items: center; justify-content: center;
    color: var(--brand-black); flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(255,213,0,0.3);
}
.trust-icon i { width: 22px; height: 22px; }
.trust-text strong { display: block; font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--text-1); }
.trust-text span { font-size: 0.78rem; color: var(--text-3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #0f1729; color: rgba(255,255,255,0.8); margin-top: 10px; }
.footer-top { padding: 48px 20px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; max-width: 1380px; margin: 0 auto; }
.footer-brand .footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin: 14px 0 16px; }
.footer-social-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); margin-bottom: 8px; display: block; }
.footer-social-icons { display: flex; gap: 8px; }
.s-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.s-icon:hover { background: var(--primary); color: var(--brand-black); border-color: var(--primary); }
.s-icon--wa:hover { background: #25D366; border-color: #25D366; }
.s-icon i { width: 14px; height: 14px; }
.footer-newsletter { margin-top: 16px; }
.footer-newsletter p { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.newsletter-form { display: flex; border-radius: var(--radius); overflow: hidden; }
.newsletter-input {
    flex: 1; padding: 8px 12px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12); border-right: none;
    color: #fff; font-size: 0.8rem;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { outline: none; background: rgba(255,255,255,0.12); }
.newsletter-btn {
    background: var(--primary); color: var(--brand-black);
    padding: 8px 14px; font-size: 0.78rem; font-weight: 700; font-family: var(--font-head);
    border: none; cursor: pointer; transition: all 0.2s;
}
.newsletter-btn:hover { background: var(--primary-dark); }
.footer-helpline {
    display: flex; align-items: center; gap: 10px; margin-top: 16px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 10px 14px;
}
.footer-helpline i { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.footer-helpline small { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.4); }
.footer-helpline strong { display: block; font-size: 0.95rem; color: #fff; font-family: var(--font-head); }
.footer-payment { margin-top: 14px; }
.footer-payment small { font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 6px; }
.payment-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-icon {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px; padding: 3px 8px; font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,0.7);
}
.footer-col-title {
    font-family: var(--font-head); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--primary);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.08); 
    padding: 24px 20px; 
}
.footer-bottom-inner { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    max-width: 1380px; 
    margin: 0 auto; 
    text-align: center; 
}
.footer-bottom p { 
    font-size: 0.75rem; 
    color: rgba(255,255,255,0.35); 
}
.footer-bottom-links { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.75rem; 
    color: rgba(255,255,255,0.35); 
}
.footer-admin-link { cursor: pointer; transition: color 0.2s; }
.footer-admin-link:hover { color: var(--primary); }

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 880px;
    height: 85vh; max-height: 680px; min-height: 480px;
    overflow: hidden; position: relative;
    display: flex;
    flex-direction: column;
}
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.modal-close-btn:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: rotate(90deg);
}
.modal-close-btn i { width: 16px; height: 16px; }
.modal-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; height: 100%; overflow: hidden; }
.modal-gallery {
    background: #fafafa;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid var(--border);
}
.modal-main-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fafafa;
    min-height: 0;
    overflow: hidden;
}
.modal-main-img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.modal-video-wrap video { width: 100%; aspect-ratio: 16/9; }
.modal-thumbs {
    display: flex;
    gap: 10px;
    padding: 16px;
    overflow-x: auto;
    justify-content: flex-start;
    background: #fff;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.gallery-thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #fff;
    padding: 4px;
}
.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.modal-info { padding: 28px 28px 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.modal-cat-badge {
    display: inline-block;
    align-self: flex-start; /* Prevent stretching full width in column flex! */
    background: var(--primary);
    color: var(--brand-black);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.modal-prod-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--text-1); line-height: 1.35; }
.modal-stars { display: flex; align-items: center; gap: 2px; font-size: 0.9rem; }
.modal-stars small { font-size: 0.75rem; color: var(--text-3); margin-left: 6px; }
.modal-price-row { display: flex; align-items: baseline; gap: 10px; }
.modal-price-curr { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--red); }
.modal-price-orig { font-size: 0.9rem; color: var(--text-3); text-decoration: line-through; }
.modal-stock-row { display: flex; align-items: center; gap: 6px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: #2e7d32; }
.stock-dot.outofstock { background: var(--red); }
.stock-label { font-size: 0.8rem; font-weight: 600; color: #2e7d32; }
.stock-label.outofstock { color: var(--red); }
.modal-desc { font-size: 0.82rem; color: var(--text-2); line-height: 1.7; }
.modal-spec-table { width: 100%; font-size: 0.8rem; border-collapse: collapse; }
.modal-spec-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.modal-spec-table td:first-child { font-weight: 600; color: var(--text-1); width: 40%; }
.modal-actions-row {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    background: #fff;
    padding: 16px 28px 24px;
    margin-left: -28px;
    margin-right: -28px;
    border-top: 1px solid var(--border);
    z-index: 5;
    display: flex;
    gap: 10px;
    align-items: center;
}
.qty-control {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 10px;
}
.qty-btn {
    width: 26px; height: 26px; border-radius: 6px; background: var(--bg);
    font-size: 1rem; color: var(--text-1); display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.qty-btn:hover { background: var(--primary-light); color: var(--brand-black); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-num { font-family: var(--font-head); font-weight: 700; min-width: 20px; text-align: center; }
.btn-add-cart {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand-black); color: var(--primary);
    font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
    padding: 11px 16px; border-radius: var(--radius); transition: all 0.2s;
}
.btn-add-cart:hover { background: #000; box-shadow: 0 4px 14px rgba(255,213,0,0.3); }
.btn-add-cart i { width: 16px; height: 16px; }
.btn-wishlist-modal {
    width: 42px; height: 42px; border-radius: var(--radius);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    color: var(--text-3); transition: all 0.2s; flex-shrink: 0;
}
.btn-wishlist-modal:hover { color: var(--red); border-color: var(--red); }
.btn-wishlist-modal i { width: 18px; height: 18px; }

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 148;
    background: rgba(0,0,0,0.45);
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: all; }
.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 400px; max-width: 100vw;
    background: #fff;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    z-index: 149;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 3px solid var(--primary);
    background: var(--brand-black); color: #fff; flex-shrink: 0;
}
.drawer-head-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.drawer-head-title i { width: 18px; height: 18px; }
.drawer-close-btn {
    width: 30px; height: 30px; border-radius: 6px;
    background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
    color: #fff; transition: background 0.2s;
}
.drawer-close-btn:hover { background: rgba(255,255,255,0.3); }
.drawer-close-btn i { width: 15px; height: 15px; }
.cart-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 40px; text-align: center; color: var(--text-2);
}
.cart-empty-icon { width: 56px; height: 56px; color: var(--border); }
.cart-empty p { font-family: var(--font-head); font-size: 1rem; font-weight: 600; }
.btn-shop-now {
    background: var(--brand-black); color: var(--primary);
    font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
    padding: 10px 24px; border-radius: 99px; transition: all 0.2s;
}
.btn-shop-now:hover { background: #000; box-shadow: 0 4px 14px rgba(255,213,0,0.3); }
.cart-items-list { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: grid; grid-template-columns: 64px 1fr; gap: 12px;
    background: var(--bg); border-radius: 10px; padding: 10px;
    border: 1px solid var(--border);
}
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-item-details { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cart-item-name { font-size: 0.82rem; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-price { font-weight: 700; font-size: 0.88rem; color: var(--red); }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty-btn {
    width: 22px; height: 22px; border-radius: 5px; background: var(--border);
    font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; color: var(--text-1);
}
.cart-qty-btn:hover { background: var(--primary); color: var(--brand-black); }
.cart-qty-num { font-weight: 700; font-size: 0.88rem; min-width: 16px; text-align: center; }
.cart-item-remove { color: var(--text-3); transition: color 0.2s; display: flex; }
.cart-item-remove:hover { color: var(--red); }
.cart-item-remove i { width: 14px; height: 14px; }
.cart-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; background: #fff; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; }
.cart-total-row span { font-size: 0.85rem; color: var(--text-2); }
.cart-total-row strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--text-1); }
.btn-checkout-proceed {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand-black); color: var(--primary);
    font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
    padding: 13px; border-radius: var(--radius); transition: all 0.2s;
}
.btn-checkout-proceed:hover { background: #000; box-shadow: 0 4px 14px rgba(255,213,0,0.3); }
.btn-checkout-proceed i { width: 16px; height: 16px; }
.btn-whatsapp-order {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #25D366; color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
    padding: 13px; border-radius: var(--radius); transition: background 0.2s;
    animation: wa-pulse 2s infinite;
}
.btn-whatsapp-order:hover { background: #1ea855; animation: none; }
@keyframes wa-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37,211,102,0); }
}
.checkout-form-wrap { flex: 1; overflow-y: auto; padding: 16px 20px; }
.btn-back-cart {
    font-size: 0.8rem; color: var(--brand-black); font-weight: 700; margin-bottom: 14px;
    display: flex; align-items: center; gap: 4px; padding: 0;
    transition: gap 0.2s;
}
.btn-back-cart:hover { gap: 8px; }
.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-row label { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.form-row input, .form-row textarea {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 9px 12px; font-size: 0.85rem; color: var(--text-1);
    transition: border-color 0.2s; resize: none; background: var(--bg);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-row input.error, .form-row textarea.error { border-color: var(--red); }

/* Settings */
.settings-box {
    background: #fff; border-radius: 16px; width: 100%; max-width: 480px;
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.settings-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--brand-black); color: #fff;
    border-bottom: 3px solid var(--primary);
}
.settings-head h2 { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.settings-head i { width: 18px; height: 18px; }
.settings-body { padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.settings-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 12px; font-size: 0.8rem; color: #92400e; margin-bottom: 12px; }
.mode-badge { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; }
.mode-badge.demo { background: #fef3c7; color: #92400e; }
.mode-badge.live { background: var(--primary); color: var(--brand-black); }
.settings-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.btn-settings-reset { background: var(--bg); border: 1px solid var(--border); color: var(--text-2); font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; padding: 9px 18px; border-radius: var(--radius); transition: all 0.2s; }
.btn-settings-reset:hover { color: var(--text-1); }
.btn-settings-save { background: var(--brand-black); color: var(--primary); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; padding: 9px 20px; border-radius: var(--radius); transition: all 0.2s; }
.btn-settings-save:hover { background: #000; box-shadow: 0 4px 12px rgba(255,213,0,0.3); }

/* Minimalist Footer */
.footer-minimal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
}
.footer-logo-wrap {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform 0.2s ease;
}
.footer-logo-wrap:hover {
    transform: translateY(-2px);
}
.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.footer-minimal-actions {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}
.footer-wa-direct {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.footer-wa-direct:hover {
    background: #1ea855;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* Social Icons Visibility & Sizing Fix */
.footer-social-icons {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;
}
.s-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease !important;
}
.s-icon:hover {
    background: var(--primary) !important;
    color: var(--brand-black) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}
.s-icon svg, .s-icon i {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    :root { --sidebar-w: 220px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr 1fr; }
    .trust-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .page-body { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .header-wrap { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
    .logo-img { height: 52px; }
    .header-search { max-width: 100%; order: 3; flex: 1 1 100%; margin: 5px 0 0 0; }
    .header-wa-btn span { display: none; }
    .header-wa-btn { padding: 8px 12px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Modal responsive styling */
    .modal-box {
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
        min-height: 0;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .modal-gallery {
        height: auto;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .modal-main-img-wrap {
        height: 280px;
        min-height: 280px;
        flex: none;
        padding: 16px;
    }
    .modal-main-img {
        max-height: 250px;
    }
    .modal-info {
        height: auto;
        overflow-y: visible;
        padding: 20px;
    }
    .modal-actions-row {
        position: static;
        margin-left: 0;
        margin-right: 0;
        padding: 10px 0 0;
        border-top: none;
    }
    .modal-close-btn {
        top: 10px;
        right: 10px;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .trust-container { grid-template-columns: 1fr; }
    .modal-grid { grid-template-columns: 1fr; }
    .cart-drawer { width: 100%; }
}

/* Scroll margin top to prevent catalog header from getting hidden under the sticky header */
#active-catalog-header {
    scroll-margin-top: 140px;
}
