/**
 * @file: frontend-utilities.css
 * @description: Общие стили фронтенда, вынесенные из inline.
 * @dependencies: /static/css/style.css, /static/css/main.css
 * @created: 2026-01-31
 */

:root {
    --font-family-base: 'Montserrat', sans-serif;
    --content-indent: 8px; /* минимальный отступ, вплотную к краям */
    /* Единый скроллбар страницы и внутренних полос прокрутки */
    --app-scrollbar-track: transparent;
    --app-scrollbar-thumb: rgba(0, 0, 0, 0.22);
    --app-scrollbar-thumb-hover: rgba(0, 0, 0, 0.38);
    --app-scrollbar-width: 5px;
}

/* Viewport: одинаковый тонкий скроллбар на всех страницах (Chrome / Edge / Safari / Firefox) */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--app-scrollbar-thumb) var(--app-scrollbar-track);
}

html::-webkit-scrollbar {
    width: var(--app-scrollbar-width);
    height: var(--app-scrollbar-width);
}

html::-webkit-scrollbar-track {
    background: var(--app-scrollbar-track);
}

html::-webkit-scrollbar-thumb {
    background-color: var(--app-scrollbar-thumb);
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
    background-color: var(--app-scrollbar-thumb-hover);
}

html::-webkit-scrollbar-corner {
    background: transparent;
}

/* Bootstrap container tweak (preview parity) */
div.container-fluid {
    padding-left: 11px;
    /* Симметрия с левым отступом: full-bleed (calc(50% - 50vw)) не смещал контент влево */
    padding-right: 11px;
}

/* Global page content padding */
.page-content {
    padding-left: var(--content-indent);
    padding-right: var(--content-indent);
}

.page-content-left {
    padding-left: var(--content-indent);
}

.page-content-right {
    padding-right: var(--content-indent);
}

body, button, input, select, textarea, a, h1, h2, h3, h4, h5, h6, p, small, span, label, li, ul, ol {
    font-family: 'Montserrat', sans-serif !important;
}

/* Мобилки: iOS Safari зумит при фокусе, если computed font-size поля < 16px — сдвигает вёрстку. Резерв к viewport meta. */
@media (max-width: 991.98px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
    textarea,
    select {
        font-size: max(16px, 1em);
    }
}

/* Tabs module: mobile 1 card per view — только внутри главной вкладки, не PDP «Другие товары» (.related-products-section) */
@media (max-width: 767px) {
    .tabs-module-container .products-carousel .swiper-wrapper {
        width: 100% !important;
    }
    .tabs-module-container .products-carousel .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }
}

/* Tabs nav: single row with horizontal scroll on mobile */
.tabs-navigation .nav {
    flex-wrap: nowrap !important;
    gap: 0.75rem;
    justify-content: center;
}
.tabs-navigation .nav-link {
    white-space: nowrap;
}
@media (max-width: 576px) {
    .tabs-navigation .nav {
        justify-content: flex-start !important;
    }
}

/* Favorite buttons unified */
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: #fff;
    border: 1px solid #000;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    color: #000;
    opacity: 1;
}
.fav-btn svg {
    width: 16px;
    height: 16px;
    color: #000;
}
.fav-btn svg path {
    fill: none;
    stroke: currentColor;
}
.fav-btn:hover {
    transform: scale(1.05);
}
.fav-btn.active {
    background: #fff;
    color: #000;
    border-color: #000;
}
.fav-btn.active svg path {
    fill: currentColor;
    stroke: currentColor;
}

/* Unified alerts: minimal style matching offcanvas design */
.alert {
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    padding: 10px 12px !important;
    box-shadow: none;
    font-weight: 500;
    font-size: 12px;
    background: #fff !important;
    color: #111 !important;
}
.alert-success,
.alert-warning,
.alert-danger,
.alert-info,
.alert-primary,
.alert-secondary {
    background: #fff !important;
    color: #111 !important;
    border-color: #e5e5e5 !important;
}
.alert.position-fixed {
    min-width: 200px;
    max-width: 320px;
}
.alert .btn-close {
    filter: none;
    opacity: 0.6;
    width: 12px;
    height: 12px;
    padding: 8px;
}
.alert .btn-close:hover {
    opacity: 1;
}
.alert strong {
    font-weight: 600;
}

