@media (min-width: 1576px) {
    .container {
        width: 100rem;
    }
}

/* Desktop menu styles - only for screens >= 958px */
@media (min-width: 958px) {

    /* Стрелки для вложенных уровней */
    #main-nav ul.level-1 li.has-children>a::after,
    #main-nav ul.level-2 li.has-children>a::after {
        transform: translateY(-50%) rotate(-90deg);
        right: 10px;
    }



    /* Поворот стрелки при открытии (управляется через jQuery) */
    #main-nav ul li.has-children.open>a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    #main-nav ul.level-1 li.has-children.open>a::after,
    #main-nav ul.level-2 li.has-children.open>a::after {
        transform: translateY(-50%) rotate(-90deg);
    }
}


@media (min-width: 768px) {
    #checkout-cart .col-sm-4 {
        width: 33.333333%;
    }

    #checkout-cart .col-sm-8 {
        width: 66.666667%;
    }

    #checkout-cart .col-sm-offset-8 {
        margin-left: 66.666667%;
    }
}


@media (max-width : 1280px) {
    .container {
        padding: 0 .75rem;
        width: 100%;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #fff;
        box-shadow: 0 1px 0 var(--border, rgba(0, 0, 0, 0.08));
    }

    .header-page {
        padding: 10px 0;
    }

    #subcategories {
        padding-top: 15px;
        padding-bottom: 0;
    }

    .subcategories-list::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .subcategories-wrapper.expanded .subcategories-list::before {
        opacity: 0;
    }

    .subcategories-list {
        gap: 5px;
        max-height: 60px;
        transition: max-height 0.3s ease;
    }

    .subcategories-wrapper.expanded .subcategories-list {
        max-height: 1000px;
    }

    .subcategory-link {
        padding: 5px 14px;
        font-size: 0.8125rem;
    }

    .subcategories-toggle-btn {
        display: block;
        margin-top: 12px;
        font-size: 0.8125rem;
    }

    .product-image-column .swiper-button-next,
    .product-image-column .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .product-image-column .swiper-button-next::after,
    .product-image-column .swiper-button-prev::after {
        font-size: 12px;
    }

    #wishlist-products .category-products-list {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Оверлей для затемнения */
    #menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        pointer-events: none;
    }

    #menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: inline-block;
    }

    #main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 110vh;
        background: #fff;
        z-index: 1001;
        max-width: 380px;
        transition: left 0.3s ease;
        padding: 1rem 2rem;
        overflow-y: auto;

        /* Скрываем полосу прокрутки */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE и Edge */
    }

    #main-nav.active {
        left: 0;
    }

    /* Скрываем полосу прокрутки для Chrome, Safari и Opera */
    #main-nav::-webkit-scrollbar {
        display: none;
    }

    /* Шапка мобильного меню */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: .5rem;
        border-bottom: 1px solid var(--light-gray);
    }

    .mobile-menu-header .title {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0;
        color: var(--text);
    }

    .close-menu-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        transition: opacity 0.3s ease;
    }

    .close-menu-btn:hover {
        opacity: 0.6;
    }

    .close-menu-btn svg {
        width: 24px;
        height: 24px;
    }

    #main-nav {
        padding: 10px 15px;
    }

    #main-nav ul li {
        padding-bottom: 0;

    }

    #main-nav ul li.brands-az-item {
        display: block;
    }

    #main-nav ul li a {
        padding: .5rem 0;
        width: fit-content;
        max-width: 90%;
        display: inline-block;
    }

    #main-nav ul.level-1>li>a {
        color: var(--text);
        font-weight: 500;
    }

    /* Тире для пунктов второго уровня БЕЗ подменю */
    #main-nav ul.level-2>li:not(.has-children)>a::before {
        content: '—';
        margin-right: 0.5rem;
        color: var(--gray);
        margin-left: .5rem;
    }

    /* Тире для пунктов третьего уровня */
    #main-nav ul.level-3>li>a::before {
        content: '—';
        margin-right: 0.5rem;
        color: var(--gray);
        margin-left: 1rem;
    }

    /* Дополнительный отступ для третьего уровня */
    #main-nav ul.level-3>li>a {
        padding-left: 0.5rem;
        font-size: 0.875rem;
    }

    /* Тире для пунктов четвертого уровня */
    #main-nav ul.level-4>li>a::before {
        content: '—';
        margin-right: 0.5rem;
        color: var(--gray);
        margin-left: 1.5rem;
    }

    /* Дополнительный отступ для четвертого уровня */
    #main-nav ul.level-4>li>a {
        padding-left: 0.5rem;
        font-size: 0.875rem;
    }

    #main-nav ul li.has-children>a::after {
        display: none;
    }

    #main-nav ul li.has-children {
        display: flex;
        gap: 0.5rem;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }

    #main-nav ul.level-1,
    #main-nav ul.level-2,
    #main-nav ul.level-3,
    #main-nav ul.level-4 {
        position: relative;
        top: unset;
        left: unset;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
    }

    .arrow-icon {
        display: block;
        width: 30px;
        height: 30px;
        top: 4px;
        right: 0;
        position: absolute;
        background-image: url('../images/icons/arrow-down.svg');
        background-size: 20px;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
        cursor: pointer;
        z-index: 10;
    }

    #main-nav ul {
        flex-direction: column;
        max-width: 380px;
        padding-left: 0;
    }


    .header-logo {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .header-logo .menu-icon {
        width: 24px;
        height: 24px;
        cursor: pointer;
        display: block;
        transition: opacity 0.3s ease;
    }

    .header-logo .menu-icon:hover {
        opacity: 0.6;
    }

    .header-logo img {
        min-width: 50px;
        min-height: 50px;
        display: block;
    }

    article {
        padding: 32px 40px 40px 40px;
    }

    .footer-main-grid,
    .footer-bottom-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 2rem;
    }

    .footer-brand-section {
        width: 280px;
    }



    /* Скрываем все подменю по умолчанию на мобильных */
    #main-nav ul.level-1,
    #main-nav ul.level-2,
    #main-nav ul.level-3,
    #main-nav ul.level-4 {
        display: none;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    /* Показываем подменю когда родитель имеет класс open */
    #main-nav li.has-children.open>ul.level-1,
    #main-nav li.has-children.open>ul.level-2,
    #main-nav li.has-children.open>ul.level-3,
    #main-nav li.has-children.open>ul.level-4 {
        display: flex;
    }

    /* Поворачиваем стрелку когда меню открыто */
    #main-nav li.has-children.open>.arrow-icon {
        transform: rotate(180deg);
    }

    /* Стили для активной ссылки */
    #main-nav li.has-children>a.active {
        color: var(--red);
        display: inline-block;
        width: 90%;
    }

    .bt {
        font-size: 1.2rem;
    }


}


@media (max-width : 850px) {
    .header-info-menu {
        display: none;
    }

    #block-products .swiper-button-next {
        right: 0;
        width: 30px;
        height: 30px;
    }

    #block-products .swiper-button-prev {
        left: 0;
        width: 30px;
        height: 30px;
    }

    #block-products .swiper-button-next::after,
    #block-products .swiper-button-prev::after {
        font-size: 12px;
    }

    

    article {
        padding: 14px 12px 12px 12px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        margin-bottom: 0;
        margin-top: 0;
        gap: 10px;
    }

    .products-count {
        display: none;
    }

    .btn-filter-toggle {
        display: flex;
    }

    .products-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .products-sort {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sort-select {
        width: 100%;
        min-width: auto;
    }

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

    .pagination {
        gap: 6px;
    }

    .pagination li a,
    .pagination li span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.8125rem;
    }

    .login-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .login-box {
        padding: 24px;
    }

    .account-menu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-submit {
        flex-direction: column;
    }

    .btn-back,
    .btn-login {
        width: 100%;
    }

    #wishlist-products {
        padding: 1rem 0;
    }

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

    .product-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image-column {
        position: relative;
        top: 0;
        overflow: hidden;
    }

    

    .product-title {
        min-height: none;
    }


    .product-price-current {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-column {
        order: 2;
    }

    .about-image-column {
        order: 1;
        position: relative;
        top: 0;
    }

    .about-image-wrapper {
        padding: 30px;
    }

    .about-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .about-text {
        font-size: 0.9375rem;
    }

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

    .certificates-grid .image-wrapper {
        height: 300px;
    }

    #filter-block .ocf-value-input {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }

    #filter-block .ocf-value-name {
        font-size: 14px;
        line-height: 1.3;
    }

    .fss__search__input {
        padding: 10px 50px 10px 10px;
        font-size: 16px;
    }

    #cat-products .product-list,
    #special-products .product-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

}


@media (max-width: 768px) {
    .manufacturers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .manufacturer-link {
        padding: 16px;
        font-size: 0.875rem;
    }

    .manufacturers-group-title {
        font-size: 1.25rem;
    }

    .login-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .login-box {
        padding: 24px;
    }

    .cart-success-message {
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        min-width: auto;
        font-size: 0.875rem;
        padding: 12px 16px;
    }

    #checkout-cart {
        padding: 20px 0 40px;
    }

    #checkout-cart h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    #checkout-cart .table {
        font-size: 0.875rem;
    }

    #checkout-cart .table thead {
        display: none;
    }

    #checkout-cart .table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 16px;
        background: var(--bg);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    #checkout-cart .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 0;
        border-bottom: 1px solid var(--light-gray);
        text-align: left !important;
    }

    #checkout-cart .table tbody td:first-child {
        justify-content: center;
        padding-top: 0;
        padding-bottom: 16px;
    }

    #checkout-cart .table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    #checkout-cart .table tbody td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 500;
        color: var(--text);
        margin-right: 12px;
        flex-shrink: 0;
        min-width: 120px;
    }

    #checkout-cart .table tbody td.text-center::before {
        display: none;
    }

    #checkout-cart .table tbody td.text-center {
        justify-content: center;
    }

    #checkout-cart .table .img-thumbnail {
        max-width: 100px;
        margin: 0;
    }

    #checkout-cart .table tbody td .input-group {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        margin-left: 0;
    }

    #checkout-cart .table tbody td .input-group-btn {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    #checkout-cart .table tbody td .input-group .form-control {
        width: 100%;
        text-align: center;
    }

    #checkout-cart .table tbody td .input-group-btn .btn {
        flex: 1;
        width: auto;
    }

    #checkout-cart .table tbody td small {
        display: block;
        margin-top: 4px;
    }

    #checkout-cart .buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;

        margin-bottom: 50px;
    }

    #checkout-cart .buttons .pull-left,
    #checkout-cart .buttons .pull-right {
        width: 100%;
    }

    #checkout-cart .buttons .btn {
        width: 100%;
        justify-content: center;
    }

    #checkout-cart .col-sm-offset-8 {
        margin-left: 0;
    }

    #checkout-cart .totals-table {
        margin: 20px 0;
    }

    #checkout-cart .totals-table .table tbody tr {
        display: table-row;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    #checkout-cart .totals-table .table tbody td {
        display: table-cell;
        padding: 16px 20px;
        text-align: right !important;
    }

    #checkout-cart .totals-table .table tbody td::before {
        content: attr(data-label) ": ";
        font-weight: bold;
        float: left;
        width: 50%;
    }

    /* Empty cart styles */
    #checkout-cart .empty-cart-message {
        text-align: center;
        padding: 60px 20px;
        max-width: 600px;
        margin: 40px auto;
    }

    #checkout-cart .empty-cart-icon {
        margin-bottom: 30px;
        color: var(--gray);
        opacity: 0.5;
    }

    #checkout-cart .empty-cart-icon svg {
        width: 80px;
        height: 80px;
        margin: 0 auto;
        display: block;
    }

    #checkout-cart .empty-cart-title {
        font-size: 1.5rem;
        font-weight: 500;
        margin-bottom: 15px;
        color: var(--text);
    }

    #checkout-cart .empty-cart-text {
        font-size: var(--regular-text);
        color: var(--gray);
        margin-bottom: 30px;
        line-height: 1.6;
    }

    #checkout-cart .empty-cart-message .btn-shopping {
        padding: 12px 40px;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 4px;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
    }

    #checkout-cart .empty-cart-message .btn-shopping:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }
    .header-phone {
        display: none;
    }
    header .header-actions .search-icon {
        width: 115px;
    }
}


@media (max-width : 576px) {
    .header-page h1.header-page-title-search {
        font-size: 24px;
    }
    .header-wrap {
        padding: .75rem 0;
    }

    .lang-switcher {
        display: none;
    }

   

    .pc {
        display: none;
    }

    .mobile {
        display: block;
    }

    .footer-nav-column {
        width: 100%;
    }

    .filter-block {
        padding: 0;
    }

    /* Мобільна панель фільтра ocfilter: темний фон і коректне відображення */
    #filter-block .ocf-container.ocf-mobile-1 {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 330px !important;
        max-width: 85vw;
        z-index: 99999 !important;
        transform: translateX(-100%);
        transition: transform 300ms ease-in-out;
        box-shadow: none !important;
        overflow: visible !important;
    }

    #filter-block .ocf-container.ocf-mobile-1.ocf-mobile-active {
        transform: translateX(0);
    }

    /* Темний фон (backdrop) на весь екран при відкритій панелі — псевдоелемент (візуал) + fade-in */
    #filter-block .ocf-container.ocf-mobile-1.ocf-mobile-active::before,
    .ocf-container.ocf-mobile-1.ocf-mobile-active::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(0, 0, 0, 0.55) !important;
        z-index: 0 !important;
        pointer-events: none;
        opacity: 0;
        animation: ocf-backdrop-fade-in 0.25s ease-out forwards;
    }

    @keyframes ocf-backdrop-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Клікабельний backdrop (клік закриває фільтр) — створюється в JS */
    .ocf-mobile-backdrop {
        inset: 0;
        z-index: 99998;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
    }

    .ocf-mobile-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Щоб панель фільтра була поверх backdrop — піднімаємо контекст #filter-block */
    body.ocf-mobile-open #filter-block {
        position: relative;
        z-index: 100000;
    }

    /* Кнопка закрити (хрестик) у шапці фільтра */
    #filter-block .ocf-container.ocf-mobile-1 .ocf-close-mobile,
    .ocf-container.ocf-mobile-1 .ocf-close-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px;
        min-height: 40px;
        margin-left: auto !important;
        padding: 0 !important;
        border: none;
        background: transparent;
        color: var(--text, #333) !important;
        cursor: pointer;
        border-radius: 4px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    #filter-block .ocf-container.ocf-mobile-1 .ocf-close-mobile:hover,
    .ocf-container.ocf-mobile-1 .ocf-close-mobile:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    #filter-block .ocf-container.ocf-mobile-1 .ocf-close-mobile .ocf-icon,
    .ocf-container.ocf-mobile-1 .ocf-close-mobile .ocf-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 18px !important;
    }

    #filter-block .ocf-container.ocf-mobile-1 .ocf-content {
        position: relative;
        z-index: 1;
        height: 100%;
        background: #fff;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        margin: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    /* Відступи всередині панелі фільтра */
    #filter-block .ocf-container.ocf-mobile-1 .ocf-header {
        padding: 16px 20px !important;
    }

    #filter-block .ocf-container.ocf-mobile-1 .ocf-body {
        padding: 0 20px 20px !important;
    }

    #filter-block .ocf-container.ocf-mobile-1 .ocf-footer {
        padding: 16px 20px 20px !important;
    }

    #filter-block .ocf-container.ocf-mobile-1 .ocf-filter {
        margin-bottom: 16px !important;
    }

    @media (max-width: 360px) {
        #filter-block .ocf-container.ocf-mobile-1 {
            width: 100% !important;
            max-width: 100%;
        }
    }

    .products-count {
        font-size: 0.8125rem;
    }

    .sort-label {
        font-size: 0.8125rem;
    }

    .sort-select {
        font-size: 0.8125rem;
        padding: 8px 12px;
        padding-right: 36px;
        min-height: 42px;
    }

    .category-products-list {
        gap: 5px;
    }

    .pagination-wrapper {
        margin-top: 30px;
    }

    .pagination {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination li a,
    .pagination li span {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 0.75rem;
    }

    #wishlist-products .category-products-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .manufacturers-index {
        padding: 16px;
    }

    .manufacturers-index-links {
        gap: 8px;
    }

    .manufacturers-index-link {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

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

    .manufacturer-link {
        padding: 14px;
        font-size: 0.8125rem;
    }

    .manufacturers-group {
        margin-bottom: 30px;
    }

    #product-page {
        padding: 20px 0 40px;
    }

    .product-card {
        gap: 24px;
    }

    #product-page .product-title {
        font-size: 1.125rem;
    }

    .product-info-column {
        gap: 20px;
    }

    .accordion-header {
        padding: 14px 16px;
        font-size: 0.875rem;
    }

    .accordion-text {
        padding: 0 16px 16px 16px;
        font-size: 0.8125rem;
    }

    .product-price-wrapper {
        gap: 18px;
    }

    .product-price-current {
        font-size: 1.375rem;
    }

    .btn-buy {
        width: 100%;
    }

    .reviews-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .review-form-wrapper {
        padding: 20px;
    }

    .reviews-title {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .review-item {
        padding: 16px;
    }

    .review-header {
        flex-direction: column;
        gap: 12px;
    }

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

    .review-form-title {
        font-size: 1rem;
    }

    .form-input,
    .form-textarea {
        padding: 10px 14px;
        font-size: 0.8125rem;
    }

    .star-label {
        font-size: 1.25rem;
    }

    .top-header-marquee-icon {
        display: none;
    }

    .top-header-marquee-wrap {
        font-size: 13px;
        text-align: center;
        width: 100%;
    }

    .top-header-marquee-fallback {
        font-size: 13px;
        text-align: center;
        width: 100%;
    }

    .top-header-info p svg {
        display: none;
    }

    .top-header-info p {
        font-size: 13px;
        text-align: center;
        width: 100%;
    }

    #about-page {
        padding: 30px 0 50px;
    }

    .about-content {
        gap: 30px;
        margin-top: 20px;
    }

    .about-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .about-text {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .about-text p {
        margin-bottom: 20px;
    }

    .about-image-wrapper {
        padding: 20px;
    }

    .about-signature {
        margin-top: 30px !important;
    }

    .about-features {
        margin: 24px 0;
        gap: 16px;
    }

    .about-feature-item {
        padding: 16px;
        gap: 12px;
    }

    .feature-icon {
        font-size: 1.25rem;
        width: 36px;
        height: 36px;
    }

    .feature-text p {
        font-size: 0.875rem;
    }
}

