/* v2-base.css — Redesign v2 (Figma GwYiEL3U7a634ABC0nE4b5, section 4706:2841) */
/*
 * Shared components. Reuse the classes, do not copy them:
 *   .hh-only-desktop / .hh-only-mobile ... show a span only at >767px / ≤767px
 *   .hh-page-head .hh-page-title .hh-page-sub ... page title + subtitle
 *   .hh-back ................................ «‹ КАТАЛОГ» / «‹ НАЗАД»
 *   .hh-link ................................ text link «ДЕТАЛЬНІШЕ →» (v2/Button/Text link)
 *   .hh-btn-primary ......................... 56px dark button (v2/Button/Primary)
 *   .hh-add ................................. 40px «+» (v2/Add/Default)
 *   .hh-qty (--md 44px, --lg 48px) .......... − N + counter (v2/Quantity), template-parts/qty.php
 *   .hh-info (--dark) ....................... info bar (Info / no ration, Info / ration in cart)
 *   .hh-hint ................................ grey hint with the info icon
 *   .hh-chips .hh-chip (.is-active) ......... filter chips
 *   .hh-extra-card .......................... extra card, template-parts/extra-card.php
 *   .hh-ration-card ......................... ration card, template-parts/ration-card.php
 *   .hh-questions ........................... «Залишились питання?», template-parts/v2-questions.php
 *   .hh-popup (+ __dialog--wide) ............ popup; bottom sheet at ≤767px. JS (js/v2-extras.js):
 *       window.HHPopup.open('id') / .close('id'); [data-hh-popup-close] inside closes; Esc closes.
 *       <div class="hh-popup" id="…" data-hh-popup hidden>
 *         <div class="hh-popup__overlay" data-hh-popup-close></div>
 *         <div class="hh-popup__dialog" role="dialog" aria-modal="true">
 *           <div class="hh-popup__head"><p class="hh-popup__title">…</p><button class="hh-popup__close" data-hh-popup-close>…</button></div>
 *           <p class="hh-popup__text">…</p> … <div class="hh-popup__bottom">…</div>
 *       See template-parts/popup-no-ration.php.
 *   .hh-pending ............................. «Чекає на раціон» row in a popup
 *   .hh-mini-rations .hh-mini-ration ........ small ration cards with «Обрати →»
 *   .hh-dots / .hh-arrows ................... slider pagination and arrows
 */

/* main.css points the Cormorant Medium face to a wrong URL (no ../fonts/), so weight 500
   falls back to a system serif. v2 uses its own family name for the medium face. */
@font-face {
    font-family: 'HH Cormorant';
    src: url('../fonts/Cormorant-Medium.woff') format('woff'),
        url('../fonts/Cormorant-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* .wrapper padding-top minus the header line (main.css): subtract it from the
       mockup's top padding so content starts where the mockup has it. */
    --hh-wrap-extra: 41px;
    /* .footer margin-top (main.css). A v2 screen that ends N px above the footer in the
       mockup sets margin-bottom: calc(Npx - var(--hh-footer-gap)) (margins collapse). */
    --hh-footer-gap: 200px;
    --hh-primary: #0F2D47;
    --hh-black: #282828;
    --hh-gray: #737373;
    --hh-border: #C8C8C8;
    --hh-light: #F7F7F7;
    --hh-secondary: #E5E5E5;
}

.hh-only-mobile {
    display: none;
}

/* ---------- Page head ---------- */

.hh-page-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--hh-black);
}

.hh-page-title {
    margin: 0;
    font-family: 'Montserrat';
    font-size: 40px;
    font-weight: 400;
    line-height: normal;
}

.hh-page-sub {
    margin: 0;
    font-size: 16px;
    line-height: normal;
}

/* ---------- Links and buttons ---------- */

.hh-back {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 8px;
    color: var(--hh-black);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    text-transform: uppercase;
    text-decoration: none;
}

.hh-back img {
    display: block;
    width: 9px;
    height: 17px;
    transition: transform 0.2s;
}

.hh-back:hover img {
    transform: translateX(-3px);
}