/* Offcanvas width on desktop (cart/auth/user) */
@media (min-width: 992px) {
    #cartOffcanvas.offcanvas-end,
    #authOffcanvas.offcanvas-end,
    #userOffcanvas.offcanvas-end {
        width: 30vw;
        max-width: 30vw;
    }
}

/* Конвертер валют */
.currency-converter {
    position: relative;
}
.currency-converter .dropdown-toggle {
    display: flex;
    align-items: center;
    font-weight: 500;
    border: none !important;
    box-shadow: none !important;
}
.currency-converter .dropdown-toggle::after,
#currencyDropdownMobile.dropdown-toggle::after {
    display: none;
}
.currency-converter .dropdown-toggle:focus {
    outline: none;
    box-shadow: none;
}
.currency-converter .dropdown-menu {
    min-width: auto;
    width: auto;
    padding: 0.25rem 2.5px;
    border: none;
    box-shadow: none;
    background: #fff;
}
.currency-converter #currencyDropdownMenu {
    left: 0 !important;
    right: auto !important;
    top: 100% !important;
    margin-top: 2px;
}
.currency-converter #currencyDropdownMenu li {
    width: auto;
}
.currency-converter .dropdown-item {
    font-size: 0.9rem;
    width: auto;
    height: auto;
    padding: 0.25rem 5px;
}
.currency-converter .currency-option {
    cursor: pointer;
    padding: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}
.currency-converter .currency-option:hover {
    background: transparent;
    text-decoration: none;
}
.currency-converter .currency-option.active {
    background: transparent;
    font-weight: 600;
}

/* Правая зона навбара */
nav.navbar .d-md-flex.align-items-center.d-none.ms-auto {
    min-height: 28px;
}

nav.navbar .navbar-right {
    gap: 12px;
    overflow: visible;
    padding-left: 20px;
    padding-right: 20px;
}

nav.navbar .navbar-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.navbar .navbar-icons .nav-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav.navbar .navbar-icons .nav-link {
    padding: 0;
}

nav.navbar .navbar-icon.header-icon-slot {
    color: #000;
    transition: color 0.15s ease;
}

nav.navbar .navbar-icon.header-icon-slot:hover,
nav.navbar .navbar-icon.header-icon-slot:focus {
    color: #e5241f;
}

nav.navbar .navbar-icon.header-icon-slot:hover svg,
nav.navbar .navbar-icon.header-icon-slot:focus svg {
    stroke: currentColor;
}

nav.navbar #searchbox:hover,
nav.navbar #searchbox:focus {
    color: #e5241f;
}

nav.navbar #searchbox:hover svg,
nav.navbar #searchbox:focus svg {
    stroke: #e5241f;
}

nav.navbar .currency-converter .dropdown-toggle:hover,
nav.navbar .currency-converter .dropdown-toggle:focus {
    color: #e5241f;
}

nav.navbar .currency-converter .dropdown-toggle:hover #currencyDisplay,
nav.navbar .currency-converter .dropdown-toggle:focus #currencyDisplay {
    color: #e5241f;
}

nav.navbar .cart-icon-wrapper.header-icon-slot {
    color: #000;
}

nav.navbar .cart-icon-wrapper.header-icon-slot:hover,
nav.navbar .cart-icon-wrapper.header-icon-slot:focus {
    color: #e5241f;
}

nav.navbar .cart-count-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    min-width: 1rem;
    line-height: 1;
}

/* Offcanvas below header (моб. шапка ~42–48px; 60px давало зазор до первого пересчёта JS) */
:root {
    --navbar-height: 48px;
    --offcanvas-top: 48px;
}

.offcanvas-below-header {
    top: var(--offcanvas-top) !important;
    height: calc(100% - var(--offcanvas-top)) !important;
    margin-top: 0;
}

.offcanvas-backdrop {
    top: var(--offcanvas-top) !important;
    height: calc(100% - var(--offcanvas-top)) !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    border: none;
    outline: none;
}

#currencyDisplay {
    font-size: 14px;
    color: rgba(0, 0, 0, 1);
    height: 18px;
}

.offcanvas-backdrop {
    font-size: 12px;
}

/* Верхняя плашка */
h6.text-white {
    font-size: 12px;
}

