/* ============================================================
   THEME.CSS — Shopee-inspired design system
   Responsive: mobile ? tablet ? laptop ? desktop ? TV
   + Flash Sale support
   ============================================================ */
:root {
    --brand: #EE4D2D;
    --brand-dark: #D73211;
    --brand-light: #FFF1EC;
    --brand-soft: #FFE7DE;
    --lime: #C6F04A; --lime-dark: #9BC42E; --lime-soft: #E8F7B5;
    --ink: #1A1A1A; --ink-2: #262626;
    --muted: #757575; --muted-2: #A0A0A0;
    --line: #EFEFEF; --line-2: #E5E5E5;
    --bg: #F5F5F5; --bg-2: #FAFAFA; --white: #fff;
    --success: #26AA99; --warning: #FFB700; --danger: #FF3D3D; --info: #2673DD;

    /* Flash sale palette */
    --flash: #DC2626;
    --flash-dark: #B91C1C;
    --flash-deep: #7F1D1D;
    --flash-light: #FEF2F2;
    --flash-soft: #FEE2E2;
    --flash-amber: #FBBF24;

    --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 2px 6px rgba(0,0,0,.05);
    --shadow-md: 0 4px 14px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --container-max: 1400px; --container-pad: 16px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); margin: 0; padding: 0; font-size: 14px; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container-lk { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); width: 100%; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes boltPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}
@keyframes flashPulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(220,38,38,.5); }
    70%  { box-shadow: 0 0 0 12px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.shopee-header { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; position: sticky; top: 0; z-index: 1030; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.shopee-header-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.15); }
