/* =========================
   ORDER SNACKS PAGE
========================= */

.order-snacks-page {
    width: 100%;
    min-height: calc(100vh - 96px);
    background: #f3f2ee;
    color: #050505;
}

.order-snacks-page__inner {
    width: min(100% - 32px, 1540px);
    margin: 0 auto;
    padding: clamp(30px, 3vw, 52px) 0 clamp(58px, 5vw, 86px);
}

/* =========================
   HEAD
========================= */

.order-snacks-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
    gap: clamp(34px, 4vw, 72px);
    align-items: end;
    margin-bottom: clamp(30px, 3vw, 46px);
    padding-bottom: clamp(24px, 2.2vw, 34px);
    border-bottom: 1px solid rgba(5, 5, 5, 0.16);
}

.order-snacks-head__left {
    min-width: 0;
}

.order-snacks-head__accent {
    width: 48px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: clamp(14px, 1.2vw, 22px);
}

.order-snacks-head__accent span {
    width: 9px;
    height: 22px;
    display: block;
    background: #ff2118;
    transform: skewX(-16deg);
}

.order-snacks-head h1 {
    max-width: 880px;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(56px, 5.6vw, 108px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.088em;
    text-transform: uppercase;
    transform: scaleX(0.96) scaleY(1.12);
    transform-origin: left bottom;
}

.order-snacks-head__left p {
    max-width: 620px;
    margin: clamp(22px, 1.6vw, 28px) 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(14px, 0.95vw, 17px);
    font-weight: 800;
    line-height: 1.34;
}

.order-snacks-head__info {
    min-width: 0;
    padding: clamp(18px, 1.7vw, 26px);
    border: 1px solid rgba(5, 5, 5, 0.16);
    background: rgba(255, 255, 255, 0.12);
}

.order-snacks-head__info span {
    display: block;
    margin-bottom: 10px;
    color: rgba(5, 5, 5, 0.54);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.order-snacks-head__info strong {
    display: block;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(26px, 2vw, 38px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.order-snacks-head__info p {
    margin: 14px 0 0;
    color: rgba(5, 5, 5, 0.64);
    font-size: clamp(12px, 0.84vw, 14px);
    font-weight: 800;
    line-height: 1.35;
}

/* =========================
   LAYOUT
========================= */

.order-snacks-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
    gap: clamp(34px, 4vw, 66px);
    align-items: start;
}

.order-snacks-main {
    min-width: 0;
}

/* =========================
   PRODUCT GRID
========================= */

.order-snacks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 2.2vw, 36px);
}

@media (min-width: 1380px) {
    .order-snacks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(30px, 3vw, 52px);
    }
}

/* =========================
   PRODUCT CARD
========================= */

.order-snacks-card {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(200px, 0.42fr) minmax(0, 1fr);
    gap: clamp(18px, 1.7vw, 28px);
    padding: 0 0 clamp(22px, 2vw, 34px);
    border-bottom: 1px solid rgba(5, 5, 5, 0.14);
}

.order-snacks-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #050505;
}

.order-snacks-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: none;
    transition: transform 0.28s ease;
}

.order-snacks-card:hover .order-snacks-card__image img {
    transform: scale(1.025);
}

.order-snacks-card__image span {
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: rgba(255, 255, 255, 0.16);
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 0.9;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.order-snacks-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-right: clamp(6px, 0.9vw, 14px);
}

.order-snacks-card__top {
    min-width: 0;
}