/* Quantity controls */
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.quantity-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.quantity-btn:hover {
    background: #222;
    border-color: #222;
    color: #fff;
}
.quantity-input {
    width: 56px;
    height: 32px;
    text-align: center;
    border: 1px solid #000;
    border-radius: 0;
    padding: 0 6px;
    font-size: 14px;
}
.quantity-input.no-spin {
    -moz-appearance: textfield;
}
.quantity-input.no-spin::-webkit-outer-spin-button,
.quantity-input.no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: none;
}

/* Slider buttons: стекло + blur как у .carousel-card__button (rgba 10%, backdrop-filter на элементе) */
.slider-hover-btn {
    position: relative;
    isolation: isolate;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1) !important;
    background: color-mix(in srgb, var(--slider-btn-bg, #ffffff) 10%, transparent) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-font-smoothing: antialiased;
}
.slider-hover-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    background: color-mix(in srgb, var(--slider-btn-bg, #ffffff) 20%, transparent) !important;
}
.slider-hover-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Зачёркнутая старая цена (карточки каталога, карусели, товар, мегаменю) */
span.text-decoration-line-through.text-muted {
    color: rgba(0, 0, 0, 1) !important;
    font-weight: 400;
}

/* Глобальные skeleton-заглушки для асинхронных блоков */
:root {
    --hooup-skeleton-base: #eceff3;
    --hooup-skeleton-highlight: #f8fafc;
}

@keyframes hooup-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.hooup-skeleton-inline,
.hooup-skeleton-block,
.hooup-skeleton-circle {
    --hooup-skeleton-radius: 999px;
    position: relative;
}

.is-skeleton-loading {
    color: transparent !important;
    text-shadow: none !important;
    user-select: none;
}

.is-skeleton-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--hooup-skeleton-radius, 999px);
    background: linear-gradient(
        90deg,
        var(--hooup-skeleton-base) 0%,
        var(--hooup-skeleton-highlight) 50%,
        var(--hooup-skeleton-base) 100%
    );
    background-size: 220% 100%;
    animation: hooup-skeleton-shimmer 1.25s linear infinite;
    pointer-events: none;
}

.is-skeleton-loading > * {
    visibility: hidden !important;
}

.is-skeleton-loading.hooup-skeleton-inline {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    min-width: var(--hooup-skeleton-width, 6ch);
    min-height: var(--hooup-skeleton-height, 1em);
}

.is-skeleton-loading.hooup-skeleton-block {
    display: block;
    width: var(--hooup-skeleton-width, 100%);
    min-height: var(--hooup-skeleton-height, 1rem);
}

.is-skeleton-loading.hooup-skeleton-circle {
    display: inline-flex;
    width: var(--hooup-skeleton-size, 36px);
    height: var(--hooup-skeleton-size, 36px);
    border-radius: 50%;
}

.hooup-skeleton-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
}

.hooup-skeleton-product-card {
    background: #fff;
    pointer-events: none;
}

.hooup-skeleton-product-card__media {
    --hooup-skeleton-radius: 0;
    aspect-ratio: 3 / 4;
    min-height: auto;
}

.hooup-skeleton-product-card__body {
    display: grid;
    gap: 8px;
    padding: 10px 0 8px;
}

.hooup-skeleton-product-card__line--title {
    --hooup-skeleton-height: 12px;
    --hooup-skeleton-width: 82%;
}

.hooup-skeleton-product-card__line--subtitle {
    --hooup-skeleton-height: 10px;
    --hooup-skeleton-width: 54%;
}

.hooup-skeleton-product-card__line--price {
    --hooup-skeleton-height: 14px;
    --hooup-skeleton-width: 40%;
}

.hooup-skeleton-product-card__swatches {
    display: flex;
    gap: 8px;
    padding-top: 2px;
}

.hooup-skeleton-product-card__swatch {
    --hooup-skeleton-size: 18px;
}

.hooup-mini-cart-skeleton {
    display: grid;
    gap: 12px;
}

.hooup-mini-cart-skeleton__item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.hooup-mini-cart-skeleton__thumb {
    --hooup-skeleton-width: 64px;
    --hooup-skeleton-height: 84px;
    --hooup-skeleton-radius: 12px;
}

