/*
Theme Name: Astra Child
Theme URI: https://a-kraski.ru
Description: Дочерняя тема Astra для a-kraski.ru — каталог красок и герметиков
Author: A-Kraski
Author URI: https://a-kraski.ru
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: astra-child
*/

/* ============================================
   CSS VARIABLES (дизайн-токены)
   ============================================ */
:root {
    --brand-red: #C41E2A;
    --brand-red-hover: #A01820;
    --brand-red-light: #FDE8E9;
    --dark-bg: #2B2B2B;
    --dark-card: #3A3A3A;
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-light: #E5E5E5;
    --bg-light: #F7F7F7;
    --white: #FFFFFF;
    --shadow-card: 0 2px 8px rgba(0,0,0,.06);
    --shadow-card-hover: 0 4px 16px rgba(0,0,0,.12);
    --radius: 4px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1200px;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--brand-red-hover); }

img { max-width: 100%; height: auto; }

.container, .site-content .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn, .button, .btn-primary,
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--brand-red);
    color: var(--white) !important;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none !important;
}
.btn:hover, .button:hover, .btn-primary:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
    background: var(--brand-red-hover);
    color: var(--white) !important;
}
.btn:active { transform: scale(.97); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-red);
    color: var(--brand-red) !important;
}
.btn-outline:hover {
    background: var(--brand-red);
    color: var(--white) !important;
}

/* ============================================
   HEADER — ROW 1 (TOP BAR, DARK)
   ============================================ */
.top-bar {
    background: var(--dark-bg);
    color: #CCC;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.top-bar a {
    color: #CCC;
    font-size: 13px;
}
.top-bar a:hover { color: var(--white); }

.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.top-bar-nav li { display: inline; }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.top-bar-hours { white-space: nowrap; }
.top-bar-city {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.top-bar-city::before { content: '📍'; font-size: 12px; }

/* ============================================
   HEADER — ROW 2 (MAIN, WHITE)
   ============================================ */
.main-header {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}
.site-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.site-logo-text {
    line-height: 1.2;
}
.site-logo-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.site-logo-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 200px;
}

/* Catalog button */
.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--brand-red);
    color: var(--white) !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    position: relative;
}
.catalog-btn:hover { background: var(--brand-red-hover); }
.catalog-btn .arrow { font-size: 10px; transition: transform .2s; }
.catalog-btn:hover .arrow { transform: translateY(2px); }

/* Mega dropdown */
.catalog-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    min-width: 560px;
    z-index: 9999;
    padding: 24px;
}
.catalog-btn:hover .catalog-dropdown,
.catalog-dropdown:hover { display: block; }

.catalog-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.catalog-dropdown-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-red);
}
.catalog-dropdown-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.catalog-dropdown-col li { margin-bottom: 6px; }
.catalog-dropdown-col a {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    padding: 3px 0;
}
.catalog-dropdown-col a:hover {
    color: var(--brand-red);
    padding-left: 4px;
}

/* Search */
.header-search {
    position: relative;
    flex: 1;
    max-width: 320px;
}
.header-search input[type="search"] {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg-light);
    outline: none;
    transition: border-color .2s;
}
.header-search input[type="search"]:focus {
    border-color: var(--brand-red);
    background: var(--white);
}
.header-search .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

/* Phone + Cart */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none !important;
}
.header-phone-label { font-size: 11px; color: var(--text-muted); }
.header-phone-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.header-phone-number:hover { color: var(--brand-red); }

.cart-icon {
    position: relative;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none !important;
}
.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--brand-red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   HEADER — ROW 3 (CATEGORY NAV)
   ============================================ */
.category-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
}
.category-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.category-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.category-nav-item { position: relative; }
.category-nav-item > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    transition: all .2s;
}
.category-nav-item > a:hover,
.category-nav-item.active > a {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}
.category-nav-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Dropdown for category nav */
.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 220px;
    z-index: 999;
    padding: 12px 0;
}
.category-nav-item:hover .category-dropdown { display: block; }
.category-dropdown a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none !important;
}
.category-dropdown a:hover {
    background: var(--bg-light);
    color: var(--brand-red);
}

