

/* Montserrat — основной шрифт темы (перебивает Tailwind font-sans) */
body,
body.font-sans,
.font-sans {
    font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif !important;
}

/*
 * Tailwind .container на брейкпоинтах (640…1536) задаёт свой max-width
 * и перебивает max-w-[1600px] — из‑за этого края «плывут».
 * Фиксируем единую ширину и центрирование.
 */
.container {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1600px !important;
}

@media (min-width: 640px),
       (min-width: 768px),
       (min-width: 1024px),
       (min-width: 1280px),
       (min-width: 1536px) {
    .container {
        max-width: 1600px !important;
    }
}

span.js-video-play-overlay .ri-play-circle-line {
  display:none;  
}

/* Скрываем нативные контролы видео */
 video::-webkit-media-controls {
    display: none !important;
}
 video::-webkit-media-controls-panel {
    display: none !important;
}
 video::-webkit-media-controls-play-button {
    display: none !important;
}
 video::-webkit-media-controls-timeline {
    display: none !important;
}
  video::-webkit-media-controls-volume-slider {
    display: none !important;
}


/* Homepage promo banners (Скидки / Встречай лето) — как в макете 03.html */
.banner-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #e5e7eb;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
}

.banner-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}

.banner-card__image--right {
    object-position: right center;
}

.banner-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.banner-card--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.45) 38%, rgba(255, 255, 255, 0.08) 68%);
    z-index: 1;
    pointer-events: none;
}

.banner-card__content {
    position: relative;
    z-index: 2;
}

.banner-text-btn {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--color-primary, #8F2B83);
    border-bottom: 2px solid var(--color-primary, #8F2B83);
    padding-bottom: 2px;
}

.banner-card:hover .banner-text-btn {
    opacity: 1;
    transform: translateY(0);
}

.homepage-discounts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .homepage-discounts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.homepage-summer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.homepage-summer-banner--main {
    aspect-ratio: 4 / 3;
    min-height: 280px;
    padding: 2rem;
}

.homepage-summer-banner--side {
    aspect-ratio: 4 / 3;
    min-height: 200px;
}

@media (min-width: 1024px) {
    .homepage-summer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        min-height: 600px;
        aspect-ratio: auto;
    }

    .homepage-summer-banner--main {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
        min-height: 600px;
        padding: 2rem;
    }

    .homepage-summer-banner--side {
        aspect-ratio: auto;
        min-height: 290px;
        padding: 1.5rem;
    }
}

.homepage-discounts-grid .banner-card {
    min-height: 280px;
}

.fast-oc-filters-module{
    background: white;
    border-radius: 10px;
 
}

body.theme-dark .fast-oc-filters-module {
    background: #1f2937;
    border: 1px solid #374151;
}

#fast_oc_filters_selected{
    border-radius: 10px;
    margin-bottom: 1.0rem !important;
}

.fast-oc-filters-module .fast-oc-filters-search-container {
    margin-bottom: 1.5rem !important;
}

.fast-oc-filters-module .form-group .form-group {
    border: none;
    box-shadow: none;
    padding: 0px;
}

.fast-oc-filters-search-container:after {
    content: '';
}

#button-fast_oc_filters-mobile{
        margin-top: 0;
        margin-bottom: 0.75rem;
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        background: transparent;
        color: #1f2937;
        font-weight: 700;
        font-size: 1.125rem;
        line-height: 1.4;
        text-align: left;
        cursor: default;
    }

#button-fast_oc_filters-mobile i {
        display: none;
    }

body.theme-dark #button-fast_oc_filters-mobile {
        color: #e5e7eb;
}

/* Моб. кнопка фильтров — фирменный цвет, как на макете */
@media (max-width: 767px) {
  #button-fast_oc_filters-mobile{
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      width: 100%;
      margin-bottom: 0rem;
      padding: 0.625rem 1.25rem;
      border-radius: 0.75rem;
      background-color: var(--color-primary, #8F2B83);
      color: #fff;
      font-weight: 600;
      font-size: 0.9375rem;
      line-height: 1.25;
      cursor: pointer;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
      -webkit-tap-highlight-color: transparent;
  }
  
  #fast_oc_filters_box{
      margin-top: 15px;
  }

  #button-fast_oc_filters-mobile i {
      display: inline-block;
      font-size: 1.125rem;
      line-height: 1;
  }

  #button-fast_oc_filters-mobile:hover,
  #button-fast_oc_filters-mobile:active {
      filter: brightness(1.06);
  }
}
    