.hooup-mini-cart-skeleton__body {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.hooup-mini-cart-skeleton__line--title {
    --hooup-skeleton-height: 12px;
    --hooup-skeleton-width: 88%;
}

.hooup-mini-cart-skeleton__line--meta {
    --hooup-skeleton-height: 10px;
    --hooup-skeleton-width: 62%;
}

.hooup-mini-cart-skeleton__line--price {
    --hooup-skeleton-height: 12px;
    --hooup-skeleton-width: 44%;
}

html[data-currency-pending="1"] #currencyDisplay,
html[data-currency-pending="1"] #currencyDisplayMobile,
html[data-currency-pending="1"] .product-price-category,
html[data-currency-pending="1"] #product-price,
html[data-currency-pending="1"] .product-gallery__price,
html[data-currency-pending="1"] .cart-item-price,
html[data-currency-pending="1"] .cart-item-total,
html[data-currency-pending="1"] [data-cart-subtotal],
html[data-currency-pending="1"] [data-cart-total],
html[data-currency-pending="1"] #cartOffcanvasTotal,
html[data-currency-pending="1"] #checkout_before_discount_display,
html[data-currency-pending="1"] #checkout_product_discount_display,
html[data-currency-pending="1"] #cart_before_discount_display,
html[data-currency-pending="1"] #cart_product_discount_display,
html[data-currency-pending="1"] #cartOffcanvasBeforeDiscount,
html[data-currency-pending="1"] #cartOffcanvasDiscountSum,
html[data-currency-pending="1"] #shipping_cost_summary,
html[data-currency-pending="1"] #shipping_cost_value {
    position: relative;
    color: transparent !important;
    text-shadow: none !important;
    user-select: none;
}

html[data-currency-pending="1"] #currencyDisplay *,
html[data-currency-pending="1"] #currencyDisplayMobile *,
html[data-currency-pending="1"] .product-price-category *,
html[data-currency-pending="1"] #product-price *,
html[data-currency-pending="1"] .product-gallery__price *,
html[data-currency-pending="1"] .cart-item-price *,
html[data-currency-pending="1"] .cart-item-total *,
html[data-currency-pending="1"] [data-cart-subtotal] *,
html[data-currency-pending="1"] [data-cart-total] *,
html[data-currency-pending="1"] #cartOffcanvasTotal *,
html[data-currency-pending="1"] #checkout_before_discount_display *,
html[data-currency-pending="1"] #checkout_product_discount_display *,
html[data-currency-pending="1"] #cart_before_discount_display *,
html[data-currency-pending="1"] #cart_product_discount_display *,
html[data-currency-pending="1"] #cartOffcanvasBeforeDiscount *,
html[data-currency-pending="1"] #cartOffcanvasDiscountSum *,
html[data-currency-pending="1"] #shipping_cost_summary *,
html[data-currency-pending="1"] #shipping_cost_value * {
    color: transparent !important;
}

html[data-currency-pending="1"] #currencyDisplay::after,
html[data-currency-pending="1"] #currencyDisplayMobile::after,
html[data-currency-pending="1"] .product-price-category::after,
html[data-currency-pending="1"] #product-price::after,
html[data-currency-pending="1"] .product-gallery__price::after,
html[data-currency-pending="1"] .cart-item-price::after,
html[data-currency-pending="1"] .cart-item-total::after,
html[data-currency-pending="1"] [data-cart-subtotal]::after,
html[data-currency-pending="1"] [data-cart-total]::after,
html[data-currency-pending="1"] #cartOffcanvasTotal::after,
html[data-currency-pending="1"] #checkout_before_discount_display::after,
html[data-currency-pending="1"] #checkout_product_discount_display::after,
html[data-currency-pending="1"] #cart_before_discount_display::after,
html[data-currency-pending="1"] #cart_product_discount_display::after,
html[data-currency-pending="1"] #cartOffcanvasBeforeDiscount::after,
html[data-currency-pending="1"] #cartOffcanvasDiscountSum::after,
html[data-currency-pending="1"] #shipping_cost_summary::after,
html[data-currency-pending="1"] #shipping_cost_value::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--hooup-skeleton-base) 0%,
        var(--hooup-skeleton-highlight) 50%,
        var(--hooup-skeleton-base) 100%
    );
    background-size: 220% 100%;
    animation: hooup-skeleton-shimmer 1.25s linear infinite;
    pointer-events: none;
}

html[data-currency-pending="1"] #currencyDisplay,
html[data-currency-pending="1"] #currencyDisplayMobile {
    display: inline-flex;
    min-width: 3.25ch;
}