.partner-btn {
    margin-right: 20px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.woocommerce-breadcrumb,
.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    padding: 16px 0;
}
.woocommerce-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}
.woocommerce-breadcrumb a:hover { color: var(--brand-red); }
.woocommerce-breadcrumb .delimiter { margin: 0 8px; color: var(--border-light); }

/* ============================================
   PAGE HEADER (H1 + subtitle)
   ============================================ */
.page-header {
    padding: 24px 0;
}
.page-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}
.page-header .subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ============================================
   CATALOG HOME — CATEGORY GRID
   ============================================ */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}
.catalog-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .3s, transform .2s;
}
.catalog-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.catalog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.catalog-card-body { padding: 20px; }
.catalog-card-title {
    font-size: 20px;
    margin-bottom: 12px;
}
.catalog-card-title a {
    color: var(--text-primary);
    text-decoration: none !important;
}
.catalog-card-title a:hover { color: var(--brand-red); }
.catalog-card-links {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 16px;
}
.catalog-card-links li { margin-bottom: 6px; break-inside: avoid; }
.catalog-card-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none !important;
}
.catalog-card-links a:hover { color: var(--brand-red); }

/* ============================================
   PRODUCT CARD (CATALOG GRID)
   ============================================ */
.woocommerce ul.products li.product,
.product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .3s, transform .2s;
    position: relative;
}
.woocommerce ul.products li.product:hover,
.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

/* Product image */
.woocommerce ul.products li.product a img,
.product-card-image img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    padding: 16px;
    background: var(--white);
}

/* Product info */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    padding: 12px 16px 4px;
    min-height: 40px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.product-card-title a {
    color: var(--text-primary);
    text-decoration: none !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover,
.product-card-title a:hover {
    color: var(--brand-red);
    text-decoration: underline !important;
}

/* Meta info (shades, volume) */
.product-meta-info {
    padding: 4px 16px 16px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}
.product-meta-info span { display: block; }

/* Sale badge */
.woocommerce span.onsale {
    background: var(--brand-red);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    top: 8px;
    left: 8px;
    right: auto;
    border-radius: var(--radius);
}

/* Price in card */
.woocommerce ul.products li.product .price {
    padding: 0 16px 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.woocommerce ul.products li.product .price del {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 8px;
}

/* ============================================
   FILTERS SIDEBAR
   ============================================ */
.woof-container,
.filter-sidebar {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 120px;
}
.woof-container h3,
.filter-sidebar h3 {
    font-size: 16px;
    margin-bottom: 16px;
}
.woof-filter-title,
.filter-group-title {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.woof-filter-title::after,
.filter-group-title::after {
    content: '▼';
    font-size: 10px;
    transition: transform .2s;
}
.woof-filter.open .woof-filter-title::after,
.filter-group.open .filter-group-title::after {
    transform: rotate(180deg);
}
.woof-filter ul,
.filter-group ul {
    list-style: none;
    margin: 8px 0;
    padding: 0;
}
.woof-filter li,
.filter-group li {
    padding: 4px 0;
    font-size: 13px;
}
.woof-filter label,
.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}
.woof-filter input[type="checkbox"],
.filter-group input[type="checkbox"] {
    accent-color: var(--brand-red);
}
.woof-reset,
.filter-reset-btn {
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    background: var(--brand-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.woof-reset:hover, .filter-reset-btn:hover { background: var(--brand-red-hover); }

/* Color swatch filter */
.filter-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
}
.filter-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--border-light);
    cursor: pointer;
    transition: transform .15s;
}
.filter-color-swatch:hover { transform: scale(1.2); }
.filter-color-swatch.active {
    box-shadow: 0 0 0 2px var(--brand-red);
}

/* ============================================
   PRODUCT SINGLE PAGE
   ============================================ */
.product-page { padding-bottom: 48px; }

/* Product header */
.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.product-header h1 {
    font-size: 28px;
    line-height: 1.3;
    max-width: 70%;
}
.product-brand-logo {
    flex-shrink: 0;
    height: 48px;
    width: auto;
}

/* Product body (two columns) */
.product-body {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 120px; }
.product-gallery-main {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}
.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.product-gallery-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .2s;
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: var(--brand-red);
}
.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product info column */
.product-info { }

