/* =====================================================
   Brand palette (Wals)
   --------------------------------------------------
   Primary:  #a65e2e (brown)
   Dark:     #633b21 (used for hover / pressed states)
   Light:    #e0cd9e (used for soft backgrounds / highlights)
   ===================================================== */
:root {
    --brand-primary: #a65e2e;
    --brand-primary-dark: #633b21;
    --brand-primary-light: #e0cd9e;
}

/* Hover / focus states use the darker brand brown for depth */
a:hover,
a:focus {
    color: var(--brand-primary-dark);
}

.btn-cart:hover,
.btn-cart2:hover,
.btn-cart3:hover,
.btn-cart-outline:hover,
.btn-shop:hover,
.btn-subscribe:hover,
.btn-checkout:hover,
.btn-shopping:hover,
.btn-form:hover,
.contact-form-wrap form button.submit-btn:hover,
.checkout-btn:hover,
.cart-action a.update-cart:hover,
.cart-action a.continue-shopping:hover,
.cart-bottom-area button.cart-submit:hover,
.cart-bottom-area button.coupon-submit:hover,
.shipping-btn:hover,
.checkout-coupon button:hover,
.menu-banner3 a.shop-btn:hover,
.product-action a:hover,
.btn-style-3:hover,
.product-buttons a:hover,
.cart-product-action a:hover,
.product-tab .nav li a.active,
.product-tab .nav li a:hover,
button.qty-btn:hover {
    background-color: var(--brand-primary-dark) !important;
    color: #fff !important;
}

/* Soft beige accent for hovered category chips, sub-nav, badges */
.category-sub a:hover,
.a-navigation > a:hover {
    background-color: var(--brand-primary-dark);
    color: #fff;
}

/* Selection uses primary brown for clarity (white text on dark brown) */
::-moz-selection {
    color: #fff;
    background: var(--brand-primary);
}
::selection {
    color: #fff;
    background: var(--brand-primary);
}

/* Subtle warm tint for striped table rows / hovered rows */
.cart__window ul li:nth-child(odd) {
    background: #f7efe1;
}

/* =====================================================
   Dark top header (matches the logo background #1e1e1e)
   ===================================================== */
.header-middle-area.theme-color {
    background-color: #1e1e1e;
    padding: 12px 0;
}

/* New round logo — kept compact so the header doesn't grow too tall */
.brand-logo {
    display: block;
    height: 64px;
    width: auto;
}

.logo a {
    display: inline-block;
    line-height: 0;
}

/* Phone block on the dark header — switch to light text + beige accents */
.header-middle-area.theme-color .support-icon {
    color: var(--brand-primary-light);
    border-color: var(--brand-primary-light);
}
.header-middle-area.theme-color .support-info p {
    color: #d6d6d6;
}
.header-middle-area.theme-color .support-info strong a {
    color: #fff;
}
.header-middle-area.theme-color .support-info strong a:hover {
    color: var(--brand-primary-light);
}

/* Search box on dark — light field with brown submit icon */
.header-middle-area.theme-color .search-box-inner .search-field {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #fff;
}
.header-middle-area.theme-color .search-box-inner .search-field::placeholder {
    color: #b5b5b5;
}
.header-middle-area.theme-color .search-box-inner .search-btn {
    color: var(--brand-primary-light);
}
.header-middle-area.theme-color .search-box-inner .search-btn:hover {
    color: #fff;
}

/* =====================================================
   Mobile header — same dark background, larger round logo
   ===================================================== */
.mobile-header {
    background-color: #1e1e1e;
}
.sticky.is-sticky.mobile-header {
    background-color: #1e1e1e;
}
.mobile-header-top {
    border-bottom-color: #2a2a2a;
}
.mobile-main-header {
    padding: 6px 0;
}
.mobile-logo {
    max-width: none;
    width: auto;
}
.brand-logo--mobile {
    height: 44px;
}

/* Hamburger / cart icons must be readable on dark */
.mobile-main-header .mobile-menu-toggler .mobile-menu-btn .off-canvas-btn,
.mobile-main-header .mobile-menu-toggler .mini-cart-wrap a {
    color: #fff;
}
.mobile-main-header .mobile-menu-toggler .mobile-menu-btn .off-canvas-btn:hover,
.mobile-main-header .mobile-menu-toggler .mini-cart-wrap a:hover {
    color: var(--brand-primary-light);
}

/* On very narrow screens leave a bit more breathing room around the logo */
@media (max-width: 575.98px) {
    .brand-logo--mobile {
        height: 38px;
    }
    .mobile-main-header .mobile-menu-toggler .mobile-menu-btn .off-canvas-btn {
        padding: 8px 10px;
    }
}

.a-desc {
    line-height: 1.1;
    font-size: 11px;
    height: 108px;
    overflow-y: hidden;
}

.a-item-content img {
    display: none;
}

.a-item-content:empty {
    display: none;
}

.has-sticky {
    padding-bottom: 62px;
}
.inner-wrapper-sticky {
    padding-bottom: 25px;
}

.a-content #dle-content {
    padding: 15px 0;
    background-color: #fff;
}

.a-cat #dle-content {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
    padding: 4px 0;
    background-color: transparent;
}