.fast-oc-filters-module h3 {
    padding-left: 0px;
    margin-top:0px;
    color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

body.theme-dark .fast-oc-filters-module h3 {
    color: #e5e7eb;
}

/* Стили для form-group внутри фильтров */
.fast-oc-filters-module .form-group {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

body.theme-dark .fast-oc-filters-module .form-group {
    background: #374151;
    border-color: #4b5563;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

/* Моб.: скрываем кнопки "Очистить/Показать" пока фильтры свернуты */
@media (max-width: 767px) {
  #fast_oc_filters_box.mobile-collapsed #fast_oc_filters_actions,
  #fast_oc_filters_box.mobile-collapsed ~ #fast_oc_filters_actions {
      display: none !important;
  }
}

/* Пагинация под дизайн */
    .pagination {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .pagination > li {
        display: inline-block;
        margin: 0;
    }
    .pagination > li > a,
    .pagination > li > span {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        color: #4b5563;
        text-decoration: none;
        background: #fff;
    }
    
    body.theme-dark .pagination > li > a,
    body.theme-dark .pagination > li > span {
        background: #1f2937;
        border-color: #374151;
        color: #d1d5db;
    }
    .pagination > li > a:hover {
        border-color: #8F2B83;
        color: #8F2B83;
    }
    .pagination > li.active > span {
        background: #8F2B83;
        color: #fff;
        border-color: #8F2B83;
        font-weight: 700;
    }
    .pagination > li.disabled > span,
    .pagination > li.disabled > a {
        color: #9ca3af;
        cursor: not-allowed;
        background: #f9fafb;
    }
    
    body.theme-dark .pagination > li.disabled > span,
    body.theme-dark .pagination > li.disabled > a {
        background: #374151;
        color: #6b7280;
    }
    
    /* Grid/List view buttons */
    #grid-view.active,
    #list-view.active {
        background: #f3f4f6;
        color: #8F2B83;
    }
    body.theme-dark #grid-view.active,
    body.theme-dark #list-view.active {
        background: #374151;
        color: #60a5fa;
    }
    #grid-view:not(.active),
    #list-view:not(.active) {
        background: transparent;
        color: #9ca3af;
    }
    body.theme-dark #grid-view:not(.active),
    body.theme-dark #list-view:not(.active) {
        color: #6b7280;
    }
    #grid-view:hover,
    #list-view:hover {
        background: #f3f4f6;
        color: #8F2B83;
    }
    body.theme-dark #grid-view:hover,
    body.theme-dark #list-view:hover {
        background: #374151;
        color: #60a5fa;
    }

    /* Мобилка: только сетка, без переключателя list/grid */
    @media (max-width: 767px) {
        #list-view,
        #grid-view {
            display: none !important;
        }
    }
    
    /* Product Grid/List Layout */
    .row.grid {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    @media (min-width: 640px) {
        .row.grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
    
    @media (min-width: 1024px) {
        .row.grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }
    
    .product-grid .product-layout.product-grid {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .grid > .product-card-wrapper {
        height: 100%;
    }

    .product-grid .product-card-wrapper {
        flex-direction: column !important;
        flex: 1;
        height: 100%;
    }

    .product-card-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        min-height: calc(0.875rem * 1.375 * 2);
    }

    @media (min-width: 640px) {
        .product-card-title {
            min-height: calc(1rem * 1.375 * 2);
        }
    }

    .product-card-rating {
        min-height: 1rem;
    }

    @media (min-width: 640px) {
        .product-card-rating {
            min-height: 1.125rem;
        }
    }

    .option-pill-input:checked + .option-pill-label,
    .product-card-size-btn.border-primary {
        border-color: var(--color-primary, #2563eb) !important;
        background-color: #eff6ff !important;
        color: var(--color-primary, #2563eb) !important;
        font-weight: 600;
    }

    .option-pill-label,
    .product-card-size-btn {
        user-select: none;
    }

    .product-grid .product-card-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        position: relative;
        isolation: isolate;
    }

    .product-card-image .product-card-slider,
    .product-card-image > a.product-card-media-link {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .product-card-image .product-card-images {
        height: 100%;
        min-height: 100%;
    }

    .product-card-image .product-card-slide {
        position: relative;
        display: block;
        height: 100%;
        min-height: 100%;
        min-width: 100%;
        flex: 0 0 100%;
    }

    .product-card-image .product-card-media {
        position: absolute;
        inset: 0;
        overflow: hidden;
        background-color: #fff;
    }

    .product-card-image,
    .product-card-image .product-card-slider {
        background-color: #fff;
    }

    .product-card-image video,
    .product-card-image .product-card-media img,
    .product-card-image .product-card-media video {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .product-list .product-card-wrapper {
        flex-direction: row !important;
        height: auto !important;
        min-height: 200px;
        align-items: flex-start;
    }
    
    /* В режиме list карточки должны быть на всю ширину */
    .product-list {
        grid-column: 1 / -1;
    }
    
    /* В режиме list: изображение слева, квадратное */
    .product-list .product-card-image {
        flex-shrink: 0;
        width: 180px;
        max-width: 38vw;
        aspect-ratio: 1 / 1;
        height: auto !important;
        margin-right: 1rem;
        margin-bottom: 0 !important;
    }

    @media (min-width: 640px) {
        .product-list .product-card-image {
            width: 220px;
            max-width: none;
        }
    }

    /* В режиме list: контент справа */
    .product-list .product-card-content {
        flex: 1;
        min-width: 0;
        position: relative;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        padding-right: 0.75rem;
        padding-left: 0;
    }
    
    /* В режиме list: перемещаем кнопки wishlist/compare вниз справа контента */
    .product-list .product-card-wrapper > div.absolute.top-3.right-3 {
        top: auto !important;
        bottom: 1rem;
        right: 1rem;
        left: auto !important;
        flex-direction: row;
        gap: 0.5rem;
        z-index: 30;
    }
    
    .compare-table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    }
    body.theme-dark .compare-table {
        background: #1f2937 !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3) !important;
    }
    .compare-table thead {
        background: #f9fafb;
    }
    body.theme-dark .compare-table thead {
        background: #374151;
    }
    .compare-table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        color: #111827;
        border-bottom: 2px solid #e5e7eb;
    }
    body.theme-dark .compare-table th {
        color: #e5e7eb;
        border-bottom-color: #4b5563;
    }
    .compare-table th:first-child {
        width: 200px;
        min-width: 200px;
    }
    .compare-table td {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        vertical-align: top;
    }
    body.theme-dark .compare-table td {
        border-bottom-color: #374151;
        color: #d1d5db;
    }
    .compare-table tbody tr:last-child td {
        border-bottom: none;
    }
    .compare-table .product-cell {
        text-align: center;
        vertical-align: middle;
    }
    .compare-table .product-image {
        width: 150px;
        height: 150px;
        object-fit: contain;
        margin: 0 auto 1rem;
        border-radius: 0.5rem;
    }
    .compare-table .product-name {
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: #111827;
    }
    body.theme-dark .compare-table .product-name {
        color: #e5e7eb;
    }
    .compare-table .product-name a {
        color: #111827;
        text-decoration: none;
    }
    body.theme-dark .compare-table .product-name a {
        color: #e5e7eb;
    }
    .compare-table .product-name a:hover {
        color: #8F2B83;
    }
    .compare-table .price-new {
        color: #dc2626;
        font-weight: 700;
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }
    .compare-table .price-old {
        color: #9ca3af;
        text-decoration: line-through;
        font-size: 0.875rem;
    }
    .compare-table .rating {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    .compare-table .rating i {
        color: #fbbf24;
        font-size: 1rem;
    }
    .compare-table .btn-cart {
        width: 100%;
        padding: 0.5rem 1rem;
        background: #8F2B83;
        color: white;
        border: none;
        border-radius: 0.5rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s;
        margin-bottom: 0.5rem;
    }
    .compare-table .btn-cart:hover {
        background: #1d4ed8;
    }
    .compare-table .btn-remove {
        width: 100%;
        padding: 0.5rem 1rem;
        background: #ef4444;
        color: white;
        border: none;
        border-radius: 0.5rem;
        font-weight: 500;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        transition: background 0.2s;
    }
    .compare-table .btn-remove:hover {
        background: #dc2626;
    }
    @media (max-width: 768px) {
        .compare-table {
            display: block;
            overflow-x: auto;
        }
        .compare-table th:first-child {
            position: sticky;
            left: 0;
            background: #f9fafb;
            z-index: 10;
        }
        body.theme-dark .compare-table th:first-child {
            background: #374151;
        }
        .compare-table td:first-child {
            position: sticky;
            left: 0;
            background: white;
            z-index: 5;
        }
        body.theme-dark .compare-table td:first-child {
            background: #1f2937;
        }
    }
    
    /* Стили для кнопки "Все" в тегах блога */
    .blog-tags-filter a:not(.active) {
        background-color: white !important;
        color: #374151 !important;
        border-color: #e5e7eb !important;
    }
    body.theme-dark .blog-tags-filter a:not(.active) {
        background-color: #1f2937 !important;
        color: #d1d5db !important;
        border-color: #374151 !important;
    }
    .blog-tags-filter a.active {
        background-color: #8F2B83 !important;
        color: white !important;
        border-color: #8F2B83 !important;
    }

input[name="search"]{
    margin-right: 5px !important;
}

/* Табы секций на странице товара */
.product-section-nav-link {
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
}

.product-section-nav-link:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.product-section-nav-link.is-active {
    font-weight: 700;
    color: #111827;
    border-bottom-color: var(--color-primary);
}

/* Карточка товара в каталоге (референс favor) */
.product-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    transition: z-index 0s linear 0.1s, overflow 0s linear 0.1s;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 0;
    border-radius: 0.75rem;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Главная: карточки в сетке — кнопка «В корзину» не обрезается */
.homepage-products-section {
    overflow: visible;
}

.homepage-products-grid {
    overflow: clip;
    padding-bottom: 10rem;
}

@supports not (overflow: clip) {
    .homepage-products-grid {
        overflow: hidden;
    }
}

.homepage-products-grid .product-layout {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.homepage-products-grid .product-layout:hover {
    z-index: 50;
}

.homepage-products-grid .product-card .add-to-cart-btn {
    z-index: 20;
}

/* Главная: карусель новинок/бестселлеров — края как у сетки, стрелки наполовину снаружи */
.homepage-products-carousel-wrap {
    position: relative;
    overflow: visible; /* стрелки не обрезаем */
}

.homepage-products-carousel-wrap .homepage-products-carousel-prev,
.homepage-products-carousel-wrap .homepage-products-carousel-next {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.homepage-products-carousel-wrap .homepage-products-carousel-prev {
    left: 0;
    margin-left: -25px;
}

.homepage-products-carousel-wrap .homepage-products-carousel-next {
    right: 0;
    margin-right: -25px;
}

/*
 * Клип только у трека: горизонтальный срез карточек + место снизу под hover,
 * без бегунка и без обрезки стрелок (они снаружи, на wrap).
 */
.homepage-products-carousel {
    overflow: clip;
    padding-bottom: 10rem;
    margin-bottom: -2rem;
}

@supports not (overflow: clip) {
    .homepage-products-carousel {
        overflow: hidden;
    }
}

.homepage-products-carousel-track {
    overflow: visible;
}

.homepage-products-carousel-item {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.homepage-products-carousel-item:hover {
    z-index: 50;
}

.homepage-products-carousel-item .product-card .add-to-cart-btn {
    z-index: 20;
}

.product-card .card-inner {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.product-card-badge.badge-sale { background-color: #E63946; }
.product-card-badge.badge-new { background-color: #8F2B83; }
.product-card-badge.badge-best_price { background-color: #2A9D8F; }
.product-card-badge.badge-premium { background-color: #264653; }

.product-card .add-to-cart-btn {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 0;
    border-radius: 0.5rem;
    background-color: var(--color-primary, #8F2B83);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

/* Десктоп: размеры + «Купить» одним блоком под карточкой при hover */
@media (hover: hover) and (pointer: fine) {
    .product-card .product-card-hover-actions {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 21;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px 12px 12px;
        margin: 0;
        opacity: 0;
        pointer-events: none;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-top: none;
        border-radius: 0 0 0.75rem 0.75rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .product-card .product-card-hover-actions .product-card-size {
        position: static;
        margin: 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .product-card .product-card-hover-actions .add-to-cart-btn {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        margin: 0;
        box-shadow: none;
    }

    .product-card:hover {
        z-index: 50;
        overflow: visible;
    }

    .product-card:hover::after {
        height: 100%;
        border: 1px solid #e5e7eb;
        border-bottom: none;
        border-radius: 0.75rem 0.75rem 0 0;
        box-shadow: none;
    }

    .product-card:hover .product-card-hover-actions {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Мобилка / touch: «Купить» и размеры всегда на месте, без сползания */
@media (hover: none), (pointer: coarse), (max-width: 767px) {
    .product-card,
    .product-card:hover {
        z-index: 1;
        overflow: hidden;
    }

    .product-card::after,
    .product-card:hover::after {
        height: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }

    .product-card .product-card-hover-actions {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin-top: 10px;
        opacity: 1 !important;
        pointer-events: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        transition: none;
    }

    .product-card .product-card-size,
    .product-card:hover .product-card-size {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
        margin: 0 !important;
        transition: none;
    }

    .product-card .add-to-cart-btn,
    .product-card:hover .add-to-cart-btn {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        display: block;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
        margin: 0;
        transition: none;
    }
}

/* Мобилка: картинка и «Купить» на всю ширину карточки (в т.ч. после list-view) */
@media (max-width: 767px) {
    .product-card-image,
    .product-grid .product-card-image,
    .product-list .product-card-image {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        aspect-ratio: 1 / 1;
    }

    .product-list .product-card-wrapper {
        flex-direction: column !important;
        min-height: 0;
    }

    .product-list .product-card-content {
        width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .product-card .add-to-cart-btn {
        width: 100%;
        display: block;
        box-sizing: border-box;
    }

    .product-card-image .product-card-slider,
    .product-card-image .product-card-images {
        width: 100%;
    }

    .product-card-image .product-card-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100%;
    }
}

/* Страница товара */
.product-page-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .product-page-layout {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
        gap: 3rem;
        align-items: start;
    }

    .product-gallery-col {
        grid-column: 1;
        grid-row: 1;
    }

    .product-content-col {
        grid-column: 1;
        grid-row: 2;
    }

    .product-buy-col {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    #product-buy-block {
        position: fixed;
        top: 9rem;
        /* Та же логика, что у .container max-width: 1600px + px-4 */
        right: max(1rem, calc((100vw - 1600px) / 2 + 1rem));
        width: calc(30% - 1.5rem);
        max-width: 480px;
        z-index: 30;
        max-height: calc(100vh - 10rem);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    #product-buy-block::-webkit-scrollbar {
        width: 6px;
    }

    #product-buy-block::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 20px;
    }
}

.product-spec-dots {
    flex: 1;
    border-bottom: 1px dotted #cbd5e1;
    margin: 0 8px;
    position: relative;
    top: -4px;
    min-width: 10px;
}

.product-option-grid .option-pill-input:checked + .option-pill-label {
    border-color: var(--color-primary, #8F2B83);
    background-color: var(--color-primary, #8F2B83);
    color: #fff;
}



.bg-blue-500 {
    background: crimson !important;
}

.hover\:bg-blue-700:hover {
    --tw-bg-opacity: 1;
    background-color: rgba(112, 26, 102, 1) !important;
}

.ring-size-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    touch-action: none;
}

#ring-size-modal .accent-primary {
    accent-color: var(--color-primary, #8F2B83);
}

/* --- Favor header / catalog overlay --- */
.favor-header-wrapper {
    position: relative;
}

.favor-menu-btn {
    position: relative;
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 14px;
    height: 40px;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    border-radius: 0.5rem;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    text-decoration: none;
}

@media (min-width: 768px) {
    .favor-menu-btn {
        display: inline-flex;
    }
}

.favor-menu-btn--grow {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
}

.favor-menu-btn.is-active,
.favor-menu-btn.active {
    background-color: #e5e7eb;
    color: #4b5563;
    justify-content: space-between;
    min-width: 9.5rem;
    padding-right: 12px;
}

.favor-hamburger {
    width: 18px;
    height: 16px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    order: 1;
}

.favor-menu-btn-text {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
    order: 2;
    transition: opacity 0.2s;
}

.favor-menu-btn-close {
    display: none;
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
    order: 1;
}

.favor-menu-btn.is-active .favor-menu-btn-text,
.favor-menu-btn.active .favor-menu-btn-text {
    display: none;
}

.favor-menu-btn.is-active .favor-menu-btn-close,
.favor-menu-btn.active .favor-menu-btn-close {
    display: block;
}

.favor-menu-btn.is-active .favor-hamburger,
.favor-menu-btn.active .favor-hamburger {
    order: 2;
    margin-left: auto;
}

.favor-hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    left: 0;
    transition: 0.25s ease-in-out;
}

.favor-hamburger span:nth-child(1) { top: 0; }
.favor-hamburger span:nth-child(2) { top: 7px; }
.favor-hamburger span:nth-child(3) { top: 14px; }

.favor-menu-btn.is-active .favor-hamburger span:nth-child(1),
.favor-menu-btn.active .favor-hamburger span:nth-child(1) {
    top: 7px;
    transform: rotate(135deg);
}

.favor-menu-btn.is-active .favor-hamburger span:nth-child(2),
.favor-menu-btn.active .favor-hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.favor-menu-btn.is-active .favor-hamburger span:nth-child(3),
.favor-menu-btn.active .favor-hamburger span:nth-child(3) {
    top: 7px;
    transform: rotate(-135deg);
}

.favor-catalog-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    z-index: 39;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    width: 100%;
}

.favor-catalog-overlay.open {
    max-height: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--color-primary);
}

.favor-catalog-grid-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 20px 30px;
}

.favor-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.favor-category-item {
    aspect-ratio: 1 / 1;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 20px 15px 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.favor-category-item:hover {
    background-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.favor-category-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 55%, transparent);
    pointer-events: none;
    border-radius: 1rem;
}

.favor-category-item--image::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08) 55%, transparent);
}

.favor-category-item__name {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    position: relative;
    z-index: 2;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.favor-category-item__count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    position: relative;
    z-index: 2;
    margin-top: 4px;
}

.favor-category-item:not(.favor-category-item--image) .favor-category-item__name {
    color: #1f2937;
    text-shadow: none;
}

.favor-category-item:not(.favor-category-item--image) .favor-category-item__count {
    color: #4b5563;
}

.favor-category-item:not(.favor-category-item--image)::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

.favor-header-cart #cart-button {
    font-size: 1.25rem;
    line-height: 1;
}

#search-form-desktop {
    width: 100%;
}

#search-form-desktop input[name="search"] {
    width: 100%;
}

@media (max-width: 767px) {
    .favor-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.favor-catalog-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#mobile-menu .favor-category-item--mobile {
    aspect-ratio: 1 / 1;
    padding: 14px 10px 10px;
    border-radius: 0.75rem;
}

#mobile-menu .favor-category-item--mobile .favor-category-item__name {
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 0;
}

#mobile-menu .favor-category-item--mobile .favor-category-item__count {
    font-size: 11px;
    margin-top: 6px;
}

#mobile-menu .favor-category-item--mobile:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.theme-dark #mobile-menu .favor-category-item--mobile .favor-category-item__name,
body.theme-dark #mobile-menu .favor-category-item--mobile .favor-category-item__count {
    color: inherit !important;
}

body.theme-dark #mobile-menu .favor-category-item--mobile.favor-category-item--image .favor-category-item__name,
body.theme-dark #mobile-menu .favor-category-item--mobile.favor-category-item--image .favor-category-item__count {
    color: #fff !important;
}

body.theme-dark #mobile-menu .favor-category-item--mobile:not(.favor-category-item--image) .favor-category-item__name {
    color: #1f2937 !important;
}

body.theme-dark #mobile-menu .favor-category-item--mobile:not(.favor-category-item--image) .favor-category-item__count {
    color: #4b5563 !important;
}

/* Белый фон под прозрачными PNG в карточках и на странице товара */
.product-card-media,
.product-card-image,
.product-card-image .product-card-slider,
.product-card-image .product-card-slide,
.product-gallery-thumb,
#product-main-image {
    background-color: #fff;
}

