/* ===================================================================
   ГородМаркет — Публичный CSS
   v1.2.0 | Onest, зелёный primary, адаптивность mobile-first
   =================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Golos Text', system-ui, -apple-system, sans-serif;
    font-size: 15px; line-height: 1.55; color: #1e293b;
    background: #f8fafc;
    min-height: 100vh;
    display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* --- Variables --- */
:root {
    /* Legacy aliases (keep for compatibility) */
    --c-primary: #059669;
    --c-primary-hover: #047857;
    --c-primary-light: #d1fae5;
    --c-primary-bg: #ecfdf5;
    --c-accent: #f59e0b;
    --c-danger: #ef4444;
    --c-text: #1e293b;
    --c-text-secondary: #64748b;
    --c-text-muted: #94a3b8;
    --c-border: #e2e8f0;
    --c-bg: #f8fafc;
    --c-white: #fff;
    --c-dark: #0f172a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --container: 1280px;
    --header-h: 64px;
    --transition: .2s ease;

    /* Design tokens from mockups */
    --c-p-50: #ECFDF5; --c-p-100: #D1FAE5; --c-p-200: #A7F3D0;
    --c-p-300: #6EE7B7; --c-p-400: #34D399; --c-p-500: #10B981;
    --c-p-600: #059669; --c-p-700: #047857; --c-p-800: #065F46;
    --c-p-900: #064E3B;
    --c-a-50: #FFFBEB; --c-a-100: #FEF3C7; --c-a-200: #FDE68A;
    --c-a-300: #FCD34D; --c-a-400: #FBBF24; --c-a-500: #F59E0B;
    --c-a-600: #D97706; --c-a-700: #B45309; --c-a-800: #92400E;
    --c-b-50: #EFF6FF; --c-b-100: #DBEAFE; --c-b-200: #BFDBFE;
    --c-b-400: #60A5FA; --c-b-500: #3B82F6; --c-b-600: #2563EB;
    --c-b-700: #1D4ED8; --c-b-800: #1E40AF; --c-b-900: #1E3A8A;
    --c-n-0: #FFFFFF; --c-n-25: #FCFCFD; --c-n-50: #F9FAFB;
    --c-n-100: #F3F4F6; --c-n-200: #E5E7EB; --c-n-300: #D1D5DB;
    --c-n-400: #9CA3AF; --c-n-500: #6B7280; --c-n-600: #4B5563;
    --c-n-700: #374151; --c-n-800: #1F2937; --c-n-900: #111827;
    --c-success: #16A34A; --c-success-bg: #DCFCE7;
    --c-warning: #D97706; --c-warning-bg: #FEF3C7;
    --c-error:   #DC2626; --c-error-bg:   #FEE2E2;
    --c-sale:    #EF4444;
    --r-sm: 8px;  --r-md: 10px; --r-lg: 12px;
    --r-xl: 16px; --r-2xl: 20px; --r-full: 999px;
    --sh-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --sh-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --sh-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
    --sh-xl: 0 20px 25px rgba(0,0,0,0.10);
    --sh-p:  0 4px 14px rgba(5,150,105,0.25);
}

/* --- Container --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--c-white);
    box-shadow: var(--shadow-sm);
}

/* -- Header ribbon -- */
.header-ribbon {
    background: linear-gradient(95deg, #047857 0%, #059669 55%, #F59E0B 100%);
    color: #fff; font-size: 13px; font-weight: 500;
}
.header-ribbon-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 36px; gap: 16px;
}
.header-ribbon-msg { display: flex; align-items: center; gap: 6px; }
.header-ribbon-meta { display: none; align-items: center; gap: 14px; font-size: 12px; }
.ribbon-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; background: rgba(255,255,255,0.2);
    border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
@media (min-width: 768px) { .header-ribbon-meta { display: flex; } }

/* -- Header top bar -- */
.header-top {
    background: var(--c-dark);
    color: rgba(255,255,255,.7);
    font-size: 13px;
    transition: transform .25s ease, opacity .25s ease;
    will-change: transform;
}
.header-top--hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
.header-top-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 36px; gap: 16px;
}
.header-geo {
    display: flex; align-items: center; gap: 4px;
    cursor: pointer;
}
.header-geo:hover { color: #fff; }
.header-top-nav { display: flex; gap: 20px; }
.header-top-nav a { transition: color var(--transition); }
.header-top-nav a:hover { color: #fff; }

/* -- Header main -- */
.header-main-inner {
    display: flex; align-items: center; gap: 16px;
    height: var(--header-h);
}
.header-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 20px; font-weight: 800; color: var(--c-primary);
    white-space: nowrap; flex-shrink: 0;
}
.logo-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--c-primary-hover) 0%, var(--c-primary) 100%);
    display: inline-block;
    box-shadow: 0 2px 6px rgba(5,150,105,0.25);
    flex-shrink: 0;
}

/* -- Catalog button -- */
.btn-catalog {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--c-primary); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 15px;
    cursor: pointer; white-space: nowrap;
    transition: background var(--transition);
    flex-shrink: 0;
}
.btn-catalog:hover { background: var(--c-primary-hover); }
.btn-catalog.active .icon-menu { display: none; }
.btn-catalog.active .icon-close { display: inline !important; }

/* -- Search -- */
.header-search {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 6px 0 14px;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.header-search:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.15);
}
.header-search .search-icon { color: var(--c-text-muted); flex-shrink: 0; }
.header-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: inherit; color: inherit; padding: 0; font-size: 15px;
}
.header-search .search-btn {
    display: none;
    height: 32px; padding: 0 14px; border: 0; background: var(--c-primary-bg);
    color: var(--c-primary-hover); border-radius: 7px; font-weight: 600; font-size: 13px;
    cursor: pointer; transition: background .15s;
}
.header-search .search-btn:hover { background: var(--c-primary-light); }
@media (min-width: 768px) { .header-search .search-btn { display: inline-block; } }

/* -- Actions (favorites, cart, profile) -- */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-action {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 10px; border-radius: var(--radius-xs);
    color: var(--c-text-secondary);
    font-size: 11px; line-height: 1.2;
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.header-action:hover { color: var(--c-primary); background: var(--c-primary-bg); }
.action-label { font-weight: 500; }
.cart-badge {
    position: absolute; top: 2px; right: 4px;
    background: var(--c-danger); color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}
.fav-badge {
    position: absolute; top: 2px; right: 4px;
    background: var(--c-danger); color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}

/* -- Header nav (h-nav) -- */
.header-nav {
    display: none;
    border-top: 1px solid var(--c-border);
    background: #fff;
}
@media (min-width: 1024px) {
    .header-nav { display: block; }
}
.header-nav-inner {
    display: flex; align-items: center; gap: 4px;
    height: 44px;
}
.header-nav-inner a {
    padding: 8px 14px; font-size: 14px; font-weight: 500;
    color: var(--c-text-secondary); border-radius: 8px;
    transition: color .15s, background .15s;
}
.header-nav-inner a:hover { color: var(--c-primary); background: var(--c-primary-bg); }
.header-nav-inner a.accent { color: var(--c-primary); background: var(--c-primary-bg); }
.header-weather {
    margin-left: auto;
    font-size: 13px; color: var(--c-text-muted);
}

/* -- Burger (mobile) -- */
.header-burger {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; border: none; background: none;
    cursor: pointer;
}
.header-burger span {
    width: 22px; height: 2px; background: var(--c-text);
    border-radius: 2px; transition: var(--transition);
}

/* =================================================================
   MEGA MENU
   ================================================================= */
.mega-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--c-border);
    z-index: 99;
    max-height: 70vh; overflow: hidden;
}
.mega-menu.open { display: block; animation: fadeDown .2s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.mega-menu-inner { display: flex; min-height: 400px; }
.mega-menu-left {
    width: 280px; flex-shrink: 0;
    border-right: 1px solid var(--c-border);
    padding: 12px 0;
    overflow-y: auto;
}
.mega-cat-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; font-size: 14px; font-weight: 500;
    color: var(--c-text); transition: var(--transition);
}
.mega-cat-link:hover, .mega-cat-link.active {
    background: var(--c-primary-bg); color: var(--c-primary);
}
.mega-cat-link svg { margin-left: auto; opacity: .4; flex-shrink: 0; }
.mega-cat-icon { font-size: 18px; width: 24px; text-align: center; }
.mega-cat-icon img { width: 20px; height: 20px; object-fit: contain; display: inline-block; vertical-align: middle; }

.mega-menu-right { flex: 1; padding: 20px 24px; overflow-y: auto; }
.mega-placeholder { color: var(--c-text-muted); font-size: 14px; padding-top: 40px; text-align: center; }
.mega-sub-panel { display: none; }
.mega-sub-panel.active { display: block; animation: fadeIn .15s ease; }
.mega-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.mega-sub-title { font-weight: 600; font-size: 14px; color: var(--c-primary); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mega-sub-icon { font-size: 20px; width: 32px; height: 32px; text-align: center; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; border-radius: 8px; flex-shrink: 0; }
.mega-sub-icon img { width: 24px; height: 24px; object-fit: contain; display: block; }
.mega-sub-title:hover { text-decoration: underline; }
.mega-sub-list li a {
    display: block; padding: 3px 0; font-size: 13px;
    color: var(--c-text-secondary); transition: color var(--transition);
}
.mega-sub-list li a:hover { color: var(--c-primary); }

/* =================================================================
   MOBILE MENU
   ================================================================= */
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 98;
    background: rgba(0,0,0,.4);
}
.mobile-menu.open { display: block; }
.mobile-menu-body {
    position: absolute; top: 0; right: 0;
    width: min(320px, 85vw); height: 100%;
    background: var(--c-white);
    padding: 24px 20px;
    overflow-y: auto;
    animation: slideRight .25s ease;
}
@keyframes slideRight { from { transform: translateX(100%); } to { transform: none; } }
.mobile-user { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); margin-bottom: 16px; font-weight: 600; }
.mobile-search { margin-bottom: 16px; }
.mobile-search input { width: 100%; padding: 10px 14px; border: 2px solid var(--c-border); border-radius: var(--radius-sm); font-size: 15px; }
.mobile-search input:focus { border-color: var(--c-primary); outline: none; }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a { padding: 12px 8px; border-radius: var(--radius-xs); font-size: 15px; font-weight: 500; transition: var(--transition); }
.mobile-nav a:hover { background: var(--c-primary-bg); color: var(--c-primary); }

/* =================================================================
   BREADCRUMBS
   ================================================================= */
.breadcrumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 14px 0; font-size: 13px; color: var(--c-text-muted);
}
.breadcrumbs a { color: var(--c-text-secondary); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--c-primary); }
.bc-sep { opacity: .3; }
.bc-current { color: var(--c-text); font-weight: 500; }

/* =================================================================
   MAIN CONTENT
   ================================================================= */
.site-main { flex: 1; padding-bottom: 40px; }

/* --- Section headers --- */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.section-title { font-size: 22px; font-weight: 700; }
.section-link {
    font-size: 14px; color: var(--c-primary); font-weight: 500;
    display: flex; align-items: center; gap: 4px;
}
.section-link:hover { text-decoration: underline; }

/* =================================================================
   PRODUCT CARDS
   ================================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.product-card {
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.product-card-img {
    aspect-ratio: 1; overflow: hidden;
    background: #f1f5f9;
    position: relative;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badges {
    position: absolute; top: 8px; left: 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.badge-sale {
    background: var(--c-danger); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 4px;
}
.badge-new {
    background: var(--c-primary); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 4px;
}
.product-card-fav {
    position: absolute; top: 8px; right: 8px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.85); border: none;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.product-card-fav:hover { background: #fff; }
.product-card-fav svg { width: 18px; height: 18px; color: var(--c-text-muted); }
.product-card-fav.active svg { color: var(--c-danger); fill: var(--c-danger); }
.product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-card-price {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 6px;
}
.price-current { font-size: 18px; font-weight: 700; color: var(--c-text); }
.price-old {
    font-size: 13px; color: var(--c-text-muted);
    text-decoration: line-through;
}
.price-discount { font-size: 13px; color: var(--c-danger); font-weight: 600; }
.product-card-name {
    font-size: 13px; line-height: 1.4;
    color: var(--c-text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 8px; flex: 1;
}
.product-card-name:hover { color: var(--c-primary); }
.product-card-rating {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--c-text-muted);
}
.product-card-rating .stars { color: var(--c-accent); }
.product-card-seller {
    font-size: 12px; color: var(--c-text-muted);
    margin-top: 4px;
}
.product-card-seller a:hover { color: var(--c-primary); }
.product-card-cart {
    margin-top: 10px;
    width: 100%; padding: 10px;
    background: var(--c-primary); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    cursor: pointer; transition: background var(--transition);
}
.product-card-cart:hover { background: var(--c-primary-hover); }

/* =================================================================
   MOBILE FILTER DRAWER
   ================================================================= */
.filter-drawer-header, .filter-close-btn { display: none; }
.filter-fab {
    display: none;
    position: fixed; bottom: 20px; right: 20px; z-index: 90;
    align-items: center; gap: 8px;
    padding: 12px 20px;
    background: var(--c-primary); color: #fff;
    border: none; border-radius: 999px;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(5,150,105,0.35);
    cursor: pointer;
}
@media (max-width: 1023px) {
    .filter-fab { display: inline-flex; }
    .catalog-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 85vw;
        background: #fff; z-index: 101;
        transform: translateX(-100%); transition: transform .3s ease;
        padding: 20px; overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    .catalog-sidebar.open { transform: translateX(0); display: block !important; }
    .filter-drawer-overlay {
        position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 100;
        opacity: 0; pointer-events: none; transition: opacity .25s;
    }
    .filter-drawer-overlay.open { opacity: 1; pointer-events: auto; }
    .filter-drawer-header {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 16px; padding-bottom: 12px;
        border-bottom: 1px solid var(--c-border);
    }
    .filter-close-btn { display: block; }
    .filter-drawer-header strong { font-size: 16px; }
    .filter-drawer-close {
        width: 32px; height: 32px; border-radius: 8px;
        border: none; background: var(--c-bg); font-size: 20px; color: var(--c-text);
        cursor: pointer; display: flex; align-items: center; justify-content: center;
    }

}

/* =================================================================
   CATALOG FILTERS (sidebar)
   ================================================================= */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.catalog-sidebar {
    position: sticky; top: calc(var(--header-h) + 50px);
    align-self: start; max-height: calc(100vh - var(--header-h) - 80px);
    overflow-y: auto; padding-right: 8px;
}
.filter-group { margin-bottom: 20px; }
.filter-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.filter-option {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0; font-size: 14px; cursor: pointer;
    color: var(--c-text-secondary);
}
.filter-option:hover { color: var(--c-primary); }
.filter-option input[type="checkbox"] { accent-color: var(--c-primary); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input {
    width: 100%; padding: 8px 10px;
    border: 1px solid var(--c-border); border-radius: var(--radius-xs);
    font-size: 14px;
}
.price-range span { color: var(--c-text-muted); }

/* -- Catalog toolbar -- */
.catalog-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    margin-bottom: 20px; padding: 12px 16px;
    background: var(--c-white); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.catalog-count { font-size: 14px; color: var(--c-text-muted); }
.catalog-sort select {
    padding: 8px 12px; border: 1px solid var(--c-border);
    border-radius: var(--radius-xs); font-size: 14px; cursor: pointer;
    background: var(--c-white);
}

/* =================================================================
   PRODUCT DETAIL PAGE
   ================================================================= */
.product-page { padding-top: 10px; }
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.gallery-main {
    aspect-ratio: 1; border-radius: var(--radius);
    overflow: hidden; background: #f1f5f9;
    margin-bottom: 12px;
    cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb {
    width: 72px; height: 72px; flex-shrink: 0;
    border-radius: var(--radius-xs); overflow: hidden;
    border: 2px solid transparent; cursor: pointer;
    transition: border-color var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--c-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { }
.product-info-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.product-info-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 14px; color: var(--c-text-secondary);
    margin-bottom: 16px; flex-wrap: wrap;
}
.meta-rating { display: flex; align-items: center; gap: 4px; }
.meta-rating .stars { color: var(--c-accent); }
.meta-reviews { color: var(--c-primary); cursor: pointer; }
.meta-reviews:hover { text-decoration: underline; }
.meta-article { color: var(--c-text-muted); }
.product-price-block {
    background: var(--c-primary-bg); border-radius: var(--radius);
    padding: 20px; margin-bottom: 20px;
}
.product-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.product-price-big { font-size: 32px; font-weight: 800; color: var(--c-text); }
.product-price-old { font-size: 18px; color: var(--c-text-muted); text-decoration: line-through; }
.product-price-save { font-size: 14px; color: var(--c-danger); font-weight: 600; }
.product-bonus { font-size: 13px; color: var(--c-primary); margin-top: 6px; }

/* -- Variants -- */
.product-variants { margin-bottom: 20px; }
.variant-group { margin-bottom: 12px; }
.variant-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--c-text-secondary); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
    padding: 8px 16px; border: 2px solid var(--c-border);
    border-radius: var(--radius-xs); font-size: 14px;
    cursor: pointer; background: var(--c-white);
    transition: var(--transition);
}
.variant-btn:hover { border-color: var(--c-primary); }
.variant-btn.active { border-color: var(--c-primary); background: var(--c-primary-bg); color: var(--c-primary); font-weight: 600; }
.variant-btn:disabled { opacity: .4; cursor: not-allowed; border-color: var(--c-border); }

/* -- Qty -- */
.product-qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; height: 36px; }
.product-qty button { width: 32px; height: 100%; border: 0; background: transparent; color: var(--c-text-secondary); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.product-qty button:hover { color: var(--c-primary); background: var(--c-primary-bg); }
.product-qty input { width: 40px; text-align: center; font-weight: 600; font-size: 14px; border: none; background: transparent; outline: none; -moz-appearance: textfield; }
.product-qty input::-webkit-outer-spin-button,
.product-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* -- Add to cart block -- */
.product-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.btn-add-cart {
    flex: 1; padding: 14px 24px;
    background: var(--c-primary); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 700;
    cursor: pointer; transition: background var(--transition);
}
.btn-add-cart:hover { background: var(--c-primary-hover); }
.btn-fav-big {
    width: 52px; height: 52px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-white);
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: var(--transition);
}
.btn-fav-big:hover { border-color: var(--c-danger); }
.btn-fav-big svg { width: 22px; height: 22px; color: var(--c-text-muted); }

