/*
Theme Name: Avtostart2026
Theme URI: https://avtostart.kz
Author: IMS Bishkek
Author URI: https://imse.kg
Description: Современная WordPress тема для авторынка avtostart.kz с поддержкой WooCommerce, Bootstrap 5 и оптимизированной производительностью.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avtostart2026
WC requires at least: 7.0
WC tested up to: 9.0
Tags: bootstrap, woocommerce, responsive, automotive, e-commerce, custom-menu, custom-logo, featured-images, full-width-template
*/

/* =====================================================
   AVTOSTART 2026 — Основные стили темы
   Bootstrap 5 загружается через functions.php
   Дополнительные стили: assets/css/theme.css
   ===================================================== */

/* ── Self-hosted Montserrat (variable weight 100-900) ── */
/* cyrillic-ext */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(assets/fonts/montserrat-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(assets/fonts/montserrat-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(assets/fonts/montserrat-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --as-primary:        #F05F23;   /* фирменный оранжевый */
    --as-primary-dark:   #D04B15;   /* hover */
    --as-secondary:      #2D3444;   /* фирменный тёмный */
    --as-gray:           #919599;   /* Pantone 877 C silver */
    --as-light-bg:       #F4F4F5;
    --as-border:         #E4E4E7;
    --as-text:           #1A1A1A;
    --as-text-muted:     #6B7280;
    --as-white:          #FFFFFF;
    --as-footer-bg:      #2D3444;   /* совпадает с шапкой */
    --as-footer-text:    #CDD1D8;
    --as-radius:         4px;       /* угловатый технический стиль */
    --as-transition:     all 0.25s ease;
    --as-shadow:         0 2px 12px rgba(0,0,0,0.10);
    --as-shadow-hover:   0 6px 24px rgba(0,0,0,0.18);
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--as-primary); outline-offset: 2px; }

body {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    color: var(--as-text);
    background: var(--as-white);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; }
a { color: var(--as-primary); transition: var(--as-transition); }
a:hover { color: var(--as-primary-dark); }

/* === UTILITIES === */
.text-primary-as  { color: var(--as-primary) !important; }
.bg-primary-as    { background-color: var(--as-primary) !important; }
.bg-secondary-as  { background-color: var(--as-secondary) !important; }

.btn-primary-as {
    background-color: var(--as-primary);
    border-color: var(--as-primary);
    color: var(--as-white);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: 0.6rem 1.8rem;
    border-radius: var(--as-radius);
    transition: var(--as-transition);
    border: 2px solid var(--as-primary);
    letter-spacing: .02em;
}
.btn-primary-as:hover {
    background-color: var(--as-primary-dark);
    border-color: var(--as-primary-dark);
    color: var(--as-white);
    box-shadow: 0 4px 16px rgba(239,75,55,0.35);
}
.btn-outline-as {
    border: 2px solid var(--as-primary);
    color: var(--as-primary);
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: var(--as-radius);
    background: transparent;
    transition: var(--as-transition);
}
.btn-outline-as:hover {
    background-color: var(--as-primary);
    color: var(--as-white);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--as-secondary);
    margin-bottom: 0.25rem;
    letter-spacing: -.01em;
}
.section-divider {
    width: 60px; height: 4px;
    background: var(--as-primary);
    border-radius: 2px;
    margin: 0.75rem 0 1rem;
}
.section-subtitle {
    color: var(--as-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}
.section-padding    { padding: 70px 0; }
.section-padding-sm { padding: 40px 0; }
.section-light      { background-color: var(--as-light-bg); }

/* === TOPBAR === */
.topbar {
    background: var(--as-primary);
    padding: 6px 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* === HEADER / NAVBAR === */
.site-header {
    background: var(--as-secondary);
    position: sticky; top: 0; z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-brand .brand-text {
    font-size: 1.6rem; font-weight: 800;
    color: var(--as-white); letter-spacing: -0.5px;
}
.navbar-brand .brand-text span { color: var(--as-primary); }
.navbar-brand img { height: 48px; width: auto; }

/* Custom logo link — keep on same row as mobile buttons */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.custom-logo-link img { height: 48px; width: auto; display: block; }
@media (max-width: 991.98px) {
    img.custom-logo, .custom-logo-link img { max-width: 130px; height: auto; }
    .site-header .navbar { padding-top: .35rem; padding-bottom: .35rem; }
    .site-header .navbar > .container { padding-left: 5px; padding-right: 5px; }
    .header-cart-btn { height: 34px; padding: 0 .55rem; font-size: 1.15rem; }
    .navbar-toggler { padding-inline: 7px; margin-left: 0 !important; }
}
@media (max-width: 399px) {
    img.custom-logo, .custom-logo-link img { max-width: 110px; }
}

.site-nav .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    padding: 0.55rem 1rem !important;
    position: relative;
    transition: var(--as-transition);
    border-bottom: 2px solid transparent;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--as-primary);
}

/* ── Nav Dropdown (подменю) ─────────────────────────── */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.15);
    min-width: 200px; padding: .5rem 0; margin: 0;
    list-style: none; z-index: 1050;
}
/* Невидимый мостик между кнопкой и выпадашкой — закрываем зазор */
.nav-dropdown-wrap > .nav-link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 12px;
}
@media (min-width: 992px) {
    .nav-dropdown-wrap:hover > .nav-dropdown,
    .nav-dropdown-wrap:focus-within > .nav-dropdown { display: block; }
}
.nav-dropdown-item {
    display: block; padding: .55rem 1.2rem; color: var(--as-secondary);
    text-decoration: none; font-size: .9rem; font-weight: 500;
    transition: var(--as-transition); white-space: nowrap;
}
.nav-dropdown-item:hover {
    background: var(--as-light-bg); color: var(--as-primary);
    padding-left: 1.4rem;
}
/* Мобильный — раскрываем статично */
@media (max-width: 991.98px) {
    .nav-dropdown {
        position: static; box-shadow: none; border-radius: 0;
        background: rgba(255,255,255,.05); padding: 0; margin: 0;
        list-style: none; display: block;
    }
    .nav-dropdown-item { color: rgba(255,255,255,.75); font-size: .88rem; padding: .45rem 1.25rem .45rem 2.5rem; display: block; text-decoration: none; }
    .nav-dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; padding-left: 2.5rem; }
    .nav-dropdown-wrap > .nav-link .bi-chevron-down { display: none; }
}

.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: brightness(0) invert(1); }

/* ── Mobile Offcanvas Menu ───────────────────────── */
#mainNav.offcanvas {
    background: var(--as-secondary); color: #fff; max-width: 300px; border-right: none;
}
#mainNav .offcanvas-header {
    padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
