/* ============================================================
   RESET & GLOBALS
   ============================================================ */
html {
    scroll-behavior: smooth;
}
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--site-page-bg, #f3f4f6);
    color: #111827;
}

/* ============================================================
   SITE HEADER
   Desktop : title centred, pill-column on the right (170 px)
   Mobile  : title on top, pills in a centred row below
   ============================================================ */
.site-header {
    position: relative;
    background: var(--site-header-bg, #111827);
    color: var(--site-header-text, #ffffff);
    padding: 20px 24px;
}

.site-header .header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.site-header .header-spacer {
    display: none;
}

.site-header .header-title h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
}

.site-header .header-title p {
    margin: 8px 0 0;
    font-size: 15px;
    color: #d1d5db;
}

/* ── right side: lang + cart only ── */
.site-header .header-actions {
    position: static !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
}

/* base reset — no shared width */
.site-header .header-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    box-sizing: border-box;
    color: white;
    cursor: pointer;
}

/* ── phone: inline pill centred under title ── */
.site-header .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ── language: flex container for RU/UA buttons ── */
.site-header .lang-switch,
.lang-switch {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ── cart: round icon button ── */
.site-header .cart-pill {
    width: 90px !important;
    height: 38px !important;
    padding: 0;
    border-radius: 999px !important;
    background: #22c55e;
    font-size: 16px;
    color: white;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
}

.site-header .cart-pill span {
    font-size: 13px;
    font-weight: 800;
    margin-left: 2px;
}

/* ── mobile: already row layout ── */
@media (max-width: 768px) {
    .site-header {
        padding: 28px 16px 24px;
    }

    .site-header .header-title h1 {
        font-size: 28px;
    }

    .site-header .site-logo {
        font-size: 22px;
        gap: 10px;
    }
    .site-header .site-logo .logo-badge {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }
    .site-header .site-logo .logo-text {
        font-size: 20px;
    }

    .site-header .header-actions {
        position: static !important;
        transform: none !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 10px;
    }
    .site-header .cart-pill {
        width: 72px !important;
        height: 32px !important;
        font-size: 14px;
    }
    .site-header .cart-pill span {
        font-size: 11px;
    }
    .site-header .lang-switch .site-lang-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-box {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 20px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-main-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-main-row input[type="text"] {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.search-main-row button[type="submit"],
.search-btn {
    flex-shrink: 0;
    min-width: 120px !important;
    height: 48px !important;
    padding: 0 24px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    margin-top: 0;
}

.search-filters-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   CATEGORY FILTER NAV
   ============================================================ */
.categories {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.categories a {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    font-size: 14px;
}

.categories a.active {
    background: #111827;
    color: white;
}

/* ============================================================
   SITE CATEGORY CARDS
   ============================================================ */
.site-categories {
    max-width: 1100px;
    margin: 25px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.site-category-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
    overflow: hidden;
    border: 2px solid transparent;
    position: relative;
}

.site-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.site-category-card.active {
    border-color: var(--site-accent, #16a34a);
    background: linear-gradient(140deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 8px 28px rgba(22, 163, 74, 0.22), 0 0 0 1px rgba(22, 163, 74, 0.1);
    transform: translateY(-3px);
}
.site-category-card.active .site-category-title {
    font-weight: 700;
    color: #15803d;
}
.site-category-card.active .site-category-emoji {
    filter: saturate(1.4) brightness(1.08);
    transform: scale(1.06);
    transition: transform 0.2s;
}
.site-category-card.active::after {
    content: '✓';
    position: absolute;
    top: 7px;
    right: 8px;
    background: var(--site-accent, #16a34a);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    pointer-events: none;
    line-height: 1;
}

.site-category-emoji {
    font-size: 34px;
    margin-bottom: 8px;
}

.site-category-img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 12px;
    flex-shrink: 0;
}

.site-category-card img {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .site-category-img {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        object-fit: contain !important;
        display: block !important;
    }
}

.site-category-title {
    font-weight: bold;
}

/* ============================================================
   INFO PAGES (delivery, warranty, returns)
   ============================================================ */
.infopage-main {
    max-width: 780px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.infopage-inner {
    background: white;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.infopage-title {
    font-size: 26px;
    font-weight: 800;
    margin: 20px 0 24px;
    color: #111827;
}

.infopage-body {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

@media (max-width: 600px) {
    .infopage-inner {
        padding: 24px 20px;
    }
    .infopage-title {
        font-size: 22px;
    }
}

/* ============================================================
   FORMS & GLOBAL BUTTONS
   ============================================================ */
form {
    margin-top: 16px;
}

input {
    width: 100%;
    padding: 11px;
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 14px;
}

button {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    border: none;
    border-radius: 14px;
    background: #16a34a;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #15803d;
}

/* ============================================================
   PRODUCT CATALOG GRID
   ============================================================ */
.products {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
    gap: 22px;
    padding: 30px 20px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card[data-href] {
    cursor: pointer;
}

.card[data-href]:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.card-img-zoom {
    cursor: zoom-in;
}

/* ——— Image lightbox ——— */
.img-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    box-sizing: border-box;
}

.img-lightbox.open {
    display: flex;
}

.img-lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

.img-lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.img-lightbox-close:hover {
    background: #fff;
}

.img-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #111827;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    user-select: none;
}

.img-lightbox-nav:hover {
    background: #fff;
}

.img-lightbox-prev { left: 20px; }
.img-lightbox-next { right: 20px; }

.img-lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    pointer-events: none;
}

.lightbox-trigger {
    cursor: zoom-in;
}

@media (max-width: 600px) {
    .img-lightbox {
        padding: 10px;
    }
    .img-lightbox-img {
        max-width: 96vw;
        max-height: 80vh;
    }
    .img-lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 22px;
        top: 10px;
        right: 10px;
    }
    .img-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }
    .img-lightbox-prev { left: 8px; }
    .img-lightbox-next { right: 8px; }
    .img-lightbox-counter {
        bottom: 10px;
        font-size: 12px;
        padding: 4px 10px;
    }
}

.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
}

.card-actions .details-btn,
.card-actions .cart-btn {
    margin-top: 0;
}

.card .price-block {
    margin-top: 0;
}

.category {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.card h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 72px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #16a34a;
    margin: 12px 0;
}

.info {
    font-size: 14px;
    color: #374151;
    margin: 6px 0;
}

.status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 13px;
    margin-bottom: 10px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 14px;
    padding: 10px;
}

.no-photo {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 14px;
    padding: 13px;
    border-radius: 14px;
    background: var(--site-primary, #111827);
    color: white;
    font-weight: bold;
}

.details-btn:hover {
    background: #374151;
}

.cart-btn {
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    border: none;
    border-radius: 14px;
    background: var(--site-buy, #16a34a);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* mobile catalog — 2 columns */
@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 16px;
    }

    .card {
        padding: 12px;
        border-radius: 14px;
        min-width: 0;
    }

    .card-image-wrap {
        height: 180px;
    }

    .product-img,
    .no-photo {
        height: 100%;
    }

    .card h2 {
        font-size: 16px;
        min-height: 60px;
    }

    .price {
        font-size: 18px;
    }

    .details-btn {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .products {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #374151;
    text-decoration: none;
    font-weight: bold;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.product-image {
    display: block;
}

.product-image img,
.product-big-img {
    width: 100%;
    border-radius: 16px;
    background: #f9fafb;
    object-fit: contain;
    max-height: 720px;
}

/* gallery */
.product-gallery {
    background: white;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 520px;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 14px;
    display: block;
    margin-bottom: 10px;
}

.thumbs-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 12px 4px 4px;
    align-items: center;
}

.thumb-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    background: #f9fafb;
    padding: 4px;
    opacity: 0.75;
    border: 2px solid transparent;
    box-sizing: border-box;
    display: block;
}

.thumb-img:hover {
    opacity: 1;
    border-color: #111827;
}

.thumb-img.active {
    opacity: 1;
    border-color: #111827;
}

/* product info card */
.product-info {
    display: block;
    align-self: start;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    margin-top: 0;
    align-self: start;
}

.product-title {
    margin: 8px 0 12px;
    font-size: 22px;
}

.product-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.desc {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}
/* ── Collapsible blocks: specs + description ── */
.collapsible-block {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.collapsible-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}
.collapsible-body {
    overflow: hidden;
}
.collapsible-body--desc {
    max-height: 72px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
.collapsible-body--specs {
    max-height: 360px;
}
.collapsible-body.collapsible-expanded {
    max-height: none !important;
}
.collapsible-btn {
    margin-top: 8px;
    display: inline-block;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.4;
}
.collapsible-btn:hover {
    background: #15803d;
}

/* ── Variants of same model (product page) ── */
.variants-box {
    margin-top: 18px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.variants-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}
.variants-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.variant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    color: #111827;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, transform .05s ease;
}
.variant-card:hover {
    border-color: #6366f1;
    background: #f5f7ff;
}
.variant-card:active { transform: translateY(1px); }
.variant-active {
    border-color: #10b981;
    background: #ecfdf5;
    cursor: default;
}
.variant-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.variant-vol {
    font-weight: 600;
    font-size: 15px;
}
.variant-price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.variant-price {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
}
.variant-old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}
.variant-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.variant-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1.3;
    white-space: nowrap;
}
.variant-in   { background: #dcfce7; color: #166534; }
.variant-pre  { background: #fef3c7; color: #92400e; }
.variant-out  { background: #fee2e2; color: #991b1b; }
.variant-current-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .variant-card { padding: 9px 10px; }
    .variant-vol { font-size: 14px; }
    .variant-price { font-size: 13px; }
}

/* specs */
.specs-box {
    margin-top: 18px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 14px;
}

.specs-box h3 {
    margin-top: 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span {
    color: #6b7280;
}

.spec-row b {
    text-align: right;
}

/* order form */
.order-form input {
    width: 100%;
    padding: 10px 12px;
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
}

.order-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: var(--site-primary, #111827);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.order-btn:hover {
    background: #374151;
}

/* product page mobile */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        order: 1;
    }

    .product-info {
        order: 2;
    }

    .product-page {
        padding: 14px;
    }

    .product-big-img {
        max-height: 420px;
    }

    .product-gallery {
        padding: 10px;
    }

    .main-image {
        height: 360px;
    }

    .thumbs-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .thumb-img {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 420px) {
    .main-image {
        height: 300px;
    }

    .thumbs-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .thumb-img {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
    }
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

.cart-items-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-col {
    position: relative;
}

.order-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.cart-item-card {
    background: white;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-name {
    font-weight: 700;
}

.cart-item-price {
    color: #16a34a;
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    font-weight: 700;
}

.qty {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
}

.remove-small {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #111827;
    color: white;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

/* ── Text logo (shared header + footer) ── */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.site-logo .logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--site-accent, #2563eb);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    flex-shrink: 0;
    line-height: 1;
}
.site-logo .logo-text {
    font-size: 18px;
    font-weight: 800;
}

/* ── Logo in header — larger, primary visual element ── */
.site-header .site-logo {
    font-size: 28px;
    gap: 12px;
    margin-bottom: 6px;
}
.site-header .site-logo .logo-badge {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 12px;
}
.site-header .site-logo .logo-text {
    font-size: 26px;
    letter-spacing: -0.5px;
}

/* ── Main footer layout ── */
.site-footer {
    margin-top: 60px;
    background: #111827;
    color: #d1d5db;
}

.site-footer .footer-top {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 36px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Brand column */
.site-footer .footer-brand {
    grid-column: 1;
}
.site-footer .footer-brand .site-logo {
    color: #fff;
    font-size: 20px;
    margin-bottom: 14px;
    display: flex;
}
.site-footer .footer-brand p {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

/* Nav columns */
.site-footer .footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    margin: 0 0 16px;
}
.site-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.site-footer .footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.18s;
}
.site-footer .footer-col ul li a:hover {
    color: #fff;
}

/* Contacts column */
.site-footer .footer-contacts p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 8px;
    line-height: 1.5;
}
.site-footer .footer-contacts a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.18s;
}
.site-footer .footer-contacts a:hover {
    color: #fff;
}

/* Divider */
.site-footer .footer-divider {
    border: none;
    border-top: 1px solid #1f2937;
    margin: 0;
}

/* Bottom bar */
.site-footer .footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.site-footer .footer-bottom .copyright {
    font-size: 13px;
    color: #4b5563;
}
.site-footer .footer-bottom .footer-bottom-links {
    display: flex;
    gap: 16px;
}
.site-footer .footer-bottom .footer-bottom-links a {
    font-size: 12px;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.18s;
}
.site-footer .footer-bottom .footer-bottom-links a:hover {
    color: #9ca3af;
}

/* ── Footer mobile ── */
@media (max-width: 768px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding: 36px 20px 28px;
    }
    .site-footer .footer-brand {
        grid-column: 1 / -1;
    }
    .site-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 16px 20px;
    }
    .site-footer .footer-bottom-links {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    max-width: 1100px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.pagination a {
    padding: 10px 14px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
}

.pagination a.active {
    background: #111827;
    color: white;
}

.pagination a:hover:not(.active) {
    background: #d1d5db;
}

/* ============================================================
   MOBILE CATALOG GRID — handled by @media (max-width: 1024px) below
   ============================================================ */

@media (max-width: 1024px) {
  .products-grid,
  .products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 14px !important;
  }

  .card {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .card-image-wrap {
    height: 180px !important;
  }

  .product-img,
  .no-photo {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  .card h2 {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin-top: 8px !important;
  }

  .category,
  .card-category {
    font-size: 13px !important;
  }

  .price {
    font-size: 22px !important;
    margin: 12px 0 8px !important;
  }

  .details-btn,
  .cart-btn {
    font-size: 15px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 420px) {
  .products-grid,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .card-image-wrap {
    height: 165px !important;
  }

  .product-img,
  .no-photo {
    height: 100% !important;
  }

  .card h2 {
    font-size: 17px !important;
  }

  .price {
    font-size: 21px !important;
  }
}

.brand-select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: white;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.brand-select:hover { border-color: #9ca3af; }
.brand-select:focus {
  border-color: var(--site-accent, #16a34a);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

@media (max-width: 768px) {
  .products-grid,
  .products {
    padding: 8px !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .card {
    text-align: center !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .card-image-wrap {
    height: 210px !important;
    max-height: 210px !important;
    margin: 0 auto 10px !important;
  }

  .product-img,
  .no-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
  }

  .card h2 {
    text-align: center !important;
    font-size: 19px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    min-height: 44px !important;
  }

  .price {
    text-align: center !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
  }

  .card p,
  .card .category,
  .card .warranty,
  .card .badge,
  .card .status {
    text-align: center !important;
    font-size: 14px !important;
  }

  .details-btn,
  .cart-btn {
    width: 100% !important;
    font-size: 15px !important;
    padding: 12px !important;
  }
}

/* ============================================================
   LANGUAGE SWITCHER BUTTONS
   ============================================================ */
.site-lang-btn {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: white !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.site-lang-btn:hover,
.site-lang-btn.active {
  background: white !important;
  color: #111827 !important;
  border-color: white !important;
}

.lang-separator {
  color: rgba(255,255,255,0.5);
  font-weight: 700;
  font-size: 13px;
}

/* High-specificity override: lang buttons must NOT be green */
.site-header .lang-switch .site-lang-btn {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: white !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.site-header .lang-switch .site-lang-btn.active,
.site-header .lang-switch .site-lang-btn:hover {
  background: white !important;
  color: #111827 !important;
  border-color: white !important;
}

/* ============================================================
   PRICE FILTERS & IN_STOCK
   ============================================================ */
.price-input {
  width: 110px;
  margin-top: 0 !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e5e7eb !important;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.price-input:focus {
  border-color: var(--site-accent, #16a34a) !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

.in-stock-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}
.in-stock-label:hover { color: var(--site-accent, #16a34a); }

.in-stock-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  vertical-align: middle;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.in-stock-label input[type="checkbox"]:hover {
  border-color: var(--site-accent, #16a34a);
}
.in-stock-label input[type="checkbox"]:checked {
  background: var(--site-accent, #16a34a);
  border-color: var(--site-accent, #16a34a);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}
.in-stock-label input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  position: absolute;
  top: 1px;
  left: 5px;
}

/* ── Category chooser (когда категория не выбрана) ── */
.filters-category-chooser {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
}
.filters-cat-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.35;
}
.filters-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filters-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.filters-cat-pill:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.filters-cat-pill:active { transform: translateY(1px); }
.filters-cat-emoji { font-size: 14px; }
.filters-cat-label { white-space: nowrap; }
@media (max-width: 640px) {
  .filters-cat-pill { padding: 5px 10px; font-size: 12px; }
}

/* ── Dynamic category filters (etap 3) ── */
.dynamic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.dyn-filter {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px 10px;
  background: #fafafa;
  min-width: 160px;
  margin: 0;
}
.dyn-filter legend {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  padding: 0 6px;
}
.dyn-filter .dyn-unit {
  font-weight: 500;
  color: #6b7280;
}
.dyn-filter .dyn-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
}
.dyn-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  white-space: nowrap;
}
.dyn-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #16a34a;
}
.dyn-range {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.dyn-range-input {
  width: 90px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.dyn-range-sep {
  color: #6b7280;
  font-weight: 600;
}
.dyn-range-apply {
  padding: 6px 10px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dyn-range-apply:hover { background: #15803d; }
@media (max-width: 768px) {
  .dynamic-filters { gap: 8px; }
  .dyn-filter { min-width: 100%; }
  .dyn-range-input { flex: 1; min-width: 0; }
}

@media (max-width: 768px) {
  .search-main-row {
    flex-wrap: wrap;
  }

  .search-filters-row {
    flex-wrap: wrap;
  }

  .price-input {
    flex: 1 !important;
    min-width: 100px !important;
    width: auto !important;
  }
}

/* ============================================================
   SEARCH BLOCK OVERRIDE
   ============================================================ */
.search-main-row {
  max-width: 900px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 1fr) 130px !important;
  gap: 12px !important;
  align-items: center !important;
}

.search-main-row input {
  width: 100% !important;
  height: 48px !important;
}

.search-main-row button,
.search-btn {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  height: 48px !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .search-main-row {
    grid-template-columns: 1fr 110px !important;
    padding: 0 14px !important;
  }

  .search-main-row button,
  .search-btn {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
  }
}

/* ============================================================
   SALE / STOCK STATUS
   ============================================================ */
.price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0;
}

.price-block .price {
    margin: 0;
}

.old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.95em;
    margin: 0;
}

.sale-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.card {
    position: relative;
}

.card-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 220px;
    margin-bottom: 14px;
}

.card-image-wrap .product-img,
.card-image-wrap .no-photo {
    display: block;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}

.card-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.2px;
    z-index: 2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .card-sale-badge {
        top: 6px;
        left: 6px;
        padding: 3px 8px;
        font-size: 10.5px;
    }
}

.stock-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
}

.stock-in {
    background: #ecfdf5;
    color: #047857;
}

.stock-preorder {
    background: #fffbeb;
    color: #b45309;
}

.stock-out {
    background: #fef2f2;
    color: #b91c1c;
}

/* ============================================================
   SITE BANNER
   ============================================================ */
.site-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--site-primary, #111827);
    color: white;
    text-align: center;
}

.site-banner-img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.site-banner-text {
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    background: var(--site-accent, #16a34a);
    color: white;
}

.site-banner-img + .site-banner-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
    .site-banner-img {
        max-height: 200px;
    }
    .site-banner-text {
        font-size: 15px;
        padding: 12px 16px;
    }
}

.back-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  background: #e5e7eb;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}
.back-btn:hover { background: #d1d5db; }

/* ============================================================
   FILTERS TOGGLE ROW
   ============================================================ */
.filters-toggle-row {
    max-width: 900px;
    margin: 8px auto 0;
    padding: 0 20px;
}
.filters-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.filters-toggle-btn:hover {
    border-color: var(--site-accent, #16a34a);
    color: var(--site-accent, #16a34a);
    box-shadow: 0 2px 12px rgba(22, 163, 74, 0.14);
    transform: translateY(-1px);
}
.filters-toggle-btn[aria-expanded="true"] {
    background: var(--site-accent, #16a34a);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32);
}
.filters-btn-icon { flex-shrink: 0; }
.filters-btn-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.7;
}
.filters-toggle-btn[aria-expanded="true"] .filters-btn-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ============================================================
   FILTERS PANEL — desktop collapse
   ============================================================ */
.filters-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.26s ease,
                transform 0.26s ease;
    will-change: max-height, opacity, transform;
}
.filters-panel[data-open="true"] {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
}
.filters-panel-header,
.filters-panel-footer {
    display: none;
}
.filters-panel-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 8px;
}

/* ─── Base filters card (brand / price / in-stock) ─── */
.search-filters-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 14px !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}

/* ─── Dynamic filters ─── */
.dynamic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}
.dyn-filter {
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 10px 14px 12px;
    background: #ffffff;
    min-width: 150px;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.dyn-filter:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}
.dyn-filter legend {
    font-size: 10.5px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 0 4px;
}
.dyn-filter .dyn-unit {
    font-weight: 500;
    color: #d1d5db;
}
.dyn-filter .dyn-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 8px;
}

/* ─── Custom checkbox option ─── */
.dyn-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    padding: 2px 0;
    transition: color 0.15s;
}
.dyn-option:hover {
    color: var(--site-accent, #16a34a);
}
.dyn-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 17px;
    height: 17px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    position: relative;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.dyn-option input[type="checkbox"]:hover {
    border-color: var(--site-accent, #16a34a);
}
.dyn-option input[type="checkbox"]:checked {
    background: var(--site-accent, #16a34a);
    border-color: var(--site-accent, #16a34a);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}
.dyn-option input[type="checkbox"]:checked::after {
    content: '';
    display: block;
    width: 4px;
    height: 7px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    position: absolute;
    top: 1px;
    left: 4px;
}
.dyn-option input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--site-accent, #16a34a);
    outline-offset: 2px;
}

/* ─── Range inputs ─── */
.dyn-range {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.dyn-range-input {
    width: 78px;
    padding: 5px 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.dyn-range-input:focus {
    border-color: var(--site-accent, #16a34a);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.dyn-range-sep { color: #d1d5db; font-weight: 600; font-size: 14px; }
.dyn-range-apply {
    padding: 5px 12px;
    background: var(--site-accent, #16a34a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.dyn-range-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.32);
}

/* ─── Drag handle (inside mobile bottom sheet) ─── */
.filters-drag-handle {
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 10px auto 2px;
    flex-shrink: 0;
}

/* ─── Backdrop ─── */
.filters-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 30, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.filters-backdrop:not([hidden]) { opacity: 1; }

/* ============================================================
   FILTERS PANEL — mobile bottom sheet (iOS/marketplace style)
   ============================================================ */
@media (max-width: 768px) {
    .filters-toggle-row {
        padding: 0 14px;
    }
    .filters-toggle-btn {
        height: 36px;
        font-size: 13px;
        padding: 0 14px;
        border-radius: 999px;
    }
    .filters-panel {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 1001;
        background: #fff;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.18);
        max-height: 88vh;
        max-width: 100%;
        margin: 0;
        padding: 0;
        opacity: 1;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .filters-panel[data-open="true"] {
        transform: translateY(0);
        max-height: 88vh;
    }
    .filters-panel[data-open="false"] {
        pointer-events: none;
    }
    .filters-drag-handle {
        background: #d1d5db;
        margin: 12px auto 6px;
    }
    .filters-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 18px 14px;
        border-bottom: 1px solid #f3f4f6;
        flex-shrink: 0;
    }
    .filters-panel-title {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
    }
    .filters-close-btn {
        background: #f3f4f6;
        border: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        line-height: 1;
        color: #6b7280;
        cursor: pointer;
        border-radius: 50%;
        transition: background 0.15s, color 0.15s;
    }
    .filters-close-btn:hover { background: #e5e7eb; color: #111827; }
    .filters-panel-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 14px 16px 10px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .filters-panel-footer {
        display: block;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #f3f4f6;
        background: #fff;
        flex-shrink: 0;
    }
    .filters-apply-btn {
        width: 100%;
        height: 50px;
        border: 0;
        border-radius: 14px;
        background: var(--site-accent, #16a34a);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        letter-spacing: 0.2px;
        box-shadow: 0 4px 16px rgba(22, 163, 74, 0.32);
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .filters-apply-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(22, 163, 74, 0.38);
    }
    .filters-panel .search-filters-row {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .filters-panel .dyn-filter {
        min-width: 100%;
        background: #f9fafb !important;
    }
    .filters-panel .dyn-range-input {
        flex: 1;
        min-width: 0;
        width: auto;
    }
}

/* ============================================================
   CATALOG LAYOUT — desktop sidebar card + content column
   ============================================================ */
.catalog-layout {
    display: block;
}

.catalog-content {
    min-width: 0;
}

@media (min-width: 769px) {
    .catalog-layout {
        display: flex;
        align-items: flex-start;
        max-width: 1420px;
        margin: 0 auto;
        padding: 0 20px;
        gap: 24px;
    }

    /* ─── Sidebar card ─── */
    .catalog-layout .search-box {
        width: 272px;
        flex-shrink: 0;
        position: sticky;
        top: 16px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #e5e7eb transparent;
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 20px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.06);
        padding: 0 !important;
        margin: 16px 0 0 !important;
        max-width: 272px !important;
    }

    .catalog-layout .search-form {
        padding: 16px 16px 20px;
    }

    /* Show the sidebar title (repurpose panel-header) */
    .catalog-layout .filters-panel-header {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        padding: 0 0 10px 0 !important;
        border-bottom: 1px solid #f3f4f6;
        margin-bottom: 6px;
    }
    .catalog-layout .filters-panel-title {
        font-size: 11px;
        font-weight: 700;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    .catalog-layout .filters-close-btn {
        display: none !important;
    }
    .catalog-layout .filters-drag-handle {
        display: none !important;
    }

    /* Always-open filter panel in sidebar */
    .catalog-layout .filters-panel {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    .catalog-layout .filters-panel-body {
        padding: 4px 0 0 !important;
        gap: 8px !important;
    }
    .catalog-layout .filters-panel-footer {
        display: none !important;
    }

    /* Hide toggle button — always visible in sidebar */
    .catalog-layout .filters-toggle-row {
        display: none !important;
    }

    /* Stack filters vertically */
    .catalog-layout .dynamic-filters {
        flex-direction: column !important;
        gap: 7px !important;
        margin-top: 0 !important;
    }
    .catalog-layout .dyn-filter {
        min-width: auto !important;
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 12px !important;
    }

    /* Base filters in sidebar — transparent, no extra card */
    .catalog-layout .search-filters-row {
        flex-direction: column !important;
        align-items: stretch !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    /* Search input + button — flex row in sidebar (override global grid) */
    .catalog-layout .search-main-row {
        display: flex !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
        padding: 0 !important;
        gap: 8px !important;
    }
    .catalog-layout .search-main-row input[type="text"] {
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        border-radius: 10px !important;
        font-size: 13.5px !important;
    }
    .catalog-layout .search-main-row button[type="submit"] {
        flex-shrink: 0 !important;
        width: auto !important;
        min-width: 60px !important;
        max-width: none !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    /* Brand select in sidebar */
    .catalog-layout .brand-select {
        width: 100% !important;
        border-radius: 10px !important;
        font-size: 13px !important;
        padding: 9px 12px !important;
    }
    .catalog-layout .price-input {
        width: 100% !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    /* Content column */
    .catalog-content {
        flex: 1;
        min-width: 0;
    }
    .catalog-layout .products,
    .catalog-layout .products-grid {
        max-width: none !important;
        margin: 0 !important;
        padding: 8px 0 30px !important;
    }
}

/* ============================================================
   CATALOG TOOLBAR — chips row + sort row
   ============================================================ */

/* Desktop: chips on the left, sort on the right — single row */
.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 2px;
    min-height: 36px;
}

/* Chips row: wraps on desktop, scrolls on mobile */
.chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

/* Inner chips container */
.active-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* ─── Chip pill — override global button{} rule ─── */
.filter-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    background: #f0fdf4 !important;
    border: 1.5px solid #bbf7d0 !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    color: #15803d !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    width: auto !important;
    max-width: max-content !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    margin-top: 0 !important;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.08) !important;
    transition: background 0.15s ease, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.15s ease !important;
}
.filter-chip:hover {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.16) !important;
}
.chip-label {
    line-height: 1.2;
    font-size: 12.5px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chip-remove {
    font-size: 10px;
    opacity: 0.5;
    line-height: 1;
    margin-left: 1px;
    transition: opacity 0.15s;
}
.filter-chip:hover .chip-remove { opacity: 1 !important; }

/* ─── Clear-all link ─── */
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: transparent;
    border: 1.5px solid #fca5a5;
    border-radius: 999px;
    font-size: 12px;
    color: #ef4444;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    line-height: 1.4;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.clear-filters-btn::before {
    content: '×';
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.clear-filters-btn:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

/* ─── Sort row ─── */
.sort-row {
    flex-shrink: 0;
}

/* ─── Sort dropdown (custom arrow) ─── */
.sort-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.sort-wrap::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #9ca3af;
    pointer-events: none;
}
.sort-select {
    -webkit-appearance: none;
    appearance: none;
    padding: 7px 30px 7px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-width: 152px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sort-select:hover { border-color: #9ca3af; }
.sort-select:focus {
    border-color: var(--site-accent, #16a34a);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* ─── Count badge next to filter option ─── */
.filter-count-badge {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
    margin-left: 3px;
}

/* ============================================================
   MOBILE overrides for toolbar
   ============================================================ */
@media (max-width: 768px) {
    /* Stack chips row + sort row vertically */
    .catalog-toolbar {
        display: block;
        padding: 0 14px;
        margin-bottom: 8px;
    }

    /* Chips: horizontal scroll strip */
    .chips-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        align-items: center;
        gap: 6px;
        margin-bottom: 10px;
        padding-bottom: 2px;
        min-width: 0;
    }
    .chips-row::-webkit-scrollbar { display: none; }

    .active-chips {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .clear-filters-btn {
        flex-shrink: 0;
    }

    /* Sort: own full-width block row */
    .sort-row {
        display: block;
        margin-bottom: 6px;
    }
    .sort-wrap {
        width: 100%;
    }
    .sort-wrap::after {
        right: 12px;
    }
    .sort-select {
        width: 100%;
        min-width: 0;
        max-width: none;
        font-size: 13px;
        padding: 9px 30px 9px 12px;
    }
}

/* ============================================================
   PROMO BAR
   ============================================================ */
.promo-bar {
    position: relative;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 11px 44px 11px 0;
    background: linear-gradient(90deg, #052e16 0%, #14532d 40%, #166534 60%, #052e16 100%);
    background-size: 200% 100%;
    animation: promoSlide 6s linear infinite;
    box-shadow: 0 2px 16px rgba(22,163,74,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(22,163,74,0.25);
    overflow: hidden;
}
@keyframes promoSlide {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Marquee container: clips moving text */
.promo-marquee-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
/* Text scrolls from right to left via padding + transform */
.promo-bar-text {
    display: inline-block;
    white-space: nowrap;
    /* padding-left: 100% pushes text off the right edge of the wrapper */
    padding-left: 100%;
    font-size: 13.5px;
    font-weight: 600;
    color: #d1fae5;
    letter-spacing: 0.2px;
    line-height: 1.4;
    animation: marqueeScroll 22s linear infinite;
}
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
/* Countdown: static, right of marquee */
.promo-bar-countdown {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #86efac;
    letter-spacing: 0.4px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    padding: 0 14px 0 0;
}
.promo-bar-countdown:not(:empty) {
    padding: 0 14px 0 12px;
    border-left: 1px solid rgba(134,239,172,0.3);
}
/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .promo-bar { animation: none; }
    .promo-bar-text {
        padding-left: 16px;
        animation: none;
    }
}
.promo-bar-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none;
    color: rgba(209,250,229,0.6);
    font-size: 14px;
    cursor: pointer;
    width: 24px !important;
    height: 24px !important;
    min-width: unset !important;
    padding: 0 !important;
    margin-top: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    transition: color 0.2s, background 0.2s;
    z-index: 2;
}
.promo-bar-close:hover {
    color: #bbf7d0 !important;
    background: rgba(255,255,255,0.07) !important;
}
@media (max-width: 600px) {
    .promo-bar { padding: 9px 36px 9px 0; }
    .promo-bar-text { font-size: 12px; animation-duration: 18s; }
    .promo-bar-countdown { font-size: 11.5px; padding: 0 8px 0 8px; }
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0f1e 0%, #0d1f2d 40%, #071811 100%);
    margin-bottom: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    filter: blur(2px) saturate(1.3);
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero-glow-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(22,163,74,0.35) 0%, transparent 70%);
    top: -120px;
    left: -80px;
    animation: glowDrift1 8s ease-in-out infinite alternate;
}
.hero-glow-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(16,185,129,0.22) 0%, transparent 70%);
    bottom: -100px;
    right: -60px;
    animation: glowDrift2 10s ease-in-out infinite alternate;
}
@keyframes glowDrift1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.1); }
}
@keyframes glowDrift2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-30px, -20px) scale(1.08); }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    width: 100%;
    padding: 56px 32px;
    text-align: center;
}
.hero-title {
    font-size: clamp(26px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.18;
    color: #f0fdf4;
    letter-spacing: -0.5px;
    margin: 0 0 14px;
    text-shadow: 0 2px 32px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: rgba(209,250,229,0.82);
    line-height: 1.6;
    margin: 0 0 28px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    letter-spacing: 0.1px;
    cursor: pointer;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(22,163,74,0.45), 0 1px 0 rgba(255,255,255,0.12) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(22,163,74,0.55), 0 1px 0 rgba(255,255,255,0.15) inset;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #fff;
    text-decoration: none;
}
.hero-cta:active {
    transform: translateY(0) scale(0.98);
}
@media (max-width: 768px) {
    .hero-banner { min-height: 240px; }
    .hero-content { padding: 40px 20px; }
    .hero-cta { padding: 12px 24px; font-size: 14px; }
}
@media (max-width: 480px) {
    .hero-banner { min-height: 200px; }
    .hero-content { padding: 32px 16px; }
    .hero-title { letter-spacing: -0.3px; }
}

/* ============================================================
   MULTI-BANNER SLIDER  — Premium Tech Store redesign
   ============================================================ */

@keyframes bnrFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bnrFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

/* ── Wrapper & track ── */
.bnr-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    user-select: none;
    background: #0b1120;
}
.bnr-static { pointer-events: auto; }
.bnr-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Slide ── */
.bnr-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    background: transparent;
    overflow: hidden;
}
/* ambient neon glow */
.bnr-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 100% at 78% 42%, rgba(34,197,94,.10) 0%, transparent 55%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(34,197,94,.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* ── Inner: CSS grid — text(top-left) | img(right, 2 rows) | cta(bottom-left) ── */
.bnr-inner {
    display: grid;
    grid-template-areas:
        "text img"
        "cta  img";
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    width: 100%;
    max-width: 1280px;
    height: 420px;
    margin: 0 auto;
    padding: 40px 64px;
    column-gap: 52px;
    row-gap: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ── Glass content card (grid: text, top-left) ── */
.bnr-text {
    grid-area: text;
    align-self: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 40px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    box-shadow: 0 0 40px rgba(34,197,94,.18), inset 0 1px 0 rgba(255,255,255,.06);
    animation: bnrFadeUp .55s ease both;
}

/* ── Image column (grid: img, spans both rows) ── */
.bnr-img-col {
    grid-area: img;
    align-self: center;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.bnr-img {
    display: block;
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 30px rgba(34,197,94,.28));
    animation: bnrFloat 5s ease-in-out infinite;
    transition: filter .3s ease;
}
.bnr-slide:hover .bnr-img {
    filter: drop-shadow(0 0 48px rgba(34,197,94,.46));
}

/* ── Typography ── */
.bnr-title {
    font-size: clamp(20px, 2.7vw, 38px);
    font-weight: 800;
    color: #f0fdf4;
    line-height: 1.18;
    letter-spacing: -.4px;
    margin: 0 0 12px;
}
.bnr-subtitle {
    font-size: clamp(12px, 1.3vw, 15px);
    font-weight: 400;
    color: rgba(209,250,229,.78);
    line-height: 1.75;
    margin: 0;
    white-space: pre-line;
}

/* ── CTA button (grid: cta, bottom-left) — dark graphite → muted green ── */
.bnr-cta {
    grid-area: cta;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 170px;
    height: 52px;
    padding: 0 32px;
    background: linear-gradient(135deg, #101827 0%, #1f6f3a 100%);
    color: #e2f5ea;
    font-size: 15px;
    font-weight: 600;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(34,197,94,.18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.bnr-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(34,197,94,.30);
    background: linear-gradient(135deg, #152236 0%, #246040 100%);
    color: #f0fdf4;
    text-decoration: none;
}
.bnr-cta:active { transform: scale(.97); }

/* ── Arrows ── */
.bnr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.13);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, box-shadow .2s;
}
.bnr-arrow:hover {
    background: rgba(34,197,94,.18);
    box-shadow: 0 0 18px rgba(34,197,94,.35);
}
.bnr-prev { left: 18px; }
.bnr-next { right: 18px; }

/* ── Dots ── */
.bnr-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.bnr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s, box-shadow .25s;
}
.bnr-dot.active {
    background: #22c55e;
    transform: scale(1.35);
    box-shadow: 0 0 8px rgba(34,197,94,.65);
}

/* ── Tablet ── */
@media (max-width: 960px) {
    .bnr-inner { height: 360px; padding: 32px 40px; column-gap: 36px; }
    .bnr-text { padding: 28px 30px; }
    .bnr-img-col { max-height: 280px; }
    .bnr-img { max-height: 280px; }
}

/* ── Mobile: image shifted up, button in flow below image ── */
@media (max-width: 680px) {
    .bnr-inner {
        grid-template-areas:
            "text"
            "img"
            "cta";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        padding: 14px 14px 16px;
        column-gap: 0;
        row-gap: 8px;
        overflow: hidden;
        position: relative;
    }
    /* dark gradient — background decoration, bottom of hero */
    .bnr-inner::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 100px;
        background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
        pointer-events: none;
        z-index: 2;
    }
    .bnr-text {
        max-width: 100%;
        padding: 16px 18px 12px;
        align-items: center;
        text-align: center;
        animation: none;
    }
    .bnr-title { font-size: clamp(15px, 4.5vw, 21px); margin-bottom: 5px; }
    .bnr-subtitle { font-size: 12px; }
    /* image shifted up — transform on wrapper keeps float animation intact */
    .bnr-img-col {
        max-height: 180px;
        justify-self: center;
        overflow: visible;
        transform: translateY(-12px);
    }
    .bnr-img { max-height: 180px; animation-duration: 7s; }
    /* button: normal flow, pulled up toward image */
    .bnr-cta {
        position: relative;
        bottom: unset;
        left: unset;
        transform: none;
        justify-self: center;
        width: 78%;
        min-width: unset;
        height: 44px;
        padding: 0 20px;
        margin-top: -8px;
        background: rgba(8,16,28,.80);
        border: 1px solid rgba(34,197,94,.38);
        box-shadow: 0 0 18px rgba(34,197,94,.16);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #a7f3d0;
        font-size: 14px;
        font-weight: 600;
        border-radius: 14px;
        text-decoration: none;
        z-index: 3;
        white-space: nowrap;
    }
    .bnr-cta:hover {
        background: rgba(12,24,42,.90);
        box-shadow: 0 0 26px rgba(34,197,94,.28);
        transform: translateY(-1px);
        color: #d1fae5;
    }
    .bnr-cta:active { transform: scale(.97); }
    .bnr-arrow { display: none; }
    /* dots: taken out of absolute flow → appear naturally below CTA */
    .bnr-dots {
        position: static;
        left: unset;
        bottom: unset;
        transform: none;
        justify-content: center;
        width: 100%;
        margin-top: 16px;
        padding-bottom: 14px;
        z-index: 4;
    }
}
@media (max-width: 400px) {
    .bnr-inner { padding: 12px 12px 14px; row-gap: 6px; }
    .bnr-text { padding: 14px 14px 10px; border-radius: 18px; }
    .bnr-img-col { transform: translateY(-8px); }
    .bnr-cta { width: 78%; height: 40px; font-size: 13px; margin-top: -6px; }
    .bnr-img { max-height: 150px; }
    .bnr-dots { margin-top: 12px; padding-bottom: 12px; }
}

/* ===== SEO text block ===== */
.seo-text-block {
    max-width: 960px;
    margin: 40px auto 20px;
    padding: 28px 32px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    color: #9ca3af;
}
.seo-h1 {
    font-size: 22px;
    font-weight: 600;
    color: #d1d5db;
    margin: 0 0 14px;
}
.seo-text {
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
}
@media (max-width: 680px) {
    .seo-text-block { margin: 24px 12px 16px; padding: 18px 16px; }
    .seo-h1 { font-size: 18px; }
}

/* ============================================================
   HEADER V2 — hdr-col-logo / hdr-col-right layout
   ============================================================ */

/* ── Lang globe button: hidden on desktop, shown on mobile ── */
.lang-globe-btn { display: none; }

/* ── Base column styles ── */
.hdr-col-logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hdr-subtitle {
    font-size: 13px;
    color: #d1d5db;
    margin: 2px 0 0;
}
.hdr-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.hdr-logo-row .lang-dropdown-wrap { margin-left: auto; flex-shrink: 0; }
.hdr-col-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.hdr-phones { display: flex; flex-direction: column; gap: 5px; }
.hdr-phone-row { display: flex; align-items: center; gap: 6px; }
.hdr-phone-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.hdr-phone-link:hover { text-decoration: underline; }
.hdr-viber-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #7360f2;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}
.hdr-viber-btn:hover { background: #5a4bcf; }

@media (max-width: 768px) {
    /* ── Lang globe button ── */
    .lang-globe-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.25);
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        flex-shrink: 0;
        padding: 0;
    }
    .lang-dropdown-wrap { position: relative; }
    .lang-dropdown-wrap .lang-switch {
        display: none !important;
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        background: #1b2a3b;
        border-radius: 10px;
        padding: 6px 8px !important;
        flex-direction: column !important;
        gap: 2px !important;
        min-width: 60px;
        box-shadow: 0 4px 16px rgba(0,0,0,.3);
        z-index: 600;
    }
    .lang-dropdown-wrap .lang-switch.is-open { display: flex !important; }
    .lang-dropdown-wrap .lang-separator { display: none !important; }
    .lang-dropdown-wrap .site-lang-btn {
        width: 100% !important;
        text-align: center !important;
        border-radius: 6px !important;
    }

    /* ── Mobile header: flex column, no absolute positioning ── */
    .site-header .header-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    /* logo col: full width */
    .hdr-col-logo {
        flex: none !important;
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }
    /* logo row: [badge][title][🌐] — single flex row, no padding tricks */
    .hdr-logo-row {
        padding-right: 0 !important;
        min-width: 0;
        flex-wrap: nowrap;
    }
    /* logo text: allow wrap instead of truncation */
    .logo-text { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
    /* subtitle: full width, no padding-right */
    .hdr-subtitle {
        padding-right: 0 !important;
        font-size: 13px !important;
    }
    /* lang dropdown: static, no absolute */
    .hdr-logo-row .lang-dropdown-wrap {
        position: static !important;
        margin: 0 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
    }
    /* right col: static, full width, aligned right, phones hidden */
    .hdr-col-right {
        position: static !important;
        bottom: auto !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0;
    }
    .hdr-phones { display: none !important; }
    /* cancel the margin-top from the global .site-header .header-actions mobile rule */
    .hdr-col-right .header-actions {
        margin-top: 0 !important;
        position: static !important;
    }
}

/* ============================================================
   V2 SCOPED HEADER — does not affect the old site header
   ============================================================ */
.site-header--v2 {
    overflow: visible;
}
.site-header--v2 .v2-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.site-header--v2 .v2-header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.site-header--v2 .v2-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-bottom: 0;
}
.v2-site-logo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}
.site-header--v2 .v2-logo-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.site-header--v2 .v2-header-logo .logo-text {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.12;
}
.site-header--v2 .v2-header-subtitle {
    margin: 0;
    display: block;
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.35;
}
.site-header--v2 .v2-header-cart-row {
    display: flex;
    justify-content: center;
    width: 100%;
}
.site-header--v2 .v2-header-cart {
    width: auto !important;
    min-width: 96px;
    padding: 0 18px;
}
.site-header--v2 .v2-lang-menu {
    position: relative;
    justify-self: end;
    flex-shrink: 0;
}
.site-header--v2 .v2-lang-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    cursor: pointer;
    list-style: none;
    box-sizing: border-box;
}
.site-header--v2 .v2-lang-menu summary::-webkit-details-marker { display: none; }
.site-header--v2 .v2-lang-menu[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.site-header--v2 .v2-lang-menu .site-lang-btn {
    width: 48px !important;
    margin: 0 !important;
    padding: 7px 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1 !important;
}
.site-header--v2 .v2-lang-menu .site-lang-btn:hover,
.site-header--v2 .v2-lang-menu .site-lang-btn.active {
    background: #fff !important;
    color: #111827 !important;
}
.v2-product-header-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    transition: margin .22s ease;
}
.v2-product-header-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    border-radius: 16px;
    background: #1b2a3b;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Compact header: logo row + cart in one line */
.v2-header-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
/* ─── Sticky compact header on V2 product page ─── */
.site-header--v2-compact {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition:
        padding .24s ease,
        box-shadow .24s ease,
        background .24s ease;
}
.site-header--v2-compact .v2-header-main {
    max-height: 140px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    transition:
        max-height .28s ease,
        opacity .22s ease,
        transform .22s ease,
        margin .22s ease;
}
.site-header--v2-compact.is-collapsed .v2-header-main {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    margin: 0;
    pointer-events: none;
}
.site-header--v2-compact.is-collapsed {
    padding-top: 6px;
    padding-bottom: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.site-header--v2-compact.is-collapsed .v2-product-header-bar {
    margin-top: 0;
}
/* Product header subtitle text */
.v2-product-header-note {
    font-size: 13px;
    color: rgba(255,255,255,.78);
    margin-top: 6px;
    line-height: 1.35;
    white-space: pre-line;
    max-height: 96px;
    overflow: hidden;
}
/* Category quick-links below product card */
.v2-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding: 0 0 4px;
}
.v2-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #1b2a3b;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.v2-cat-link:hover {
    background: #243547;
}
/* ─── V2 product-page filter panel ─── */
.v2-pf-wrap {
    margin: 16px 0 8px;
}
.v2-pf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    background: #1b2a3b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
}
.v2-pf-toggle:hover { background: #243547; }
.v2-pf-chevron { transition: transform .25s ease; }
.v2-pf-panel {
    margin-top: 10px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 14px;
    display: none;
    flex-direction: column;
    gap: 12px;
}
.v2-pf-panel.v2-pf-open { display: flex; }
.v2-pf-group { display: flex; flex-direction: column; gap: 6px; }
.v2-pf-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.v2-pf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.v2-pf-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    color: #111827;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
    transition: background .15s, border-color .15s;
}
.v2-pf-chip:hover { background: #e5f0fa; border-color: #2e86c1; }
.v2-pf-chip.active { background: var(--site-primary, #2e86c1); color: #fff; border-color: var(--site-primary, #2e86c1); }
.v2-pf-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--site-primary, #2e86c1);
    text-decoration: none;
    margin-top: 4px;
}
.v2-pf-all-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .site-header--v2 {
        padding: 18px 16px 16px;
    }
    .site-header--v2 .v2-header-inner {
        max-width: 100%;
        gap: 10px;
    }
    .site-header--v2 .v2-header-top {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }
    .site-header--v2 .v2-header-logo {
        gap: 10px;
    }
    .v2-site-logo {
        width: 48px;
        height: 48px;
        min-width: 48px;
        max-width: 48px;
        border-radius: 12px;
    }
    .site-header--v2 .v2-header-logo .logo-badge {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }
    .site-header--v2 .v2-header-logo .logo-text {
        font-size: 18px;
    }
    .site-header--v2 .v2-header-subtitle {
        font-size: 12px;
    }
    .v2-header-top-right .header-pill {
        height: 38px !important;
        font-size: 15px;
    }
    .v2-catalog-bar-row,
    .v2-product-header-bar {
        gap: 10px;
    }
    .v2-catalog-open-btn,
    .v2-contacts-open-btn,
    .v2-product-header-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 52px !important;
        padding: 0 10px !important;
        font-size: 15px !important;
        white-space: nowrap !important;
    }
}


/* ── v2 drawer + catalog CSS (shared with index.html) ── */
/* ── v2 catalog navigation ── */
.v2-nav {
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* toggle-all dashed button */
.v2-toggle-all-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 18px;
    border-radius: 14px;
    background: transparent;
    border: 2px dashed rgba(46,134,193,.40);
    color: var(--site-primary, #2e86c1);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background .15s, border-color .15s;
    box-sizing: border-box;
}
.v2-toggle-all-btn:hover {
    background: rgba(46,134,193,.07);
    border-color: var(--site-primary, #2e86c1);
}
.v2-toggle-all-inner { display: flex; align-items: center; gap: 8px; }
.v2-toggle-all-chevron { flex-shrink: 0; transition: transform .3s ease; opacity: .65; }
.v2-toggle-all-btn.all-open .v2-toggle-all-chevron { transform: rotate(180deg); }
/* small reset link */
.v2-show-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--site-primary, #2e86c1);
    text-decoration: none;
    padding: 2px 0 4px;
    opacity: .85;
    transition: opacity .15s;
}
.v2-show-all-link:hover { opacity: 1; text-decoration: underline; }
/* accordion container */
.v2-cat-accordion { display: flex; flex-direction: column; gap: 6px; }
/* group item */
.v2-group-item { border-radius: 18px; overflow: hidden; }
.v2-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #1b2a3b;
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    transition: background .18s, border-radius .28s;
    box-shadow: 0 2px 10px rgba(0,0,0,.16);
    box-sizing: border-box;
}
.v2-group-header:hover { background: #243447; }
.v2-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}
.v2-group-emoji { font-size: 20px; flex-shrink: 0; line-height: 1; }
.v2-group-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-group-chevron { flex-shrink: 0; transition: transform .3s ease; opacity: .65; }
.v2-group-item.is-open > .v2-group-header { border-radius: 18px 18px 0 0; background: #243447; }
.v2-group-item.is-open .v2-group-chevron { transform: rotate(90deg); }
/* group body — 2-col grid */
.v2-group-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .36s ease, padding .3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 8px;
    background: rgba(27,42,59,.06);
    border-radius: 0 0 18px 18px;
    box-sizing: border-box;
}
.v2-group-item.is-open .v2-group-body { max-height: 1400px; padding: 8px; }
/* category card tile (card-style, emoji top + name below) */
.v2-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 6px;
    border-radius: 12px;
    background: #fff;
    color: #1b2a3b;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: border-color .15s, background .15s, color .15s;
    text-align: center;
    min-height: 72px;
    box-sizing: border-box;
}
.v2-cat-tile:hover { border-color: var(--site-primary, #2e86c1); }
.v2-cat-tile.active {
    background: var(--site-primary, #2e86c1);
    color: #fff;
    border-color: transparent;
}
.v2-cat-tile-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.v2-cat-tile-name { line-height: 1.25; word-break: break-word; white-space: normal; }
.v2-group-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.v2-group-count { font-size: 13px; font-weight: 400; opacity: .60; white-space: nowrap; }
.v2-cat-tile-count { font-size: 11px; opacity: .55; line-height: 1; }
.v2-cat-tile.active .v2-cat-tile-count { opacity: .85; }
/* ── v2 catalog drawer ── */
.v2-catalog-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    background: #1b2a3b;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    box-sizing: border-box;
    box-shadow: none;
}
.v2-catalog-open-btn:hover { background: #243447; }
.v2-catalog-bar {
    background: #0f1726;
    padding: 10px 16px 14px;
    margin: 0;
    box-sizing: border-box;
}
/* header v2 base + mobile CSS moved to static/style.css */
/* very narrow screens: bar buttons compact */
@media (max-width: 360px) {
    .v2-catalog-open-btn,
    .v2-contacts-open-btn { font-size: 13px; padding: 0 10px; gap: 6px; }
}
.v2-catalog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.46);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.v2-catalog-backdrop.is-open { opacity: 1; pointer-events: auto; }
.v2-catalog-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 320px;
    max-width: 86vw;
    background: #fff;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform .32s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
    overflow: hidden;
}
.v2-catalog-drawer.is-open { transform: translateX(0); }
.v2-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #1b2a3b;
    color: #fff;
    flex-shrink: 0;
}
.v2-drawer-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.v2-drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    opacity: .75;
    transition: opacity .15s;
}
.v2-drawer-close:hover { opacity: 1; }
.v2-drawer-body {
    overflow-y: auto;
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.v2-drawer-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #1b2a3b;
    transition: background .15s;
    margin-bottom: 4px;
}
.v2-drawer-all-link:hover { background: rgba(46,134,193,.08); }
.v2-drawer-all-link.active { background: var(--site-primary, #2e86c1); color: #fff; }
.v2-drawer-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #1b2a3b;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
}
.v2-drawer-group-header:hover { background: rgba(27,42,59,.06); }
.v2-drawer-group-left { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; }
.v2-drawer-group-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-drawer-group-right { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.v2-drawer-group-count { font-size: 12px; opacity: .55; }
.v2-drawer-group-chevron { flex-shrink: 0; transition: transform .3s ease; opacity: .5; }
.v2-drawer-group.is-open .v2-drawer-group-chevron { transform: rotate(90deg); }
.v2-drawer-cats {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.v2-drawer-group.is-open .v2-drawer-cats { max-height: 800px; }
.v2-drawer-cat-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    color: #1b2a3b;
    transition: background .15s;
}
.v2-drawer-cat-link:hover { background: rgba(46,134,193,.08); }
.v2-drawer-cat-link.active { background: var(--site-primary, #2e86c1); color: #fff; }
.v2-drawer-cat-count { font-size: 11px; opacity: .55; margin-left: auto; }
.v2-drawer-cat-link.active .v2-drawer-cat-count { opacity: .8; }
/* ── Catalog bar: flex row ── */
.v2-catalog-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* ── Both bar buttons: equal size ── */
.v2-catalog-open-btn,
.v2-contacts-open-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    background: #1b2a3b;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: none;
}
.v2-catalog-open-btn:hover,
.v2-contacts-open-btn:hover { background: #243447; }
/* ── Contacts drawer ── */
.v2-contacts-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    max-width: 88vw;
    background: #fff;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform .32s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,.18);
    overflow: hidden;
}
.v2-contacts-drawer.is-open { transform: translateX(0); }
.v2-contacts-drawer-body {
    overflow-y: auto;
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contacts-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.contacts-row:last-of-type { border-bottom: none; }
.contacts-row-info { display: flex; flex-direction: column; gap: 2px; }
.contacts-label { font-size: 11px; color: #6b7280; }
.contacts-phone {
    font-size: 16px;
    font-weight: 700;
    color: #1b2a3b;
    text-decoration: none;
}
.contacts-phone:hover { text-decoration: underline; }
.contacts-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    text-decoration: none;
    color: #1b2a3b;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
}
.contacts-social-link:hover { background: #e5e7eb; }
.contacts-info-row { font-size: 13px; color: #374151; padding: 6px 0; }
