/* ==========================================================================
   Hydrophob — правки верстки (pages.css)
   Підключається останнім. Тут лише те, що виправляє або доповнює
   базові стилі: стани навігації, каталог, підвал, окремі сторінки.
   ========================================================================== */

/* 1. Активний пункт меню.
   Розмітка Lovable позначає активний пункт класом .active, а успадкований
   style.css написаний під .is-current. */
.menu-panel__nav a.active,
.footer__nav a.active {
    color: var(--blue);
}

/* 2. Стрілка ховера в бургер-меню.
   Власний styles.css Lovable додав пункту меню підкреслення через ::after,
   а успадкований style.css тим самим ::after малює діагональ стрілки —
   правила змішувались і псевдоелементи ламались. Повертаємо поведінку
   старої верстки: підкреслення прибираємо, стрілку задаємо повністю. */
.menu-panel__nav a::after {
    content: none;
}

.menu-panel__nav a:not(.active):hover::before {
    position: absolute;
    top: calc(50% - 18px);
    left: -52px;
    width: 36px;
    height: 36px;
    color: var(--blue);
    border-top: 6px solid currentColor;
    border-right: 6px solid currentColor;
    border-bottom: 0;
    border-left: 0;
    background: none;
    transform: none;
    content: '';
}

.menu-panel__nav a:not(.active):hover::after {
    position: absolute;
    top: calc(50% - 19px);
    right: auto;
    bottom: auto;
    left: -58px;
    width: 40px;
    height: 6px;
    color: var(--blue);
    background: currentColor;
    border: 0;
    content: '';
    transform: rotate(-45deg);
    transform-origin: right center;
}

/* активний пункт стрілки не отримує — як було раніше */
.menu-panel__nav a.active:hover::before,
.menu-panel__nav a.active:hover::after {
    content: none;
}

/* 3. Хрестик бургер-меню на малих екранах.
   У media.css смуги бургера мають 25px, а хрестик (.is-active) — 27×3
   з вищою специфічністю, тож у зменшеній до 34px кнопці він вилазив за
   розмір решти іконок. Зрівнюємо з бургером. */
@media (max-width: 767px) {
    .menu-toggle.is-active::before,
    .menu-toggle.is-active::after {
        width: 25px;
        height: 3px;
    }
}

@media (max-width: 430px) {
    .menu-toggle::before,
    .menu-toggle::after,
    .menu-toggle span,
    .menu-toggle.is-active::before,
    .menu-toggle.is-active::after {
        width: 20px;
        height: 3px;
    }
}

/* 4. На вузьких екранах у капсулі хедера пʼять іконок — роздільники
   між ними лише крадуть місце. */
@media (max-width: 767px) {
    .header .header__divider {
        display: none;
    }

    .header .icon-button--cart {
        margin-left: 2px;
    }
}

/* 5. Перший блок каталогу — як на домені проєкту.
   У style.css фото товару приховане (.catalog-product__visual{display:none}):
   перший екран — це фонове фото сцени, а сам товар показують мініатюри
   й блок опису. Lovable у своєму styles.css увімкнув його назад
   (display:block), через що на фон лягала біла плита знімка. Повертаємо. */
a.catalog-product__visual,
.catalog-product__visual {
    display: none;
}

@media (max-width: 767px) {
    /* «Схожі товари»: одна колонка на телефоні розтягувала сторінку на
       кілька екранів — ставимо дві. */
    .pd-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pd-related__card b {
        font-size: 14px;
        line-height: 1.25;
    }
}

/* 7. Слайдер «Hydrophob у дії»: слайди просто підмінялись через display,
   тому клік по стрілках виглядав як «нічого не сталось». Додаємо коротку
   появу активного слайда — видно, що перемикання відпрацювало. */
.reviews__slide.is-active {
    animation: hpReviewSlideIn .45s ease both;
}

@keyframes hpReviewSlideIn {
    from { opacity: .35; transform: scale(1.015); }
    to { opacity: 1; transform: none; }
}

.reviews__prev:active,
.reviews__next:active,
.reviews__action:active {
    transform: scale(.94);
}

/* 8. Підвал на світлих сторінках.
   .page-checkout задає body { color:#171717 }, і пункти меню в темному
   підвалі ставали чорними. Підвал завжди зі своєю палітрою. */
.footer,
.footer__nav a,
.footer__copy,
.footer__contacts a {
    color: #fff;
}

.footer__nav a.active {
    color: var(--blue);
}

/* 9. Вкладки товару: у секції стоїть min-height 625px, і коротка вкладка
   («Характеристики», «Галерея») лишала півекрана порожнечі. */
.product-description {
    min-height: 0;
}

/* 11. Шапка закріплена при скролі.
   У базовій темі .header{position:absolute} — меню зникало, щойно
   користувач гортав сторінку. Робимо фіксованою й додаємо підкладку,
   коли сторінка прокручена (клас .is-stuck ставить index.js). */
.header {
    position: fixed;
}

.header::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(10, 10, 10, .72);
    backdrop-filter: blur(14px);
    content: '';
    opacity: 0;
    transition: opacity .3s ease;
}

.header.is-stuck::before {
    opacity: 1;
}

.page--light-header .header::before {
    background: rgba(251, 251, 251, .86);
}

.menu-open .header::before {
    opacity: 0;
}

@media (max-width: 767px) {
    .header.is-stuck .header__inner {
        padding-top: 14px;
        padding-bottom: 10px;
    }
}

/* 12. Бургер-меню на телефоні: стрілка ховера була розрахована на
   десктопні пункти й перекривала текст. Масштабуємо під мобільний. */
@media (max-width: 767px) {
    .menu-panel__nav a:not(.active):hover::before,
    .menu-panel__nav a:not(.active):active::before {
        top: calc(50% - 11px);
        left: -32px;
        width: 22px;
        height: 22px;
        border-top-width: 4px;
        border-right-width: 4px;
    }

    .menu-panel__nav a:not(.active):hover::after,
    .menu-panel__nav a:not(.active):active::after {
        top: calc(50% - 12px);
        left: -36px;
        width: 25px;
        height: 4px;
    }
}

/* 13. Слайдер каталогу на головній: у мобільній темі картка 126×200 з
   заголовком 9px — нечитабельно. Збільшуємо картку й типографіку. */
@media (max-width: 767px) {
    .catalog__slider .product-card {
        width: 240px !important;   /* у media.css ширина задана !important */
        height: 360px;
        flex-basis: 240px;
    }

    .catalog__slider .product-card img {
        width: 190px;
    }

    .catalog__slider .product-card__copy small {
        font-size: 11px;
    }

    .catalog__slider .product-card__copy h3 {
        font-size: 15px;
        line-height: 1.25;
    }

    .catalog__slider .product-card__copy p {
        font-size: 12px;
        line-height: 1.4;
    }

    .catalog__slider .product-card__arrow {
        --arrow-size: 22px;
    }

    .catalog__stage {
        height: auto;
        min-height: 0;
    }
}

/* 14. Оверлеї: єдиний вигляд і єдина сходинка стека.
   Було врозбій — кошик 60, модалки 70, меню 30 (нижче за деякі блоки),
   підкладки різного кольору. Тепер усе поверх шапки й однаково. */
.menu-panel { z-index: 100; }
.minicart { z-index: 110; }
.auth-modal,
.review-modal,
.info-modal,
.quick-order { z-index: 120; }
.lightbox { z-index: 130; }

.minicart__backdrop,
.auth-modal__backdrop,
.review-modal__backdrop,
.lightbox__backdrop {
    background: rgba(8, 8, 8, .72);
    backdrop-filter: blur(10px);
}

/* 15. Закріплена шапка компактніша за звичайну — менше з'їдає екран. */
.header__inner,
.header .logo img,
.header__controls {
    transition: padding .28s ease, width .28s ease, height .28s ease;
}

.header.is-stuck .header__inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

.header.is-stuck .logo img {
    width: 150px;
    height: auto;
}

.header.is-stuck .header__controls {
    height: 46px;
    padding-inline: 10px;
}

.header.is-stuck .icon-button,
.header.is-stuck .menu-toggle {
    width: 32px;
    height: 32px;
}

.header.is-stuck .icon-button svg {
    width: 21px;
    height: 21px;
}

.header.is-stuck .header__divider {
    height: 20px;
}

.header.is-stuck .menu-toggle::before,
.header.is-stuck .menu-toggle::after,
.header.is-stuck .menu-toggle span {
    width: 24px;
    height: 3px;
}

.header.is-stuck .menu-toggle::before {
    transform: translate(-50%, calc(-50% - 7px));
}

.header.is-stuck .menu-toggle::after {
    transform: translate(-50%, calc(-50% + 7px));
}

.header.is-stuck .menu-toggle.is-active::before {
    transform: translate(-50%, calc(-50% - 7px)) rotate(45deg);
}

.header.is-stuck .menu-toggle.is-active::after {
    transform: translate(-50%, calc(-50% + 7px)) rotate(-45deg);
}

.header.is-stuck .menu-toggle.is-active::before,
.header.is-stuck .menu-toggle.is-active::after {
    width: 22px;
}