.hh-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hh-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.hh-link img {
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.hh-link:hover img {
    transform: translateX(3px);
}

.hh-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 56px;
    padding: 0 32px;
    border: 0;
    background: var(--hh-primary);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.hh-btn-primary:hover {
    background: #1C4466;
}

.hh-btn-primary img {
    display: block;
    width: 16px;
    height: 16px;
}

.hh-btn-primary.is-busy,
.hh-add.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.hh-add {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: var(--hh-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.hh-add:hover {
    background: #1C4466;
}

.hh-add img {
    display: block;
    width: 16px;
    height: 16px;
}

/* ---------- Quantity − N + ---------- */

.hh-qty {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
}

.hh-qty__btn,
.hh-qty__value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--hh-black);
    font-size: 16px;
    line-height: normal;
}

.hh-qty__btn {
    padding: 0;
    border: 1px solid var(--hh-border);
    background: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s;
}

.hh-qty__btn:hover {
    background: var(--hh-light);
}

.hh-qty__btn img {
    display: block;
    width: 16px;
    height: 16px;
}

.hh-qty__value {
    border-top: 1px solid var(--hh-border);
    border-bottom: 1px solid var(--hh-border);
    font-variant-numeric: tabular-nums;
}

.hh-qty--md .hh-qty__btn,
.hh-qty--md .hh-qty__value {
    width: 44px;
    height: 44px;
    font-size: 17.6px;
}

.hh-qty--md .hh-qty__btn img {
    width: 17.6px;
    height: 17.6px;
}

.hh-qty--lg .hh-qty__btn,
.hh-qty--lg .hh-qty__value,
.hh-qty--lg-desktop .hh-qty__btn,
.hh-qty--lg-desktop .hh-qty__value {
    width: 48px;
    height: 48px;
    font-size: 19.2px;
}

.hh-qty--lg .hh-qty__btn img,
.hh-qty--lg-desktop .hh-qty__btn img {
    width: 19.2px;
    height: 19.2px;
}

.hh-qty.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

/* ---------- Info bar and hint ---------- */

.hh-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border: 1px solid var(--hh-primary);
    color: var(--hh-black);
}

.hh-info__icon {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.hh-info__text {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    line-height: normal;
}

.hh-info__link {
    flex-shrink: 0;
}

.hh-info--dark {
    border: 0;
    background: var(--hh-primary);
    color: #FFFFFF;
}

.hh-info--dark .hh-info__link {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.hh-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--hh-light);
    color: var(--hh-black);
}

.hh-hint__icon {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.hh-hint__text {
    flex: 1 1 0;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

/* ---------- Chips ---------- */

.hh-chips {
    display: flex;
    gap: 12px;
}

.hh-chip {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 1px solid var(--hh-border);
    background: transparent;
    color: var(--hh-black);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hh-chip:hover {
    border-color: var(--hh-primary);
}

.hh-chip.is-active {
    border-color: var(--hh-primary);
    background: var(--hh-primary);
    color: #FFFFFF;
}

/* ---------- Extra card ---------- */

.hh-extra-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px 16px 16px;
    background: var(--hh-light);
    color: var(--hh-black);
}

.hh-extra-card.is-hidden {
    display: none !important;
}

.hh-extra-card__img {
    display: block;
    flex: 0 0 136px;
    width: 136px;
    height: 136px;
    overflow: hidden;
    background: #FFFFFF;
}

.hh-extra-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.hh-extra-card__img:hover img {
    transform: scale(1.04);
}

.hh-extra-card__info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.hh-extra-card__title {
    color: var(--hh-black);
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
}

.hh-extra-card__title:hover {
    color: var(--hh-primary);
}

.hh-extra-card__macros {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    margin: 0;
    color: var(--hh-gray);
    font-size: 14px;
    line-height: normal;
    white-space: nowrap;
}

.hh-extra-card__ingredients {
    margin: 0;
    color: var(--hh-gray);
    font-size: 14px;
    line-height: 20px;
}

.hh-extra-card__more {
    margin-top: 4px;
}

.hh-extra-card__side {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    gap: 12px;
    padding: 2px 0;
}

.hh-extra-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    color: var(--hh-black);
    font-size: 14px;
    line-height: normal;
    white-space: nowrap;
}

.hh-extra-card__price b {
    color: var(--hh-primary);
    font-size: 20px;
    font-weight: 600;
}

.hh-extra-card__calc {
    margin: 2px 0 0;
    color: #6F6F6F;
    font-size: 12px;
    line-height: normal;
    white-space: nowrap;
}

.hh-extra-card__calc[hidden] {
    display: none;
}

/* Price + «3 × 85 грн.» stacked in one box, so the − N + counter beside it
   never gets pushed out of the card. */
.hh-extra-card__pricebox {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
}

/* Compact layouts (small card, large card on mobile): price on the left,
   counter on the right; on very narrow screens the counter wraps below. */
.hh-extra-card--small .hh-extra-card__side {
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 8px;
}
.hh-extra-card--small .hh-extra-card__pricebox {
    align-items: flex-start;
}
.hh-extra-card--small .hh-extra-card__ctrl {
    margin-left: auto;
}
@media only screen and (max-width: 767px) {
    .hh-extra-card--large .hh-extra-card__side {
        flex-wrap: wrap;
        row-gap: 8px;
        column-gap: 8px;
        min-width: 0;
    }
    .hh-extra-card--large .hh-extra-card__pricebox {
        align-items: flex-start;
    }
    .hh-extra-card--large .hh-extra-card__ctrl {
        margin-left: auto;
    }
}

.hh-extra-card__ctrl .hh-qty,
.hh-extra-card.is-added .hh-extra-card__ctrl .hh-add {
    display: none;
}

.hh-extra-card.is-added .hh-extra-card__ctrl .hh-qty {
    display: inline-flex;
}

/* Compact card (Figma «v2/Extra card / Mobile»); the large card turns into it at ≤767px. */
.hh-extra-card--small {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    gap: 6px 16px;
    min-height: 141px;
    padding: 12px;
}

.hh-extra-card--small .hh-extra-card__img {
    grid-row: 1 / -1;
    width: 96px;
    height: 96px;
}

.hh-extra-card--small .hh-extra-card__info {
    display: contents;
}

.hh-extra-card--small .hh-extra-card__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
}