/* -- Seller card on product page -- */
.product-seller-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius); margin-bottom: 20px;
}
.seller-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--c-primary-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--c-primary); font-size: 18px;
}
.seller-card-info { flex: 1; }
.seller-card-name { font-weight: 600; font-size: 15px; }
.seller-card-name a:hover { color: var(--c-primary); }
.seller-card-meta { font-size: 13px; color: var(--c-text-muted); }
.seller-card-btn {
    padding: 8px 16px; border: 1px solid var(--c-border);
    border-radius: var(--radius-xs); background: var(--c-white);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: var(--transition);
}
.seller-card-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* -- Product tabs (description, attributes, reviews) -- */
.product-tabs { margin-bottom: 40px; }
.tabs-nav {
    display: flex; gap: 0; border-bottom: 2px solid var(--c-border);
    margin-bottom: 24px; overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 12px 20px; border: none; background: none;
    font-size: 15px; font-weight: 600;
    color: var(--c-text-secondary); cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px; white-space: nowrap;
    transition: var(--transition);
}
.tab-btn:hover { color: var(--c-text); }
.tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.product-description { font-size: 15px; line-height: 1.7; color: var(--c-text-secondary); }
.product-description h3 { font-size: 18px; color: var(--c-text); margin: 20px 0 8px; }
.product-description p { margin-bottom: 12px; }

/* -- Attributes table -- */
.attrs-table { width: 100%; border-collapse: collapse; }
.attrs-table tr:nth-child(even) { background: var(--c-bg); }
.attrs-table td { padding: 10px 14px; font-size: 14px; }
.attrs-table td:first-child { color: var(--c-text-muted); width: 40%; }

/* -- Reviews -- */
.reviews-summary {
    display: flex; align-items: center; gap: 24px;
    margin-bottom: 24px; padding: 20px;
    background: var(--c-white); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.reviews-avg { text-align: center; }
.reviews-avg-num { font-size: 48px; font-weight: 800; color: var(--c-text); line-height: 1; }
.reviews-avg .stars { font-size: 18px; color: var(--c-accent); margin: 6px 0; }
.reviews-avg-count { font-size: 13px; color: var(--c-text-muted); }
.reviews-bars { flex: 1; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.bar-label { width: 20px; text-align: right; color: var(--c-text-muted); }
.bar-track { flex: 1; height: 8px; background: var(--c-border); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--c-accent); border-radius: 4px; }
.bar-count { width: 30px; color: var(--c-text-muted); }

.review-card {
    padding: 16px; margin-bottom: 12px;
    background: var(--c-white); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-author { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--c-text-muted); }
.review-stars { color: var(--c-accent); font-size: 14px; }
.review-text { font-size: 14px; color: var(--c-text-secondary); line-height: 1.6; }

/* =================================================================
   HOMEPAGE
   ================================================================= */
.home-hero {
    padding: 24px 0;
}
.hero-banner,
.hero-slide {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-primary), #047857);
    color: #fff;
    position: relative;
    display: block;
    text-decoration: none;
    min-height: 280px;
    background-size: cover;
    background-position: center;
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 48px 40px;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}
.hero-banner h1,
.hero-slide-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; max-width: 500px; }
.hero-banner p,
.hero-slide-content p { font-size: 16px; opacity: .9; margin-bottom: 20px; max-width: 500px; }
.btn-hero {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    background: #fff; color: var(--c-primary);
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: 15px;
    transition: var(--transition);
}
.btn-hero:hover { background: var(--c-primary-light); }

/* Hero slider */
.hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 280px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background .2s;
}
.hero-dot.active { background: #fff; }
.hero-dot:hover { background: rgba(255,255,255,0.7); }

.home-section { padding: 24px 0; }

/* -- Categories grid on homepage -- */
/* ─── Category tiles (Avito-style flexbox) ─── */
.cat-scroll-wrap {
    margin: 0 calc(var(--gutter, 16px) * -1);
    padding: 0 var(--gutter, 16px);
}

.cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-tile {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: auto;
    min-width: 160px;
    height: 110px;
    padding: 14px 16px;
    padding-right: 90px; /* резервируем место под картинку */
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--c-text);
    position: relative;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-tile:hover {
    border-color: var(--c-primary);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.12);
    transform: translateY(-2px);
}

.cat-tile-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--c-text);
    position: relative;
    z-index: 1;
}

.cat-tile-visual {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: none;
}
.cat-tile-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.cat-tile-emoji {
    font-size: 48px;
    line-height: 1;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.cat-tile:hover .cat-tile-emoji {
    opacity: 1;
    transform: scale(1.08);
    transition: transform .2s, opacity .2s;
}

/* Mobile horizontal scroll */
@media (max-width: 767px) {
    .cat-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }
    .cat-grid::-webkit-scrollbar { display: none; }
    .cat-tile {
        flex: 0 0 calc(50% - 5px);
        scroll-snap-align: start;
        min-width: unset;
    }
}
@media (min-width: 480px) and (max-width: 767px) {
    .cat-tile {
        flex: 0 0 calc(33.333% - 7px);
    }
}

/* Desktop: wider tiles */
@media (min-width: 768px) {
    .cat-grid {
        gap: 12px;
    }
    .cat-tile {
        min-width: 180px;
        height: 130px;
        padding: 18px 20px;
        padding-right: 100px;
    }
    .cat-tile-name {
        font-size: 15px;
    }
    .cat-tile-visual {
        width: 90px;
        height: 90px;
        right: 10px;
        bottom: 10px;
    }
    .cat-tile-emoji {
        font-size: 56px;
    }
}

/* Category grid for catalog page */
.cat-grid-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
@media (min-width: 600px) {
    .cat-grid-wrap { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 900px) {
    .cat-grid-wrap { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (min-width: 1200px) {
    .cat-grid-wrap { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}
.cat-grid-wrap .cat-tile {
    position: relative;
    min-width: unset;
    height: 120px;
}
@media (min-width: 768px) {
    .cat-grid-wrap .cat-tile { height: 140px; padding: 18px 14px 18px 20px; }
    .cat-grid-wrap .cat-tile-name { font-size: 16px; max-width: 120px; }
}

/* =================================================================
   PAGINATION
   ================================================================= */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 4px; margin-top: 32px;
}
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 8px;
    border-radius: var(--radius-xs);
    font-size: 14px; font-weight: 500;
    transition: var(--transition);
}
.pagination a { color: var(--c-text-secondary); }
.pagination a:hover { background: var(--c-primary-bg); color: var(--c-primary); }
.pagination .active {
    background: var(--c-primary); color: #fff;
    pointer-events: none;
}
.pagination .dots { color: var(--c-text-muted); }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
    background: var(--c-dark); color: rgba(255,255,255,.7);
    padding: 48px 0 0;
    margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 20px; font-weight: 800; color: #fff;
    margin-bottom: 12px;
}
.footer-tagline { font-size: 14px; opacity: .6; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-legal a:hover { color: #fff; }

.footer-soc { display: flex; gap: 8px; margin-top: 14px; }
.footer-soc a {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: rgba(255,255,255,.7); font-weight: 600;
    transition: background .15s, color .15s;
}
.footer-soc a:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* =================================================================
   EMPTY STATES
   ================================================================= */
.empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--c-text-muted);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: .3; }
.empty-state h3 { font-size: 18px; color: var(--c-text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 400px; margin: 0 auto 20px; }
.empty-state .btn { display: inline-block; }

/* =================================================================
   BUTTONS (shared)
   ================================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    cursor: pointer; border: none;
    transition: var(--transition);
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); }
.btn-outline { background: transparent; border: 2px solid var(--c-border); color: var(--c-text); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* =================================================================
   LIGHTBOX
   ================================================================= */
.gm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px;
}
.gm-lightbox.show {
    display: flex;
    animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.gm-lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.gm-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
    z-index: 10;
}
.gm-lightbox-close:hover { background: rgba(255,255,255,.3); }

.gm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: background .2s;
    z-index: 10;
}
.gm-lightbox-nav:hover { background: rgba(255,255,255,.3); }
.gm-lightbox-prev { left: 16px; }
.gm-lightbox-next { right: 16px; }

.gm-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.5);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* =================================================================
   CATEGORY CHIPS
   ================================================================= */
.categories-row {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.cat-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 50px;
    font-size: 14px; font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none; color: inherit;
}
.cat-chip:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-bg); }

/* =================================================================
   PDP — Product Detail Page (product.html)
   ================================================================= */
.pdp { padding: 16px 0 24px; }
.pdp-crumbs { margin-bottom: 16px; }

.pdp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Gallery */
.pdp-gallery { position: relative; min-width: 0; }
.pdp-main-img {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-xl, 16px);
    overflow: hidden;
    background: #f1f5f9;
    cursor: zoom-in;
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pdp-main-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-text-muted); font-size: 14px;
}

/* Thumbnails (hidden on mobile) */
.pdp-thumbs {
    display: none;
    flex-direction: column; gap: 8px;
}
.pdp-thumb {
    width: 56px; height: 56px;
    border-radius: 8px; overflow: hidden;
    border: 2px solid transparent;
    background: #fff; padding: 0; cursor: pointer;
    transition: border-color .2s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--c-primary); }

/* Mobile dots */
.pdp-dots {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 12px;
}
.pdp-dot {
    width: 6px; height: 6px; border-radius: 999px;
    border: none; background: var(--c-border);
    padding: 0; cursor: pointer; transition: all .3s;
}
.pdp-dot.active { width: 18px; background: var(--c-primary); }