.order-snacks-card__content h2 {
    max-width: 420px;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(25px, 1.75vw, 36px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.order-snacks-card__category {
    margin: 9px 0 0;
    color: rgba(5, 5, 5, 0.52);
    font-size: clamp(11px, 0.75vw, 13px);
    font-weight: 800;
    line-height: 1.2;
}

.order-snacks-card__description {
    max-width: 440px;
    margin: clamp(14px, 1.1vw, 18px) 0 0;
    color: rgba(5, 5, 5, 0.78);
    font-size: clamp(12px, 0.82vw, 15px);
    font-weight: 800;
    line-height: 1.35;
}

.order-snacks-card__bottom {
    width: min(100%, 280px);
    margin-top: auto;
    padding-top: clamp(16px, 1.4vw, 22px);
}

.order-snacks-card__price {
    margin: 0;
    color: #050505;
    font-size: clamp(18px, 1.25vw, 25px);
    font-weight: 900;
    line-height: 1;
}

.order-snacks-card__stock {
    margin: 9px 0 0;
    color: #249346;
    font-size: clamp(10px, 0.72vw, 12px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.order-snacks-card__stock--empty {
    color: #ff2118;
}

.order-snacks-card__bottom form {
    margin: 0;
}

.order-snacks-card__button {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(12px, 1vw, 16px);
    padding: 0 16px;
    border: 1px solid #ff2118;
    border-radius: 0;
    background: #ff2118;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(9px, 0.72vw, 12px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.order-snacks-card__button:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.order-snacks-card__button--disabled,
.order-snacks-card__button--disabled:hover {
    border-color: rgba(5, 5, 5, 0.22);
    background: transparent;
    color: rgba(5, 5, 5, 0.42);
    cursor: default;
}

/* =========================
   SUMMARY
========================= */

.order-snacks-summary {
    position: sticky;
    top: 112px;
    min-width: 0;
    padding: clamp(20px, 1.8vw, 26px);
    border: 1px solid rgba(5, 5, 5, 0.16);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0.05) 100%
        );
}

.order-snacks-summary h2 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(24px, 1.8vw, 36px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em;
    text-transform: uppercase;
}

.order-snacks-summary__line {
    width: 100%;
    height: 2px;
    margin: 18px 0 22px;
    background: #050505;
}

.order-snacks-summary__section {
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.13);
}

.order-snacks-summary__section p {
    margin: 12px 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(12px, 0.84vw, 14px);
    font-weight: 800;
    line-height: 1.35;
}

.order-snacks-summary__ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.order-snacks-summary__ticket span,
.order-snacks-summary__label {
    color: #050505;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.order-snacks-summary__ticket strong {
    color: #050505;
    font-size: clamp(15px, 1vw, 18px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.order-snacks-summary__items {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.order-snacks-summary__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid rgba(5, 5, 5, 0.1);
}

.order-snacks-summary__item-info {
    min-width: 0;
}

.order-snacks-summary__item-info strong {
    display: block;
    color: #050505;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.order-snacks-summary__item-info span {
    display: block;
    margin-top: 5px;
    color: rgba(5, 5, 5, 0.52);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.order-snacks-summary__item form {
    margin: 0;
}

.order-snacks-summary__remove {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(5, 5, 5, 0.22);
    border-radius: 0;
    background: transparent;
    color: #050505;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.order-snacks-summary__remove:hover {
    border-color: #ff2118;
    background: #ff2118;
    color: #ffffff;
}

.order-snacks-summary__empty-text {
    margin: 14px 0 0 !important;
    color: rgba(5, 5, 5, 0.52) !important;
}

.order-snacks-summary__total {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.13);
}

.order-snacks-summary__total span {
    color: #050505;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.order-snacks-summary__total strong {
    color: #050505;
    font-size: clamp(25px, 1.7vw, 34px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.order-snacks-summary__pay,
.order-snacks-summary__back {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 0 22px;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: clamp(11px, 0.82vw, 14px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.order-snacks-summary__pay {
    border: 1px solid #ff2118;
    background: #ff2118;
    color: #ffffff;
}

.order-snacks-summary__pay:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.order-snacks-summary__back {
    margin-top: 14px;
    border: 1px solid rgba(5, 5, 5, 0.36);
    background: transparent;
    color: #050505;
}

.order-snacks-summary__back:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.order-snacks-summary__pay span,
.order-snacks-summary__back span {
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

/* =========================
   EMPTY
========================= */

.order-snacks-empty {
    padding: clamp(28px, 3vw, 44px);
    border: 1px solid rgba(5, 5, 5, 0.14);
    background: rgba(255, 255, 255, 0.22);
}

.order-snacks-empty h2 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(38px, 3vw, 58px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.order-snacks-empty p {
    max-width: 540px;
    margin: 14px 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
    .order-snacks-head {
        grid-template-columns: 1fr;
    }

    .order-snacks-head__info {
        max-width: 520px;
    }

    .order-snacks-layout {
        grid-template-columns: 1fr;
    }

    .order-snacks-summary {
        position: static;
    }
}

@media (max-width: 760px) {
    .order-snacks-page__inner {
        width: min(100% - 18px, 1540px);
        padding-top: 26px;
        padding-bottom: 52px;
    }

    .order-snacks-head h1 {
        font-size: clamp(42px, 13vw, 68px);
        transform: none;
        letter-spacing: -0.075em;
    }

    .order-snacks-head__left p {
        font-size: 13px;
    }

    .order-snacks-card {
        grid-template-columns: 42% minmax(0, 1fr);
        gap: 14px;
    }

    .order-snacks-card__content {
        padding-right: 0;
    }

    .order-snacks-card__content h2 {
        font-size: 22px;
    }

    .order-snacks-card__description {
        font-size: 11px;
    }

    .order-snacks-card__bottom {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .order-snacks-page__inner {
        width: min(100% - 14px, 1540px);
    }

    .order-snacks-head__accent {
        width: 42px;
        gap: 6px;
        margin-bottom: 14px;
    }

    .order-snacks-head__accent span {
        width: 8px;
        height: 19px;
    }

    .order-snacks-head h1 {
        font-size: 38px;
    }

    .order-snacks-head__info {
        padding: 18px;
    }

    .order-snacks-card {
        grid-template-columns: 1fr;
    }

    .order-snacks-summary {
        padding: 18px;
    }

    .order-snacks-summary__pay,
    .order-snacks-summary__back {
        min-height: 50px;
        padding: 0 18px;
    }
}