:root {
  --cream: #fff9f1;
  --paper: #fffdf9;
  --pink: #e55f91;
  --pink-deep: #b93269;
  --blue: #24a9ca;
  --cocoa: #4a2e2b;
  --cocoa-soft: #76544f;
  --peach: #f3b59d;
  --yellow: #f5c85b;
  --green: #58725a;
  --line: rgba(74, 46, 43, 0.15);
  --shadow: 0 24px 60px rgba(74, 46, 43, 0.14);
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cocoa);
  background: var(--cream);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px;
  background: var(--cocoa); color: white; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 30; min-height: 82px; padding: 10px 5vw;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  background: rgba(255, 249, 241, 0.93); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { width: 154px; height: 62px; overflow: hidden; border-radius: 12px; }
.brand img { width: 100%; height: 100%; object-fit: cover; }
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 3vw, 48px); }
.site-nav a { text-decoration: none; font-size: 0.9rem; font-weight: 800; }
.site-nav a:hover { color: var(--pink-deep); }
.menu-button { display: none; border: 0; background: none; }

.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 52px;
  padding: 12px 23px; border: 2px solid var(--cocoa); border-radius: 999px;
  color: white; background: var(--cocoa); text-decoration: none; font-weight: 800;
  cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(74,46,43,.18); }
.button-small { min-height: 44px; padding: 8px 18px; font-size: 0.84rem; }
.button-light { color: var(--cocoa); background: white; border-color: white; }
.button-outline { color: white; background: transparent; border-color: rgba(255,255,255,.65); }

