/* === Компоненты: шапка, меню, карточки, списки, модалки === */
/* =================================================================
   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: 44px; height: 44px; border: 0; background: transparent; color: var(--c-text-secondary); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: background .15s; }
.product-qty button:hover { background: var(--c-n-100); }
.product-qty button:active { background: var(--c-n-200); }
.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; /* focus-visible handles keyboard focus */ -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; }

/* =================================================================
   INPUTS (base)
   ================================================================= */
.input {
    display: flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 14px; background: white;
    border: 1px solid var(--c-n-200); border-radius: var(--r-sm);
    font-size: 15px; transition: all .15s; width: 100%;
}
.input:focus-within { border-color: var(--c-p-600); box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; padding: 0; }
.input svg { color: var(--c-n-400); flex-shrink: 0; }

/* =================================================================
   BUTTONS (shared)
   ================================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600; font-size: 15px;
    cursor: pointer; border: none;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn-primary { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-hover) 100%); color: #fff; }
.btn-primary:hover { box-shadow: 0 4px 16px rgba(16,185,129,.35); }
.btn-outline { background: transparent; border: 2px solid var(--c-border); color: var(--c-text); box-shadow: none; }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.btn-ghost { background: #fff; color: var(--c-n-700); border: 1.5px solid var(--c-n-200); box-shadow: none; }
.btn-ghost:hover { background: var(--c-n-50); border-color: var(--c-n-300); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.btn-danger { background: linear-gradient(135deg, var(--c-error) 0%, #dc2626 100%); color: #fff; }
.btn-danger:hover { box-shadow: 0 4px 16px rgba(239,68,68,.35); }
.btn-success { background: linear-gradient(135deg, var(--c-success) 0%, #16a34a 100%); color: #fff; }
.btn-success:hover { box-shadow: 0 4px 16px rgba(34,197,94,.35); }
.btn-sec { background: var(--c-n-100); color: var(--c-n-700); border: 1.5px solid var(--c-n-200); box-shadow: none; }
.btn-sec:hover { background: var(--c-n-200); border-color: var(--c-n-300); }
.btn-accent { background: linear-gradient(135deg, var(--c-a-500) 0%, var(--c-a-600) 100%); color: #fff; }
.btn-accent:hover { box-shadow: 0 4px 16px rgba(245,158,11,.35); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 14px; }
.btn-xl { padding: 16px 32px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* =================================================================
   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-top: 16px; padding-bottom: 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: 44px; height: 44px; 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);
    min-width: 44px; min-height: 44px;
}
.icon-btn:hover { background: #fff; color: var(--c-primary); transform: scale(1.05); }
.icon-btn:active { transform: scale(0.95); }
.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; /* focus-visible handles keyboard focus */
    -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, .mode-switch a {
    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, .mode-switch a { font-size: 15px; padding: 14px 18px; } }
.mode-switch button.active, .mode-switch a.active { background: var(--c-primary); color: white; box-shadow: 0 2px 8px rgba(5,150,105,0.25); text-decoration: none; }
.mode-switch button .pill, .mode-switch a .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, .mode-switch a: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);
}

