/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== COLORS ===== */
:root {
    --color-bg: #FDF8F7;
    --color-white: #FFFFFF;
    --color-primary: #5F4433;
    --color-primary: #5F4433;
    --color-accent: #8B6F5E;
    --color-strikethrough: #CAA05E;
    --color-sale: #D12531;
    --color-black: #252525;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--color-primary);
    background-color: var(--color-bg);
}

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

[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

a:hover {
    color: var(--color-accent);
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

input:focus {
    outline: none;
}

input, textarea {
    font-family: inherit;
}

input[type="checkbox"] {
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* ===== CONTAINERS (XL — base) ===== */
/* .header > .container {
    max-width: 1440px;
    padding: 0 24px;
} */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}
@media (max-width: 1439.98px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1440px) {
    
}

/* ===== 1. HEADER ===== */
.header {
    background-color: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #5F443326;
}

.header-top {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
}

.header-logo {
    display: block;
    height: 100%;
    align-items: center;
    padding-bottom: 13px;
}

.header-logo img {
    max-width: 307px;
    min-width: 307px;
}

.header-nav-wrapper {
    display: flex;
}

.header-middle {
    min-height: 100%;
    display: flex;
    align-items: end;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav a {
    font-size: 13px;
    padding: 13.21px 11.48px;
    text-transform: uppercase;
    color: var(--color-primary);
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
}

.header-nav a:hover, .header-nav a.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: end;
    /* justify-content: space-between;
    gap: 5px; */
    position: relative;
    padding-top: 5px;
    padding-bottom: 10px;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    height: 100%;
}

@media (min-width: 1440px) {
    .header-logo, .header-right {
        width: 307px;
    }
}

.header-search {
    display: flex;
    align-items: center;
    gap: 1px;
}

@media (min-width: 1200px) {
    .header-search {
        position: absolute;
        top: 0;
        right: 160px;
    }
}

@media (max-width: 1439.98px) and (min-width: 1200px) {
    .header-right {
        width: 150px;
    }
}

.header-search input {
    width: 260px;
    height: 29px;
    border: 1px solid #5F44331A;
    border-radius: 1px;
    padding: 8px;
    font-size: 12px;
    /* font-size: 13px;
    background: var(--color-white);
    color: var(--color-primary); */
}

.header-search input::placeholder {
    /* color: var(--color-strikethrough); */
}

.header-search button {
    /* position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%); */
    color: var(--color-white);
    background-color: var(--color-primary);
    height: 29px;
    width: 37px;
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-contacts-phone {
    font-size: 12px;
    font-weight: 700;
}

.header-contacts-callback, .header-account {
    font-size: 11px;
    gap: 7px;
    display: flex;
    align-items: center;
}

#toTop {
    display: none;
    position: fixed;
    /* bottom: 10px; */
    bottom: 80px;
    /* right: 10px; */
    right: 48px;
    width: 36px;
    height: 36px;
    border-radius: 3px;
    background-color: #CE9F51;
    color: #fff;
    z-index: 1000;
}

#msMiniCart.top-cart-contain {
    right: 10px;
    z-index: 1000;
    bottom: 10px;
    /* top: calc(100% + 10px); */
    position: fixed;
    /* position: absolute; */
    font-size: 10px;
    width: unset;
    padding-top: 20px;
    min-width: 108px;
    text-align: center;
}

#msMiniCart.top-cart-contain .cart-box img {
    width: 36px;
    margin: 0 auto;
    margin-bottom: 5px;
}

#msMiniCart .top-cart-content {
    width: 300px;
    position: absolute;
    bottom: 70px;
    right: 0px;
    background: #fff;
    box-shadow: 0 0 15px -5px rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

#mc-dynamic .detail-item {
    margin: 5px 0 10px;
    text-align: left;
}

#mc-dynamic .product-details {
    font-size: 12px;
    margin-bottom: 2px;
}
#mc-dynamic .product-details-bottom, #mc-dynamic .price {
    font-size: 14px;
}

/* ===== DROPDOWN MENU ===== */
.header-dropdown, .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-top: 1px solid #5F443326;
    border-bottom: 1px solid #5F443326;
    z-index: 99;
}

.header-dropdown {
    padding: 50px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.header-dropdown.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.header-dropdown-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.header-dropdown-links {
    width: calc(50% - 15px);
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.header-dropdown-all {
    flex-basis: 100%;
}

.header-col-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 15px;
}

.header-col-title a {
    display: list-item;
}

.header-dropdown-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* list-style: disc;
    padding-left: 15px; */
}

/* .header-dropdown-col ul li a {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-primary);
    transition: color 0.2s;
} */

.header-dropdown-col ul li a:hover {
    color: var(--color-accent);
}

.header-dropdown-all, .mobile-see-all {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-dropdown-image {
    /* flex-shrink: 0;
    width: 480px;
    height: 280px;
    overflow: hidden; */
    width: calc(50% - 15px);
}

.header-dropdown-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#toTopHover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
}

/* Burger menu (hidden on desktop) */
.header-burger {
    display: none;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    overflow-y: auto;
}

@media (max-width: 767.98px) {
    .mobile-nav.active {
        display: block;
    }

    .mobile-nav-list, .mobile-info {
        padding: 15px;
        display: flex;
        flex-direction: column;
    }
    .mobile-nav-list {
        gap: 24px;
    }
    .mobile-info {
        gap: 15px;
    }

    .mobile-nav-list li a {
        display: block;
    }

    .has-submenu {
        position: relative;
    }

    .mobile-nav-list .mobile-submenu-toggle {
        display: flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
    }

    .submenu-arrow {
        font-size: 8px;
        transition: transform 0.3s;
        display: inline-block;
        margin-left: 7px;
    }

    .has-submenu.open .submenu-arrow {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        display: none;
        margin-top: 24px;
    }

    .mobile-submenu.open {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .mobile-submenu-cols {
        display: flex;
        gap: 15px;
        position: relative;
    }

    .mobile-submenu-col {
        flex: 1;
    }

    .mobile-submenu-col ul {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-submenu-image img {
        width: 100%;
        object-fit: cover;
    }

    /* Custom scrollbar for mobile nav */
    .mobile-nav::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .mobile-nav::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 4px;
    }
}

/* ===== 2. BANNER SLIDER ===== */
.banner {
    max-width: 100%;
    /* height: 606px; */
    overflow: hidden;
    position: relative;
}

.banner .swiper {
    width: 100%;
    height: 100%;
}

.banner .swiper-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    aspect-ratio: 1920 / 755;
}

.banner .swiper-slide img,
.banner .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .swiper-pagination {
    bottom: 20px;
}

.banner .swiper-pagination-bullet {
    background: var(--color-bg);
    opacity: 0.6;
    border: 0.5px solid var(--color-primary);
}

.banner .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
}

.banner .swiper-button-next,
.banner .swiper-button-prev {
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.banner .swiper-button-next:hover,
.banner .swiper-button-prev:hover {
    opacity: 1;
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 50px;
    font-weight: inherit;
}

.section-title.little {
    font-size: 15px;
}

/* ===== 3. PRODUCTS (НОВИНКИ & ХИТЫ ПРОДАЖ) ===== */
.section {
    margin: 100px 0;
}

.products-swiper {
}

.products-swiper .swiper-slide {
    height: auto;
}

.product-card {
    position: relative;
    cursor: pointer;
}

.product-card .quick-view {
    opacity: 0;
}

.product-card:hover .quick-view {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 5px;
    right: 5px;
    bottom: 0;
    margin: auto 0;
    height: 30px;
    overflow: hidden;
    opacity: 1;
    width: calc(100% - 10px);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-primary);;
    border-radius: 3px;
}

.product-view .delivery-icon-hover {
    display: none;
}

.product-view .availability.in-stock span {
    color: #27AE60;
}
.product-view .availability.in-stock.not span {
    color: red;
}
.product-view .availability, .product-view .product-brand {
    padding: 8px;
    padding-left: 0;
}
.product-view .product-shop .add-to-box {
    padding: 8px;
    padding-left: 0;
    border-top: 1px solid #ddd;
}
.product-view .sizes-btns {
    margin-top: 10px;
}
.product-view .form-horizontal .form-group {
    margin: 0;
}
.product-view .old-price .price-label, .product-view .special-price .price-label {
    display: none;
}
.product-view .product-shop .old-price .price {
    font-size: 18px;
    text-decoration: line-through;
    color: var(--color-strikethrough);
}
.product-view .price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.product-view .product-shop .price {
    font-size: 24px;
}
.email-addto-box .pull-left {
    display: none;
}
.email-addto-box .btn-cart {
    background: var(--color-primary);
    color: var(--color-white);
}
.product-view .product-price-block {
    margin-bottom: 20px;
}
.product-view .product-price {
    background: #FDF8F7;
}

.product-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background-color: #F5EDE8;
    margin-bottom: 16px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    /* transform-style: preserve-3d;
    transition: transform 0.2s linear; */
}

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

.product-card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s;
}

.product-card-favorite:hover {
    background: var(--color-white);
}

.product-card-favorite svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.5;
}
.product-card-favorite.added svg {
    fill: var(--color-primary);
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-sale);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 5px 15px;
    z-index: 2;
}

.product-card-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card-name, .product-card-article, .product-card-price, .product-card-price-old {
    font-weight: 500;
}
.product-card-name, .product-card-article {
    font-size: 15px;
}

.product-card-name {
    min-height: 36px;
}

.product-card-price {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    line-height: 1;
}

.product-card-price-old {
    font-size: 11px;
    color: var(--color-strikethrough);
    text-decoration: line-through;
}

/* Pagination styles */
.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    gap: 12px;
}

.products-pagination:has(.swiper-button-lock) {
    margin-top: 0;
}

.products-pagination .swiper-button-next,
.products-pagination .swiper-button-prev {
    position: static;
    margin: 0;
    width: 40px;
    height: 40px;
}

/* .products-pagination .swiper-button-next::after,
.products-pagination .swiper-button-prev::after {
    font-size: 14px;
} */

.products-pagination .swiper-pagination {
    position: static;
    display: flex;
    width: auto;
    gap: 4px;
}

.products-pagination .swiper-pagination-bullet {
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 6px;
    font-weight: 500;
    background: transparent;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s;
    margin: 0 !important;
}

.products-pagination .swiper-pagination-bullet:hover {
}

.products-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ===== 4. PROMO BANNER ===== */
.promo-banner {
    position: relative;
    /* height: 336px; */
    overflow: hidden;
    display: flex;
}