.hh-extra-card--small .hh-extra-card__macros {
    grid-column: 2;
    grid-row: 2;
    gap: 0 12px;
    font-size: 12px;
}

.hh-extra-card--small .hh-extra-card__ingredients,
.hh-extra-card--small .hh-extra-card__more {
    display: none;
}

.hh-extra-card--small .hh-extra-card__side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    padding: 0;
}

.hh-extra-card--small .hh-extra-card__price {
    font-size: 12px;
}

.hh-extra-card--small .hh-extra-card__price b {
    font-size: 18px;
}

/* ---------- Ration card ---------- */

.hh-ration-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--hh-black);
    text-decoration: none;
}

.hh-ration-card__img {
    position: relative;
    display: block;
    aspect-ratio: 336 / 328;
    overflow: hidden;
    background: var(--hh-secondary);
}

.hh-ration-card__img img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hh-ration-card__btn {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 8px;
    background: var(--hh-primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s;
}

.hh-ration-card:hover .hh-ration-card__btn,
.hh-ration-card:focus-visible .hh-ration-card__btn {
    opacity: 1;
}

.hh-ration-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hh-ration-card__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.hh-ration-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
}

.hh-ration-card__name {
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    text-overflow: ellipsis;
}

.hh-ration-card__price {
    font-size: 14px;
    line-height: normal;
}

.hh-ration-card__price b,
.hh-ration-card__price strong {
    color: var(--hh-primary);
    font-size: 16px;
    font-weight: 700;
}

.hh-ration-card__sub {
    font-size: 16px;
    line-height: normal;
}

.hh-ration-card__kcal {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(40, 40, 40, 0.7);
    color: rgba(40, 40, 40, 0.7);
    font-size: 16px;
    line-height: normal;
    white-space: nowrap;
}

/* ---------- «Залишились питання?» ---------- */

.hh-questions {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 48px 32px;
    background: var(--hh-light);
    color: var(--hh-black);
}

.hh-questions__text {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.hh-questions__title {
    margin: 0;
    font-size: 32px;
    line-height: normal;
}

.hh-questions__desc {
    max-width: 600px;
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.hh-questions__btns {
    display: flex;
    flex-shrink: 0;
    gap: 16px;
}

.hh-questions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 248px;
    height: 56px;
    border: 1px solid var(--hh-primary);
    background: #FFFFFF;
    color: var(--hh-black);
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}

.hh-questions__btn:hover {
    background: var(--hh-secondary);
}

.hh-questions__icon {
    display: block;
    width: 24px;
    height: 24px;
}

.hh-questions__icon--tg {
    width: 25px;
    height: 25px;
    margin: -0.5px;
}

/* ---------- Popup / bottom sheet ---------- */

html.hh-popup-open {
    overflow: hidden;
}

.hh-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hh-popup[hidden] {
    display: none;
}

.hh-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.5);
    animation: hh-fade 0.2s ease-out;
}