@media (max-width: 767px) {
    .header.is-stuck .logo img {
        width: 104px;
    }

    .header.is-stuck .header__controls {
        height: 36px;
    }

    .header.is-stuck .icon-button,
    .header.is-stuck .menu-toggle {
        width: 28px;
        height: 28px;
    }

    .header.is-stuck .icon-button svg {
        width: 18px;
        height: 18px;
    }
}

/* 16. Швидке замовлення: підсвітка незаповнених полів і рядок товару. */
.auth-modal__field.has-error input {
    border-color: #ff5a5a;
    box-shadow: 0 6px 20px -14px rgba(255, 90, 90, .9);
}

/* попап швидкого замовлення тримає той самий ритм, що й вікно входу:
   надпис → заголовок → контент → кнопка → примітка */
.quick-order .auth-modal__title {
    margin-bottom: 8px;
}

.quick-order__product {
    margin: 0 0 26px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.quick-order .auth-modal__form {
    gap: 18px;
}

.quick-order .auth-modal__note {
    margin-top: 14px;
}

.quick-order__done {
    margin: 6px 0 0;
    color: #7ee3a8;
    font-size: 15px;
    font-weight: 600;
}


/* 17. Блок купівлі в каталозі: «Додати в кошик» і кругла кнопка-око
   в один рядок, «Купити в один клік» — під ними на всю ширину.
   Один типорозмір: висота 48, радіус 25, 12px/800 uppercase. */
.catalog-product__buy {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
}

.catalog-product__buy > strong,
.catalog-product__buy > small,
.catalog-product__buy > .one-click {
    grid-column: 1 / -1;
}

.catalog-product__buy > button,
.catalog-product__buy .catalog-product__view,
.catalog-product__buy .one-click {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background .25s ease, transform .18s ease;
}

.catalog-product__buy > button {
    padding: 0 20px;
    border: 1px solid var(--blue);
    color: #07151a;
    background: var(--blue);
}

.catalog-product__buy > button:hover {
    border-color: #5ad4ff;
    background: #5ad4ff;
}

/* кнопка «Продивитись» — тільки іконка ока */
.catalog-product__buy .catalog-product__view {
    width: 48px;
    min-width: 0;
    height: 48px;
    padding: 0;
    margin: 0 0 0 10px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .04);
}

.catalog-product__buy .catalog-product__view span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.catalog-product__buy .one-click {
    margin-top: 10px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    background: rgba(255, 255, 255, .04);
}

.catalog-product__buy .catalog-product__view:hover,
.catalog-product__buy .one-click:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(50, 198, 244, .1);
}

.catalog-product__buy > button:active,
.catalog-product__buy .catalog-product__view:active,
.catalog-product__buy .one-click:active {
    transform: scale(.97);
}

.catalog-product__buy svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.catalog-product__buy .catalog-product__view svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalog-product__buy .one-click svg {
    fill: currentColor;
    stroke: none;
}