/* Badges & actions overlays */
.badges-top {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.badge-sale { background: #fef2f2; color: #ef4444; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge-farmer { background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge-local { background: #ecfdf5; color: #065f46; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge-handmade { background: #ede9fe; color: #6b21a8; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }

.actions-tr {
    position: absolute; top: 12px; right: 12px;
    display: flex; gap: 8px; z-index: 2;
}
.icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--c-text-muted);
    transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.icon-btn:hover { background: #fff; color: var(--c-primary); }
.icon-btn.active { color: var(--c-danger); }
.icon-btn.active svg { fill: currentColor; }

/* Info sidebar */
.pdp-info { min-width: 0; }
.pdp-title { margin-bottom: 14px; }
.pdp-title h1 {
    font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--c-text);
    margin: 0;
}
.pdp-rating {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 13px; color: var(--c-text-secondary); margin-bottom: 6px;
}
.pdp-rating .stars { color: var(--c-accent); font-size: 14px; }
.pdp-rating a { color: var(--c-primary); text-decoration: none; }
.pdp-rating a:hover { text-decoration: underline; }
.pdp-rating .article { color: var(--c-text-muted); }

/* Price card */
.pdp-price {
    background: linear-gradient(135deg, var(--c-a-50, #fffbeb), #fff);
    border: 1px solid var(--c-a-200, #fde68a);
    border-radius: var(--r-xl, 16px);
    padding: 16px 18px;
    margin-bottom: 16px;
}
.pdp-price-row {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.pdp-price-new {
    font-size: 28px; font-weight: 800; color: var(--c-text);
    line-height: 1;
}
.pdp-price-old {
    font-size: 16px; color: var(--c-text-muted); text-decoration: line-through;
}
.pdp-price-discount {
    font-size: 13px; font-weight: 700;
    background: #fef2f2; color: #ef4444;
    padding: 2px 8px; border-radius: 6px;
}
.pdp-price-foot {
    margin-top: 8px;
    font-size: 12px; color: var(--c-text-muted);
    display: flex; align-items: center; gap: 6px;
}
.pdp-price-foot svg { color: var(--c-accent); }

/* Options / Variants */
.pdp-options { margin-bottom: 16px; }
.pdp-options-group { margin-bottom: 14px; }
.pdp-options-group:last-child { margin-bottom: 0; }
.pdp-options-label {
    font-size: 13px; font-weight: 600; color: var(--c-text-secondary);
    margin-bottom: 8px;
}
.pdp-options-row {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.pdp-options-row button, .pdp-option-btn {
    padding: 10px 18px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    font-size: 14px; background: #fff;
    cursor: pointer; transition: all .15s;
    font: inherit; font-weight: 600;
    color: var(--c-n-800);
}
.pdp-options-row button:hover, .pdp-option-btn:hover { border-color: var(--c-n-300); }
.pdp-options-row button.active, .pdp-option-btn.active {
    border-color: var(--c-primary);
    border-width: 2px;
    background: var(--c-primary-bg);
    color: var(--c-primary);
    font-weight: 600;
    padding: 9px 17px;
}

/* Qty & Actions (mockup row layout) */
.pdp-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.pdp-actions .qty { flex-shrink: 0; height: 48px; }
.pdp-actions .qty button { width: 42px; }
.pdp-actions .qty .val { min-width: 36px; text-align: center; font-weight: 600; font-size: 16px; }
.pdp-actions .btn { flex: 1; min-width: 140px; height: 48px; }

.qty {
    display: inline-flex; align-items: center; gap: 0;
    height: 48px; border: 1px solid var(--c-border);
    border-radius: 10px; background: #fff; overflow: hidden;
    flex-shrink: 0;
}
.qty button {
    width: 42px; height: 100%; border: none; background: transparent;
    font-size: 18px; color: var(--c-text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.qty button:hover { background: var(--c-bg); }
.qty input, .qty .val {
    width: 40px; text-align: center; font-weight: 600; font-size: 15px;
    border: none; background: transparent; outline: none;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-lg {
    height: 48px; padding: 0 24px;
    font-size: 16px; font-weight: 700;
    border-radius: 10px; border: none; cursor: pointer;
    transition: all .2s;
    display: inline-flex; align-items: center; justify-content: center;
    white-space: nowrap;
}
.btn-primary.btn-lg {
    background: var(--c-primary); color: #fff;
}
.btn-primary.btn-lg:hover { background: var(--c-primary-hover); }
.btn-primary.btn-lg:disabled { opacity: .5; cursor: not-allowed; }
.btn-accent.btn-lg {
    background: var(--c-accent, #f59e0b); color: #fff;
}
.btn-accent.btn-lg:hover { background: #d97706; }
.btn-glass {
    background: rgba(255,255,255,0.15); color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); }
.btn-glass.btn-lg {
    background: rgba(255,255,255,0.15); color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-soft.btn-sm {
    padding: 6px 14px; font-size: 13px; font-weight: 600;
    border-radius: 8px; border: 1px solid var(--c-border);
    background: #fff; color: var(--c-text);
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center;
}
.btn-soft.btn-sm:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* Stock */
.pdp-stock { margin-bottom: 16px; font-size: 14px; }
.pdp-stock .in-stock { color: var(--c-primary); font-weight: 600; }
.pdp-stock .out-stock { color: var(--c-text-muted); }

/* Delivery */
.pdp-delivery {
    background: var(--c-bg, #f8fafc);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg, 12px);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: grid; gap: 0;
}
.pdp-delivery .row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--c-border);
}
.pdp-delivery .row:last-child { border-bottom: 0; }
.pdp-delivery .icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
    border: 1px solid var(--c-border);
}
.pdp-delivery .icon.hl { background: var(--c-primary-bg); border-color: var(--c-primary); }
.pdp-delivery .text { flex: 1; }
.pdp-delivery .t { font-size: 13px; font-weight: 600; color: var(--c-text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdp-delivery .s { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.pdp-delivery .row svg { color: var(--c-text-muted); margin-top: 2px; flex-shrink: 0; }
.pdp-delivery .row.hl svg { color: var(--c-primary); }
.rec-tag {
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    background: var(--c-primary-bg); color: var(--c-primary);
    padding: 2px 6px; border-radius: 4px; margin-left: 4px;
}

/* Seller card */
.pdp-seller {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: #fff; border: 1px solid var(--c-border);
    border-radius: var(--r-lg, 12px);
    margin-bottom: 16px;
}
.pdp-seller .logo {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 18px;
    flex-shrink: 0; overflow: hidden;
}
.pdp-seller .logo img { width: 100%; height: 100%; object-fit: cover; }
.pdp-seller .info { flex: 1; min-width: 0; }
.pdp-seller .name {
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.pdp-seller .name a { color: var(--c-text); text-decoration: none; }
.pdp-seller .name a:hover { color: var(--c-primary); }
.badge-verified {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    font-size: 10px; display: inline-flex;
    align-items: center; justify-content: center;
}
.pdp-seller .meta {
    font-size: 12px; color: var(--c-text-muted); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Tabs */
.pdp-tabs {
    margin-top: 40px; border-bottom: 1px solid var(--c-border);
    display: flex; gap: 24px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.pdp-tabs::-webkit-scrollbar { display: none; }
.pdp-tab {
    padding: 14px 0; border: none; background: none;
    font-size: 15px; font-weight: 500; color: var(--c-text-muted);
    cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -1px; white-space: nowrap;
    transition: all .2s; font-family: inherit; flex-shrink: 0;
}
.pdp-tab:hover { color: var(--c-text); }
.pdp-tab.active { color: var(--c-text); font-weight: 600; border-bottom-color: var(--c-primary); }
.pdp-tab-content { display: none; padding: 24px 0; }
.pdp-tab-content.active { display: block; animation: fadeIn .2s ease; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.specs {
    background: var(--c-bg, #f8fafc);
    border-radius: 12px; overflow: hidden;
}
.specs .row {
    display: flex; justify-content: space-between;
    padding: 10px 16px; font-size: 14px;
    border-bottom: 1px solid var(--c-border);
}
.specs .row:last-child { border-bottom: none; }
.specs .k { color: var(--c-text-muted); }
.specs .v { font-weight: 600; color: var(--c-text); text-align: right; padding-left: 12px; }

/* Sticky mobile bar */
.pdp-sticky-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--c-border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
    align-items: center; gap: 12px;
}
.pdp-sticky-bar .price { display: flex; flex-direction: column; }
.pdp-sticky-bar .price .new { font-size: 18px; font-weight: 800; color: var(--c-text); }
.pdp-sticky-bar .price .old { font-size: 13px; color: var(--c-text-muted); text-decoration: line-through; }
.pdp-sticky-bar .btn { flex: 1; height: 44px; border-radius: 10px; }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--c-text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--c-text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.crumbs .crumb-sep { color: var(--c-border); }
.crumbs .crumb-current { color: var(--c-text-muted); }

/* Tablet */
@media (min-width: 768px) {
    .pdp-layout {
        grid-template-columns: 56px 1fr;
        grid-template-areas: "thumbs main";
    }
    .pdp-thumbs { display: flex; grid-area: thumbs; }
    .pdp-gallery { grid-area: main; }
    .pdp-title h1 { font-size: 24px; }
    .pdp-price-new { font-size: 38px; }
    .pdp-dots { display: none; }
    .grid-2 { grid-template-columns: 1.4fr 1fr; }
}

/* Desktop */
@media (min-width: 1024px) {
    .pdp-layout {
        grid-template-columns: 56px 1fr 380px;
        grid-template-areas: "thumbs main side";
        gap: 32px;
    }
    .pdp-info {
        grid-area: side;
        position: sticky; top: calc(var(--header-h) + 20px);
        align-self: flex-start;
        min-width: 0;
    }
    .pdp-sticky-bar { display: none !important; }
}

@media (max-width: 1023px) {
    .pdp-sticky-bar { display: flex; }
    body { padding-bottom: 70px; }
}

/* =================================================================
   HOMEPAGE — index.html mockup styles
   ================================================================= */

/* Hero */
.hero { padding: 16px 0 0; }
.hero-card {
    border-radius: var(--r-2xl, 20px); padding: 24px;
    background: linear-gradient(135deg, var(--c-p-700, #047857) 0%, var(--c-p-500, #10B981) 60%, var(--c-p-400, #34D399) 100%);
    color: white; position: relative; overflow: hidden;
    min-height: 220px;
    display: flex; flex-direction: column; justify-content: space-between;
}
@media (min-width: 768px) { .hero-card { padding: 32px; min-height: 280px; border-radius: 24px; } }
@media (min-width: 1024px) { .hero-card { padding: 48px; min-height: 340px; } }
.hero-card::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.hero-card::after {
    content: ''; position: absolute; bottom: -100px; right: 100px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(251,191,36,0.18);
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; background: rgba(255,255,255,0.18); backdrop-filter: blur(8px);
    border-radius: 999px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    position: relative; z-index: 2; align-self: flex-start;
}
.hero-card h1 {
    color: white; font-size: 28px; line-height: 1.1; margin-top: 14px;
    max-width: 480px; position: relative; z-index: 2;
    letter-spacing: -0.025em; font-weight: 700;
}
@media (min-width: 768px) { .hero-card h1 { font-size: 40px; max-width: 560px; } }
@media (min-width: 1024px) { .hero-card h1 { font-size: 52px; max-width: 600px; } }
.hero-card h1 .yellow { color: #FCD34D; }
.hero-card p {
    margin-top: 12px; font-size: 14px; line-height: 1.5;
    color: rgba(255,255,255,0.85); max-width: 480px;
    position: relative; z-index: 2;
}
@media (min-width: 768px) { .hero-card p { font-size: 16px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; position: relative; z-index: 2; }
@media (min-width: 768px) { .hero-cta { margin-top: 28px; } }

/* Mode switcher */
.mode-switch {
    display: flex; background: white; padding: 4px; border-radius: 14px;
    border: 1px solid var(--c-n-100); margin: 20px auto 0;
    max-width: 540px; box-shadow: var(--sh-sm, 0 1px 3px rgba(0,0,0,0.08));
}
.mode-switch button {
    flex: 1; padding: 12px 8px; border: 0; cursor: pointer;
    background: transparent; border-radius: 10px;
    font-size: 13px; font-weight: 500; color: var(--c-n-600);
    font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .15s;
}
@media (min-width: 768px) { .mode-switch button { font-size: 15px; padding: 14px 18px; } }
.mode-switch button.active { background: var(--c-primary); color: white; box-shadow: 0 2px 8px rgba(5,150,105,0.25); }
.mode-switch button .pill {
    font-size: 10px; padding: 2px 6px; background: rgba(255,255,255,0.25);
    border-radius: 4px; font-weight: 700; letter-spacing: 0.3px;
}
.mode-switch button:not(.active) .pill {
    background: var(--c-b-100); color: var(--c-b-700);
}

/* Horizontal scroll carousel utility */
.scroll-x {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; }

/* Categories scroll */
.cats {
    background: white; padding: 16px 0;
    border-top: 1px solid var(--c-n-100); border-bottom: 1px solid var(--c-n-100);
    margin-top: 24px;
}
.cats-row { display: flex; gap: 4px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; }
.cats-row::-webkit-scrollbar { display: none; }
.cats-row .cat {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 10px 4px; min-width: 76px; flex-shrink: 0;
    cursor: pointer; border-radius: 10px;
    text-decoration: none; color: var(--c-n-800);
    text-align: center;
    scroll-snap-align: start;
}
@media (min-width: 768px) { .cats-row .cat { min-width: 92px; padding: 12px 8px; } }
.cats-row .cat .icon-circle {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--c-n-100); color: var(--c-p-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    transition: all .15s;
}
@media (min-width: 768px) { .cats-row .cat .icon-circle { width: 56px; height: 56px; font-size: 26px; } }
.cats-row .cat:hover .icon-circle { background: var(--c-p-100); transform: translateY(-2px); }
.cats-row .cat.active .icon-circle { background: var(--c-primary); color: white; }
.cats-row .cat .label { font-size: 12px; font-weight: 500; }

/* Section header */
.section { padding: 32px 0 0; }
@media (min-width: 768px) { .section { padding: 40px 0 0; } }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 16px; gap: 12px;
}
.section-head .sub {
    font-size: 13px; color: var(--c-text-muted); margin-top: 4px;
}
.section-head a {
    font-size: 14px; color: var(--c-primary); font-weight: 500; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 4px;
}
.section-head a.news { color: var(--c-b-700); }

/* Product grid & card (mockup) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.product {
    display: flex; flex-direction: column;
    background: white; border-radius: var(--r-lg, 12px);
    overflow: hidden; cursor: pointer; transition: all .2s;
    border: 1px solid var(--c-border); text-decoration: none; color: inherit;
}
.product:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.product-img {
    position: relative;
    border-radius: 0;
    aspect-ratio: 1 / 1.05;
}
.product-img > img,
.product-img > .product-img-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.product-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--c-text-muted); font-size: 13px;
}
@supports not (aspect-ratio: 1 / 1) {
    .product-img { padding-top: 105%; height: 0; }
}
.product-badges-top { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.product-fav {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-text-muted); backdrop-filter: blur(8px);
    transition: color .15s, transform .15s; cursor: pointer;
}
.product-fav:hover { transform: scale(1.1); }
.product-fav.active { color: var(--c-danger); }
.product-fav.active svg { fill: currentColor; }
.product-toast {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.75); color: #fff;
    font-size: 12px; font-weight: 500;
    padding: 6px 14px; border-radius: 20px;
    white-space: nowrap; pointer-events: none;
    z-index: 3; opacity: 0; transition: opacity .25s;
    display: block;
}
.product-toast.show { opacity: 1; }
.product-labels {
    position: absolute; left: 8px; bottom: 48px;
    display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.product-buy {
    position: absolute; right: 8px; bottom: 8px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--c-primary); color: white; border: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(5,150,105,0.35);
    transition: transform .15s; cursor: pointer;
}
.product-buy:hover { transform: scale(1.08); }
.product-buy.in-cart { background: var(--c-accent); }

.product-body .product-card-cart {
    margin-top: 4px;
    width: 100%;
    height: 36px;
    border-radius: 8px;
    background: var(--c-primary);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.product-body .product-card-cart:hover { background: var(--c-primary-hover); }
.product-body .product-card-cart:disabled { background: var(--c-n-300); color: var(--c-n-500); cursor: not-allowed; }
.product-body .product-card-cart.in-cart { background: var(--c-n-300); color: var(--c-n-500); cursor: default; }

.product-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 768px) { .product-body { padding: 10px 14px 14px; } }
.product-price {
    display: flex; align-items: baseline; gap: 6px;
}
.product-price .new {
    font-size: 17px; font-weight: 700; color: var(--c-p-800);
    letter-spacing: -0.01em;
    display: inline-flex; align-items: center; gap: 4px;
}
@media (min-width: 768px) { .product-price .new { font-size: 19px; } }
.product-price .old { font-size: 12px; color: var(--c-text-muted); text-decoration: line-through; }
.product-title {
    font-size: 12px; line-height: 1.4; color: var(--c-text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 34px;
}
@media (min-width: 768px) { .product-title { font-size: 13px; min-height: 36px; } }
.product-rating { font-size: 11px; color: var(--c-text-muted); display: flex; align-items: center; gap: 4px; }
.product-rating .stars { color: var(--c-accent); }
.product-rating strong { color: var(--c-text); }
.product-seller { font-size: 11px; color: var(--c-text-muted); display: flex; align-items: center; gap: 4px; }
.product-seller .av {
    width: 14px; height: 14px; border-radius: 3px;
    background: var(--c-primary-bg); color: var(--c-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 9px;
}

/* News cards */
.news-side {
    display: grid; gap: 14px;
    grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) { .news-side { grid-template-columns: repeat(4, 1fr); } }
.news-h-card {
    background: white; border: 1px solid var(--c-border);
    border-radius: var(--r-lg, 12px); overflow: hidden;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; cursor: pointer;
    transition: all .2s;
}
.news-h-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.news-h-card .img { aspect-ratio: 16/9; background: var(--c-bg); overflow: hidden; }
.news-h-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-h-card .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-h-card h4 {
    font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--c-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-h-card .meta { font-size: 11px; color: var(--c-text-muted); display: flex; gap: 8px; margin-top: auto; }
.tag {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--c-b-700);
    padding: 4px 10px; background: var(--c-b-100); border-radius: 999px;
    align-self: flex-start;
}

/* Promo banner */
.promo {
    margin-top: 32px; padding: 24px;
    background: linear-gradient(95deg, var(--c-p-700, #047857) 0%, var(--c-p-500, #10B981) 100%);
    color: white; border-radius: var(--r-xl, 16px);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 768px) {
    .promo { padding: 32px 40px; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
}
.promo::before {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
    background: rgba(251,191,36,0.18); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
}
.promo-text { position: relative; z-index: 1; max-width: 540px; }
.promo-text .eyebrow { font-size: 11px; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; }
.promo-text h2 { color: white; font-size: 24px; margin-top: 6px; }
@media (min-width: 768px) { .promo-text h2 { font-size: 30px; } }
.promo-text p { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,0.85); }

/* Shops grid */
.shops-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 599px) {
    .shops-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 4px;
        padding-bottom: 4px;
    }
    .shops-grid::-webkit-scrollbar { display: none; }
    .shops-grid .shop-card {
        width: 260px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}
@media (min-width: 600px) { .shops-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .shops-grid { grid-template-columns: repeat(5, 1fr); } }
.shop-card {
    background: white; border-radius: var(--r-lg, 12px); padding: 14px;
    border: 1px solid var(--c-border); cursor: pointer; transition: all .2s;
    display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
}
.shop-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.shop-cover { height: 70px; border-radius: 8px; background: var(--c-bg); overflow: hidden; }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-info { display: flex; align-items: center; gap: 10px; }
.shop-logo {
    width: 38px; height: 38px; border-radius: 9px; margin-top: -22px;
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; border: 3px solid white;
    flex-shrink: 0; background: var(--c-primary);
}
.shop-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.shop-meta { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.shop-foot .items { color: var(--c-primary); font-weight: 600; }

/* Events row */
.events-row { display: flex; gap: 12px; padding-bottom: 4px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; }
.events-row::-webkit-scrollbar { display: none; }
.event-card {
    background: white; border-radius: var(--r-lg, 12px); overflow: hidden;
    width: 220px; flex-shrink: 0; border: 1px solid var(--c-border);
    cursor: pointer; transition: all .2s; text-decoration: none; color: inherit;
}
.event-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.event-card .img { aspect-ratio: 3/2; background: var(--c-bg); position: relative; overflow: hidden; }
.event-card .img img { width: 100%; height: 100%; object-fit: cover; }
.event-card .date-tag {
    position: absolute; top: 10px; left: 10px;
    background: rgba(255,255,255,0.95); border-radius: 8px;
    padding: 6px 10px; display: flex; flex-direction: column; align-items: center;
    min-width: 48px;
}
.event-card .date-tag .d { font-size: 16px; font-weight: 700; color: var(--c-text); line-height: 1; }
.event-card .date-tag .m { font-size: 9px; color: var(--c-text-secondary); text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.event-card .free-tag {
    position: absolute; top: 10px; right: 10px;
    background: rgba(255,255,255,0.95); color: var(--c-primary);
    padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 700;
}
.event-card .e-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.event-card .e-cat { font-size: 10px; color: var(--c-b-700); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.event-card .e-title { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card .e-place { font-size: 11px; color: var(--c-text-muted); }

/* Video badge */
.video-badge {
    position: absolute; bottom: 16px; left: 16px;
    background: rgba(255,255,255,0.92); padding: 8px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600; color: var(--c-p-700);
}

/* =================================================================
   PAGE-SPECIFIC STYLES — Package 1 (listing, seller, shops)
   ================================================================= */

.listing-head { padding: 20px 0 12px; }
  .listing-head .crumbs { margin-bottom: 12px; }
  .listing-head .row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .listing-head h1 { font-size: 24px; }
  @media (min-width: 768px) { .listing-head h1 { font-size: 32px; } }
  .listing-head .count { color: var(--c-n-500); font-size: 14px; }

  .filter-bar {
    position: sticky; top: 56px; z-index: 30;
    padding: 16px 0; background: var(--c-n-50);
    border-bottom: 1px solid var(--c-n-100);
  }
  @media (min-width: 768px) { .filter-bar { top: 78px; } }

  .filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row { scrollbar-width: none; }

  .sale-toggle {
    display: inline-flex; align-items: center; gap: 12px;
    height: 42px; padding: 0 8px 0 16px; border-radius: 999px;
    background: linear-gradient(95deg, var(--c-sale) 0%, var(--c-a-500) 100%);
    color: white; border: 0; font: inherit;
    font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(239,68,68,0.25);
    flex-shrink: 0;
  }
  .sale-toggle .switch {
    width: 32px; height: 20px; border-radius: 10px;
    background: rgba(255,255,255,0.25); padding: 2px; position: relative;
    transition: background .2s;
  }
  .sale-toggle .switch::after {
    content: ''; width: 16px; height: 16px; border-radius: 50%;
    background: white; position: absolute; right: 2px; transition: right .2s;
  }
  .sale-toggle.off .switch { background: rgba(0,0,0,0.2); }
  .sale-toggle.off .switch::after { right: auto; left: 2px; }
  .sale-toggle.off { background: white; color: var(--c-sale); box-shadow: var(--sh-sm); border: 1px solid var(--c-n-200); }

  .filter-pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 42px; padding: 0 16px; border-radius: 999px;
    background: white; border: 1px solid var(--c-n-200);
    color: var(--c-n-800); font: inherit; font-size: 14px; font-weight: 500;
    flex-shrink: 0; cursor: pointer; transition: all .15s;
  }
  .filter-pill:hover { border-color: var(--c-n-300); }
  .filter-pill.active { background: var(--c-p-600); color: white; border-color: var(--c-p-600); }
  .filter-pill svg { flex-shrink: 0; }

  .view-toggle {
    display: flex; gap: 4px; background: white; padding: 4px;
    border-radius: 10px; border: 1px solid var(--c-n-200); margin-left: auto;
    flex-shrink: 0;
  }
  .view-toggle button {
    width: 34px; height: 34px; border: 0; background: transparent;
    border-radius: 7px; color: var(--c-n-500); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .view-toggle button.active { background: var(--c-p-50); color: var(--c-p-700); }
  @media (max-width: 600px) { .view-toggle { display: none; } }

  .active-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .active-tag {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 8px 0 12px; border-radius: 999px;
    background: var(--c-p-600); color: white; font-size: 13px; font-weight: 500;
    border: 0; cursor: pointer; font-family: inherit;
  }
  .active-tag svg { flex-shrink: 0; }
  .clear-all {
    align-self: center; padding: 0 8px;
    font-size: 13px; color: var(--c-b-700); cursor: pointer;
    background: transparent; border: 0; font-weight: 500; font-family: inherit;
  }

  .listing-body { padding: 24px 0; }
  .promo-inline {
    margin: 20px 0; padding: 18px;
    background: linear-gradient(95deg, var(--c-a-100) 0%, var(--c-a-50) 100%);
    border: 1px solid var(--c-a-200); border-radius: var(--r-xl);
    display: flex; align-items: center; gap: 16px;
  }
  @media (max-width: 600px) { .promo-inline { flex-direction: column; align-items: flex-start; gap: 12px; } }
  .promo-inline .logo {
    width: 56px; height: 56px; border-radius: 12px; background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: var(--c-a-700); flex-shrink: 0;
  }
  .promo-inline .text { flex: 1; }
  .promo-inline .eyebrow { font-size: 11px; color: var(--c-a-800); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
  .promo-inline h3 { margin-top: 4px; }
  .promo-inline p { font-size: 13px; color: var(--c-n-600); margin-top: 4px; }

  .mobile-filter-fab {
    position: fixed; bottom: 90px; right: 16px; z-index: 50;
    background: var(--c-p-600); color: white; border: 0;
    padding: 12px 18px; border-radius: 999px; font: inherit;
    font-weight: 600; font-size: 14px;
    box-shadow: 0 8px 24px rgba(5,150,105,0.4);
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
  }
  @media (min-width: 768px) { .mobile-filter-fab { display: none; } }

  /* Side drawer for filters — desktop slides from right, mobile from bottom */
  .sheet-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.5);
    z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .sheet-overlay.open { opacity: 1; pointer-events: auto; }
  .sheet {
    position: fixed; z-index: 201;
    background: white;
    box-shadow: -10px 0 40px rgba(0,0,0,0.18);
    display: flex; flex-direction: column;
    transition: transform .3s cubic-bezier(.2,.7,.3,1);
  }
  /* Desktop: right side drawer */
  @media (min-width: 768px) {
    .sheet {
      top: 0; right: 0; bottom: 0;
      width: 420px; max-width: 90vw;
      transform: translateX(100%);
      border-radius: 0;
    }
    .sheet.open { transform: translateX(0); }
  }
  /* Mobile: bottom sheet */
  @media (max-width: 767px) {
    .sheet {
      bottom: 0; left: 0; right: 0;
      max-height: 88vh;
      transform: translateY(100%);
      border-radius: 20px 20px 0 0;
      box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    }
    .sheet.open { transform: translateY(0); }
  }
  .sheet-handle { width: 40px; height: 4px; background: var(--c-n-300); border-radius: 2px; margin: 12px auto 4px; flex-shrink: 0; }
  @media (min-width: 768px) { .sheet-handle { display: none; } }
  .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 20px 12px; border-bottom: 1px solid var(--c-n-100);
    flex-shrink: 0;
  }
  @media (min-width: 768px) { .sheet-head { padding: 20px 24px 16px; } }
  .sheet-body { flex: 1; overflow-y: auto; padding: 0 20px; }
  @media (min-width: 768px) { .sheet-body { padding: 0 24px; } }
  .sheet-body .group { padding: 16px 0; border-bottom: 1px solid var(--c-n-100); min-width: 0; }
  .sheet-body .group h4 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .sheet-body .options { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .sheet-body .input { min-width: 0; }
  .sheet-body .input input { width: 100%; min-width: 0; }
  .sheet-body > * { max-width: 100%; box-sizing: border-box; }
  .sheet-foot {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-n-100);
    display: flex; gap: 10px; flex-shrink: 0;
  }
  @media (min-width: 768px) { .sheet-foot { padding: 16px 24px; } }.seller-cover {
    height: 200px; background: linear-gradient(135deg, #064E3B 0%, #047857 50%, #10B981 100%);
    position: relative; overflow: hidden;
  }
  @media (min-width: 768px) { .seller-cover { height: 240px; } }
  .seller-cover::before { content: ''; position: absolute; top: -40px; right: 80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.08); }
  .seller-cover::after { content: ''; position: absolute; bottom: -60px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(251,191,36,0.18); }
  .seller-cover .badge-row { position: absolute; top: 16px; right: var(--gutter); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); color: white; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
  @media (max-width: 600px) { .seller-cover .badge-row { font-size: 10px; padding: 4px 10px; right: var(--gutter); top: auto; bottom: 12px; } }
  .seller-cover .crumbs-top { padding-top: 20px; }
  .seller-cover .crumbs-top a, .seller-cover .crumbs-top span { color: rgba(255,255,255,0.85); }

  .seller-head { margin-top: -60px; position: relative; }
  .seller-head-inner { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
  .seller-logo {
    width: 110px; height: 110px; border-radius: 20px;
    background: white; border: 5px solid white;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 800; color: var(--c-p-700);
    box-shadow: var(--sh-lg); flex-shrink: 0;
  }
  @media (min-width: 768px) { .seller-logo { width: 140px; height: 140px; font-size: 48px; } }
  .seller-info { flex: 1; min-width: 220px; padding-bottom: 8px; }
  .seller-info h1 { font-size: 24px; }
  @media (min-width: 768px) { .seller-info h1 { font-size: 32px; } }
  .seller-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; color: var(--c-n-600); font-size: 13px; flex-wrap: wrap; }
  .seller-meta strong { color: var(--c-n-900); }
  .seller-actions { display: flex; gap: 10px; padding-bottom: 8px; }
  .seller-desc { margin-top: 20px; font-size: 15px; color: var(--c-n-700); line-height: 1.55; max-width: 820px; }
  @media (min-width: 768px) { .seller-desc { font-size: 16px; } }

  .seller-tabs {
    display: flex; gap: 28px; margin-top: 24px; border-bottom: 1px solid var(--c-n-200);
    overflow-x: auto; scrollbar-width: none;
  }
  .seller-tabs::-webkit-scrollbar { display: none; }
  .seller-tab {
    padding: 14px 0; font-size: 14px; font-weight: 500; color: var(--c-n-500);
    background: transparent; border: 0; border-bottom: 2px solid transparent;
    cursor: pointer; font-family: inherit; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .seller-tab.active { color: var(--c-n-900); font-weight: 600; border-bottom-color: var(--c-p-600); }
  .seller-tab .n { font-size: 12px; color: var(--c-n-400); }

  .seller-subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

  /* Filter sidebar layout — inside default 1200px container */
  .products-layout { display: grid; gap: 20px; margin-top: 20px; }
  @media (min-width: 1024px) { .products-layout { grid-template-columns: 240px 1fr; gap: 24px; } }
  @media (min-width: 1024px) {
    .products-layout .product-grid { grid-template-columns: repeat(4, 1fr); }
  }
  .pf-side { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 18px; align-self: flex-start; min-width: 0; }
  @media (min-width: 1024px) { .pf-side { position: sticky; top: 100px; } }
  .pf-group { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--c-n-100); }
  .pf-group:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .pf-group h4 { font-size: 13px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
  .pf-group h4 svg { color: var(--c-n-400); }
  .pf-body { display: flex; flex-direction: column; gap: 10px; }
  .pf-body .checkbox { font-size: 13px; }
  .pf-body .checkbox .ct { color: var(--c-n-400); font-weight: 400; }
  .price-mini { display: flex; gap: 8px; }
  .price-mini .input { flex: 1; min-width: 0; height: 38px; padding: 4px 10px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  .price-mini .input .l { font-size: 10px; color: var(--c-n-500); }
  .price-mini .input input { font-size: 13px; font-weight: 500; height: 16px; width: 100%; min-width: 0; }

  .photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 600px) { .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
  .photo-grid .img { aspect-ratio: 1; border-radius: var(--r-lg); cursor: pointer; font-size: 10px; transition: transform .15s; }
  .photo-grid .img:hover { transform: scale(1.02); }

  .where-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
  @media (min-width: 768px) { .where-grid { grid-template-columns: 1fr 1fr; } }
  .map-mock {
    aspect-ratio: 16/9; border-radius: var(--r-xl);
    background: var(--c-p-50);
    background-image: repeating-linear-gradient(0deg, rgba(5,150,105,0.06) 0 1px, transparent 1px 60px),
                      repeating-linear-gradient(90deg, rgba(5,150,105,0.06) 0 1px, transparent 1px 60px);
    border: 1px solid var(--c-p-100); position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .map-mock .pin {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--c-p-600); color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    border: 3px solid white;
  }
  .contact-card { background: white; border-radius: var(--r-xl); border: 1px solid var(--c-n-100); padding: 24px; }
  .contact-card .row { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
  .contact-card .row .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--c-p-50); color: var(--c-p-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .contact-card .t { font-size: 14px; font-weight: 600; }
  .contact-card .s { font-size: 12px; color: var(--c-n-500); margin-top: 2px; }/* Account sub-pages shared styles (orders, favorites, chats, my-ads, bonuses) */
.sub-page { padding: 20px 0 48px; }
.sub-layout { display: grid; gap: 20px; }
@media (min-width: 1024px) { .sub-layout { grid-template-columns: 260px 1fr; gap: 24px; } }

.sub-side { background: white; border-radius: var(--r-lg); border: 1px solid var(--c-n-100); padding: 8px; }
@media (min-width: 1024px) { .sub-side { position: sticky; top: 100px; align-self: flex-start; } }
.sub-side .row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 8px; cursor: pointer; color: var(--c-n-800);
  font-weight: 500; font-size: 14px; text-decoration: none;
}
.sub-side .row:hover { background: var(--c-n-50); }
.sub-side .row.active { background: var(--c-p-50); color: var(--c-p-800); font-weight: 600; }
.sub-side .row.active svg { color: var(--c-p-700); }
.sub-side .row svg { color: var(--c-n-500); flex-shrink: 0; }
.sub-side .row .n { margin-left: auto; background: var(--c-sale); color: white; font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 700; }
@media (max-width: 1023px) {
  .sub-side { padding: 8px; overflow-x: auto; }
  .sub-side .rows { display: flex; gap: 4px; }
  .sub-side .row { flex-shrink: 0; white-space: nowrap; padding: 8px 12px; }
  .sub-side .row .n { margin-left: 0; }
}
@media (min-width: 1024px) { .sub-side .rows { display: flex; flex-direction: column; } }

.sub-content h1 { margin-bottom: 6px; }
.sub-content .sub-meta { font-size: 14px; color: var(--c-n-500); margin-bottom: 20px; }

/* Info / static page styles */
.info-hero {
  background: linear-gradient(135deg, var(--c-p-700) 0%, var(--c-p-500) 100%);
  color: white; padding: 36px 0 28px; position: relative; overflow: hidden;
}
.info-hero::before { content: ''; position: absolute; top: -40px; right: 80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.info-hero::after { content: ''; position: absolute; bottom: -80px; right: -20px; width: 200px; height: 200px; border-radius: 50%; background: rgba(251,191,36,0.18); }
.info-hero .container { position: relative; }
.info-hero h1 { color: white; font-size: 32px; letter-spacing: -0.025em; }
@media (min-width: 768px) { .info-hero h1 { font-size: 44px; } }
.info-hero p { color: rgba(255,255,255,0.85); margin-top: 10px; font-size: 16px; max-width: 720px; line-height: 1.5; }
.info-hero .crumbs a, .info-hero .crumbs span { color: rgba(255,255,255,0.85); }

.info-page { padding: 32px 0 48px; }
.info-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .info-layout { grid-template-columns: 1fr 280px; gap: 48px; } }

.info-body { font-size: 15px; line-height: 1.7; color: var(--c-n-700); max-width: 760px; }
.info-body p { margin: 0 0 14px; }
.info-body h2 { font-size: 22px; margin: 32px 0 14px; color: var(--c-n-900); }
.info-body h2:first-child { margin-top: 0; }
.info-body h3 { font-size: 17px; margin: 22px 0 10px; color: var(--c-n-900); }
.info-body ul { padding-left: 22px; margin: 12px 0; }
.info-body ul li { margin-bottom: 6px; }
.info-body strong { color: var(--c-n-900); font-weight: 600; }
.info-body a { color: var(--c-p-700); }

.info-toc { background: white; border-radius: var(--r-lg); border: 1px solid var(--c-n-100); padding: 18px; }
@media (min-width: 1024px) { .info-toc { position: sticky; top: 100px; align-self: flex-start; } }
.info-toc h4 { margin-bottom: 12px; font-size: 13px; }
.info-toc a { display: block; padding: 8px 0; font-size: 13px; color: var(--c-n-700); border-bottom: 1px solid var(--c-n-100); }
.info-toc a:last-child { border-bottom: 0; }
.info-toc a:hover { color: var(--c-p-700); }

.faq-item {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-md);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  background: transparent; border: 0; width: 100%; text-align: left; font-family: inherit;
}
.faq-q svg { color: var(--c-n-400); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--c-p-700); }
.faq-a {
  padding: 0 18px 18px; font-size: 14px; line-height: 1.6; color: var(--c-n-700); display: none;
}
.faq-item.open .faq-a { display: block; }

.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--c-p-100); color: var(--c-p-700);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.feature h3 { font-size: 16px; }
.feature p { font-size: 13px; color: var(--c-n-600); line-height: 1.45; margin: 0; }

/* Step list */
.steps { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.step-row {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg);
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.step-row .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-p-600); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.step-row h3 { font-size: 16px; margin-bottom: 4px; }
.step-row p { font-size: 14px; color: var(--c-n-600); line-height: 1.5; margin: 0; }

/* CTA banner */
.cta-banner {
  margin: 32px 0; padding: 28px;
  background: linear-gradient(95deg, var(--c-p-700) 0%, var(--c-p-500) 100%);
  color: white; border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .cta-banner { padding: 36px 40px; flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-banner::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 35%; background: rgba(251,191,36,0.18); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: white; font-size: 26px; letter-spacing: -0.02em; }
.cta-banner p { font-size: 15px; color: rgba(255,255,255,0.85); margin-top: 6px; max-width: 480px; }

/* =================================================================
   EVENTS PAGES
   ================================================================= */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--r-full);
  background: var(--c-n-100); color: var(--c-n-700);
  font-size: 13px; font-weight: 500; border: 1px solid transparent;
  flex-shrink: 0; cursor: pointer; font-family: inherit; text-decoration: none;
}
.chip:hover { background: var(--c-n-200); }
.chip.active { background: var(--c-p-600); color: white; }
.chip.outline { background: white; border-color: var(--c-n-200); }

.ev-hero {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #8B5CF6 100%);
  padding: 28px 0; color: white; position: relative; overflow: hidden;
}
.ev-hero::before { content: ''; position: absolute; top: -40px; right: 80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.ev-hero::after { content: ''; position: absolute; bottom: -80px; right: -20px; width: 200px; height: 200px; border-radius: 50%; background: rgba(251,191,36,0.18); }
.ev-hero .container { position: relative; }
.ev-hero h1 { color: white; font-size: 32px; margin-top: 8px; letter-spacing: -0.025em; }
@media (min-width: 768px) { .ev-hero h1 { font-size: 44px; } }
.ev-hero p { font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 6px; }
.ev-hero .crumbs a, .ev-hero .crumbs span { color: rgba(255,255,255,0.85); }

.ev-toolbar { padding: 16px 0; }
.ev-toolbar .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ev-toolbar .cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ev-toolbar .cats::-webkit-scrollbar { display: none; }
.view-toggle {
  display: flex; gap: 4px; background: white; padding: 4px;
  border: 1px solid var(--c-n-200); border-radius: 10px;
}
.view-toggle button {
  padding: 8px 14px; border: 0; cursor: pointer; background: transparent;
  border-radius: 7px; color: var(--c-n-600); font: inherit; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.view-toggle button.active { background: var(--c-b-600); color: white; }
.filter-chip-active { background: var(--c-p-50) !important; color: var(--c-p-700) !important; border-color: var(--c-p-300) !important; }

.ev-featured {
  background: white; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--c-n-100); margin: 24px 0;
  transition: all .2s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
@media (min-width: 768px) {
  .ev-featured { flex-direction: row; }
  .ev-featured .img { flex: 0 0 54%; }
  .ev-featured .body { flex: 1; min-width: 0; }
}
.ev-featured:hover { box-shadow: var(--sh-md); }
.ev-featured .img { aspect-ratio: 16/11; border-radius: 0; font-size: 14px; position: relative; min-height: 220px; overflow: hidden; }
.ev-featured .img img { width: 100%; height: 100%; object-fit: cover; }
.ev-featured .featured-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--c-sale); color: white;
  padding: 6px 14px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  z-index: 2;
}
.ev-featured .body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .ev-featured .body { padding: 28px 32px; } }
.ev-featured h2 { font-size: 22px; margin-top: 12px; line-height: 1.2; }
@media (min-width: 768px) { .ev-featured h2 { font-size: 26px; } }
.ev-featured .lead { font-size: 14px; color: var(--c-n-600); margin-top: 10px; line-height: 1.5; }
.ev-featured .meta-row { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--c-n-700); flex-wrap: wrap; }
.ev-featured .actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.ev-featured .count { font-size: 13px; color: var(--c-n-500); }

.date-section { margin-top: 32px; }
.date-section h3 { padding-bottom: 8px; border-bottom: 1px solid var(--c-n-200); margin-bottom: 14px; }

.ev-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .ev-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .ev-grid { grid-template-columns: repeat(4, 1fr); } }
.ev-card {
  background: white; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-n-100); cursor: pointer; transition: all .2s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.ev-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.ev-card .img { aspect-ratio: 3/2; border-radius: 0; position: relative; font-size: 11px; overflow: hidden; }
.ev-card .img img { width: 100%; height: 100%; object-fit: cover; }
.ev-card .date-tag { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.95); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.ev-card .date-tag .d { font-size: 16px; font-weight: 700; color: var(--c-n-900); line-height: 1; }
.ev-card .date-tag .m { font-size: 9px; color: var(--c-n-600); text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.ev-card .free-tag { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.95); color: var(--c-p-700); padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.ev-card .b { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ev-card .b .cat { font-size: 10px; color: var(--c-b-700); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.ev-card .b .t { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card .b .p { font-size: 11px; color: var(--c-n-500); }
.ev-card .b .pr { font-size: 13px; font-weight: 600; margin-top: 4px; }

.pane { display: none; }
.pane.active { display: block; }

.cal-wrap { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 18px; margin: 24px 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.cal-head h3 { font-size: 18px; text-transform: capitalize; }
.cal-head .nav { display: flex; gap: 6px; }
.cal-head .nav button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--c-n-200); background: white; cursor: pointer; font-size: 16px; }
.cal-head .nav .today-btn { width: auto; padding: 0 14px; font-size: 13px; font-weight: 500; font-family: inherit; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { padding: 8px 4px; text-align: center; font-size: 11px; color: var(--c-n-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.cal-day {
  min-height: 76px; padding: 6px; border: 1px solid var(--c-n-100); border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px;
  background: white; cursor: pointer; transition: all .15s; min-width: 0;
}
.cal-day:hover { background: var(--c-n-50); border-color: var(--c-n-200); }
.cal-day.empty { border-color: transparent; background: transparent; cursor: default; }
.cal-day.empty:hover { background: transparent; }
.cal-day.today { border-color: var(--c-b-600); border-width: 2px; padding: 5px; background: var(--c-b-50); }
.cal-day .d { font-size: 13px; font-weight: 600; color: var(--c-n-800); }
.cal-day.today .d { color: var(--c-b-800); }
.cal-day .e { font-size: 9px; padding: 2px 4px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.cal-day .e.con { background: var(--c-warning-bg); color: var(--c-warning); }
.cal-day .e.cul { background: var(--c-b-100); color: var(--c-b-800); }
.cal-day .e.spt { background: var(--c-p-100); color: var(--c-p-800); }
.cal-day .e.kid { background: #EDE9FE; color: #5B21B6; }
.cal-day .e.fes { background: #FCE7F3; color: #9D174D; }
.cal-day .more { font-size: 10px; color: var(--c-n-500); margin-top: auto; }
@media (max-width: 600px) {
  .cal-day { min-height: 50px; padding: 4px; }
  .cal-day .e { display: none; }
  .cal-day.has-ev::after { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--c-b-600); margin: 4px auto 0; }
}

/* -- Event detail page -- */
.ev-page { padding: 16px 0 32px; }
.ev-cover .img {
  aspect-ratio: 21/9; border-radius: var(--r-xl); font-size: 16px;
  position: relative; overflow: hidden; background: var(--c-n-100);
}
.ev-cover .img img { width: 100%; height: 100%; object-fit: cover; }
.ev-cover .badges { position: absolute; top: 20px; left: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.ev-cover .badges > span { padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
.ev-cover .actions { position: absolute; top: 20px; right: 20px; display: flex; gap: 8px; }
.ev-cover .actions .icon-btn { background: rgba(255,255,255,0.92); border: 0; }

.ev-layout { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 1024px) { .ev-layout { grid-template-columns: 1fr 360px; gap: 40px; } }

.ev-title { font-size: 28px; line-height: 1.1; letter-spacing: -0.025em; }
@media (min-width: 768px) { .ev-title { font-size: 40px; } }
.ev-lead { font-size: 17px; color: var(--c-n-600); line-height: 1.55; margin-top: 16px; }

.meta-cards { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 600px) { .meta-cards { grid-template-columns: repeat(3, 1fr); } }
.meta-card {
  padding: 14px; background: var(--c-n-50); border-radius: var(--r-md);
  display: flex; align-items: center; gap: 10px;
}
.meta-card .ic {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--c-b-100); color: var(--c-b-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.meta-card .t { font-size: 14px; font-weight: 600; }
.meta-card .s { font-size: 12px; color: var(--c-n-500); margin-top: 2px; }

.programme { display: flex; flex-direction: column; gap: 0; margin-top: 14px; }
.prog-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-n-100); }
.prog-row:last-child { border-bottom: 0; }
.prog-row .time {
  width: 70px; flex-shrink: 0; height: fit-content;
  font-size: 14px; font-weight: 700; color: var(--c-b-700);
  background: var(--c-b-50); padding: 6px 10px; border-radius: 8px; text-align: center;
}
.prog-row h3 { font-size: 16px; }
.prog-row p { font-size: 13px; color: var(--c-n-500); margin-top: 4px; }

.how-grid { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 600px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-row { padding: 14px; background: var(--c-n-50); border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.how-row .em { font-size: 22px; flex-shrink: 0; }
.how-row .t { font-size: 13px; font-weight: 600; }
.how-row .s { font-size: 11px; color: var(--c-n-500); margin-top: 2px; }

.org-card {
  margin-top: 14px; display: flex; gap: 14px; align-items: center;
  padding: 18px; background: var(--c-n-50); border-radius: var(--r-md);
  flex-wrap: wrap;
}
.org-card .logo {
  width: 56px; height: 56px; border-radius: 12px; background: var(--c-b-600);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; flex-shrink: 0;
}

.ev-side { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1024px) { .ev-side { position: sticky; top: 100px; align-self: flex-start; } }
.price-block {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 22px;
}
.price-block .price { font-size: 32px; font-weight: 700; color: var(--c-p-700); letter-spacing: -0.02em; }
.price-block .price-sub { font-size: 13px; color: var(--c-n-500); margin-top: 2px; }
.going-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-n-100); }
.going-avs { display: flex; }
.going-avs .av {
  width: 30px; height: 30px; border-radius: 50%; color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; border: 2px solid white; margin-left: -8px;
}
.going-avs .av:first-child { margin-left: 0; }

.cross-card { background: var(--c-p-50); border-radius: var(--r-lg); padding: 18px; border: 1px solid var(--c-p-100); }
.cross-card .head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 12px; font-weight: 700; color: var(--c-p-800); text-transform: uppercase; letter-spacing: 0.5px; }
.cross-card .items { display: flex; flex-direction: column; gap: 8px; }
.cross-card .item { display: flex; gap: 10px; background: white; padding: 8px; border-radius: 8px; align-items: center; text-decoration: none; color: inherit; }
.cross-card .item .img { width: 40px; height: 40px; font-size: 7px; flex-shrink: 0; }
.cross-card .item .ttl { font-size: 11px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cross-card .item .p { font-size: 13px; font-weight: 700; }
.cross-card .add { width: 28px; height: 28px; border-radius: 50%; background: var(--c-p-600); color: white; border: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }

.share-card { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 18px; }
.share-row { display: flex; gap: 8px; margin-top: 12px; }
.share-row button {
  flex: 1; height: 40px; border-radius: 8px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: white;
}

.similar-row { padding: 32px 0 0; }
.similar-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .similar-grid { grid-template-columns: repeat(4, 1fr); } }
.sim-card {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; transition: all .2s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.sim-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.sim-card .img { aspect-ratio: 3/2; border-radius: 0; font-size: 10px; position: relative; overflow: hidden; }
.sim-card .img img { width: 100%; height: 100%; object-fit: cover; }
.sim-card .date-tag { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,0.95); padding: 4px 8px; border-radius: 6px; }
.sim-card .date-tag .d { font-size: 14px; font-weight: 700; line-height: 1; }
.sim-card .date-tag .m { font-size: 9px; text-transform: uppercase; font-weight: 700; margin-top: 1px; }
.sim-card .b { padding: 12px; }
.sim-card .cat { font-size: 10px; color: var(--c-b-700); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.sim-card .t { font-size: 13px; font-weight: 600; margin-top: 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.btn-sec { background: white; color: var(--c-p-700); border-color: var(--c-p-600); }
.btn-sec:hover { background: var(--c-p-50); }
.btn-xl { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* =================================================================
   NEWS & ARTICLE PAGES (from mockups)
   ================================================================= */

/* --- Image placeholders --- */
.img {
  background-color: var(--c-n-100);
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 12px);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-n-500); font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; text-align: center; position: relative; overflow: hidden;
  border-radius: var(--r-md);
}
.img-warm { background-color: var(--c-a-50); background-image: repeating-linear-gradient(135deg, rgba(217,119,6,0.08) 0 1px, transparent 1px 12px); color: var(--c-a-700); }
.img-cool { background-color: var(--c-b-50); background-image: repeating-linear-gradient(135deg, rgba(37,99,235,0.08) 0 1px, transparent 1px 12px); color: var(--c-b-700); }
.img-green { background-color: var(--c-p-50); background-image: repeating-linear-gradient(135deg, rgba(5,150,105,0.08) 0 1px, transparent 1px 12px); color: var(--c-p-700); }
.img-purple { background-color: #EDE9FE; background-image: repeating-linear-gradient(135deg, rgba(124,58,237,0.08) 0 1px, transparent 1px 12px); color: #5B21B6; }

/* --- News listing --- */
.news-hero {
  background: linear-gradient(180deg, var(--c-b-50) 0%, white 100%);
  border-bottom: 1px solid var(--c-b-100);
  padding: 24px 0 16px;
}
.news-hero .label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--c-b-600); color: white;
  border-radius: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.news-hero h1 { color: var(--c-b-900); margin-top: 14px; }
.news-hero p { color: var(--c-n-600); margin-top: 6px; font-size: 14px; }

.news-cats { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; }
.news-cats::-webkit-scrollbar { display: none; }

.news-layout { padding: 24px 0; display: grid; gap: 24px; }
@media (min-width: 1024px) { .news-layout { grid-template-columns: 1fr 320px; } }

.news-main-card {
  background: white; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--c-n-100); margin-bottom: 24px; cursor: pointer;
  transition: all .2s; text-decoration: none; color: inherit; display: block;
}
.news-main-card:hover { box-shadow: var(--sh-md); }
.news-main-card .img {
  aspect-ratio: 21/9; border-radius: 0; font-size: 14px; position: relative;
}
.news-main-card .featured-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--c-sale); color: white;
  padding: 6px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.news-main-card .body { padding: 20px; }
@media (min-width: 768px) { .news-main-card .body { padding: 28px; } }
.news-main-card h2 { margin-top: 10px; }
@media (min-width: 768px) { .news-main-card h2 { font-size: 28px; } }
.news-main-card .lead { font-size: 14px; color: var(--c-n-600); margin-top: 10px; line-height: 1.5; }
@media (min-width: 768px) { .news-main-card .lead { font-size: 16px; } }
.news-main-card .meta { display: flex; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--c-n-500); flex-wrap: wrap; }

.news-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .news-grid { grid-template-columns: 1fr 1fr; } }

.news-card {
  background: white; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-n-100); cursor: pointer; transition: all .2s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.news-card .img { aspect-ratio: 16/9; border-radius: 0; font-size: 11px; }
.news-card .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 {
  font-size: 15px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .lead {
  font-size: 13px; color: var(--c-n-600); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .meta { display: flex; gap: 12px; margin-top: auto; font-size: 11px; color: var(--c-n-500); }

.news-list-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--c-n-100); cursor: pointer;
  text-decoration: none; color: inherit;
}
@media (min-width: 600px) { .news-list-row { grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; } }
.news-list-row .img { aspect-ratio: 4/3; border-radius: 8px; font-size: 9px; }
.news-list-row h3 { font-size: 16px; line-height: 1.3; margin-top: 6px; }
@media (min-width: 768px) { .news-list-row h3 { font-size: 20px; } }
.news-list-row .lead { font-size: 13px; color: var(--c-n-600); margin-top: 8px; line-height: 1.5; }
.news-list-row .meta { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--c-n-500); flex-wrap: wrap; }

/* Sidebar */
.side-card {
  background: white; border-radius: var(--r-lg); padding: 18px;
  border: 1px solid var(--c-n-100); margin-bottom: 14px;
}
.side-card h3 { font-size: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.side-card h3 a { font-size: 12px; color: var(--c-b-700); font-weight: 500; }

.weather-card {
  background: linear-gradient(135deg, var(--c-b-100) 0%, var(--c-b-50) 100%);
  border-radius: var(--r-xl); padding: 18px; margin-bottom: 14px;
}
.weather-card .row { display: flex; align-items: center; gap: 14px; }
.weather-card .sun {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.5); color: var(--c-a-500);
  display: flex; align-items: center; justify-content: center;
}
.weather-card .temp { font-size: 32px; font-weight: 700; color: var(--c-n-900); letter-spacing: -0.02em; line-height: 1; }
.weather-card .desc { font-size: 12px; color: var(--c-n-600); margin-top: 4px; }
.weather-card .forecast { display: flex; gap: 6px; margin-top: 16px; justify-content: space-between; }
.weather-card .day { text-align: center; flex: 1; }
.weather-card .day .d { font-size: 11px; color: var(--c-n-500); }
.weather-card .day .t { font-size: 14px; font-weight: 600; margin-top: 4px; }

.events-side .ev-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--c-n-100); cursor: pointer; }
.events-side .ev-row:last-child { border-bottom: 0; }
.events-side .ev-date { width: 44px; padding: 4px; border-radius: 8px; background: var(--c-a-100); color: var(--c-a-800); text-align: center; flex-shrink: 0; }
.events-side .ev-date .d { font-size: 16px; font-weight: 700; line-height: 1; }
.events-side .ev-date .m { font-size: 9px; font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.events-side .ev-body { flex: 1; min-width: 0; }
.events-side .ev-title { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.events-side .ev-place { font-size: 11px; color: var(--c-n-500); margin-top: 2px; }

.ads-side .ad-row { padding: 10px 0; border-bottom: 1px solid var(--c-n-100); cursor: pointer; }
.ads-side .ad-row:last-child { border-bottom: 0; }
.ads-side .ad-title { font-size: 13px; font-weight: 500; line-height: 1.3; }
.ads-side .ad-meta { font-size: 11px; color: var(--c-n-500); margin-top: 2px; }

.promo-side {
  background: linear-gradient(135deg, var(--c-p-900) 0%, var(--c-p-700) 100%);
  color: white; border-radius: var(--r-lg); padding: 18px;
  position: relative; overflow: hidden;
}
.promo-side::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(251,191,36,0.18);
}
.promo-side .eyebrow { font-size: 11px; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; }
.promo-side h3 { color: white; font-size: 16px; margin-top: 6px; }
.promo-side p { font-size: 12px; color: rgba(255,255,255,0.85); margin-top: 6px; }
.promo-side .btn { margin-top: 12px; background: var(--c-a-500); color: white; border: 0; }
.promo-side .btn:hover { background: var(--c-a-600); }

/* --- Article page --- */
.read-prog {
  position: sticky; top: 56px; z-index: 30;
  height: 3px; background: var(--c-n-100);
}
@media (min-width: 768px) { .read-prog { top: 78px; } }
.read-prog > div { height: 100%; background: var(--c-b-600); width: 0; transition: width .08s; }

.article {
  max-width: 760px; margin: 0 auto; padding: 24px 0;
}
@media (min-width: 768px) { .article { padding: 32px 0; } }
.article-head { padding-bottom: 24px; }
.article-head .crumbs { margin-bottom: 16px; }
.article-head .meta-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.article-head .meta-line .date { font-size: 13px; color: var(--c-n-500); }
.article-head h1 {
  font-size: 28px; line-height: 1.15; letter-spacing: -0.025em;
}
@media (min-width: 768px) { .article-head h1 { font-size: 40px; } }
.article-head .lead {
  font-size: 17px; color: var(--c-n-600); line-height: 1.5; margin-top: 14px;
  text-wrap: pretty;
}
@media (min-width: 768px) { .article-head .lead { font-size: 19px; } }

.author-row {
  display: flex; align-items: center; gap: 14px; margin-top: 24px;
  padding: 14px 0; border-top: 1px solid var(--c-n-100); border-bottom: 1px solid var(--c-n-100);
  flex-wrap: wrap;
}
.author-row .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-b-600); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.author-row .name { font-size: 13px; font-weight: 600; }
.author-row .role { font-size: 11px; color: var(--c-n-500); }
.author-row .stats {
  display: flex; gap: 14px; font-size: 13px; color: var(--c-n-500);
  margin-left: auto;
}
.author-row .actions { display: flex; gap: 6px; }

.article-cover {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter);
}
.article-cover .img { aspect-ratio: 21/9; font-size: 16px; }
.article-cover .caption { font-size: 12px; color: var(--c-n-500); margin-top: 8px; font-style: italic; }

.article-body {
  max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 24px;
  font-size: 16px; line-height: 1.7; color: var(--c-n-800);
}
@media (min-width: 768px) { .article-body { font-size: 17px; } }
.article-body p { margin: 0 0 18px; }
.article-body h2 { font-size: 24px; margin-top: 32px; margin-bottom: 14px; }
@media (min-width: 768px) { .article-body h2 { font-size: 26px; } }
.article-body ul { margin: 14px 0 18px; padding-left: 22px; }
.article-body ul li { margin-bottom: 6px; }
.article-body blockquote {
  margin: 32px 0; padding: 20px 26px;
  border-left: 4px solid var(--c-b-600);
  background: var(--c-b-50); border-radius: 0 12px 12px 0;
  font-size: 18px; line-height: 1.5; font-style: italic;
}
.article-body blockquote footer { font-size: 13px; color: var(--c-n-500); margin-top: 12px; font-style: normal; }

.cross-promo {
  margin: 32px 0; padding: 20px;
  background: var(--c-p-50); border: 1px solid var(--c-p-100);
  border-radius: var(--r-lg);
}
.cross-promo .head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cross-promo .head svg { color: var(--c-p-700); }
.cross-promo .head .t { font-size: 13px; font-weight: 600; color: var(--c-p-900); }
.cross-promo .head .s { font-size: 11px; color: var(--c-p-800); }
.cross-promo .items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cross-promo .item { background: white; border-radius: 10px; padding: 8px; font-size: 12px; }
.cross-promo .item .img { aspect-ratio: 1; font-size: 8px; }
.cross-promo .item .p { font-weight: 700; margin-top: 6px; font-size: 14px; }
.cross-promo .item .n {
  font-size: 11px; color: var(--c-n-600); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.article-tags span {
  font-size: 13px; padding: 5px 12px;
  background: var(--c-n-100); color: var(--c-n-700);
  border-radius: 999px; cursor: pointer;
}

.share-bar {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--c-n-50); border-radius: var(--r-lg);
  margin-top: 20px; flex-wrap: wrap;
}
.share-bar .lbl { font-size: 13px; font-weight: 600; flex-shrink: 0; }
.share-bar button {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--c-n-200);
  background: white; cursor: pointer; font-size: 13px; font-family: inherit;
  color: var(--c-n-700); font-weight: 500;
}
.share-bar button:hover { border-color: var(--c-n-300); background: white; }

.comments-section {
  background: var(--c-n-50); padding: 32px 0;
  border-top: 1px solid var(--c-n-100);
}
.comments-section .container { max-width: 760px; }
.comments-section h2 { margin-bottom: 20px; }

.comment-write { display: flex; gap: 12px; margin-bottom: 28px; }
.comment-write .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--c-b-600); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.comment-write .body { flex: 1; }
.comment-write textarea {
  width: 100%; min-height: 80px; padding: 12px 14px;
  border: 1px solid var(--c-n-200); border-radius: var(--r-md);
  font-family: inherit; font-size: 14px; resize: vertical; background: white;
  transition: border-color .15s;
}
.comment-write textarea:focus { outline: none; border-color: var(--c-p-600); }
.comment-write .actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; flex-wrap: wrap; gap: 8px;
}
.comment-write .hint { font-size: 12px; color: var(--c-n-500); }

.comment {
  display: flex; gap: 12px; margin-bottom: 20px;
}
.comment .avatar {
  width: 38px; height: 38px; border-radius: 50%; color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.comment .body { flex: 1; }
.comment .h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comment .h strong { font-size: 14px; font-weight: 600; }
.comment .h .date { font-size: 12px; color: var(--c-n-500); }
.comment .text { font-size: 14px; line-height: 1.5; color: var(--c-n-800); margin-top: 4px; }
.comment .actions {
  display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--c-n-500);
}
.comment .actions span { cursor: pointer; }
.comment .actions .like { display: inline-flex; align-items: center; gap: 4px; }
.comment .actions .reply-link { color: var(--c-b-700); font-weight: 500; }

/* =================================================================
   PAGE-SPECIFIC STYLES — Cart & Checkout (decoded mockups)
   ================================================================= */

/* ----- Cart ----- */
.cart-page { padding: 20px 0; }
.cart-page h1 { font-size: 24px; }
@media (min-width: 768px) { .cart-page h1 { font-size: 32px; } }

.cart-layout { display: grid; gap: 20px; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 380px; gap: 24px; } }

.seller-group {
  background: white; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-n-100); margin-bottom: 12px;
}
.seller-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--c-n-50);
  border-bottom: 1px solid var(--c-n-100);
}
.seller-head .logo {
  width: 36px; height: 36px; border-radius: 8px;
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.seller-head .info { flex: 1; min-width: 0; }
.seller-head .name { font-size: 14px; font-weight: 600; }
.seller-head .meta { font-size: 11px; color: var(--c-n-500); margin-top: 2px; }
.seller-head .meta.free { color: var(--c-success); }
.seller-head a { font-size: 13px; color: var(--c-b-700); font-weight: 500; }
@media (max-width: 600px) { .seller-head a { display: none; } }

.free-prog { padding: 0 18px 12px; }
.free-prog .bar { height: 4px; background: var(--c-n-100); border-radius: 2px; overflow: hidden; }
.free-prog .bar > div { height: 100%; background: var(--c-p-500); transition: width .3s; }

.cart-row {
  display: flex; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--c-n-100); align-items: flex-start;
}
.cart-row:last-child { border-bottom: 0; }
.cart-row .checkbox { margin-top: 4px; }
.cart-row-thumb {
  width: 72px; height: 72px; border-radius: var(--r-md); object-fit: cover;
  flex-shrink: 0; background: var(--c-n-100);
}
@media (min-width: 768px) { .cart-row-thumb { width: 88px; height: 88px; } }
.cart-row .body { flex: 1; min-width: 0; }
.cart-row .title { font-size: 13px; line-height: 1.4; color: var(--c-n-800); margin-bottom: 4px; }
@media (min-width: 768px) { .cart-row .title { font-size: 14px; } }
.cart-row .title a { color: inherit; }
.cart-row .title a:hover { color: var(--c-p-700); }
.cart-row .price-unit { font-size: 11px; color: var(--c-n-500); }
.cart-row .row-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; gap: 12px;
}
.cart-row .row-bottom .right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-row .total {
  font-size: 16px; font-weight: 700; color: var(--c-n-900); white-space: nowrap;
}
@media (min-width: 768px) { .cart-row .total { font-size: 18px; } }
.cart-row .actions-col { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
@media (max-width: 600px) { .cart-row .actions-col { display: none; } }

/* Summary card (shared with checkout) */
.summary {
  background: white; border-radius: var(--r-lg);
  border: 1px solid var(--c-n-100); padding: 22px;
}
@media (min-width: 1024px) {
  .summary { position: sticky; top: 100px; align-self: flex-start; }
}
.summary h3 { margin-bottom: 14px; }
.summary .row {
  display: flex; justify-content: space-between; font-size: 14px;
  padding: 5px 0;
}
.summary .row .v { color: var(--c-n-900); }
.summary .row.discount .v { color: var(--c-success); font-weight: 500; }
.summary .row .l { color: var(--c-n-600); }
.summary .total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--c-n-100);
}
.summary .total-row .l { font-size: 14px; color: var(--c-n-600); }
.summary .total-row .v {
  font-size: 28px; font-weight: 700; color: var(--c-n-900);
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .summary .total-row .v { font-size: 32px; } }

.promo-input { margin-top: 14px; }
.promo-input .input { height: 44px; background: white; }
.promo-input .input input { font-size: 14px; }
.promo-input button {
  background: var(--c-p-50); color: var(--c-p-700); border: 0;
  padding: 6px 14px; border-radius: 6px; font-weight: 600;
  font-size: 12px; cursor: pointer; flex-shrink: 0; font-family: inherit;
}
.promo-input button:hover { background: var(--c-p-100); }

.lock-text { font-size: 12px; color: var(--c-n-500); display: flex; align-items: center; gap: 6px; margin-top: 12px; justify-content: center; }

.bonus-card {
  background: var(--c-p-50); border-radius: var(--r-lg); padding: 14px;
  border: 1px solid var(--c-p-100); margin-top: 14px;
  display: flex; gap: 10px;
}
.bonus-card svg { color: var(--c-p-700); flex-shrink: 0; }
.bonus-card .t { font-size: 13px; font-weight: 600; color: var(--c-p-900); }
.bonus-card .s { font-size: 12px; color: var(--c-p-800); margin-top: 2px; }

/* Empty state */
.empty {
  background: white; border-radius: var(--r-xl); padding: 48px 24px;
  text-align: center; border: 1px solid var(--c-n-100);
}
.empty .icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--c-n-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-n-400);
}
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--c-n-600); margin-bottom: 20px; }

/* ----- Checkout ----- */
.co-page { padding: 20px 0; }
.stepper { display: flex; gap: 8px; align-items: center; margin: 16px 0 24px; flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: 8px; }
.stepper .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-n-100); color: var(--c-n-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.stepper .step.done .dot, .stepper .step.active .dot { background: var(--c-p-600); color: white; }
.stepper .step.active .dot { box-shadow: 0 0 0 4px rgba(5,150,105,0.15); }
.stepper .step .lbl { font-size: 13px; font-weight: 500; color: var(--c-n-500); }
.stepper .step.done .lbl, .stepper .step.active .lbl { color: var(--c-n-900); font-weight: 600; }
.stepper .line { flex: 0 0 30px; height: 2px; background: var(--c-n-200); }
.stepper .step.done + .line { background: var(--c-p-300); }
@media (max-width: 600px) { .stepper .line { flex: 0 0 16px; } .stepper .lbl { display:none; } .stepper .step.active .lbl { display:inline; } }

.co-layout { display: grid; gap: 16px; }
@media (min-width: 1024px) { .co-layout { grid-template-columns: 1fr 380px; gap: 24px; } }

.co-card { background: white; border-radius: var(--r-lg); border: 1px solid var(--c-n-100); padding: 20px; margin-bottom: 16px; }
@media (min-width: 768px) { .co-card { padding: 24px; } }
.co-card.active { border: 2px solid var(--c-p-300); }
.co-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.co-card h3 .num { width: 24px; height: 24px; border-radius: 50%; background: var(--c-p-600); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.co-card h3 .done { background: var(--c-success); }

.delivery-opts { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .delivery-opts { grid-template-columns: repeat(3, 1fr); } }
.delivery-opt {
  padding: 14px; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--c-n-200); background: white;
  display: flex; align-items: center; gap: 12px;
  transition: all .15s; position: relative;
}
.delivery-opt:hover { border-color: var(--c-n-300); }
.delivery-opt:has(input:checked) { border-color: var(--c-p-600); border-width: 2px; padding: 13px; background: var(--c-p-50); }
.delivery-opt svg { color: var(--c-n-500); flex-shrink: 0; }
.delivery-opt:has(input:checked) svg { color: var(--c-p-700); }
.delivery-opt .t { font-size: 14px; font-weight: 600; }
.delivery-opt .s { font-size: 11px; color: var(--c-n-500); margin-top: 2px; }
.delivery-opt input { position: absolute; opacity: 0; }

.pickup-info { padding: 14px; background: var(--c-p-50); border-radius: 10px; border: 1px solid var(--c-p-100); margin-top: 12px; }
.pickup-info .t { font-size: 13px; font-weight: 600; color: var(--c-p-900); display:flex; align-items:center; gap: 6px; }
.pickup-info .s { font-size: 12px; color: var(--c-p-800); margin-top: 6px; }

.date-row { display: flex; gap: 8px; flex-wrap: wrap; }
.date-cell { padding: 10px 14px; border: 1px solid var(--c-n-200); border-radius: 10px; cursor: pointer; background: white; position: relative; }
.date-cell:has(input:checked) { border-color: var(--c-p-600); border-width: 2px; padding: 9px 13px; background: var(--c-p-50); color: var(--c-p-800); }
.date-cell .s { font-size: 10px; color: var(--c-n-500); }
.date-cell:has(input:checked) .s { color: var(--c-p-700); }
.date-cell .d { font-size: 14px; font-weight: 600; }
.date-cell input { position: absolute; opacity: 0; }

.slot-row { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
@media (min-width: 600px) { .slot-row { grid-template-columns: repeat(4, 1fr); } }
.slot-cell { padding: 12px 8px; border: 1px solid var(--c-n-200); border-radius: 10px; cursor: pointer; background: white; font-weight: 600; font-size: 13px; text-align: center; transition: all .15s; position: relative; }
.slot-cell:hover { border-color: var(--c-n-300); }
.slot-cell:has(input:checked) { border-color: var(--c-p-600); border-width: 2px; padding: 11px 7px; background: var(--c-p-50); color: var(--c-p-800); }
.slot-cell input { position: absolute; opacity: 0; }

.pay-row { display: flex; flex-direction: column; gap: 10px; }
.pay-row label {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--c-n-50); border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; transition: all .15s;
}
.pay-row label:has(input:checked) { background: var(--c-p-50); border-color: var(--c-p-600); }
.pay-row input { display: none; }
.pay-row .rad {
  width: 20px; height: 20px; border-radius: 50%; background: white;
  border: 1.5px solid var(--c-n-300); transition: all .15s; flex-shrink: 0;
}
.pay-row label:has(input:checked) .rad { border: 6px solid var(--c-p-600); }
.pay-row .ico { width: 40px; height: 28px; border-radius: 5px; background: white; border: 1px solid var(--c-n-200); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.pay-row .t { font-size: 14px; font-weight: 600; }
.pay-row .s { font-size: 12px; color: var(--c-n-500); margin-top: 2px; }

/* Checkout summary overrides/extensions */
.summary .group {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  background: var(--c-n-50); border-radius: 10px; margin-bottom: 8px;
}
.summary .group .logo { width: 28px; height: 28px; border-radius: 7px; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.summary .group .info { flex: 1; font-size: 12px; }
.summary .group .info strong { font-weight: 600; }
.summary .group .info .it { color: var(--c-n-500); }
.summary .sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.summary .sum-row.disc .v { color: var(--c-success); }
.summary .sum-row .l { color: var(--c-n-600); }
.summary .total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--c-n-100);
}
.summary .total .v { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }

/* =================================================================
   BUYER VIEWS — My Ads, Chats, Support
   ================================================================= */

.tabs-row { display: flex; gap: 8px; margin: 16px 0 20px; overflow-x: auto; padding-bottom: 4px; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs-row .chip span.cnt { margin-left: 4px; opacity: 0.6; }

.my-ad-card { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; display: grid; gap: 14px; grid-template-columns: 100px 1fr; }
@media (min-width: 600px) { .my-ad-card { grid-template-columns: 140px 1fr 180px; gap: 16px; padding: 16px; } }
.my-ad-card .img { aspect-ratio: 4/3; border-radius: 8px; font-size: 10px; }
.my-ad-card .info h3 { font-size: 15px; line-height: 1.3; }
.my-ad-card .info .meta { font-size: 12px; color: var(--c-n-500); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.my-ad-card .info .stats { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--c-n-600); }
.my-ad-card .info .stats strong { color: var(--c-n-900); }
.my-ad-card .right { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 599px) { .my-ad-card .right { grid-column: 1 / -1; border-top: 1px solid var(--c-n-100); padding-top: 12px; } }
.my-ad-card .price { font-size: 18px; font-weight: 700; }
.my-ad-card .status { font-size: 11px; padding: 3px 8px; border-radius: 5px; font-weight: 700; align-self: flex-start; letter-spacing: 0.3px; }
.my-ad-card .status.active { background: var(--c-success-bg); color: var(--c-success); }
.my-ad-card .status.moderation { background: var(--c-warning-bg); color: var(--c-warning); }
.my-ad-card .status.archived { background: var(--c-n-100); color: var(--c-n-500); }
.my-ad-card .status.rejected { background: var(--c-error-bg); color: var(--c-error); }
.my-ad-card .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.chat-wrap { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1fr; min-height: 620px; }
@media (min-width: 768px) { .chat-wrap { grid-template-columns: 320px 1fr; } }
@media (max-width: 767px) { .chat-wrap.show-chat .chat-list { display: none; } .chat-wrap:not(.show-chat) .chat-view { display: none; } }
.chat-list { border-right: 1px solid var(--c-n-100); display: flex; flex-direction: column; }
.chat-search { padding: 14px; border-bottom: 1px solid var(--c-n-100); }
.chat-items { flex: 1; overflow-y: auto; }
.chat-item { display: flex; gap: 10px; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--c-n-100); align-items: center; text-decoration: none; color: inherit; }
.chat-item:hover, .chat-item.active { background: var(--c-p-50); }
.chat-item .av { width: 40px; height: 40px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.chat-item .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-item .body { flex: 1; min-width: 0; }
.chat-item .top { display: flex; justify-content: space-between; gap: 8px; }
.chat-item .name { font-size: 13px; font-weight: 600; color: var(--c-n-900); }
.chat-item .time { font-size: 10px; color: var(--c-n-500); flex-shrink: 0; }
.chat-item .last { font-size: 12px; color: var(--c-n-600); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.chat-item .unread { background: var(--c-sale); color: white; font-size: 9px; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; font-weight: 700; }

.chat-view { display: flex; flex-direction: column; }
.chat-header { padding: 14px 18px; border-bottom: 1px solid var(--c-n-100); display: flex; gap: 12px; align-items: center; }
.chat-header .back-btn { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--c-n-700); text-decoration: none; }
@media (min-width: 768px) { .chat-header .back-btn { display: none; } }
.chat-header .av { width: 38px; height: 38px; border-radius: 50%; background: var(--c-p-600); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; overflow: hidden; }
.chat-header .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-header .name { font-size: 14px; font-weight: 600; color: var(--c-n-900); }
.chat-header .status { font-size: 11px; color: var(--c-success); }
.chat-msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 400px; max-height: 60vh; background: var(--c-n-50); }
.msg-day { text-align: center; font-size: 11px; color: var(--c-n-500); padding: 6px; }
.msg { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; position: relative; word-break: break-word; }
.msg.in { background: white; border: 1px solid var(--c-n-100); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--c-n-800); }
.msg.out { background: var(--c-p-600); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg .when { font-size: 10px; opacity: 0.7; margin-top: 4px; }
.msg-product { background: var(--c-n-50); border-radius: 10px; padding: 8px; display: flex; gap: 10px; margin: 4px 0; cursor: pointer; border: 1px solid var(--c-n-100); }
.msg-product .img { width: 50px; height: 50px; font-size: 7px; flex-shrink: 0; }
.msg-product .info .t { font-size: 12px; color: var(--c-n-800); line-height: 1.3; }
.msg-product .info .p { font-size: 14px; font-weight: 700; margin-top: 4px; }

.chat-input { padding: 14px; border-top: 1px solid var(--c-n-100); display: flex; gap: 8px; align-items: center; background: white; }
.chat-input .input { flex: 1; height: 44px; }
.chat-input .send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--c-p-600); color: white; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.chat-input .send-btn:hover { background: var(--c-p-700); }

/* =================================================================
   BUYER ACCOUNT PAGES
   ================================================================= */

/* Utilities */
.flash { padding: 14px 22px; border-radius: 12px; margin-bottom: 20px; font-size: .88rem; font-weight: 600; animation: fadeUp .3s ease; }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.animate-in { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.card {
  background: white; border-radius: var(--r-lg);
  border: 1px solid var(--c-n-100); overflow: hidden;
}
.card-hover { transition: all .2s; cursor: pointer; }
.card-hover:hover { border-color: var(--c-n-200); box-shadow: var(--sh-md); transform: translateY(-2px); }
.divider { height: 1px; background: var(--c-n-100); }

/* Buttons missing variants */
.btn-ghost { background: transparent; color: var(--c-n-700); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--c-n-100); }
.btn-soft { background: var(--c-n-100); color: var(--c-n-800); border: 1px solid transparent; }
.btn-soft:hover { background: var(--c-n-200); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-accent { background: var(--c-a-500); color: white; border: 1px solid transparent; }
.btn-accent:hover { background: var(--c-a-600); }
.btn-icon { padding: 10px; }

/* Badges missing variants */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  padding: 3px 8px; border-radius: 5px; text-transform: uppercase;
}
.badge-local { background: var(--c-p-100); color: var(--c-p-700); }
.badge-farmer { background: var(--c-a-100); color: var(--c-a-800); }
.badge-hit { background: #E11D48; color: white; }
.badge-free { background: var(--c-p-100); color: var(--c-p-700); }
.badge-info { background: var(--c-b-100); color: var(--c-b-800); }
.badge-good {
  background: var(--c-a-500); color: white; font-size: 10px;
  letter-spacing: 0.5px; padding: 3px 7px; border-radius: 5px;
}

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-n-500); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--c-n-100); }
td { padding: 14px 16px; border-bottom: 1px solid var(--c-n-50); font-size: .88rem; }
tr:hover td { background: var(--c-n-50); }

/* Sub-page layout */
.sub-page { padding: 20px 0 48px; }
.sub-layout { display: grid; gap: 20px; }
@media (min-width: 1024px) { .sub-layout { grid-template-columns: 260px 1fr; gap: 24px; } }

.sub-side { background: white; border-radius: var(--r-lg); border: 1px solid var(--c-n-100); padding: 8px; }
@media (min-width: 1024px) { .sub-side { position: sticky; top: 100px; align-self: flex-start; } }
.sub-side .rows { display: flex; flex-direction: column; }
.sub-side .row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 8px; cursor: pointer; color: var(--c-n-800);
  font-weight: 500; font-size: 14px; text-decoration: none;
}
.sub-side .row:hover { background: var(--c-n-50); }
.sub-side .row.active { background: var(--c-p-50); color: var(--c-p-800); font-weight: 600; }
.sub-side .row.active svg { color: var(--c-p-700); }
.sub-side .row svg { color: var(--c-n-500); flex-shrink: 0; }
.sub-side .row .n { margin-left: auto; background: var(--c-sale); color: white; font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 700; }
@media (max-width: 1023px) {
  .sub-side { padding: 8px; overflow-x: auto; }
  .sub-side .rows { display: flex; gap: 4px; flex-direction: row; }
  .sub-side .row { flex-shrink: 0; white-space: nowrap; padding: 8px 12px; }
  .sub-side .row .n { margin-left: 0; }
}

.sub-content h1 { margin-bottom: 6px; }
.sub-content .sub-meta { font-size: 14px; color: var(--c-n-500); margin-bottom: 20px; }

/* Account dashboard layout */
.acc-page { padding: 20px 0; }
.acc-layout { display: grid; gap: 20px; }
@media (min-width: 1024px) { .acc-layout { grid-template-columns: 260px 1fr; gap: 24px; } }

.acc-side { background: white; border-radius: var(--r-lg); border: 1px solid var(--c-n-100); padding: 8px; }
@media (min-width: 1024px) { .acc-side { position: sticky; top: 100px; align-self: flex-start; } }
.acc-side .rows { display: flex; flex-direction: column; }
.acc-side .row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 8px; cursor: pointer; color: var(--c-n-800);
  font-weight: 500; font-size: 14px; text-decoration: none;
}
.acc-side .row:hover { background: var(--c-n-50); }
.acc-side .row.active { background: var(--c-p-50); color: var(--c-p-800); font-weight: 600; }
.acc-side .row.active svg { color: var(--c-p-700); }
.acc-side .row svg { color: var(--c-n-500); flex-shrink: 0; }
.acc-side .row .n { margin-left: auto; background: var(--c-sale); color: white; font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 700; }
@media (max-width: 1023px) {
  .acc-side { padding: 8px; overflow-x: auto; }
  .acc-side .rows { display: flex; gap: 4px; flex-direction: row; }
  .acc-side .row { flex-shrink: 0; white-space: nowrap; padding: 8px 12px; }
  .acc-side .row .n { margin-left: 0; }
}

.acc-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.acc-hero .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-p-600) 0%, var(--c-a-500) 100%);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px;
}
@media (min-width: 768px) { .acc-hero .avatar { width: 80px; height: 80px; font-size: 32px; } }
.acc-hero h1 { font-size: 22px; }
@media (min-width: 768px) { .acc-hero h1 { font-size: 28px; } }
.acc-hero .meta { font-size: 13px; color: var(--c-n-500); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }

.acc-cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 600px) { .acc-cards { grid-template-columns: repeat(3, 1fr); } }
.acc-card {
  border-radius: var(--r-lg); padding: 18px;
  position: relative; overflow: hidden; min-height: 120px;
  border: 1px solid var(--c-n-100);
}
.acc-card .t { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; opacity: 0.85; }
.acc-card .big { font-size: 28px; font-weight: 700; margin-top: 8px; letter-spacing: -0.02em; line-height: 1; }
.acc-card .s { font-size: 12px; margin-top: 8px; opacity: 0.85; }
.acc-card .bar { height: 4px; background: rgba(0,0,0,0.1); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.acc-card .bar > div { height: 100%; background: linear-gradient(90deg, var(--c-p-500) 0%, var(--c-a-500) 100%); }

.acc-card.club { background: linear-gradient(135deg, #FEF3C7 0%, #FCD34D 100%); color: var(--c-a-900); border-color: var(--c-a-200); }
.acc-card.bonus { background: linear-gradient(135deg, #047857 0%, #10B981 100%); color: white; border-color: transparent; }
.acc-card.progress { background: white; color: var(--c-n-900); }

.orders-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .orders-grid { grid-template-columns: repeat(3, 1fr); } }

.quick-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
@media (min-width: 768px) { .quick-actions { grid-template-columns: repeat(4, 1fr); } }
.qa-card {
  background: white; border-radius: var(--r-lg); border: 1px solid var(--c-n-100);
  padding: 14px; display: flex; align-items: center; gap: 10px;
  cursor: pointer; position: relative; transition: all .2s;
  text-decoration: none; color: inherit;
}
.qa-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.qa-card .ic { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qa-card .ic.primary { background: var(--c-p-100); color: var(--c-p-700); }
.qa-card .ic.sale { background: #FEE2E2; color: var(--c-error); }
.qa-card .ic.news { background: var(--c-b-100); color: var(--c-b-700); }
.qa-card .ic.accent { background: var(--c-a-100); color: var(--c-a-800); }
.qa-card .t { font-size: 13px; font-weight: 600; }
.qa-card .s { font-size: 11px; color: var(--c-n-500); margin-top: 2px; }
.qa-card .badge { position: absolute; top: 10px; right: 10px; background: var(--c-sale); color: white; font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 700; }

/* Order cards (list & detail) */
.order-card {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg);
  padding: 18px; margin-bottom: 14px; cursor: pointer; transition: all .2s;
}
.order-card:hover { box-shadow: var(--sh-md); }
.order-card.active { border: 2px solid var(--c-p-300); padding: 17px; }
.order-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.order-card .status { font-size: 11px; padding: 4px 10px; border-radius: 5px; font-weight: 700; letter-spacing: 0.4px; }
.order-card .status.primary { background: var(--c-p-600); color: white; }
.order-card .status.warning { background: var(--c-warning-bg); color: var(--c-warning); }
.order-card .status.info { background: #DBEAFE; color: var(--c-b-800); }
.order-card .status.success { background: var(--c-success-bg); color: var(--c-success); }
.order-card .status.error { background: var(--c-error-bg); color: var(--c-error); }
.order-card .meta-id { font-size: 12px; color: var(--c-n-500); }
.order-card h3 { font-size: 17px; }
.order-card .meta { font-size: 13px; color: var(--c-n-600); margin-top: 4px; }
.order-row {
  display: flex; gap: 12px; padding: 12px; background: var(--c-n-50); border-radius: 10px;
  align-items: center; margin-top: 14px;
}
.order-row .imgs { display: flex; gap: 6px; flex-shrink: 0; }
.order-row .imgs .img { width: 56px; height: 56px; font-size: 7px; }
.order-row .info { flex: 1; min-width: 0; }
.order-row .total { font-size: 18px; font-weight: 700; flex-shrink: 0; }
.order-card .ftr { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Tabs row */
.tabs-row { display: flex; gap: 8px; margin: 16px 0 20px; overflow-x: auto; padding-bottom: 4px; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs-row .chip span.cnt { margin-left: 4px; opacity: 0.6; }

/* Timeline */
.timeline { display: flex; align-items: flex-start; gap: 0; margin: 20px 0; overflow-x: auto; }
.timeline::-webkit-scrollbar { display: none; }
.tl-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 90px; }
.tl-step .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--c-n-100); color: var(--c-n-500); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.tl-step.done .dot, .tl-step.active .dot { background: var(--c-p-600); color: white; }
.tl-step.active .dot { box-shadow: 0 0 0 5px rgba(5,150,105,0.15); }
.tl-step .lbl { font-size: 11px; font-weight: 600; color: var(--c-n-500); text-align: center; }
.tl-step.done .lbl, .tl-step.active .lbl { color: var(--c-n-900); }
.tl-step .when { font-size: 10px; color: var(--c-n-500); }
.tl-line { flex: 0 0 24px; height: 2px; background: var(--c-n-200); margin-top: 12px; }
.tl-line.done { background: var(--c-p-300); }

/* Bonuses */
.bal-card { background: linear-gradient(135deg, var(--c-p-700) 0%, var(--c-p-500) 100%); color: white; border-radius: var(--r-xl); padding: 28px; position: relative; overflow: hidden; }
.bal-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(251,191,36,0.18); }
.bal-card .lbl { font-size: 12px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.bal-card .val { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: 12px; }
@media (min-width: 768px) { .bal-card .val { font-size: 72px; } }
.bal-card .sub { font-size: 14px; opacity: 0.85; margin-top: 8px; }
.bal-card .actions { display: flex; gap: 8px; margin-top: 24px; position: relative; flex-wrap: wrap; }
.bal-card .actions .btn { background: rgba(255,255,255,0.18); color: white; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px); }
.bal-card .actions .btn-accent { background: var(--c-a-500); border-color: var(--c-a-500); }

.level-card { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 24px; margin-top: 16px; }
.level-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 16px; position: relative; }
.level-cell { padding: 12px 8px; text-align: center; border-radius: 8px; }
.level-cell.done { background: var(--c-p-50); }
.level-cell.current { background: linear-gradient(135deg, var(--c-p-600) 0%, var(--c-a-500) 100%); color: white; }
.level-cell .pct { font-size: 18px; font-weight: 700; }
@media (min-width: 768px) { .level-cell .pct { font-size: 22px; } }
.level-cell .pr { font-size: 11px; opacity: 0.85; margin-top: 2px; }

.bar { height: 6px; background: var(--c-n-100); border-radius: 3px; overflow: hidden; margin-top: 16px; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--c-p-500) 0%, var(--c-a-500) 100%); }

.history-card { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 0; overflow: hidden; margin-top: 24px; }
.history-card h3 { padding: 18px 20px; border-bottom: 1px solid var(--c-n-100); }
.history-row { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--c-n-100); align-items: center; }
.history-row:last-child { border-bottom: 0; }
.history-row .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.history-row .ic.in { background: var(--c-success-bg); color: var(--c-success); }
.history-row .ic.out { background: var(--c-n-100); color: var(--c-n-700); }
.history-row .info { flex: 1; }
.history-row .t { font-size: 14px; font-weight: 500; }
.history-row .when { font-size: 11px; color: var(--c-n-500); margin-top: 2px; }
.history-row .amt { font-size: 16px; font-weight: 700; }
.history-row .amt.in { color: var(--c-success); }
.history-row .amt.out { color: var(--c-n-700); }

.ref-card { background: linear-gradient(135deg, var(--c-a-100) 0%, var(--c-a-50) 100%); border: 1px solid var(--c-a-200); border-radius: var(--r-lg); padding: 24px; margin-top: 24px; }
.ref-card .eyebrow { font-size: 11px; color: var(--c-a-800); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.ref-card h2 { margin-top: 6px; color: var(--c-a-900); }
.ref-card p { font-size: 14px; color: var(--c-a-800); margin-top: 6px; }
.ref-code { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ref-code .input { flex: 1; min-width: 200px; max-width: 320px; height: 44px; background: white; }
.ref-code .input input { font-weight: 600; letter-spacing: 2px; }

/* Info / static page styles */
.info-hero {
  background: linear-gradient(135deg, var(--c-p-700) 0%, var(--c-p-500) 100%);
  color: white; padding: 36px 0 28px; position: relative; overflow: hidden;
}
.info-hero::before { content: ''; position: absolute; top: -40px; right: 80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.info-hero::after { content: ''; position: absolute; bottom: -80px; right: -20px; width: 200px; height: 200px; border-radius: 50%; background: rgba(251,191,36,0.18); }
.info-hero .container { position: relative; }
.info-hero h1 { color: white; font-size: 32px; letter-spacing: -0.025em; }
@media (min-width: 768px) { .info-hero h1 { font-size: 44px; } }
.info-hero p { color: rgba(255,255,255,0.85); margin-top: 10px; font-size: 16px; max-width: 720px; line-height: 1.5; }
.info-hero .crumbs a, .info-hero .crumbs span { color: rgba(255,255,255,0.85); }

.info-page { padding: 32px 0 48px; }
.info-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .info-layout { grid-template-columns: 1fr 280px; gap: 48px; } }

.info-body { font-size: 15px; line-height: 1.7; color: var(--c-n-700); max-width: 760px; }
.info-body p { margin: 0 0 14px; }
.info-body h2 { font-size: 22px; margin: 32px 0 14px; color: var(--c-n-900); }
.info-body h2:first-child { margin-top: 0; }
.info-body h3 { font-size: 17px; margin: 22px 0 10px; color: var(--c-n-900); }
.info-body ul { padding-left: 22px; margin: 12px 0; }
.info-body ul li { margin-bottom: 6px; }
.info-body strong { color: var(--c-n-900); font-weight: 600; }
.info-body a { color: var(--c-p-700); }

.info-toc { background: white; border-radius: var(--r-lg); border: 1px solid var(--c-n-100); padding: 18px; }
@media (min-width: 1024px) { .info-toc { position: sticky; top: 100px; align-self: flex-start; } }
.info-toc h4 { margin-bottom: 12px; font-size: 13px; }
.info-toc a { display: block; padding: 8px 0; font-size: 13px; color: var(--c-n-700); border-bottom: 1px solid var(--c-n-100); }
.info-toc a:last-child { border-bottom: 0; }
.info-toc a:hover { color: var(--c-p-700); }

.faq-item {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-md);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  background: transparent; border: 0; width: 100%; text-align: left; font-family: inherit;
}
.faq-q svg { color: var(--c-n-400); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--c-p-700); }
.faq-a {
  padding: 0 18px 18px; font-size: 14px; line-height: 1.6; color: var(--c-n-700); display: none;
}
.faq-item.open .faq-a { display: block; }

.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--c-p-100); color: var(--c-p-700);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.feature h3 { font-size: 16px; }
.feature p { font-size: 13px; color: var(--c-n-600); line-height: 1.45; margin: 0; }