#mainNav .offcanvas-header .custom-logo-link img { max-width: 140px; height: auto; }
#mainNav .offcanvas-body { padding: 1rem 0; display: flex; flex-direction: column; }
.mobile-nav { display: flex; flex-direction: column; flex: 1; }
.mobile-nav-link,
.mobile-nav .nav-link {
    display: block; padding: .7rem 1.25rem; color: rgba(255,255,255,.9);
    font-size: .95rem; font-weight: 600; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .2s, padding-left .2s;
}
.mobile-nav-link:hover, .mobile-nav-link.active,
.mobile-nav .nav-link:hover, .mobile-nav .nav-link.active {
    background: rgba(255,255,255,.08); color: #fff; padding-left: 1.5rem;
}
.mobile-nav-link.active { border-left: 3px solid var(--as-primary); }
.mobile-nav-contacts {
    margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.1);
    display: flex; flex-direction: column; gap: .5rem;
}
.mobile-nav-contact {
    display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.8);
    text-decoration: none; font-size: .9rem; font-weight: 500; padding: .3rem 0;
}
.mobile-nav-contact:hover { color: #fff; }
.mobile-nav-contact i { font-size: 1.1rem; width: 20px; text-align: center; color: var(--as-primary); }
.mobile-nav-contact--wa i { color: #25d366; }

/* ── Mobile Catalog in Offcanvas ─────────────────── */
.mobile-nav-catalog {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: .75rem; margin-top: .5rem;
}
.mobile-nav-catalog-title {
    display: flex; align-items: center; padding: .6rem 1.25rem;
    color: #fff; font-size: .95rem; font-weight: 700; text-decoration: none;
    text-transform: uppercase; letter-spacing: .03em;
}
.mobile-nav-catalog-title:hover { color: var(--as-primary); }
.mobile-nav-cats { display: flex; flex-direction: column; }
.mobile-nav-cat {
    display: block; padding: .45rem 1.25rem .45rem 2.5rem;
    color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500;
    text-decoration: none; transition: background .2s, color .2s;
}
.mobile-nav-cat:hover { background: rgba(255,255,255,.06); color: #fff; }
.mobile-nav-cat--all {
    color: var(--as-primary); font-weight: 600; margin-top: .25rem;
}

.header-cart-btn,
.header-wa-btn,
.header-phone {
    position: relative;
    height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; border-radius: var(--as-radius);
    padding: 0 0.75rem;
    transition: var(--as-transition);
    white-space: nowrap;
}
.header-cart-btn { color: #fff; font-size: 1.3rem; background: rgba(255,255,255,0.1); }
.header-wa-btn   { color: #25d366; font-size: 1.3rem; background: rgba(255,255,255,0.1); }
.header-phone    { color: #fff; font-size: .95rem; font-weight: 700; background: rgba(255,255,255,0.08); gap: .5rem; }
.header-phone i  { color: var(--as-primary); }
.header-cart-btn:hover { background: var(--as-primary); color: #fff; }
.header-wa-btn:hover   { background: rgba(37,211,102,.15); color: #25d366; }
.header-phone:hover    { background: rgba(255,255,255,.15); }
.cart-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--as-primary); color: #fff;
    border-radius: 50%; width: 20px; height: 20px;
    font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* === HERO === */
.hero-section {
    background: linear-gradient(135deg, var(--as-secondary) 0%, #2d3748 100%);
    color: var(--as-white); padding: 90px 0;
    position: relative; overflow: hidden;
}
.hero-bg-overlay {
    position: absolute; inset: 0;
    background: url('assets/images/_placeholder/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.12;
}
.hero-section .container { position: relative; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 1.25rem;
}
.hero-title span { color: var(--as-primary); }
.hero-subtitle {
    font-size: 1.15rem; color: rgba(255,255,255,0.82);
    margin-bottom: 2rem; max-width: 540px;
}
.hero-search .form-control {
    border-radius: var(--as-radius) 0 0 var(--as-radius);
    border: none; padding: 0.8rem 1.25rem; font-size: 1rem;
}
.hero-search .btn {
    border-radius: 0 var(--as-radius) var(--as-radius) 0;
    padding: 0.8rem 1.5rem;
    background: var(--as-primary); border-color: var(--as-primary); color: #fff; font-weight: 600;
}
.hero-search .btn:hover { background: var(--as-primary-dark); border-color: var(--as-primary-dark); }
.hero-stats { margin-top: 3rem; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat .stat-num { font-size: 2rem; font-weight: 800; color: var(--as-primary); display: block; line-height: 1; }
.hero-stat .stat-label { font-size: 1rem; color: rgba(255,255,255,0.85); margin-top: 4px; display: block; }

/* === CATEGORY CARDS === */
.category-card {
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius); overflow: hidden;
    box-shadow: var(--as-shadow); transition: var(--as-transition);
    text-decoration: none;
    display: flex; flex-direction: column; height: 100%;
    color: inherit; background: #fff;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--as-shadow-hover);
    border-color: rgba(240,95,35,.3);
    color: inherit;
}
.category-card .cat-img {
    height: 160px; overflow: hidden;
    background: #fff;
    display: flex; align-items: center; justify-content: center; position: relative;
    flex-shrink: 0;
}
.category-card .cat-img img {
    max-width: 80%; max-height: 130px;
    width: auto; height: auto;
    object-fit: contain; transition: transform 0.4s;
    aspect-ratio: 1 / 1;
}
.category-card:hover .cat-img img { transform: scale(1.06); }
.category-card .cat-icon { font-size: 3rem; color: var(--as-gray); opacity: .4; }
.category-card .cat-info {
    padding: .85rem 1rem;
    background: #fff;
    flex: 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    border-top: 2px solid transparent;
    transition: border-color .2s;
}
.category-card:hover .cat-info { border-top-color: var(--as-primary); }
.category-card .cat-name {
    font-weight: 700; font-size: .9rem;
    color: var(--as-secondary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
.category-card .cat-count { font-size: .8rem; color: var(--as-primary); font-weight: 600; }

/* === PRODUCT CARDS === */
.product-card {
    border: 1px solid var(--as-border); border-radius: var(--as-radius);
    overflow: hidden; transition: var(--as-transition); background: #fff; height: 100%;
}
.product-card:hover { box-shadow: var(--as-shadow-hover); border-color: var(--as-primary); transform: translateY(-3px); }
.product-card .prod-img {
    height: 210px; overflow: hidden;
    background: #fff; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.product-card .prod-img img {
    max-height: 185px; max-width: 88%;
    width: auto; height: auto;
    object-fit: contain; transition: transform 0.3s;
    aspect-ratio: 5 / 6;
}
.product-card:hover .prod-img img { transform: scale(1.05); }
.product-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 9px; border-radius: 4px;
    font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-new  { background: #10b981; color: #fff; }
.badge-sale { background: var(--as-primary); color: #fff; }
.badge-hit  { background: var(--as-gray); color: #fff; }
.badge-out  { background: #6b7280; color: #fff; }
.badge-tag  { background: #2563eb; color: #fff; }
/* Стопка бейджей (системный + метки товара) */
.product-badges {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.product-badges .product-badge { position: static; }
.prod-no-price { color: var(--as-text-muted); font-size: .85rem; font-style: italic; }
.product-card--no-price { opacity: .82; }
.product-card .prod-body { padding: 1.1rem 1.25rem 1.25rem; }
.product-card .prod-title {
    font-size: 1rem; font-weight: 600; color: var(--as-secondary);
    margin-bottom: 0.4rem; line-height: 1.4;
}
.product-card .prod-sku { font-size: 1rem; color: var(--as-text-muted); margin-bottom: 0.75rem; }
.product-card .prod-price { font-size: 1.4rem; font-weight: 900; color: var(--as-primary); line-height: 1.1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.product-card .prod-price ins { text-decoration: none; font-weight: 900; color: var(--as-primary); font-size: 1.4rem; order: 1; }
.product-card .prod-price del { text-decoration: line-through; color: var(--as-text-muted); font-size: .9rem; font-weight: 500; opacity: .7; order: 2; }
.product-card .prod-price-old { font-size: .9rem; color: var(--as-text-muted); text-decoration: line-through; margin-left: 6px; font-weight: 500; opacity: .7; }
.product-card .prod-actions { display: flex; align-items: stretch; gap: 0.5rem; margin-top: 0.9rem; }
.btn-add-cart {
    flex: 1; background: var(--as-primary); color: #fff; border: none;
    border-radius: 6px; padding: 0.5rem; font-size: 1rem; font-weight: 600;
    transition: var(--as-transition); cursor: pointer;
    display: flex; align-items: center; justify-content: center; text-align: center;
    text-decoration: none;
}
.btn-add-cart:hover, .btn-add-cart:focus { background: var(--as-primary-dark); color: #fff; text-decoration: none; }
.btn-wishlist {
    background: #25d366; border: 1px solid #25d366;
    border-radius: 6px; padding: 0.5rem 0.7rem; color: #fff;
    transition: var(--as-transition); cursor: pointer;
}
.btn-wishlist:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }

/* === FEATURES === */
.feature-item { text-align: center; padding: 2rem 1.25rem; }
.feature-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(230,60,0,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; font-size: 2rem; color: var(--as-primary);
    transition: var(--as-transition);
}
.feature-item:hover .feature-icon { background: var(--as-primary); color: #fff; }
.feature-item h4 { font-weight: 700; color: var(--as-secondary); margin-bottom: 0.6rem; }
.feature-item p { color: var(--as-text-muted); font-size: 1rem; margin: 0; }

/* === NEWS CARDS === */
.news-card {
    border: none; border-radius: var(--as-radius); overflow: hidden;
    box-shadow: var(--as-shadow); transition: var(--as-transition); height: 100%;
}
.news-card:hover { box-shadow: var(--as-shadow-hover); transform: translateY(-3px); }
.news-card .news-img { height: 200px; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .card-body { padding: 1.4rem; background: #fff; }
.news-meta { font-size: 1rem; color: var(--as-text-muted); margin-bottom: 0.6rem; }
.news-meta .news-cat { color: var(--as-primary); font-weight: 600; text-decoration: none; }
.news-card .card-title {
    font-weight: 700; font-size: 1rem; color: var(--as-secondary); margin-bottom: 0.6rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .card-text {
    font-size: 1rem; color: var(--as-text-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.read-more { color: var(--as-primary); font-weight: 600; font-size: 1rem; text-decoration: none; }
.read-more:hover { color: var(--as-primary-dark); }

/* === PARTNERS === */
.partner-logo {
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; border: 1px solid var(--as-border); border-radius: var(--as-radius);
    transition: var(--as-transition); filter: grayscale(80%); opacity: 0.6; height: 100px;
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; box-shadow: var(--as-shadow); border-color: var(--as-primary); }
.partner-logo img { max-height: 55px; max-width: 140px; object-fit: contain; }

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--as-primary) 0%, var(--as-primary-dark) 100%);
    color: #fff; padding: 65px 0;
}
.cta-section h2 { font-weight: 800; font-size: 2rem; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; }

/* === FOOTER === */
.site-footer { background: var(--as-footer-bg); color: var(--as-footer-text); padding: 60px 0 0; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; display: block; margin-bottom: 1rem; }
.footer-brand span { color: var(--as-primary); }
.footer-desc { font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
    width: 38px; height: 38px; background: rgba(255,255,255,0.1);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; transition: var(--as-transition); font-size: 1rem;
}
.footer-social a:hover { background: var(--as-primary); color: #fff; }
.footer-col-title,
.site-footer .footer-col-title,
.site-footer h3,
.site-footer h4,
body.woocommerce-checkout .site-footer h3,
body.woocommerce-checkout .site-footer h4,
body.woocommerce-page .site-footer h3,
body.woocommerce-page .site-footer h4 {
    color: #fff !important; font-weight: 700; font-size: 1rem; margin-bottom: 1.2rem;
    text-transform: uppercase; letter-spacing: 1px;
    border-left: 3px solid var(--as-primary); padding-left: 10px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--as-footer-text); text-decoration: none; font-size: 1rem; transition: var(--as-transition); }
.footer-links a:hover { color: var(--as-primary); padding-left: 4px; }
.footer-contact-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 1rem; align-items: center; }
.footer-contact-row .ficon { color: var(--as-primary); flex-shrink: 0; }
.footer-contact-row a { color: var(--as-footer-text); text-decoration: none; }
.footer-contact-row a:hover { color: var(--as-primary); }
.btn-footer-copy {
    background: none; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.4);
    border-radius: 6px; padding: .2rem .35rem; cursor: pointer; line-height: 1; font-size: .75rem;
    transition: var(--as-transition); flex-shrink: 0; margin-left: auto;
}
.btn-footer-copy:hover { border-color: var(--as-primary); color: var(--as-primary); }
.btn-footer-copy.copied { border-color: #22c55e; color: #22c55e; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding: 18px 0; font-size: 1rem; }

/* === BREADCRUMB === */
.breadcrumb-section { background: var(--as-light-bg); padding: 10px 0; border-bottom: 1px solid var(--as-border); }
.breadcrumb-section .breadcrumb { margin: 0; padding: 0; background: none; font-size: 1rem; }
.breadcrumb-item a { color: var(--as-primary); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--as-primary-dark); }
.breadcrumb-item.active { color: var(--as-text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--as-text-muted); }

/* === PAGE HERO === */
.page-hero { background: linear-gradient(135deg, var(--as-secondary), #2d3748); color: #fff; padding: 50px 0; }
.page-hero h1 { font-weight: 800; font-size: 2rem; margin: 0; }
.page-hero p { margin: 0.5rem 0 0; opacity: 0.8; font-size: 1.1rem; }

/* === CONTACT PAGE === */
.contact-info-card {
    background: #fff; border: 1px solid var(--as-border);
    border-radius: var(--as-radius); padding: 2rem; text-align: center;
    transition: var(--as-transition); height: 100%;
}
.contact-info-card:hover { box-shadow: var(--as-shadow-hover); border-color: var(--as-primary); }
a.contact-info-card { cursor: pointer; color: inherit; }
a.contact-info-card:hover h3 { color: var(--as-primary) !important; }
.contact-icon-wrap {
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 1rem;
}
.contact-form-wrap {
    background: #fff; border: 1px solid var(--as-border);
    border-radius: var(--as-radius); padding: 2.5rem; box-shadow: var(--as-shadow);
}
.contact-form-wrap h3 { font-weight: 700; color: var(--as-secondary); margin-bottom: 1.5rem; }
.partner-cta-block {
    background: linear-gradient(135deg, #fff7ed 0%, #fff 50%, #f0fdf4 100%);
    border: 2px solid var(--as-border); border-radius: 16px;
    padding: 2.5rem; box-shadow: var(--as-shadow);
}
@media (max-width: 575px) { .partner-cta-block { padding: 1.5rem; } }

/* === FORMS === */
.form-control, .form-select {
    border-radius: 8px; border: 1px solid var(--as-border);
    padding: 0.65rem 1rem; transition: var(--as-transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--as-primary);
    box-shadow: 0 0 0 0.2rem rgba(230,60,0,0.15);
}
.form-label { font-weight: 600; font-size: 1rem; color: var(--as-secondary); margin-bottom: 0.4rem; }

/* === SHOP / CATALOG === */
.shop-sidebar {
    background: #fff; border: 1px solid var(--as-border);
    border-radius: var(--as-radius); padding: 1.5rem;
    position: sticky; top: 88px;
}
.filter-group { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--as-border); }
.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-group-title { font-weight: 700; color: var(--as-secondary); font-size: 1rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-cat-list { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat-item {
    display: flex; align-items: center; gap: 10px; padding: 6px 8px;
    border-radius: 8px; text-decoration: none; color: var(--as-secondary);
    transition: var(--as-transition); font-size: .9rem;
}
.sidebar-cat-item:hover { background: var(--as-light-bg); color: var(--as-primary); }
.sidebar-cat-item.active { background: rgba(240,95,35,.08); color: var(--as-primary); font-weight: 700; }
.sidebar-cat-img {
    width: 32px; height: 32px; border-radius: 6px; overflow: hidden;
    flex-shrink: 0; background: var(--as-light-bg);
    display: flex; align-items: center; justify-content: center;
}
.sidebar-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-cat-count { margin-left: auto; font-size: .8rem; color: var(--as-text-muted); flex-shrink: 0; }
.shop-toolbar {
    background: #fff; border: 1px solid var(--as-border);
    border-radius: var(--as-radius); padding: 0.75rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem;
}
.shop-toolbar .results-count { font-size: 1rem; color: var(--as-text-muted); }

/* === PRODUCT GALLERY === */
.product-gallery-main {
    position: relative; cursor: zoom-in;
    border: 1px solid var(--as-border); border-radius: var(--as-radius);
    overflow: hidden; background: #fff;
    display: flex; align-items: center; justify-content: center;
    min-height: 380px; margin-bottom: 10px;
}
.product-gallery-main img {
    max-height: 380px; max-width: 100%;
    width: auto; height: auto; object-fit: contain;
    transition: transform .3s; display: block;
}
.product-gallery-main:hover img { transform: scale(1.03); }
.gallery-zoom-btn {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(45,52,68,.6); color: #fff; border: none;
    border-radius: 6px; padding: .35rem .55rem; font-size: 1.1rem;
    opacity: 0; transition: opacity .2s; line-height: 1; cursor: pointer;
}
.product-gallery-main:hover .gallery-zoom-btn { opacity: 1; }
.product-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
    width: 72px; height: 72px; padding: 0;
    border: 2px solid var(--as-border); border-radius: var(--as-radius);
    overflow: hidden; background: #fff; cursor: pointer;
    transition: border-color .2s;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--as-primary); }
#galleryLightbox .modal-dialog { max-width: min(92vw, 960px); }
#galleryLightbox .modal-content { background: rgba(0,0,0,.9); border: none; position: relative; }
#galleryLightbox img { max-height: 85vh; object-fit: contain; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; color: #fff;
    font-size: 1.8rem; padding: .5rem .8rem; border-radius: 6px;
    transition: background .2s; z-index: 10; line-height: 1; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* === SINGLE PRODUCT === */
.product-detail-title { font-size: 1.75rem; font-weight: 800; color: var(--as-secondary); margin-bottom: 0.75rem; line-height: 1.25; }
.btn-copy-title {
    background: none; border: 1px solid var(--as-border); color: var(--as-text-muted, #888);
    border-radius: 8px; padding: .35rem .5rem; cursor: pointer; line-height: 1;
    transition: var(--as-transition); margin-top: .2rem;
}
.btn-copy-title:hover { border-color: var(--as-primary); color: var(--as-primary); }
.btn-copy-title.copied { border-color: #22c55e; color: #22c55e; }
.product-detail-sku { font-size: 1rem; color: var(--as-text-muted); }
.product-detail-price { font-size: 2.4rem; font-weight: 900; color: var(--as-primary); margin-bottom: 1.25rem; line-height: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }
.product-detail-price ins { text-decoration: none; font-weight: 900; color: var(--as-primary); font-size: 2.4rem; order: 1; }
.product-detail-price del { text-decoration: line-through; color: var(--as-text-muted); font-size: 1.1rem; font-weight: 500; opacity: .65; order: 2; }
.product-detail-price .price-old { font-size: 1.1rem; color: var(--as-text-muted); text-decoration: line-through; font-weight: 500; margin-left: 10px; opacity: .65; }
.product-stock-in  { display: inline-flex; align-items: center; gap: .3rem; color: #059669; font-weight: 700; font-size: .85rem; background: #d1fae5; padding: .25rem .65rem; border-radius: 20px; }
.product-stock-out { display: inline-flex; align-items: center; gap: .3rem; color: #dc2626; font-weight: 700; font-size: .85rem; background: #fee2e2; padding: .25rem .65rem; border-radius: 20px; }
.product-tag-pill  { display: inline-flex; align-items: center; gap: .3rem; color: #1d4ed8; font-weight: 700; font-size: .85rem; background: #dbeafe; padding: .25rem .65rem; border-radius: 20px; }

/* qty control */
.qty-control {
    display: flex; align-items: stretch;
    border: 2px solid var(--as-border); border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.qty-control button {
    background: var(--as-light-bg); border: none; padding: .55rem 1.1rem;
    font-size: 1.25rem; line-height: 1; cursor: pointer; transition: var(--as-transition); color: var(--as-secondary);
}
.qty-control button:hover { background: var(--as-primary); color: #fff; }
.qty-control input {
    border: none; border-left: 2px solid var(--as-border); border-right: 2px solid var(--as-border);
    width: 56px; text-align: center; padding: .55rem .4rem; font-weight: 800; font-size: 1rem;
}
.qty-control input:focus { outline: none; border-color: var(--as-primary); }
.qty-control input:focus-visible { outline: 2px solid var(--as-primary); outline-offset: -2px; }

/* add-to-cart form */
.product-cart-form { margin-bottom: 1.25rem; }
.product-cart-row { display: flex; align-items: stretch; gap: .75rem; margin-bottom: .9rem; }
.product-cart-btn {
    flex: 1; font-size: 1rem !important; font-weight: 700 !important;
    padding: .6rem 1.25rem !important; border-radius: 10px !important;
    display: flex; align-items: center; justify-content: center;
}
.product-wa-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; padding: .65rem 1.25rem; border-radius: 10px;
    background: #fff; border: 2px solid #22c55e; color: #15803d;
    font-weight: 700; font-size: .93rem; text-decoration: none;
    transition: background .2s, color .2s;
}
.product-wa-btn:hover { background: #22c55e; color: #fff; }
.product-unavailable { color: #dc2626; font-weight: 700; font-size: .95rem; display: flex; flex-direction: column; }

/* Variable product form */
.product-variations-wrap .variations {
    width: 100%; border: none !important; margin-bottom: 1rem;
    border-collapse: collapse;
}
.product-variations-wrap .variations tr { display: flex; flex-direction: column; margin-bottom: .75rem; }
.product-variations-wrap .variations td,
.product-variations-wrap .variations th {
    padding: 0 !important; border: none !important;
    background: none !important; display: block;
}
.product-variations-wrap .variations th { margin-bottom: .3rem; }
.product-variations-wrap .variations label {
    font-weight: 700; color: var(--as-secondary); font-size: 1rem;
}
.product-variations-wrap .variations select {
    width: 100%; padding: .5rem .85rem; border-radius: 10px;
    border: 2px solid var(--as-border) !important; font-size: 1rem;
    background: #fff; color: var(--as-secondary); font-family: inherit;
    font-weight: 500; cursor: pointer;
    transition: border-color .2s;
}
.product-variations-wrap .variations select:focus-visible { outline: 2px solid var(--as-primary); outline-offset: 2px; }
.product-variations-wrap .variations select:focus {
    border-color: var(--as-primary) !important;
}
/* Кнопки вариаций — разные ряды имеют свой акцент */
.variation-buttons-wrap { margin-top: .25rem; --as-var-accent: var(--as-primary); --as-var-shadow: rgba(230,60,0,.25); }
/* Разные оттенки для рядов атрибутов (циклично по 4) */
.variations tr:nth-child(4n+2) .variation-buttons-wrap { --as-var-accent: #2d3444; --as-var-shadow: rgba(45,52,68,.3); }
.variations tr:nth-child(4n+3) .variation-buttons-wrap { --as-var-accent: #0d7c66; --as-var-shadow: rgba(13,124,102,.3); }
.variations tr:nth-child(4n)   .variation-buttons-wrap { --as-var-accent: #6d28d9; --as-var-shadow: rgba(109,40,217,.3); }

.variation-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.variation-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem .85rem; min-height: 42px;
    background: #fff; border: 2px solid var(--as-border); border-radius: 10px;
    font-size: .95rem; font-weight: 600; color: var(--as-secondary);
    cursor: pointer; transition: all .15s;
    font-family: inherit;
}
.variation-btn:hover { border-color: var(--as-var-accent); color: var(--as-var-accent); }
.variation-btn.is-selected {
    border-color: var(--as-var-accent); background: var(--as-var-accent); color: #fff;
    box-shadow: 0 2px 8px var(--as-var-shadow);
}
.variation-btn-img {
    width: 28px; height: 28px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0; background: var(--as-light-bg);
}
.variation-btn-img--placeholder {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; line-height: 1; color: var(--as-gray);
}
.variation-btn.is-selected .variation-btn-img { box-shadow: 0 0 0 2px #fff; }
.variation-btn.is-selected .variation-btn-img--placeholder { background: rgba(255,255,255,.2); color: #fff; }

.product-variations-wrap .reset_variations {
    font-size: .85rem; color: var(--as-primary) !important;
    text-decoration: underline; display: inline-block; margin-top: .25rem;
}
.product-variations-wrap .single_variation_wrap { margin-top: .5rem; }
.product-variations-wrap .woocommerce-variation-price { margin-bottom: .6rem; }
.product-variations-wrap .woocommerce-variation-price .price {
    font-size: 2rem !important; font-weight: 900; color: var(--as-primary) !important;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
}
.product-variations-wrap .woocommerce-variation-price .price ins {
    text-decoration: none; font-weight: 900; color: var(--as-primary); order: 1;
}
.product-variations-wrap .woocommerce-variation-price .price del {
    text-decoration: line-through; color: var(--as-text-muted);
    font-size: 1.1rem !important; font-weight: 500; opacity: .65; order: 2;
}
.product-variations-wrap .woocommerce-variation-price .price del .woocommerce-Price-amount { font-size: 1.1rem; }
.product-variations-wrap .woocommerce-variation-availability { margin-bottom: .6rem; font-weight: 600; }
.product-variations-wrap .woocommerce-variation-add-to-cart {
    display: flex !important; align-items: stretch; gap: .75rem; margin-bottom: .9rem;
}
/* Количество в форме вариаций */
.product-variations-wrap .woocommerce-variation-add-to-cart .quantity {
    display: flex; align-items: center; border: 2px solid var(--as-border);
    border-radius: 10px; overflow: hidden; background: #fff;
}
.product-variations-wrap .woocommerce-variation-add-to-cart .qty {
    width: 52px; text-align: center; border: none !important;
    padding: .5rem .25rem; font-size: 1rem; font-weight: 700;
    font-family: inherit; color: var(--as-secondary); background: transparent;
    -moz-appearance: textfield;
}
.product-variations-wrap .woocommerce-variation-add-to-cart .qty::-webkit-inner-spin-button,
.product-variations-wrap .woocommerce-variation-add-to-cart .qty::-webkit-outer-spin-button { display: none; }
/* Кнопка добавить */
.product-variations-wrap .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.product-variations-wrap .woocommerce-variation-add-to-cart button.single_add_to_cart_button {
    flex: 1; background: var(--as-primary) !important; color: #fff !important;
    border: none !important; border-radius: 10px !important;
    font-size: 1rem !important; font-weight: 700 !important;
    padding: .6rem 1.25rem !important; cursor: pointer;
    transition: var(--as-transition); font-family: inherit !important;
    box-shadow: none !important;
}
.product-variations-wrap .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
    background: #d14d17 !important;
}
.product-variations-wrap .woocommerce-variation-add-to-cart .single_add_to_cart_button.disabled,
.product-variations-wrap .woocommerce-variation-add-to-cart .single_add_to_cart_button:disabled {
    opacity: .45 !important; cursor: not-allowed !important;
}

/* guarantees strip */
.product-guarantees {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .55rem; margin-top: 1.25rem;
    padding: 1rem 1.1rem; background: var(--as-light-bg);
    border: 1px solid var(--as-border); border-radius: 12px;
}
.product-guarantee-item { display: flex; align-items: center; gap: .5rem; font-size: .83rem; font-weight: 600; color: var(--as-secondary); }
.product-guarantee-item .bi { color: var(--as-primary); font-size: 1.05rem; flex-shrink: 0; }
.product-tabs .nav-tabs { border-bottom: 2px solid var(--as-border); }
.product-tabs .nav-link { color: var(--as-text-muted); font-weight: 600; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 0.6rem 1.2rem; }
.product-tabs .nav-link.active { color: var(--as-primary); border-bottom-color: var(--as-primary); }
.product-tabs .tab-content { padding: 1.5rem 0; }

/* === PARTNER CARDS PAGE === */
.partner-card-full {
    background: #fff; border: 1px solid var(--as-border);
    border-radius: var(--as-radius); padding: 2rem; text-align: center;
    transition: var(--as-transition); height: 100%;
}
.partner-card-full:hover { box-shadow: var(--as-shadow-hover); border-color: var(--as-primary); transform: translateY(-3px); }
.partner-card-full img { max-height: 80px; max-width: 180px; object-fit: contain; margin-bottom: 1rem; filter: grayscale(30%); transition: var(--as-transition); }
.partner-card-full:hover img { filter: grayscale(0); }
.partner-card-full h5 { font-weight: 700; color: var(--as-secondary); margin-bottom: 0.5rem; }
.partner-card-full p { font-size: 1rem; color: var(--as-text-muted); margin: 0; }
.partner-benefits { background: var(--as-secondary); color: #fff; border-radius: var(--as-radius); padding: 2.5rem; }
.partner-benefits h3 { font-weight: 700; margin-bottom: 1.5rem; }
.partner-benefit-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.partner-benefit-item .ben-icon { font-size: 1.5rem; color: var(--as-primary); flex-shrink: 0; }

/* === SIDEBAR === */
.sidebar-widget { background: #fff; border: 1px solid var(--as-border); border-radius: var(--as-radius); padding: 1.4rem; margin-bottom: 1.5rem; }
.sidebar-widget-title { font-weight: 700; font-size: 1rem; color: var(--as-secondary); margin-bottom: 1.1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--as-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.recent-post-item { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; align-items: flex-start; }
.recent-post-item img { width: 60px; height: 55px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.recent-post-item .rp-title { font-size: 1rem; font-weight: 600; color: var(--as-secondary); text-decoration: none; line-height: 1.3; display: block; }
.recent-post-item .rp-title:hover { color: var(--as-primary); }
.recent-post-item .rp-date { font-size: 1rem; color: var(--as-text-muted); }
.tag-cloud a {
    display: inline-block; padding: 4px 12px; margin: 3px;
    background: var(--as-light-bg); border: 1px solid var(--as-border);
    border-radius: 20px; font-size: 1rem; color: var(--as-text); text-decoration: none;
    transition: var(--as-transition);
}
.tag-cloud a:hover { background: var(--as-primary); color: #fff; border-color: var(--as-primary); }

/* === PAGINATION === */
.pagination .page-link { color: var(--as-secondary); border-color: var(--as-border); border-radius: 8px !important; margin: 0 2px; transition: var(--as-transition); }
.pagination .page-link:hover,
.pagination .page-item.active .page-link { background-color: var(--as-primary); border-color: var(--as-primary); color: #fff; }

/* === CART === */
.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal { white-space: nowrap; }

/* === CHECKOUT — full width, no sidebar columns === */
.woocommerce-checkout .col2-set {
    float: none !important; width: 100% !important; display: block !important;
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    float: none !important; width: 100% !important; padding: 0 !important;
}
.woocommerce-checkout .col2-set .col-2 { margin-top: 1.5rem; }
.woocommerce-checkout #order_review_heading { display: none !important; }
.woocommerce-checkout #order_review {
    float: none !important; width: 100% !important; padding: 0 !important; clear: both;
}

/* === 404 === */
.error-404-section { padding: 100px 0; text-align: center; }
.error-code { font-size: clamp(6rem, 15vw, 12rem); font-weight: 900; line-height: 1; color: var(--as-primary); opacity: 0.15; }
.error-title { font-size: 2rem; font-weight: 700; color: var(--as-secondary); margin-top: -2rem; }

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .hero-section { padding: 55px 0; }
    .section-padding { padding: 50px 0; }
    .site-nav { background: var(--as-secondary); padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 767.98px) {
    .hero-section { padding: 40px 0; text-align: center; }
    .hero-subtitle { margin: 0 auto 1.75rem; }
    .hero-stats { justify-content: center; gap: 1.5rem; }
    .section-title { font-size: 1.6rem; }
    .product-detail-title { font-size: 1.4rem; }
    .product-detail-price { font-size: 1.6rem; }
    .footer-bottom { text-align: center; }
    .cta-section h2 { font-size: 1.6rem; }
}
@media (max-width: 575.98px) {
    .topbar .d-flex { flex-wrap: wrap; gap: 0.35rem; }
    .shop-toolbar { flex-direction: column; align-items: flex-start; }
    .hero-title { font-size: 1.8rem; }
}

/* =====================================================
   AVTOSTART 2026 — Дополнительные стили
   ===================================================== */

/* ── LOGO ─────────────────────────────────────────────── */
a.custom-logo-link {
    display: flex; align-items: center;
    margin-right: 1.5rem; flex-shrink: 0;
}
img.custom-logo { max-width: 200px; height: auto; display: block; }
@media (max-width: 991.98px) {
    a.custom-logo-link { margin-right: .5rem; }
}

/* ── MEGA MENU ────────────────────────────────────────── */
.mega-menu-wrap { position: static; }
.site-header .navbar { position: relative; }
.site-nav { position: static; }

/* Кнопка-триггер «Каталог» — выделенная */
.mega-catalog-btn {
    background: var(--as-primary) !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: .5rem 1.1rem !important;
    font-weight: 700 !important;
    font-size: .95rem !important;
    margin-right: .5rem;
    display: flex !important;
    align-items: center;
    transition: background .2s !important;
    position: relative; /* нужно для псевдомоста */
}
.mega-catalog-btn:hover,
.mega-catalog-btn.active {
    background: var(--as-primary-dark) !important;
    color: #fff !important;
}
.mega-catalog-btn .mega-chevron {
    font-size: .65rem; transition: transform .25s;
}
.mega-menu-wrap:hover .mega-chevron,
.mega-menu-wrap.open .mega-chevron { transform: rotate(180deg); }

/* Само мегаменю */
.mega-menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-top: 3px solid var(--as-primary);
    box-shadow: 0 16px 48px rgba(0,0,0,.15);
    z-index: 1040;
    border-radius: 0 0 12px 12px;
    /* Псевдо-мост: меню появляется чуть выше, чтобы курсор не попадал в зазор */
    margin-top: -1px;
}

@media (min-width: 992px) {
    /* Расширяем зону hover вниз на кнопке — закрываем зазор невидимым псевдоэлементом */
    .mega-menu-wrap > .mega-catalog-btn::after {
        content: '';
        position: absolute;
        bottom: -12px; left: 0; right: 0;
        height: 12px;
    }
    .mega-menu-wrap:hover .mega-menu,
    .mega-menu-wrap:focus-within .mega-menu { display: block; }
}

/* Мобиль — статичный коллапс */
.mega-menu-wrap.open .mega-menu {
    display: block; position: static;
    border-top: none; box-shadow: none;
    background: rgba(255,255,255,.05);
    border-radius: 0; margin: 0 -1rem; padding: 0 1rem;
}

.mega-menu-inner {
    padding: 1.25rem 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3 колонки, горизонтальные пункты */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    margin-bottom: 1.1rem;
}

/* Горизонтальный пункт: картинка слева + название справа */
.mega-cat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .65rem;
    padding: .6rem .85rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--as-secondary);
    transition: background .18s, color .18s, border-color .18s;
    border: 1px solid var(--as-border);
    background: var(--as-light-bg);
}
.mega-cat-item:hover {
    background: #fff4f0;
    border-color: rgba(240,95,35,.25);
    color: var(--as-primary);
}
.mega-cat-img {
    width: 48px; height: 48px;
    border-radius: 6px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    transition: background .18s;
}
.mega-cat-item:hover .mega-cat-img { background: rgba(240,95,35,.07); }
.mega-cat-img img { width: 48px; height: 48px; object-fit: contain; }
.mega-cat-icon { font-size: 1.4rem; line-height: 1; }
.mega-cat-name {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.mega-menu-footer {
    border-top: 1px solid var(--as-border);
    padding-top: .9rem;
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
}

/* Мобильное мегаменю */
@media (max-width: 991.98px) {
    .mega-catalog-btn { border-radius: 0 !important; margin-right: 0; }
    .mega-menu-inner { padding: .75rem 0; }
    .mega-menu-grid { grid-template-columns: 1fr 1fr; gap: .3rem; }
    .mega-cat-img { width: 38px; height: 38px; }
    .mega-cat-img img { width: 38px; height: 38px; }
    .mega-cat-name { font-size: .8rem; }
    .mega-menu-footer { display: none; }
}

/* SearchWP форма в топбаре */
.topbar-search-wrap .searchwp-form,
.topbar-search-wrap form {
    display: flex; align-items: center; gap: 6px;
}
.topbar-search-wrap .swp-input--search,
.topbar-search-wrap .swp-input,
.topbar-search-wrap input[type="search"] {
    background: rgba(255,255,255,.1) !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    color: #fff !important; border-radius: 8px !important;
    padding: .35rem .75rem !important;
    min-width: 180px; max-width: 220px;
    font-size: .9rem;
}
.topbar-search-wrap .swp-input--search::placeholder { color: rgba(255,255,255,.75); }
.topbar-search-wrap .swp-input--search:focus {
    border-color: var(--as-primary) !important;
    background: rgba(255,255,255,.14) !important;
    box-shadow: 0 0 0 2px rgba(240,95,35,.25) !important;
    outline: none;
}
.topbar-search-wrap .search-submit,
.topbar-search-wrap .swp-button {
    background: var(--as-primary) !important; border: none !important; color: #fff !important;
    border-radius: 8px !important; padding: .35rem .9rem !important;
    cursor: pointer; font-weight: 600;
}
.topbar-search-wrap .swp-voice-search-button {
    color: rgba(255,255,255,.7); background: none; border: none;
    cursor: pointer; font-size: 1rem; padding: 0 2px;
}
.topbar-search-wrap .swp-flex--row { display: flex; align-items: center; gap: 6px; }
.topbar-search-wrap .swp-flex--col,
.topbar-search-wrap .swp-flex--wrap { display: flex; }
.topbar-search-wrap .searchwp-form-input-container { display: flex; align-items: center; }
@media (max-width: 1199px) {
    .topbar-search-wrap .swp-input--search { min-width: 140px; }
}

/* SearchWP в поиск-модале (мобильный) */
.modal-search-form .searchwp-form { display: block; }
.modal-search-form .swp-flex--row { display: flex; align-items: center; gap: 8px; }
.modal-search-form .swp-flex--col { display: flex; flex-direction: column; gap: 8px; }
.modal-search-form .swp-input--search,
.modal-search-form input[type="search"] {
    background: rgba(255,255,255,.95) !important; color: var(--as-secondary) !important;
    border: none !important; border-radius: 10px !important;
    font-size: 1rem; padding: .65rem 1rem !important;
    flex: 1; width: 100%;
}
.modal-search-form .search-submit,
.modal-search-form .swp-button {
    background: var(--as-primary) !important; border: none !important; color: #fff !important;
    border-radius: 10px !important; padding: .65rem 1.2rem !important;
    font-weight: 700; font-size: 1rem; white-space: nowrap;
}
.modal-search-form .swp-voice-search-button {
    color: rgba(255,255,255,.8); background: none; border: none;
    cursor: pointer; font-size: 1.4rem; flex-shrink: 0;
}
.modal-search-form .searchwp-form-input-container { display: flex; align-items: center; flex: 1; }

/* Старый поиск в шапке (fallback) */
.header-search-input {
    min-width: 150px; max-width: 200px;
    border-color: rgba(255,255,255,.2) !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important; border-radius: 8px !important;
}
.header-search-input::placeholder { color: rgba(255,255,255,.75); }
@media (max-width: 1199px) {
    .header-search-input { max-width: 140px; }
}

/* ── MOBILE SIDEBAR (КАТАЛОГ) ───────────────────────── */
@media (max-width: 991.98px) {
    #shop-sidebar {
        display: none;
        margin-bottom: 1rem;
        border: 1px solid var(--as-border);
        border-radius: var(--as-radius);
        padding: 1rem;
        background: #fff;
    }
    #shop-sidebar.sidebar-open {
        display: block;
    }
}
@media (min-width: 992px) {
    /* Всегда показываем на десктопе */
    #shop-sidebar { display: block !important; }
    #filter-toggle { display: none !important; }
}

/* ── MOBILE PADDING ─────────────────────────────────── */
@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero-slider .slide-content { padding: 36px 0; }
    .product-card .prod-body { padding: 0.75rem; }
    .product-card .prod-title { font-size: 1rem; }
    .product-card .prod-price,
    .product-card .prod-price ins { font-size: 1.2rem; font-weight: 900; }
    .product-card .prod-price del,
    .product-card .prod-price-old { font-size: .82rem; }
    .woocommerce-Price-amount { font-size: 1.05rem; }
    .product-detail-price,
    .product-detail-price ins { font-size: 1.9rem; }
    .product-detail-price del,
    .product-detail-price .price-old { font-size: .95rem; }
    .prod-actions { gap: 0.35rem; flex-wrap: nowrap; }
    .btn-add-cart { font-size: .85rem; padding: .45rem .5rem; }
    .section-padding { padding: 36px 0; }
    .page-hero { padding: 30px 0; }
    .page-hero h1 { font-size: 1.5rem; }
    .section-title { font-size: 1.45rem; }
    .contact-info-card { padding: 1rem; }
    .contact-icon-wrap { width: 52px; height: 52px; font-size: 1.3rem; }
}
@media (max-width: 767.98px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ── BREADCRUMB PADDING ─────────────────────────────── */
.breadcrumb-section { padding: 8px 0; }

/* ── ПРАЙС-ЛИСТ КНОПКА В ШАПКЕ ─────────────────────── */
@media (max-width: 1399.98px) {
    .header-pricelist-label { display: none; }
}

/* ── ТОПБАР ПРАЙС ───────────────────────────────────── */
.topbar a.pricelist-link {
    background: rgba(255,255,255,.15);
    border-radius: 4px;
    padding: 2px 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.topbar a.pricelist-link:hover { background: rgba(255,255,255,.25); }

/* ── HERO SLIDER ──────────────────────────────────────── */
.hero-slider { position: relative; overflow: hidden; background: var(--as-secondary); }
.hero-slider .carousel-item { min-height: 560px; display: flex; align-items: center; }
.hero-slider .carousel-item.has-video { background: #000; }
.hero-slider .slide-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-slider .slide-bg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,10,20,0.78) 0%, rgba(10,10,20,0.3) 100%);
}
.hero-slider video.slide-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .45;
}
.hero-slider .slide-content { position: relative; z-index: 2; padding: 80px 0; }
.hero-slider .slide-label {
    display: inline-block; background: var(--as-primary);
    color: #fff; padding: 4px 14px; border-radius: 4px; font-size: .8rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.hero-slider .slide-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 1rem;
}
.hero-slider .slide-title span { color: var(--as-primary); }
.hero-slider .slide-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 1.75rem; max-width: 520px; }
.hero-slider .slide-certs { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-slider .cert-badge {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px); color: #fff; padding: 6px 14px; border-radius: 6px;
    font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: .45rem;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 50px; height: 50px; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border-radius: 50%;
    backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.2);
    margin: 0 1rem; transition: var(--as-transition);
}
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { background: var(--as-primary); }
.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.5); border: none; margin: 0 4px;
    transition: var(--as-transition);
}
.hero-slider .carousel-indicators .active { background: var(--as-primary); transform: scale(1.2); }

/* ── PARTNER FORM MODAL ─────────────────────────────── */
#partnerModal .modal-header {
    background: var(--as-secondary); color: #fff;
}
#partnerModal .modal-header .btn-close { filter: brightness(0) invert(1); }
#partnerModal .modal-footer { background: var(--as-light-bg); }
.partner-form-tabs .nav-link {
    color: var(--as-text-muted); font-weight: 600; border: 2px solid var(--as-border);
    border-radius: 8px; padding: .5rem 1.25rem; margin-right: .5rem; transition: var(--as-transition);
}
.partner-form-tabs .nav-link.active {
    background: var(--as-primary); color: #fff; border-color: var(--as-primary);
}

/* ── ABOUT BRAND (AVS) ──────────────────────────────── */
.brand-section { background: var(--as-secondary); color: #fff; }
.brand-carousel-wrap { position: relative; }
.brand-carousel-wrap .carousel-item img { border-radius: var(--as-radius); width: 100%; height: 340px; object-fit: cover; }
.brand-logo-box { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.brand-logo-box img { max-height: 90px; filter: brightness(0) invert(1); }
.brand-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.brand-stat { text-align: center; }
.brand-stat .num { display: block; font-size: 2rem; font-weight: 800; color: var(--as-primary); line-height: 1; }
.brand-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.85); margin-top: 4px; display: block; }

/* ── PARTNER LOGOS CAROUSEL ─────────────────────────── */
.partners-carousel { position: relative; overflow: hidden; }
.partners-track { display: flex; gap: 1.5rem; animation: scrollLogos 30s linear infinite; width: max-content; }
.partners-carousel:hover .partners-track { animation-play-state: paused; }
.partners-track .p-logo {
    flex-shrink: 0; height: 80px; width: 160px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--as-border); border-radius: var(--as-radius);
    padding: 1rem; filter: grayscale(70%); opacity: .7; transition: var(--as-transition);
}
.partners-track .p-logo:hover { filter: grayscale(0); opacity: 1; border-color: var(--as-primary); }
.partners-track .p-logo img { max-height: 50px; max-width: 130px; object-fit: contain; }
.partners-track .p-logo-placeholder { font-size: .85rem; font-weight: 700; color: var(--as-text-muted); text-align: center; }
@keyframes scrollLogos {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── CTA PARTNER SECTION ────────────────────────────── */
.cta-partner {
    background: linear-gradient(135deg, #1a1f2e 0%, #111827 100%);
    border-top: 4px solid var(--as-primary);
    color: #fff; padding: 70px 0;
    position: relative;
}
.cta-partner h2 { font-weight: 800; font-size: 2rem; }
.cta-partner p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.cta-partner .btn-light {
    background: #fff; color: var(--as-secondary); font-weight: 700;
    padding: .7rem 2rem; border-radius: var(--as-radius); border: none;
    transition: var(--as-transition);
}
.cta-partner .btn-light:hover { background: var(--as-primary); color: #fff; }

/* ── NEWS / BLOG ────────────────────────────────────── */
.news-label {
    display: inline-block; padding: 3px 10px; border-radius: 4px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: .5rem;
}
.label-important { background: #ef4444; color: #fff; }
.label-promo      { background: var(--as-primary); color: #fff; }
.label-new        { background: #10b981; color: #fff; }
.label-sale       { background: var(--as-primary); color: #fff; }
.label-clearance  { background: #8b5cf6; color: #fff; }

/* ── ACCOUNT / MY ORDERS ────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 1.5rem; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--as-border);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex; align-items: center; gap: .6rem;
    padding: .75rem 1rem; color: var(--as-text); text-decoration: none;
    font-weight: 500; transition: var(--as-transition);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    color: var(--as-primary); background: rgba(230,60,0,.06);
}

/* ── ORDER STATUS BADGES ─────────────────────────────── */
.woocommerce-order-status { padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.woocommerce-order-status.status-pending    { background: #fef3c7; color: #92400e; }
.woocommerce-order-status.status-processing { background: #dbeafe; color: #1e40af; }
.woocommerce-order-status.status-on-hold    { background: #f3e8ff; color: #6b21a8; }
.woocommerce-order-status.status-completed  { background: #d1fae5; color: #065f46; }
.woocommerce-order-status.status-cancelled,
.woocommerce-order-status.status-refunded   { background: #fee2e2; color: #991b1b; }

/* ── THANK-YOU PAGE — WhatsApp CTA ────────────────── */
.thankyou-wa-hero {
    margin: 2rem 0; padding: 2.5rem 1.5rem; text-align: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac; border-radius: 16px;
    position: relative; overflow: hidden;
}
.thankyou-wa-hero::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(37,211,102,.1);
}
.thankyou-wa-hero::after {
    content: ''; position: absolute; bottom: -30px; left: -30px;
    width: 90px; height: 90px; border-radius: 50%;
    background: rgba(37,211,102,.08);
}
.thankyou-wa-icon { margin-bottom: 1rem; position: relative; z-index: 1; }
.thankyou-wa-title {
    font-size: 1.5rem; font-weight: 800; color: #14532d;
    margin-bottom: .5rem; position: relative; z-index: 1;
}
.thankyou-wa-text {
    font-size: 1.05rem; color: #374151; margin-bottom: 1.5rem;
    max-width: 420px; margin-left: auto; margin-right: auto;
    position: relative; z-index: 1;
}
.thankyou-wa-btn {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: 1rem 2.5rem; font-size: 1.15rem; font-weight: 700;
    color: #fff; background: #25D366; border-radius: 60px;
    text-decoration: none; position: relative; z-index: 1;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: transform .2s, box-shadow .2s;
}
.thankyou-wa-btn:hover, .thankyou-wa-btn:focus {
    color: #fff; background: #20bd5a; transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(37,211,102,.5);
}
.thankyou-wa-btn:active { transform: translateY(0); }
.thankyou-wa-btn svg { flex-shrink: 0; }
.thankyou-wa-hint {
    font-size: .82rem; color: #6b7280; margin-top: .75rem; margin-bottom: 0;
    position: relative; z-index: 1;
}
@media (max-width: 575px) {
    .thankyou-wa-hero { padding: 2rem 1rem; }
    .thankyou-wa-btn { padding: .9rem 1.5rem; font-size: 1rem; }
}

/* ── CATALOG BANNER STRIP ───────────────────────────── */
.catalog-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.catalog-banner {
    border-radius: var(--as-radius); overflow: hidden; position: relative; min-height: 130px;
    display: flex; align-items: center; padding: 1.5rem;
    background: linear-gradient(135deg, var(--as-secondary), #374151);
}
.catalog-banner .banner-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3;
}
.catalog-banner .banner-text { position: relative; color: #fff; }
.catalog-banner .banner-text h4 { font-weight: 800; font-size: 1.1rem; margin-bottom: .25rem; }
.catalog-banner .banner-text p  { font-size: .85rem; opacity: .8; margin: 0; }
@media (max-width: 575px) { .catalog-banners { grid-template-columns: 1fr; } }

/* ── CART QUANTITY ──────────────────────────────────── */
.woocommerce .quantity .qty {
    border: 1px solid var(--as-border); border-radius: 6px; padding: .45rem .75rem;
    font-weight: 700; text-align: center; width: 80px;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: var(--as-primary) !important; border-color: var(--as-primary) !important;
    font-weight: 700; border-radius: var(--as-radius) !important; padding: .75rem 2rem !important;
    font-size: 1rem !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--as-primary-dark) !important; border-color: var(--as-primary-dark) !important;
}

/* ── SEARCH RESULTS PAGE ─────────────────────────────── */
.search-result-item { padding: 1.25rem 0; border-bottom: 1px solid var(--as-border); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.search-result-item h3 a { color: var(--as-secondary); text-decoration: none; }
.search-result-item h3 a:hover { color: var(--as-primary); }
.search-result-item .excerpt { font-size: .9rem; color: var(--as-text-muted); margin: 0; }

/* ── WOO NOTICES ─────────────────────────────────────── */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: 12px !important;
    padding: .9rem 1.25rem !important;
    margin-bottom: 1.25rem !important;
    display: flex !important; align-items: center !important; gap: .75rem !important;
    font-weight: 600 !important; font-size: .92rem !important;
    border-left-width: 4px !important;
    list-style: none !important;
}
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    flex-shrink: 0 !important;
    margin: 0 !important;
    position: static !important;
    float: none !important;
}
.woocommerce-message {
    background: #f0fdf4 !important; border-color: #22c55e !important; color: #166534 !important;
}
.woocommerce-error {
    background: #fff1f2 !important; border-color: #f43f5e !important; color: #9f1239 !important;
}
.woocommerce-info {
    background: #eff6ff !important; border-color: #3b82f6 !important; color: #1e40af !important;
}
.woocommerce-message a.button,
.woocommerce-info a.button {
    margin-left: auto; flex-shrink: 0;
    background: var(--as-primary) !important; color: #fff !important; border: none !important;
    padding: .35rem 1rem !important; border-radius: 8px !important; font-size: .85rem !important;
    text-decoration: none !important;
}

/* ── FAQ PAGE ────────────────────────────────────────── */
.faq-item {
    border: 1px solid var(--as-border); border-radius: var(--as-radius);
    padding: 1.5rem; margin-bottom: 1rem; background: #fff;
    transition: var(--as-transition);
}
.faq-item:hover { border-color: var(--as-primary); box-shadow: var(--as-shadow); }
.faq-item h3 { font-size: 1rem; font-weight: 700; color: var(--as-secondary); margin-bottom: .6rem; }
.faq-item p  { font-size: .93rem; color: var(--as-text-muted); margin: 0; line-height: 1.7; }

/* ── FLOATING BUTTONS (WhatsApp + Back to Top) ─────────── */
.floating-btns {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.floating-btn {
    width: 44px; height: 44px; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; text-decoration: none; cursor: pointer;
    transition: var(--as-transition);
}
.floating-wa {
    background: #25d366; color: #fff;
    box-shadow: 0 4px 15px rgba(37,211,102,.4);
}
.floating-wa:hover { background: #1ebe5d; color: #fff; transform: translateY(-2px); }
#back-to-top {
    background: var(--as-primary); color: #fff;
    box-shadow: 0 4px 15px rgba(230,60,0,.4);
    opacity: 0; pointer-events: none;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--as-primary-dark); transform: translateY(-2px); }

/* ── ADD-TO-CART POPUP ───────────────────────────────────── */
#as-cart-notice {
    position: fixed; bottom: 28px; right: 28px; z-index: 9998;
    background: #fff; border-radius: 18px;
    box-shadow: 0 12px 48px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.06);
    width: 340px; max-width: calc(100vw - 32px);
    transform: translateX(calc(100% + 40px));
    transition: transform .42s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden; border-left: 4px solid #22c55e;
    pointer-events: none; opacity: 0;
}
#as-cart-notice.as-cn-show {
    transform: translateX(0);
    pointer-events: auto; opacity: 1;
}
.as-cn-inner {
    display: flex; align-items: flex-start; gap: .9rem;
    padding: 1.2rem 1.1rem 1rem 1.25rem;
}
.as-cn-check { color: #22c55e; font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.as-cn-body  { flex: 1; min-width: 0; }
.as-cn-title { font-weight: 700; font-size: .93rem; color: #166534; margin-bottom: .2rem; }
.as-cn-name  {
    font-size: .83rem; color: #374151; margin-bottom: .8rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.1em;
}
.as-cn-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.as-cn-btn-cart {
    background: var(--as-primary); color: #fff !important; text-decoration: none !important;
    padding: .42rem 1rem; border-radius: 9px; font-weight: 700; font-size: .82rem;
    display: inline-flex; align-items: center; gap: .35rem; transition: background .2s;
    white-space: nowrap;
}
.as-cn-btn-cart:hover { background: var(--as-primary-dark); }
.as-cn-btn-continue {
    background: none; border: 1px solid var(--as-border); color: var(--as-text-muted);
    padding: .38rem .85rem; border-radius: 9px; font-size: .82rem; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.as-cn-btn-continue:hover { border-color: var(--as-primary); color: var(--as-primary); }
.as-cn-x {
    background: none; border: none; color: #9ca3af; font-size: .9rem;
    line-height: 1; cursor: pointer; padding: 2px; flex-shrink: 0;
    align-self: flex-start; transition: color .2s;
}
.as-cn-x:hover { color: #374151; }
.as-cn-bar { height: 3px; background: #22c55e; width: 100%; }

/* ── CART PAGE — MODERN ──────────────────────────────────── */
.woocommerce-cart-form__contents tbody tr:hover td { background: rgba(230,60,0,.03); }
.woocommerce-cart-form__contents .product-quantity .qty {
    border: 1.5px solid var(--as-border); border-radius: 8px;
    padding: .35rem .6rem; font-weight: 700; text-align: center; width: 72px;
    transition: border-color .2s;
}
.woocommerce-cart-form__contents .product-quantity .qty:focus {
    outline: none; border-color: var(--as-primary);
}
.cart_totals { background: var(--as-light-bg); border-radius: var(--as-radius); padding: 1.5rem; }
.cart_totals h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; color: var(--as-secondary); }
.cart_totals .shop_table { background: transparent; margin-bottom: 1.25rem; }
.cart_totals .shop_table th,
.cart_totals .shop_table td { padding: .5rem 0; border-top: 1px solid var(--as-border); }
.cart_totals .shop_table .order-total td strong { font-size: 1.2rem; color: var(--as-primary); }

/* ── CHECKOUT PAGE — MODERN ──────────────────────────────── */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    background: #fff; border-radius: var(--as-radius);
    border: 1px solid var(--as-border); padding: 1.75rem; margin-bottom: 1.5rem;
}
.woocommerce-checkout h3 {
    font-size: 1.15rem; font-weight: 800; color: var(--as-secondary);
    border-left: 4px solid var(--as-primary); padding-left: .75rem;
    margin-bottom: 1.25rem;
}
.woocommerce-checkout .form-row label { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
    border: 2px solid #d1d5db; border-radius: 12px;
    padding: .75rem 1rem; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
    background: #fafafa; width: 100%;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none; border-color: var(--as-primary); background: #fff;
    box-shadow: 0 0 0 4px rgba(230,60,0,.1);
}
.woocommerce-checkout .form-row textarea { min-height: 80px; }
/* Метод оплаты — карточки */
.woocommerce-checkout #payment {
    background: var(--as-light-bg); border-radius: var(--as-radius);
    border: 1px solid var(--as-border); overflow: hidden;
}
.woocommerce-checkout #payment ul.payment_methods { padding: 1.25rem; margin: 0; list-style: none; }
.woocommerce-checkout #payment ul.payment_methods li {
    background: #fff; border: 2px solid var(--as-border); border-radius: 10px;
    padding: .9rem 1rem; margin-bottom: .75rem; cursor: pointer; transition: border-color .2s;
}
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
    border-color: var(--as-primary);
}
.woocommerce-checkout #payment ul.payment_methods li label {
    cursor: pointer; font-weight: 600; display: block; margin: 0;
}
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] { cursor: pointer; }
.woocommerce-checkout #payment .payment_box {
    background: rgba(230,60,0,.04); border-radius: 8px;
    padding: .75rem 1rem; margin-top: .5rem; font-size: .88rem; color: var(--as-text-muted);
}
.woocommerce-checkout #payment .place-order { padding: 1.25rem; background: #fff; }
.woocommerce-checkout #place_order {
    width: 100%; font-size: 1.1rem !important; font-weight: 800 !important;
    padding: .9rem !important; border-radius: var(--as-radius) !important;
    background: var(--as-primary) !important; border-color: var(--as-primary) !important;
    letter-spacing: .02em; transition: background .2s, transform .15s !important;
}
.woocommerce-checkout #place_order:hover {
    background: var(--as-primary-dark) !important;
    border-color: var(--as-primary-dark) !important; transform: translateY(-1px);
}
/* Таблица обзора заказа */
.woocommerce-checkout-review-order-table thead { background: var(--as-light-bg); }
.woocommerce-checkout-review-order-table tfoot .order-total td strong {
    font-size: 1.15rem; color: var(--as-primary);
}

/* ── HTML Sitemap ──────────────────────────────────── */
.html-sitemap { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 1.5rem; }
.sitemap-section {
    background: var(--as-light-bg); border-radius: 12px; padding: 1.5rem 1.75rem;
    border: 1px solid var(--as-border);
}
.sitemap-h2 {
    font-size: 1.5rem; font-weight: 800; color: var(--as-secondary);
    margin: 0 0 1.25rem 0; padding-bottom: .65rem;
    border-bottom: 2px solid var(--as-primary);
    display: flex; align-items: center;
}
.sitemap-h2 i { color: var(--as-primary); }
.sitemap-h3 {
    font-size: 1.15rem; font-weight: 700; color: var(--as-secondary);
    margin: 1.25rem 0 .65rem 0;
}
.sitemap-h3 a { color: var(--as-secondary); text-decoration: none; }
.sitemap-h3 a:hover { color: var(--as-primary); }
.sitemap-h4 {
    font-size: .98rem; font-weight: 600; color: var(--as-text);
    margin: .85rem 0 .35rem 0;
}
.sitemap-h4 a { color: var(--as-text); text-decoration: none; }
.sitemap-h4 a:hover { color: var(--as-primary); }
.sitemap-cat-block { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--as-border); }
.sitemap-cat-block:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.sitemap-subcat-block { margin-left: 1.25rem; margin-bottom: 1rem; }
.sitemap-list { list-style: none; padding: 0; margin: 0; }
.sitemap-list li { padding: .15rem 0; font-size: .92rem; line-height: 1.5; }
.sitemap-list a {
    color: var(--as-text); text-decoration: none;
    border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.sitemap-list a:hover { color: var(--as-primary); border-bottom-color: var(--as-primary); }
.sitemap-list--cols { columns: 2; column-gap: 2rem; }
@media (min-width: 768px)  { .sitemap-list--cols { columns: 3; } }
@media (min-width: 1200px) { .sitemap-list--cols { columns: 4; } }
.sitemap-list--cols li { break-inside: avoid; }
.sitemap-cat-tree > li { font-weight: 600; }
.sitemap-cat-tree__sub { padding-left: 1.25rem; margin-top: .15rem; border-left: 2px solid var(--as-border); }
.sitemap-cat-tree__sub li { font-weight: 400; }

/* ── Pricelist Generator ───────────────────────────── */
.pricelist-login-form .form-control {
    padding: .65rem .85rem; border-radius: 10px;
    border: 2px solid var(--as-border);
}
.pricelist-login-form .form-control:focus {
    border-color: var(--as-primary); outline: 0; box-shadow: 0 0 0 3px rgba(230,60,0,.1);
}
.pricelist-config { padding-top: 2rem !important; }
.pl-fieldset {
    border: 2px solid var(--as-border); border-radius: 12px;
    padding: 1.25rem 1.5rem; margin-bottom: 1.25rem;
}
.pl-legend {
    font-size: 1.05rem; font-weight: 700; padding: 0 .5rem;
    color: var(--as-secondary); width: auto;
}
.pl-actions { display: flex; gap: .5rem; align-items: center; margin-bottom: .85rem; font-size: .88rem; }
.pl-link {
    background: none; border: none; color: var(--as-primary);
    cursor: pointer; padding: 0; font: inherit; text-decoration: underline;
}
.pl-link:hover { color: var(--as-primary-dark); }
.pl-cats-tree { display: flex; flex-direction: column; gap: .35rem; max-height: 380px; overflow-y: auto; }
.pl-cat-group { padding: .15rem 0; border-bottom: 1px solid var(--as-light-bg); }
.pl-cat-group:last-child { border-bottom: none; }
.pl-cat-row { display: flex; align-items: center; gap: .25rem; }
.pl-toggle {
    width: 24px; height: 24px; border: none; background: transparent;
    cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center;
    color: var(--as-text-muted); flex-shrink: 0;
    transition: transform .15s, color .15s;
}
.pl-toggle:hover { color: var(--as-primary); }
.pl-toggle--empty { cursor: default; }
.pl-cat-group:not(.pl-collapsed) .pl-toggle:not(.pl-toggle--empty) i { transform: rotate(90deg); }
.pl-toggle i { transition: transform .15s; }
.pl-cat-top {
    display: flex; align-items: center; gap: .55rem; cursor: pointer;
    padding: .25rem 0; font-size: .98rem; flex: 1; min-width: 0;
}
.pl-cat-top input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--as-primary); flex-shrink: 0; }
.pl-subcats { display: flex; flex-direction: column; gap: .15rem; padding-left: 2.6rem; margin-top: .25rem; padding-bottom: .35rem; }
.pl-cat-group.pl-collapsed .pl-subcats { display: none; }
.pl-cat-sub {
    display: flex; align-items: center; gap: .55rem; cursor: pointer;
    padding: .2rem 0; font-size: .9rem; color: var(--as-text);
}
.pl-cat-sub input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--as-primary); }
.pl-prices { display: flex; flex-wrap: wrap; gap: 1rem; }
.pl-check {
    display: flex; align-items: center; gap: .55rem; cursor: pointer;
    padding: .55rem 1rem; border: 2px solid var(--as-border); border-radius: 10px;
    font-weight: 600; transition: all .15s;
}
.pl-check input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--as-primary); }
.pl-check:has(input:checked) { border-color: var(--as-primary); background: rgba(230,60,0,.06); color: var(--as-primary); }

/* ── Yandex Map (checkout) ─────────────────────────── */
.ymap-checkout-wrap { margin-top: 1rem; }
#ymap-checkout-container {
    margin-top: .75rem; border: 2px solid var(--as-border); border-radius: 12px; overflow: hidden;
}
#ymap-checkout { width: 100%; height: 450px; position: relative; overflow: hidden; }
#ymap-checkout [class*="search"] { max-width: calc(100% - 20px) !important; }
.ymap-geoloc-btn {
    position: absolute; top: 72px; left: 50%; transform: translateX(-50%); z-index: 10;
    border: none; border-radius: 24px; padding: 10px 28px;
    background: var(--as-primary); color: #fff;
    box-shadow: 0 4px 12px rgba(230,60,0,.35);
    cursor: pointer; font-size: .85rem; font-weight: 700; letter-spacing: .02em;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
    transition: background .2s, box-shadow .2s, transform .15s;
}
.ymap-geoloc-btn:hover { background: #c53200; box-shadow: 0 6px 16px rgba(230,60,0,.4); transform: translateX(-50%) scale(1.03); }
.ymap-geoloc-btn:active { transform: translateX(-50%) scale(.97); }
.ymap-geoloc-btn svg { flex-shrink: 0; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Адрес — показать полный текст на мобильном */
.woocommerce-checkout #billing_address_1 { text-overflow: ellipsis; }
@media (max-width: 575.98px) {
    .woocommerce-checkout #billing_address_1 { font-size: .85rem; }
}
.ymap-hint {
    display: flex; align-items: center; justify-content: center;
    padding: .5rem; font-size: .82rem; color: var(--as-text-muted);
    background: var(--as-light-bg); border-top: 1px solid var(--as-border);
}

/* ── RESPONSIVE TWEAKS ────────────────────────────────── */
@media (max-width: 991px) {
    .hero-slider .slide-content { padding: 50px 0; }
    .hero-slider .container.slide-content { padding-left: 20px !important; padding-right: 20px !important; }
    .brand-carousel-wrap .carousel-item img { height: 240px; }
}
@media (max-width: 767px) {
    .hero-slider .slide-title { font-size: 1.8rem; }
    .hero-slider .carousel-item { min-height: 420px; }
    .brand-stats { justify-content: center; }
    .catalog-banners { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .hero-slider .container.slide-content { padding-left: 24px !important; padding-right: 24px !important; }
    .hero-slider .slide-title { font-size: 1.5rem !important; }
    .hero-slider .slide-subtitle { font-size: .88rem; }
    .hero-slider .slide-content { padding: 32px 0; }
}

/* ── PERFORMANCE: content-visibility для below-fold секций ── */
.partners-carousel,
.cta-partner,
.brand-section,
[aria-labelledby="news-heading"],
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}