@media (max-width: 767px) {
    .catalog-product__buy {
        grid-template-columns: 1fr 44px;
    }

    .catalog-product__buy > button,
    .catalog-product__buy .one-click {
        min-height: 44px;
        font-size: 11px;
    }

    .catalog-product__buy .catalog-product__view {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
}

/* на сторінці товару «в один клік» стоїть в один ряд із кошиком */
.pd__actions .one-click {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 25px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.pd__actions .one-click svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.pd__actions .one-click:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(50, 198, 244, .1);
}

/* товар не в наявності — «в один клік» вимкнена з підписом «Немає в наявності» */
.catalog-product__buy .one-click:disabled,
.pd__actions .one-click:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* 18. Вкладка з відгуками — той самий відступ, що й в інших панелях. */
.product-description__panel--reviews .product-reviews__head {
    margin-bottom: 24px;
}

/* полоска над описом категорії була майже чорна — робимо помітнішою */
.ruled-heading {
    border-bottom-color: rgba(255, 255, 255, .28);
}

.page--light-header .ruled-heading {
    border-bottom-color: rgba(0, 0, 0, .18);
}

/* 19. «Рекомендації для вас»: без ініціалізації Swiper плитки не мали
   ширини і блок просто розтягувався в одну величезну картку. Робимо
   нормальну горизонтальну стрічку зі снапом. */
.product-grid {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.product-grid::-webkit-scrollbar {
    display: none;
}

.product-grid .swiper-wrapper {
    gap: 20px;
}

.product-grid .product-tile {
    width: 300px;
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.product-grid .product-tile img {
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .product-grid .swiper-wrapper {
        gap: 12px;
    }

    /* Дві ПОВНІ картки на екран: ширина від контейнера, а не фіксована.
       Висота — від ширини, інакше плитка вдвічі вища за себе і виглядає
       витягнутою (було 173×350). */
    .product-grid .product-tile {
        width: calc(50% - 6px);
        flex: 0 0 calc(50% - 6px);
        min-width: 0;
        height: auto;
        aspect-ratio: 5 / 7;
    }

    .product-grid .product-tile > img {
        width: 66%;
        top: 36%;
    }

    .product-grid .product-tile > div {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .product-grid .product-tile h2 {
        margin: 4px 0;
        font-size: 15px;
        line-height: 1.15;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-grid .product-tile p {
        font-size: 10px;
    }

    .product-grid .product-tile small {
        font-size: 10px;
    }

    .product-grid .product-tile .product-card__arrow {
        top: 12px;
        right: 12px;
        transform: scale(.5);
    }

    .product-grid .tile-actions {
        gap: 6px;
        margin: 8px 10px 10px;
    }

    .product-grid .tile-actions .mini-add {
        min-height: 36px;
        padding: 0 10px;
        gap: 6px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .product-grid .tile-actions .mini-add svg {
        width: 15px;
        height: 14px;
    }

    .product-grid .tile-fav {
        width: 36px;
        height: 36px;
    }
}

/* назва товару під відгуком у вкладці категорії */
.product-reviews__card-product {
    display: block;
    margin-top: 10px;
    opacity: .6;
    font-size: 12px;
}

/* 20. Теги товару — вкладка з .net */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-tags li {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 20px;
    font-size: 13px;
}

/* 21. Порядок шарів. Верхня панель каталогу мала z-index 111 і лізла
   поверх фіксованої шапки, відкритого меню й кошика. Робимо чесну
   сходинку: контент < шапка < меню < кошик < модалки < лайтбокс. */
.catalog-product__topline,
.catalog-product__filter {
    z-index: 6;
}

.header {
    z-index: 40;
}

/* 22. Сторінка товару: вміст вкладок на всю ширину контейнера
   (у базовій темі .text-columns звужений і зсунутий під макет каталогу). */
.pd ~ .product-description .text-columns,
.pd ~ .product-description .text-columns--offset,
.pd ~ .product-description .product-characteristics,
.pd ~ .product-description .expandable__content {
    width: 100%;
    max-width: none;
    margin-left: 0;
}

.pd ~ .product-description .product-description__panel {
    width: 100%;
}

.pd ~ .product-description .expandable__toggle {
    margin-left: 0;
}

/* 23. Футер: додаткова навігація і мапа */
.footer__map {
    /* друга колонка верхнього блоку — мапа на всю її ширину */
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 260px;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    overflow: hidden;
    z-index: 1;
}

.footer__map .leaflet-container {
    background: #101010;
    font-family: inherit;
}

.hp-map-pin {
    background: none;
    border: 0;
}

.gallery-page__grid {
    margin-top: 28px;
}

@media (max-width: 767px) {
    .footer__map {
        max-width: none;
        height: 180px;
    }

}

/* 24. Правові сторінки — компактним рядком біля копірайту */
.footer__copy a {
    color: inherit;
    opacity: .75;
}

.footer__copy a:hover {
    color: var(--blue);
    opacity: 1;
}

/* 25. Верх футера у дві колонки: зліва лого й контакти, справа мапа */
.footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 48px;
    align-items: start;
}

.footer__top .footer__logo {
    grid-column: 1;
}

.footer__top .footer__tagline {
    grid-column: 1;
    max-width: 520px;
}

@media (max-width: 1023px) {
    .footer__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer__map {
        grid-column: 1;
        grid-row: auto;
        min-height: 200px;
    }
}

/* 26. Фіксованій шапці не потрібні жорсткі висоти з базової теми
   (.header 162px, .page-checkout 150, .intro-page 160, мобільні 76/90) —
   вони робили її вузькою й ламали компактний стан при скролі.
   Висоту тепер задає вміст. */
.header,
.page-checkout .header,
.intro-page .header,
.thanks-page .header {
    height: auto;
}

.intro-page .header__inner,
.thanks-page .header__inner {
    height: auto;
}

/* 27. Випадайка вибору мови у шапці */
.lang-switch {
    position: relative;
    display: inline-flex;
}

.lang-switch__menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 12px);
    left: 50%;
    display: grid;
    min-width: 168px;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(16, 16, 16, .96);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
    transform: translateX(-50%);
}

.lang-switch__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    /* перемикач мов тепер посилання (<a>), а не кнопка — знімаємо підкреслення */
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.lang-switch__item b {
    min-width: 26px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.lang-switch__item:hover {
    background: rgba(255, 255, 255, .08);
}

.lang-switch__item.is-active {
    color: var(--blue);
    background: rgba(50, 198, 244, .12);
}

.page--light-header .lang-switch__menu {
    border-color: rgba(0, 0, 0, .12);
    background: rgba(252, 252, 252, .97);
}

.page--light-header .lang-switch__item {
    color: #171717;
}

/* 28. Заголовки карток: успадкований line-height 1.5 робив назви
   розрідженими — притискаємо до 1.2 у всіх картках товару й статей. */
.product-card__copy h3,
.product-tile h2,
.pd-related__card b,
.blog-card h3,
.minicart__product-copy h4,
.minicart__suggestion h4 {
    line-height: 1.2;
}

.product-card__copy small,
.product-tile small {
    line-height: 1.3;
}

/* 29. Каталог: вміст вкладок на всю ширину контейнера, а таблиці
   характеристик — у дві колонки без зсуву на 30%, як у базовій темі. */
.catalog-product ~ .product-description .text-columns,
.catalog-product ~ .product-description .text-columns--offset,
.catalog-product ~ .product-description .expandable__content,
.catalog-product ~ .product-description .product-gallery,
.catalog-product ~ .product-description .product-reviews__list {
    width: 100%;
    max-width: none;
    margin-left: 0;
}

.catalog-product ~ .product-description .expandable__toggle {
    margin-left: 0;
}

.catalog-product ~ .product-description .product-characteristics,
.pd ~ .product-description .product-characteristics {
    width: 100%;
    margin-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
}

.catalog-product ~ .product-description .product-characteristics__product-title,
.pd ~ .product-description .product-characteristics__product-title {
    margin-left: 0;
}

@media (max-width: 767px) {
    .catalog-product ~ .product-description .product-characteristics,
    .pd ~ .product-description .product-characteristics {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 30. Слайдер «Hydrophob у дії»: частина роликів знята в темній студії
   і на сайті читалась як чорний прямокутник — трохи піднімаємо яскравість
   і тримаємо постер під відео, поки воно вантажиться. */
.reviews__slide {
    background-color: #0d0d0d;
}

.reviews__slide video.reviews__media {
    filter: brightness(1.32) contrast(1.04) saturate(1.06);
}

/* 31. Слайдер «Hydrophob у дії»: .reviews__slider має opacity:0 до класу
   .is-ready (його ставив Swiper, якого тут більше немає). Тепер клас ставить
   скрипт — після завантаження першого кадру, а доти крутиться прелоадер,
   щоб на місці секції не було порожнечі. */
.reviews__preloader {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 45%, #1b1b1b, #0b0b0b 70%);
    transition: opacity .35s ease, visibility .35s ease;
}

.reviews.is-loaded .reviews__preloader {
    opacity: 0;
    visibility: hidden;
}

.reviews__preloader-spin {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, .18);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: hpReviewsSpin .9s linear infinite;
}

@keyframes hpReviewsSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .reviews__preloader-spin { animation: none; }
}

/* 32. Заголовки в міні-картках — максимум три рядки, далі трикрапка.
   Довгі назви товарів ламали висоту карток у слайдерах і сітках. */
.product-card__copy h3,
.product-tile h2,
.pd-related__card b,
.blog-card h3,
.minicart__product-copy h4,
.minicart__suggestion h4,
.account-favorites__card b,
.product-gallery__caption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* підписи під заголовком — один рядок, щоб картка не «стрибала» */
.minicart__product-copy p,
.minicart__suggestion p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* 33. Відкрите бургер-меню: панель живе всередині шапки, тому капсулі
   контролів (з хрестиком-закриттям) потрібен шар вище за панель (100). */
.menu-open .header {
    z-index: 105;
}

.menu-open .header::before {
    opacity: 0;
}

.menu-open .header__controls {
    position: relative;
    z-index: 120;
}


/* 34. Контакти: картки напрямків, мапа й короткі факти */
.contacts-page__extras {
    display: grid;
    gap: 40px;
    margin-top: 70px;
}

.contacts-page__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.contacts-page__card {
    padding: 26px 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
}

.contacts-page__card h3 {
    margin: 10px 0 10px;
    font-size: 19px;
    line-height: 1.25;
}

.contacts-page__card p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    opacity: .8;
}

.contacts-page__card a {
    color: var(--blue);
    font-weight: 700;
}

.contacts-page__map {
    width: 100%;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    overflow: hidden;
    z-index: 1;
}

.contacts-page__map .leaflet-container {
    background: #101010;
    font-family: inherit;
}

.contacts-page__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

.contacts-page__facts dt {
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.contacts-page__facts dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: .85;
}

@media (max-width: 1023px) {
    .contacts-page__cards { grid-template-columns: minmax(0, 1fr); }
    .contacts-page__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .contacts-page__facts { grid-template-columns: minmax(0, 1fr); }
    .contacts-page__map { height: 240px; }
}

/* 35. Вкладка «Теги» — акуратні плашки з ґратками */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-tags li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    background: rgba(255, 255, 255, .04);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.product-tags li::before {
    content: '#';
    color: var(--blue);
    font-weight: 800;
}

.product-tags li a {
    color: inherit;
    text-decoration: none;
}

.product-tags li:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(50, 198, 244, .08);
}

/* 36. Порожній мінікошик */
.minicart__empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 48px 20px;
    text-align: center;
}

.minicart__empty svg {
    width: 56px;
    height: 52px;
    fill: none;
    stroke: rgba(255, 255, 255, .35);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.minicart__empty p {
    margin: 0;
    font-size: 15px;
    opacity: .75;
}

.minicart__empty-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 24px;
    border: 1px solid var(--blue);
    border-radius: 25px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    transition: color .25s ease, background .25s ease;
}

.minicart__empty-link:hover {
    color: #07151a;
    background: var(--blue);
}

/* 37. Попап відео зі зйомок */
.video-lightbox__stage {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(420px, 80vw);
}

.video-lightbox__media {
    width: 100%;
    max-height: 78vh;
    border-radius: 16px;
    background: #000;
}

.video-lightbox__caption {
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    opacity: .85;
}

/* 38. Галерея: на ховері око замість лупи (як на кнопці «Продивитись») */
.product-gallery__item::after {
    content: '';
    background: rgba(7, 21, 26, .35) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 34px 34px no-repeat;
}

/* 39. Назва товару в каталозі: щільніше і максимум 3 рядки */
.catalog-product__copy h1,
.catalog-product__copy h1 .catalog-product__name-link {
    line-height: 1.15;
}

.catalog-product__copy h1 .catalog-product__name-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* 40. Блок опису товару в hero каталогу — ширший, на всю колонку */
.catalog-product__content {
    width: 100%;
}

/* 41. Мінікартки: кнопка «Додати» завжди видима внизу плитки, стан «Додано», стара ціна */
.product-tile,
.pd-related__card {
    position: relative;
}

.mini-add {
    position: relative;
    z-index: 3;
    display: inline-flex;
    width: calc(100% - 28px);
    margin: 10px 14px 14px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 0;
    border-radius: 22px;
    background: var(--blue);
    color: #07151a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .22s ease, filter .22s ease;
}

.mini-add:hover {
    filter: brightness(1.08);
}

.mini-add svg {
    width: 19px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}



.mini-add.is-added {
    background: rgba(126, 227, 168, .16);
    color: #7ee3a8;
    cursor: default;
    justify-content: center;
}

.mini-add.is-out {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    cursor: default;
    font-size: 11px;
}



/* стара ціна поруч зі спешелом */
.product-tile__price s,
.pd-related__price s {
    margin-right: 6px;
    opacity: .5;
    font-weight: 500;
}

/* 42. Хрестик відкритого меню в компактній (is-stuck) шапці:
   правила компакту задають смугам transform без rotate і ламали хрест. */
.header.is-stuck .menu-toggle.is-active::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.header.is-stuck .menu-toggle.is-active::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 44. Код-модалка OTP (common/code_modal): розмітка спільна з hydrophob.net
   (hp-класи), стиль — у темній мові цієї теми (панель як в auth-модалці). */
.hp-modal {
    position: fixed;
    inset: 0;
    /* код-модалка має бути над усіма іншими модалками (відгук = 120),
       але під тостом (2000) */
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .8);
}

.hp-modal[hidden] {
    display: none;
}

.hp-modal__dialog--code {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 60px 44px 44px;
    border: 1px solid #262626;
    border-radius: 34px;
    color: #fff;
    background: #161616;
    text-align: center;
}

.hp-modal__close {
    position: absolute;
    top: 22px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    color: #999;
    background: none;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
}

.hp-modal__close:hover {
    color: var(--blue);
}

.hp-modal__side {
    position: absolute;
    top: 90px;
    right: 16px;
    margin: 0;
    color: #555;
    font-size: 9px;
    letter-spacing: .24em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.hp-modal__title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
}

.hp-modal__text {
    margin: 0;
    color: #999;
    font-size: 13px;
    font-weight: 700;
}

.hp-modal__mail {
    color: var(--blue);
}

.hp-code {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 20px;
}