#dle-content:empty {
    display: none;
}
.a-navigation {
    display: flex;
    justify-content: center;
    padding: 0 0 30px;
}
.a-navigation > span,
.a-navigation > a
{
    color: #fff;
    font-size: 14px;
    display: inline-block;
    padding: 10px 20px;
    margin: 0 2.5px;
    text-align: center;
    border-radius: 4px;
    background-color: #a8a8a8;
}


.a-navigation > a {
    background: #a65e2e;
    cursor: pointer;
}

/* =====================================================
   Product card (vertical) — катализированный стиль
   Картинка сверху, описание по центру, цена и две кнопки
   («Подробнее» / «В корзину») в подвале
   ===================================================== */
.product-card.group-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ece4d3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    margin-bottom: 0;
    position: relative;
    -webkit-align-self: stretch;
    -ms-flex-item-align: stretch;
    align-self: stretch;
}

.product-card.group-item:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
    border-color: var(--brand-primary-light);
}

.product-card .group-item-thumb {
    max-width: none;
    -webkit-flex-basis: auto;
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
    width: 100%;
    height: 220px;
    background: #fff;
    padding: 0;
    border: 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

/* Внешняя ссылка от [full-link] — абсолютно на всю площадь thumb-блока,
   с flex-центровкой содержимого */
.product-card .group-item-thumb > a {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* Внутренняя ссылка <a class="highslide"> от DLE — тоже растягивается
   и центрирует картинку */
.product-card .group-item-thumb > a > a,
.product-card .group-item-thumb a.highslide {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    line-height: 0 !important;
}

/* Перебиваем зашитые DLE атрибуты width/height/align на <img>
   и заставляем картинку заполнить доступную область,
   сохраняя пропорции (object-fit: contain — без обрезки) */
.product-card .group-item-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    float: none !important;
    vertical-align: middle !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: transform 0.35s ease;
}

.product-card.group-item:hover .group-item-thumb img {
    transform: scale(1.05);
}

.product-card .a-product-notice {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    bottom: auto;
    z-index: 2;
    display: inline-block;
    width: auto;
    max-width: calc(100% - 16px);
    background: var(--brand-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide the legacy absolute price chip — price now lives in the footer */
.product-card .group-item-thumb .price {
    display: none;
}

.product-card .group-item-desc {
    position: static;
    padding: 10px 12px 0;
    max-width: none;
    -webkit-flex: 1 0 auto;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    text-align: center;
}

.product-card .group-item-desc h5.group-product-name {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .group-item-desc h5.group-product-name a {
    color: #252525;
}

.product-card .group-item-desc h5.group-product-name a:hover {
    color: var(--brand-primary);
}

.product-card .group-product-name__title {
    text-transform: none;
}

.product-card .a-desc {
    height: auto;
    max-height: 36px;
    overflow: hidden;
    color: #777;
    font-size: 12px;
    line-height: 1.35;
}

.product-card .group-item-footer {
    padding: 10px 12px 12px;
    text-align: center;
    margin-top: auto;
}

.product-card .group-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #252525;
    margin-bottom: 8px;
    line-height: 1.1;
}

.product-card .group-item-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.product-card .btn-detail,
.product-card .group-item-actions .add-to-cart-btn {
    display: -webkit-inline-box !important;
    display: -webkit-inline-flex !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.product-card .btn-detail {
    background: #fff;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
}

.product-card .btn-detail:hover,
.product-card .btn-detail:focus {
    background: var(--brand-primary-light);
    color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

.product-card .group-item-actions .add-to-cart-btn {
    background: var(--brand-primary);
    color: #fff;
    border: 1px solid var(--brand-primary);
    border-radius: 6px;
    padding: 0 10px;
}

.product-card .group-item-actions .add-to-cart-btn:hover,
.product-card .group-item-actions .add-to-cart-btn:focus {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
}

/* Карусели (Slick) — слайды-обёртки и карточка внутри тянутся на всю высоту */
.group-list-carousel,
.group-list-carousel .slick-track {
    align-items: stretch;
}
.group-list-carousel .slick-slide,
.group-list-carousel .slick-slide > div,
.group-list-carousel .group-slide-item {
    height: auto !important;
}
.group-list-carousel .group-slide-item {
    height: 100%;
}
.group-list-carousel .group-slide-item .product-card.group-item {
    height: 100%;
}

/* Категорийная сетка — каждая ячейка сама по себе flex (align-self: stretch
   делает её одинаковой по высоте с самой высокой в строке) */
#dle-content > .group-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

@media (max-width: 575.98px) {
    .product-card .group-item-thumb {
        height: 180px;
    }
    .product-card .group-item-actions {
        flex-direction: column;
    }
    .product-card .btn-detail,
    .product-card .group-item-actions .add-to-cart-btn {
        width: 100%;
    }
}

.product-thumb {
    height: 76px;
}

.a-content {
    padding: 20px;
}

.a-content #dle-content {
    padding: 30px;
}

.body-bg {
    min-height: calc(100vh - 328px);
}

.a-product-h2 {
    display: block;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
}
@media only screen and (max-width: 991.98px) and (min-width: 768px), only screen and (max-width: 767.98px){
    .header-area {
        min-height: 52px;
    }
}


/* Реальный зазор задаётся через flex `gap` на родителе (.a-cat #dle-content),
   тут просто рассчитываем ширину одного айтема под нужное число колонок */
#dle-content > .group-item {
    width: calc(25% - 15px);  /* 4 колонки, 3 промежутка по 20px */
    padding: 0;
    margin: 0;
}

@media (max-width: 1199.98px) {
    #dle-content > .group-item {
        width: calc(33.3333% - 13.34px);  /* 3 колонки, 2 промежутка */
    }
}
@media (max-width: 991.98px) {
    #dle-content > .group-item {
        width: calc(50% - 10px);  /* 2 колонки, 1 промежуток */
    }
}
@media (max-width: 575.98px) {
    #dle-content > .group-item {
        width: 100%;
    }
}