.hero {
  min-height: calc(100vh - 82px); padding: clamp(56px, 8vw, 110px) 6vw;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .85fr);
  align-items: center; gap: clamp(50px, 7vw, 110px); overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(36,169,202,.18), transparent 27%),
    radial-gradient(circle at 8% 88%, rgba(229,95,145,.14), transparent 24%);
}
.eyebrow {
  margin: 0 0 18px; color: var(--pink-deep); font-size: .76rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
h1, h2, h3, h4, h5, h6, strong, b { font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; font-weight: 800; line-height: 1.08; }
h1 { max-width: 790px; margin: 0; font-size: clamp(3rem, 6.3vw, 6.7rem); letter-spacing: -.07em; }
h1 span { display: block; color: var(--pink-deep); }
.hero-lead { margin: 28px 0; max-width: 650px; color: var(--cocoa-soft); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.text-link { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--cocoa); }
.text-link span { color: var(--pink-deep); }
.trust-list {
  display: flex; gap: 28px; padding: 32px 0 0; margin: 0; list-style: none;
}
.trust-list li { padding-left: 16px; border-left: 2px solid var(--peach); }
.trust-list strong, .trust-list span { display: block; }
.trust-list strong { font-size: .96rem; }
.trust-list span { color: var(--cocoa-soft); font-size: .72rem; }
.hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; }
.hero-photo {
  position: relative; width: min(100%, 590px); aspect-ratio: 4/5; overflow: hidden;
  border-radius: 48% 48% 24% 24% / 30% 30% 17% 17%;
  box-shadow: var(--shadow); transform: rotate(2deg);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; border: 12px solid rgba(255,255,255,.38);
  border-radius: inherit; pointer-events: none;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.floating-note {
  position: absolute; padding: 16px 20px; background: white; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 12px 34px rgba(74,46,43,.16); transform: rotate(-4deg);
}
.floating-note strong, .floating-note span { display: block; }
.note-top { top: 10%; left: -3%; }
.note-bottom { right: -7%; bottom: 9%; transform: rotate(3deg); }
.note-bottom span { color: var(--cocoa-soft); font-size: .72rem; }
.doodle { position: absolute; color: var(--pink); font-size: 3rem; font-weight: 800; }
.doodle-one { right: 2%; top: 4%; transform: rotate(14deg); }
.doodle-two { left: 2%; bottom: 1%; color: var(--blue); font-size: 4rem; }

.ticker { overflow: hidden; color: white; background: var(--pink-deep); transform: rotate(-1deg); }
.ticker div {
  display: flex; width: max-content; gap: 32px; padding: 14px 0;
  font-weight: 800; animation: ticker 26s linear infinite;
}
.ticker i { color: var(--yellow); font-style: normal; }
@keyframes ticker { to { transform: translateX(-35%); } }

.section { padding: clamp(80px, 10vw, 150px) 6vw; }
.section-heading {
  display: grid; grid-template-columns: 1.2fr .55fr; align-items: end; gap: 80px;
  margin-bottom: 52px;
}
.section-heading h2, .promo-copy h2, .story-copy h2, .contact-section h2 {
  margin: 0; max-width: 850px; font-size: clamp(2.3rem, 4.6vw, 5rem); letter-spacing: -.055em;
}
.section-heading > p { margin: 0; color: var(--cocoa-soft); }
.products-section { background: var(--paper); }
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-button {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--cocoa); background: transparent; font-weight: 800; cursor: pointer;
}
.filter-button.active { color: white; background: var(--cocoa); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: white; transition: transform 200ms ease, box-shadow 200ms ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-image { position: relative; aspect-ratio: 1.12; overflow: hidden; background: #eadfd8; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-tag {
  position: absolute; top: 15px; left: 15px; padding: 7px 12px; border-radius: 999px;
  color: var(--cocoa); background: rgba(255,255,255,.92); font-size: .7rem; font-weight: 800;
}
.product-info { padding: 24px; }
.product-info h3 { margin: 0 0 6px; font-size: 1.25rem; }
.product-en { margin: 0; color: var(--pink-deep); font-size: .82rem; font-weight: 800; }
.product-description { min-height: 52px; color: var(--cocoa-soft); font-size: .9rem; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; }
.product-price { font-weight: 800; }
.product-button { border: 0; color: var(--pink-deep); background: none; font-weight: 800; cursor: pointer; }
.product-button:hover { text-decoration: underline; }
.product-card-detail { position: relative; }
.product-card-detail-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.product-grid-compact .product-card-detail-link { min-height: 0; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.product-card-detail-link:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.product-card-detail .product-bottom { padding-right: 54px; }
.product-detail-inquiry { position: absolute; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); }

.promo-section {
  padding: clamp(80px, 9vw, 140px) 6vw; display: grid; grid-template-columns: .72fr 1.1fr;
  gap: clamp(48px, 8vw, 120px); align-items: center; color: white; background: var(--cocoa);
}
.promo-copy p:not(.eyebrow) { max-width: 560px; color: rgba(255,255,255,.76); }
.promo-copy .eyebrow { color: var(--peach); }
.play-button {
  margin-top: 20px; padding: 0; border: 0; color: white; background: none;
  font-weight: 800; cursor: pointer;
}
.play-button span {
  display: inline-grid; width: 48px; height: 48px; margin-right: 10px; place-items: center;
  border-radius: 50%; color: var(--cocoa); background: white;
}
.promo-copy small { display: block; margin-top: 20px; color: rgba(255,255,255,.52); }
.promo-poster {
  position: relative; padding: 0; aspect-ratio: 16/10; overflow: hidden; border: 0;
  border-radius: 34px; background: #111; cursor: pointer; box-shadow: 0 30px 80px rgba(0,0,0,.36);
}
.promo-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,20,18,.25), transparent 60%); }
.promo-poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-badge {
  position: absolute; z-index: 1; left: 22px; top: 22px; padding: 7px 11px;
  border-radius: 999px; color: white; background: rgba(74,46,43,.72); font-size: .68rem; font-weight: 800;
}
.poster-play {
  position: absolute; z-index: 1; inset: 50% auto auto 50%; display: grid; width: 76px; height: 76px;
  place-items: center; border-radius: 50%; color: var(--cocoa); background: white;
  transform: translate(-50%,-50%); font-size: 1.3rem;
}