.hp-code__cell {
    width: 46px;
    height: 56px;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    color: #fff;
    background: #101010;
    font: inherit;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.hp-code__cell:focus {
    outline: none;
    border-color: var(--blue);
}

.hp-modal--code .hp-field__error {
    margin: 0 0 14px;
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 700;
}

.hp-code__actions {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.hp-modal--code .hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 0;
    border: 1px solid var(--blue);
    border-radius: 50px;
    color: #111;
    background: var(--blue);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2em;
    cursor: pointer;
    transition: color .2s, background-color .2s, opacity .2s;
}

.hp-modal--code .hp-btn:hover {
    color: var(--blue);
    background: transparent;
}

.hp-modal--code .hp-btn--muted {
    opacity: .5;
    cursor: default;
}

.hp-modal--code .hp-btn--muted:hover {
    color: #111;
    background: var(--blue);
}

.hp-modal--code .hp-btn__icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hp-code__timer {
    margin: 0;
    color: #777;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.hp-code__resend {
    border: 0;
    color: var(--blue);
    background: none;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    cursor: pointer;
}

@media (max-width: 480px) {
    .hp-modal__dialog--code {
        padding: 52px 20px 32px;
    }

    .hp-code__cell {
        width: 40px;
        height: 50px;
        font-size: 18px;
    }
}

/* 45. Auth-модалка: кнопка «Увійти за кодом», рядок помилки, busy-стан */
.auth-modal__otp {
    display: block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    color: var(--blue);
    background: none;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    cursor: pointer;
}

.auth-modal__otp:hover {
    text-decoration: underline;
}

.auth-modal__otp[hidden] {
    display: none;
}

.auth-modal__error {
    margin: 16px 0 0;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 700;
}

.auth-modal__form.is-busy,
.review-modal__form.is-busy {
    opacity: .6;
    pointer-events: none;
}

/* 46. Маски телефонів (intl-tel-input): темна тема + повна ширина полів */
.iti {
    width: 100%;
    --iti-dropdown-bg: #161616;
    --iti-border-color: #2e2e2e;
    --iti-hover-color: #222;
    --iti-text-gray: #999;
    --iti-dialcode-color: #999;
    --iti-arrow-color: #999;
}

.iti__search-input {
    color: #fff;
    background: #101010;
}

.iti__dropdown-content {
    border-radius: 12px;
    color: #fff;
}

/* 47. Стрілки слайдера галереї на сторінці товару */
.pd__main { position: relative; }

.pd__nav-btn {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(7, 21, 26, .45);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease;
    backdrop-filter: blur(4px);
}

.pd__nav-btn--prev { left: 14px; }
.pd__nav-btn--next { right: 14px; }

.pd__nav-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #07151a;
}

.pd__nav-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 48. Панелі вкладок опису товару — відступ від рядка вкладок */
.product-description__panel {
    padding-top: 26px;
}

/* 49. Вкладка «Відгуки» на сторінці товару: порожній стан + кнопка */
.product-reviews__empty {
    margin: 18px 0 26px;
    color: rgba(255, 255, 255, .6);
}

/* у вкладці товару фон світлий — напис має бути темним */
.product-description__panel .product-reviews__empty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px dashed rgba(17, 17, 17, .18);
    border-radius: 14px;
    background: rgba(17, 17, 17, .03);
    color: rgba(17, 17, 17, .65);
    font-size: 14px;
}

.product-description__panel .product-reviews__empty::before {
    flex: 0 0 auto;
    color: var(--blue);
    content: '★';
    font-size: 18px;
}

.product-description__panel--reviews .product-reviews__add {
    margin-top: 8px;
}

/* 50. Мінікошик: вужча панель; порожній стан з грідом «вас може зацікавити» */
.minicart__panel {
    width: min(520px, 100vw);
}

.minicart__empty {
    padding: 40px 20px 28px;
}

.minicart__empty svg {
    width: 64px;
    height: 60px;
    padding: 18px;
    box-sizing: content-box;
    border: 1px dashed rgba(7, 21, 26, .18);
    border-radius: 50%;
    stroke: rgba(7, 21, 26, .45);
}

.minicart__empty p {
    font-size: 16px;
    font-weight: 700;
    opacity: .85;
}

.minicart__suggestions--grid {
    padding-bottom: 28px;
}

.minicart__suggestions {
    padding: 0 20px 24px;
}

/* стрічка-слайдер: скрол по горизонталі, щоб блок не з'їдав висоту */
.minicart__suggestion-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.minicart__suggestion-grid::-webkit-scrollbar {
    display: none;
}

.minicart__suggestion.minicart__suggestion--tile {
    flex: 0 0 168px;
    scroll-snap-align: start;
}

/* картка-плитка перекриває базовий трирядковий grid зі style.css */
.minicart__suggestion.minicart__suggestion--tile {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    border: 1px solid rgba(17, 17, 17, .1);
    border-bottom: 1px solid rgba(17, 17, 17, .1);
    border-radius: 16px;
    text-align: center;
}

.minicart__suggestion--tile .minicart__suggestion-image {
    width: 84px;
    height: 84px;
}

.minicart__suggestion-name {
    display: -webkit-box;
    color: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.minicart__suggestion-name:hover {
    color: var(--blue);
}

.minicart__suggestion--tile strong {
    margin: 0;
    font-size: 15px;
}

.minicart__suggestion--tile {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 16px 12px;
    border: 1px solid rgba(7, 21, 26, .1);
    border-radius: 16px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.minicart__suggestion--tile:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 24px rgba(7, 21, 26, .08);
}

.minicart__suggestion--tile .minicart__suggestion-image {
    width: 92px;
    height: 92px;
}

.minicart__suggestion--tile .minicart__suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.minicart__suggestion--tile h4 {
    margin: 0;
    font-size: 13px;
}

.minicart__suggestion--tile p {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    opacity: .6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.minicart__suggestion--tile strong {
    font-size: 14px;
}

.minicart__suggestion--tile button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    padding: 0 16px;
    border: 1px solid var(--blue);
    border-radius: 18px;
    background: transparent;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.minicart__suggestion--tile button:hover {
    background: var(--blue);
    color: #07151a;
}

/* 51. Автозаповнення браузера: без білої заливки інпутів на темній темі */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: currentColor;
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-out 0s;
    caret-color: currentColor;
}

/* 52. Плитка каталогу: текст і кнопка в потоці (без absolute), кнопка внизу.
   Фонове фото лишається absolute — воно декоративне і центроване. */
.product-tile.swiper-slide,
.product-tile {
    display: flex;
    flex-direction: column;
}

.product-tile > div {
    position: static;
    z-index: 2;
    margin: 14px 25px 0;
}

.product-tile .mini-add {
    flex-shrink: 0;
    margin: 12px 14px 14px;
}

.pd-related__card {
    display: flex;
    flex-direction: column;
}

.pd-related__card .mini-add {
    margin-top: auto;
}

/* 53. Бейджі шапки: кількість у кошику і в обраному, голубий кружечок */
.cart-dot {
    top: 3px;
    right: 2px;
    display: inline-flex;
    width: auto;
    min-width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--blue);
    color: #07151a;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.icon-button--wishlist {
    position: relative;
}

/* 54. Тост-повідомлення (обране без входу тощо) */
.hp-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    /* поверх усіх модалок — повідомлення не має ховатись під ними */
    z-index: 2000;
    max-width: min(92vw, 420px);
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(10, 24, 30, .96);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.hp-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 55. Сторінка «Галерея»: заголовок, відео-грід з підписами, сітка фото */
.gallery-page {
    padding: 140px 0 90px;
    background: #111;
    color: #fff;
}

.gallery-page h1 {
    margin: 10px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
}

.gallery-page .hp-pagehead__text {
    max-width: 640px;
    margin: 0 0 54px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .65);
}

.gallery-page .hp-section__title {
    margin: 0 0 26px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-page .text-columns {
    display: block;
    column-count: auto;
}

.hp-mediagrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin: 0 0 70px;
    padding: 0;
    list-style: none;
}

.hp-mediagrid__cell {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, #171717 60%, rgba(37, 150, 190, .35));
}

.hp-mediagrid__cell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

/* специфічність вища за .text-columns p зі style.css */
.gallery-page .hp-mediagrid .hp-mediagrid__title {
    margin: 18px 22px 8px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.gallery-page .hp-mediagrid .hp-mediagrid__text {
    margin: 0 22px 22px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .6);
}

.gallery-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-page__grid .product-gallery__item {
    overflow: hidden;
    border-radius: 20px;
    background: #171717;
}

.gallery-page__grid .product-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    /* рамка з базових стилів обрізалась контейнером — вішаємо її на
       сам контейнер, а зображення лишаємо без бордера */
    border: 0;
    border-radius: 0;
    object-fit: cover;
    cursor: pointer;
    transition: transform .3s ease;
}

.gallery-page__grid .product-gallery__item {
    border: 1px solid rgba(255, 255, 255, .14);
}

.gallery-page__grid .product-gallery__item:hover img {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .gallery-page { padding: 110px 0 60px; }
    .hp-mediagrid { grid-template-columns: 1fr; gap: 18px; }
    .gallery-page__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* 56. Мініатюри на сторінці товару: горизонтальний слайдер без стрілок.
   Скрол трекпадом/свайпом; коли мініатюри не влазять — остання визирає
   з-за краю (peek), натякаючи що стрічку можна гортати. */
.pd__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* маска-затухання по краях, коли є що гортати */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
}

.pd__thumbs::-webkit-scrollbar {
    display: none;
}

.pd__thumbs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* 57. Фото в мінікартках: єдина геометрія у всіх плитках, БЕЗ absolute —
   фото в потоці займає всю ширину і весь вільний простір зверху,
   текст і кнопка «Додати» йдуть за ним у колонці */