html[data-currency-pending="1"] .product-price-category,
html[data-currency-pending="1"] #product-price,
html[data-currency-pending="1"] .product-gallery__price,
html[data-currency-pending="1"] .cart-item-price,
html[data-currency-pending="1"] .cart-item-total,
html[data-currency-pending="1"] [data-cart-subtotal],
html[data-currency-pending="1"] [data-cart-total],
html[data-currency-pending="1"] #cartOffcanvasTotal,
html[data-currency-pending="1"] #checkout_before_discount_display,
html[data-currency-pending="1"] #checkout_product_discount_display,
html[data-currency-pending="1"] #cart_before_discount_display,
html[data-currency-pending="1"] #cart_product_discount_display,
html[data-currency-pending="1"] #cartOffcanvasBeforeDiscount,
html[data-currency-pending="1"] #cartOffcanvasDiscountSum,
html[data-currency-pending="1"] #shipping_cost_summary,
html[data-currency-pending="1"] #shipping_cost_value {
    min-width: 6rem;
}

@media (max-width: 991.98px) {
    .hooup-skeleton-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hooup-skeleton-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .is-skeleton-loading::after,
    html[data-currency-pending="1"] #currencyDisplay::after,
    html[data-currency-pending="1"] #currencyDisplayMobile::after,
    html[data-currency-pending="1"] .product-price-category::after,
    html[data-currency-pending="1"] #product-price::after,
    html[data-currency-pending="1"] .product-gallery__price::after,
    html[data-currency-pending="1"] .cart-item-price::after,
    html[data-currency-pending="1"] .cart-item-total::after,
    html[data-currency-pending="1"] [data-cart-subtotal]::after,
    html[data-currency-pending="1"] [data-cart-total]::after,
    html[data-currency-pending="1"] #cartOffcanvasTotal::after,
    html[data-currency-pending="1"] #checkout_before_discount_display::after,
    html[data-currency-pending="1"] #checkout_product_discount_display::after,
    html[data-currency-pending="1"] #cart_before_discount_display::after,
    html[data-currency-pending="1"] #cart_product_discount_display::after,
    html[data-currency-pending="1"] #cartOffcanvasBeforeDiscount::after,
    html[data-currency-pending="1"] #cartOffcanvasDiscountSum::after,
    html[data-currency-pending="1"] #shipping_cost_summary::after,
    html[data-currency-pending="1"] #shipping_cost_value::after {
        animation: none;
    }
}

/* Плавающая кнопка «Чат поддержки» (клиентская часть, не /account) */
.support-chat-fab {
    position: fixed;
    z-index: 1040;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    border-radius: 50%;
    background: #111;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.support-chat-fab:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.support-chat-fab:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}
.support-chat-fab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
@media (max-width: 991.98px) {
    .support-chat-fab {
        bottom: max(40px, env(safe-area-inset-bottom, 0px));
    }
}

/* Поле пароля с кнопкой «показать» (глаз): ЛК, offcanvas авторизации, модалка) */
.password-field-wrap {
    position: relative;
    width: 100%;
}
.password-field-wrap .password-toggle-input {
    padding-right: 2.75rem;
}
.password-toggle-btn {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0.35rem;
    line-height: 0;
    color: #666;
    cursor: pointer;
    border-radius: 2px;
}
.password-toggle-btn:hover {
    color: #111;
}
.password-toggle-btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 1px;
}
.password-toggle-btn svg {
    display: block;
}
@media (prefers-reduced-motion: reduce) {
    .password-toggle-btn {
        transition: none;
    }
}