.gallery.xfieldimagegallery {
    display: flex;
    flex-wrap: wrap;
}
.gallery.xfieldimagegallery a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    
}
.gallery.xfieldimagegallery li {
    min-width: 18%;
    max-width: 18%;
    text-align: center;
    padding: 5px;
    box-sizing: content-box;
    transition: .1s linear;
}
.gallery.xfieldimagegallery li img:hover {
    box-shadow: none;
}
.gallery.xfieldimagegallery li:hover {
    opacity: .8
}
.gallery.xfieldimagegallery a h4 {
    padding-top: 10px;
    font-size: 12px;
    font-weight: normal
}

.product-poster .xfieldimagegallery {
    display: flex;
    flex-direction: column;
}

.product-poster .xfieldimagegallery img {
    width: auto;
    height: auto;
}

.xfieldimagegallery li img {
    object-fit: contain;
}

.product-details-inner td {
    padding: 5px;
    border: 1px solid #eee;
    font-size: 11px;
}


.xfieldimagegallery li img:hover {
    box-shadow: none;
}

.product-poster li {
    /* background-color: #eee; */
    padding: 20px;
}

.product-poster li a {
    display: block;
    
}
.product-poster li img {
    display: block;
    width: 100%!important;
    max-height: 400px;
}

#searchsuggestions {
    width: 470px;
    border-radius: 20px;
    overflow: hidden
}
#searchsuggestions .seperator {
    display: none!important;
}

.xfieldimagegallery li img {
    border: none!important;
}

.search-box-wrapper {
    width: 470px;
}

.category-sub {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    background: #fff;
    margin-bottom: 10px;
}

.category-sub li {
}

.category-sub a {
    display: block;
    padding: 10px;
    font-size: 12px;
    background: #a65e2e;
    margin: 2.5px;
    border-radius: 4px;
    color: #fff;
}

.formyContainer {
    background: #fff;
    padding: 20px;
}
.formiyBtn1 {
    padding: 10px 20px;
    background-color: #a65e2e;
}

/* Legacy .price chip / .show-price toggle styles removed —
   new product card has its own .group-item-price in the footer */

.cart__empty {
    display: inline;
}

.price-full {
    padding: 10px 0;
    font-size: 32px;
    color: #a65e2e;
}

.cart {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 30px;
}

.cart.active {
    display: flex;
}

.cart__window {
    background: #fff;
    padding: 30px;
    width: 400px;
    border: 1px solid #ccc;
    pointer-events: auto;
}

.cart__window h3 {
 font-size: 18px;
  margin: 0 0 20px
}

a.cart__buy {
    background: #a65e2e;
    display: inline-block;
    line-height: 1;
    padding: 10px 20px;

	min-width: max-content;
    color: #fff;
}


.cart__window ul a {
    color: #333;
    padding: 5px 10px;
    display: block;
    font-size: 12px;
}

.cart__window ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart__window ul li:nth-child(odd) {
    background: #eee;
}

.cart__window ul li span {
    background: #a65e2e;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 5px;
    border-radius: 4px;
}

.cart__item-remove {
    background: #DD0F0F!important;
    display: none;
    cursor: pointer;
}

.cart__window ul li:hover .cart__item-remove {
    display: inline-block
}

.cart__window ul li:hover .cart__item-price {
    display: none;
}
.cart__window ul {
    max-height: 210px;
    overflow-y: auto;
}

.cart__amount {
    padding: 20px 0;
    font-size: 16px;
}

.cart__clear {
    font-size: 12px;
    font-weight: lighter;
    margin-left: 5px;
    cursor: pointer;
    display: none;
}


.cart__current-amount {
    font-size: 20px;
    margin-left: 5px;
}
input.cart__phone {
   height: auto;
   padding: 5px 10px;
}

.cart__form {
 display: none;
}

.cart__window.not-empty .cart__form {
    display: flex;
}


.cart__window.not-empty .cart__empty {
    display: none;
}

.cart__window.not-empty .cart__clear {
    display: inline;
}

.cart__window {
 position: relative;   
}
.cart__minimize {
 position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
}

.open-cart-btn {
    display: none;
 	bottom: 50px;
    cursor: pointer;
    height: 50px;
    position: fixed;
    right: 80px;
    text-align: center;
    width: 50px;
    z-index: 9999;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
    border-radius: 50%;
    background-color: #a65e2e;
    -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);

}

