/* ==========================================================================
   Fresh storefront
   ========================================================================== */

:root {
    --bg: #ffffff;
    --text: #1c1c1e;
    --muted: #8e8e93;
    --soft: #f3f3f4;
    --soft-2: #e8e8ea;
    --line: #ededef;
    --dark: #2b2b2b;
    --navy: #F3EBD8;
    --cream: #133F2C;
    --purple: #C39A3E;
    --green: #22a447;
    --red: #ff3b30;

    --ease: cubic-bezier(.2, .7, .2, 1);
    --spring: cubic-bezier(.34, 1.45, .64, 1);
    --cart-w: 400px;
    --hdr-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
[hidden] { display: none !important; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.4 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.i { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.flip { display: inline-flex; transform: scaleX(-1); }
body.lock { overflow: hidden; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.page { transition: margin-right .45s var(--ease); }

/* ---------- header ---------- */

.hdr { position: sticky; top: 0; z-index: 40; height: var(--hdr-h); }
.hdr::before {
    content: "";
    position: absolute;
    inset: 0 0 -10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .78) 18%, rgba(255, 255, 255, .78) 82%, rgba(255, 255, 255, 0)),
                linear-gradient(180deg, rgba(210, 222, 236, .35), rgba(255, 255, 255, 0));
    backdrop-filter: blur(18px) saturate(1.8);
    -webkit-backdrop-filter: blur(18px) saturate(1.8);
    -webkit-mask-image: linear-gradient(#000 80%, transparent);
    mask-image: linear-gradient(#000 80%, transparent);
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}
.hdr.is-scrolled::before { opacity: 1; }
.hdr__main, .hdr__cats {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.hdr__cats { opacity: 0; transform: translateY(-60%); pointer-events: none; }
.hdr.is-cats .hdr__main { opacity: 0; transform: translateY(-60%); pointer-events: none; }
.hdr.is-cats .hdr__cats { opacity: 1; transform: none; pointer-events: auto; }
.hdr__side { flex: 1; display: flex; align-items: center; gap: 16px; }
.hdr__side--end { justify-content: flex-end; }

.hbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    min-width: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--soft);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.hbtn:hover { background: var(--soft-2); }
.hbtn:active { transform: scale(.94); }
.hbtn--icon { padding: 0; }
.hbtn--icon .i { width: 24px; height: 24px; }
.dd-wrap.is-open > .hbtn { background: #111; color: #fff; }
.dd-wrap.is-open > .hbtn .i { animation: spin-in .5s var(--spring); }

.cart-btn.has-items { background: var(--dark); color: #fff; }
.cart-btn.has-items:hover { background: #111; }
.cart-btn.bump { animation: bump .5s var(--spring); }

.dd-wrap { position: relative; }
.dd {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 5;
    min-width: 220px;
    padding: 6px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.96);
    transform-origin: top left;
    transition: opacity .2s var(--ease), transform .3s var(--spring), visibility 0s linear .3s;
}
.dd-wrap.is-open .dd { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .35s var(--spring); }
.dd__item { display: block; width: 100%; padding: 11px 14px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 15.5px; transition: background-color .15s; }
.dd__item:hover { background: var(--soft); }

.logo { display: flex; align-items: center; gap: 6px; color: #133F2C; }
.logo__bird { width: 46px; height: 40px; transition: transform .5s var(--spring); }
.logo:hover .logo__bird { transform: translateY(-3px) rotate(-6deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(90deg, #133F2C, #1E5A40);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.logo__text small { margin-top: 3px; font-size: 7.5px; letter-spacing: .32em; color: #7f7f8a; text-transform: uppercase; }

/* ---------- notices ---------- */

.main { padding-top: 16px; }
.notice-bar { margin-bottom: 20px; padding: 14px 18px; border-radius: 16px; background: #fff7d1; font-size: 15px; animation: fade-up .5s var(--ease) both; }
.notice-bar--warn { background: #fff1f0; color: #c4271d; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; aspect-ratio: 2360 / 710; border-radius: 32px; background: var(--navy); animation: fade-up .6s var(--ease) both; }
.hero__track { display: flex; height: 100%; transition: transform .7s var(--ease); }
.hero__slide { flex: 0 0 100%; height: 100%; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__dots { position: absolute; left: 50%; bottom: 16px; display: flex; gap: 6px; transform: translateX(-50%); }
.hero__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .5); transition: width .35s var(--ease), background-color .3s; }
.hero__dots button.is-active { width: 22px; background: #fff; }

.hero__default {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 5.4%;
    background: repeating-conic-gradient(from 0deg at 80% 55%, rgba(255, 255, 255, .045) 0 5deg, rgba(255, 255, 255, 0) 5deg 10deg), var(--navy);
}
.hero__text { position: relative; z-index: 1; }
.hero__pill { display: inline-block; padding: 8px 14px; border-radius: 12px; background: var(--cream); color: var(--navy); font-size: clamp(14px, 1.7vw, 21px); font-weight: 600; animation: fade-up .6s var(--ease) .15s both; }
.hero__title { margin: clamp(18px, 4vw, 56px) 0 0; font-family: "Unbounded", "Inter", sans-serif; font-size: clamp(20px, 3.4vw, 42px); font-weight: 800; line-height: 1.16; color: var(--cream); animation: fade-up .7s var(--ease) .25s both; }
.hero__bird { position: absolute; right: 4%; bottom: -8%; height: 112%; width: auto; color: var(--cream); animation: bird-float 6s ease-in-out infinite; }
.hero__bird .bird__wing { transform-origin: 42% 52%; animation: wing 2.8s ease-in-out infinite; }

/* ---------- mode + address ---------- */

.mode-row { display: grid; grid-template-columns: 365px minmax(0, 1fr); gap: 16px; margin: 40px 0; animation: fade-up .6s var(--ease) .1s both; }

.seg {
    position: relative;
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    height: 64px;
    padding: 5px;
    border-radius: 18px;
    background: var(--soft);
    --i: 0;
    --n: 2;
}
.seg__btn { position: relative; z-index: 1; border: 0; background: none; font-size: 18px; font-weight: 500; color: #3c3c43; transition: color .3s var(--ease); }
.seg__btn.is-active { color: var(--text); }
.seg__btn:disabled { opacity: .35; cursor: not-allowed; }
.seg__pill {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc((100% - 10px) / var(--n));
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transform: translateX(calc(var(--i) * 100%));
    transition: transform .45s var(--spring);
}
.seg--sm { height: 56px; border-radius: 16px; }
.seg--sm .seg__btn { padding: 0 6px; font-size: 14.5px; white-space: nowrap; }
.seg--sm .seg__pill { border-radius: 12px; }
.seg--dark .seg__pill { background: var(--dark); box-shadow: none; }
.seg--dark .seg__btn.is-active { color: #fff; }

.place-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    padding: 0 22px;
    border: 0;
    border-radius: 18px;
    background: var(--soft);
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.place-btn:hover { background: var(--soft-2); }
.place-btn:active { transform: scale(.99); }
.place-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-btn .i:first-child { width: 20px; height: 20px; }
.place-btn .i:last-child { width: 18px; height: 18px; stroke-width: 2.4; transition: transform .25s var(--ease); }
.place-btn:hover .i:last-child { transform: translateX(3px); }
.place-btn--sm { height: 58px; justify-content: center; border-radius: 16px; font-size: 15px; }
.place-btn--sm span { flex: none; max-width: 90%; }

/* ---------- category chips ---------- */

.chips { display: flex; gap: 16px; margin-bottom: 56px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--soft); font-size: 17px; font-weight: 500; white-space: nowrap; transition: background-color .25s var(--ease), transform .2s var(--ease); }
.chip:hover { background: var(--soft-2); }
.chip:active { transform: scale(.95); }
.chip.is-active { background: #e2e2e5; }
.chips--hdr { flex: 1; gap: 8px; margin: 0; }
.chips--hdr .chip { height: 46px; font-size: 16px; background: transparent; }
.chips--hdr .chip.is-active { background: rgba(0, 0, 0, .07); }

/* ---------- catalog ---------- */

.cat { margin-bottom: 64px; scroll-margin-top: 96px; }
.cat__title { margin: 0 0 28px; font-size: 34px; font-weight: 600; letter-spacing: -.025em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 25px; }
.empty-catalog { padding: 60px 0; text-align: center; color: var(--muted); font-size: 18px; }

.pcard {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #efeff1;
    border-radius: 26px;
    background: #fff;
    cursor: pointer;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.pcard.reveal-in { animation: card-in .6s var(--ease) both; animation-delay: var(--d, 0s); }
.pcard:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 40px rgba(20, 20, 40, .09); }
.pcard:active { transform: translateY(-1px) scale(.99); }
.pcard__img { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 20px; background: #f4f4f5; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.js .pcard__img img:not(.is-loaded) { opacity: 0; transform: scale(1.04); }
.js .pcard:not(.reveal-in) { opacity: 0; }
.pcard:hover .pcard__img img.is-loaded { transform: scale(1.05); }
.pcard__placeholder { position: absolute; inset: 18%; width: 64%; height: 64%; color: #dcdce2; }
.pcard__labels { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.plabel { padding: 4px 9px; border-radius: 9px; background: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.plabel--hit { background: var(--red); color: #fff; }
.plabel--new { background: #34c759; color: #fff; }
.plabel--sale { background: #ff9500; color: #fff; }
.plabel--top { background: #1c1c1e; color: #fff; }
.plabel--gift { background: #af52de; color: #fff; }
.pcard__body { display: flex; flex: 1; flex-direction: column; padding: 20px 4px 0; }
.pcard__name { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.32; }
.pcard__unit { font-size: 15px; font-weight: 400; color: #a1a1a6; white-space: nowrap; }
.pcard__desc { margin: 8px 0 0; font-size: 15px; line-height: 1.35; color: #a1a1a6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 24px; min-height: 64px; }
.pcard__price { font-size: 20px; font-weight: 600; white-space: nowrap; }
.pcard__price s, .pm__price s { margin-left: 4px; font-size: 14px; font-weight: 400; color: #a1a1a6; }

.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--soft); transition: background-color .2s, transform .15s var(--ease), opacity .2s; }
.stepper__btn:hover { background: var(--soft-2); }
.stepper__btn:active { transform: scale(.88); }
.stepper__btn:disabled { opacity: .4; cursor: default; }
.stepper__btn .i { width: 20px; height: 20px; stroke-width: 2.2; }
.stepper__val { min-width: 22px; text-align: center; font-size: 17px; font-weight: 500; }
.stepper__val.tick-up { animation: tick-up .3s var(--ease); }
.stepper__val.tick-down { animation: tick-down .3s var(--ease); }
.stepper--sm { gap: 6px; }
.stepper--sm .stepper__btn { width: 34px; height: 34px; border-radius: 10px; }
.stepper--sm .stepper__btn .i { width: 17px; height: 17px; }
[data-card-stepper]:not([hidden]) { animation: pop .35s var(--spring); }

/* ---------- footer ---------- */

.ftr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--line); font-size: 14px; color: #6e6e73; }
.ftr__brand { display: flex; align-items: center; gap: 12px; }
.ftr__bird { width: 40px; height: 34px; color: #b9b9c2; }
.ftr__legal { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.ftr__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr__links a, .ftr__links button { padding: 0; border: 0; background: none; font-size: 14px; color: #6e6e73; transition: color .2s; }
.ftr__links a:hover, .ftr__links button:hover { color: var(--text); }

/* ---------- modal base ---------- */

.smodal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear .4s;
}
.smodal.is-open { visibility: visible; pointer-events: auto; transition: none; }
.smodal__backdrop { position: absolute; inset: 0; background: rgba(12, 12, 16, .6); opacity: 0; transition: opacity .35s var(--ease); }
.smodal.is-open .smodal__backdrop { opacity: 1; }
.smodal__dialog {
    position: relative;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translateY(26px) scale(.95);
    transition: opacity .25s var(--ease), transform .45s var(--spring);
}
.smodal.is-open .smodal__dialog { opacity: 1; transform: none; }
.smodal__dialog--sm { width: min(480px, 100%); padding: 32px; overflow-y: auto; }
.smodal__title { margin: 0 0 18px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.smodal__close { position: absolute; top: 16px; right: 16px; z-index: 3; }

.round-btn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: #8e8e93; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.round-btn:hover { background: var(--soft-2); color: var(--text); }
.round-btn:active { transform: scale(.88); }
.round-btn .i { width: 19px; height: 19px; }

/* product window */
.pm { display: grid; grid-template-columns: 550px minmax(0, 1fr); width: min(1050px, 100%); height: min(550px, calc(100vh - 48px)); }
.pm__grab { display: none; }
.pm__img { position: relative; overflow: hidden; background: #f4f4f5; }
.pm__img img { width: 100%; height: 100%; object-fit: cover; animation: img-in .6s var(--ease) both; }
.pm__img .pcard__placeholder { color: #d6d6dd; }
.pm__info { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 22px 20px 16px; }
.pm__name { margin: 0 52px 12px 0; font-size: 27px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.pm__price { font-size: 17px; }
.pm__price b { font-weight: 600; }
.pm__dot { margin: 0 6px; color: #c7c7cc; }
.pm__price span:last-child { color: #a1a1a6; }
.pm__desc { flex: 1; min-height: 0; margin-top: 18px; overflow-y: auto; font-size: 15.5px; line-height: 1.4; color: #6e6e73; white-space: pre-line; }
.pm__desc h4 { margin: 16px 0 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.pm__foot { display: flex; align-items: center; gap: 16px; padding-top: 16px; }
.buy-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--dark);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: background-color .2s, transform .15s var(--ease);
}
.buy-btn:hover { background: #111; }
.buy-btn:active { transform: scale(.97); }
.buy-btn i { width: 0; height: 18px; border-left: 2px dotted rgba(255, 255, 255, .45); }
.buy-btn b { font-weight: 600; }

/* delivery / pickup window */
.where { display: grid; grid-template-columns: 490px minmax(0, 1fr); width: min(1000px, 100%); height: min(600px, calc(100vh - 48px)); }
.where__side { display: flex; flex-direction: column; gap: 20px; min-height: 0; padding: 36px; overflow-y: auto; }
.where__pane { display: none; flex-direction: column; gap: 10px; }
.where__pane.is-active { display: flex; animation: fade-up .35s var(--ease); }
.where__info { margin: 4px 2px 0; font-size: 14px; color: #6e6e73; }
.where__map { position: relative; background: linear-gradient(135deg, #eef3f7, #e6edf3); }
.where__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: fade-in .6s var(--ease); }
.where .smodal__close { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.where .big-btn { margin-top: auto; }

.point-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid #ececef; border-radius: 16px; cursor: pointer; transition: border-color .2s, box-shadow .25s, transform .15s var(--ease); }
.point-card:hover { border-color: #d6d6db; }
.point-card:active { transform: scale(.99); }
.point-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.point-card__text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.point-card__text b { font-size: 17px; font-weight: 500; }
.point-card__text small { font-size: 15px; color: #8e8e93; }
.point-card__radio { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #e6e6e9; transition: background-color .2s; }
.point-card__radio::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #111; transform: scale(0); transition: transform .3s var(--spring); }
.point-card:has(input:checked) { border-color: #d6d6db; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.point-card input:checked ~ .point-card__radio { background: #fff; box-shadow: inset 0 0 0 1.5px #d6d6db; }
.point-card input:checked ~ .point-card__radio::after { transform: scale(1); }
.point-card input:focus-visible ~ .point-card__radio { outline: 2px solid #3b82f6; outline-offset: 2px; }

/* search */
.smodal--search { align-items: start; padding-top: 72px; }
.search-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; width: min(720px, 100%); padding: 14px; border-radius: 26px; }
.search-box__field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--soft); color: #8e8e93; }
.search-box__field input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 17px; color: var(--text); }
.search-box .round-btn { align-self: center; }
.search-box__results { grid-column: 1 / -1; max-height: min(60vh, 520px); overflow-y: auto; }
.search-box__results:empty { display: none; }
.sr { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px; border: 0; border-radius: 14px; background: none; text-align: left; animation: fade-up .3s var(--ease) both; transition: background-color .15s; }
.sr:hover, .sr:focus-visible { background: var(--soft); }
.sr__img { width: 56px; height: 56px; flex: none; overflow: hidden; border-radius: 12px; background: #f4f4f5; }
.sr__img img { width: 100%; height: 100%; object-fit: cover; }
.sr__name { flex: 1; font-size: 16px; }
.sr__price { font-weight: 600; }
.sr-empty { padding: 20px; text-align: center; color: var(--muted); }

/* contacts */
.contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-row .i { color: #8e8e93; }
.contact-row small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
a.contact-row:hover span { text-decoration: underline; }
.hours { margin-top: 18px; }
.hours__title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 600; }
.hours__title .i { color: #8e8e93; }
.hours__row { display: flex; justify-content: space-between; padding: 6px 0 6px 32px; font-size: 15px; color: #6e6e73; }
.hours__row.is-today { color: var(--text); font-weight: 600; }

/* ---------- cart panel ---------- */

.cart { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(12, 12, 16, .45); opacity: 0; transition: opacity .35s var(--ease); }
.cart__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--cart-w);
    overflow: hidden;
    background: #fff;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .5s var(--ease);
}
body.cart-open .cart { pointer-events: auto; }
body.cart-open .cart__panel { transform: none; }
.cart__view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.cart__view.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease) .05s, transform .45s var(--ease); }
.cart__view.is-back { transform: translateX(-40px); }
.cart__head { display: flex; align-items: center; gap: 8px; padding: 28px 24px 14px; }
.cart__title { flex: 1; margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.cart__scroll { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 6px 24px 16px; overflow-y: auto; overscroll-behavior: contain; }
.cart__foot { padding: 10px 24px 24px; }
.cart__filled { display: flex; flex-direction: column; gap: 12px; }
.cart__error { margin: 0; font-size: 14px; color: var(--red); }
.cart__error:empty { display: none; }

.lines { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; }
.line { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 14px; animation: fade-up .35s var(--ease) both; }
.line__img { width: 98px; height: 98px; overflow: hidden; border-radius: 14px; background: #f4f4f5; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__img .pcard__placeholder { position: static; width: 70%; height: 70%; margin: 15%; }
.line__body { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 4px 0; }
.line__name { font-size: 15px; line-height: 1.3; }
.line__name span { color: #a1a1a6; font-size: 13px; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.line__price { font-size: 16px; font-weight: 600; white-space: nowrap; }
.line--gift .line__price { color: var(--purple); }

.cart-empty { display: flex; flex-direction: column; align-items: center; padding: 40px 10px; text-align: center; color: var(--muted); animation: fade-up .4s var(--ease); }
.cart-empty__bird { width: 110px; height: 94px; margin-bottom: 14px; color: #dcdce2; animation: bird-float 5s ease-in-out infinite; }
.cart-empty p { margin: 0; line-height: 1.5; }

.promo { display: flex; align-items: center; height: 60px; padding: 0 8px 0 16px; border-radius: 16px; background: var(--soft); transition: box-shadow .2s; }
.promo:focus-within { box-shadow: inset 0 0 0 1.5px #c7c7cc; }
.promo__input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 15px; text-transform: uppercase; }
.promo__input::placeholder { text-transform: none; color: #3c3c43; }
.promo__apply { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 500; opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity .2s, transform .3s var(--spring); }
.promo.has-text .promo__apply { opacity: 1; transform: none; pointer-events: auto; }
.promo.is-applied { box-shadow: inset 0 0 0 1.5px var(--green); }
.promo__msg { margin: -4px 4px 0; font-size: 13.5px; }
.promo__msg:empty { display: none; }
.promo__msg.is-ok { color: var(--green); }
.promo__msg.is-error { color: var(--red); }

.summary { overflow: hidden; border-radius: 16px; background: var(--soft); }
.summary:empty { display: none; }
.summary__row { display: flex; justify-content: space-between; gap: 10px; padding: 18px 16px; font-size: 15px; }
.summary__row + .summary__row { border-top: 1.5px solid #fff; }
.summary__row small { color: #a1a1a6; font-size: 13px; }
.summary__row--total { font-size: 17px; font-weight: 700; }
.summary__row .ok { color: var(--green); }
.summary__row b { font-weight: 600; }

.big-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 60px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    background: var(--dark);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    transition: background-color .2s, transform .15s var(--ease), opacity .2s;
}
.big-btn:hover { background: #111; }
.big-btn:active { transform: scale(.98); }
.big-btn:disabled { opacity: .45; cursor: not-allowed; }
.big-btn--arrow { justify-content: flex-start; }
.big-btn--arrow .i { width: 30px; transition: transform .25s var(--ease); }
.big-btn--arrow:hover .i { transform: translateX(4px); }
.big-btn.is-busy { position: relative; color: transparent; pointer-events: none; }
.big-btn.is-busy::after { content: ""; position: absolute; left: calc(50% - 12px); width: 24px; height: 24px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- checkout ---------- */

.checkout { display: contents; }
.fields { overflow: hidden; border-radius: 16px; background: var(--soft); }
.fields--row { display: grid; grid-template-columns: 1fr 1fr; }
.fields--row .field + .field { border-left: 1.5px solid #fff; }
.fields__row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid #fff; }
.fields__row .field + .field { border-left: 1.5px solid #fff; }
.field { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 16px; background: var(--soft); border-radius: 16px; transition: box-shadow .2s; }
.fields .field { border-radius: 0; }
.fields .field + .field { border-top: 1.5px solid #fff; }
.fields__row .field + .field, .fields--row .field + .field { border-top: 0; }
.field:focus-within { box-shadow: inset 0 0 0 1.5px #c7c7cc; }
.field .i { width: 18px; height: 18px; color: #a1a1a6; }
.field input, .field select, .field textarea { flex: 1; min-width: 0; height: 100%; min-height: 58px; padding: 0; border: 0; background: none; outline: 0; font-size: 15px; }
.field textarea { padding: 19px 0 10px; resize: none; line-height: 1.4; }
.field--area { align-items: flex-start; }
.field--area .i { margin-top: 20px; }
.field ::placeholder { color: #3c3c43; opacity: 1; }
.field--select select { appearance: none; padding-top: 18px; padding-right: 28px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231c1c1e' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") right center / 18px no-repeat; }
.field__caption { position: absolute; top: 9px; left: 44px; font-size: 12px; color: #a1a1a6; pointer-events: none; }
.fields--row .field__caption, .field--caption .field__caption { left: 16px; }
.field--caption input { padding-top: 16px; }
.field--caption .field__caption { top: 50%; font-size: 15px; color: #3c3c43; transform: translateY(-50%); transform-origin: left center; transition: transform .2s var(--ease), color .2s; }
.field--caption input:focus + .field__caption, .field--caption input:not(:placeholder-shown) + .field__caption { color: #a1a1a6; transform: translateY(-130%) scale(.8); }
.field.is-invalid { animation: shake .45s var(--ease); box-shadow: inset 0 0 0 1.5px var(--red); }
.shake, .point-card.is-invalid { animation: shake .45s var(--ease); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.checkout__note { margin: -4px 4px 0; font-size: 13.5px; color: #c4271d; }
.checkout__legal { margin: 10px 4px 0; font-size: 11.5px; line-height: 1.4; color: #a1a1a6; text-align: center; }
.checkout__legal a { text-decoration: underline; }

/* ---------- done ---------- */

.done { align-items: center; text-align: center; padding-top: 30px; }
.done__check { width: 96px; height: 96px; margin-bottom: 18px; }
.done__check svg { width: 100%; height: 100%; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.done__check path { stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; }
.cart__view.is-active .done__check circle { animation: draw .7s var(--ease) .15s forwards; }
.cart__view.is-active .done__check path { animation: draw .45s var(--ease) .7s forwards; }
.done__title { margin: 0 0 10px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.done__text { margin: 0 0 20px; color: #6e6e73; line-height: 1.45; }
.summary--done { width: 100%; text-align: left; }

.petal { position: fixed; top: -30px; z-index: 120; width: 14px; height: 18px; border-radius: 80% 0 80% 0; pointer-events: none; animation: petal-fall var(--t, 3s) linear forwards; }

/* ---------- small floating things ---------- */

.install {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(540px, calc(100% - 32px));
    padding: 14px 14px 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04);
    transform: translateX(-50%);
    animation: install-in .6s var(--spring) both;
}
.install.is-leaving { animation: install-out .35s var(--ease) both; }
.install__icon { width: 52px; height: 52px; flex: none; border-radius: 13px; }
.install__text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.35; }
.install__text b { font-size: 15.5px; }
.install__btn { height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 600; }
.install__close { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #d1d1d6; color: #fff; }
.install__close .i { width: 14px; height: 14px; stroke-width: 2.6; }

.to-top { position: fixed; left: 20px; bottom: 36px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #b0b0b6; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .4s var(--spring), color .2s, background-color .2s; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--soft); color: var(--text); }
.to-top .i { width: 26px; height: 26px; }

.cart-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 70;
    display: none;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 20px;
    border: 0;
    border-radius: 18px;
    background: var(--dark);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}
.cart-bar span { flex: 1; text-align: left; }
.cart-bar.bump { animation: bump .5s var(--spring); }

.fly { position: fixed; z-index: 150; overflow: hidden; border-radius: 16px; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- content pages ---------- */

.content { max-width: 860px; margin: 24px auto 40px; }
.content h1 { margin: 0 0 24px; font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.content__text { font-size: 16px; line-height: 1.65; color: #3c3c43; white-space: pre-line; }
.promo-cards { display: flex; flex-direction: column; gap: 22px; }
.promo-card { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; scroll-margin-top: 100px; animation: fade-up .5s var(--ease) both; }
.promo-card img { width: 100%; aspect-ratio: 2360 / 710; object-fit: cover; }
.promo-card__body { padding: 20px 24px 24px; }
.promo-card__body h2 { margin: 0 0 6px; font-size: 22px; }
.promo-card__body p { margin: 0; color: #6e6e73; line-height: 1.5; white-space: pre-line; }
.promo-card__meta { margin-top: 12px; font-size: 14px; color: var(--muted); }


/* ==========================================================================
   Installed app (home screen): feels native, not like a web page
   ========================================================================== */

button, a, .pcard, .chip, .seg, .stepper { touch-action: manipulation; }
img { -webkit-user-drag: none; }

html.app { overscroll-behavior-y: none; }
html.app body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior-y: none; }
html.app input, html.app textarea, html.app select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* the header becomes a clean title bar; tabs take over navigation */
.app-back { display: none; }
html.app .app-back { display: inline-flex; }
html.app .hdr__side > :not(.app-back) { display: none; }
html.app .hdr__cats .cart-btn { display: none; }
html.app .cart-bar, html.app .to-top, html.app .install { display: none !important; }
html.app .page { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
html.app .ftr { padding-bottom: 28px; }

.tabbar { display: none; }
html.app .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    padding: 5px 4px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    box-shadow: 0 -.5px 0 rgba(0, 0, 0, .14);
}
.tab {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 5px 0 3px;
    border: 0;
    background: none;
    color: #a1a1a6;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .01em;
    transition: color .25s var(--ease);
}
.tab .i { width: 26px; height: 26px; stroke-width: 1.7; transition: transform .35s var(--spring), stroke-width .2s; }
.tab.is-active { color: var(--text); }
.tab.is-active .i { stroke-width: 2.1; }
.tab:active .i { transform: scale(.84); }
.tab.pop .i { animation: tab-pop .45s var(--spring); }
.tab__badge {
    position: absolute;
    top: 1px;
    left: calc(50% + 5px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
.tab__badge.bump { animation: bump .5s var(--spring); }

/* windows and sheets end above the tab bar, which stays tappable */
html.app .smodal { bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 94; }
html.app .smodal__dialog { max-height: 94%; }

/* the cart sits above the tab bar, like a tab screen */
@media (max-width: 1279px) {
    html.app .cart { z-index: 94; }
    html.app .cart__panel { bottom: calc(62px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: none; }
    html.app .cart__foot { padding-bottom: 14px; }
}

/* sheets opened from tabs */
.smodal__dialog--sheet { width: min(720px, 100%); padding: 32px; overflow-y: auto; }
.smodal__dialog--sheet .promo-card { animation-name: fade-up; }

/* launch screen (matches the iPhone launch image, then lets go) */
.splash { display: none; }
html.app-launch .splash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: #fff;
    transition: opacity .45s var(--ease) .12s;
    animation: splash-safety 0s linear 4s forwards;
}
.splash__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; transition: transform .6s var(--ease), opacity .45s var(--ease); }
.splash__icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 30px rgba(23,85,58,.22); }
.splash__name { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.splash__name b { font-size: 24px; font-weight: 800; letter-spacing: .06em; background: linear-gradient(90deg, #133F2C, #1E5A40); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash__name small { margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .34em; text-transform: uppercase; color: #8e8e93; }
.splash.is-hiding { opacity: 0; }
.splash.is-hiding .splash__inner { transform: scale(1.14) translateY(-8px); opacity: 0; }
html.app-launch .page { animation: app-enter .6s var(--ease) .35s both; }

/* pull to refresh */
.ptr {
    position: fixed;
    top: calc(var(--hdr-h) - 46px);
    left: 50%;
    z-index: 35;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-left: -23px;
    border-radius: 50%;
    background: #fff;
    color: #133F2C;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
    opacity: 0;
    transform: translateY(var(--pull, 0px));
    transition: transform .35s var(--spring), opacity .25s, color .2s;
    pointer-events: none;
}
.ptr.is-dragging { transition: none; }
.ptr__bird { width: 30px; height: 26px; transform: rotate(var(--turn, 0deg)); }
.ptr.is-ready { color: var(--purple); }
.ptr.is-loading .ptr__bird { transform: none; animation: bird-float .8s ease-in-out infinite; }
.ptr.is-loading .bird__wing { transform-origin: 42% 52%; animation: wing .35s ease-in-out infinite; }

/* offline pill */
.offline {
    position: fixed;
    top: calc(var(--hdr-h) + 6px);
    left: 50%;
    z-index: 60;
    padding: 9px 16px;
    border-radius: 99px;
    background: #1c1c1e;
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    transform: translateX(-50%);
    white-space: nowrap;
    animation: offline-in .45s var(--spring) both;
}

/* how to install on iPhone */
.howto { text-align: center; }
.howto__icon { width: 76px; height: 76px; margin: 4px auto 14px; border-radius: 18px; box-shadow: 0 10px 24px rgba(23,85,58,.2); }
.howto .smodal__title { margin-bottom: 8px; font-size: 23px; }
.howto__lead { margin: 0 0 20px; color: #6e6e73; line-height: 1.45; }
.howto__steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; text-align: left; }
.howto__steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--soft); font-size: 15.5px; animation: fade-up .45s var(--ease) both; }
.howto__steps li:nth-child(2) { animation-delay: .08s; }
.howto__steps li:nth-child(3) { animation-delay: .16s; }
.howto__steps .i { display: inline-block; width: 20px; height: 20px; margin: 0 2px; vertical-align: -4px; color: #007aff; }
.howto__n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #1c1c1e; color: #fff; font-size: 14px; font-weight: 700; }
.howto__note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.howto__arrow { display: none; }

@keyframes tab-pop { 0% { transform: scale(1); } 40% { transform: scale(.8); } 100% { transform: scale(1); } }
@keyframes splash-safety { to { visibility: hidden; opacity: 0; } }
@keyframes app-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes offline-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes arrow-bob { 0%, 100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(-8px); } }

/* ---------- keyframes ---------- */

@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes img-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 65% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes tick-up { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tick-down { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-in { from { transform: rotate(-90deg) scale(.7); } to { transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bird-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes wing { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-5deg); } }
@keyframes petal-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x, 40px), 110vh) rotate(var(--r, 540deg)); opacity: .8; } }
@keyframes install-in { from { opacity: 0; transform: translate(-50%, 30px) scale(.95); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes install-out { to { opacity: 0; transform: translate(-50%, 30px) scale(.95); } }

/* ---------- responsive ---------- */

@media (min-width: 1280px) {
    body.cart-open .page { margin-right: var(--cart-w); }
    body.cart-open .to-top { opacity: 0; pointer-events: none; }
}

@media (max-width: 1279px) {
    .cart__panel { width: min(420px, 100%); box-shadow: -20px 0 60px rgba(0, 0, 0, .12); }
    body.cart-open .cart__backdrop { opacity: 1; }
}

@media (max-width: 1100px) {
    .pm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .where { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
}

@media (max-width: 1023px) {
    .hide-sm { display: none !important; }
    .cart-bar:not([hidden]) { display: flex; animation: install-in-bar .5s var(--spring) both; }
    body.cart-open .cart-bar { display: none; }
    .ftr { padding-bottom: 100px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
    .mode-row { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 28px 0; }
    .to-top { bottom: 90px; }
}
@keyframes install-in-bar { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
    :root { --hdr-h: 64px; }
    html { scroll-padding-top: 76px; }
    .container { padding: 0 14px; }
    .hdr__side { gap: 8px; }
    .hbtn { height: 42px; min-width: 42px; border-radius: 12px; font-size: 15px; }
    .cart-btn { padding: 0 10px; }
    .logo__bird { width: 36px; height: 32px; }
    .logo__text b { font-size: 15px; }
    .logo__text small { font-size: 6px; }
    .main { padding-top: 6px; }
    .hero { aspect-ratio: 750 / 320; border-radius: 22px; }
    .hero__default { padding: 0 20px; }
    .hero__pill { padding: 5px 10px; border-radius: 9px; }
    .hero__title { margin-top: 14px; }
    .hero__bird { right: -4%; height: 100%; bottom: -4%; opacity: .95; }
    .seg { height: 56px; border-radius: 16px; }
    .seg__btn { font-size: 16px; }
    .seg__pill { border-radius: 12px; }
    .place-btn { height: 56px; padding: 0 16px; border-radius: 16px; font-size: 16px; }
    .chips { gap: 8px; margin: 0 -14px 32px; padding: 0 14px; }
    .chip { height: 40px; padding: 0 14px; font-size: 15px; }
    .chips--hdr { margin: 0; padding: 0; }
    .chips--hdr .chip { height: 40px; }
    .cat { margin-bottom: 44px; scroll-margin-top: 76px; }
    .cat__title { margin-bottom: 16px; font-size: 25px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pcard { padding: 8px; border-radius: 20px; }
    .pcard:hover { transform: none; box-shadow: none; }
    .pcard__img { border-radius: 14px; }
    .pcard__body { padding: 10px 4px 2px; }
    .pcard__name { font-size: 15px; }
    .pcard__unit { font-size: 13px; }
    .pcard__desc { font-size: 13px; }
    .pcard__foot { flex-wrap: wrap; min-height: 0; padding-top: 12px; }
    .pcard__price { font-size: 16px; }
    .stepper--sm .stepper__btn { width: 30px; height: 30px; }
    .plabel { font-size: 11px; padding: 3px 7px; }

    .field input, .field select, .field textarea, .promo__input, .search-box__field input { font-size: 16px; }
    .smodal__dialog--sheet { padding: 26px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 88vh; }
    .howto__arrow { display: block; position: fixed; left: 50%; bottom: 6px; width: 30px; height: 30px; margin-left: -15px; color: #007aff; animation: arrow-bob 1.2s ease-in-out infinite; }
    .howto__arrow .i { width: 30px; height: 30px; }
    .smodal { align-items: end; padding: 0; }
    .smodal__dialog { width: 100%; max-height: 94vh; border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform .5s var(--ease), opacity .2s; }
    .smodal__dialog--sm { padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); }
    .smodal--search { align-items: start; padding: 10px; }
    .smodal--search .smodal__dialog { border-radius: 22px; transform: translateY(-30px); }
    .pm { display: flex; flex-direction: column; height: auto; overflow-y: auto; }
    .pm__grab { display: block; position: absolute; top: 8px; left: 50%; z-index: 4; width: 40px; height: 5px; margin-left: -20px; border-radius: 9px; background: rgba(255, 255, 255, .8); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
    .pm__img { flex: none; aspect-ratio: 1; max-height: 52vh; }
    .pm__info { padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); }
    .pm .smodal__close { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
    .pm__name { margin-right: 0; font-size: 23px; }
    .pm__desc { flex: none; overflow: visible; }
    .pm__foot { position: sticky; bottom: 0; margin: 0 -16px -14px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 22%); }
    .where { display: flex; flex-direction: column-reverse; height: auto; }
    .where__map { flex: none; height: 200px; }
    .where__side { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
    .cart__panel { width: 100%; border-left: 0; }
    .cart__head { padding: 20px 16px 10px; }
    .cart__title { font-size: 25px; }
    .cart__scroll { padding: 6px 16px 14px; }
    .cart__foot { padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); }
    .line { grid-template-columns: 80px minmax(0, 1fr); }
    .line__img { width: 80px; height: 80px; }
    .install { bottom: calc(84px + env(safe-area-inset-bottom)); }
    .content h1 { font-size: 30px; }
    .ftr { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   «Фреш Фловерс»
   Added by the client build. The storefront is the program's «bloom» theme (assets/theme-bloom.css)
   with the client's colours from magazin-theme.php; the brand colours of the program's own parts
   (launch screen, app icon shadow) are replaced by the rules of magazin.js.
   ========================================================================== */

/* the mark is a flower: in pull-to-refresh its petals turn where the wing used to flap */
.ptr.is-loading .bird__wing { transform-origin: 56.9% 38.2%; animation: spin .9s linear infinite; }

/* the round sign in the footer */
.fl-ftr__brand > img { width: 150px; margin: 0; border-radius: 50%; box-shadow: 0 10px 26px rgba(60, 48, 12, .18); }

/* phone header: the two-word name did not fit next to the four round buttons and slid under the call
   button (390 px). A smaller sign and name there; on the narrowest phones the name takes two lines. */
@media (max-width: 440px) {
  .bl-bar .bl-brand { gap: 7px; min-width: 0; }
  .bl-bar .bl-brand > img { width: 38px; height: 38px; }
  .bl-bar .bl-brand > span { min-width: 0; }
  .bl-bar .bl-brand b { font-size: 15px; }
}
@media (max-width: 380px) {
  .bl-bar .bl-brand b { white-space: normal; line-height: 1.08; overflow: visible; }
  .bl-bar .bl-brand > span > small { display: none; }
}
@media (max-width: 340px) {
  .bl-bar .bl-brand > img { display: none; }   /* 320 px: the name alone, so «Фловерс» is not cut */
}