.promo-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    padding: 20px 0;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.promo-banner-btn {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    padding: 5px 10px;
    width: 350px;
    height: 30px;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-banner-btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* ===== 5. ADVANTAGES ===== */
.advantages-logo {
    margin-bottom: 20px;
}

.advantages-logo img {
    margin: 0 auto;
    max-width: 150px;
}

.advantages-text {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    max-width: 930px;
    margin: 0 auto 30px;
}

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

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.advantage-item-icon {
    height: 70px;
    margin-bottom: 16px;
}

/* .advantage-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
} */

.advantage-item-text {
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== 7. NEWSLETTER ===== */
.section.newsletter {
    margin-bottom: 30px;
}

.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.newsletter-title {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    flex: 1;
}
.newsletter-title, .newsletter-form {
    flex: 1;
}
.newsletter-form, .form .form-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-form-title, .form-title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.newsletter-input-group, .form .input-group {
    display: flex;
}

/* .cart .form .input-group + .input-group {
    margin-top: 10px;
} */
.cart .form .input-group {
    margin-bottom: 10px;
}
.newsletter-input-group input, .form input:not([type="checkbox"], [type="file"]) {
    height: 31px;
}
.newsletter-input-group input, .form input:not([type="checkbox"], [type="file"]), .form textarea {
    background-color: var(--color-bg);
    flex: 1;
    border: 1px solid #5F4433;
    padding: 0 13px;
    font-size: 13px;
    display: flex;
    width: 100%;
    border-radius: 1px;
}
.form textarea {
    padding-top: 10px;
    padding-bottom: 10px;
    height: 100px;
}

.newsletter-input-group input::placeholder, .form input::placeholder, .form textarea::placeholder {
    color: var(--color-primary);
}

.newsletter-input-group button, .form button {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 5px;
    max-width: 160px;
    min-width: 160px;
    height: 31px;
}

.newsletter-input-group button:hover, .form button:hover {
    background: var(--color-primary);
}

.newsletter-checkboxes, .form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-checkbox, .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    font-size: 12px;
}

.newsletter-checkbox a, .form-checkbox a {
    border-bottom: 1px solid var(--color-primary);
}

/* ===== 8. FOOTER ===== */
.footer {
    border-top: 1px solid #5F443325;
    padding: 20px 0;
}

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

.footer-column-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* .footer-column ul li a {
    font-size: 12px;
    color: var(--color-accent);
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
} */

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-socials, .product-share-links, .ya-share2__list.ya-share2__list_direction_horizontal {
    display: flex;
    gap: 12px;
}

.footer-socials a, .product-share-links a {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover, .product-share-links a:hover {
    background: var(--color-primary);
}

.footer-socials a:hover svg, .product-share-links a:hover svg {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* .footer-bottom a {
    color: var(--color-accent);
}

.footer-bottom a:hover {
    color: var(--color-primary);
} */

/* ===== SWIPER NAVIGATION ===== */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: '';
}

.swiper-button-prev {
    background-image: url('../img/arrow-left.svg');
}

.swiper-button-next {
    background-image: url('../img/arrow-right.svg');
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs-list {
    /* border-top: 2px solid #5F443326; */
    margin-top: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    row-gap: 12px;
}

.breadcrumbs-list li {
    font-size: 16px;
    display: flex;
    text-align: center;
}

/* ===== CATALOG CATEGORIES ===== */
.breadcrumbs + section {
    margin-top: 0;
}

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

.catalog-category {
    display: block;
    text-align: center;
}

.catalog-category-image {
    margin-bottom: 16px;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.catalog-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.catalog-category:hover .catalog-category-image img {
    transform: scale(1.05);
}

.catalog-category-name {
    font-size: 26px;
    font-weight: 500;
}

/* ===== CATEGORY PAGE ===== */
.category-title, .product-title {
    text-align: center;
    font-weight: 400;
    font-size: 32px;
    margin-bottom: 24px;
}

.category-title {
    text-transform: uppercase;
}

.category-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin-bottom: 20px;
}

.custom-select {
    position: relative;
    width: calc(1100px / 4 - 20px);
}

.custom-select-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 13px;
    border: 1px solid #F4F4F4;
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-black);
    cursor: pointer;
}

.custom-select-current-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border: 1px solid #F4F4F4;
    border-top: none;
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select:hover .custom-select-dropdown {
    display: block;
}

.custom-select-dropdown li a {
    display: flex;
    gap: 6px;
    padding: 10px 13px;
    transition: all 0.2s;
    cursor: pointer !important;
}

/* #sort-by-2 #mse2_limit {
    border: none;
    position: absolute;
    outline: none;
    top: 1px;
    right: 13px;
    height: calc(100% - 2px);
} */

.custom-select-dropdown li a:hover {
    background: rgba(95, 68, 51, 0.06);
}

.category-layout {
    display: flex;
    align-items: start;
    gap: 30px;
    position: relative;
}

.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 10px 13px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 2px;
}

.category-filter {
    /* width: calc(1100px / 4 - 20px); */
    width: calc(25% - 90px / 4);
    flex-shrink: 0;
    background: var(--color-white);
    padding: 20px;
}

li:has(.submenu_item) {
    position: relative;
}
.submenu_item {
    /* display: none; */
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    cursor: pointer;
    padding: 0 5px;
}
li.open .submenu_item {
    transform: rotate(180deg);
}

/* Side nav categories */
.block-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.side-nav-categories .block-title:first-child {
}

.side-nav-categories .box-category {
    margin-bottom: 20px;
}

.side-nav-categories .box-category > ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-nav-categories .box-category > ul > li > a {
    display: block;
    text-transform: capitalize;
}

