/* Страницы каталога и товара поверх дизайн-токенов лендинга (тёмная тема, золото). */
.catalog { padding: 140px 0 72px; position: relative; z-index: 1; }
.catalog__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; color: var(--text); }
.catalog__lead { color: var(--text-dim); max-width: 640px; margin: 0 0 32px; }
.catalog__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.catalog-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md, 20px); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.catalog-card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm, 12px); display: block; }
.catalog-card__title { font-size: 1.05rem; margin: 8px 0 0; font-weight: 600; }
.catalog-card__title a { color: var(--text); text-decoration: none; }
.catalog-card__price { margin: 0; color: var(--gold-core, #F5B544); font-weight: 700; }
.catalog-card__soon { margin: 0; color: var(--text-dim); font-style: italic; }
.product-page__inner { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.product-page__main-image { width: 100%; height: auto; border-radius: var(--r-md, 20px); display: block; background: var(--surface); }
.product-page__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.product-page__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.product-page__price { font-size: 1.6rem; font-weight: 700; color: var(--gold-core, #F5B544); margin: 8px 0 16px; }
.product-page__price s { font-size: 1rem; font-weight: 400; color: var(--text-dim); margin-left: 8px; }
.product-page__description { color: var(--text-dim); margin-bottom: 20px; }
.product-page__variants { border: 1px solid var(--hairline); border-radius: var(--r-sm, 12px); margin: 0 0 20px; padding: 12px 16px; }
.product-page__variants legend { padding: 0 6px; color: var(--text-dim); }
.product-page__variant { display: block; padding: 5px 0; }
.product-page__variant.is-unavailable { opacity: .5; }

/* Корзина, оформление и страница заказа */
.cart-lines { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 0; }
.cart-line { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 16px 0; border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 0; }
.cart-line:not(:has(img)) { grid-template-columns: 1fr auto; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-line__info { display: flex; flex-direction: column; gap: 2px; }
.cart-line__info a { color: inherit; font-weight: 600; }
.cart-line__info span { opacity: .7; font-size: .9rem; }
.cart-line__warn { color: #d4543a; font-size: .875rem; }
.cart-line.is-unavailable { opacity: .75; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 10px; overflow: hidden; }
.qty__btn { width: 36px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.2rem; cursor: pointer; }
.qty__btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.cart-line__qty { width: 44px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.cart-line__qty::-webkit-outer-spin-button, .cart-line__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-line__price { font-weight: 700; white-space: nowrap; }
.cart-total { display: flex; justify-content: space-between; gap: 16px; font-size: 1.25rem; margin: 16px 0; }
.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.notice { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, currentColor 10%, transparent); }
.form-errors { color: #d4543a; padding-left: 20px; }
.checkout-page__inner { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.checkout-form label.check { flex-direction: row; align-items: center; gap: 8px; }
.checkout-form input:not([type="checkbox"]), .checkout-form textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; font: inherit; }
.checkout-summary { padding: 20px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 16px; }
.checkout-summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checkout-summary li { display: flex; justify-content: space-between; gap: 12px; }
.order-status { font-size: 1.1rem; font-weight: 700; }
.add-to-cart { display: flex; flex-direction: column; gap: 14px; }
.add-to-cart__row { display: flex; gap: 12px; align-items: center; }
.add-to-cart__qty { width: 80px; padding: 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; font: inherit; }

.delivery-picker { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.delivery-picker legend { padding: 0 6px; }
.delivery-picker__results { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.delivery-picker__results button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.delivery-picker__results button:hover, .delivery-picker__results button:focus-visible { border-color: currentColor; }
.delivery-picker__status { margin: 0; font-size: .9rem; opacity: .85; }

/* Окно корзины и оформления: справа на компьютере, на весь экран на телефоне */
.cart-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.cart-drawer.is-open { visibility: visible; }
.cart-drawer[hidden] { display: none; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s ease; }
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(480px, 100%); display: flex; flex-direction: column; background: var(--bg-rise, var(--bg)); color: var(--text); box-shadow: -12px 0 40px rgba(0, 0, 0, .35); transform: translateX(100%); transition: transform .25s ease; outline: none; }
.cart-drawer.is-open .cart-drawer__panel { transform: none; }
.cart-drawer__close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); background: transparent; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.cart-drawer__close:hover, .cart-drawer__close:focus-visible { border-color: currentColor; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 60px 20px 24px; }
.cart-drawer__body[aria-busy="true"] { opacity: .6; }
.cart-drawer .catalog { padding: 0; }
.cart-drawer .container { width: 100%; max-width: none; padding-inline: 0; }
.cart-drawer .catalog__title { font-size: 1.6rem; }
.cart-drawer .checkout-page__inner { grid-template-columns: 1fr; gap: 24px; }
html.cart-open { overflow: hidden; }
@media (max-width: 760px) { .cart-drawer__panel { width: 100%; height: 100dvh; box-shadow: none; } .cart-drawer__body { padding: 64px 16px 24px; } }
@media (prefers-reduced-motion: reduce) { .cart-drawer__overlay, .cart-drawer__panel { transition: none; } }
.cart-drawer input:not([type="checkbox"]), .cart-drawer textarea, .cart-drawer select { max-width: 100%; box-sizing: border-box; }
.cart-drawer .checkout-form input:not([type="checkbox"]), .cart-drawer .checkout-form textarea { width: 100%; }

.delivery-picker__map { height: 280px; border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.delivery-picker__map[hidden] { display: none; }
.pvz-pin { width: 22px; height: 22px; padding: 0; border-radius: 50% 50% 50% 0; transform: translate(-50%, -100%) rotate(-45deg); border: 2px solid #fff; background: #005bff; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; }
.pvz-pin:hover, .pvz-pin:focus-visible { background: #0044c4; outline: 2px solid #fff; }
.pvz-pin.is-selected { background: #e0a100; }

.product-page__description { white-space: pre-line; }
.product-page__thumbs img { cursor: pointer; }
.product-page__option { margin-bottom: 14px; }
.option-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip { position: relative; cursor: pointer; }
.option-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option-chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 999px; font-size: .95rem; }
.option-chip input:checked + span { border-color: var(--gold-core, #F5B544); color: var(--gold-core, #F5B544); background: rgba(245, 181, 68, .08); }
.option-chip input:focus-visible + span { outline: 2px solid var(--gold-core, #F5B544); outline-offset: 2px; }
.option-chip.is-unavailable span { opacity: .45; }

.pvz-cluster { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; transform: translate(-50%, -50%); border: 2px solid #fff; background: #005bff; color: #fff; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; }
.pvz-cluster:hover, .pvz-cluster:focus-visible { background: #0044c4; outline: 2px solid #fff; }
.delivery-picker__cities { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.delivery-picker__cities button { width: 100%; text-align: left; }

/* Вкусы на главной: переключатель фасовки, кнопки, окно «В корзину» */
.flavor-sizes { justify-content: center; margin: 0 auto var(--s5, 32px); display: flex; flex-wrap: wrap; gap: 8px; }
.flavor[hidden] { display: none; }
.flavor__price { position: relative; z-index: 1; font-size: 20px; margin: 0 0 var(--s3, 16px); color: var(--gold, #e8a04c); }
.flavor__actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.flavor__actions .btn { flex: 1 1 120px; text-align: center; }
.btn--ghost { background: transparent; border: 1px solid var(--gold, #e8a04c); color: var(--text, #f5eee3); text-decoration: none; padding: 12px 18px; border-radius: 999px; display: inline-block; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(232, 160, 76, .14); }
.flavor-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.flavor-modal[hidden] { display: none; }
.flavor-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.flavor-modal__panel { position: relative; width: min(420px, 100%); background: var(--surface, #1c160f); border: 1px solid var(--hairline-gold, rgba(232, 160, 76, .3)); border-radius: 20px; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.flavor-modal__close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; color: inherit; cursor: pointer; }
.flavor-modal__title { margin: 0; font-size: 24px; }
.flavor-modal__sizes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flavor-modal__sizes legend { width: 100%; margin-bottom: 6px; color: var(--text-dim, #a89c88); }
.flavor-modal__qty { display: flex; flex-direction: column; gap: 6px; }
.flavor-modal__qty input { width: 100px; padding: 10px; border-radius: 10px; border: 1px solid var(--hairline, #2a2118); background: transparent; color: inherit; font-size: 16px; }
.flavor-modal__price { margin: 0; font-size: 22px; color: var(--gold, #e8a04c); }
html.flavor-modal-open { overflow: hidden; }

/* Оформление: куда доставить, получатель, оплата */
.delivery-picker__modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.delivery-picker__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.delivery-picker__tabs .option-chip { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.delivery-picker__tabs .option-chip[aria-pressed="true"] span { background: var(--gold-core, #f5b544); border-color: var(--gold-core, #f5b544); color: var(--text-on-gold, #100b06); }
.delivery-picker__panel[hidden], .delivery-picker__filter[hidden], .delivery-picker__tabs [hidden] { display: none; }
.delivery-picker__results, .delivery-picker__cities { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow: auto; }
.delivery-picker__results button, .delivery-picker__cities button { width: 100%; text-align: left; padding: 10px 12px; }
.delivery-picker__map { height: 360px; border-radius: 12px; overflow: hidden; margin: 8px 0; }
.checkout-contacts { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.checkout-contacts legend, .delivery-picker legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.checkout-payment { margin: 16px 0 8px; }
.checkout-payment__note { margin: 0 0 8px; color: var(--text-dim, #a89c88); }
.checkout-payment__methods { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.checkout-payment__methods li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline-gold, rgba(232,160,76,.3)); font-size: 14px; }

.cart-head { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 8px; }
.cart-head .catalog__title { margin: 0; }
.cart-head__refresh, .cart-line__remove { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .75; }
.cart-head__refresh:hover, .cart-line__remove:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.cart-line__controls { display: flex; align-items: center; gap: 8px; }
.cart-line__variant { margin: 4px 0; padding: 8px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; font: inherit; max-width: 100%; }
.cart-line__variant option { color: #111; }
.cart-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cart-actions__checkout { width: 100%; text-align: center; box-sizing: border-box; }
.cart-actions__continue { align-self: center; color: inherit; opacity: .8; text-decoration: none; padding: 8px; }
.cart-actions__continue:hover { opacity: 1; text-decoration: underline; }
.cart-drawer__close { display: flex; align-items: center; justify-content: center; padding: 0 0 4px; line-height: 0; }
.cart-drawer__body { padding-top: 10px !important; --drawer-pad: 20px; display: flex; flex-direction: column; }
.cart-drawer .cart-head { padding-right: 56px; }

.cart-line { grid-template-columns: 56px 1fr auto; column-gap: 12px; row-gap: 10px; align-items: start; }
.cart-line:not(:has(img)) { grid-template-columns: 1fr auto; }
.cart-line img { width: 56px; height: 56px; }
.cart-line__info a { font-size: 1rem; line-height: 1.3; }
.cart-line .cart-line__price { grid-column: -2; grid-row: 1; }
.cart-line__controls { grid-column: 1 / -1; grid-row: 2; }
.cart-line__select { position: relative; flex: 1; min-width: 0; }
.cart-line__select::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; opacity: .8; }
.cart-line__variant { width: 100%; margin: 0; padding: 10px 36px 10px 12px; -webkit-appearance: none; appearance: none; }
.cart-line__controls .qty { margin-left: auto; }
@media (max-width: 760px) { .cart-drawer__body { --drawer-pad: 16px; } }
.cart-head { padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); margin-bottom: 12px; }
.cart-drawer .cart-head { margin-inline: calc(var(--drawer-pad) * -1); padding-inline: var(--drawer-pad) 56px; }
.cart-line__flavor { flex: 1; min-width: 0; padding: 0 4px; font-size: 1rem; }
.cart-line:last-child { border-bottom: 0; }
.cart-total { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding-top: 16px; }
.cart-drawer__body > .platform-section-cart-main { flex: 1; display: flex; flex-direction: column; }
.cart-drawer__body > .platform-section-cart-main > .cart-page { flex: 1; display: flex; flex-direction: column; }
.cart-drawer__body > .platform-section-cart-main > .cart-page > .container { flex: 1; display: flex; flex-direction: column; }
.cart-drawer__body > .platform-section-cart-main > .cart-page > .container > form { flex: 1; display: flex; flex-direction: column; }
.cart-drawer__body > .platform-section-cart-main > .cart-page .cart-total { margin-top: auto; }
.cart-line__controls .qty, .cart-line__variant { height: 44px; box-sizing: border-box; }
.cart-line__variant { padding-block: 0; }
.cart-line__qty { padding-block: 0; }

.cart-line__select { flex: 0 1 auto; }
.cart-line__select::after { position: static; display: inline-block; margin: 0 0 4px 8px; transform: rotate(45deg); }
.cart-line__select { display: inline-flex; align-items: center; }
.cart-line__variant { width: auto; border: 0; background: transparent; padding: 0 0 0 4px; cursor: pointer; max-width: 100%; }
.cart-line__controls .qty { margin-left: auto; }
.cart-line__select::after { width: 0; height: 0; margin: 0 0 0 6px; border: 5px solid transparent; border-top-color: currentColor; border-bottom-width: 0; transform: none; opacity: .85; }
.cart-line__variant { field-sizing: content; }
.cart-line__select { border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent); padding-bottom: 2px; }
.cart-line__select:hover, .cart-line__select:focus-within { border-bottom-color: currentColor; }
.cart-line__select { border-bottom: 0; padding-bottom: 0; }
.cart-line__variant { font-style: italic; }
.cart-line__variant:focus, .cart-line__variant:focus-visible { outline: none; box-shadow: none; }
.cart-line__select:focus-within .cart-line__variant { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cart-line__variant { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.delivery-picker { border: 0; padding: 0; }
.delivery-picker__field { position: relative; display: flex; flex-direction: column; }
.delivery-picker__field .delivery-picker__cities { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 4px 0 0; padding: 6px; max-height: 280px; overflow: auto; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--bg-rise, var(--bg, #14100b)), #fff 9%); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.delivery-picker__field .delivery-picker__cities:empty { display: none; }
.delivery-picker__field .delivery-picker__cities button { border: 0; background: transparent; border-radius: 8px; }
.delivery-picker__field .delivery-picker__cities button:hover, .delivery-picker__field .delivery-picker__cities button:focus-visible { background: color-mix(in srgb, currentColor 10%, transparent); }
.cart-head__back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -10px; color: inherit; opacity: .8; }
.cart-head__back::before { content: ''; width: 11px; height: 11px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateX(3px) rotate(45deg); }
.cart-head__back:hover { opacity: 1; }
.delivery-picker__mapwrap { position: relative; margin: 8px 0; }
.delivery-picker__mapwrap .delivery-picker__map { margin: 0; }
.delivery-picker__map[hidden] ~ .map-zoom { display: none; }
.map-zoom { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); z-index: 5; }
.map-zoom button { width: 38px; height: 38px; border: 0; background: #fff; color: #111; font-size: 22px; line-height: 1; cursor: pointer; }
.map-zoom button + button { border-top: 1px solid #ddd; }
.map-zoom button:hover { background: #f0f0f0; }

.checkout-form__submit { width: 100%; box-sizing: border-box; text-align: center; }
.checkout-form .cart-actions__continue { align-self: center; }
.delivery-picker__found { margin: 8px 0 0; font-size: .9rem; opacity: .85; }
.delivery-picker__found[hidden] { display: none; }
.delivery-picker.is-map .delivery-picker__filter { display: none; }
.delivery-picker__chosen { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--gold-core, #f5b544); }
.delivery-picker__chosen[hidden] { display: none; }
.delivery-picker__chosen span { opacity: .85; font-size: .95rem; }
.delivery-picker__change { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--gold-core, #f5b544); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.delivery-picker.is-chosen .delivery-picker__panel { display: none; }
.delivery-picker__status:empty { display: none; }
.pvz-popup { position: relative; transform: translate(-50%, calc(-100% - 30px)); display: flex; flex-direction: column; gap: 6px; width: 240px; box-sizing: border-box; padding: 10px 30px 10px 12px; font-size: .82rem; line-height: 1.3; border-radius: 10px; background: #fff; color: #111; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.pvz-popup[hidden] { display: none; }
.pvz-popup__close { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: #555; font-size: 20px; line-height: 1; cursor: pointer; }
.pvz-popup__select { align-self: flex-start; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--gold-core, #f5b544); color: #100b06; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }

.delivery-picker__results[hidden], .delivery-picker__cities[hidden] { display: none; }
.delivery-picker__map .maplibregl-ctrl-attrib { font-size: 10px; }
.pvz-popup::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom-width: 0; border-top-color: #fff; }
.legal-doc__meta { opacity: .6; margin: 0 0 24px; }
.legal-doc__h { font-size: 1.2rem; margin: 32px 0 10px; }
.legal-doc__p { margin: 0 0 12px; line-height: 1.65; opacity: .92; }
.checkout-form label.check a { color: var(--gold-core, #f5b544); text-decoration: underline; text-underline-offset: 3px; }
.delivery-picker__chosen { gap: 8px; }
.delivery-picker__chosen strong { font-size: .95rem; font-weight: 500; line-height: 1.35; }
.delivery-picker__chosen span { font-size: 1.1rem; font-weight: 600; opacity: 1; }

.checkout-totals { margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.checkout-totals div { display: flex; justify-content: space-between; gap: 12px; }
.checkout-totals dt { opacity: .75; }
.checkout-totals dd { margin: 0; font-weight: 600; }
.checkout-totals + .checkout-payment { margin-top: 12px; }

/* Страница заказа: спасибо и две колонки на десктопе (слева состав и сумма, справа доставка и контакты) */
.order-thanks { margin: 0 0 28px; padding: 20px 24px; border: 1px solid var(--hairline-gold, rgba(232, 160, 76, .3)); border-radius: 16px; background: rgba(232, 160, 76, .08); }
.order-thanks__title { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; }
.order-thanks__text { margin: 0; color: var(--text-dim, #a89c88); line-height: 1.5; }
.order-thanks__text a { color: var(--gold, #e8a04c); text-decoration: underline; }
.order-grid { display: grid; gap: 0 48px; }
.order-grid__side h2:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .order-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}

/* Подпись платформы внизу корзины */
.powered-by { margin: 12px 0 0; text-align: center; font-size: 13px; line-height: 1.4; }
.powered-by a { color: #8a8378; text-decoration: none; }
.powered-by a:hover { color: #b3ab9c; text-decoration: underline; }

/* Запасная карта (Leaflet): метки в нулевой обёртке, как у MapLibre */
.pvz-leaflet-icon { background: none; border: 0; overflow: visible; }
.delivery-picker__map.leaflet-container { font: inherit; background: #e8e8e4; }
.delivery-picker__map .leaflet-control-attribution { font-size: 10px; }
.map-zoom { z-index: 1000; } /* выше панелей Leaflet (до 700), иначе кнопки +/− скрыты под картой */

/* Вход по коду и «Мои заказы» */
.login-page, .account-page { padding-block: clamp(32px, 6vw, 72px); }
.login-steps { margin: 0 0 24px; padding-left: 20px; display: grid; gap: 14px; }
.login-code { display: grid; gap: 12px; max-width: 280px; }
.login-code__input { font-size: 32px; letter-spacing: .5em; text-align: center; padding: 12px; width: 100%; box-sizing: border-box; }
.login-soon { margin-top: 18px; opacity: .6; font-size: 14px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-logout { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; text-decoration: underline; }
.account-profile { margin: 0 0 28px; display: grid; gap: 8px; color: #fff; }
.account-profile div { display: flex; gap: 12px; flex-wrap: wrap; }
.account-profile dt { min-width: 70px; opacity: .6; }
.account-profile dd { margin: 0; font-weight: 600; color: #fff; }
.account-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.account-order { padding: 20px; border: 1px solid var(--hairline, rgba(255,255,255,.15)); border-radius: 16px; display: grid; gap: 14px; }
.account-order__head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.account-order__number { display: block; font-weight: 700; font-size: 18px; color: inherit; text-decoration: none; }
.account-order__date { display: block; opacity: .65; font-size: 14px; margin-top: 2px; }
.account-order__status { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--hairline-gold, rgba(232,160,76,.4)); font-size: 13px; white-space: nowrap; }
.account-order__items { list-style: none; margin: 0; padding: 0; }
.account-order__items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hairline, rgba(255,255,255,.12)); }
.account-order__items li:first-child { border-top: 0; padding-top: 0; }
.account-item__info { display: grid; gap: 2px; }
.account-item__info span { opacity: .65; font-size: 14px; }
.account-item__price { display: grid; gap: 2px; text-align: right; white-space: nowrap; }
.account-item__price strong { font-size: 18px; font-weight: 800; }
.account-item__price span { opacity: .65; font-size: 14px; }
.account-order__delivery p { margin: 0 0 4px; font-size: 15px; }
.account-order__sums { border-top: 1px solid var(--hairline, rgba(255,255,255,.12)); padding-top: 12px; display: grid; gap: 6px; }
.account-order__sums p { margin: 0; display: flex; justify-content: space-between; gap: 16px; }
.account-order__total { font-size: 18px; color: #fff; }
.account-order__total strong { color: #fff; }
.account-order__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.account-order__actions form { margin: 0; }
.account-order__more { opacity: .7; font-size: 14px; }

.catalog.login-page, .catalog.account-page { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.login-steps li a.btn { margin-top: 10px; display: inline-block; }
.login-code__input { background: transparent; color: inherit; border: 1px solid var(--hairline-gold, rgba(232, 160, 76, .4)); border-radius: 12px; }
.login-code__input:focus { outline: 2px solid var(--gold-core, #F5B544); outline-offset: 2px; }

/* Поле телефона с флагом (intl-tel-input): пути к флагам и тёмная тема */
.iti { width: 100%; --iti-path-flags-1x: url("/vendor/intl-tel-input/img/flags.webp"); --iti-path-flags-2x: url("/vendor/intl-tel-input/img/flags@2x.webp"); --iti-path-globe-1x: url("/vendor/intl-tel-input/img/globe.webp"); --iti-path-globe-2x: url("/vendor/intl-tel-input/img/globe@2x.webp"); --iti-dropdown-bg: #1c160f; --iti-border-color: rgba(232, 160, 76, .35); --iti-hover-color: rgba(232, 160, 76, .14); --iti-dialcode-color: #a89c88; --iti-arrow-color: #a89c88; }
.iti input.iti__tel-input { width: 100%; box-sizing: border-box; }
.iti__country-container { z-index: 2; }
.iti__dropdown-content { color: #f5eee3; border-radius: 12px; overflow: hidden; }
.iti__search-input { background: transparent; color: #f5eee3; border-bottom: 1px solid rgba(232, 160, 76, .35); }
.iti__country-name { color: #f5eee3; }
.iti--inline-dropdown .iti__dropdown-content { box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }

/* Код входа: четыре ячейки с рамками */
.login-code { max-width: none; }
.login-code__label { margin: 0; }
.otp__cells { display: flex; gap: 12px; }
.otp__cell { width: 64px; height: 76px; box-sizing: border-box; padding: 0; text-align: center; font-size: 34px; font-weight: 700; color: inherit; background: transparent; border: 1.5px solid var(--hairline-gold, rgba(232, 160, 76, .4)); border-radius: 14px; caret-color: var(--gold-core, #F5B544); }
.otp__cell:focus { outline: none; border-color: var(--gold-core, #F5B544); box-shadow: 0 0 0 3px rgba(245, 181, 68, .25); }
@media (max-width: 380px) { .otp__cell { width: 54px; height: 66px; font-size: 28px; } .otp__cells { gap: 8px; } }
.login-code { width: max-content; max-width: 100%; }
.login-code .btn { width: 100%; }
.account-page > .container, .login-page > .container { padding-top: 28px; }

/* «Мы любим обычную еду…»: на том же светлом фоне, что и весь блок истории */
.history__wide { --text: #241A10; --text-dim: #6E5F4A; background: none; padding: 0; border-radius: 0; box-shadow: none; clip-path: none; isolation: auto; color: var(--text-dim); max-width: 760px; }
.history__wide::before { content: none; }
.history__wide h3 { color: var(--text); margin-top: 0; }
.history__wide:last-child { margin-bottom: 0; }

/* «Мои заказы»: шапка заказа белая, крупнее, с разделителем */
.account-order__head { padding-bottom: 14px; border-bottom: 1px solid var(--hairline, rgba(255,255,255,.15)); color: #fff; }
.account-order__number { font-size: 22px; color: #fff; }
.account-order__date { font-size: 17px; opacity: 1; color: #fff; margin-top: 4px; }

/* Вход по коду на почту */
.login-lead { margin-bottom: 18px; }
.login-email { margin-top: 28px; display: grid; gap: 10px; max-width: 360px; }
.login-email__input { padding: 14px 16px; font-size: 16px; color: inherit; background: transparent; border: 1px solid var(--hairline-gold, rgba(232,160,76,.4)); border-radius: 12px; width: 100%; box-sizing: border-box; }
.login-email__button { border: 1px solid var(--gold-core, #F5B544); background: transparent; color: var(--gold-core, #F5B544); }

/* Промокод на оформлении */
.promo-field { display: flex; flex-direction: column; gap: 6px; }
.promo-field__row { display: flex; gap: 8px; }
.promo-field__row input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-field__button { white-space: nowrap; }
.promo-field__note { margin: 0; min-height: 1.2em; font-size: .9rem; }
.promo-field__note.is-ok { color: #3e8e41; }
.promo-field__note.is-error { color: #c0392b; }
.cart-line__old { opacity: .5; margin-right: 6px; }

/* Акции в корзине: подсказки «добавьте ещё…», подарочная позиция */
.cart-hint { margin: 12px 0 0; padding: 10px 14px; border: 1px dashed currentColor; border-radius: 10px; font-size: .95em; opacity: .9; }
.cart-hint--ok { border-style: solid; }
.cart-line--gift .cart-line__gift { color: var(--color-accent, #b8860b); font-weight: 600; }

/* Кнопка «Вернуться в чат» нужна только в Mini App Telegram: скрипт показывает её сам, иначе стили кнопки перебивают атрибут hidden */
[data-miniapp-close][hidden] { display: none !important; }

/* Своя доставка: способ получения в оформлении заказа */
.own-delivery { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.own-delivery legend { padding: 0 6px; }
.own-delivery__panel { display: flex; flex-direction: column; gap: 8px; }
.own-delivery__panel[hidden] { display: none; }
.own-delivery__info { margin: 0; font-size: .9em; opacity: .85; }

/* Окно корзины и оформления: заголовок не прокручивается вместе с содержимым, вкус выбирается отдельной строкой */
.cart-drawer .cart-head { position: sticky; top: -10px; z-index: 3; background: var(--bg-rise, var(--bg, #14100b)); margin-top: -10px; padding-top: 10px; }
/* Вкус: подпись переносится по словам, стрелка сбоку, ширина по содержимому; выпадающий список лежит поверх прозрачным. */
.cart-line__select { position: relative; display: flex; align-items: flex-start; gap: 6px; flex: 0 1 auto; min-width: 0; }
.cart-line__select::after { content: ''; flex: none; position: static; width: 0; height: 0; margin: .55em 0 0; border: 5px solid transparent; border-top-color: currentColor; border-bottom-width: 0; transform: none; opacity: .85; }
.cart-line__label { min-width: 0; font-style: italic; line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cart-line__select .cart-line__variant { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; field-sizing: fixed; }
.cart-line__controls .qty { flex: none; }