.steps { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.step-row {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg);
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.step-row .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-p-600); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.step-row h3 { font-size: 16px; margin-bottom: 4px; }
.step-row p { font-size: 14px; color: var(--c-n-600); line-height: 1.5; margin: 0; }

.cta-banner {
  margin: 32px 0; padding: 28px;
  background: linear-gradient(95deg, var(--c-p-700) 0%, var(--c-p-500) 100%);
  color: white; border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .cta-banner { padding: 36px 40px; flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-banner::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 35%; background: rgba(251,191,36,0.18); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: white; font-size: 26px; letter-spacing: -0.02em; }
.cta-banner p { font-size: 15px; color: rgba(255,255,255,0.85); margin-top: 6px; max-width: 480px; }

/* =================================================================
   RESPONSIVE
   ================================================================= */


@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { display: none; }
    .product-top { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .header-main-inner { height: 56px; gap: 10px; }
    .btn-catalog span { display: none; }
    .btn-catalog { padding: 10px; }
    .header-actions { display: none; }
    .header-burger { display: flex; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card-body { padding: 8px; }
    .price-current { font-size: 16px; }
    .product-card-name { font-size: 12px; }
    .product-card-cart { padding: 8px; font-size: 13px; }
    .product-info-title { font-size: 20px; }
    .product-price-big { font-size: 26px; }
    .section-title { font-size: 18px; }
    .hero-banner { padding: 32px 20px; }
    .hero-banner h1 { font-size: 24px; }
    .hero-slide-content { padding: 32px 20px; }
    .hero-slide-content h1 { font-size: 24px; }
    .hero-slide { min-height: 220px; }
    .hero-slider { min-height: 220px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 767px) {
    .mega-menu { position: fixed; inset: 0; top: var(--header-h); z-index: 98; max-height: none; border-radius: 0; }
    .mega-menu-inner { flex-direction: column; min-height: auto; height: 100%; }
    .mega-menu-left { width: 100%; border-right: none; border-bottom: 1px solid var(--c-border); max-height: 45vh; }
    .mega-menu-right { padding: 16px; max-height: 55vh; }
    .mega-sub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-grid { gap: 8px; }
    .cat-tile { min-width: 140px; height: 100px; padding: 10px 12px; padding-right: 70px; }
    .cat-tile-visual { width: 60px; height: 60px; right: 6px; bottom: 6px; }
    .cat-tile-emoji { font-size: 36px; }
    .pdp-actions { gap: 8px; }
    .pdp-actions .btn-lg { padding: 0 14px; font-size: 15px; }
    .qty { height: 44px; }
    .qty button { width: 38px; }
}

@media (max-width: 360px) {
    .pdp-actions-row { flex-wrap: wrap; }
    .pdp-actions-row .qty { width: 100%; margin-bottom: 4px; }
    .pdp-actions-row .btn-lg { flex: 1 1 calc(50% - 4px); min-width: 120px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .header-logo .logo-text { display: none; }
    .header-search input { font-size: 14px; padding: 8px 10px; }
}


/* =================================================================
   PAGE-SPECIFIC STYLES — Shops listing (decoded mockup)
   ================================================================= */
.shops-head { padding: 24px 0 16px; }
.shops-head .row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

/* Hero metrics */
.shops-metrics { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 20px 0 24px; }
@media (min-width: 768px) { .shops-metrics { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.metric { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 16px; }
.metric .v { font-size: 28px; font-weight: 700; color: var(--c-p-700); letter-spacing: -0.02em; line-height: 1; }
.metric .l { font-size: 12px; color: var(--c-n-600); margin-top: 6px; }

/* Layout */
.shops-layout { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 1024px) { .shops-layout { grid-template-columns: 260px 1fr; gap: 24px; } }

/* Filter sidebar */
.shops-filters {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg);
  padding: 18px; align-self: flex-start;
}
@media (min-width: 1024px) { .shops-filters { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; } }
@media (max-width: 1023px) { .shops-filters { display: none; } }
.sf-group { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--c-n-100); }
.sf-group:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.sf-group h4 { font-size: 13px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.sf-group h4 svg { color: var(--c-n-400); }
.sf-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sf-body .checkbox { font-size: 13px; }
.sf-body .checkbox .ct { color: var(--c-n-400); font-weight: 400; }

/* Top filter row + search */
.shops-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.shops-search { flex: 1; min-width: 240px; height: 44px; }
.shops-search input { font-size: 14px; }

/* Sub-chips: top categories */
.top-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.top-cats::-webkit-scrollbar { display: none; }

/* Featured shop banner */
.featured-shop {
  background: linear-gradient(95deg, var(--c-p-700) 0%, var(--c-p-500) 100%);
  border-radius: var(--r-xl); padding: 24px; color: white;
  position: relative; overflow: hidden; margin-bottom: 20px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.featured-shop::before { content: ''; position: absolute; top: -30px; right: -30px; width: 200px; height: 200px; border-radius: 50%; background: rgba(251,191,36,0.18); }
.featured-shop .featured-logo {
  width: 80px; height: 80px; border-radius: 18px; background: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 36px; color: var(--c-p-700); flex-shrink: 0;
  position: relative;
}
.featured-shop .info { position: relative; flex: 1; min-width: 240px; }
.featured-shop .eyebrow { font-size: 11px; font-weight: 700; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; }
.featured-shop h2 { color: white; font-size: 22px; margin-top: 4px; }
.featured-shop p { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.featured-shop .meta { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; flex-wrap: wrap; }

/* Shops grid — full card override */
.shops-grid-full { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .shops-grid-full { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .shops-grid-full { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }

.shop-card-full {
  background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; transition: all .2s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.shop-card-full:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.shop-card-full .cover { height: 110px; border-radius: 0; position: relative; font-size: 11px; overflow: hidden; }
.shop-card-full .cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-full .b { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shop-card-full .head { display: flex; align-items: center; gap: 12px; margin-top: -40px; position: relative; }
.shop-card-full .logo-big {
  width: 56px; height: 56px; border-radius: 14px; color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; flex-shrink: 0;
  border: 4px solid white;
}
.shop-card-full .stars { color: var(--c-a-500); }
.shop-card-full .rating-row { font-size: 12px; color: var(--c-n-500); display: flex; align-items: center; gap: 6px; }
.shop-card-full .name { font-size: 16px; font-weight: 600; margin-top: 4px; }
.shop-card-full .cat { font-size: 12px; color: var(--c-n-500); }
.shop-card-full .city { font-size: 12px; color: var(--c-n-600); display: inline-flex; align-items: center; gap: 4px; }
.shop-card-full .badges-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.shop-card-full .stats { display: flex; gap: 14px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--c-n-100); font-size: 12px; color: var(--c-n-600); }
.shop-card-full .stats strong { color: var(--c-n-900); font-weight: 600; }

/* Mobile FAB */
.shops-fab {
  position: fixed; bottom: 90px; right: 16px; z-index: 50;
  background: var(--c-p-600); color: white; border: 0;
  padding: 12px 18px; border-radius: 999px; font: inherit;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px rgba(5,150,105,0.4);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
@media (min-width: 1024px) { .shops-fab { display: none; } }

/* =================================================================
   AUTH PAGE (login/register)
   ================================================================= */
.auth-page {
    min-height: 100vh; display: grid; grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .auth-page { grid-template-columns: 1fr 1fr; } }

.auth-hero {
    background: linear-gradient(135deg, #064E3B 0%, #047857 60%, #10B981 100%);
    padding: 24px; color: white; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 240px;
}
@media (min-width: 1024px) { .auth-hero { padding: 56px; min-height: auto; } }
.auth-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.auth-hero::after { content: ''; position: absolute; bottom: 100px; left: -100px; width: 200px; height: 200px; border-radius: 50%; background: rgba(251,191,36,0.18); }
.auth-hero .content { position: relative; z-index: 1; }
.auth-hero .brand-block { display: flex; align-items: center; gap: 12px; }
.auth-hero .brand-block .mark { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; }
.auth-hero .brand-block strong { font-size: 22px; font-weight: 700; }
.auth-hero h1 { color: white; font-size: 32px; line-height: 1.1; margin-top: 24px; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .auth-hero h1 { font-size: 44px; } }
.auth-hero h1 .yellow { color: #FCD34D; }
.auth-hero p { font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 12px; line-height: 1.5; max-width: 460px; }
@media (min-width: 1024px) { .auth-hero p { font-size: 17px; } }
.features { display: none; flex-direction: column; gap: 14px; margin-top: 32px; }
@media (min-width: 1024px) { .features { display: flex; } }
.features .f { display: flex; align-items: center; gap: 12px; }
.features .f .ic { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; }
.features .f .t { font-size: 15px; color: rgba(255,255,255,0.92); }
.auth-hero .legal { position: relative; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 24px; }

.auth-forms { padding: 32px 24px; background: white; overflow-y: auto; }
@media (min-width: 1024px) { .auth-forms { padding: 56px; } }

.auth-step { padding: 24px 0; }
.auth-step + .auth-step { border-top: 1px dashed var(--c-n-200); margin-top: 12px; }
.auth-step .step-label { font-size: 11px; color: var(--c-n-500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; }
.auth-step h2 { font-size: 22px; }
@media (min-width: 768px) { .auth-step h2 { font-size: 26px; } }
.auth-step .hint { font-size: 14px; color: var(--c-n-600); margin-top: 8px; }
.auth-step .hint a { color: var(--c-p-700); }

.phone-input { height: 52px !important; margin-top: 16px; }
.phone-input input { font-size: 17px; letter-spacing: 0.04em; }
.phone-input .prefix { font-size: 17px; font-weight: 600; color: var(--c-n-700); }
.agree { font-size: 12px; color: var(--c-n-500); margin-top: 8px; }
.agree a { color: var(--c-p-700); }

.divider-row { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.divider-row .line { flex: 1; height: 1px; background: var(--c-n-200); }
.divider-row span { font-size: 11px; color: var(--c-n-500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

.social-row { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.social-row button { height: 48px; border-radius: 10px; border: 1px solid var(--c-n-200); background: white; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--c-n-800); font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: border-color .15s; }
.social-row button:hover { border-color: var(--c-n-300); }
.social-row button .ico { width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: white; font-size: 10px; font-weight: 700; }

.otp-row { display: flex; gap: 10px; margin-top: 16px; }
.otp-cell { flex: 1; max-width: 56px; height: 64px; border-radius: 12px; border: 1.5px solid var(--c-n-200); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; background: white; color: var(--c-n-900); transition: all .15s; }
.otp-cell.filled { border-color: var(--c-p-300); }
.otp-cell.active { border-color: var(--c-p-600); border-width: 2px; box-shadow: 0 0 0 4px rgba(5,150,105,0.15); }
.otp-cell .caret { width: 2px; height: 28px; background: var(--c-p-600); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.resend { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--c-n-500); }

/* =================================================================
   ADS LISTING (classifieds index)
   ================================================================= */
.ads-head { padding: 24px 0 16px; }
.ads-head .row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

.cat-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-card { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all .2s; text-decoration: none; color: inherit; }
.cat-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.cat-card .ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.cat-card .t { font-size: 13px; font-weight: 600; line-height: 1.25; }
.cat-card .n { font-size: 11px; color: var(--c-n-500); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 24px 0 20px; }

.ad-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .ad-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .ad-grid { grid-template-columns: repeat(4, 1fr); } }

.ad-card { background: white; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-n-100); cursor: pointer; transition: all .2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.ad-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.ad-card .img { aspect-ratio: 4/3; border-radius: 0; position: relative; font-size: 10px; }
.ad-card .img > img { width: 100%; height: 100%; object-fit: cover; }
.ad-card .tag-top { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.3px; }
.ad-card .fav { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.92); border: 0; display: flex; align-items: center; justify-content: center; color: var(--c-n-500); cursor: pointer; }
.ad-card .b { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ad-card .cat { font-size: 10px; color: var(--c-n-500); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.ad-card h3 { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card .sub { font-size: 12px; color: var(--c-n-500); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card .price { font-size: 18px; font-weight: 700; margin-top: 6px; }
.ad-card .foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--c-n-500); padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--c-n-100); }
.ad-card .foot .who { display: inline-flex; align-items: center; gap: 4px; }
.ad-card .foot .av { width: 18px; height: 18px; border-radius: 50%; background: var(--c-p-100); color: var(--c-p-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px; }

/* =================================================================
   AD DETAIL (classifieds show)
   ================================================================= */
.ad-page { padding: 20px 0 32px; }
.ad-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .ad-layout { grid-template-columns: 1fr 360px; } }

.gal { display: grid; gap: 10px; grid-template-columns: 60px 1fr; }
@media (max-width: 600px) { .gal { grid-template-columns: 1fr; } }
.gal-thumbs { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) { .gal-thumbs { display: none; } }
.gal-thumb { width: 56px; height: 56px; border-radius: 8px; border: 1.5px solid var(--c-n-200); overflow: hidden; cursor: pointer; padding: 0; background: transparent; }
.gal-thumb.active { border-color: var(--c-p-600); border-width: 2px; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-main { aspect-ratio: 4/3; border-radius: var(--r-xl); position: relative; overflow: hidden; background: var(--c-n-100); }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-main .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.92); border: 0; display: flex; align-items: center; justify-content: center; color: var(--c-n-700); cursor: pointer; box-shadow: var(--sh-sm); }
.gal-main .prev { left: 12px; }
.gal-main .next { right: 12px; }
.gal-main .counter { position: absolute; bottom: 12px; right: 12px; background: rgba(15,23,42,0.7); color: white; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.gal-main .actions-tr { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.gal-main .actions-tr button { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.92); border: 0; display: flex; align-items: center; justify-content: center; color: var(--c-n-700); cursor: pointer; }
.gal-main .actions-tr button.active { color: var(--c-sale); }
.gal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
@media (min-width: 600px) { .gal-dots { display: none; } }
.gal-dots button { width: 6px; height: 6px; border-radius: 3px; border: 0; background: var(--c-n-300); padding: 0; transition: all .15s; }
.gal-dots button.active { width: 18px; background: var(--c-p-600); }

.ad-title-row { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ad-cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--c-n-500); }
.ad-title { font-size: 24px; margin-top: 4px; line-height: 1.2; }
@media (min-width: 768px) { .ad-title { font-size: 30px; } }
.ad-pubdate { font-size: 12px; color: var(--c-n-500); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }

.ad-price-block { margin-top: 18px; padding: 20px; background: linear-gradient(135deg, var(--c-a-50) 0%, white 100%); border: 1px solid var(--c-a-200); border-radius: var(--r-xl); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ad-price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
@media (min-width: 768px) { .ad-price { font-size: 40px; } }
.ad-price-sub { font-size: 12px; color: var(--c-a-800); margin-top: 4px; display: flex; align-items: center; gap: 6px; }

.ad-section { margin-top: 24px; }
.ad-section h2 { font-size: 20px; margin-bottom: 12px; }
.ad-description { font-size: 15px; line-height: 1.7; color: var(--c-n-700); }
.ad-description p { margin: 0 0 12px; }

.ad-specs { background: var(--c-n-50); border-radius: var(--r-lg); padding: 4px 16px; }
.ad-specs .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--c-n-200); font-size: 13px; }
.ad-specs .row:last-child { border-bottom: 0; }
.ad-specs .k { color: var(--c-n-500); }
.ad-specs .v { color: var(--c-n-900); font-weight: 500; }

.ad-map { aspect-ratio: 16/9; border-radius: var(--r-xl); background: var(--c-p-50); border: 1px solid var(--c-p-100); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ad-map .pin { width: 44px; height: 44px; border-radius: 50%; background: var(--c-p-600); color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,0.2); border: 3px solid white; }

.ad-side { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1024px) { .ad-side { position: sticky; top: 100px; align-self: flex-start; } }

.contact-card { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 20px; }
.author-row { display: flex; align-items: center; gap: 12px; }
.author-row .av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--c-p-600), var(--c-a-500)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; flex-shrink: 0; }
.author-row .name { font-size: 15px; font-weight: 600; }
.author-row .rating { font-size: 12px; color: var(--c-n-500); margin-top: 2px; }
.author-row .since { font-size: 11px; color: var(--c-n-500); margin-top: 2px; }
.author-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-n-100); }
.author-stats .stat { font-size: 13px; }
.author-stats .stat strong { display: block; font-weight: 600; }
.author-stats .stat span { font-size: 11px; color: var(--c-n-500); }

.contact-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.phone-reveal { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--c-n-50); border-radius: var(--r-md); border: 1px solid var(--c-n-100); }
.phone-reveal .lbl { font-size: 13px; color: var(--c-n-600); }
.phone-reveal .num { font-size: 17px; font-weight: 700; color: var(--c-n-900); letter-spacing: 0.5px; }
.phone-reveal .num.hidden { color: var(--c-n-400); }

.safety-card { background: var(--c-b-50); border: 1px solid var(--c-b-200); border-radius: var(--r-lg); padding: 14px; }
.safety-card .head { display: flex; align-items: center; gap: 8px; }
.safety-card .head svg { color: var(--c-b-700); }
.safety-card h4 { color: var(--c-b-800); font-size: 13px; }
.safety-card p { font-size: 12px; color: var(--c-b-800); margin-top: 8px; line-height: 1.5; }

.report-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-n-500); margin-top: 12px; background: transparent; border: 0; cursor: pointer; padding: 4px 0; font-family: inherit; }
.report-link:hover { color: var(--c-error); }

/* =================================================================
   DIRECTORY / ORGANIZATIONS
   ================================================================= */
.dir-head { padding: 24px 0 16px; }
.dir-head .row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

.dir-layout { display: grid; gap: 16px; margin: 16px 0; }
@media (min-width: 1024px) { .dir-layout { grid-template-columns: 440px 1fr; gap: 16px; min-height: 720px; } }

.dir-list { display: flex; flex-direction: column; gap: 10px; max-height: 720px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 1023px) { .dir-list { max-height: none; } }
.dir-list-head { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 14px; }
.org-card { background: white; border: 1px solid var(--c-n-100); border-radius: var(--r-lg); padding: 14px; display: flex; gap: 12px; cursor: pointer; transition: all .2s; }
.org-card:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.org-card .logo { width: 50px; height: 50px; border-radius: 12px; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.org-card .info { flex: 1; min-width: 0; }
.org-card .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.org-card .name { font-size: 14px; font-weight: 600; }
.org-card .open-status { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; letter-spacing: 0.3px; }
.org-card .open-status.open { background: var(--c-success-bg); color: var(--c-success); }
.org-card .open-status.closed { background: var(--c-error-bg); color: var(--c-error); }
.org-card .open-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.org-card .meta { font-size: 11px; color: var(--c-n-500); margin-top: 2px; }
.org-card .rating-row { display: flex; align-items: center; gap: 10px; font-size: 11px; margin-top: 6px; }
.org-card .rating-row .r { color: var(--c-n-800); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.org-card .rating-row .stars { color: var(--c-a-500); }
.org-card .tags { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.org-card .tags span { font-size: 10px; padding: 2px 7px; background: var(--c-n-100); color: var(--c-n-700); border-radius: 4px; }

.map-wrap { background: var(--c-p-50); background-image: repeating-linear-gradient(0deg, rgba(5,150,105,0.06) 0 1px, transparent 1px 60px), repeating-linear-gradient(90deg, rgba(5,150,105,0.06) 0 1px, transparent 1px 60px); border-radius: var(--r-lg); border: 1px solid var(--c-p-100); height: 540px; position: relative; overflow: hidden; }
@media (min-width: 1024px) { .map-wrap { position: sticky; top: 100px; height: 720px; } }
.map-pin { position: absolute; width: 38px; height: 38px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 3px solid white; box-shadow: 0 6px 16px rgba(0,0,0,0.18); cursor: pointer; transform: translate(-50%, -100%); }
.map-balloon { position: absolute; transform: translate(-50%, calc(-100% - 8px)); background: white; border-radius: 10px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); border: 2px solid var(--c-p-600); min-width: 220px; pointer-events: none; }
.map-balloon::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid var(--c-p-600); }
.map-controls { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 4px; }
.map-controls button { width: 36px; height: 36px; background: white; border: 0; border-radius: 8px; box-shadow: var(--sh-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* =================================================================
   PROMOS
   ================================================================= */
.promo-hero { background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 50%, #DC2626 100%); color: white; padding: 36px 0 28px; position: relative; overflow: hidden; }
.promo-hero::before { content: ''; position: absolute; top: -40px; right: 100px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.promo-hero::after { content: ''; position: absolute; bottom: -80px; right: -20px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.promo-hero .container { position: relative; }
.promo-hero h1 { color: white; font-size: 36px; letter-spacing: -0.025em; }
@media (min-width: 768px) { .promo-hero h1 { font-size: 48px; } }
.promo-hero p { font-size: 16px; color: rgba(255,255,255,0.92); margin-top: 10px; }
.promo-hero .crumbs a, .promo-hero .crumbs span { color: rgba(255,255,255,0.85); }

.timer-card { background: linear-gradient(135deg, var(--c-sale) 0%, var(--c-a-600) 100%); color: white; border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
@media (min-width: 768px) { .timer-card { padding: 32px 40px; flex-direction: row; align-items: center; justify-content: space-between; } }
.timer-card .info { flex: 1; }
.timer-card .eyebrow { font-size: 12px; font-weight: 700; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; }
.timer-card h2 { color: white; font-size: 26px; margin-top: 6px; letter-spacing: -0.02em; }
.timer-card p { font-size: 14px; opacity: 0.9; margin-top: 6px; }
.timer-card .timer { display: flex; gap: 8px; }
.timer-card .cell { background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); border-radius: 12px; padding: 12px 14px; text-align: center; min-width: 64px; }
.timer-card .cell .val { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.timer-card .cell .lbl { font-size: 10px; opacity: 0.85; text-transform: uppercase; margin-top: 4px; letter-spacing: 0.5px; }

.promo-tile-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 600px) { .promo-tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .promo-tile-grid { grid-template-columns: repeat(3, 1fr); } }
.promo-tile { border-radius: var(--r-xl); padding: 24px; color: white; position: relative; overflow: hidden; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; cursor: pointer; transition: transform .15s; }
.promo-tile:hover { transform: translateY(-3px); }
.promo-tile::before { content: ''; position: absolute; top: -30px; right: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.promo-tile .eyebrow { font-size: 10px; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.promo-tile h3 { color: white; font-size: 20px; margin-top: 6px; position: relative; line-height: 1.15; }
.promo-tile .sub { font-size: 13px; opacity: 0.85; margin-top: 6px; position: relative; }
.promo-tile .when { font-size: 11px; opacity: 0.7; position: relative; margin-top: 12px; }

/* =================================================================
   ERROR / 404
   ================================================================= */
.error-page { padding: 80px 20px; text-align: center; }
.error-page .code { font-size: 80px; font-weight: 800; color: var(--c-n-200); line-height: 1; }
.error-page h1 { font-size: 28px; margin: 16px 0 8px; }
.error-page p { color: var(--c-n-500); margin-bottom: 24px; }