.open-cart-btn.active {
    display: block
}

.open-cart-btn i {
    line-height: 50px;
    color: #fff;
    font-size: 25px;
}

.open-cart-btn.active {
    
}

.border-top-separator {
    border-top: 1px solid #ccc;
    margin-top: 12px;
    padding-top: 10px;
}


.a-triple-block {
    padding: 0 15px 0;
    width: 100%;
    margin-top: 15px;
}

.a-triple-block__inner {
	padding: 20px;
	background-color: #fff;
    
}

.a-triple-block__list {
    display: flex;
    justify-content: space-between;
}

.a-triple-block__list > * {
	margin: 10px;
}

@media (max-width: 992px){
    .a-triple-block__list {
     flex-wrap: wrap;   
    }
    .a-triple-block__list > * {
     width: 100%
         margin: 0 0 20px;
    }
}

.a-triple-block__title {
 	font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: #252525;
    padding-bottom: 20px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 20px;
}

.hit-sup {
    background: red;
    color: #fff;
	padding: 1px 3px;
    border-radius: 3px;
}

/* =====================================================
   Category menu on the home page
   -----------------------------------------------------
   Sizes per-card are configurable through inline CSS
   variables on .category-card:
       --card-img-w  — width of the right-side image area
       --card-img-h  — total card height
   Default fallbacks are defined below.
   ===================================================== */
.category-menu .row {
    --card-gap: 30px;
    row-gap: var(--card-gap);
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--card-img-h, 160px);
    padding: 24px 28px;
    background: #fff;
    color: #252525;
    text-decoration: none;
    border: 1px solid #ece4d3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.category-card:focus {
    color: #252525;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
    border-color: var(--brand-primary-light);
}

.category-card__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #252525;
    z-index: 1;
    /* запрещаем дробить слова посимвольно; длинное слово
       либо целиком помещается в строку, либо переносится целиком */
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

.category-card__img {
    flex: 0 0 auto;
    /* Единый визуальный размер для всех 6 категорий: вписываем любое фото в один прямоугольник */
    width: 140px;
    height: 130px;
    max-width: 45%;
    object-fit: contain;
    object-position: right center;
    transition: transform 0.35s ease;
}

.category-card:hover .category-card__img {
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .category-card {
        height: calc(var(--card-img-h, 160px) * 0.9);
        padding: 18px 16px;
    }
    .category-card__title {
        font-size: 13px;
    }
    .category-card__img {
        width: 110px;
        height: 105px;
    }
}

@media (max-width: 575.98px) {
    .category-card {
        padding: 14px 14px;
    }
    .category-card__title {
        font-size: 12px;
    }
    .category-card__img {
        width: 95px;
        height: 90px;
    }
}

/* =====================================================
   Brand row on the home page
   -----------------------------------------------------
   White card per brand, logos sit on a white background
   (так и должно быть — логотипы у заказчика на белом).
   Высоту конкретного логотипа можно задать инлайново
   через --brand-logo-h на .brand-card (по умолчанию 50px).
   ===================================================== */
.brands-row {
    padding-top: 0;
}

.brands-row__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
}

.brand-card {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #ece4d3;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}

.brand-card:hover,
.brand-card:focus {
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
    border-color: var(--brand-primary-light);
}

.brand-card__logo {
    display: block;
    height: var(--brand-logo-h, 50px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.brand-card:hover .brand-card__logo {
    transform: scale(1.04);
}

@media (max-width: 767.98px) {
    .brands-row__inner {
        gap: 16px;
    }
    .brand-card {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        padding: 18px 20px;
    }
}

@media (max-width: 479.98px) {
    .brands-row__inner {
        flex-direction: column;
        gap: 12px;
    }
    .brand-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }
    .brand-card__logo {
        height: calc(var(--brand-logo-h, 50px) * 0.9);
    }
}

/* =====================================================
   Footer — branches section ("Наши филиалы")
   -----------------------------------------------------
   Лежит между .footer-top и .footer-bottom-area, в тёмной части
   подвала. Чтобы добавить ещё филиал — скопируйте один блок
   <div class="col-lg-3 col-md-6"> ... </div> в footer.tpl.
   ===================================================== */
.footer-branches {
    padding: 10px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-branches__title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 24px;
    padding-top: 30px;
}

.footer-branches .row {
    row-gap: 20px;
}

.footer-branch {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
}

.footer-branch__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary-light, #e0cd9e);
    background: rgba(166, 94, 46, 0.12);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
}

.footer-branch__text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    color: #c4cacf;
}

