/* ==========================================================================
   Cokiê | Catálogo de Cookies Artesanais
   Paleta clara, com o chocolate usado só em detalhes (botões, sacola, avisos).
   Chocolate #3B2418, Caramelo #8B5E3C, Bege #DCC9B4, Creme #F7EFE6, Dourado #D4AF37
   Títulos: Baloo 2 (arredondada, irmã do logotipo) | Textos: Montserrat
   ========================================================================== */

:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --cream: #F7EFE6;
  --cream-2: #F3EADF;
  --beige: #DCC9B4;
  --choco: #3B2418;
  --choco-deep: #2A1810;
  --caramel: #8B5E3C;
  --gold: #D4AF37;
  --gold-hi: #F0D36B;
  --gold-lo: #B98A16;
  --ink: #3B2418;
  --ink-soft: #6B4A38;
  --line: rgba(59, 36, 24, .12);
  --wa: #147F3F;
  --wa-dark: #0F6733;
  --danger: #A12B2B;

  --font-display: "Baloo 2", "Poppins", system-ui, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --foto: 4 / 5;
  --r-xl: 28px;
  --r-lg: 22px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; margin: 0; color: var(--choco); letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--choco); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--choco); color: var(--cream); padding: .7em 1.1em; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ----------------------------------------------------------------- botoes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--choco); color: var(--cream); }
.btn-primary:hover { background: var(--choco-deep); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; font-size: 1.05rem; box-shadow: 0 14px 26px -14px rgba(20, 127, 63, .8); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-wa .ico { width: 1.45em; height: 1.45em; }
.btn-wa[aria-disabled="true"] { background: #9a8a80; box-shadow: none; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(59, 36, 24, .08); cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: rgba(59, 36, 24, .16); }
.icon-btn .ico { width: 22px; height: 22px; }
.link-btn { background: none; border: 0; padding: .4em; color: var(--ink-soft); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* --------------------------------------------------------------- cabecalho */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 241, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-in .bag-btn { margin-left: auto; }
.brand { display: block; flex: none; transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.brand img { height: 50px; width: auto; display: block; }
.brand.is-hidden { opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none; }
.bag-btn { position: relative; display: inline-flex; align-items: center; gap: .55em; min-height: 46px; padding: .5em 1.15em .5em 1em; border-radius: 999px; border: 0; cursor: pointer; background: var(--choco); color: var(--cream); font-weight: 700; font-size: .95rem; transition: transform .18s, background .2s; }
.bag-btn:hover { background: var(--choco-deep); transform: translateY(-1px); }
.bag-btn .ico { width: 22px; height: 22px; }
.bag-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--choco-deep); font-size: .8rem; font-weight: 800; }
.bag-btn.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.14) rotate(-3deg); } 60% { transform: scale(.96); } }

/* -------------------------------------------------------------- introducao */
.intro { text-align: center; padding: clamp(30px, 4.5vw, 52px) 0 clamp(26px, 3.5vw, 40px); }
.tagline { margin: 0 0 .9rem; font: 600 .76rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--caramel); }
.intro-logo { display: block; width: clamp(128px, 14vw, 172px); height: auto; margin: 0 auto 1.2rem; }
.intro h1 { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0; line-height: 1.1; font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); }

/* ---------------------------------------------------------- aviso das fornadas */
.aviso { list-style: none; display: flex; flex-direction: column; gap: 7px; width: fit-content; max-width: 100%; margin: 1.3rem auto 0; padding: 10px 22px 10px 12px; border-radius: 16px; text-align: left; background: linear-gradient(100deg, #F3E6D5 0%, #F9F0E4 100%); border: 1px solid rgba(139, 94, 60, .26); box-shadow: 0 8px 18px -14px rgba(59, 36, 24, .5); }
.aviso li { display: flex; align-items: center; gap: 11px; font-size: .88rem; font-weight: 500; line-height: 1.35; color: var(--choco); }
.aviso-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--caramel); color: #fff; }
.aviso-ico .ico { width: 16px; height: 16px; }

/* ------------------------------------------------------ cabecalho de categoria */
.cat-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 22px; }
.cat-head h2 { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.65rem, 1.35rem + 1vw, 2.05rem); letter-spacing: 0; line-height: 1.15; }
.cat-head p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.cat-head .crown { width: .85em; height: .85em; color: var(--gold-lo); }