.product-tile > img {
    position: static;
    width: 100%;
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    /* contain — товар видно повністю, без обрізання країв */
    object-fit: contain;
    object-position: center;
    transform: none;
}

/* «Схожі товари» на сторінці товару — той самий вигляд плиток */
.pd-related__grid--tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.pd-related__grid--tiles .product-tile {
    height: 505px;
}

@media (max-width: 1080px) {
    .pd-related__grid--tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    /* Дві картки в ряд, висота від ширини — як у стрічках каталогу.
       Фіксовані 350px при ширині 173 робили плитку вдвічі вищою за себе. */
    .pd-related__grid--tiles { grid-template-columns: 1fr 1fr; gap: 12px; }

    .pd-related__grid--tiles .product-tile {
        height: auto;
        aspect-ratio: 5 / 7;
    }

    .pd-related__grid--tiles .product-tile > img {
        width: 66%;
        top: 36%;
    }

    .pd-related__grid--tiles .product-tile > div {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .pd-related__grid--tiles .product-tile h2 {
        margin: 4px 0;
        font-size: 15px;
        line-height: 1.15;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pd-related__grid--tiles .product-tile p,
    .pd-related__grid--tiles .product-tile small {
        font-size: 10px;
    }

    .pd-related__grid--tiles .tile-actions {
        gap: 6px;
        margin: 8px 10px 10px;
    }

    .pd-related__grid--tiles .tile-actions .mini-add {
        min-height: 36px;
        padding: 0 10px;
        gap: 6px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .pd-related__grid--tiles .tile-fav {
        width: 36px;
        height: 36px;
    }
}

/* 58. Чекбокси фільтрів у випадайці */
.catalog-product__filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 59. Оверлей під відкритою випадайкою фільтрів */
.filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(7, 21, 26, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

body.filter-open .filter-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* попап лишається на своєму місці — піднімаємо лише шар,
   разом із кнопкою-іконкою фільтрів, щоб нею ж можна було закрити */
body.filter-open .catalog-product__filter,
body.filter-open .catalog-product__topline {
    z-index: 95;
}

body.filter-open .catalog-product__topline {
    position: relative;
}

/* 60. Кабінет: адресна книга */
.address-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 26px;
}

@media (max-width: 767px) {
    .address-cards { grid-template-columns: 1fr; }
}

.address-card {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
}

.address-card.is-default {
    border-color: var(--blue);
}

.address-card__badge {
    position: absolute;
    top: -10px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--blue);
    color: #07151a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.address-card__text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

.address-card__actions {
    display: flex;
    gap: 10px;
}

.address-card__btn {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.address-card__btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.address-card__btn--danger:hover {
    border-color: #ff5b45;
    color: #ff5b45;
}

.account-form__empty {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .6);
}

.account-form__submit--link {
    text-decoration: none;
}

.account-form__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.account-form__radios {
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 46px;
}

.account-form__radios label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.account-form__radios input {
    accent-color: var(--blue);
}

/* 61. Стікери і сердечко на мінікартках */
.tile-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.tile-badge {
    padding: 4px 10px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #07151a;
}

.tile-badge--sale { background: #ff5b45; color: #fff; }
.tile-badge--new  { background: var(--blue); }
.tile-badge--top  { background: #ffc94d; }

.tile-badges--pd {
    top: 18px;
    left: 18px;
}

.tile-badges--pd .tile-badge {
    font-size: 11px;
    padding: 5px 12px;
}

/* рядок дій унизу плитки: «Додати» + сердечко */
.tile-actions {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 14px 14px;
}

.tile-actions .mini-add {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
}

.tile-fav {
    flex: 0 0 auto;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(7, 21, 26, .4);
    color: #fff;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.tile-fav svg {
    width: 18px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.tile-fav:hover,
.tile-fav.is-active {
    color: var(--blue);
    border-color: var(--blue);
}

.tile-fav.is-active svg {
    fill: currentColor;
}

/* 62. Спінер підвантаження відео (слайдер відгуків, лайтбокс, плеєр) */
.hp-video-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: var(--blue);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.hp-video-spin.is-on {
    opacity: 1;
    animation: hp-video-spin 1s linear infinite;
}

@keyframes hp-video-spin {
    to { transform: rotate(360deg); }
}

.reviews__slide,
.video-lightbox__stage,
.product-video__frame {
    position: relative;
}

/* 63. Квадратний слайдер на сторінці товару: 1:1 на всіх брейкпоінтах,
   фото заповнює всю площу (джерело — cover-кадр без полів) */
.pd__main {
    aspect-ratio: 1 / 1;
}

.pd__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 64. Підказки міст/відділень у формі адреси кабінету */
.account-form__field--suggest,
.account-form__field {
    position: relative;
}

.account-form__suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 260px;
    margin: 6px 0 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: #14181b;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.account-form__suggest button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.account-form__suggest button:hover {
    background: rgba(50, 198, 244, .14);
    color: var(--blue);
}

/* 65. Чекаут: блок «інший отримувач» */
.checkout__recipient-toggle {
    margin-top: 14px;
}

.checkout__recipient {
    margin-top: 14px;
}

/* 66. Кабінет: email з олівцем (зміна лише за кодом) */
.account-form__email {
    position: relative;
    display: flex;
    align-items: center;
}

.account-form__email input {
    width: 100%;
    padding-right: 46px;
}

.account-form__email input[readonly] {
    opacity: .75;
    cursor: default;
}

.account-form__email-edit {
    position: absolute;
    right: 8px;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.account-form__email-edit svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-form__email-edit:hover,
.account-form__email-edit.is-editing {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

/* «загорається», коли email змінено і потребує підтвердження */
.account-form__email-edit.is-active {
    color: var(--blue);
    background: rgba(50, 198, 244, .14);
}

.account-form__hint {
    display: block;
    margin-top: 6px;
    color: var(--blue);
    font-size: 12px;
    line-height: 1.4;
}

/* 67. Код країни в масці телефону — світлий на темних полях
   (checkout, auth-модалка, quick order) */
.checkout__phone .iti__selected-dial-code,
.auth-modal .iti__selected-dial-code,
.quick-order .iti__selected-dial-code,
.review-modal .iti__selected-dial-code,
.account-form .iti__selected-dial-code {
    color: #fff;
}

.checkout__phone .iti__arrow,
.auth-modal .iti__arrow,
.quick-order .iti__arrow,
.review-modal .iti__arrow,
.account-form .iti__arrow {
    border-top-color: rgba(255, 255, 255, .6);
}

/* 68. Стрілка в мінікартці — декоративна: клік має проходити на посилання */
.product-tile .product-card__arrow,
.pd-related__card .product-card__arrow {
    pointer-events: none;
}

/* 69. Email з олівцем у чекауті */
.checkout__email {
    position: relative;
    display: flex;
    align-items: center;
}

.checkout__email input {
    width: 100%;
    padding-right: 46px;
}

/* 70. Сторінка товару: ціна, наявність, обʼєм і код — одним рядком */
.pd__buy {
    flex-flow: row wrap;
    align-items: center;
    gap: 8px 16px;
}

.pd__buy .pd__price {
    margin-right: 4px;
}

.pd__buy small + small::before {
    content: '·';
    margin-right: 12px;
    color: rgba(255, 255, 255, .35);
}

.pd__buy .pd__actions {
    flex: 1 0 100%;
    margin-top: 6px;
}

@media (max-width: 767px) {
    .pd__buy { gap: 6px 12px; }
    .pd__buy small + small::before { margin-right: 8px; }
}

/* 71. Карта сайту: групи-картки (структура як на hydrophob.net).
   Сторінка світла (content-page), тому палітра теж світла. */
.sitemap-page__lead {
    max-width: 640px;
    margin: 10px 0 42px;
    color: rgba(17, 17, 17, .62);
    font-size: 16px;
    line-height: 1.55;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    /* картки одного ряду однакової висоти — довгі списки скролять усередині */
    align-items: stretch;
}

.sitemap-card {
    padding: 24px;
    border: 1px solid rgba(17, 17, 17, .1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 17, 17, .05);
}

.sitemap-card__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(17, 17, 17, .08);
}

.sitemap-card__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(50, 198, 244, .14);
    color: #0f9fd0;
}

.sitemap-card__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sitemap-card__title {
    margin: 0;
    color: #111;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
}

.sitemap-card__note {
    margin: 4px 0 0;
    color: rgba(17, 17, 17, .55);
    font-size: 13px;
    line-height: 1.45;
}

.sitemap-card__count {
    padding: 3px 10px;
    border-radius: 11px;
    background: rgba(17, 17, 17, .06);
    color: rgba(17, 17, 17, .6);
    font-size: 12px;
    font-weight: 700;
}

.sitemap-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 520px;
}

.sitemap-card__list {
    flex: 1 1 auto;
    margin: 0;
    padding: 0 4px 0 0;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 17, 17, .25) transparent;
}

.sitemap-card__list::-webkit-scrollbar {
    width: 6px;
}

.sitemap-card__list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(17, 17, 17, .22);
}

.sitemap-card__list li + li {
    margin-top: 2px;
}

.sitemap-card__list a {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    color: #111;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

.sitemap-card__list a:hover {
    color: #0f9fd0;
    background: rgba(50, 198, 244, .1);
}

.sitemap-card__more {
    margin-top: 14px;
    padding: 9px 18px;
    border: 1px solid rgba(17, 17, 17, .18);
    border-radius: 20px;
    background: transparent;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.sitemap-card__more:hover {
    border-color: #0f9fd0;
    color: #0f9fd0;
}

@media (max-width: 767px) {
    .sitemap-grid { grid-template-columns: 1fr; gap: 14px; }
    .sitemap-card { padding: 18px; }
}

/* 72. Стрічка плиток: власний трек замість swiper-wrapper
   (Swiper не має перехоплювати кліки по картках) */
.product-grid__track {
    display: flex;
    gap: 20px;
}

@media (max-width: 767px) {
    .product-grid__track { gap: 12px; }
}

/* 73. Сторінка статті: ширша колонка тексту */
.blog-post__inner {
    max-width: 1040px;
}

.blog-post__body,
.blog-post__related {
    max-width: 900px;
}

@media (max-width: 1080px) {
    .blog-post__inner,
    .blog-post__body,
    .blog-post__related { max-width: 100%; }
}

/* 74. Галерея: заголовок блоку фото і пагінація */
.gallery-page__photos-title {
    margin: 0 0 26px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 42px;
}

.gallery-pagination__page,
.gallery-pagination__nav {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 21px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.gallery-pagination__page:hover,
.gallery-pagination__nav:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.gallery-pagination__page.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #07151a;
}

/* 75. Відеофон категорії — так само, як фонова картинка */
.catalog-product__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 76. Банер гарантій: стрілка-посилання і довші описи */
.guarantee-banner__go {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    cursor: pointer;
}

.guarantee-banner__action {
    position: relative;
}

.guarantee-banner__text {
    display: block;
    max-width: 560px;
}

.guarantee-banner__text[hidden] {
    display: none;
}

/* абзаци замість <br>: розмір і колір — як у small верстки */
.guarantee-banner__text p {
    margin: 0 0 10px;
    font-size: inherit;
    line-height: 1.5;
}

.guarantee-banner__text p:last-child {
    margin-bottom: 0;
}

/* 77. Банер гарантій на мобільному: copy займає всю ширину і впирається
   в кнопки, тому там лишаємо один абзац і компактніший кегль
   (на десктопі текст праворуч, кнопки ліворуч — місця вистачає обом) */
@media (max-width: 767px) {
    .guarantee-banner__text {
        font-size: 13px;
    }

    .guarantee-banner__text p {
        margin-bottom: 6px;
    }

    .guarantee-banner__text p + p {
        display: none;
    }
}

/* 78. Мобільний hero «Гарантії»: колаж лишається за макетом (абсолюти з
   media.css), правимо тільки контейнер — 80vh + великий padding давали
   порожній екран перед заголовком */
@media (max-width: 767px) {
    .guarantee-hero__inner {
        min-height: auto;
        margin-top: 0;
        padding-bottom: 300px;
        padding-top: 96px;
    }
}

/* 79. Мінікошик: квадратні мініатюри, фото заповнює плитку */
.minicart__product-image,
.minicart__suggestion-image {
    aspect-ratio: 1 / 1;
    height: auto;
}

.minicart__product-image {
    width: 102px;
}

.minicart__product-image img,
.minicart__suggestion-image img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

/* 80. Рекомендації на сторінці кошика (та сама логіка, що в мінікошику) */
.cart-suggestions {
    margin-top: 56px;
}

.cart-suggestions__title {
    margin: 0 0 24px;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 900;
    text-transform: uppercase;
}

.cart-suggestions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.cart-suggestion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 14px;
    border: 1px solid rgba(17, 17, 17, .12);
    border-radius: 18px;
    text-align: center;
}

.cart-suggestion__image {
    display: block;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 14px;
}

.cart-suggestion__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-suggestion__name {
    display: -webkit-box;
    color: inherit;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-suggestion__name:hover {
    color: var(--blue);
}

.cart-suggestion strong {
    font-size: 16px;
}

.cart-suggestion button {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--blue);
    border-radius: 19px;
    background: transparent;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cart-suggestion button:hover {
    background: var(--blue);
    color: #07151a;
}

/* 81. Мінікошик: друга кнопка — перехід на сторінку кошика */
.minicart__to-cart {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border: 1px solid rgba(17, 17, 17, .2);
    border-radius: 23px;
    color: #111;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.minicart__to-cart:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* 82. Сторінка «Замовлення прийнято» */
.order-success {
    padding: 150px 0 100px;
    background: #111;
    color: #fff;
}

.order-success__inner {
    max-width: 720px;
    /* блок по центру сторінки */
    margin: 0 auto;
    text-align: center;
}

.order-success__steps li {
    text-align: left;
}

.order-success__actions {
    justify-content: center;
}

.order-success__icon {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    border-radius: 50%;
    background: rgba(126, 227, 168, .14);
    color: #7ee3a8;
}

.order-success__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-success__title {
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.order-success__lead {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    line-height: 1.55;
}

.order-success__order {
    margin: 0 0 30px;
    font-size: 16px;
}

.order-success__order b {
    color: var(--blue);
    font-size: 20px;
}

.order-success__steps {
    display: grid;
    gap: 12px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.order-success__steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.order-success__steps span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.order-success__note {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
    line-height: 1.5;
}

.order-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.order-success__btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 10px;
    padding: 0 26px;
    border-radius: 25px;
    background: var(--blue);
    color: #07151a;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: filter .2s ease;
}

.order-success__btn:hover {
    filter: brightness(1.08);
}

/* стрілка успадковувала великий розмір із базових стилів */
.order-success__btn .square-arrow {
    --arrow-size: 9px;
    --arrow-thickness: 2px;
    --arrow-shaft: 13px;
}

.order-success__btn--ghost {
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
}

.order-success__btn--ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.order-success__contacts {
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
    line-height: 1.55;
}

.order-success__contacts a {
    color: var(--blue);
}

@media (max-width: 767px) {
    .order-success { padding: 110px 0 70px; }
}

/* 83. Плеєр «Як цим користуватись»: прелоадер у кнопці, заливка прогресу */
.product-video.is-video-loading .product-video__play {
    color: transparent;
    pointer-events: none;
}

.product-video.is-video-loading .product-video__play::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hp-video-spin 1s linear infinite;
    content: '';
}

.product-video__play {
    position: relative;
}

/* Доріжка прогресу: власне оформлення, бо нативний трек малювався
   поверх фону і синя заливка не збігалася з реальною позицією. */
.product-video__progress {
    height: 18px;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.product-video__progress::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--blue) var(--played, 0%), rgba(255, 255, 255, .25) var(--played, 0%));
}

.product-video__progress::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .25);
}

.product-video__progress::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--blue);
}