/* .side-nav-categories .box-category > ul > li > a:hover,
.side-nav-categories .box-category > ul > li > a.rowHere {
    color: var(--color-accent);
    font-weight: 500;
} */

.side-nav-categories .box-category > ul > li > ul {
    padding-left: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.side-nav-categories .box-category > ul > li.open > ul {
    display: block;
}

.side-nav-categories .box-category > ul > li > ul > li > a {
    font-size: 12px;
}

.block-layered-nav .block-title {
    padding-top: 14px;
    border-top: 1px solid #5F443326;
}

.block-layered-nav fieldset, .block-layered-nav .opt.body {
    border: none;
    margin: 0 0 14px;
    padding: 0;
}

.block-layered-nav fieldset:last-child {
    margin-bottom: 0;
}

.block-layered-nav .filter_title {
    margin-bottom: 14px;
    font-weight: 500;
}

.block-layered-nav dt, .block-layered-nav .odd.title {
    margin-bottom: 10px;
    font-weight: 500;
}

.block-layered-nav dd ol, .block-layered-nav .opt.body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 0;
    list-style: none;
}

.block-layered-nav dd ol li label input[type="checkbox"], .block-layered-nav .opt.body label input[type="checkbox"] {
    margin-top: -2px;
}

.block-layered-nav dd ol li label:has(input:checked), .block-layered-nav .opt.body label:has(input:checked) {
    font-weight: 500;
}

.block-layered-nav dd ol li label, .block-layered-nav .opt.body label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.block-layered-nav dd ol li label:hover, .block-layered-nav .opt.body label:hover {
    color: var(--color-accent);
}

.block-layered-nav dd ol li label sup, .block-layered-nav .opt.body label sup {
    font-size: 10px;
    color: var(--color-strikethrough);
    margin-left: -4px;
    margin-top: -7px;
}

/* Price slider */
.mse2_number_slider {
    height: 4px;
    background: rgba(95, 68, 51, 0.15);
    border-radius: 2px;
    position: relative;
    margin-bottom: 12px;
}

.mse2_number_slider .ui-slider-range {
    position: absolute;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
}

.mse2_number_slider .ui-slider-handle {
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    background: var(--color-white) !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: 50%;
    cursor: pointer;
    top: 50% !important;
    transform: translate(-50%, -50%);
    margin: 0 !important;
}

.mse2_number_inputs {
    display: flex;
    gap: 10px;
}

.mse2_number_inputs .form-group {
    padding: 0;
    margin: 0;
    flex: 1;
}

.mse2_number_inputs .form-group label {
    font-size: 12px;
    color: var(--color-primary);
    display: flex !important;
    flex-direction: column;
    gap: 4px;
}

.mse2_number_inputs .form-control {
    width: 100% !important;
    height: 30px;
    border: 1px solid rgba(95, 68, 51, 0.2);
    border-radius: 2px;
    padding: 0 8px;
    font-size: 12px;
    color: var(--color-primary);
}

/* Products grid */
.category-products {
    flex: 1;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    row-gap: 50px;
}