/* ----------------------------------------------------------- controles de quantidade */
.qty-control { display: inline-flex; align-items: center; }
.btn-add { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .45em; min-height: 46px; padding: .55em 1.2em .55em 1em; border-radius: 999px; border: 0; cursor: pointer; background: var(--choco); color: var(--cream); font: 700 .92rem var(--font-body); transition: transform .18s, background .2s; }
.btn-add:hover { background: var(--choco-deep); transform: translateY(-2px); }
.btn-add .ico { width: 1.2em; height: 1.2em; stroke-width: 2.4; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--choco); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; transition: background .2s; }
.stepper button:hover { background: rgba(59, 36, 24, .08); }
.stepper .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper output { min-width: 30px; text-align: center; font-weight: 800; font-size: 1rem; }

/* ---------------------------------------------------------------- preco / selo */
.price { margin: 0; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--choco); }
.price small { display: block; font: 500 .72rem var(--font-body); color: var(--ink-soft); margin-top: 4px; }
.ribbon { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: .4em; padding: .36em .9em .36em .65em; border-radius: 999px; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); color: var(--choco-deep); font: 800 .76rem var(--font-body); box-shadow: 0 8px 16px -8px rgba(59, 36, 24, .5); }
.ribbon .ico { width: 1.1em; height: 1.1em; }

/* ---------------------------------------------------------------- premium */
.premium { padding: clamp(28px, 3.5vw, 40px) 0 clamp(36px, 4.5vw, 54px); background: linear-gradient(180deg, #FFF9EA, #FBF1DA); border-top: 1px solid rgba(212, 175, 55, .38); }
.premium-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.pcard { display: grid; grid-template-columns: minmax(0, .46fr) minmax(0, .54fr); gap: 6px; padding: 12px; border-radius: var(--r-xl); background: var(--surface); border: 1.5px solid rgba(212, 175, 55, .6); box-shadow: 0 26px 40px -30px rgba(139, 94, 60, .55); transition: transform .3s ease, box-shadow .3s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 34px 46px -30px rgba(139, 94, 60, .65); }
.pcard-media { position: relative; display: block; width: 100%; aspect-ratio: var(--foto); padding: 0; border: 0; border-radius: 20px; overflow: hidden; cursor: pointer; background: var(--cream); align-self: start; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-body { display: flex; flex-direction: column; padding: 8px 10px 6px; min-width: 0; }
.pcard h3 { font-size: clamp(1.6rem, 1.2rem + .8vw, 2rem); }
.pcard h3 button { all: unset; cursor: pointer; display: inline-block; padding-block: .12em; }
.pcard h3 button:focus-visible { outline: 3px solid var(--choco); outline-offset: 4px; border-radius: 6px; }
.pcard-desc { margin: .5em 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.pcard-desc .txt, .item-desc .txt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-desc .peso, .item-desc .peso { display: block; margin-top: .35em; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--caramel); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; margin-top: auto; padding-top: 1.1rem; }
.pcard .price { font-size: 1.8rem; }
.pcard .btn-add { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); color: var(--choco-deep); }
.pcard .btn-add:hover { background: linear-gradient(180deg, #F6DE86, #DDB93F 60%, var(--gold-lo)); }

/* -------------------------------------------------------------- classicos */
.classics { padding: clamp(24px, 3vw, 36px) 0 clamp(36px, 4.5vw, 56px); }
.classics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.item { display: flex; flex-direction: column; padding: 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.item:hover { transform: translateY(-4px); box-shadow: 0 24px 34px -26px rgba(59, 36, 24, .45); }
.item-media { position: relative; display: block; width: 100%; aspect-ratio: var(--foto); padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--beige); }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-body { display: flex; flex: 1; flex-direction: column; padding: 14px 6px 6px; min-width: 0; }
.item h3 { font-size: 1.3rem; line-height: 1.08; }
.item h3 button { all: unset; cursor: pointer; display: inline-block; padding-block: .2em; }
.item h3 button:focus-visible { outline: 3px solid var(--choco); outline-offset: 4px; border-radius: 6px; }
.item-desc { margin: .4em 0 0; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; margin-top: auto; padding-top: 1rem; }

.item .price { font-size: 1.45rem; }
.item .btn-add { padding: .5em .95em .5em .8em; font-size: .88rem; }

/* ------------------------------------------------------------------ rodape */
.footer { border-top: 1px solid var(--line); background: var(--cream-2); color: var(--ink-soft); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; padding: 18px 0; font-size: .82rem; }
.footer-note { margin: 0; flex: 1 1 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--choco); text-decoration: none; }
.footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { margin: 0; flex-basis: 100%; font-size: .76rem; opacity: .8; }
.footer-copy a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.footer-copy a:hover { color: var(--choco); }

/* ------------------------------------------------------------- barra sacola */
.bag-bar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
.bag-bar button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: .7em 1.2em; border: 0; border-radius: 20px; cursor: pointer; background: var(--choco); color: var(--cream); font-weight: 600; box-shadow: 0 18px 36px -14px rgba(42, 24, 16, .6); animation: rise .4s cubic-bezier(.2, .9, .3, 1.1); }
.bag-bar-left, .bag-bar-right { display: inline-flex; align-items: center; gap: .6em; }
.bag-bar .ico { width: 24px; height: 24px; color: var(--gold-hi); }
.bag-bar strong { color: var(--gold-hi); font-family: var(--font-display); font-size: 1.2rem; }
@keyframes rise { from { transform: translateY(120%); } to { transform: none; } }

/* ---------------------------------------------------------------- sacola */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: hidden; box-shadow: -30px 0 70px -20px rgba(42, 24, 16, .4); }
.drawer[open] { display: block; animation: slide-in .38s cubic-bezier(.2, .85, .25, 1); }
.drawer.closing { animation: slide-out .26s ease forwards; }
.drawer::backdrop { background: rgba(42, 24, 16, .45); backdrop-filter: blur(3px); animation: fade .3s ease; }
.drawer.closing::backdrop { animation: fade .26s ease reverse forwards; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-out { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--cream-2); }
.drawer-head h2 { font-size: 1.8rem; }
.drawer-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 22px 22px; overscroll-behavior: contain; }
.empty { text-align: center; padding: 48px 12px; }
.empty img { width: 96px; margin: 0 auto 16px; opacity: .9; }
.empty-title { font: 800 1.5rem var(--font-display); color: var(--choco); margin-bottom: .2em; }
.empty p:not(.empty-title) { color: var(--ink-soft); margin-bottom: 1.4rem; }
.bag-items li { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-items img { grid-row: span 2; width: 68px; height: 68px; object-fit: cover; border-radius: 16px; background: var(--beige); }
.bag-name { font: 800 1.2rem/1.1 var(--font-display); color: var(--choco); }
.bag-meta { font-size: .8rem; color: var(--ink-soft); }
.bag-row { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.bag-row .stepper button { width: 40px; height: 40px; }
.bag-row .stepper .ico { width: 16px; height: 16px; }
.bag-line { font-weight: 700; }
.bag-remove { background: none; border: 0; padding: 0; margin-left: 4px; color: var(--ink-soft); font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bag-form { margin-top: 22px; display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4em; }
.field .req, .field .opt { font-weight: 500; color: var(--ink-soft); font-size: .8rem; }
.field input, .field textarea { width: 100%; padding: .85em 1em; border: 2px solid rgba(59, 36, 24, .22); border-radius: 14px; background: #fff; font: 500 1rem var(--font-body); color: var(--ink); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--choco); box-shadow: 0 0 0 4px rgba(212, 175, 55, .45); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: .45em 0 0; font-size: .85rem; font-weight: 600; color: var(--danger); }
.drawer-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream-2); box-shadow: 0 -16px 24px -20px rgba(59, 36, 24, .4); }
.totals { margin: 0 0 12px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; font-size: .95rem; color: var(--ink-soft); }
.totals dt, .totals dd { margin: 0; }
.totals .grand { margin-top: 2px; color: var(--choco); }
.totals .grand dt { font-weight: 700; }
.totals .grand dd { font: 800 1.9rem var(--font-display); }
.min-note { margin: 0 0 10px; padding: .6em .9em; border-radius: 12px; background: #F6E2CF; color: #7A3B12; font-size: .85rem; font-weight: 600; }
.foot-note { margin: 12px 0 0; font-size: .78rem; line-height: 1.45; color: var(--ink-soft); text-align: center; }
.drawer-foot .link-btn { display: block; margin: 2px auto 0; }

/* ---------------------------------------------------------------- detalhes */
.modal { width: min(880px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; border: 0; border-radius: 30px; overflow: hidden; background: var(--bg); color: var(--ink); box-shadow: 0 50px 100px -30px rgba(42, 24, 16, .55); }
.modal.is-premium { box-shadow: 0 0 0 2px rgba(212, 175, 55, .65), 0 50px 100px -30px rgba(42, 24, 16, .55); }
.modal[open] { animation: modal-in .35s cubic-bezier(.2, .9, .3, 1.1); }
.modal.closing { animation: modal-out .2s ease forwards; }
.modal::backdrop { background: rgba(42, 24, 16, .5); backdrop-filter: blur(4px); animation: fade .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: calc(100dvh - 28px); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(251, 247, 241, .92); }
.modal-media { position: relative; background: var(--beige); min-height: 280px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(24px, 3.4vw, 40px); overflow-y: auto; display: flex; flex-direction: column; }
.modal-tag { margin: 0 0 .4em; font-size: .8rem; font-weight: 600; color: var(--caramel); }
.modal-body h2 { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.7rem); }
.modal-body p { color: var(--ink-soft); margin: .9em 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 0; }
.chips li { padding: .25em .8em; border-radius: 999px; font-size: .76rem; font-weight: 600; border: 1px solid rgba(59, 36, 24, .22); color: var(--choco); background: var(--surface); }
.modal.is-premium .chips li { border-color: rgba(212, 175, 55, .7); background: #FFF8E6; }
.modal-ing { font-size: .85rem; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap; margin-top: auto; padding-top: 1.6rem; }
.modal-foot .price { font-size: 2.1rem; }
.modal-foot .price small { display: inline; margin-left: .45em; font-size: .78rem; }
.modal.is-premium .btn-add { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); color: var(--choco-deep); }

/* ------------------------------------------------------------------- toast */
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px); width: max-content; max-width: calc(100vw - 32px); text-align: center; padding: .75em 1.3em; border-radius: 999px; background: var(--choco); color: var(--cream); font-weight: 600; font-size: .92rem; box-shadow: 0 16px 32px -12px rgba(42, 24, 16, .5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-bar .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
.fly { position: fixed; z-index: 200; margin: 0; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 10px 20px rgba(42, 24, 16, .3); }
.noscript { padding: 20px; text-align: center; background: #F6E2CF; font-weight: 600; }

/* ---------------------------------------------------------------- responsivo */
@media (min-width: 1181px) and (max-width: 1300px) {
  .pcard { grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); }
  .pcard .price { font-size: 1.6rem; }
  .item .price { font-size: 1.3rem; }
  .item .btn-add { padding: .45em .75em .45em .65em; font-size: .82rem; }
}
@media (max-width: 1180px) {
  .premium-cards { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); gap: 12px; }
  .classics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .drawer { inset: auto 0 0 0; width: 100%; height: auto; max-height: 92dvh; border-radius: 28px 28px 0 0; }
  .drawer[open] { display: block; animation: sheet-in .38s cubic-bezier(.2, .85, .25, 1); }
  .drawer.closing { animation: sheet-out .26s ease forwards; }
  .drawer-in { height: auto; max-height: 92dvh; }
  .modal-in { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-media { aspect-ratio: auto; min-height: 0; height: min(56dvh, calc((100vw - 28px) * 1.25)); }
  .modal-body { overflow: visible; }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@media (min-width: 901px) { .bag-bar { display: none !important; } }
@media (max-width: 720px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .bag-label { display: none; }
  .bag-btn { padding: .5em .9em; }
  .cat-head { margin-bottom: 16px; }
  .tagline { font-size: .68rem; letter-spacing: .12em; }
  .pcard, .item { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 14px; row-gap: 0; align-items: start; padding: 10px; }
  .pcard { grid-template-columns: 116px minmax(0, 1fr); }
  .pcard-body, .item-body { display: contents; }
  .pcard-media, .item-media { grid-column: 1; grid-row: 1 / span 2; border-radius: 14px; }
  .pcard .ribbon { top: 7px; left: 7px; padding: .26em .7em .26em .5em; font-size: .64rem; }
  .pcard h3, .item h3 { grid-column: 2; grid-row: 1; font-size: 1.3rem; margin-top: -.1em; }
  .pcard-desc, .item-desc { grid-column: 2; grid-row: 2; margin-top: .3em; font-size: .86rem; }
  .pcard-foot, .item-foot { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .pcard .price, .item .price, .price { font-size: 1.5rem; }
  .classics-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-foot .price small { display: block; margin: 4px 0 0; }
  body.has-bar .footer { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