/* ========================================
   CERTIFICATES PAGE RESPONSIVE
   ======================================== */


@media (max-width : 576px) {
    #certificates-page {
        padding: 30px 0 50px;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .certificates-grid .image-wrapper {
        height: 350px;
        padding: 15px;
    }
}

/* ========================================
   STORES PAGE RESPONSIVE
   ======================================== */

@media (max-width : 850px) {
    .store-item {
        padding: 30px 20px;
    }

    .store-name {
        font-size: 1.5rem;
    }

    .store-media {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .store-image-wrapper {
        height: 300px;
    }

    .store-video-wrapper {
        height: 300px;
    }
}

@media (max-width : 576px) {
    #stores-page {
        padding: 30px 0 50px;
    }

    .stores-intro {
        margin-bottom: 40px;
        text-align: left;
    }

    .stores-intro p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .stores-list {
        gap: 40px;
    }

    .store-item {
        padding: 24px 16px;
    }

    .store-name {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .store-info {
        margin-bottom: 24px;
    }

    .store-address p {
        font-size: 0.875rem;
    }

    .store-map-link {
        padding: 8px 16px;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }

    .store-media {
        margin-top: 24px;
        gap: 20px;
    }

    .store-image-wrapper {
        height: 250px;
    }

    .store-video-wrapper {
        height: 250px;
    }
}

/* ========================================
   CONTACTS PAGE RESPONSIVE
   ======================================== */

@media (max-width : 850px) {
    .contacts-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-block {
        padding: 24px;
    }

    .stores-maps-title {
        font-size: 1.75rem;
    }

    .store-map-item {
        padding: 30px 20px;
    }

    .store-map-wrapper {
        height: 300px;
    }
}

@media (max-width : 576px) {
    #contacts-page {
        padding: 30px 0 50px;
    }

    .contacts-info {
        margin-bottom: 40px;
    }

    .contact-block {
        padding: 20px;
        gap: 16px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-label {
        font-size: 0.8125rem;
    }

    .contact-value {
        font-size: 0.9375rem;
    }

    .stores-maps {
        margin-top: 40px;
    }

    .stores-maps-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .stores-maps-list {
        gap: 40px;
    }

    .store-map-item {
        padding: 24px 16px;
    }

    .store-map-name {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .store-map-address {
        font-size: 0.875rem;
    }

    .store-map-metro {
        font-size: 0.8125rem;
        margin-bottom: 20px;
    }

    .store-map-wrapper {
        height: 250px;
        margin-bottom: 16px;
    }

    .store-map-link {
        padding: 8px 16px;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   BLOG PAGE RESPONSIVE
   ======================================== */

@media (max-width : 850px) {
    .blog-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-list .blog-post {
        padding: 16px;
    }

    .blog-list .blog-post img {
        height: 200px;
    }
}

@media (max-width : 576px) {
    #blog-page {
        padding: 30px 0 50px;
    }

    .blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .blog-list .blog-post {
        padding: 16px;
    }

    .blog-list .blog-post img {
        height: 220px;
    }

    .blog-list .blog-post .blog-title {
        font-size: 1rem;
    }

    .blog-list .blog-post .blog-content {
        font-size: 0.8125rem;
    }
    .product-title {
        font-size: 13px;
    }
}

/* ========================================
   BLOG POST PAGE RESPONSIVE
   ======================================== */

@media (max-width : 850px) {
    .blog-post-article {
        padding: 50px 40px 60px 40px;
    }

    .blog-post-header h1 {
        font-size: 22px;
        line-height: 28px;
    }
}

@media (max-width : 576px) {
    #blog-post-page {
        padding: 30px 0 50px;
    }

    .blog-post-article {
        padding: 30px 20px 40px 20px;
    }

    .blog-post-header {
        margin-bottom: 30px;
    }

    .blog-post-header h1 {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 16px;
    }

    .blog-post-meta {
        margin-bottom: 20px;
    }

    .blog-post-image {
        margin-bottom: 30px;
    }

    .blog-post-content h2,
    .blog-post-content h3,
    .blog-post-content h4,
    .blog-post-content h5,
    .blog-post-content h6 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .blog-post-content p {
        margin-bottom: 16px;
        font-size: 0.9375rem;
        line-height: 22px;
    }

    .blog-post-content ul {
        margin-bottom: 16px;
        padding-left: 16px;
    }

    .blog-post-image-inline {
        margin: 24px 0;
    }

    .blog-post-video {
        margin: 24px 0;
        padding-bottom: 56.25%;
    }

    .blog-post-table-wrapper {
        margin: 24px 0;
    }

    .blog-post-table th,
    .blog-post-table td {
        padding: 12px;
        font-size: 0.875rem;
    }

    .blog-post-products {
        margin-top: 40px;
        padding: 40px 0;
    }

    .blog-post-products-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
}

@media (max-width : 576px) {
    .blog-post-image-inline {
        margin: 20px 0;
    }

    .blog-post-video {
        margin: 20px 0;
    }

    .blog-post-table-wrapper {
        margin: 20px 0;
    }

    .blog-post-table {
        font-size: 0.8125rem;
    }

    .blog-post-table th,
    .blog-post-table td {
        padding: 10px 8px;
        font-size: 0.8125rem;
    }

    .blog-post-products {
        margin-top: 30px;
        padding: 30px 0;
    }

    .blog-post-products-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
}

/* ========================================
   DELIVERY PAGE RESPONSIVE
   ======================================== */

@media (max-width : 850px) {
    .delivery-section {
        padding: 30px 20px;
    }

    .delivery-section-title {
        font-size: 1.5rem;
    }

    .delivery-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width : 576px) {
    #delivery-page {
        padding: 30px 0 50px;
    }

    .delivery-section {
        padding: 24px 16px;
        margin-bottom: 30px;
    }

    .delivery-section-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .delivery-section p {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .delivery-methods {
        margin-top: 24px;
        gap: 16px;
    }

    .delivery-method-item {
        padding: 16px;
        gap: 12px;
    }

    .method-icon {
        width: 40px;
        height: 40px;
    }

    .method-icon svg {
        width: 20px;
        height: 20px;
    }

    .method-text p {
        font-size: 0.875rem;
    }

    .delivery-options {
        margin-top: 24px;
    }

    .delivery-option-item {
        padding: 20px;
    }

    .option-icon {
        font-size: 1.75rem;
    }

    .option-text {
        font-size: 0.875rem;
    }
}

/* ========================================
   RETURNS PAGE RESPONSIVE
   ======================================== */

@media (max-width : 850px) {
    .returns-section {
        padding: 30px 20px;
    }

    .returns-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width : 576px) {
    #returns-page {
        padding: 30px 0 50px;
    }

    .returns-section {
        padding: 24px 16px;
        margin-bottom: 30px;
    }

    .returns-section-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .returns-section p {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .returns-conditions {
        margin-top: 24px;
        gap: 12px;
    }

    .returns-condition-item {
        padding: 16px;
        gap: 12px;
    }

    .condition-icon {
        width: 28px;
        height: 28px;
    }

    .condition-icon svg {
        width: 18px;
        height: 18px;
    }

    .condition-text p {
        font-size: 0.875rem;
    }

    .returns-note {
        font-size: 0.8125rem;
        margin-top: 20px !important;
    }
}

/* ========================================
   EXPIRY PAGE RESPONSIVE
   ======================================== */

@media (max-width : 850px) {
    .expiry-section {
        padding: 30px 20px;
    }

    .expiry-section-title {
        font-size: 1.5rem;
    }

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

/* ========================================
   PRODUCT PAGE MOBILE FIXED BAR
   ======================================== */

@media (max-width: 767px) {
    .product-mobile-fixed-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        padding: 6px 8px;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: block;
    }

    .product-mobile-fixed-bar-content {
        display: flex;
        align-items: center;
        gap: 12px;
        max-width: 100%;
    }

    .product-mobile-price {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }

    .product-mobile-price .product-price-current {
        font-size: 1.25rem;
        color: var(--text);
        font-weight: 500;
        font-family: Montserrat, sans-serif;
    }

    .product-mobile-price .product-price-old {
        font-size: 0.875rem;
        color: var(--gray);
        text-decoration: line-through;
        font-weight: 300;
        font-family: Montserrat, sans-serif;
    }

    .btn-buy-mobile {
        flex: 0 0 auto;
        padding: 9px 32px;
        color: #fff;
        border: 1px solid var(--text);
        font-family: var(--userfont);
        font-size: 0.9375rem;
        font-weight: 500;
        background: var(--text);
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s ease;
        white-space: nowrap;
        min-width: 120px;
    }

    .btn-buy-mobile:hover {
        background: transparent;
        border-color: var( --text);
        color: var(--text);
    }

    .btn-buy-mobile:active {
        background: var( --text);
        color: #fff;
    }

    /* Добавляем отступ снизу для контента, чтобы фиксированная панель не перекрывала */
    #product-page {
        padding-bottom: 80px;
    }
    .gallery-thumbs {
        display: none;
    }
}

@media (min-width: 768px) {
    .product-mobile-fixed-bar {
        display: none;
    }
}
@media (max-width: 400px) {
.product-price .price, .product-price .price-old {
    font-size: 12px;
}
header .header-actions .search-icon {
    width: 90px;
  }
}