.hh-popup__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 880px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 40px 48px 48px;
    background: #FFFFFF;
    color: var(--hh-black);
    animation: hh-pop 0.25s ease-out;
}

.hh-popup__dialog--wide {
    max-width: 1000px;
}

.hh-popup__head {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.hh-popup__heading {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.hh-popup__title {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
}

/* Text right under the title: the dialog gap is 24, the mockup has 12 here. */
.hh-popup__head + .hh-popup__text {
    margin-top: -12px;
}

.hh-popup__text {
    max-width: 760px;
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.hh-popup__close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hh-popup__close img {
    display: block;
    width: 24px;
    height: 24px;
}

.hh-popup__row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hh-popup__subtitle {
    flex: 1 1 0;
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
}

.hh-popup__bottom {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hh-popup__later {
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid rgba(115, 115, 115, 0.6);
    background: none;
    color: var(--hh-gray);
    font-family: inherit;
    font-size: 14px;
    line-height: normal;
    cursor: pointer;
}

.hh-popup__later:hover {
    color: var(--hh-black);
}

@keyframes hh-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hh-pop {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes hh-sheet {
    from { transform: translateY(100%); }
    to { transform: none; }
}

/* Pending extra row */
.hh-pending {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px 12px 12px;
    background: var(--hh-light);
}

.hh-pending[hidden] {
    display: none;
}

.hh-pending__img {
    display: block;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    overflow: hidden;
    background: #FFFFFF;
}

.hh-pending__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hh-pending__info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hh-pending__name {
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
}

.hh-pending__note {
    color: var(--hh-gray);
    font-size: 14px;
    line-height: normal;
}

.hh-pending__price {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
}

/* Mini ration cards */
.hh-mini-rations {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.hh-mini-ration {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: var(--hh-black);
    text-decoration: none;
}

.hh-mini-ration__img {
    display: block;
    width: 100%;
    height: 214px;
    overflow: hidden;
    background: var(--hh-secondary);
}

.hh-mini-ration__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hh-mini-ration__name {
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
}

.hh-mini-ration__sub {
    font-size: 14px;
    line-height: normal;
}

.hh-mini-ration__price {
    font-size: 14px;
    line-height: normal;
    white-space: nowrap;
}

.hh-mini-ration__price b,
.hh-mini-ration__price strong {
    color: var(--hh-primary);
    font-size: 16px;
    font-weight: 700;
}

.hh-mini-ration__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 34px;
    margin-top: 6px;
    padding: 0 12px;
    border: 1px solid var(--hh-primary);
    color: var(--hh-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    transition: background 0.2s;
}

.hh-mini-ration:hover .hh-mini-ration__btn {
    background: var(--hh-light);
}

.hh-mini-ration__btn img {
    display: block;
    width: 14px;
    height: 14px;
}

/* ---------- Slider dots and arrows ---------- */

.hh-dots {
    display: flex;
    gap: 8px;
}

.hh-dots__dot {
    display: block;
    width: 8px;
    height: 2px;
    padding: 0;
    border: 0;
    background: rgba(15, 45, 71, 0.25);
    cursor: pointer;
    transition: width 0.25s, background 0.25s;
}

.hh-dots__dot.is-active {
    width: 32px;
    background: var(--hh-primary);
}

.hh-dots.swiper-pagination-lock {
    display: none;
}

.hh-arrows {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.hh-arrows__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--hh-primary);
    background: #FFFFFF;
    cursor: pointer;
}

.hh-arrows__btn img {
    display: block;
    width: 24px;
    height: 24px;
}

.hh-arrows__prev-icon {
    transform: rotate(180deg);
}

.hh-arrows__btn.swiper-button-disabled {
    border-color: rgba(15, 45, 71, 0.4);
    cursor: default;
}

.hh-arrows__btn.swiper-button-disabled img {
    opacity: 0.4;
}

.hh-arrows.swiper-button-lock,
.hh-arrows__btn.swiper-button-lock {
    display: none;
}

@media only screen and (max-width: 1599px) {
    :root {
        --hh-wrap-extra: 26px;
        --hh-footer-gap: 150px;
    }
}

@media only screen and (max-width: 1439px) {
    :root {
        --hh-wrap-extra: 32px;
        --hh-footer-gap: 120px;
    }
}

/* ---------- ≤767px (mobile mockups, 375) ---------- */

@media only screen and (max-width: 767px) {
    :root {
        --hh-wrap-extra: 26px;
        --hh-footer-gap: 80px;
    }

    .hh-only-desktop {
        display: none;
    }

    .hh-only-mobile {
        display: inline;
    }

    .hh-page-head {
        gap: 12px;
    }

    .hh-page-title {
        font-size: 32px;
    }

    .hh-page-sub {
        font-size: 14px;
    }

    .hh-qty--lg-desktop .hh-qty__btn,
    .hh-qty--lg-desktop .hh-qty__value {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hh-qty--lg-desktop .hh-qty__btn img {
        width: 16px;
        height: 16px;
    }

    .hh-info {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 16px;
    }

    .hh-info__icon {
        width: 20px;
        height: 20px;
    }

    .hh-info__text {
        font-size: 14px;
        line-height: 20px;
    }

    .hh-info__link {
        grid-column: 2;
        justify-self: start;
    }

    .hh-info--dark {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hh-hint {
        padding: 12px 16px;
    }

    .hh-hint__text {
        font-size: 13px;
        line-height: 19px;
    }

    .hh-chips {
        gap: 8px;
        margin: 0 -16px;
        padding: 0 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hh-chips::-webkit-scrollbar {
        display: none;
    }

    .hh-chip {
        padding: 8px 16px;
    }

    /* Large extra card → compact layout */
    .hh-extra-card--large {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-rows: auto auto 1fr auto;
        align-items: start;
        gap: 6px 16px;
        min-height: 141px;
        padding: 12px;
    }

    .hh-extra-card--large .hh-extra-card__img {
        grid-row: 1 / -1;
        width: 96px;
        height: 96px;
    }

    .hh-extra-card--large .hh-extra-card__info {
        display: contents;
    }

    .hh-extra-card--large .hh-extra-card__title {
        grid-column: 2;
        grid-row: 1;
        font-size: 16px;
    }

    .hh-extra-card--large .hh-extra-card__macros {
        grid-column: 2;
        grid-row: 2;
        gap: 0 12px;
        font-size: 12px;
    }

    .hh-extra-card--large .hh-extra-card__ingredients,
    .hh-extra-card--large .hh-extra-card__more {
        display: none;
    }

    .hh-extra-card--large .hh-extra-card__side {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        grid-column: 2;
        grid-row: 4;
        align-self: end;
        padding: 0;
    }

    .hh-extra-card--large .hh-extra-card__price {
        font-size: 12px;
    }

    .hh-extra-card--large .hh-extra-card__price b {
        font-size: 18px;
    }

    .hh-ration-card__btn {
        opacity: 1;
    }

    .hh-questions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 32px 24px;
    }

    .hh-questions__title {
        font-size: 24px;
    }

    .hh-questions__desc {
        font-size: 14px;
        line-height: 21px;
    }

    .hh-questions__btns {
        flex-direction: column;
        gap: 12px;
        padding-top: 8px;
    }

    .hh-questions__btn {
        width: 100%;
    }

    .hh-popup {
        align-items: flex-end;
        padding: 0;
    }

    .hh-popup__dialog,
    .hh-popup__dialog--wide {
        gap: 16px;
        max-width: none;
        max-height: 90vh;
        padding: 24px 16px 32px;
        animation: hh-sheet 0.3s ease-out;
    }

    .hh-popup__head {
        gap: 16px;
    }

    .hh-popup__title {
        font-size: 24px;
    }

    .hh-popup__head + .hh-popup__text {
        margin-top: 0;
    }

    .hh-popup__text {
        font-size: 14px;
        line-height: 21px;
    }

    .hh-popup__close,
    .hh-popup__close img {
        width: 20px;
        height: 20px;
    }

    .hh-popup__subtitle {
        font-size: 18px;
    }

    .hh-popup__bottom {
        padding-top: 4px;
    }

    .hh-pending {
        gap: 12px;
        padding: 12px;
    }

    .hh-pending__img {
        width: 48px;
        height: 48px;
    }

    .hh-pending__info {
        gap: 2px;
    }

    .hh-pending__name {
        font-size: 14px;
    }

    .hh-pending__note {
        font-size: 12px;
    }

    .hh-pending__price {
        font-size: 14px;
    }

    .hh-mini-rations {
        display: flex;
        gap: 12px;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hh-mini-rations::-webkit-scrollbar {
        display: none;
    }

    .hh-mini-ration {
        flex: 0 0 148px;
        gap: 8px;
    }

    .hh-mini-ration__img {
        height: 148px;
    }

    .hh-mini-ration__name {
        font-size: 14px;
    }

    .hh-mini-ration__sub {
        display: none;
    }

    .hh-mini-ration__price {
        font-size: 12px;
    }

    .hh-mini-ration__price b,
    .hh-mini-ration__price strong {
        font-size: 14px;
    }

    .hh-mini-ration__btn {
        height: 32px;
        margin-top: 0;
        padding: 0 10px;
        font-size: 12px;
    }
}

/* ------------------------------------------------------------------------
 * Text pages (page.php): Публічна оферта, Політика конфіденційності
 * --------------------------------------------------------------------- */
.hh-text-page {
    padding-top: calc(48px - var(--hh-wrap-extra));
    margin-bottom: calc(120px - var(--hh-footer-gap));
}
.hh-text {
    max-width: 880px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #282828;
}
.hh-text h2 {
    margin: 40px 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #0F2D47;
}
.hh-text p,
.hh-text ul {
    margin: 0 0 14px;
}
.hh-text ul {
    padding-left: 22px;
    list-style: disc;
}
.hh-text li {
    margin-bottom: 6px;
}
.hh-text a {
    color: #0F2D47;
    text-decoration: underline;
}
.hh-text code {
    font-size: 14px;
    background: #F4F4F4;
    padding: 1px 5px;
}
@media only screen and (max-width: 767px) {
    .hh-text-page {
        padding-top: calc(24px - var(--hh-wrap-extra));
        margin-bottom: calc(64px - var(--hh-footer-gap));
    }
    .hh-text {
        font-size: 15px;
    }
    .hh-text h2 {
        margin-top: 28px;
        font-size: 19px;
    }
}

/* Home: the hero video starts right under the fixed header. .wrapper keeps a
   padding a bit taller than the header (main.css), which left a white strip
   of 26–41px above the video. */
.home .ffeFirst {
    margin-top: calc(-1 * var(--hh-wrap-extra));
}

/* Footer: legal links (Публічна оферта, Політика конфіденційності).
   The footer menu is centred absolutely; anchor it to its own row so the
   extra line below does not pull it down. */
.footer__block {
    position: relative;
}
.footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 32px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #E5E5E5;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #737373;
}
.footer__legal a {
    color: #737373;
    text-decoration: none;
}
.footer__legal a:hover {
    color: #0F2D47;
    text-decoration: underline;
}
.footer__copy {
    margin-right: auto;
}
@media only screen and (max-width: 767px) {
    .footer__legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 24px;
    }
    .footer__copy {
        order: 3;
        margin-right: 0;
    }
}

/* ---------- Accessibility (global) ----------
 * main.css resets `outline: none` on everything; keyboard users get a visible
 * focus ring back. :focus-visible only, so mouse clicks stay clean. */
html body :focus-visible {
    outline: 2px solid var(--hh-primary);
    outline-offset: 2px;
}

/* Dark buttons: the ring sits a bit further out so it reads against the fill. */
html body .hh-btn-primary:focus-visible,
html body .hh-add:focus-visible {
    outline-color: var(--hh-primary);
    outline-offset: 3px;
}

/* select2 keeps focus on its own span */
html body .select2-container--focus .select2-selection,
html body .select2-container--open .select2-selection {
    outline: 2px solid var(--hh-primary);
    outline-offset: 2px;
}

/* Screen-reader-only text */
.hh-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Tap target helper: a ≥ 44 × 44 px hit area around a small control without
   changing its size or the layout. The element must be positioned (relative /
   absolute) and must not use its own ::before. */
.hh-hit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
}