/* Code + Rating row */
.product-code-rating {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}
.product-code-rating .code-label { color: var(--text-muted); }
.product-code-rating .code-value { font-weight: 600; color: var(--text-primary); }
.product-rating { display: flex; align-items: center; gap: 4px; }
.product-rating .stars { color: #FFB800; }

/* Color swatches */
.color-swatches-section { margin-bottom: 24px; }
.color-swatches-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.color-swatches-label .selected-name {
    color: var(--text-secondary);
    font-weight: 400;
}
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--border-light);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    position: relative;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
    box-shadow: 0 0 0 3px var(--brand-red);
    transform: scale(1.1);
}
.color-swatch .swatch-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    color: var(--white);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
}
.color-swatch:hover .swatch-tooltip { display: block; }

/* Volume / Price table */
.volume-section { margin-bottom: 24px; }
.volume-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.volume-table {
    width: 100%;
    border-collapse: collapse;
}
.volume-table tr {
    border-bottom: 1px solid var(--border-light);
}
.volume-table tr:last-child { border-bottom: none; }
.volume-table td {
    padding: 12px 8px;
    vertical-align: middle;
}
.volume-table .vol-label {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    width: 80px;
}
.volume-table .qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
}
.volume-table .qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}
.volume-table .qty-btn:hover { background: var(--border-light); }
.volume-table .qty-input {
    width: 48px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}
.volume-table .qty-input:focus { border-color: var(--brand-red); }
.volume-table .vol-price {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}
.volume-table .vol-add-btn {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
}

/* Delivery / Payment info */
.delivery-payment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.dp-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 16px;
}
.dp-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dp-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Feature icons */
.feature-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    width: 60px;
}
.feature-icon .icon {
    font-size: 22px;
    line-height: 1;
}

/* Product description */
.product-description { margin-bottom: 24px; }
.product-description h3 {
    font-size: 16px;
    margin-bottom: 12px;
}
.product-description ul {
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.product-description li { margin-bottom: 6px; }

/* Technical specs */
.tech-specs {
    margin-bottom: 24px;
    font-size: 14px;
}
.tech-specs dt {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 10px;
}
.tech-specs dd {
    margin-left: 0;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* Tech docs */
.tech-docs {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.tech-docs h4 {
    font-size: 14px;
    margin-bottom: 12px;
}
.tech-docs a {
    display: block;
    font-size: 13px;
    padding: 6px 0;
    color: var(--brand-red);
}
.tech-docs a::before { content: '📄 '; }

/* ============================================
   CALCULATOR
   ============================================ */
.paint-calculator {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}
.paint-calculator h4 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.calc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.calc-row label {
    font-size: 14px;
    min-width: 160px;
}
.calc-row input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}
.calc-row input[type="number"]:focus { border-color: var(--brand-red); }
.calc-result {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.calc-result-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-red);
}
.calc-consumption-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
    margin: 40px 0;
}
.faq-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-item summary,
.faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    background: var(--white);
    transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after,
.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--brand-red);
    font-weight: 300;
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Common FAQ with sidebar */
.common-faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin: 40px 0;
}
.common-faq-sidebar {
    background: var(--dark-bg);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--white);
    height: fit-content;
}
.common-faq-sidebar h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.common-faq-sidebar p {
    font-size: 13px;
    color: #AAA;
    margin-bottom: 20px;
}
.common-faq-sidebar .sidebar-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    color: var(--dark-bg);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    text-decoration: none !important;
}
.common-faq-sidebar .sidebar-btn:hover { background: #EEE; }
.sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #CCC;
}
.sidebar-contact-item a { color: var(--white); }
.sidebar-contact-item .icon { font-size: 16px; }

/* ============================================
   CROSS-SELL ("Не забудьте купить")
   ============================================ */
.cross-sell-section {
    margin: 40px 0;
}
.cross-sell-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}
.cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cross-sell-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: box-shadow .2s;
}
.cross-sell-card:hover { box-shadow: var(--shadow-card); }
.cross-sell-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}
.cross-sell-card-info { flex: 1; min-width: 0; }
.cross-sell-card-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cross-sell-card-title a { color: var(--text-primary); }
.cross-sell-card-title a:hover { color: var(--brand-red); }
.cross-sell-card-price {
    font-size: 14px;
    font-weight: 700;
}
.cross-sell-card .btn {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-section { margin: 40px 0; }
.reviews-section h3 { font-size: 20px; margin-bottom: 16px; }
.no-reviews {
    font-size: 14px;
    color: var(--text-muted);
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

/* ============================================
   PARTNERS SECTION ("С нами сотрудничают")
   ============================================ */
.partners-section {
    background: var(--dark-bg);
    color: var(--white);
    padding: 60px 0;
    margin: 48px 0;
}
.partners-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.partner-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.partner-card .icon { font-size: 28px; margin-bottom: 8px; }
.partner-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.partner-card p { font-size: 12px; color: #999; }
.partner-card.highlight {
    background: var(--brand-red);
}
.partner-card.highlight h4, .partner-card.highlight p { color: var(--white); }
.partners-image img {
    width: 100%;
    border-radius: var(--radius);
}
.partners-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--brand-red);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
}

/* ============================================
   NEWS CAROUSEL
   ============================================ */
.news-carousel {
    background: var(--dark-bg);
    padding: 32px 0;
    overflow: hidden;
}
.news-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 20px;
}
.news-track::-webkit-scrollbar { display: none; }
.news-card {
    min-width: 280px;
    max-width: 280px;
    scroll-snap-align: start;
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 20px;
}
.news-card-date { font-size: 12px; color: #888; margin-bottom: 8px; }
.news-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-card-title a { color: var(--white); }
.news-card-title a:hover { color: #FFD700; }
.news-card-excerpt { font-size: 12px; color: #999; line-height: 1.5; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark-bg);
    color: #CCC;
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}
.footer-col h3 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-address {
    font-size: 13px;
    line-height: 1.7;
    color: #AAA;
}
.footer-address .label { color: #888; }
.footer-contacts {
    margin-top: 24px;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
}
.footer-contact-item a { color: var(--white); }
.footer-contact-item a:hover { color: #FFD700; }
.footer-contact-item .icon { font-size: 18px; width: 24px; text-align: center; }

.footer-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-btn-call {
    padding: 10px 20px;
    background: var(--brand-red);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}
.footer-btn-call:hover { background: var(--brand-red-hover); }
.footer-btn-social {
    padding: 10px 20px;
    background: var(--dark-card);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 13px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-btn-social:hover { background: #4A4A4A; }

.footer-bottom {
    border-top: 1px solid var(--dark-card);
    padding-top: 20px;
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom-links a { color: #999; font-size: 12px; }
.footer-bottom-links a:hover { color: var(--white); }

/* ============================================
   PAGINATION
   ============================================ */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 32px 0;
}
.woocommerce-pagination a,
.woocommerce-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    text-decoration: none !important;
    color: var(--text-primary);
}
.woocommerce-pagination a:hover { border-color: var(--brand-red); color: var(--brand-red); }
.woocommerce-pagination .current {
    background: var(--brand-red);
    color: var(--white);
    border-color: var(--brand-red);
}

/* ============================================
   SORTING BAR
   ============================================ */
.woocommerce-ordering {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}
.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 13px;
    outline: none;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-body { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .common-faq-wrapper { grid-template-columns: 1fr; }
    .partners-section .container { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --container-width: 100%; }
    
    .top-bar .container { flex-direction: column; gap: 8px; text-align: center; }
    .top-bar-nav { justify-content: center; flex-wrap: wrap; gap: 12px; }
    
    .main-header .container { flex-wrap: wrap; }
    .header-search { order: 5; max-width: 100%; flex-basis: 100%; }
    .site-logo-subtitle { display: none; }
    
    .category-nav-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .category-nav-item > a { padding: 12px 14px; white-space: nowrap; }
    .partner-btn { display: none; }
    
    .product-header h1 { font-size: 22px; max-width: 100%; }
    .cross-sell-grid { grid-template-columns: 1fr; }
    .volume-table .vol-add-btn { width: 100%; margin-top: 8px; }
    .delivery-payment { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .partners-grid { grid-template-columns: 1fr 1fr; }
    
    /* Sticky add-to-cart on mobile */
    .mobile-sticky-cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border-light);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 999;
        box-shadow: 0 -4px 12px rgba(0,0,0,.1);
    }
    .mobile-sticky-cart .price { font-size: 20px; font-weight: 700; }
}

@media (max-width: 480px) {
    .catalog-dropdown-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr; }
    .feature-icons { gap: 8px; }
    .feature-icon { width: 48px; font-size: 9px; }
}

/* ============================================
   PRINT / UTILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   FOOTER — ДОП. СТИЛИ
   ============================================ */

/* Адрес */
.footer-address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: #CCC;
}
.footer-address .label {
    margin-right: 6px;
}
.footer-address small {
    color: #888;
    font-size: 12px;
}

/* Контакты */
.footer-contacts {
    margin-top: 24px;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}
.footer-contact-item .icon {
    font-size: 20px;
    line-height: 1.4;
    flex-shrink: 0;
}
.footer-contact-item .label {
    font-size: 11px;
    color: #888;
    display: block;
}
.footer-contact-item a {
    color: var(--white);
    font-size: 14px;
    text-decoration: none;
}
.footer-contact-item a:hover {
    color: #FFD700;
}
.footer-phone-link {
    font-size: 18px !important;
    font-weight: 700;
}

/* Кнопки в подвале */
.footer-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.footer-btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--brand-red);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s;
}
.footer-btn-call:hover {
    background: var(--brand-red-hover);
}
.footer-btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--dark-card);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 14px;
    text-decoration: none !important;
    transition: background .2s;
}
.footer-btn-social:hover {
    background: #4A4A4A;
}
.footer-btn-social svg {
    flex-shrink: 0;
}

/* Нижняя полоса */
.footer-bottom {
    border-top: 1px solid var(--dark-card);
    margin-top: 40px;
    padding-top: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-copyright {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 560px;
}
.footer-logo-mini {
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-copyright-text {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    margin: 0;
}
.footer-copyright-text strong {
    color: #CCC;
}
.footer-copyright-text small {
    color: #666;
    font-size: 11px;
}

.footer-bottom-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-bottom-links a {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color .2s;
}
.footer-bottom-links a:hover {
    color: var(--white);
}

/* ============================================
   MODAL (Заказать звонок)
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: var(--white);
    border-radius: 8px;
    padding: 36px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
.modal-box h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Form */
.callback-form .form-group {
    margin-bottom: 16px;
}
.callback-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.callback-form input,
.callback-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.callback-form input:focus,
.callback-form textarea:focus {
    border-color: var(--brand-red);
}
.callback-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
}
.form-privacy {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}
.form-privacy a { color: var(--brand-red); }

/* Success state */
.callback-success {
    text-align: center;
    padding: 20px 0;
}
.success-icon {
    width: 56px;
    height: 56px;
    background: #E8F5E9;
    color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.callback-success h4 {
    font-size: 18px;
    margin-bottom: 8px;
}
.callback-success p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .footer-copyright {
        flex-direction: column;
        gap: 12px;
    }
    .footer-bottom-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .footer-buttons {
        flex-direction: column;
    }
    .footer-btn-call, .footer-btn-social {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
/* ============================================
   HEADER — ДОП. СТИЛИ И МОБИЛЬНОЕ МЕНЮ
   ============================================ */

/* --- Каталог: hover-раскрытие мега-меню --- */
.catalog-wrap { position: relative; }
.catalog-btn {
    border: none;
    cursor: pointer;
}
.catalog-dropdown {
    display: none;
}
.catalog-btn:hover .catalog-dropdown,
.catalog-btn:focus-within .catalog-dropdown,
.catalog-dropdown:hover {
    display: block;
}

/* --- Город: dropdown --- */
.top-bar-city {
    position: relative;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 3px;
    transition: background .2s;
}
.top-bar-city:hover { background: rgba(255,255,255,.1); }
.city-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    min-width: 180px;
    z-index: 9999;
    padding: 8px 0;
}
.city-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none !important;
}
.city-dropdown a:hover { background: var(--bg-light); color: var(--brand-red); }
.top-bar-city[aria-expanded="true"] .city-dropdown { display: block; }

/* --- Category nav: active state --- */
.category-nav-item > a .arrow {
    font-size: 8px;
    margin-left: 4px;
    opacity: .5;
}

/* ============================================
   MOBILE MENU (бургер)
   ============================================ */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10001;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: var(--shadow-card);
}
.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform .3s, opacity .3s;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    animation: slideIn .3s ease;
}
@keyframes slideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu-nav li { margin-bottom: 4px; }
.mobile-menu-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none !important;
    border-radius: var(--radius);
}
.mobile-menu-nav a:hover { background: var(--bg-light); }
.mobile-cat { font-weight: 500; }
.mobile-phone { font-weight: 700; color: var(--brand-red) !important; }
.mobile-partner { text-align: center; margin-top: 12px; }
.mobile-divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
}