/* Product card with cart button */
.product-card-cart {
    display: block;
    margin-top: 8px;
    padding: 5px;
    background: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s;
    height: 39px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card-cart:hover, .show-more-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.product-card-cart.added_to_cart {
    background: var(--color-strikethrough);
	color: var(--color-white);
}

.show-more-btn {
    display: block;
    height: 30px;
    width: 100%;
    padding: 5px;
    margin-top: 50px;
    background: #5F443326;
    border: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter Tight', sans-serif;
}

/* ===== PRODUCT PAGE ===== */
.product-layout {
    display: flex;
    gap: 30px;
}

.product-gallery {
    display: flex;
    gap: 20px;
    flex: 1;
}

.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gallery-thumb-arrow {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* opacity: 0.5;
    transition: opacity 0.2s; */
}

.gallery-thumb-arrow:hover {
    opacity: 1;
}

.product-gallery-thumbs-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 516px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.product-gallery-thumbs-track::-webkit-scrollbar {
    display: none;
}

.product-gallery-thumbs-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-gallery-thumb {
    min-width: 90px;
    max-width: 90px;
    min-height: 120px;
    max-height: 120px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}

.product-gallery-thumb.active {
    border-color: #D12531;
}

.product-gallery-thumb:hover {
    border-color: var(--color-accent);
}

.product-gallery-thumb.active:hover {
    border-color: #D12531;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    /* border-top: 1px solid rgba(95, 68, 51, 0.15); */
    padding: 20px;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    display: block;
}

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

.cookie-banner-text {
    line-height: 1.6;
}

.cookie-banner-btn {
    flex-shrink: 0;
    padding: 10px 24px;
    background: var(--color-primary);
    color: var(--color-white);
}

.product-gallery-main {
    flex: 1;
    /* max-width: 480px; */
    max-width: calc(100% - 110px);
    overflow: hidden;
}

.product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.product-main-image-link {
    display: block;
    cursor: pointer;
}

/* Disabled state for thumbs arrows */
.gallery-thumb-arrow.disabled {
    opacity: 0.2;
    pointer-events: none;
    cursor: default;
}

/* Product Info */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-rating {
    margin-bottom: -4px;
}

.rating-result {
    display: flex;
    gap: 3px;
}

/* .rating-result .star-empty {
    opacity: 0.4;
} */

.product-availability {
    font-size: 16px;
}

.product-availability .in-stock {
    color: #1E893E;
}

.product-availability .no-stock {
    color: #E32525;
}

.product-price-block {
    display: flex;
    align-items: center;
}

.product-price {
    font-size: 16px;
    padding: 0 10px;
    gap: 8px;
    background: var(--color-white);
}

.product-price-old {
    font-size: 11px;
    color: var(--color-strikethrough);
    text-decoration: line-through;
    font-weight: 500;
}

.product-add-cart {
    background: #E32525;
    gap: 10px;
    padding: 0 10px;
    color: var(--color-white);
    font-size: 10px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.product-price, .product-add-cart, .product-favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

.product-price, .product-add-cart {
    max-width: calc(100% / 2 - 22px);
    min-width: calc(100% / 2 - 22px);
    font-weight: 500;
}

.product-add-cart:hover, .product-add-cart.added_to_cart {
    background: #B81E29;
}

.msfavorites .msfavorites-add, .msfavorites[data-added="added"] .msfavorites-remove, .msfavorites[data-added="added"] .msfavorites-go, .msfavorites[data-added="added"] .msfavorites-total {
    display: inline-flex !important;
}

.msfavorites[data-added="added"] .msfavorites-add, .msfavorites .msfavorites-remove, .msfavorites .msfavorites-go, .msfavorites .msfavorites-total {
    display: none !important;
}

a.msfavorites-link {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.product-favorite {
    max-width: 44px;
    min-width: 44px;
    background: #5F44330D;
    cursor: pointer;
    transition: all 0.3s;
}

.product-favorite svg {
    fill: var(--color-primary);
}

.product-favorite[data-added="added"], .product-favorite:hover, .product-card-favorite[data-added="added"], .product-card-favorite:hover {
    background: var(--color-strikethrough);
}

.product-favorite[data-added="added"] svg, .product-favorite:hover svg, .product-card-favorite[data-added="added"] svg, .product-card-favorite:hover svg {
    fill: var(--color-white);
}

.product-sizes-label {
    font-size: 16px;
    margin-bottom: 16px;
}

.sizes-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.one-size-btn {
    position: relative;
    font-size: 11px;
}

.one-size-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.one-size-btn label {
    display: block;
    padding: 9px 17px;
    border: 1px solid #686664;
    color: var(--color-black);
    cursor: pointer;
}

.one-size-btn input:checked + label, .one-size-btn label:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.product-size-table {
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-spoilers {
    background: #F8F8F8;
    padding: 20px;
}

.product-spoiler-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    margin-bottom: 13px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #E7E7E7
}

.product-spoiler-header:first-child {
}

.product-spoiler:last-child .product-spoiler-header {
    padding-bottom: 0;
    border-bottom: none;
}

.product-spoiler:last-child:not(.spoiler-open) .product-spoiler-header {
    margin-bottom: 0;
}

.product-spoiler-header span {
    font-size: 16px;
    text-transform: uppercase;
}

.spoiler-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.product-spoiler-content {
    display: none;
    padding-bottom: 13px;
}

.product-spoiler-content p {
    margin-bottom: 20px;
}

.product-spoiler.spoiler-open .product-spoiler-content {
    display: block;
}

.product-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ya-share2__item_service_vkontakte .ya-share2__badge, .ya-share2__item_service_vkontakte .ya-share2__mobile-popup-badge, .ya-share2__item_service_telegram .ya-share2__badge, .ya-share2__item_service_telegram .ya-share2__mobile-popup-badge {
    background-color: unset !important;
}
.ya-share2__list.ya-share2__list_direction_horizontal > .ya-share2__item, .ya-share2__list.ya-share2__list_direction_horizontal {
    margin: 0 !important;
}
.ya-share2__item_service_vkontakte .ya-share2__icon {
    background-image: url('/assets/templates/img/vk.svg') !important;
    background-repeat: no-repeat;
    height: 18px !important;
    width: 30px !important;
    background-size: unset !important;
}
.product-share-links .ya-share2__item_service_vkontakte a:hover .ya-share2__icon {
    background-image: url('/assets/templates/img/vk-white.svg') !important;
}
.ya-share2__item_service_telegram .ya-share2__icon {
    background-image: url('/assets/templates/img/tg.svg') !important;
    background-repeat: no-repeat;
    height: 25px !important;
    width: 29px !important;
    background-size: unset !important;
}
.product-share-links .ya-share2__item_service_telegram a:hover .ya-share2__icon  {
    background-image: url('/assets/templates/img/tg-white.svg') !important;
}

.product-share-title {
    font-size: 19px;
    font-weight: 600;
}

/* ===== MODAL ===== */
.my-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.my-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.my-modal {
    background: var(--color-bg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    position: relative;
    padding: 20px;
    display: none;
}

.my-modal-overlay.active .my-modal {
    display: block;
}

.my-modal-close {
    position: absolute;
    top: 20px;
    right: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.my-modal-close:hover {
    opacity: 0.6;
}

.my-modal-header {
    margin-bottom: 20px;
}

.my-modal-title {
    font-size: 20px;
    font-weight: 600;
}

/* ===== TEXT PAGE ===== */

.text-content h1, .page-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.text-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
}

.text-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
}

.text-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 12px;
}

.text-content:not(.account-login) p {
    line-height: 1.7;
}

.text-content:not(.account-login) p:last-child {
    margin-bottom: 0 !important;
}

.text-content p {
    margin-bottom: 16px;
}

.text-content:not(.cart) a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.required {
    color: #FF4C4C;
}

.text-content strong, .text-content b {
    font-weight: 600;
}

.text-content img {
    /* max-width: 100%;
    height: auto;
    display: block;
    margin: 24px 0;
    border-radius: 4px; */
}

/* .text-content img.text-image-float {
    float: right;
    margin: 0 0 20px 24px;
    max-width: 45%;
} */

.text-content ul:not(.group-select),
.text-content ol:not(.group-select) {
    margin: 16px 0;
    padding-left: 24px;
}

.text-content:not(.cart) ul {
    list-style: disc;
}

.text-content .my-account ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#office-profile-form {
    margin: 0 -15px;
}
#office-profile-form label {
    display: block;
}