.product-gallery-thumb img,
.product-gallery-thumb video,
#product-main-image img,
#product-main-image video {
    background-color: #fff;
}

/* Оверлей прозрачен для кликов */
.js-video-play-overlay {
    pointer-events: none !important;
}

/* Ссылка поверх всего */
.product-card-image a.product-card-slide,
.product-card-image a.product-card-media-link {
    position: relative;
    z-index: 20 !important;
    display: block;
    width: 100%;
    height: 100%;
}

/* Видео НЕ блокируем pointer-events, чтобы работал hover */
.product-card-media video.js-hover-video {
    cursor: pointer;
    /* Убираем любые pointer-events: none если они были */
}

/* Кастомные селекты сортировки / лимита */
.catalog-toolbar {
    overflow: visible;
    position: relative;
    z-index: 5;
    width: 100%;
    justify-content: space-between;
}

.catalog-select {
    position: relative;
    min-width: 0;
}

.catalog-select--sort {
    flex: 0 1 auto;
    max-width: min(100%, 18rem);
}

.catalog-select--limit {
    flex: 0 0 auto;
    margin-left: auto;
}

.catalog-select__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    color: #111827;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.catalog-select__btn:hover {
    border-color: #d1d5db;
    background: #fff;
}

.catalog-select.is-open .catalog-select__btn {
    border-color: var(--color-primary, #8F2B83);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #8F2B83) 16%, transparent);
}

.catalog-select__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
    text-align: left;
}