.footer-branch__text strong {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.footer-branch__text span {
    color: #81898f;
    font-size: 13px;
}

@media (max-width: 575.98px) {
    .footer-branches {
        padding: 0 0 30px;
    }
    .footer-branches__title {
        padding-top: 20px;
        margin-bottom: 18px;
        font-size: 15px;
    }
}

/* =====================================================
   "В корзину" — кнопка-морф (label / done)
   ===================================================== */
.add-to-cart-btn {
    position: relative;
    overflow: hidden;
}
.add-to-cart-btn .add-to-cart-btn__label,
.add-to-cart-btn .add-to-cart-btn__done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.add-to-cart-btn .add-to-cart-btn__done {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(50%);
    opacity: 0;
    color: #fff;
}
.add-to-cart-btn .add-to-cart-btn__done::before {
    content: "\f00c";
    font-family: FontAwesome;
    margin-right: 6px;
    font-size: 12px;
}
.add-to-cart-btn.is-added .add-to-cart-btn__label {
    transform: translateY(-100%);
    opacity: 0;
}
.add-to-cart-btn.is-added .add-to-cart-btn__done {
    transform: translateY(-50%);
    opacity: 1;
}
.add-to-cart-btn.is-added {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
}

/* =====================================================
   Floating cart FAB + badge
   ===================================================== */
.cart-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-primary, #a65e2e);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.25s ease;
    text-decoration: none;
}
.cart-fab:hover,
.cart-fab:focus {
    background: var(--brand-primary-dark, #633b21);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.cart-fab i {
    font-size: 22px;
    line-height: 1;
}
.cart-fab__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #fff;
    color: var(--brand-primary, #a65e2e);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    border: 2px solid var(--brand-primary, #a65e2e);
    box-sizing: content-box;
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.cart-fab__badge.is-visible {
    transform: scale(1);
}
.cart-fab__badge.is-bumping {
    animation: cartBadgeBump 0.35s ease-out;
}
@keyframes cartBadgeBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
@media (max-width: 575.98px) {
    .cart-fab {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
    .cart-fab i { font-size: 20px; }
}

/* =====================================================
   Cart drawer (slide-in from right)
   ===================================================== */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
}
.cart-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}
.cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-drawer.is-open .cart-drawer__backdrop {
    opacity: 1;
}

.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}
.cart-drawer.is-open .cart-drawer__panel {
    transform: translateX(0);
}

.cart-drawer__header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #ece4d3;
}
.cart-drawer__title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.cart-drawer__title > span:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #252525;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.cart-drawer__count {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.cart-drawer__close {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.cart-drawer__close:hover {
    background: #f4eee0;
    color: var(--brand-primary, #a65e2e);
}

.cart-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 16px;
    /* убираем дёрганье из-за скроллбара, если он то появляется, то нет */
    scrollbar-gutter: stable;
}
.cart-drawer__empty {
    display: none;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 24px;
    color: #888;
}
.cart-drawer.is-empty .cart-drawer__empty {
    display: flex;
}
.cart-drawer.is-empty .cart-drawer__body,
.cart-drawer.is-empty .cart-drawer__footer {
    display: none;
}
.cart-drawer__empty-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #f7efe1;
    color: var(--brand-primary-light, #e0cd9e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 16px;
}
.cart-drawer__empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #252525;
    margin: 0 0 6px;
}
.cart-drawer__empty-text {
    font-size: 13px;
    color: #888;
    margin: 0;
    max-width: 280px;
}

/* --- Cart items --- */
.cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 8px;
    border-bottom: 1px solid #f1ece0;
    /* плавное схлопывание при удалении (height/padding/margin/opacity) */
    transition:
        height 0.22s ease,
        padding-top 0.22s ease,
        padding-bottom 0.22s ease,
        margin-top 0.22s ease,
        margin-bottom 0.22s ease,
        opacity 0.18s ease;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item.is-removing { pointer-events: none; }

/* Только что добавленный товар — короткая fade-in анимация (без горизонтального сдвига) */
.cart-item.is-new {
    animation: cartItemFadeIn 0.28s ease-out;
}
@keyframes cartItemFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.cart-item__thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #fafafa;
    border: 1px solid #ece4d3;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    color: #ccc;
    font-size: 22px;
}
.cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart-item__thumb.is-empty::after,
.cart-item__thumb:empty::after {
    content: "\f07a"; /* fa-shopping-cart in FA4 */
    font-family: FontAwesome;
    color: #d9d2c2;
    font-size: 20px;
}
.cart-item__main {
    min-width: 0;
}
.cart-item__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #252525;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 6px;
    text-decoration: none;
}
.cart-item__name:hover {
    color: var(--brand-primary, #a65e2e);
    text-decoration: none;
}
.cart-item__color {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 2px 8px 2px 4px;
    background: #fdf6ec;
    border: 1px solid #ece4d3;
    border-radius: 10px;
    color: #6b5a3a;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    max-width: 100%;
    word-break: break-word;
}
.cart-item__color-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary, #a65e2e);
    flex-shrink: 0;
}
.cart-item__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cart-item__qty {
    display: inline-flex;
    align-items: center;
    background: #f7efe1;
    border-radius: 6px;
    overflow: hidden;
}
.cart-item__qty-btn {
    border: 0;
    width: 26px;
    height: 26px;
    background: transparent;
    color: var(--brand-primary, #a65e2e);
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.cart-item__qty-btn:hover {
    background: rgba(166, 94, 46, 0.15);
}
.cart-item__qty-val {
    min-width: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #252525;
}
.cart-item__subtotal {
    font-size: 13px;
    font-weight: 700;
    color: #252525;
    white-space: nowrap;
}
.cart-item__remove {
    border: 0;
    background: transparent;
    color: #c4c4c4;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.cart-item__remove:hover {
    background: #fff0f0;
    color: #d9534f;
}

/* --- Footer --- */
.cart-drawer__footer {
    flex: 0 0 auto;
    border-top: 1px solid #ece4d3;
    padding: 16px 24px 20px;
    background: #fff;
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}
.cart-summary__total {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary, #a65e2e);
}

.cart-checkout {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart-checkout__label {
    font-size: 12px;
    color: #888;
    margin: 0;
}
.cart-checkout__phone {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ece4d3;
    border-radius: 6px;
    background: #fff;
    color: #252525;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cart-checkout__phone:focus {
    outline: 0;
    border-color: var(--brand-primary, #a65e2e);
    box-shadow: 0 0 0 3px rgba(166, 94, 46, 0.15);
}
.cart-checkout__submit {
    position: relative;
    height: 46px;
    background: var(--brand-primary, #a65e2e);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.05s ease;
    overflow: hidden;
}
.cart-checkout__submit:hover {
    background: var(--brand-primary-dark, #633b21);
}
.cart-checkout__submit:active {
    transform: scale(0.98);
}
.cart-checkout__submit-loader {
    display: none;
}
.cart-checkout__submit.is-loading .cart-checkout__submit-label { display: none; }
.cart-checkout__submit.is-loading .cart-checkout__submit-loader { display: inline; }
.cart-checkout__submit.is-loading {
    background: var(--brand-primary-dark, #633b21);
    cursor: progress;
}
.cart-checkout__note {
    font-size: 11px;
    color: #999;
    margin: 4px 0 0;
    text-align: center;
}

.cart-drawer__clear {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 8px;
    background: transparent;
    border: 0;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}
.cart-drawer__clear:hover { color: #d9534f; }

@media (max-width: 575.98px) {
    .cart-drawer__panel {
        width: 100%;
    }
    .cart-drawer__header { padding: 14px 16px; }
    .cart-drawer__footer { padding: 14px 16px 18px; }
}

/* Disable body scroll while drawer is open */
body.cart-drawer-open {
    overflow: hidden;
}

/* =====================================================
   Toast notifications (top-right)
   ===================================================== */
.cart-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100% - 40px);
}
.cart-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4CAF50;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    pointer-events: auto;
}
.cart-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}
.cart-toast__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #ece4d3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-toast__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart-toast__thumb.is-empty::after,
.cart-toast__thumb:empty::after {
    content: "\f00c"; /* fa-check */
    font-family: FontAwesome;
    color: #4CAF50;
    font-size: 16px;
}
.cart-toast__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.cart-toast__body {
    flex: 1 1 auto;
    min-width: 0;
}
.cart-toast__title {
    font-size: 13px;
    font-weight: 600;
    color: #252525;
    line-height: 1.3;
}
.cart-toast__text {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .cart-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .cart-toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* ==========================================================================
   Cart success modal — показывается после успешного оформления заказа
   ========================================================================== */
.cart-success-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cart-success-modal.is-open {
    display: flex;
}
.cart-success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: cartSuccessFade 0.2s ease-out;
}
.cart-success-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: cartSuccessPop 0.25s cubic-bezier(.2, .8, .25, 1.05);
}
.cart-success-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.cart-success-modal__close:hover {
    background: #f5efe4;
    color: #a65e2e;
}
.cart-success-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.12);
}
.cart-success-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #252525;
    margin: 0 0 10px;
    line-height: 1.25;
}
.cart-success-modal__text {
    font-size: 14px;
    line-height: 1.55;
    color: #555;
    margin: 0 0 22px;
}
.cart-success-modal__ok {
    display: inline-block;
    min-width: 140px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: #a65e2e;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 6px 16px rgba(166, 94, 46, 0.25);
}
.cart-success-modal__ok:hover {
    background: #8b4d24;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(166, 94, 46, 0.32);
}
.cart-success-modal__ok:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(166, 94, 46, 0.2);
}

@keyframes cartSuccessFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cartSuccessPop {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

body.cart-success-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .cart-success-modal__panel {
        padding: 28px 20px 20px;
        border-radius: 12px;
    }
    .cart-success-modal__icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    .cart-success-modal__title {
        font-size: 18px;
    }
    .cart-success-modal__text {
        font-size: 13.5px;
    }
}

/* ==========================================================================
   Product gallery (fullstory) — Slick carousel + color chips
   ========================================================================== */

.product-gallery {
    position: relative;
    background: #fff;
    border: 1px solid #ece4d3;
    border-radius: 10px;
    padding: 16px;
}

.product-gallery__main {
    position: relative;
    background: #fafaf7;
    border-radius: 6px;
    overflow: hidden;
    min-height: 280px;
}

.product-gallery__main .pg-slide {
    text-align: center;
    position: relative;
}