.product-video__progress::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    -webkit-appearance: none;
    appearance: none;
}

.product-video__progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
}

/* поточна швидкість підписом на шестерні */
.product-video__options button {
    position: relative;
}

.product-video__options button.is-active::after {
    position: absolute;
    right: -2px;
    bottom: -6px;
    padding: 1px 4px;
    border-radius: 6px;
    background: var(--blue);
    color: #07151a;
    content: attr(data-rate);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
}

.product-video__cc.is-active {
    border-color: var(--blue);
    color: var(--blue);
}

.product-video video::cue {
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 15px;
}

/* 84. Відеофон категорії: кружечок лише на перше завантаження кліпу */
.catalog-product__background.is-bg-loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hp-video-spin 1s linear infinite;
    content: '';
    pointer-events: none;
    z-index: 2;
}

.catalog-product__bg-video {
    background: #111;
}

/* 85. Кнопка й селектор товару у формі відгуку на /vidguky */
.reviews-page__add {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 12px;
    margin: 26px 0 32px;
    padding: 0 26px;
    border: 0;
    border-radius: 25px;
    background: var(--blue);
    color: #07151a;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .2s ease;
}

.reviews-page__add:hover {
    filter: brightness(1.08);
}

/* стрілка успадковувала великий розмір із базових стилів */
.reviews-page__add .square-arrow {
    --arrow-size: 9px;
    --arrow-thickness: 2px;
    --arrow-shaft: 13px;
}

.review-modal__field--product {
    position: relative;
}

.review-modal__suggest {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 240px;
    margin: 4px 0 0;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid rgba(17, 17, 17, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    list-style: none;
}

.review-modal__suggest button {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.review-modal__suggest button:hover {
    background: rgba(0, 174, 239, .12);
}

/* 86. Обране: кнопка після додавання в кошик */
.account-favorites__cart-btn.is-added {
    border-color: rgba(126, 227, 168, .5);
    background: rgba(126, 227, 168, .14);
    color: #7ee3a8;
}

/* 87. Повна сторінка замовлення в кабінеті */
.order-detail__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(17, 17, 17, .12);
}

.order-detail__num {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.order-detail__date {
    margin: 4px 0 0;
    color: rgba(17, 17, 17, .55);
    font-size: 13px;
}

.order-detail__status {
    padding: 7px 14px;
    border-radius: 16px;
    background: rgba(0, 174, 239, .12);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-detail__subtitle {
    margin: 26px 0 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.order-detail__product {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(17, 17, 17, .08);
}

.order-detail__product--voucher {
    grid-template-columns: 1fr auto;
}

.order-detail__thumb {
    display: block;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 12px;
}

.order-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-detail__product-copy {
    display: grid;
    gap: 3px;
}

.order-detail__product-name {
    color: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

a.order-detail__product-name:hover {
    color: var(--blue);
}

.order-detail__product-copy small {
    color: rgba(17, 17, 17, .55);
    font-size: 12px;
}

.order-detail__product-side {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.order-detail__product-side strong {
    font-size: 16px;
}

.order-detail__reorder {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.order-detail__reorder:hover {
    text-decoration: underline;
}

.order-detail__totals {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(17, 17, 17, .12);
}

.order-detail__total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.order-detail__total-row--sum {
    font-size: 18px;
    font-weight: 900;
}

.order-detail__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.order-detail__list {
    display: grid;
    gap: 4px;
    margin: 0;
}

.order-detail__list dt {
    color: rgba(17, 17, 17, .55);
    font-size: 12px;
    text-transform: uppercase;
}

.order-detail__list dd {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}

.order-detail__history {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0 0 0 18px;
}

.order-detail__history li {
    color: rgba(17, 17, 17, .6);
    font-size: 13px;
}

.order-detail__history li.is-current {
    color: #111;
    font-weight: 700;
}

.order-detail__history-status {
    display: block;
}

.order-detail__history-date {
    font-size: 12px;
    opacity: .7;
}

.order-detail__history-comment {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
}

.order-detail__back {
    display: inline-block;
    margin-top: 26px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.account-orders__view {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.account-orders__view .square-arrow {
    --arrow-size: 8px;
    --arrow-thickness: 2px;
    --arrow-shaft: 12px;
}

/* 88. Повідомлення про помилку — той самий тост, інший акцент */
.hp-toast--error {
    border-color: rgba(255, 107, 107, .4);
    background: rgba(46, 14, 14, .96);
}

/* 89. Попапи: контакти авторизованого — тільки читання, олівець у кабінет */
.review-modal__locked,
.auth-modal__field--locked {
    position: relative;
    display: block;
}

/* обидві модалки (відгук і швидке замовлення) темні — поля світлим */
.review-modal__locked input[readonly],
.auth-modal__field--locked input[readonly] {
    width: 100%;
    padding-right: 44px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .85);
    cursor: default;
}

.review-modal__edit,
.auth-modal__edit {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--blue);
    transform: translateY(-50%);
    transition: background .2s ease;
}

.review-modal__edit:hover,
.auth-modal__edit:hover {
    background: rgba(0, 174, 239, .12);
}

.review-modal__edit svg,
.auth-modal__edit svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 90. Каталог: кружечок-підказка без стрілок перемикання */
.catalog-product__controls--hint {
    width: auto;
    justify-content: flex-end;
}

.catalog-product__controls--hint .catalog-product__scroll {
    text-align: center;
}

/* 91. Категорійні відгуки: кнопка «Завантажити ще» */
.product-reviews__more {
    display: block;
    min-height: 48px;
    margin: 26px auto 0;
    padding: 0 30px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 24px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.product-reviews__more:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* 92. Сторінка кошика в мові теми (у верстці окремої сторінки не було) */
.cart-page {
    padding: 140px 0 90px;
    background: #fff;
    color: #111;
}

.cart-page .pd__crumbs {
    margin-bottom: 26px;
}

.cart-page__title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0 30px;
    font-size: clamp(32px, 4.6vw, 56px);
    font-weight: 900;
    text-transform: uppercase;
}

.cart-page__count {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    place-items: center;
    border-radius: 19px;
    background: var(--blue);
    color: #07151a;
    font-size: 16px;
}

.cart-page__notice {
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 107, 107, .4);
    border-radius: 12px;
    background: rgba(255, 107, 107, .08);
    font-size: 14px;
}

.cart-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.cart-line {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto auto auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(17, 17, 17, .1);
}

.cart-line:first-child {
    border-top: 1px solid rgba(17, 17, 17, .1);
}

.cart-line__thumb {
    display: block;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 14px;
}

.cart-line__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line__copy {
    display: grid;
    gap: 4px;
}

.cart-line__name {
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.cart-line__name:hover {
    color: var(--blue);
}

.cart-line__unit {
    color: rgba(17, 17, 17, .5);
    font-size: 13px;
}

.cart-line__stock {
    color: #d64541;
    font-size: 12px;
    font-weight: 700;
}

.cart-line__qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(17, 17, 17, .15);
    border-radius: 22px;
}

.cart-line__qty button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #111;
    font-size: 17px;
    cursor: pointer;
    transition: background .2s ease;
}

.cart-line__qty button:hover {
    background: rgba(0, 174, 239, .14);
}

.cart-line__qty output {
    min-width: 26px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.cart-line__total {
    min-width: 96px;
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.cart-line__remove {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(17, 17, 17, .45);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.cart-line__remove:hover {
    background: rgba(214, 69, 65, .1);
    color: #d64541;
}

.cart-line__remove svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-summary {
    position: sticky;
    top: 110px;
    padding: 26px;
    border: 1px solid rgba(17, 17, 17, .1);
    border-radius: 20px;
    background: #fafafa;
}

.cart-summary__title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
}

.cart-summary__row--sum {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 17, 17, .12);
    font-size: 17px;
    font-weight: 900;
}

.cart-page__checkout {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    border-radius: 26px;
    background: var(--blue);
    color: #07151a;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: filter .2s ease;
}

.cart-page__checkout:hover {
    filter: brightness(1.08);
}

.cart-page__checkout .square-arrow {
    --arrow-size: 9px;
    --arrow-thickness: 2px;
    --arrow-shaft: 13px;
}

.cart-summary__back {
    display: block;
    margin-top: 14px;
    color: rgba(17, 17, 17, .6);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.cart-summary__back:hover {
    color: var(--blue);
}

.cart-page__empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 60px 20px;
    border: 1px dashed rgba(17, 17, 17, .18);
    border-radius: 20px;
    text-align: center;
}

.cart-page__empty p {
    margin: 0;
    color: rgba(17, 17, 17, .6);
    font-size: 16px;
}

.cart-page__empty .cart-page__checkout {
    width: auto;
    padding: 0 28px;
}

.cart-page__empty-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 1px solid rgba(17, 17, 17, .15);
    border-radius: 50%;
    color: rgba(17, 17, 17, .45);
}

.cart-page__empty-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 991px) {
    .cart-page__layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 640px) {
    .cart-page { padding-top: 120px; }
    .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; }
    .cart-line__thumb { width: 72px; height: 72px; }
    .cart-line__qty { grid-column: 2; justify-self: start; }
    .cart-line__total { grid-column: 3; grid-row: 1; }
    .cart-line__remove { grid-column: 3; grid-row: 2; justify-self: end; }
}

/* 93. Панель фільтрів: плашки вибраних + стан завантаження */
.catalog-product__filter-head {
    display: grid;
    gap: 10px;
    margin-bottom: 6px;
}

.catalog-product__filter-head .catalog-product__filter-title {
    margin: 0;
}

.catalog-product__filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-product__filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--blue);
    border-radius: 15px;
    background: rgba(0, 174, 239, .12);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.catalog-product__filter-chip span {
    font-size: 14px;
    line-height: 1;
}

.catalog-product__filter-chip:hover {
    background: var(--blue);
    color: #07151a;
}

.catalog-product__filter.is-filter-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}

/* Перелінковка статті блогу: товари за темою і сусідні матеріали
	========================================================================== */
.hp-post__products,
.hp-post__related {
    margin-top: 56px;
}

.hp-post__products h2,
.hp-post__related h2 {
    margin: 0 0 22px;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
}

.hp-post__products-grid,
.hp-post__related-grid {
    display: grid;
    gap: 16px;
}

.hp-post__products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.hp-post__related-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hp-post__product {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(23, 23, 23, .14);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.hp-post__product:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.hp-post__product-img {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
}

.hp-post__product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-post__product-name {
    font-size: 13px;
    line-height: 1.35;
}

.hp-post__product strong {
    font-size: 15px;
}

.hp-post__catalog-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--blue);
    font-weight: 700;
}

.hp-post__related-card {
    display: block;
    padding: 18px;
    border: 1px solid rgba(23, 23, 23, .14);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease;
}

.hp-post__related-card:hover {
    border-color: var(--blue);
}

.hp-post__related-card span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hp-post__related-card p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.35;
}

/* Пропозиції в шухляді кошика на телефоні: дві картки в ряд, як усюди,
   замість горизонтальної стрічки на шість позицій. Правило має жити тут:
   pages.css підключається після media.css і перебивав би його. */
@media (max-width: 767px) {
    .minicart__suggestion-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
    }

    .minicart__suggestion.minicart__suggestion--tile {
        flex: initial;
        width: auto;
    }
}


/* Кабінет на телефоні: колонка сітки розтягувалась до ширини рядка меню
   (5 пунктів без переносу) і вся сторінка ставала 700px завширшки. */
@media (max-width: 767px) {
    .account-page__layout { grid-template-columns: minmax(0, 1fr); }
    .account-page__sidebar,
    .account-page__content { min-width: 0; }
    .account-page__nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .account-page__nav::-webkit-scrollbar { display: none; }
    .account-page__nav a { flex: 0 0 auto; }
    .account-orders__group-row { gap: 10px; }
    .account-orders__view--group { margin-left: 0; width: 100%; }
}