.catalog-select__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1;
}

.catalog-select__value {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
}

.catalog-select__chevron {
    flex-shrink: 0;
    font-size: 1.125rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.catalog-select.is-open .catalog-select__chevron {
    transform: rotate(180deg);
    color: var(--color-primary, #8F2B83);
}

.catalog-select__panel {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    z-index: 40;
    min-width: 100%;
    width: max-content;
    max-width: min(20rem, 85vw);
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.375rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.18), 0 4px 10px -4px rgba(15, 23, 42, 0.08);
}

.catalog-select--limit .catalog-select__panel {
    left: auto;
    right: 0;
}

.catalog-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    border-radius: 0.625rem;
    background: transparent;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.catalog-select__option:hover {
    background: #f3f4f6;
    color: #111827;
}

.catalog-select__option.is-active {
    background: color-mix(in srgb, var(--color-primary, #8F2B83) 10%, #fff);
    color: var(--color-primary, #8F2B83);
}

.catalog-select__check {
    flex-shrink: 0;
    font-size: 1rem;
    opacity: 0;
    color: var(--color-primary, #8F2B83);
}

.catalog-select__option.is-active .catalog-select__check {
    opacity: 1;
}

@media (min-width: 640px) {
    .catalog-select__btn {
        font-size: 0.875rem;
        min-height: 2.75rem;
        padding: 0.55rem 0.875rem;
    }

    .catalog-select--sort {
        max-width: 18rem;
    }

    .catalog-select--limit {
        min-width: 8.5rem;
    }
}