.product-gallery__main .pg-slide__link {
    display: inline-block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.product-gallery__main .pg-slide__zoom {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #6b5a3a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    pointer-events: none;
}

.product-gallery__main .pg-slide__link:hover .pg-slide__zoom,
.product-gallery__main .pg-slide__link:focus .pg-slide__zoom {
    opacity: 1;
    transform: scale(1);
}

.product-gallery__main .pg-slide__link:hover .pg-slide__zoom {
    background: #b8865d;
    color: #fff;
}

@media (hover: none) {
    .product-gallery__main .pg-slide__zoom {
        opacity: 1;
        transform: scale(1);
    }
}

.product-gallery__main .pg-slide img {
    max-width: 100%;
    max-height: 480px;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.product-gallery__thumbs {
    margin-top: 10px;
}

.product-gallery__thumbs .pg-thumb {
    padding: 4px;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
}

.product-gallery__thumbs .pg-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #fafaf7;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-gallery__thumbs .slick-current .pg-thumb img,
.product-gallery__thumbs .slick-active.slick-center .pg-thumb img {
    border-color: #b8865d;
    box-shadow: 0 2px 8px rgba(184, 134, 93, 0.25);
}

.product-gallery__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0ebe0;
}

.product-gallery__colors:empty {
    display: none;
}

.color-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid #ece4d3;
    border-radius: 50%;
    background: #fff center/cover no-repeat;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    font-size: 0;
    outline: none;
}

.color-chip:hover {
    border-color: #d4b58a;
    transform: scale(1.06);
}

.color-chip.is-active {
    border-color: #b8865d;
    box-shadow: 0 0 0 3px rgba(184, 134, 93, 0.18);
}

.color-chip--all {
    background: linear-gradient(135deg, #f5e6c8 0%, #d4b58a 50%, #b8865d 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.color-chip--all .color-chip__label {
    font-size: 10px;
    line-height: 1;
}

.color-chip__name {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2b2b2b;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.color-chip:hover .color-chip__name {
    opacity: 1;
}

.product-gallery__colors-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ece4d3;
    color: #8a7a5c;
    font-size: 11px;
    font-style: italic;
    cursor: help;
    margin-left: 4px;
}

.product-gallery__empty {
    display: none;
    text-align: center;
    padding: 20px;
    color: #8a7a5c;
    font-style: italic;
}

.product-gallery--no-match .product-gallery__main,
.product-gallery--no-match .product-gallery__thumbs {
    display: none !important;
}

.product-gallery--no-match .product-gallery__empty {
    display: block;
}

.product-gallery--single .product-gallery__thumbs {
    display: none;
}

.product-gallery .pg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ece4d3;
    color: #6b5a3a;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-gallery .pg-arrow:hover {
    background: #b8865d;
    color: #fff;
    border-color: #b8865d;
}

.product-gallery .pg-arrow--prev { left: 8px; }
.product-gallery .pg-arrow--next { right: 8px; }

/* "В корзину" — крупный вариант на странице товара */
.product-actions {
    margin: 18px 0 22px;
}

.add-to-cart-btn--lg {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 50px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    background: var(--brand-primary, #b8865d);
    color: #fff;
    border: 1px solid var(--brand-primary, #b8865d);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(184, 134, 93, 0.18);
}

.add-to-cart-btn--lg:hover,
.add-to-cart-btn--lg:focus {
    background: var(--brand-primary-dark, #a47550);
    border-color: var(--brand-primary-dark, #a47550);
    color: #fff;
    box-shadow: 0 4px 12px rgba(184, 134, 93, 0.28);
    text-decoration: none;
}

.add-to-cart-btn--lg:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(184, 134, 93, 0.2);
}

.add-to-cart-btn--lg .add-to-cart-btn__label,
.add-to-cart-btn--lg .add-to-cart-btn__done {
    width: 100%;
}

.add-to-cart-btn--lg .add-to-cart-btn__label .fa {
    margin-right: 8px;
    font-size: 16px;
}

/* отключаем CSS-генерированную галочку в большой версии — у нас её нет в разметке */
.add-to-cart-btn--lg .add-to-cart-btn__done::before {
    content: "\f00c";
    font-family: FontAwesome;
    margin-right: 8px;
    font-size: 14px;
}

/* ==========================================================================
   Product card swatches (shortstory / shortstory-mini)
   ========================================================================== */

.product-card__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-top: 8px;
}

.product-card__swatches:empty {
    display: none;
}

.card-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ece4d3;
    background: #fafaf7 center/cover no-repeat;
    cursor: help;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.card-swatch--more {
    background: #f5f3ef;
    width: auto;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    color: #8a7a5c;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.product-card.is-filtered-out {
    display: none !important;
}

/* ==========================================================================
   Catalog toolbar (sort + filters)
   ========================================================================== */

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    background: #fff;
    border: 1px solid #ece4d3;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 5;
}

.catalog-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-toolbar__sort label {
    margin: 0;
    color: #6b5a3a;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.catalog-sort {
    height: 36px;
    padding: 0 30px 0 10px;
    border: 1px solid #ece4d3;
    border-radius: 6px;
    background: #fff;
    color: #2b2b2b;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%236b5a3a'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.catalog-sort:focus {
    outline: none;
    border-color: #b8865d;
    box-shadow: 0 0 0 3px rgba(184, 134, 93, 0.15);
}

.catalog-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
}

.catalog-filter {
    position: relative;
}

.catalog-filter__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ece4d3;
    border-radius: 6px;
    background: #fff;
    color: #2b2b2b;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.catalog-filter__toggle:hover {
    border-color: #d4b58a;
}