.shopee-header-top .links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.shopee-header-top .links a { opacity: .9; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.shopee-header-top .links a:hover { opacity: 1; color: #fff; }
.shopee-header-main { display: flex; align-items: center; gap: 20px; padding: 14px 0; flex-wrap: wrap; }
.shopee-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.shopee-logo-icon { width: 42px; height: 42px; background: #fff; color: var(--brand); border-radius: 10px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.shopee-search { flex: 1; min-width: 220px; display: flex; background: #fff; border-radius: var(--r-sm); overflow: hidden; max-width: 720px; }
.shopee-search input { flex: 1; border: none; outline: none; padding: 11px 14px; font-size: 14px; color: var(--ink); background: transparent; min-width: 0; }
.shopee-search button { background: var(--brand-dark); color: #fff; border: none; padding: 0 22px; cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.shopee-cart { position: relative; width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; font-size: 20px; flex-shrink: 0; }
.shopee-cart:hover { background: rgba(255,255,255,.25); color: #fff; }
.shopee-cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; background: #fff; color: var(--brand); font-size: 11px; font-weight: 800; border-radius: var(--r-full); display: grid; place-items: center; border: 2px solid var(--brand); }
.shopee-cat-ribbon { background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.shopee-cat-ribbon::-webkit-scrollbar { display: none; }
.shopee-cat-ribbon-inner { display: flex; gap: 8px; padding: 10px var(--container-pad); max-width: var(--container-max); margin: 0 auto; width: max-content; min-width: 100%; }
.shopee-cat-pill { white-space: nowrap; padding: 8px 16px; border-radius: var(--r-full); background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 600; border: 1px solid var(--line); transition: all .15s; display: inline-flex; align-items: center; gap: 6px; }
.shopee-cat-pill:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--brand); }
.shopee-cat-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-lk { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; border: none; cursor: pointer; transition: opacity .15s, transform .1s; text-decoration: none; white-space: nowrap; line-height: 1; }
.btn-lk:active { transform: scale(.97); }
.btn-lk:disabled { opacity: .5; cursor: not-allowed; }
.btn-lk-primary { background: var(--brand); color: #fff; }
.btn-lk-primary:hover:not(:disabled) { opacity: .9; color: #fff; }
.btn-lk-outline { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-lk-outline:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.btn-lk-lime { background: var(--lime); color: #1B2B00; }
.btn-lk-lime:hover:not(:disabled) { background: var(--lime-dark); color: #fff; }
.btn-lk-wa { background: #25D366; color: #fff; }
.btn-lk-wa:hover:not(:disabled) { background: #1DA851; color: #fff; }
.btn-lk-flash { background: linear-gradient(135deg, var(--flash), var(--flash-dark)); color: #fff; box-shadow: 0 4px 14px rgba(220,38,38,.3); }
.btn-lk-flash:hover:not(:disabled) { background: linear-gradient(135deg, var(--flash-dark), #991B1B); color: #fff; }
.btn-lk-lg { padding: 14px 24px; font-size: 15px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge-lk { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 11px; font-weight: 700; border-radius: var(--r-sm); line-height: 1; }
.badge-lk-primary { background: var(--brand); color: #fff; }
.badge-lk-soft    { background: var(--brand-light); color: var(--brand); }
.badge-lk-success { background: #E6F7F4; color: var(--success); }
.badge-lk-warning { background: #FFF7E0; color: #B87A00; }
.badge-lk-danger  { background: #FFECEC; color: var(--danger); }
.badge-lk-muted   { background: var(--bg-2); color: var(--muted); }
.badge-lk-flash   { background: linear-gradient(135deg, var(--flash), var(--flash-dark)); color: #fff; box-shadow: 0 2px 6px rgba(220,38,38,.3); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px var(--container-pad); }
@media (min-width: 480px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1600px) { .product-grid { grid-template-columns: repeat(7, 1fr); } }
@media (min-width: 1920px) { .product-grid { grid-template-columns: repeat(8, 1fr); } }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card-lk {
    background: #fff;
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    position: relative;
}
.product-card-lk:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-light); }

/* Flash sale state on the card */
.product-card-lk.is-flash { border-color: var(--flash-soft); }
.product-card-lk.is-flash:hover { border-color: var(--flash); box-shadow: 0 10px 24px -8px rgba(220,38,38,.28); }

.product-card-media { position: relative; aspect-ratio: 1/1; background: var(--bg-2); overflow: hidden; display: block; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; transition: transform .3s; }
.product-card-lk:hover .product-card-media img { transform: scale(1.05); }
.product-card-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #D1D5DB; font-size: 32px; }

/* Product tag (top-right) */
.product-tag {
    position: absolute;
    top: 0; right: 0;
    background: rgba(255,212,36,.95);
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-bottom-left-radius: var(--r-sm);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}
.product-tag.discount { background: rgba(255,212,36,.95); color: var(--brand); }
.product-tag.new      { background: var(--success); color: #fff; }
.product-tag.sold-out { background: rgba(0,0,0,.7); color: #fff; }
.product-tag.low      { background: var(--warning); color: #fff; }

/* Flash ribbon (top-left) */
.flash-ribbon {
    position: absolute;
    top: 0; left: 0;
    z-index: 3;
    background: linear-gradient(135deg, var(--flash), var(--flash-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .4px;
    padding: 5px 10px 5px 9px;
    border-bottom-right-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(220,38,38,.4);
}
.flash-ribbon i { font-size: 9px; animation: boltPulse 1.6s ease-in-out infinite; }

/* Product card body */
.product-card-body { padding: 8px 10px 10px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.product-card-brand {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 2px;
}
.product-card-title {
    font-size: 13px;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
    margin: 0;
    font-weight: 500;
}
.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--brand); }

.product-card-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.product-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}
.product-card-lk.is-flash .product-card-price { color: var(--flash); }
.product-card-old-price {
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 600;
}
.product-card-save {
    font-size: 10px;
    font-weight: 900;
    background: var(--flash);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .3px;
}

/* Flash countdown inside card */
.product-card-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: var(--flash);
    background: var(--flash-light);
    padding: 3px 7px;
    border-radius: 5px;
    margin-top: 4px;
    align-self: flex-start;
}
.product-card-countdown i { font-size: 9px; animation: boltPulse 1.5s ease-in-out infinite; }

/* Progress bar (flash stock) */
.flash-progress {
    height: 4px;
    background: var(--flash-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
    position: relative;
}
.flash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--flash-amber), var(--flash));
    border-radius: 999px;
    transition: width .6s ease;
    position: relative;
}
.flash-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

/* Card meta */
.product-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); gap: 6px; flex-wrap: wrap; }
.product-card-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--warning); font-weight: 700; }
.product-card-rating i { font-size: 10px; }

/* Card action buttons */
.product-card-actions {
    position: absolute;
    bottom: 8px; right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .15s, transform .15s;
}
.product-card-lk:hover .product-card-actions { opacity: 1; transform: translateY(0); }
@media (hover: none) { .product-card-actions { opacity: 1; transform: none; } }

.product-card-btn {
    width: 34px; height: 34px;
    border-radius: var(--r-full);
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s;
    background: #fff;
    color: var(--brand);
}
.product-card-btn:hover { transform: scale(1.08); }
.product-card-btn.wa { background: #25D366; color: #fff; }

/* Quick add (bottom-right) */
.product-card-quick-add {
    position: absolute;
    bottom: 8px; right: 8px;
    width: 34px; height: 34px;
    border-radius: var(--r-full);
    background: var(--brand);
    color: #fff;
    border: none;
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: transform .15s;
}
.product-card-quick-add:hover { transform: scale(1.08); }
.product-card-quick-add:disabled { background: var(--muted-2); }
.product-card-quick-add.in-cart { background: var(--success); }

/* ============================================================
   FLASH SALE STRIP (used in index.php)
   ============================================================ */
.flash-strip {
    background: linear-gradient(135deg, var(--flash-deep) 0%, var(--flash-dark) 45%, var(--flash) 100%);
    border-radius: var(--r-lg);
    padding: clamp(14px, 2vw, 22px);
    margin: 16px var(--container-pad) 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px -12px rgba(220,38,38,.5);
}
.flash-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.15), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,.1), transparent 40%);
    pointer-events: none;
}
.flash-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.flash-strip-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 900;
    font-size: clamp(16px, 1.6vw, 22px);
    letter-spacing: -0.02em;
}
.flash-strip-title .bolt {
    width: clamp(34px, 3vw, 44px);
    height: clamp(34px, 3vw, 44px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--flash-amber), #F59E0B);
    display: grid;
    place-items: center;
    color: var(--flash-deep);
    font-size: clamp(15px, 1.4vw, 20px);
    box-shadow: 0 4px 12px rgba(251,191,36,.4);
    animation: flashPulseRing 1.8s ease-in-out infinite;
}
.flash-strip-title small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    opacity: .85;
    margin-top: 2px;
}
.flash-strip-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
}
.flash-strip-cta:hover { background: rgba(255,255,255,.25); color: #fff; }

.flash-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.4) transparent;
}
.flash-scroll::-webkit-scrollbar { height: 6px; }
.flash-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.4); border-radius: 3px; }

/* ============================================================
   CARDS (generic)
   ============================================================ */
.card-lk { background: #fff; border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--line); margin: 12px var(--container-pad); }
.card-lk-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.card-lk-title { font-size: 16px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-lk { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-family: inherit; font-size: 14px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.form-lk:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(238,77,45,.12); }
textarea.form-lk { resize: vertical; min-height: 70px; }
.form-lk-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.shopee-footer { background: #fff; border-top: 4px solid var(--brand); margin-top: 30px; padding: 40px 0 60px; }
.shopee-footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px)  { .shopee-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shopee-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col-title { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--brand); }
.footer-socials-lk { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-social-lk { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; transition: transform .15s; }
.footer-social-lk:hover { transform: translateY(-2px); color: #fff; }
.footer-copy-lk { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ============================================================
   FLOATING CART
   ============================================================ */
.floating-cart { position: fixed; bottom: 16px; left: 16px; right: 16px; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 1030; box-shadow: 0 12px 30px rgba(0,0,0,.3); max-width: 560px; margin: 0 auto; }
@media (min-width: 1024px) { .floating-cart { display: none; } }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mm-overlay-lk { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 3000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mm-overlay-lk.show { opacity: 1; pointer-events: auto; }
.mm-drawer-lk { position: fixed; top: 0; left: 0; bottom: 0; width: 84%; max-width: 340px; background: #fff; z-index: 3001; transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: 4px 0 32px rgba(0,0,0,.15); overflow: hidden; }
.mm-drawer-lk.show { transform: translateX(0); }
.mm-header-lk { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--brand-light), #fff); gap: 12px; }
.mm-body-lk { flex: 1; overflow-y: auto; padding: 8px 0 20px; -webkit-overflow-scrolling: touch; }
.mm-section-lk { padding: 14px 20px 6px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.mm-item-lk { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--ink); font-size: 14px; font-weight: 500; transition: background .15s; }
.mm-item-lk:hover { background: var(--bg-2); color: var(--ink); }
.mm-item-lk.active { background: var(--brand-light); color: var(--brand); font-weight: 700; }
.mm-item-icon { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--bg-2); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.mm-item-lk.active .mm-item-icon { background: var(--brand); color: #fff; }
body.mm-locked-lk { overflow: hidden; }

/* ============================================================
   SHARE POPOVER
   ============================================================ */
.share-pop-lk { position: fixed; z-index: 2100; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 14px; display: none; border: 1px solid var(--line); min-width: 240px; }
.share-pop-lk.show { display: block; }
.share-pop-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 10px; }
.share-pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-pop-btn { aspect-ratio: 1/1; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; font-size: 16px; text-decoration: none; border: none; cursor: pointer; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container-lk { position: fixed; bottom: 100px; right: 16px; z-index: 2200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast-lk { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-md); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .2s ease; pointer-events: auto; }
.toast-lk.success { background: var(--success); }
.toast-lk.danger  { background: var(--danger); }
.toast-lk.flash   { background: linear-gradient(135deg, var(--flash), var(--flash-dark)); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-lk { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 4000; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox-lk.show { display: flex; }
.lightbox-lk img { max-width: 92vw; max-height: 88vh; object-fit: contain; background: #fff; padding: 12px; border-radius: 14px; }
.lightbox-close-lk { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 18px; cursor: pointer; }
.lightbox-close-lk:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   CATEGORY FILTERS
   ============================================================ */
.cat-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}
.filter-sidebar {
    display: none;
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
@media (min-width: 900px) {
    .cat-layout { grid-template-columns: 260px minmax(0, 1fr); }
    .filter-sidebar { display: block; }
}
.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s;
}
.filter-toggle-btn:hover { background: var(--bg-2); }
@media (min-width: 900px) { .filter-toggle-btn { display: none; } }

.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }

.filter-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--ink); margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.filter-title .toggle-icon { color: var(--muted); font-size: 11px; transition: transform .2s; }
.filter-group.collapsed .toggle-icon { transform: rotate(-90deg); }
.filter-group.collapsed .filter-body { display: none; }

.filter-option { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: 13px; color: var(--ink-2); user-select: none; }
.filter-option:hover { color: var(--brand); }
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }
.filter-option .count { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 600; }
.filter-option input[type="checkbox"]:checked ~ span { color: var(--brand); font-weight: 700; }

.price-range-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.price-range-row input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13px; text-align: center; outline: none; font-family: inherit; min-width: 0; }
.price-range-row input:focus { border-color: var(--brand); }
.price-range-row span { color: var(--muted); font-size: 12px; }

.price-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.price-quick button { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: all .15s; }
.price-quick button:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--brand); }
.price-quick button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.filter-actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 8px; }
.filter-actions .btn-lk { flex: 1; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-light); color: var(--brand); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.filter-chip a { color: var(--brand); display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,.06); font-size: 9px; }
.filter-chip a:hover { background: var(--brand); color: #fff; }

.filter-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 88%; max-width: 380px; background: #fff; z-index: 3010; transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: 4px 0 32px rgba(0,0,0,.15); }
.filter-drawer.show { transform: translateX(0); }
.filter-drawer-header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand-light); }
.filter-drawer-title { font-size: 16px; font-weight: 800; margin: 0; }
.filter-drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; -webkit-overflow-scrolling: touch; }
.filter-drawer-footer { padding: 14px 20px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.filter-drawer-footer .btn-lk { flex: 1; }
.filter-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 3005; opacity: 0; pointer-events: none; transition: opacity .25s; }
.filter-overlay.show { opacity: 1; pointer-events: auto; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.results-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.results-count strong { color: var(--ink); font-weight: 800; }
.results-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.results-controls select { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; outline: none; cursor: pointer; font-family: inherit; }
.results-controls select:focus { border-color: var(--brand); }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
.hide-sm { display: none !important; }
@media (min-width: 768px) {
    :root { --container-pad: 24px; }
    .hide-sm { display: initial !important; }
    .hide-md { display: none !important; }
}
@media (min-width: 1024px) { .hide-md { display: initial !important; } }
@media (min-width: 1280px) { :root { --container-pad: 32px; } }
@media (min-width: 1920px) { body { font-size: 15px; } :root { --container-pad: 40px; } }
@media (min-width: 2400px) { :root { --container-max: 1800px; } }
@media (max-width: 767.98px) { .hide-mobile { display: none !important; } }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }