
/*
Theme Name: PosudaSklad
Theme URI: https://posudasklad.ru/
Author: Posuda Sklad
Description: Индивидуальная тема интернет-магазина ПосудаСклад.
Version: 1.0.0
Requires PHP: 8.3
Text Domain: posudasklad
*/

:root {
    --color-dark: #343a40;
    --color-dark-hover: #252a2e;
    --color-orange: #f47700;
    --color-orange-hover: #df6900;
    --color-white: #ffffff;
    --color-light: #f5f6f7;
    --color-border: #e5e7eb;
    --color-text: #252a2e;
    --color-muted: #777f87;
    --container-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-white);
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

.container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}


/* ==============================
   HEADER
============================== */

.topbar {
    background: var(--color-dark);
    color: #fff;
    font-size: 13px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.topbar a {
    color: #fff;
    opacity: .9;
}

.topbar a:hover {
    color: var(--color-orange);
}

/* Main header */

.main-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.header-main {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

/* Логотип сайта */
.site-branding {
    flex: 0 0 auto;
    min-width: 0;
}

.site-branding .custom-logo-link {
    display: block;
    width: 320px;
    max-width: 100%;
    line-height: 0;
}

.site-branding .custom-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}


.brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--color-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
}

.brand-text strong {
    display: block;
    font-size: 29px;
    color: var(--color-dark);
}

.brand-text small {
    display: block;
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 3px;
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search form {
    display: flex;
    width: 100%;
}

.header-search input[type="search"] {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--color-border);
    border-radius: 7px 0 0 7px;
    outline: none;
}

.header-search button {
    min-width: 55px;
    border: 0;
    background: var(--color-orange);
    color: #fff;
    cursor: pointer;
    border-radius: 0 7px 7px 0;
}

.header-phone {
    display: flex;
    flex-direction: column;
    gap: 6px;
    white-space: nowrap;
}

.header-phone > a:first-child {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-dark);
}

.header-phone .header-address {
    max-width: 300px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-muted);
    white-space: normal;
    transition: color .2s ease;
}

.header-phone .header-address:hover {
    color: var(--color-orange);
}

.header-phone small,
.header-actions small {
    color: var(--color-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-actions > a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    white-space: nowrap;
}

.header-actions a:hover {
    color: var(--color-orange);
}

.header-actions small {
    display: block;
    font-size: 12px;
}

.action-icon {
    font-size: 23px;
}

/* Navigation */

.main-navigation {
    background: var(--color-dark);
    color: #fff;
}

.navigation-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 35px;
}

.catalog-button {
    align-self: stretch;
    min-width: 270px;
    padding: 0 22px;
    border: 0;
    border-radius: 5px;
    background: var(--color-orange);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.catalog-button:hover {
    background: var(--color-orange-hover);
}

.catalog-button span {
    margin-right: 12px;
    font-size: 21px;
}

.navigation-menu {
    flex: 1;
}

.primary-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 18px 0;
    color: #fff;
    font-size: 16px;
}

.primary-menu a:hover {
    color: #ff922e;
}

.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 220px;
    padding: 8px 15px;
    margin: 0;
    background: var(--color-dark);
    list-style: none;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    padding: 10px 0;
}

/* Main content */

.site-main {
    min-height: 500px;
    padding-top: 25px;
}

/* Responsive */

@media (max-width: 1100px) {
    .header-main {
        gap: 15px;
    }

    .brand-text strong {
        font-size: 23px;
    }

    .brand-link .custom-logo {
        width: 300px;
    }

    .header-phone {
        display: none;
    }

    .navigation-inner {
        gap: 15px;
    }

    .catalog-button {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .header-main {
        min-height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
        flex-wrap: wrap;
    }

    .brand-icon {
        width: 45px;
        height: 45px;
    }

    .brand-link .custom-logo {
        width: 240px;
    }

    .brand-text strong {
        font-size: 21px;
    }

    .brand-text small {
        font-size: 11px;
    }

    .header-search {
        flex-basis: 100%;
        order: 3;
        max-width: none;
    }

    .header-actions {
        gap: 12px;
    }

    .header-actions > a {
        font-size: 0;
    }

    .action-icon {
        font-size: 23px;
    }

    .header-actions small {
        font-size: 11px;
    }

    .navigation-inner {
        min-height: 52px;
    }

    .catalog-button {
        width: 100%;
        min-height: 48px;
    }

    .navigation-menu {
        display: none;
    }

    .site-main {
        padding-top: 15px;
    }
}


/* =========================================
   HOME PAGE
========================================= */

.hero-section {
    padding: 30px 0 20px;
}


.hero-banner {
    min-height: 390px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 55px 65px;
    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            rgba(38, 44, 49, 0.88) 0%,
            rgba(38, 44, 49, 0.68) 32%,
            rgba(38, 44, 49, 0.08) 72%
        ),
        url('/wp-content/themes/posuda-cheb/assets/images/banners/hero-kitchen.webp');

    background-size: cover;
    background-position: center;
    color: #fff;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 570px;
}

.hero-label,
.section-subtitle {
    display: block;
    margin-bottom: 13px;
    color: var(--color-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-content h1 {
    margin: 0 0 20px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    color: #fff;
}

.hero-content p {
    max-width: 470px;
    margin: 0 0 28px;
    color: #e0e4e7;
    line-height: 1.7;
    font-size: 16px;
}

.hero-button,
.wholesale-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 52px;
    padding: 0 25px;
    border-radius: 6px;
    background: var(--color-orange);
    color: #fff;
    font-weight: 700;
    transition: .2s;
}

.hero-button:hover,
.wholesale-button:hover {
    background: var(--color-orange-hover);
    color: #fff;
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    display: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
}

.hero-circle-one {
    width: 440px;
    height: 440px;
    top: -25px;
    right: 15px;
}

.hero-circle-two {
    width: 330px;
    height: 330px;
    top: 30px;
    right: 70px;
}

.hero-product {
    position: absolute;
    top: 50%;
    right: 19%;
    width: 210px;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%) rotate(-8deg);
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.hero-product span {
    font-size: 125px;
}

.hero-caption {
    position: absolute;
    right: 12%;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.hero-caption strong {
    font-size: 19px;
}

.hero-caption span {
    margin-top: 5px;
    color: #cbd0d4;
    font-size: 13px;
}

/* Advantages */

.advantages-section {
    padding: 20px 0 30px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.advantage-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0e5;
    color: var(--color-orange);
    font-size: 22px;
    font-weight: 700;
}

.advantage-item strong,
.advantage-item small {
    display: block;
}

.advantage-item strong {
    margin-bottom: 5px;
    font-size: 14px;
}

.advantage-item small {
    color: var(--color-muted);
    font-size: 12px;
}

/* Sections */

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

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.section-heading .section-subtitle {
    margin-bottom: 7px;
}

.section-heading h2 {
    margin: 0;
    font-size: 30px;
    color: var(--color-dark);
}

.section-link {
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--color-orange-hover);
}

/* Categories */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    min-height: 155px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: #fff;
    transition: .2s;
}

.category-card:hover {
    border-color: var(--color-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

/* Category images */

.category-image {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f5;
}

.category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.06);
}

@media (max-width: 600px) {
    .category-image {
        width: 90px;
        height: 90px;
    }
}


.category-one .category-image,
.category-four .category-image {
    background: #fff0e5;
}

.category-two .category-image,
.category-five .category-image {
    background: #edf1f3;
}

.category-three .category-image,
.category-six .category-image {
    background: #f3f0e9;
}

.category-info strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.category-info span {
    color: var(--color-muted);
    font-size: 12px;
}

/* Products */

.products-section {
    background: var(--color-light);
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-product-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: #fff;
    transition: .2s;
}

.home-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
}

.home-product-image {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
}

.home-product-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.home-product-info {
    padding: 18px;
}

.home-product-title {
    display: block;
    min-height: 42px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.home-product-price {
    margin-bottom: 15px;
    font-size: 19px;
    font-weight: 700;
}

.product-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 5px;
    background: var(--color-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.product-button:hover {
    background: var(--color-orange-hover);
    color: #fff;
}

.products-empty {
    grid-column: 1 / -1;
    padding: 45px 20px;
    border: 1px dashed #cbd0d4;
    border-radius: 8px;
    background: #fff;
    color: var(--color-muted);
    text-align: center;
}

/* Wholesale */

.wholesale-section {
    padding: 45px 0;
}

.wholesale-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 45px;
    border-radius: 10px;
    background: #eef0f1;
}

.wholesale-banner h2 {
    margin: 0 0 12px;
    font-size: 28px;
    color: var(--color-dark);
}

.wholesale-banner p {
    max-width: 600px;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 1000px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-decoration {
        opacity: .65;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding-top: 15px;
    }

    .hero-banner {
        min-height: 390px;
        padding: 35px 25px;
        background-position: 62% center;
        padding: 30px 22px;
        min-height: 360px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .hero-content p {
        max-width: 100%;
        font-size: 14px;
    }

    .hero-decoration {
        opacity: .18;
        width: 100%;
    }

    .hero-product {
        right: 5%;
    }

    .hero-caption {
        display: none;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .section-heading {
        align-items: start;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .section-link {
        font-size: 12px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        min-height: 120px;
        padding: 12px;
    }

    .category-image {
        width: 80px;
        height: 85px;
        font-size: 38px;
    }

    .home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-product-image {
        height: 155px;
    }

    .home-product-info {
        padding: 12px;
    }

    .home-product-title {
        font-size: 12px;
    }

    .home-product-price {
        font-size: 16px;
    }

    .wholesale-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 22px;
    }

    .wholesale-banner h2 {
        font-size: 24px;
    }
}


/* =========================================
   DEMO PRODUCT CARDS
========================================= */

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: #fff;
    transition: .25s ease;
}

.home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.demo-product-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 4px;
    background: #f1f2f3;
    color: #626b73;
    font-size: 10px;
}

.home-product-image {
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #fff;
}

.home-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.04);
}

.home-product-info {
    padding: 16px;
}

.home-product-sku {
    margin-bottom: 9px;
    color: var(--color-muted);
    font-size: 11px;
}

.home-product-title {
    display: block;
    min-height: 42px;
    margin-bottom: 12px;
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.home-product-price {
    margin-bottom: 15px;
    color: var(--color-dark);
    font-size: 21px;
    font-weight: 700;
}

.demo-products-note {
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 11px;
    text-align: center;
}

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

@media (max-width: 600px) {
    .home-products-grid {
        gap: 10px;
    }

    .home-product-image {
        height: 155px;
        padding: 10px;
    }

    .home-product-info {
        padding: 12px;
    }

    .home-product-title {
        font-size: 12px;
    }

    .home-product-price {
        font-size: 17px;
    }

    .demo-product-label {
        font-size: 9px;
    }
}


/* ==================================================
   WOOCOMMERCE CATALOG — SHOP / PRODUCT CATEGORIES
   Добавлено отдельно. Существующие стили темы не изменены.
================================================== */

/* Контейнер каталога */
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main {
    width: min(100% - 40px, var(--container-width, 1440px));
    margin-left: auto;
    margin-right: auto;
    padding-top: 35px;
    padding-bottom: 60px;
}

/* Заголовок каталога и категории */
body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header {
    margin-bottom: 24px;
}

body.post-type-archive-product .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title {
    margin: 0 0 12px;
    color: var(--color-dark, #343a40);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

/* Строка количества товаров и сортировки */
body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count {
    margin: 8px 0 18px;
    color: var(--color-muted, #777f87);
    font-size: 14px;
}

body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering {
    margin: 0 0 18px;
}

body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select {
    min-height: 40px;
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text, #252a2e);
    font: inherit;
}

/* Сетка каталога */
body.post-type-archive-product .woocommerce ul.products,
body.tax-product_cat .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.post-type-archive-product .woocommerce ul.products::before,
body.post-type-archive-product .woocommerce ul.products::after,
body.tax-product_cat .woocommerce ul.products::before,
body.tax-product_cat .woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

/* Карточка товара */
body.post-type-archive-product .woocommerce ul.products li.product,
body.tax-product_cat .woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow: hidden;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 9px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.post-type-archive-product .woocommerce ul.products li.product:hover,
body.tax-product_cat .woocommerce ul.products li.product:hover {
    border-color: #d5d9dd;
    box-shadow: 0 7px 20px rgba(37, 42, 46, .07);
    transform: translateY(-2px);
}

/* Область фотографии: единая высота, без обрезки товара */
body.post-type-archive-product .woocommerce ul.products li.product a img,
body.tax-product_cat .woocommerce ul.products li.product a img {
    display: block;
    width: 100% !important;
    height: 230px !important;
    margin: 0 0 14px !important;
    object-fit: contain !important;
    object-position: center center;
    background: #fff;
}

/* Название */
body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 42px;
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: var(--color-dark, #343a40);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

/* Цена */
body.post-type-archive-product .woocommerce ul.products li.product .price,
body.tax-product_cat .woocommerce ul.products li.product .price {
    display: block;
    margin: 0 0 13px !important;
    color: var(--color-text, #252a2e);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

body.post-type-archive-product .woocommerce ul.products li.product .price del,
body.tax-product_cat .woocommerce ul.products li.product .price del {
    color: var(--color-muted, #777f87);
    font-size: 13px;
    font-weight: 400;
}

body.post-type-archive-product .woocommerce ul.products li.product .price ins,
body.tax-product_cat .woocommerce ul.products li.product .price ins {
    color: var(--color-orange, #f47700);
    text-decoration: none;
}

/* Кнопка покупки */
body.post-type-archive-product .woocommerce ul.products li.product .button,
body.tax-product_cat .woocommerce ul.products li.product .button {
    align-self: flex-start;
    margin: auto 0 0 !important;
    padding: 10px 16px !important;
    border: 0;
    border-radius: 5px;
    background: var(--color-orange, #f47700);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

body.post-type-archive-product .woocommerce ul.products li.product .button:hover,
body.tax-product_cat .woocommerce ul.products li.product .button:hover {
    background: var(--color-orange-hover, #df6900);
    color: #fff;
}

/* Метка распродажи */
body.post-type-archive-product .woocommerce ul.products li.product .onsale,
body.tax-product_cat .woocommerce ul.products li.product .onsale {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 6px 9px;
    border-radius: 4px;
    background: var(--color-orange, #f47700);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
}

/* Пагинация */
body.post-type-archive-product .woocommerce nav.woocommerce-pagination,
body.tax-product_cat .woocommerce nav.woocommerce-pagination {
    margin-top: 35px;
}

body.post-type-archive-product .woocommerce nav.woocommerce-pagination ul,
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    border: 0;
}

body.post-type-archive-product .woocommerce nav.woocommerce-pagination ul li,
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul li {
    float: none;
    border: 0;
}

body.post-type-archive-product .woocommerce nav.woocommerce-pagination ul li a,
body.post-type-archive-product .woocommerce nav.woocommerce-pagination ul li span,
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul li a,
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 5px;
}

/* Планшеты */
@media (max-width: 1000px) {
    body.post-type-archive-product .woocommerce ul.products,
    body.tax-product_cat .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    body.post-type-archive-product .woocommerce ul.products li.product a img,
    body.tax-product_cat .woocommerce ul.products li.product a img {
        height: 210px !important;
    }
}

/* Телефоны */
@media (max-width: 650px) {
    body.post-type-archive-product .site-main,
    body.tax-product_cat .site-main {
        width: calc(100% - 24px);
        padding-top: 22px;
    }

    body.post-type-archive-product .woocommerce ul.products,
    body.tax-product_cat .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.post-type-archive-product .woocommerce ul.products li.product,
    body.tax-product_cat .woocommerce ul.products li.product {
        padding: 10px !important;
    }

    body.post-type-archive-product .woocommerce ul.products li.product a img,
    body.tax-product_cat .woocommerce ul.products li.product a img {
        height: 155px !important;
        margin-bottom: 10px !important;
    }

    body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
    body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 0;
        font-size: 12px;
    }

    body.post-type-archive-product .woocommerce ul.products li.product .price,
    body.tax-product_cat .woocommerce ul.products li.product .price {
        font-size: 16px;
    }

    body.post-type-archive-product .woocommerce ul.products li.product .button,
    body.tax-product_cat .woocommerce ul.products li.product .button {
        padding: 9px 11px !important;
        font-size: 12px;
    }
}


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

.site-footer {
    margin-top: 45px;
    padding: 48px 0 0;
    background: var(--color-dark);
    color: #fff;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 55px;
    padding-bottom: 38px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo,
.footer-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
    width: 170px;
    max-width: 100%;
    margin-bottom: 12px;
    line-height: 0;
}

.footer-logo img,
.footer-brand .custom-logo {
    display: block;
    width: 100% !important;
    max-width: 170px;
    height: auto;
}

.footer-brand > p {
    margin: 0 0 8px;
    color: #cbd0d4;
    font-size: 14px;
    line-height: 1.5;
}

.footer-phone {
    display: inline-block;
    margin-top: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.footer-phone:hover {
    color: var(--color-orange);
}

.footer-hours {
    margin-top: 5px;
    color: #cbd0d4;
    font-size: 13px;
}

.footer-column h3 {
    margin: 4px 0 19px;
    color: #fff;
    font-size: 17px;
    line-height: 1.3;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a {
    color: #cbd0d4;
    font-size: 14px;
    line-height: 1.5;
    transition: color .2s ease;
}

.footer-column a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer-bottom p {
    margin: 0;
    color: #cbd0d4;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-settings-button {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cookie-settings-button:hover {
    color: var(--color-orange);
}


/* =========================================
   COOKIE NOTICE
========================================= */

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    max-width: 920px;
    margin: 0 auto;
    padding: 22px 24px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 45px rgba(0, 0, 0, .18);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cookie-banner-content strong {
    display: block;
    margin-bottom: 7px;
    color: var(--color-dark);
    font-size: 17px;
}

.cookie-banner-content p {
    max-width: 570px;
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.cookie-banner-content p a {
    color: var(--color-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 8px;
    min-width: 190px;
}

.cookie-accept-button,
.cookie-reject-button {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.cookie-accept-button {
    border: 1px solid var(--color-orange);
    background: var(--color-orange);
    color: #fff;
}

.cookie-accept-button:hover {
    border-color: var(--color-orange-hover);
    background: var(--color-orange-hover);
}

.cookie-reject-button {
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
}

.cookie-reject-button:hover {
    border-color: #c7ccd1;
    background: var(--color-light);
}


/* =========================================
   FOOTER AND COOKIE — RESPONSIVE
========================================= */

@media (max-width: 768px) {
    .site-footer {
        margin-top: 30px;
        padding-top: 35px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo,
    .footer-brand .custom-logo-link {
        width: 150px;
    }

    .footer-logo img,
    .footer-brand .custom-logo {
        max-width: 150px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .cookie-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 18px;
    }

    .cookie-banner-content {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .cookie-banner-actions {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-column h3 {
        margin-bottom: 13px;
    }

    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-content strong {
        font-size: 16px;
    }

    .cookie-banner-content p {
        font-size: 12px;
    }
}



/* Cookie notice backdrop and dialog accessibility */
.cookie-banner {
    animation: cookie-banner-appear .22s ease-out;
}

@keyframes cookie-banner-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner button:focus-visible,
.cookie-settings-button:focus-visible {
    outline: 3px solid rgba(244, 119, 0, .35);
    outline-offset: 3px;
}


/* =========================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
========================================= */

.page-main {
    padding: 55px 0 80px;
    background: #fff;
}

.page-main .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.content-page {
    max-width: 100%;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    color: #252a30;
}

.page-content {
    color: #424950;
    font-size: 16px;
    line-height: 1.75;
}

.page-content p {
    margin: 0 0 18px;
}

.page-content h2 {
    margin: 38px 0 18px;
    font-size: 23px;
    line-height: 1.4;
    font-weight: 700;
    color: #252a30;
}

.page-content h3 {
    margin: 28px 0 14px;
    font-size: 19px;
    line-height: 1.4;
    color: #252a30;
}

.page-content ul,
.page-content ol {
    margin: 12px 0 24px;
    padding-left: 28px;
}

.page-content li {
    margin-bottom: 7px;
    padding-left: 4px;
}

.page-content strong {
    color: #252a30;
}

@media (max-width: 768px) {
    .page-main {
        padding: 32px 0 50px;
    }

    .page-main .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page-title {
        font-size: 27px;
    }

    .page-content {
        font-size: 15px;
        line-height: 1.65;
    }

    .page-content h2 {
        margin-top: 30px;
        font-size: 20px;
    }

    .page-content h3 {
        font-size: 17px;
    }
}

.page-content a {
    color: #f26722;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(242, 103, 34, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page-content a:hover {
    color: #d94f12;
    text-decoration-color: #d94f12;
}

.page-content a[href^="tel:"],
.page-content a[href^="mailto:"] {
    font-weight: 700;
    white-space: nowrap;
}

/* Контактные данные */
.page-content .legal-contacts {
    padding: 18px 22px;
    margin: 20px 0 28px;
    background: #fff7f2;
    border-left: 4px solid #ff7025;
    border-radius: 6px;
}

.page-content .legal-contacts p:last-child {
    margin-bottom: 0;
}