/* ===== Чекаут: підсвітка невалідних полів (загальний текст — тостом) ===== */
.checkout__form input.is-invalid,
.checkout__form .checkout__phone.is-invalid .checkout__phone-input,
.checkout__form .checkout__input-wrap.is-invalid input,
.checkout__form .checkout__dark-input.is-invalid input {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, .18);
    animation: hp-shake .35s ease;
}
.checkout__form .checkout__phone.is-invalid .iti { border-color: #ff6b6b; border-radius: inherit; box-shadow: 0 0 0 3px rgba(255, 107, 107, .18); }
.checkout__form .checkout__shipping.is-invalid,
.checkout__form .checkout__carriers.is-invalid,
.checkout__form .checkout__payment-method.is-invalid { outline: 2px solid rgba(255, 107, 107, .7); outline-offset: 6px; border-radius: 12px; }
.checkout__form .checkout__agreement.is-invalid span,
.checkout__form .checkout__agreement.is-invalid a { color: #ff6b6b; }
.checkout__form .checkout__agreement.is-invalid i { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .18); }
@keyframes hp-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }


/* ===== «Додано»: кнопка в кошик на каталозі й сторінці товару після додавання ===== */
[data-hp-cart-add].is-added {
    background: rgba(46, 204, 113, .16) !important;
    border-color: rgba(46, 204, 113, .6) !important;
    color: #2ecc71 !important;
}
[data-hp-cart-add].is-added::before { content: '✓ '; }


/* ===== Каталог/категорія: наявність · обʼєм · код — одним рядком ===== */
.catalog-product__buy > .catalog-product__meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 6px 0 4px;
}
.catalog-product__meta small {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: 0;
}
/* блок вузький (~280px): рядок не переноситься, за потреби трохи виходить за край */
@media (min-width: 768px) {
    .catalog-product__buy > .catalog-product__meta { flex-wrap: nowrap; margin-right: -40px; }
}
.catalog-product__meta small + small:not([hidden])::before,
.catalog-product__meta small[hidden] + small + small::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
}
.catalog-product__meta small[hidden] { display: none; }


/* ===== Leaflet: компактна атрибуція карти (умова CARTO/OSM) ===== */
.leaflet-control-attribution {
    padding: 1px 6px !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
    background: rgba(255, 255, 255, .72) !important;
    color: #444 !important;
}
.leaflet-control-attribution a { color: #444 !important; text-decoration: none; }
.leaflet-control-attribution a:hover { text-decoration: underline; }


/* ===== Зони дотику: іконкові кнопки лишаються візуально такими ж, але зона
   натискання росте до 44×44 (рекомендація Apple HIG і Google) ===== */
/* position ставимо лише статичним: .reviews__filter-media має absolute */
.icon-button,
.tile-fav,
.hero__prev,
.hero__next { position: relative; }

.icon-button::after,
.tile-fav::after,
.hero__prev::after,
.hero__next::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* у бургера ::before/::after — це його смужки, тож накладку туди не вставити:
   ростимо сам бокс, а відʼємний маржин лишає сусідів на місці (смужки центровані
   через translate, тож не зсуваються) */
.menu-toggle,
.header .menu-toggle {
    width: 44px;
    height: 44px;
    margin: -7px;
}

/* до 430px шапка тисне іконки до 30px правилом `.header .menu-toggle` —
   перебиваємо тією ж вагою, інакше бургер лишається 30×30 */
@media (max-width: 430px) {
    .header .menu-toggle {
        width: 44px;
        height: 44px;
        margin: -7px;
    }
}


/* Декоративний напис у футері (256px, nowrap) вилазив за правий край і давав
   горизонтальний скрол на кошику й оформленні: обрізаємо його по футеру */
.footer {
    overflow-x: clip;
}


/* ===== Липка панель купівлі на телефоні ===== */
.hp-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #0d1114;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
    transform: translateY(110%);
    transition: transform .25s ease;
}
.hp-buybar.is-visible { transform: translateY(0); }
.hp-buybar__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hp-buybar__title {
    font-size: 12px;
    line-height: 1.3;
    opacity: .75;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.hp-buybar__price { font-size: 17px; font-weight: 800; line-height: 1.2; }
.hp-buybar__btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 25px;
    background: var(--blue, #32c6f4);
    color: #06121a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
}
.hp-buybar__btn:disabled { opacity: .5; cursor: default; }
.hp-buybar.is-added .hp-buybar__btn { background: rgba(46, 204, 113, .18); color: #2ecc71; }
@media (min-width: 768px) { .hp-buybar { display: none; } }
@media (prefers-reduced-motion: reduce) { .hp-buybar { transition: none; } }


/* ===== Кнопка «нагору» ===== */
.hp-totop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 110;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(13,17,20,.92);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.hp-totop.is-visible { opacity: .9; visibility: visible; transform: translateY(0); }
.hp-totop:hover { opacity: 1; }
/* липка панель купівлі на телефоні — піднімаємо кнопку над нею */
.hp-buybar.is-visible ~ .hp-totop { bottom: 80px; }
@media (max-width: 767px) { .hp-totop { right: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .hp-totop { transition: none; } }

/* ===== Видимий фокус з клавіатури =====
   Був прибраний або ледь помітний, через це навігація з клавіатури ламалась. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #32c6f4;
    outline-offset: 2px;
    border-radius: 4px;
}


/* ===== Мінікошик: скільки лишилось до безкоштовної доставки ===== */
.minicart__free { margin-bottom: 12px; }
.minicart__free-text { margin: 0 0 6px; font-size: 12px; line-height: 1.35; opacity: .85; }
.minicart__free-bar {
    display: block;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}
.minicart__free-bar i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--blue, #32c6f4);
    transition: width .3s ease;
}
.minicart__free.is-done .minicart__free-text { color: #2ecc71; opacity: 1; font-weight: 700; }
.minicart__free.is-done .minicart__free-bar i { background: #2ecc71; }


/* текст лише для скрінрідера */
.hp-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}


/* Рекомендації в кошику й на оформленні стояли впритул до футера */
.cart-suggestions {
    margin-bottom: 72px;
}
@media (max-width: 767px) {
    .cart-suggestions {
        margin-top: 40px;
        margin-bottom: 48px;
    }
}


/* ===== Cookie-банер ===== */
.hp-cookie {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 130;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: #0d1114;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .28s ease, transform .28s ease;
}
.hp-cookie.is-visible { opacity: 1; transform: translateY(0); }
.hp-cookie[hidden] { display: none; }
.hp-cookie__text { margin: 0; font-size: 13px; line-height: 1.45; }
.hp-cookie__link { color: #32c6f4; text-decoration: underline; text-underline-offset: 2px; }
.hp-cookie__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.hp-cookie__btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.16);
    background: transparent;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.hp-cookie__btn--accept { border-color: #32c6f4; background: #32c6f4; color: #06121a; }
.hp-cookie__btn:hover { opacity: .88; }
/* липка панель купівлі не має перекриватись банером */
.hp-buybar.is-visible ~ .hp-cookie { bottom: 78px; }
@media (max-width: 767px) {
    .hp-cookie { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
    .hp-cookie__actions { justify-content: stretch; }
    .hp-cookie__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .hp-cookie { transition: none; } }


/* ---------- кабінет: вкладки замовлень по магазинах групи ---------- */
.hp-store-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.hp-store-tabs li {
    margin: 0;
}

.hp-store-tabs a {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    opacity: .75;
    padding: 7px 14px;
    text-decoration: none;
    transition: opacity .15s ease, background .15s ease;
}

.hp-store-tabs a:hover {
    opacity: 1;
}

.hp-store-tabs li.is-active a {
    background: var(--store-color, rgba(127, 127, 127, .14));
    opacity: 1;
}

.hp-store-tabs__count {
    font-size: 11px;
    opacity: .7;
}

/* замовлення з іншого магазину — цілий рядок є посиланням */
.account-orders__item--remote,
.order--remote {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.account-orders__open,
.order__open {
    font-size: 12px;
    margin-left: auto;
    opacity: .75;
    white-space: nowrap;
}


/* ---------- єдиний вигляд статусу замовлення (вся група) ---------- */
.account-orders__status,
.order__status {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    line-height: 1.3;
    padding: 4px 10px;
    white-space: nowrap;
}

.account-orders__status.is-wait,
.order__status.is-wait {
    background: rgba(240, 173, 78, .16);
    color: #b9770e;
}

.account-orders__status.is-ok,
.order__status.is-ok {
    background: rgba(76, 175, 80, .16);
    color: #2e7d32;
}

.account-orders__status.is-fail,
.order__status.is-fail {
    background: rgba(224, 49, 49, .14);
    color: #c0392b;
}


/* картка замовлення з іншого магазину: одразу розгорнута, з переходом */
.hp-order__panel--remote,
.order__panel--remote,
.account-orders__remote-body {
    border-top: 1px solid rgba(127, 127, 127, .18);
    display: block;
    padding: 12px 14px;
}

.hp-order__note,
.order__note,
.account-orders__note {
    font-size: 13px;
    margin: 0 0 10px;
    opacity: .75;
}

.account-orders__item--remote {
    display: block;
}

.account-orders__remote-head {
    align-items: center;
    display: flex;
    gap: 12px;
    padding: 12px 14px;
}