.gallery-section { background: #f8e8e2; }
.gallery { display: grid; grid-template-columns: 1.5fr .75fr; grid-template-rows: 1fr 1fr; gap: 22px; }
.gallery figure { position: relative; min-height: 300px; margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery-large { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 18px; bottom: 18px; padding: 8px 13px; border-radius: 999px;
  color: var(--cocoa); background: rgba(255,255,255,.9); font-size: .75rem; font-weight: 800;
}
.gallery-quote {
  display: flex; flex-direction: column; justify-content: center; padding: 42px; color: white; background: var(--blue);
}
.gallery-quote blockquote {
  margin: 0; font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; font-size: clamp(2rem, 3.6vw, 4.2rem);
  font-weight: 800; line-height: 1; letter-spacing: -.06em;
}

.story-section {
  padding: clamp(80px, 10vw, 150px) 9vw; display: grid; grid-template-columns: .7fr 1.3fr;
  gap: clamp(50px, 9vw, 150px); align-items: center; background: var(--paper);
}
.story-logo { transform: rotate(-2deg); }
.story-logo img { border: 14px solid white; border-radius: 8px; box-shadow: var(--shadow); }
.story-logo p { text-align: center; color: var(--cocoa-soft); font-size: .75rem; }
.story-copy > p:not(.eyebrow) { max-width: 760px; color: var(--cocoa-soft); font-size: 1.04rem; }
.order-section { background: var(--cream); }
.order-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; list-style: none; counter-reset: steps; }
.order-steps li { padding: 32px; border-top: 3px solid var(--pink); background: white; }
.order-steps span { color: var(--pink-deep); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.order-steps h3 { margin: 38px 0 10px; font-size: 1.5rem; }
.order-steps p { color: var(--cocoa-soft); }
.contact-section {
  margin: 0 3vw 3vw; padding: clamp(55px, 7vw, 95px); display: grid;
  grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: end;
  border-radius: 38px; color: white; background: var(--pink-deep);
}
.contact-section .eyebrow { color: #ffd7e6; }
.contact-actions { display: grid; gap: 12px; }
.contact-note { margin: 4px 0 0; color: rgba(255,255,255,.64); font-size: .74rem; text-align: center; }
footer {
  padding: 28px 6vw 42px; display: flex; justify-content: space-between; align-items: center;
  gap: 25px; color: var(--cocoa-soft); font-size: .78rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--cocoa); font-weight: 800; }
.footer-brand img { width: 64px; height: 40px; object-fit: cover; border-radius: 7px; }
.footer-links { display: flex; gap: 20px; }

.film-dialog {
  width: min(94vw, 1100px); padding: 0; border: 0; border-radius: 28px; overflow: visible;
  color: white; background: #160e0d; box-shadow: 0 40px 110px rgba(0,0,0,.55);
}
.film-dialog::backdrop { background: rgba(24,13,12,.82); backdrop-filter: blur(8px); }
.film-dialog > p { padding: 0 20px 14px; margin: 0; color: rgba(255,255,255,.55); font-size: .7rem; text-align: center; }
.film-close {
  position: absolute; z-index: 10; top: -15px; right: -15px; width: 42px; height: 42px;
  border: 0; border-radius: 50%; color: var(--cocoa); background: white; font-size: 1.6rem; cursor: pointer;
}
.film-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 28px 28px 0 0; }
.film-scene { position: absolute; inset: 0; opacity: 0; overflow: hidden; }
.film-scene img { width: 100%; height: 100%; object-fit: cover; }
.film-scene-one img { animation: filmZoom 8s linear infinite; }
.film-scene div {
  position: absolute; left: 6%; bottom: 10%; padding: 16px 20px; border-radius: 16px;
  background: rgba(46,25,22,.72); backdrop-filter: blur(8px);
}
.film-scene div span, .film-scene div strong { display: block; }
.film-scene div span { font-size: clamp(.7rem, 1.4vw, 1rem); }
.film-scene div strong { font-size: clamp(1.1rem, 2.5vw, 2.2rem); }
.film-scene-one { animation: sceneOne 8s infinite; }
.film-scene-two { animation: sceneTwo 8s infinite; }
.film-scene-two img { animation: filmPan 8s ease-in-out infinite; }
.film-scene-three {
  display: grid; place-items: center; align-content: center; gap: 18px; color: var(--cocoa);
  background: var(--cream); animation: sceneThree 8s infinite;
}
.film-scene-three img { width: 48%; height: auto; border-radius: 12px; }
.film-scene-three strong { font-size: clamp(1.2rem, 3vw, 2.7rem); }
@keyframes sceneOne { 0%, 34% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes sceneTwo { 0%, 31% { opacity: 0; } 42%, 70% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes sceneThree { 0%, 69% { opacity: 0; } 80%, 100% { opacity: 1; } }
@keyframes filmZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes filmPan { from { transform: scale(1.1) translateX(-2%); } to { transform: scale(1.1) translateX(2%); } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto 1fr; gap: 15px; }
  .menu-button { display: grid; gap: 4px; width: 42px; padding: 10px; cursor: pointer; }
  .menu-button span:not(.sr-only) { display: block; height: 2px; background: var(--cocoa); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 82px; display: none; padding: 24px 6vw;
    flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-header > .button { justify-self: end; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { min-height: 560px; }
  .section-heading, .promo-section, .story-section, .contact-section { grid-template-columns: 1fr; gap: 38px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-header { padding-inline: 4vw; }
  .brand { width: 118px; height: 50px; }
  .site-header > .button { min-height: 38px; padding: 7px 11px; font-size: .72rem; }
  .hero { padding-inline: 5vw; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.6rem); }
  .trust-list { gap: 10px; }
  .trust-list li { padding-left: 9px; }
  .hero-visual { min-height: 450px; }
  .hero-photo { width: 88%; }
  .floating-note { padding: 10px 12px; font-size: .72rem; }
  .note-top { left: 0; }
  .note-bottom { right: 0; }
  .section { padding-inline: 5vw; }
  .section-heading { margin-bottom: 34px; }
  .product-grid, .order-steps { grid-template-columns: 1fr; }
  .promo-section { padding-inline: 5vw; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-large { grid-row: auto; }
  .gallery figure { min-height: 280px; }
  .story-section { padding-inline: 7vw; }
  .contact-section { margin: 0; border-radius: 0; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

body[data-yummie-layout="one-screen"] { display: grid; height: 100svh; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.jaze96-signature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .18rem 1rem; padding: .55rem 5vw; border-top: 1px solid var(--line); color: var(--cocoa-soft); background: var(--cream); font-size: clamp(.62rem, 1vw, .76rem); line-height: 1.3; font-weight: 800; }
.jaze96-signature p { margin: 0; }
.jaze96-signature p:first-child { color: var(--pink-deep); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.jaze96-signature p:nth-child(2) { color: var(--cocoa); font-weight: 800; }
.jaze96-signature p:nth-child(3) { grid-column: 2; text-align: right; }
.jaze96-signature p:nth-child(4) { grid-column: 1 / -1; padding-top: .25rem; border-top: 1px solid var(--line); }
.yummie-hub { height: 100%; min-height: 0; padding: clamp(24px, 4vh, 46px) 6vw; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: clamp(16px, 2.5vh, 28px); }
.hub-intro { text-align: center; }
.hub-intro .eyebrow { margin-bottom: 8px; }
.hub-intro h1 { max-width: none; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.16; }
.hub-intro p:last-child { margin: 10px 0 0; color: var(--cocoa-soft); font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 800; }
.hub-contact { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 28px; border-radius: 24px; color: white; background: var(--pink-deep); }
.hub-contact .eyebrow { margin-bottom: 4px; color: #ffd7e6; }
.hub-contact h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.hub-contact .contact-actions { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
.yummie-entry-grid { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.yummie-entry-card { position: relative; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: end; padding: clamp(24px, 3vw, 42px); border-radius: 30px; color: white; text-decoration: none; box-shadow: var(--shadow); isolation: isolate; }
.yummie-entry-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(47,24,20,.78), rgba(47,24,20,.08) 70%); }
.yummie-entry-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.yummie-entry-card:hover img { transform: scale(1.04); }
.yummie-entry-card h2 { margin: 5px 0; font-size: clamp(1.8rem, 3.5vw, 3.3rem); }
.yummie-entry-card p { max-width: 380px; margin: 0 0 12px; }
.entry-label { font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.yummie-entry-card strong { font-size: .9rem; }
.yummie-content-page { min-height: calc(100svh - 82px); }
@media (max-width: 980px) { .hub-contact { padding: 15px 20px; } }
@media (max-width: 640px) { body[data-yummie-layout="one-screen"] { height: 100svh; min-height: 0; } .yummie-hub { height: 100%; min-height: 0; padding: 16px 4vw; gap: 12px; } .hub-intro h1 { font-size: clamp(1.7rem, 8vw, 2.45rem); } .hub-intro p:last-child { font-size: .96rem; } .hub-contact { gap: 12px; padding: 12px 14px; align-items: end; } .hub-contact .eyebrow { font-size: .58rem; } .hub-contact h2 { font-size: 1rem; } .hub-contact .contact-actions { gap: 7px; grid-template-columns: 1fr; } .hub-contact .button { min-height: 34px; padding: 5px 9px; font-size: .66rem; } .yummie-entry-grid { gap: 12px; } .yummie-entry-card { padding: 16px; border-radius: 20px; } .yummie-entry-card h2 { font-size: 1.45rem; } .yummie-entry-card p { display: none; } .entry-label, .yummie-entry-card strong { font-size: .62rem; } }

@media (min-width: 641px) and (max-height: 700px) {
  .yummie-hub { padding-block: 14px; gap: 10px; }
  .hub-intro .eyebrow { margin-bottom: 4px; }
  .hub-intro h1 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); }
  .hub-intro p:last-child { margin-top: 5px; font-size: .9rem; }
  .hub-contact { gap: 14px; padding: 12px 18px; }
  .hub-contact h2 { font-size: clamp(1.1rem, 2vw, 1.55rem); }
  .yummie-entry-card { padding: clamp(16px, 2vw, 24px); }
}

@media (max-width: 640px) { .jaze96-signature { grid-template-columns: 1fr; gap: .12rem; padding: .45rem 4vw; font-size: .58rem; } .jaze96-signature p:nth-child(3) { grid-column: 1; text-align: left; } .jaze96-signature p:nth-child(4) { margin-top: .1rem; padding-top: .18rem; } }

/* Compact public sub-pages: every view remains within one viewport. */
.yummie-one-screen-page { height: 100%; min-height: 0; padding: clamp(20px, 4vh, 42px) 6vw; display: grid; place-items: center; overflow: hidden; }
.category-gateway, .gallery-compact, .category-detail { width: min(100%, 1180px); height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(16px, 3vh, 28px); }
.compact-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: clamp(20px, 5vw, 70px); align-items: end; }
.compact-section-heading h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.05; }
.compact-section-heading > p { max-width: 440px; margin: 0 0 4px; color: var(--cocoa-soft); font-size: clamp(.86rem, 1.4vw, 1.05rem); }
.category-entry-grid { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.category-entry-card { position: relative; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: end; gap: 5px; padding: clamp(18px, 2.6vw, 34px); border-radius: 28px; color: white; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); }
.category-entry-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(47,24,20,.82), rgba(47,24,20,.08) 72%); }
.category-entry-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.category-entry-card:hover img { transform: scale(1.04); }
.category-entry-card span { font-size: clamp(1.25rem, 2.3vw, 2rem); font-weight: 800; }
.category-entry-card strong { font-size: .82rem; }
.gallery-compact-grid { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.gallery-compact-card { position: relative; min-height: 0; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); }
.gallery-compact-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-compact-card figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border-radius: 999px; color: var(--cocoa); background: rgba(255,255,255,.92); font-size: clamp(.65rem, 1.2vw, .8rem); font-weight: 800; }
.gallery-magazine { grid-template-rows: auto minmax(0, 1fr); }
.gallery-magazine-stage { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 11px; }
.gallery-return-button { justify-self: start; border: 0; border-radius: 999px; padding: 8px 14px; color: white; background: var(--cocoa); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.gallery-return-button:hover, .gallery-return-button:focus-visible { background: var(--cocoa-soft); }
.gallery-magazine-grid { min-height: 0; display: grid; grid-template-columns: 1.28fr repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(9px, 1.25vw, 18px); }
.gallery-photo-card { position: relative; min-height: 0; overflow: hidden; appearance: none; padding: 0; border: 0; border-radius: 22px; background: var(--cream); box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-photo-card:first-child { grid-row: span 2; border-radius: 28px; }
.gallery-photo-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(145deg, rgba(255,255,255,.12), transparent 42%, rgba(47,24,20,.12)); pointer-events: none; opacity: 0; transition: opacity 180ms ease; }
.gallery-photo-card:hover::after, .gallery-photo-card:focus-visible::after { opacity: 1; }
.gallery-photo-card:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.gallery-photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.gallery-photo-card:hover img, .gallery-photo-card:focus-visible img { transform: scale(1.025); }
.gallery-magazine-controls { display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--cocoa-soft); font-size: .73rem; font-weight: 800; letter-spacing: .09em; }
.gallery-page-button, .gallery-dialog-close, .gallery-dialog-arrow { display: inline-grid; place-items: center; appearance: none; border: 1px solid rgba(78, 47, 39, .16); color: var(--cocoa); background: rgba(255,255,255,.8); box-shadow: 0 7px 18px rgba(78,47,39,.1); cursor: pointer; }
.gallery-page-button { width: 31px; height: 31px; border-radius: 50%; font-size: 1.1rem; }
.gallery-page-button:disabled { cursor: default; opacity: .35; }
.gallery-page-button:not(:disabled):hover, .gallery-page-button:not(:disabled):focus-visible { background: var(--peach); }
.gallery-dialog { width: min(92vw, 1080px); max-width: none; max-height: 90vh; margin: auto; padding: 0; overflow: visible; border: 0; border-radius: 24px; background: transparent; }
.gallery-dialog::backdrop { background: rgba(47,24,20,.76); backdrop-filter: blur(5px); }
.gallery-dialog-frame { position: relative; display: grid; place-items: center; max-height: 90vh; }
.gallery-dialog img { display: block; max-width: 100%; max-height: 88vh; border-radius: 20px; box-shadow: 0 24px 72px rgba(0,0,0,.35); }
.gallery-dialog-close, .gallery-dialog-arrow { position: absolute; z-index: 1; width: 40px; height: 40px; border-radius: 50%; font-size: 1.45rem; }
.gallery-dialog-close { top: 12px; right: 12px; }
.gallery-dialog-arrow { top: 50%; transform: translateY(-50%); }
.gallery-dialog-arrow[hidden] { display: none; }
.gallery-dialog-previous { left: 12px; }
.gallery-dialog-next { right: 12px; }
.gallery-dialog-close:hover, .gallery-dialog-close:focus-visible, .gallery-dialog-arrow:hover, .gallery-dialog-arrow:focus-visible { background: var(--peach); }
.category-detail .compact-section-heading { grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); }
.product-grid-compact { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-content: center; }
.product-grid-compact.gallery-focus { height: 100%; grid-template-columns: minmax(0, 760px); justify-content: center; }
.gallery-focus .gallery-magazine-stage { width: min(100%, 760px); height: 100%; }
.gallery-focus .gallery-return-button { padding: 12px 22px; font-size: .95rem; }
.product-grid-compact:has(.product-card:only-child) { grid-template-columns: minmax(0, 440px); justify-content: center; }
.product-grid-compact .product-card { min-height: 0; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.product-grid-compact .product-card-detail { display: block; }
.gallery-entry-card { width: 100%; padding: 0; color: inherit; font: inherit; text-align: left; background: var(--cream); }
button.gallery-entry-card { cursor: pointer; }
.gallery-entry-card.is-preparing { opacity: .82; }
.product-grid-compact .product-image { aspect-ratio: auto; min-height: 0; }
.product-grid-compact .product-info { min-height: 0; padding: clamp(14px, 2vw, 24px); display: flex; flex-direction: column; justify-content: center; }
.product-grid-compact .product-info h3 { margin: 0 0 8px; font-size: clamp(1rem, 1.7vw, 1.45rem); line-height: 1.25; }
.product-grid-compact .product-description { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--cocoa-soft); font-size: clamp(.78rem, 1.2vw, .95rem); }
.product-grid-compact .product-bottom { margin-top: 14px; }
.four-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-page { width: min(100%, 1180px); height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(10px, 2vh, 18px); }
.flavor-page { width: min(100%, 940px); height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(14px, 3vh, 26px); }
.flavor-page .eyebrow { margin-bottom: 12px; font-size: 40px; line-height: 1; letter-spacing: .04em; }
.flavor-detail-grid { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); align-content: center; }
.flavor-detail-card { min-height: 0; padding: clamp(16px, 2.5vw, 28px); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 22px; color: var(--cocoa); background: white; box-shadow: 0 10px 26px rgba(74,46,43,.08); }
.flavor-detail-card:nth-child(3n + 2) { background: #fff2f6; }
.flavor-detail-card:nth-child(3n) { background: #eff9fc; }
.flavor-detail-card span { color: var(--pink-deep); font-size: .72rem; letter-spacing: .12em; }
.flavor-detail-card h2 { margin: 18px 0 0; font-size: clamp(1rem, 2vw, 1.45rem); line-height: 1.2; }
.category-view-tabs { display: inline-flex; justify-self: start; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: 0 6px 16px rgba(78,47,39,.08); }
.category-view-tab { border: 0; border-radius: 999px; padding: 8px 15px; color: var(--cocoa); background: transparent; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.category-view-tab.active, .category-view-tab:hover, .category-view-tab:focus-visible { color: white; background: var(--cocoa); }
.category-panel { min-height: 0; overflow: hidden; }
.category-panel > .gallery-magazine-stage { height: 100%; }
.category-empty { align-self: center; justify-self: center; max-width: 360px; margin: 0; padding: 22px 28px; border: 1px dashed var(--line); border-radius: 22px; color: var(--cocoa-soft); background: rgba(255,255,255,.6); text-align: center; font-weight: 700; }
.gallery-magazine-grid .category-empty { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .yummie-one-screen-page { height: 100%; min-height: 0; padding: 14px 4vw; }
  .category-gateway, .gallery-compact, .category-detail { gap: 14px; }
  .compact-section-heading, .category-detail .compact-section-heading { grid-template-columns: 1fr; gap: 4px; }
  .compact-section-heading h1 { font-size: clamp(1.65rem, 8vw, 2.35rem); }
  .compact-section-heading > p { font-size: .78rem; line-height: 1.45; }
  .category-entry-grid { gap: 9px; }
  .four-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-entry-card { padding: 12px 9px; border-radius: 17px; }
  .category-entry-card span { font-size: .92rem; line-height: 1.15; }
  .category-entry-card strong { font-size: .58rem; }
  .gallery-compact-grid { gap: 10px; }
  .gallery-compact-card { border-radius: 18px; }
  .gallery-compact-card figcaption { left: 8px; right: 8px; bottom: 8px; padding: 5px 7px; font-size: .58rem; line-height: 1.25; }
  .gallery-magazine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .gallery-photo-card { border-radius: 13px; }
  .gallery-photo-card:first-child { grid-row: span 2; border-radius: 17px; }
  .gallery-magazine-controls { gap: 10px; font-size: .62rem; }
  .gallery-page-button { width: 27px; height: 27px; font-size: .95rem; }
  .gallery-dialog { width: 96vw; }
  .gallery-dialog img { max-height: 84vh; border-radius: 14px; }
  .gallery-dialog-close, .gallery-dialog-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
  .gallery-dialog-close { top: 8px; right: 8px; }
  .gallery-dialog-previous { left: 7px; }
  .gallery-dialog-next { right: 7px; }
  .product-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-grid-compact.gallery-focus { grid-template-columns: minmax(0, 1fr); }
  .gallery-focus .gallery-return-button { min-height: 42px; padding: 10px 18px; font-size: .86rem; }
  .product-grid-compact:has(.product-card:only-child) { grid-template-columns: minmax(0, 270px); }
  .product-grid-compact .product-card { grid-template-columns: 1fr; }
  .product-grid-compact .product-card-detail { display: block; }
  .product-grid-compact .product-card-detail-link { grid-template-columns: 1fr; }
  .product-grid-compact .product-image { aspect-ratio: 1.18; }
  .product-grid-compact .product-info { padding: 10px; }
  .product-grid-compact .product-info h3 { margin-bottom: 4px; font-size: .82rem; }
  .product-grid-compact .product-description { -webkit-line-clamp: 2; font-size: .65rem; line-height: 1.35; }
  .product-grid-compact .product-bottom { margin-top: 8px; font-size: .65rem; }
  .product-grid-compact .product-button { font-size: .65rem; }
  .product-detail-inquiry { right: 10px; bottom: 10px; }
  .category-page { gap: 9px; }
  .flavor-page { gap: 12px; }
  .flavor-page .eyebrow { margin-bottom: 8px; font-size: clamp(1.6rem, 8vw, 2.5rem); }
  .flavor-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .flavor-detail-card { min-height: 0; padding: 11px; border-radius: 16px; }
  .flavor-detail-card span { font-size: .58rem; }
  .flavor-detail-card h2 { margin-top: 11px; font-size: .82rem; }
  .category-view-tab { padding: 7px 13px; font-size: .7rem; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .four-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-grid-compact .product-card { grid-template-columns: minmax(84px, .62fr) minmax(0, 1.38fr); }
  .product-grid-compact .product-info { padding: 12px; }
  .product-grid-compact .product-info h3 { font-size: clamp(.9rem, 1.8vw, 1.08rem); }
  .product-grid-compact .product-description { font-size: .72rem; line-height: 1.35; }
  .product-grid-compact .product-bottom { margin-top: 8px; }
}

@media (min-width: 901px) and (max-height: 800px) {
  .product-grid-compact .product-info { padding: 12px; }
  .product-grid-compact .product-info h3 { margin-bottom: 6px; font-size: clamp(.95rem, 1.55vw, 1.25rem); }
  .product-grid-compact .product-description { display: block; overflow: visible; -webkit-line-clamp: unset; font-size: .78rem; line-height: 1.35; }
  .product-grid-compact .product-bottom { margin-top: 8px; }
}