.catalog-filter.has-selected .catalog-filter__toggle {
    border-color: #b8865d;
    background: #fdf6ec;
    color: #6b5a3a;
}

.catalog-filter.is-open .catalog-filter__toggle {
    border-color: #b8865d;
    background: #fdf6ec;
}

.catalog-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #b8865d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.catalog-filter__toggle .ion-chevron-down {
    font-size: 11px;
    margin-left: 2px;
    transition: transform 0.18s ease;
}

.catalog-filter.is-open .catalog-filter__toggle .ion-chevron-down {
    transform: rotate(180deg);
}

.catalog-filter__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ece4d3;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    display: none;
    z-index: 50;
}

.catalog-filter.is-open .catalog-filter__menu {
    display: block;
}

.catalog-filter__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    margin: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: #2b2b2b;
    transition: background 0.15s ease;
}

.catalog-filter__item:hover {
    background: #fdf6ec;
}

.catalog-filter__item input[type="checkbox"] {
    margin: 0;
    accent-color: #b8865d;
}

.catalog-filter__item em {
    margin-left: auto;
    color: #8a7a5c;
    font-style: normal;
    font-size: 11px;
}

.catalog-filter__item--color .catalog-filter__swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ece4d3;
    background: #fafaf7 center/cover no-repeat;
    flex-shrink: 0;
}

.catalog-reset {
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #b8865d;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.catalog-reset:hover {
    background: #fdf6ec;
    color: #6b5a3a;
}

.catalog-toolbar__count {
    margin-left: auto;
    color: #6b5a3a;
    font-size: 13px;
}

.catalog-count {
    font-weight: 700;
    color: #2b2b2b;
}

.catalog-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px dashed #ece4d3;
    border-radius: 8px;
    margin: 18px 0;
}

.catalog-empty p {
    color: #6b5a3a;
    margin-bottom: 14px;
    font-size: 15px;
}

.catalog-empty .catalog-reset {
    background: #b8865d;
    color: #fff;
    padding: 10px 22px;
    height: auto;
    border-radius: 6px;
}

.catalog-empty .catalog-reset:hover {
    background: #a47550;
    color: #fff;
}

/* Slick override — bullet dots */
.product-gallery .slick-dots {
    bottom: 8px;
}

.product-gallery .slick-dots li button:before {
    color: #b8865d;
    opacity: 0.4;
    font-size: 8px;
}

.product-gallery .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #b8865d;
}

/* Responsive */
@media (max-width: 991px) {
    .product-gallery__main .pg-slide img {
        max-height: 360px;
    }
}

@media (max-width: 767px) {
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .catalog-toolbar__sort,
    .catalog-toolbar__filters {
        width: 100%;
    }
    .catalog-toolbar__filters {
        gap: 6px;
    }
    .catalog-filter,
    .catalog-filter__toggle {
        flex: 1 1 calc(50% - 3px);
    }
    .catalog-filter__menu {
        left: 0;
        right: 0;
        min-width: 0;
    }
    .catalog-toolbar__count {
        margin-left: 0;
        text-align: center;
        width: 100%;
        font-size: 12px;
    }
    .product-gallery__main .pg-slide img {
        max-height: 320px;
    }
    .product-gallery__thumbs .pg-thumb img {
        height: 56px;
    }
    .color-chip {
        width: 32px;
        height: 32px;
    }
    .add-to-cart-btn--lg {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .product-gallery {
        padding: 10px;
    }
    .product-gallery .pg-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Lightbox (увеличенный слайдер при клике на фото товара)
   ========================================================================== */

body.pg-lightbox-open {
    overflow: hidden;
}

.pg-lightbox {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 20, 0.92);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pg-lightbox.is-open {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.pg-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pg-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(90deg);
}

.pg-lightbox__stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    box-sizing: border-box;
}

.pg-lightbox__slider {
    width: 100%;
    max-width: 1200px;
    max-height: 100%;
}

.pg-lightbox__slider .slick-list,
.pg-lightbox__slider .slick-track {
    height: 100%;
}

.pg-lb-slide {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 120px);
    text-align: center;
    outline: none;
}

.pg-lb-slide img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.pg-lb-slide__caption {
    margin-top: 16px;
    color: #fff;
    font-size: 14px;
    opacity: 0.85;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    display: inline-block;
}

.pg-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pg-lb-arrow:hover {
    background: rgba(255, 255, 255, 0.24);
}

.pg-lb-arrow--prev { left: 10px; }
.pg-lb-arrow--next { right: 10px; }

.pg-lightbox .slick-dots {
    bottom: 16px;
}

.pg-lightbox .slick-dots li button:before {
    color: #fff;
    opacity: 0.5;
    font-size: 10px;
}

.pg-lightbox .slick-dots li.slick-active button:before {
    color: #fff;
    opacity: 1;
}

@media (max-width: 767px) {
    .pg-lightbox__stage {
        padding: 50px 12px 40px;
    }
    .pg-lb-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .pg-lb-arrow--prev { left: 4px; }
    .pg-lb-arrow--next { right: 4px; }
    .pg-lb-slide {
        height: calc(100vh - 100px);
    }
    .pg-lb-slide img {
        max-height: calc(100vh - 130px);
    }
    .pg-lightbox__close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}