.my-account .avatar img {
    margin: 0 auto;
}

.text-content:not(.cart) ol {
    list-style: decimal;
}

.text-content li {
    margin-bottom: 16px;
}

.text-content li ul,
.text-content li ol {
    margin-top: 8px;
    margin-bottom: 0;
}

.text-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--color-primary);
    background: rgba(95, 68, 51, 0.04);
    border-radius: 0 4px 4px 0;
}

.text-content blockquote p {
    margin-bottom: 0;
    font-style: italic;
}

.text-content blockquote p + p {
    margin-top: 12px;
}

.text-content hr {
    border: none;
    border-top: 1px solid rgba(95, 68, 51, 0.15);
    margin: 32px 0;
}

.neighbors {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* Text table */
#office-minishop2-grid {
    overflow-x: hidden;
}
.text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
#msCart {
    overflow-x: auto;
    overflow-y: hidden;
}
#msCart table {
    margin-top: 0;
}

.text-content table th,
.text-content table td {
    padding: 12px 16px;
    border: 1px solid rgba(95, 68, 51, 0.15);
}

.text-content table th {
    font-weight: 600;
    background: rgba(95, 68, 51, 0.06);
}

.text-content table tr:nth-child(even) {
    background: rgba(95, 68, 51, 0.02);
}

/* Clearfix for floated images */
.text-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ===== PAGE 404 ===== */
.page-404 {
    text-align: center;
}

.page-404-inner {
    max-width: 500px;
    margin: 0 auto;
}

.page-404-number {
    font-size: 120px;
    font-weight: 700;
    opacity: 0.15;
}

.page-404-text {
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Search 404 */
.search-404 {
    margin-bottom: 30px;
}

.search-box {
    max-width: 400px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    border: 1px solid #5F44331A;
    border-radius: 1px;
    overflow: hidden;
    background: var(--color-white);
}

.search-form .search {
    flex: 1;
    height: 44px;
    border: none;
    padding: 0 16px;
    font-size: 12px;
    color: var(--color-primary);
}

.search-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.search-btn svg {
    stroke: var(--color-white);
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s;
}

.btn-home:hover {
    color: var(--color-white);
}

.btn-home svg {
    width: 18px;
    height: 18px;
}

/* ===== CONTACTS PAGE ===== */
.contacts-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.contacts-form-wrapper .group-select li {
    margin-bottom: 16px;
}

.contacts-form-wrapper fieldset {
    border: none;
}

.contacts-form-wrapper .customer-name {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contacts-form-wrapper .group-select li br {
    display: none;
}

.contacts-form-wrapper .input-box2 {
    display: flex;
    flex-direction: column;
}

.contacts-form-wrapper label {
    margin-bottom: 6px;
    display: block;
}

.contacts-form-wrapper label .required {
    color: var(--color-sale);
}

.contacts-form-wrapper .input-text {
    height: 44px;
    border: 1px solid #5F44331A;
    border-radius: 1px;
    padding: 0 14px;
    background: var(--color-white);
}

.contacts-form-wrapper .text-contacts {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

/* .contacts-form-wrapper .text-contacts,
.contacts-form-wrapper label[for] + br + div .text-contacts {
    border: 1px solid #5F44331A;
    border-radius: 1px;
    background: var(--color-white);
} */

.contacts-form-wrapper .check {
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.contact-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* .contact-checkbox a {
    text-decoration: underline;
    text-underline-offset: 2px;
} */

.contacts-form-wrapper label a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contacts-form-wrapper .require {
    font-size: 12px;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.contacts-form-wrapper .require .required {
    color: var(--color-sale);
}

.contacts-form-wrapper .button.submit {
    padding: 12px 40px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.contacts-map {
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.contacts-map iframe {
    display: block;
    border: none;
}

.contacts-note {
    margin-bottom: 20px;
    color: var(--color-sale);
}

.contacts-note a {
    color: var(--color-sale);
    text-decoration: underline;
}

.contacts-details {
    margin-bottom: 30px;
}

.contacts-details h2,
.contacts-requisites h2,
.contacts-privacy h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contacts-details p {
    margin-bottom: 8px;
}

.contacts-requisites {
    margin-bottom: 30px;
    padding: 24px;
    background: rgba(95, 68, 51, 0.04);
    border-radius: 4px;
}

.requisites-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 24px;
}

.requisites-list dt {
    font-weight: 600;
}

.requisites-list dd {
}

.contacts-privacy {
    margin-bottom: 30px;
}

.contacts-privacy p,
.contacts-privacy li {
    line-height: 1.6;
    margin-bottom: 12px;
}

.contacts-privacy ol,
.contacts-privacy ul {
    padding-left: 24px;
}

.contacts-privacy a {
    text-decoration: underline;
}

/* ===== REVIEWS PAGE ===== */
.review-wrapper .comment-list {
    list-style: none;
}

.review-wrapper .ticket-comment {
    padding: 24px 0;
    border-bottom: 1px solid rgba(95, 68, 51, 0.1);
}

.review-wrapper .review {
    background: var(--color-white);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.review-wrapper .author-comment {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.review-wrapper .review small {
    font-size: 12px;
    color: var(--color-accent);
}

.review-wrapper .review-txt {
    margin-top: 12px;
    line-height: 1.6;
}

.review-wrapper .review-txt br {
}

.review-wrapper .comment-images-list img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 10px;
}

.review-wrapper .comment-images-list img:hover {
    opacity: 0.8;
}

.review-wrapper .comment-reply {
    margin-top: 8px;
}

.review-wrapper .comment-reply .reply {
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px !important;
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline-flex;
}

.pagination a,
.pagination span {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1px;
    font-weight: 500;
    padding: 0 4px;
}

.pagination .active span,
.pagination .current span,
.pagination .active a,
.pagination .current a {
    background: var(--color-primary);
    color: var(--color-white);
    cursor: default;
}

.pagination .disabled span,
.pagination .disabled a {
    opacity: 0.4;
    pointer-events: none;
}

.review-wrapper #comment-form-placeholder {
    border-radius: 4px;
    margin: 30px 0;
}

.review-wrapper .form-group {
    margin-bottom: 16px;
}

.review-wrapper .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.review-wrapper .form-control {
    width: 100%;
    height: 44px;
    background: var(--color-white);
    border: 1px solid #5F44331A;
    border-radius: 1px;
    padding: 0 14px;
}

.review-wrapper textarea.form-control {
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

.review-wrapper .btn-primary.submit {
    padding: 10px 32px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.review-wrapper .btn-default {
    padding: 8px 24px;
    /* display: inline-block; */
    border: 1px solid var(--color-primary);
    cursor: pointer;
}

/* ===== ARTICLES PAGE ===== */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-card {
    display: flex;
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
}

.article-card-image {
    flex-shrink: 0;
    width: 300px;
    /* aspect-ratio: 2/3; */
    /* overflow: hidden; */
    display: block;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-card-text {
    flex: 1;
    margin-bottom: 16px;
}

.article-card-text p {
    line-height: 1.6;
}

.article-card-link {
    display: inline-flex;
    padding: 8px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    align-self: start;
}

.article-card-link:hover {
    color: var(--color-white);
}

/* ==========================================
   MEDIA QUERIES — Cascade (top-down)
   ========================================== */

@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .header-middle {
        min-height: unset;
    }

    .header-right {
        order: -1;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 0;
    }

    .header-contacts {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .header-nav {
        margin-right: -11.48px;
    }

    .header-search {
    }

    .header-contacts-phone {
        order: -1;
    }
    
    .header-nav-wrapper {
        flex-direction: column; 
        justify-content: space-between; 
        align-items: end;
    }

    .header-search input {
        width: 178px;
    }

    .banner {
        /* height: 493px; */
    }

    .advantages-text {
        max-width: 830px;
    }

    .newsletter-input-group button {
        max-width: 130px;
        min-width: 130px;
    }

    .category-filter, .custom-select {
        width: calc(930px / 3 - 20px);
    }

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

@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    /* .header-dropdown-image {
        width: 280px;
        height: 200px;
    } */

    .header-dropdown-links {
        gap: 30px;
    }

    .section {
        margin: 80px 0;
    }

    .header-top {
        flex-wrap: wrap;
    }

    .header-middle {
        width: 100%;
    }
    
    .header-logo img {
        max-width: 179px;
        min-width: 179px;
    }

    .header-nav {
        margin-right: 0;
        justify-content: space-between;
        width: 100%;
    }

    .header-nav a {
        padding: 13.21px 18.5px;
    }

    .header-nav-wrapper {
        flex-direction: row;
        width: 100%;
    }

    .header-contacts {
        order: -1;
        padding: 5px 0;
    }

    .header-search input {
        width: 320px;
    }

    .header-right {
        order: unset;
        flex-direction: column;
        align-items: end;
        gap: 8px;
    }

    .advantages-text {
        max-width: 600px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-bottom .copyright {
        width: 100%;
        order: 1;
    }

    .custom-select {
        width: calc(50% - 15px);
    }

    /* Filter toggle button */
    .filter-toggle-btn {
        display: block;
    }

    .category-layout {
        flex-direction: column;
    }

    .category-filter {
        display: none;
    }

    .category-filter.open {
        display: block;
    }

    .category-filter, .category-products {
        width: 100%;
    }

    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 30px;
    }

    .show-more-btn {
        margin-top: 30px;
    }

    .product-gallery-thumbs {
    }

    .product-gallery-thumbs-track {
        max-height: 292px;
    }

    .product-gallery-main {
        max-width: calc(100% - 64px);
    }

    .product-gallery-thumb {
        min-width: 48px;
        max-width: 48px;
        min-height: 64px;
        max-height: 64px;
    }

    .product-add-cart {
        /* min-width: 161px; */
        min-width: unset;
        /* max-width: 161px; */
        max-width: unset;
    }

    .product-price {
        /* max-width: calc(100% - 161px - 44px); */
        max-width: unset;
        /* min-width: calc(100% - 161px - 44px); */
        min-width: unset;
        white-space: nowrap;
    }

    .one-size-btn label {
        padding: 9px;
    }

    .article-card-image {
        width: 200px;
    }

    .article-card-image img {
        object-fit: cover;
    }

    .article-card-content {
        padding: 16px;
    }

    .article-card-title {
        font-size: 18px;
    }

    #msOrder {
        margin-left: -15px;
        margin-right: -15px;
    }
    #msOrder .input-group {
        flex-direction: column;
        gap: 5px;
    }
    #msOrder .input-group .control-label {
        text-align: left;
    }
    .account-login .form .control-label {
        margin-bottom: 10px;
        display: block;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    .promo-banner-overlay {
        padding: 10px 0;
    }

    /* Text page */
    .text-content h1 {
        font-size: 24px;
    }

    .text-content h2 {
        font-size: 20px;
    }

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

    .text-content img.text-image-float {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }

    /* Reviews page */
    .review-wrapper .page-title {
        font-size: 22px;
    }

    .review-wrapper .review {
        padding: 16px;
    }

    .review-wrapper .author-comment {
        font-size: 15px;
    }

    .article-card {
        flex-direction: column;
    }

    .article-card-image {
        width: 100%;
        /* aspect-ratio: 16/10; */
    }

    .article-card-content {
        padding: 15px;
    }

    .text-content table {
        font-size: 13px;
    }

    .text-content table th,
    .text-content table td {
        padding: 8px 10px;
    }

    /* Contacts page */
    .contacts-form-wrapper .customer-name {
        grid-template-columns: 1fr;
    }

    .contacts-requisites {
        padding: 12px;
    }

    .header-logo {
        padding-bottom: 0;
    }

    .header-logo img {
        max-width: 146px;
        min-width: 146px;
    }

    .header-burger {
        display: flex;
    }

    .header-middle {
        display: none;
    }

    .header-right {
        flex-direction: row;
        align-items: center;
        gap: 17px;
    }

    .header-contacts {
        flex-direction: column;
        align-items: start;
        padding: 0;
        gap: 8px;
        order: unset;
    }

    .header-search input {
        min-width: 120px;
        max-width: 120px;
    }

    .header-dropdown {
        display: none !important;
    }

    .header-top {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0;
        padding-bottom: 15px;
    }

    .banner {
        /* height: 594px; */
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .newsletter-inner {
        flex-direction: column;
    }

    .newsletter-title br {
        display: none;
    }

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

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

    .product-title {
        font-size: 22px;
    }

    .product-price-block {
        flex-wrap: wrap;
    }

    .product-price {
        min-width: 125px;
        /* max-width: 125px; */
    }

    .product-add-cart {
        min-width: calc(100% - 44px);
        max-width: calc(100% - 44px);
    }

    .product-move-wrapper {
        margin-top: 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #msCart {
        padding: 0;
    }

    #msCart .flex-col {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 0;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-banner-btn {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .swiper-slide .mob, .visible-phone {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        /* padding: 0 15px; */
    }

    .header-right {
        display: none;
    }

    .banner {
        /* height: 597px; */
    }

    .swiper-slide .desk {
        /* display: none; */
    }

    .banner .swiper-pagination {
        bottom: 5px;
    }

    .products-swiper {
        width: calc(100% + 15px);
    }

    .promo-banner {
        /* height: 320px; */
    }
    .promo-banner-overlay {
        padding: 5px 0;
    }
    .promo-banner-btn {
        height: 24px;
        font-size: 12px;
        width: auto;
    }

    .advantages-logo img {
        max-width: 87px;
    }

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

    .advantage-item {
        gap: 20px;
    }

    .advantage-item-icon {
        margin-bottom: 0;
    }

    .advantages-text {
        font-size: 16px;
    }

    .footer {
        padding: 30px 0 16px;
    }

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

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

    .custom-select {
        width: 100%;
    }

    .category-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .category-toolbar-select {
        width: 100%;
    }

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

    .msfavorites-list .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-layout {
        flex-direction: column;
    }

    .page-404-number {
        font-size: 80px;
    }

    .page-404-title {
        font-size: 22px;
    }

    .search-box {
        max-width: 100%;
    }

    .btn-home {
        width: 100%;
        justify-content: center;
    }

    .contacts-map iframe {
        height: 300px;
    }

    .requisites-list {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .requisites-list dt {
        margin-top: 8px;
    }

    .review-wrapper .pagination {
        gap: 5px;
    }

    .neighbors {
        flex-direction: column;
        align-items: center;
    }
    #msMiniCart .title, #msMiniCart #cart-total, #msMiniCart .top-cart-content {
        display: none !important;
    }
    #msMiniCart.top-cart-contain {
        min-width: auto;
    }
    #msMiniCart.top-cart-contain .cart-box img {
        margin-bottom: 0;
    }
    
    #toTop {
        right: 10px;
        bottom: 70px;
    }

    .header-contacts-phone {
        order: unset;
    }
    .mobile-info .header-search input {
        min-width: calc(100% - 37px);
        max-width: calc(100% - 37px);
    }
}

@media (max-width: 399.98px) {
    .products-pagination .swiper-pagination-bullet {
        min-width: 30px;
        max-width: 30px;
        min-height: 30px;
        max-height: 30px;
    }

    .review-wrapper .pagination .page-item:first-child, .review-wrapper .pagination .page-item:last-child {
        display: none;
    }
}