/* Превью-видео: карточки каталога/поиска/меню, галерея PDP — без оверлея play и панели (iOS/WebKit) */
video.product-image-category,
video.product-image-modern,
video.mega-card-img,
#product-gallery video,
.product-gallery-swiper video,
.full-width-media video,
video.product-pdp-gallery-video {
    pointer-events: none;
}
video.product-image-category::-webkit-media-controls,
video.product-image-category::-webkit-media-controls-enclosure,
video.product-image-category::-webkit-media-controls-overlay-play-button,
video.product-image-category::-webkit-media-controls-start-playback-button,
video.product-image-category::-webkit-media-controls-panel,
video.product-image-category::-webkit-media-controls-play-button,
video.product-image-modern::-webkit-media-controls,
video.product-image-modern::-webkit-media-controls-enclosure,
video.product-image-modern::-webkit-media-controls-overlay-play-button,
video.product-image-modern::-webkit-media-controls-start-playback-button,
video.product-image-modern::-webkit-media-controls-panel,
video.product-image-modern::-webkit-media-controls-play-button,
video.mega-card-img::-webkit-media-controls,
video.mega-card-img::-webkit-media-controls-enclosure,
video.mega-card-img::-webkit-media-controls-overlay-play-button,
video.mega-card-img::-webkit-media-controls-start-playback-button,
video.mega-card-img::-webkit-media-controls-panel,
video.mega-card-img::-webkit-media-controls-play-button,
#product-gallery video::-webkit-media-controls,
#product-gallery video::-webkit-media-controls-enclosure,
#product-gallery video::-webkit-media-controls-overlay-play-button,
#product-gallery video::-webkit-media-controls-start-playback-button,
#product-gallery video::-webkit-media-controls-panel,
#product-gallery video::-webkit-media-controls-play-button,
.product-gallery-swiper video::-webkit-media-controls,
.product-gallery-swiper video::-webkit-media-controls-enclosure,
.product-gallery-swiper video::-webkit-media-controls-overlay-play-button,
.product-gallery-swiper video::-webkit-media-controls-start-playback-button,
.product-gallery-swiper video::-webkit-media-controls-panel,
.product-gallery-swiper video::-webkit-media-controls-play-button,
.full-width-media video::-webkit-media-controls,
.full-width-media video::-webkit-media-controls-enclosure,
.full-width-media video::-webkit-media-controls-overlay-play-button,
.full-width-media video::-webkit-media-controls-start-playback-button,
.full-width-media video::-webkit-media-controls-panel,
.full-width-media video::-webkit-media-controls-play-button,
video.product-pdp-gallery-video::-webkit-media-controls,
video.product-pdp-gallery-video::-webkit-media-controls-enclosure,
video.product-pdp-gallery-video::-webkit-media-controls-overlay-play-button,
video.product-pdp-gallery-video::-webkit-media-controls-start-playback-button,
video.product-pdp-gallery-video::-webkit-media-controls-panel,
video.product-pdp-gallery-video::-webkit-media-controls-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/*
 * Блокировка скролла фона без position:fixed на body (scrollY не сбрасывается, нет scrollTo при закрытии).
 * mobile-menu-open — кастомное моб. меню; search-offcanvas-open — offcanvas поиска (#searchCanvas + data-bs-scroll).
 */
html.mobile-menu-open,
html.search-offcanvas-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    height: 100%;
}

body.mobile-menu-open,
body.search-offcanvas-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.search-offcanvas-open #mainNavbar {
    z-index: 1055 !important;
}

/* Ассистент / чат: фон не сжимать (как offcanvas поиска), только блокировка прокрутки под панелью */
html.hooup-assistant-bg-lock,
body.hooup-assistant-bg-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
}

html.hooup-assistant-bg-lock {
    height: 100%;
}

body.hooup-assistant-bg-lock #mainNavbar {
    z-index: 1055 !important;
}

/* Offcanvas авторизации: блокируем фон только на мобильных */
@media (max-width: 991.98px) {
    html.auth-offcanvas-open {
        overflow: hidden !important;
        overscroll-behavior: none;
        height: 100%;
    }

    body.auth-offcanvas-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    body.auth-offcanvas-open #mainNavbar {
        z-index: 1055 !important;
    }
}

/* Хлебные крошки: на узком экране длинная цепочка — горизонтальный скролл, без обрезки */
.breadcrumb-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--app-scrollbar-thumb) var(--app-scrollbar-track);
}

.breadcrumb-scroll::-webkit-scrollbar {
    height: var(--app-scrollbar-width);
    width: var(--app-scrollbar-width);
}

.breadcrumb-scroll::-webkit-scrollbar-track {
    background: var(--app-scrollbar-track);
}

.breadcrumb-scroll::-webkit-scrollbar-thumb {
    background-color: var(--app-scrollbar-thumb);
    border-radius: 2px;
}

.breadcrumb-scroll::-webkit-scrollbar-thumb:hover {
    background-color: var(--app-scrollbar-thumb-hover);
}

.breadcrumb-scroll .breadcrumb {
    width: max-content;
    max-width: none;
}