/* ============================================
   HEADER RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .top-bar-hours { display: none; }
    .site-logo-subtitle { display: none; }
    .header-search { max-width: 200px; }
}

@media (max-width: 768px) {
    /* Скрываем десктопную шапку */
    .top-bar,
    .main-header,
    .category-nav { display: none; }

    /* Показываем бургер + упрощённую строку */
    .mobile-menu-toggle { display: flex; }

    .site-header::before {
        content: '';
        display: block;
        background: var(--white);
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-light);
    }

    /* Упрощённая мобильная строка (логотип + телефон) */
    .mobile-header-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: var(--white);
        border-bottom: 1px solid var(--border-light);
    }
}

/* ============================================
   ACCESSIBILITY: FOCUS VISIBLE
   ============================================ */
.catalog-btn:focus-visible,
.category-nav-item > a:focus-visible,
.header-search input:focus-visible,
.top-bar-city:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .catalog-dropdown,
    .city-dropdown,
    .category-dropdown {
        transition: none !important;
    }
    .mobile-menu-overlay {
        animation: none;
    }
}
/* ============================================
   PRODUCT CARD — КАРТОЧКА В КАТАЛОГЕ
   ============================================ */

.woocommerce ul.products li.product {
    width: calc(33.333% - 16px);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

/* --- Изображение --- */
.product-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--white);
}
.product-card-image img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 20px;
    display: block;
    transition: transform .3s ease;
}
.woocommerce ul.products li.product:hover .product-card-image img {
    transform: scale(1.05);
}

/* Placeholder */
.product-img-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

/* --- Название --- */
.product-card-title,
.woocommerce-loop-product__title {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    padding: 14px 16px 6px !important;
    margin: 0 !important;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-title a,
.woocommerce-loop-product__title a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transition: color .2s;
}
.product-card-title a:hover,
.woocommerce-loop-product__title a:hover {
    color: var(--brand-red) !important;
    text-decoration: underline !important;
}

/* --- Мета-инфо --- */
.product-meta-info {
    padding: 0 16px 14px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}
.product-meta-info span {
    display: block;
}

/* --- Цена (простые товары) --- */
.product-card-price {
    padding: 0 16px 12px;
}
.product-card-price .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.product-card-price del {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 8px;
}
.product-card-price ins {
    text-decoration: none;
    color: var(--brand-red);
}

/* --- Кнопка "В корзину" --- */
.product-card-action {
    padding: 0 16px 16px;
}
.btn-sm {
    padding: 8px 16px !important;
    font-size: 13px !important;
    width: 100%;
}

/* --- Sale badge (переопределение WooCommerce) --- */
.woocommerce span.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--brand-red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: var(--radius);
    padding: 0 8px;
}

/* --- Hover-эффект на всю карточку --- */
.woocommerce ul.products li.product {
    transition: box-shadow .3s ease, transform .2s ease;
}
.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

/* ============================================
   GRID: 3 КОЛОНКИ (DESKTOP)
   ============================================ */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0 -12px;
}
.woocommerce ul.products li.product {
    width: auto;
    margin: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-card-image img { height: 200px; }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 0 -8px;
    }
    .product-card-image img { height: 160px; padding: 12px; }
    .product-card-title,
    .woocommerce-loop-product__title {
        font-size: 13px !important;
        padding: 10px 12px 4px !important;
        min-height: 44px;
    }
    .product-meta-info { padding: 0 12px 10px; font-size: 11px; }
    .product-card-action { padding: 0 12px 12px; }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-card-image img { height: 240px; }
}
/* ============================================
   SINGLE PRODUCT — ДОП. СТИЛИ
   ============================================ */

/* --- Заголовок + бренд --- */
.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.product-title {
    font-size: 28px;
    line-height: 1.3;
    max-width: 75%;
    margin: 0;
}
.product-brand-logo {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}
.product-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Галерея --- */
.product-gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    margin-bottom: 12px;
}
.product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity .2s;
}
.product-gallery-thumb {
    cursor: pointer;
}
.product-gallery-thumb:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* --- Таблица объёмов --- */
.volume-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}
.volume-table tr {
    border-bottom: 1px solid var(--border-light);
    transition: background .15s;
}
.volume-table tr:last-child { border-bottom: none; }
.volume-table tr:hover { background: var(--bg-light); }
.volume-table td {
    padding: 14px 12px;
    vertical-align: middle;
}
.vol-label {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    min-width: 70px;
}
.vol-price {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}
.vol-add-btn {
    padding: 10px 18px !important;
    font-size: 13px !important;
    white-space: nowrap;
}
.out-of-stock {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* Простой товар — строка */
.simple-product-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

/* --- Qty control --- */
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background .15s;
}
.qty-btn:hover { background: var(--border-light); }
.qty-input {
    width: 48px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
.qty-input:focus { border-color: var(--brand-red); }

/* --- Feature icons --- */
.feature-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin: 24px 0;
}
.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    min-width: 56px;
}
.feature-icon .icon {
    font-size: 24px;
    line-height: 1;
}

/* --- Tech specs --- */
.tech-specs {
    margin: 24px 0;
    font-size: 14px;
}
.tech-specs dt {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 12px;
}
.tech-specs dd {
    margin-left: 0;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* --- Tech docs --- */
.tech-docs {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
}
.tech-docs h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}
.tech-docs a {
    display: block;
    font-size: 13px;
    padding: 6px 0;
    color: var(--brand-red);
}
.tech-docs a::before { content: '📄 '; }
.tech-docs a:hover { text-decoration: underline; }

/* --- Reviews --- */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 15px;
}
.reviews-summary .stars { color: #FFB800; font-size: 20px; }
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-date { font-size: 12px; color: var(--text-muted); }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Review form */
.review-form .form-group { margin-bottom: 14px; }
.review-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
}
.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus { border-color: var(--brand-red); }

/* ============================================
   RESPONSIVE — SINGLE PRODUCT
   ============================================ */
@media (max-width: 1024px) {
    .product-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-gallery { position: static; }
    .product-title { font-size: 24px; max-width: 100%; }
}

@media (max-width: 768px) {
    .product-header { flex-direction: column; gap: 12px; }
    .product-title { font-size: 22px; }

    .volume-table { font-size: 13px; }
    .volume-table td { padding: 10px 8px; }
    .vol-add-btn { width: 100%; margin-top: 4px; }

    .feature-icons { gap: 10px; }
    .feature-icon { min-width: 48px; font-size: 9px; }
    .feature-icon .icon { font-size: 20px; }

    .delivery-payment { grid-template-columns: 1fr; }
    .common-faq-wrapper { grid-template-columns: 1fr; }
    .cross-sell-grid { grid-template-columns: 1fr; }

    .simple-product-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
/* =========================================================
   ПАТЧ СИНХРОНИЗАЦИИ ШАБЛОНОВ (Single Product + Modal)
   ========================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.btn-brand-red,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-red, #C41E2A);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-brand-red:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background-color: var(--brand-red-hover, #A01820);
    color: #FFFFFF;
}

.btn-full {
    width: 100%;
}

/* --- Карточка товара (single-product.php) --- */
.astra-child-single-product {
    padding: 24px 0 48px;
}

.product-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light, #E5E5E5);
}

.product-top-bar .product_title {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
    color: var(--text-primary, #222222);
}

.product-brand-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-light, #F7F7F7);
    border: 1px solid var(--border-light, #E5E5E5);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary, #222222);
    white-space: nowrap;
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}

.product-left-col .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin-bottom: 24px;
}

.product-right-col {
    width: 100% !important;
    float: none !important;
}

/* Плашки Доставка и Оплата */
.product-info-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.info-badge-card {
    background: var(--bg-light, #F7F7F7);
    border: 1px solid var(--border-light, #E5E5E5);
    border-radius: 6px;
    padding: 14px 16px;
}

.info-badge-card strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary, #222222);
    margin-bottom: 4px;
}

.info-badge-card p {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-secondary, #666666);
    margin: 0;
}

.product-features-box {
    margin-top: 20px;
    padding: 16px;
    border-top: 1px solid var(--border-light, #E5E5E5);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary, #222222);
}

/* --- Единое модальное окно «Заказать звонок» (#callback-modal) --- */
.astra-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.astra-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.astra-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.astra-modal-dialog h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0 0 8px;
    color: #222222;
}

.astra-modal-dialog > p {
    font-size: 14px;
    color: #666666;
    margin: 0 0 18px;
}

.astra-modal-dialog .modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
}

.callback-form .form-row {
    margin-bottom: 14px;
}

.callback-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #222222;
}

.callback-form input[type="text"],
.callback-form input[type="tel"],
.callback-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D5D5D5;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.callback-form .form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #666666;
    cursor: pointer;
}

/* --- Адаптив --- */
@media (max-width: 992px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .product-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .product-info-badges {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   ФИКС ПОДВАЛА (footer.php) НА ВСЮ ШИРИНУ ЭКРАНА
   ========================================================= */
.astra-child-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--dark-bg, #2B2B2B);
    color: #FFFFFF;
    clear: both;
}

.astra-child-footer .footer-main {
    padding: 48px 0 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.astra-child-footer .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.astra-child-footer .footer-col-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 20px;
}

.astra-child-footer .footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #E5E5E5;
}

.astra-child-footer .footer-info-item p {
    margin: 0 0 4px;
}

.astra-child-footer .footer-hours {
    color: #A3A3A3;
    font-size: 13px;
}

.astra-child-footer .footer-label {
    display: block;
    font-size: 12px;
    color: #A3A3A3;
    margin-bottom: 2px;
}

.astra-child-footer .footer-phone {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
}

.astra-child-footer .footer-socials {
    margin: 14px 0 20px;
}

.astra-child-footer .footer-social-link {
    color: #E5E5E5;
    font-size: 14px;
    text-decoration: none;
}

.astra-child-footer .footer-social-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.astra-child-footer .footer-bottom {
    padding: 24px 0;
    background-color: #222222;
    font-size: 12.5px;
    color: #9E9E9E;
}

.astra-child-footer .footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.astra-child-footer .footer-logo a {
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
    text-decoration: none;
}

.astra-child-footer .footer-logo strong {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

.astra-child-footer .footer-logo span {
    font-size: 12px;
    color: #A3A3A3;
}

.astra-child-footer .footer-copyright {
    max-width: 720px;
}

.astra-child-footer .footer-copyright p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.astra-child-footer .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.astra-child-footer .footer-legal-links a {
    color: #BDBDBD;
    text-decoration: none;
}

.astra-child-footer .footer-legal-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .astra-child-footer .footer-columns,
    .astra-child-footer .footer-bottom-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 24px;
    }
}
/* =========================================================
   ФИКС ПОЗИЦИИ ПОДВАЛА ПОД ОСНОВНЫМ КОНТЕНТОМ ASTRA
   ========================================================= */
#page.site,
#content.site-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

body #content.site-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 0 auto !important;
    display: block !important;
}

body footer.site-footer,
body .astra-child-footer {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    flex-shrink: 0 !important;
    order: 99 !important;
    display: block !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}/* =========================================================
   СБРОС FLEX/GRID НА BODY ДЛЯ ВЕРТИКАЛЬНОГО ПОТОКА СТРАНИЦЫ
   ========================================================= */
html,
body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body > #page,
body > .site,
body > main,
body > .ast-container,
body > footer,
body > .astra-child-footer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}

