/* ==========================================================================
   Jasmine Bakery - site styles
   World: the brand identity card. Crimson is a full-bleed field, the gold
   flower is the pattern, surfaces are white and neutral, food photography
   carries the colour. One accent (crimson). One radius system:
   pills = interactive, 20px = panels and images, 14px = form fields.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Reem Kufi";
  src: url("../assets/fonts/reemkufi-arabic.woff2") format("woff2");
  font-weight: 500 700;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
  font-display: swap;
}

:root {
  color-scheme: light;
  --red: #be1522;
  --red-deep: #9a0f1b;
  --gold: #c09949;
  --ink: #1e1517;
  --ink-2: #5a4f52;
  --ink-3: #6e6366;
  --paper: #ffffff;
  --mist: #f3f2f1;
  --mist-2: #e9e7e5;
  --line: rgba(30, 21, 23, 0.14);

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Reem Kufi", "Segoe UI", sans-serif;

  --r-lg: 20px;
  --r-field: 14px;
  --shadow-card: 0 1px 2px rgba(60, 10, 18, 0.06), 0 14px 34px -16px rgba(110, 10, 22, 0.28);
  --shadow-lift: 0 2px 4px rgba(60, 10, 18, 0.08), 0 22px 44px -18px rgba(110, 10, 22, 0.38);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h: 76px;
  --wrap: 1240px;

  --z-tools: 20;
  --z-bar: 30;
  --z-overlay: 40;
  --z-nav: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--red) var(--mist); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
address { font-style: normal; }
[hidden] { display: none !important; }

::selection { background: var(--red); color: #fff; }
.on-red ::selection { background: #fff; color: var(--red); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.nav :focus-visible { outline-color: var(--red); }
.on-red-field :focus-visible { outline-color: #fff; }
html.locked { overflow: hidden; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600; transition: top 0.2s var(--ease); }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.surface { background: var(--mist); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 750; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-stretch: 82%; }
h3 { font-size: 1.2rem; font-stretch: 92%; line-height: 1.15; letter-spacing: -0.01em; }
p { text-wrap: pretty; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.ar { font-family: var(--arabic); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 52px; padding: 0 0.5rem 0 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform 0.16s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease);
}
.btn .btn-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: transform 0.3s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(190, 21, 34, 0.7); }
.btn-light { background: #fff; color: var(--red); }
.btn-light .btn-ico { background: rgba(190, 21, 34, 0.1); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-text { padding: 0 0.25rem; min-height: 44px; gap: 0.5rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1.5px; }
.btn-plain { padding: 0 1.4rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--red-deep); }
  .btn-light:hover { background: var(--mist); }
  .btn-ink:hover { background: #000; }
  .btn:hover .btn-ico { transform: translate(2px, -1px) scale(1.05); }
  .btn-text:hover { text-decoration-thickness: 3px; }
}

/* ---------- Floating nav ---------- */
.nav-wrap { position: fixed; inset: 14px 0 auto 0; z-index: var(--z-nav); display: flex; justify-content: center; padding-inline: 14px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 0.25rem;
  min-height: 60px; padding: 0.4rem 0.4rem 0.4rem 1.1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 12px 32px -14px rgba(90, 8, 18, 0.5);
}
.nav-brand { display: flex; align-items: center; margin-right: 1.25rem; }
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border-radius: 999px; font-weight: 550; font-size: 0.97rem; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.nav-links a[aria-current="page"] { color: var(--red); background: rgba(190, 21, 34, 0.08); }
.nav-order { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 46px; padding: 0 1.15rem 0 1rem; margin-left: 0.6rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; transition: transform 0.16s var(--ease), background-color 0.2s; }
.nav-order:active { transform: scale(0.97); }
.nav-order[aria-current="page"] { background: var(--ink); }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--red); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; margin-left: 0.25rem; position: relative; background: var(--mist); }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.2s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { background: var(--mist); color: var(--ink); }
  .nav-links a[aria-current="page"]:hover { background: rgba(190, 21, 34, 0.12); color: var(--red); }
  .nav-order:hover { background: var(--red-deep); }
}

.menu-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--red); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 7rem 1.75rem 2.5rem; overflow: hidden;
  visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease), opacity 0.3s, visibility 0s 0.6s;
}
.menu-overlay.open { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 0.6s var(--ease), opacity 0.2s, visibility 0s; }
.menu-overlay :focus-visible { outline-color: #fff; }
.menu-overlay ::selection { background: #fff; color: var(--red); }
.menu-overlay nav ul { display: grid; gap: 0.25rem; position: relative; z-index: 1; }
.menu-overlay nav a { display: flex; align-items: baseline; gap: 0.75rem; font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(2.6rem, 13vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; padding: 0.15em 0; transform: translateY(1.2rem); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.5s; }
.menu-overlay.open nav a { transform: none; opacity: 1; }
.menu-overlay.open nav li:nth-child(1) a { transition-delay: 0.08s; }
.menu-overlay.open nav li:nth-child(2) a { transition-delay: 0.13s; }
.menu-overlay.open nav li:nth-child(3) a { transition-delay: 0.18s; }
.menu-overlay.open nav li:nth-child(4) a { transition-delay: 0.23s; }
.menu-overlay.open nav li:nth-child(5) a { transition-delay: 0.28s; }
.menu-overlay nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 0.12em; }
.menu-overlay .overlay-meta { margin-top: 2.5rem; position: relative; z-index: 1; font-size: 1rem; opacity: 0.92; display: grid; gap: 0.35rem; }
.menu-overlay .overlay-meta a { text-decoration: underline; text-underline-offset: 0.25em; }
.menu-overlay .flower-bg { right: -22vmax; bottom: -18vmax; width: 78vmax; }

/* ---------- Flower pattern (the brand mark, pre-tinted PNGs so it works from file:// too) ---------- */
.flower-bg {
  position: absolute; aspect-ratio: 1; pointer-events: none;
  background: url("../assets/logo/flower-pattern.png") center / contain no-repeat;
}
.flower-gold { background-image: url("../assets/logo/flower.png"); }
@supports (animation-timeline: scroll()) {
  .turn { animation: turn linear both; animation-timeline: scroll(root block); }
}
@keyframes turn { to { transform: rotate(90deg); } }

/* ---------- Red fields: hero + page heads + footer ---------- */
.on-red-field { background: var(--red); color: #fff; position: relative; isolation: isolate; overflow: clip; }
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem)) clamp(1.25rem, 5vw, 5rem) clamp(3rem, 8vh, 5rem) max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.hero h1 { font-size: clamp(3.1rem, 8.6vw, 6rem); font-weight: 800; font-stretch: 76%; line-height: 0.92; letter-spacing: -0.025em; }
.hero .lead { color: rgba(255, 255, 255, 0.92); margin-top: 1.5rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2.25rem; }
.hero-media { position: relative; margin: 0; min-height: 100%; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero > .flower-bg { left: -16vmin; bottom: -22vmin; width: 74vmin; z-index: 1; }
.hero-stamp { position: absolute; z-index: 3; left: 0; bottom: 14%; transform: translateX(-50%); width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 16px 36px -14px rgba(60, 4, 12, 0.6); }
.hero-stamp .flower-bg { position: static; width: 62px; background-image: url("../assets/logo/flower.png"); }

.page-head { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 5.5rem)) 0 clamp(3rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; font-stretch: 76%; line-height: 0.92; max-width: 14ch; }
.page-head .lead { color: rgba(255, 255, 255, 0.92); margin-top: 1.25rem; max-width: 46ch; }
.page-head .flower-bg { right: -10vmin; top: 50%; margin-top: -30vmin; width: 60vmin; }

/* ---------- Reveal (content stays visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Section headings ---------- */
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.rail-ctl { display: flex; gap: 0.5rem; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); transition: transform 0.16s var(--ease), background-color 0.2s, color 0.2s; }
.round-btn:active { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round-btn:not(:disabled):hover { background: var(--red); color: #fff; } }

/* ---------- Dish cards (menu photo items, home rail) ---------- */
.rail { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 0 1.75rem; margin-inline: calc((100vw - min(100vw - 2.5rem, var(--wrap))) / -2); padding-inline: calc((100vw - min(100vw - 2.5rem, var(--wrap))) / 2); scroll-padding-inline: calc((100vw - min(100vw - 2.5rem, var(--wrap))) / 2); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > .dish { flex: 0 0 min(78vw, 310px); scroll-snap-align: start; }

.dish { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.dish-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.dish-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.1rem 1.2rem 1.2rem; flex: 1; }
.dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dish-head h3 { font-size: 1.2rem; }
.dish-unit { display: block; font-size: 0.78rem; font-weight: 500; color: var(--ink-3); text-align: right; }
.dish-desc { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.dish-desc.open { display: block; }
.more { align-self: flex-start; font-size: 0.88rem; font-weight: 600; color: var(--red); min-height: 32px; text-decoration: underline; text-underline-offset: 0.25em; }
.tag { display: inline-block; align-self: flex-start; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); background: var(--mist); border-radius: 999px; padding: 0.2rem 0.7rem; }
.dish-foot { margin-top: auto; padding-top: 0.6rem; display: flex; align-items: center; justify-content: flex-end; min-height: 56px; }
@media (hover: hover) and (pointer: fine) {
  .dish:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .dish:hover .dish-media img { transform: scale(1.05); }
}

/* Text-only menu rows (no photo yet) */
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem clamp(2rem, 5vw, 4.5rem); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: start; padding: 1.1rem 0; }
.row-head { display: flex; align-items: baseline; gap: 0.6rem; grid-column: 1; }
.row-head h3 { font-size: 1.1rem; }
.leader { flex: 1; min-width: 1rem; border-bottom: 2px dotted rgba(30, 21, 23, 0.3); transform: translateY(-0.28em); }
.row-main { grid-column: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.row .dish-desc { -webkit-line-clamp: 2; }
.row .row-ctl { grid-column: 2; align-self: center; }

/* Add / stepper controls */
.add-btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 1.1rem 0 0.9rem; border-radius: 999px; background: var(--mist); font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: transform 0.16s var(--ease), background-color 0.2s, color 0.2s; }
.add-btn:active { transform: scale(0.96); }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--red); color: #fff; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color 0.2s, transform 0.16s var(--ease); }
.stepper button:active { transform: scale(0.9); }
.stepper output { min-width: 1.6ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.free-note { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .add-btn:hover { background: var(--red); color: #fff; }
  .stepper button:hover { background: rgba(255, 255, 255, 0.18); }
}

/* ---------- Home: menu index ---------- */
.index a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.25rem 1.5rem; padding: clamp(1rem, 2.4vw, 1.6rem) 0; border-top: 1px solid var(--line); transition: padding-left 0.5s var(--ease), color 0.25s; }
.index li:last-child a { border-bottom: 1px solid var(--line); }
.index .t { font-family: var(--display); font-weight: 760; font-stretch: 80%; font-size: clamp(2rem, 5.2vw, 4rem); line-height: 1; letter-spacing: -0.02em; }
.index .m { font-size: 0.98rem; color: var(--ink-2); text-align: right; display: flex; align-items: center; gap: 1rem; justify-content: flex-end; }
.index .m .icon { color: var(--red); transition: transform 0.5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .index a:hover { padding-left: 1.25rem; color: var(--red); }
  .index a:hover .m .icon { transform: translateX(6px); }
}

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.split h2 + p { margin-top: 1.25rem; }
.split .btn, .split .btn-text { margin-top: 1.75rem; }
.photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.9rem; aspect-ratio: 1.08; }
.photo-grid .photo:first-child { grid-row: 1 / span 2; }

/* ---------- Visit block ---------- */
.visit { text-align: left; }
.visit .big { font-family: var(--display); font-weight: 800; font-stretch: 76%; font-size: clamp(2.8rem, 9vw, 6rem); line-height: 0.92; letter-spacing: -0.025em; }
.visit .sub { font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin-top: 0.75rem; color: var(--ink-2); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 2rem; }
.hours { margin-top: 1.75rem; display: grid; gap: 0.2rem; color: var(--ink-2); }
.hours div { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.hours dt { min-width: 18ch; font-weight: 600; color: var(--ink); }
.on-red-field .hours { color: inherit; }
.on-red-field .hours dt { color: #fff; min-width: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.site-footer .flower-bg { width: 56vmin; }
.site-footer .f1 { left: -22vmin; top: -10vmin; }
.site-footer .f2 { right: -22vmin; bottom: -14vmin; }
.footer-top { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-logo img { width: min(100%, 300px); height: auto; }
.footer-top h2 { font-family: var(--body); font-stretch: 100%; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; margin-bottom: 1rem; }
.footer-top li { margin-bottom: 0.45rem; }
.footer-top a { text-underline-offset: 0.25em; }
.footer-top address { line-height: 1.7; }
.social { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); transition: background-color 0.2s, color 0.2s, transform 0.16s var(--ease); }
.social a:active { transform: scale(0.94); }
.social .icon { width: 22px; height: 22px; }
.footer-bottom { position: relative; z-index: 1; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.28); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.92rem; opacity: 0.92; }
@media (hover: hover) and (pointer: fine) {
  .footer-top a:hover { text-decoration: underline; }
  .social a:hover { background: #fff; color: var(--red); }
}

/* ---------- Menu page ---------- */
.menu-top { position: relative; z-index: 2; margin-top: -2.1rem; }
.search { position: relative; max-width: 560px; }
.search .icon { position: absolute; left: 1.1rem; top: 26px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; min-height: 52px; padding: 0 1rem 0 3rem; border-radius: var(--r-field); background: #fff; border: 0; box-shadow: var(--shadow-lift); transition: box-shadow 0.2s; font-size: 1rem; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus-visible { outline: none; box-shadow: var(--shadow-lift), inset 0 0 0 2px var(--red); }
.search-count { min-height: 1.5em; margin-top: 0.6rem; font-size: 0.93rem; font-weight: 500; color: var(--ink-2); }
.menu-tools { position: sticky; top: 82px; z-index: var(--z-tools); margin-top: 0.75rem; }
.menu-tools-inner { background: #fff; border-radius: 999px; box-shadow: var(--shadow-card); padding: 0.4rem; }
.chips { position: relative; display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.row .u { font-weight: 500; color: var(--ink-3); font-size: 0.85em; }
.chip { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1.1rem; border-radius: 999px; background: var(--mist); font-weight: 600; font-size: 0.93rem; color: var(--ink-2); transition: background-color 0.2s, color 0.2s, transform 0.16s var(--ease); }
.chip:active { transform: scale(0.96); }
.chip[aria-current="true"] { background: var(--red); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-current="true"]):hover { background: var(--mist-2); color: var(--ink); } }

.menu-note { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--r-lg); background: var(--mist); color: var(--ink-2); font-size: 0.97rem; margin-top: 1.5rem; }
.menu-note .icon { color: var(--red); margin-top: 0.2rem; }
.menu-cat { padding-top: clamp(3rem, 6vw, 5rem); scroll-margin-top: 150px; }
.menu-cat-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 2rem; margin-bottom: 1.75rem; }
.menu-cat-head p { color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.25rem; }
.cards + .rows, .rows + .cards { margin-top: 2.25rem; }
.empty { text-align: left; padding: 4rem 0; }
.empty h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.empty p { margin-top: 0.75rem; color: var(--ink-2); }

.cart-bar { position: fixed; z-index: var(--z-bar); left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; padding-inline: 14px; pointer-events: none; transform: translateY(140%); transition: transform 0.55s var(--ease); }
.cart-bar.show { transform: none; }
.cart-bar a { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100%, 520px); min-height: 62px; padding: 0.5rem 0.6rem 0.5rem 1.4rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 18px 40px -14px rgba(30, 21, 23, 0.7); }
.cart-bar .sum { display: flex; flex-direction: column; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cart-bar .sum small { font-weight: 500; opacity: 0.8; font-size: 0.82rem; }
.cart-bar .go { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 46px; padding: 0 0.5rem 0 1.2rem; border-radius: 999px; background: var(--red); }
.cart-bar .go .btn-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }

/* ---------- Order + forms ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.panel { background: #fff; border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-card); }
.panel h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.25rem; }
.sticky-col { position: sticky; top: calc(var(--nav-h) + 1rem); }

.lines { display: grid; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 0.4rem 1rem; align-items: center; padding: 1rem 0; }
.line + .line { border-top: 1px dotted rgba(30, 21, 23, 0.28); }
.line:first-child { padding-top: 0; }
.line-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--mist); }
.line-noimg { width: 64px; height: 64px; border-radius: 14px; background: var(--mist); display: grid; place-items: center; }
.line-noimg .flower-bg { position: static; width: 34px; background-image: url("../assets/logo/flower-soft.png"); }
.line-info h3 { font-size: 1.05rem; }
.line-info .unit { font-size: 0.85rem; color: var(--ink-3); }
.line-end { display: grid; justify-items: end; gap: 0.35rem; }
.line-ctl { grid-column: 2 / -1; display: flex; align-items: center; gap: 1rem; }
.rm { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); min-height: 40px; text-decoration: underline; text-underline-offset: 0.25em; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.total strong { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.total .amt { font-family: var(--display); font-size: 2.2rem; font-weight: 800; font-stretch: 85%; font-variant-numeric: tabular-nums; }
.total-note { color: var(--ink-3); font-size: 0.88rem; margin-top: 0.25rem; }
.notice { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.25rem; padding: 0.9rem 1rem; border-radius: var(--r-field); background: var(--mist); color: var(--ink-2); font-size: 0.93rem; }
.notice .icon { color: var(--red); margin-top: 0.15rem; }
.quick { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

.field { margin-bottom: 1.15rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.45rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 0.8rem 1rem; border: 0; border-radius: var(--r-field); background: var(--mist); font-size: 1rem; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.2s, background-color 0.2s; }
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--red); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red-deep); background: #fff; }
.err { display: none; margin-top: 0.4rem; color: var(--red-deep); font-size: 0.9rem; font-weight: 500; }
.err.show { display: flex; gap: 0.4rem; align-items: center; }
.err .icon { width: 1.1em; height: 1.1em; }
.hint { margin-top: 0.4rem; font-size: 0.88rem; color: var(--ink-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.seg label { margin: 0; display: flex; align-items: center; gap: 0.7rem; min-height: 56px; padding: 0.7rem 1rem; border-radius: var(--r-field); background: var(--mist); cursor: pointer; font-weight: 600; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.2s, background-color 0.2s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; min-height: 1.5em; font-weight: 500; }
.form-status.bad { color: var(--red-deep); }
.confirm { text-align: left; }
.confirm .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin-bottom: 1.25rem; }
.confirm .tick .icon { width: 34px; height: 34px; }
.confirm h2 { margin-bottom: 0.75rem; }
.confirm ul { margin: 1.25rem 0; display: grid; gap: 0.4rem; color: var(--ink-2); }
.confirm .btn { margin-top: 0.75rem; }

.contact-list { display: grid; gap: 0.5rem; }
.contact-list a, .contact-list div.ci { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0; font-family: var(--display); font-weight: 700; font-stretch: 86%; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: break-word; }
.contact-list .ico { width: 52px; height: 52px; border-radius: 50%; background: rgba(190, 21, 34, 0.1); color: var(--red); display: grid; place-items: center; flex: none; transition: background-color 0.2s, color 0.2s; }
.contact-list small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover .ico { background: var(--red); color: #fff; } }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); background: var(--mist); }

.stats li { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 2rem; align-items: baseline; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.stats li:last-child { border-bottom: 1px solid var(--line); }
.stats .t { font-family: var(--display); font-weight: 760; font-stretch: 80%; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.stats .m { color: var(--ink-2); text-align: right; }

.nf { min-height: 100svh; display: grid; align-content: center; }
.nf h1 { font-size: clamp(3.2rem, 11vw, 7rem); font-weight: 800; font-stretch: 76%; line-height: 0.92; max-width: 12ch; }
.nf p { margin-top: 1.25rem; color: rgba(255, 255, 255, 0.92); font-size: 1.2rem; }
.nf .hero-actions { margin-top: 2rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
  .order-grid { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav { padding-left: 0.9rem; }
  .nav-brand { margin-right: 0.5rem; }
  .nav-order { margin-left: 0.25rem; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(44svh, 1fr); min-height: 100svh; }
  .hero-copy { padding: calc(var(--nav-h) + 1.5rem) 1.25rem 2rem; }
  .hero-media { min-height: 44svh; }
  .hero-stamp { left: auto; right: 1.25rem; bottom: auto; top: 0; transform: translateY(-50%); width: 88px; height: 88px; }
  .hero-stamp .flower-bg { width: 52px; }
  .hero > .flower-bg { width: 90vmin; left: -30vmin; bottom: auto; top: 28svh; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split .photo-grid, .split .photo { order: 2; }
  .rows { grid-template-columns: 1fr; }
  .index .m .txt { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .btn { min-height: 54px; }
  .hero-actions .btn-primary { width: 100%; justify-content: space-between; }
  .two { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .line { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .line-img, .line-noimg { width: 56px; height: 56px; }
  .head-row { align-items: start; flex-direction: column; }
  .rail-ctl { display: none; }
  .cart-bar a { padding-left: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .turn { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* social icons on white */
.social.dark { margin-top: 1.5rem; }
.social.dark a { background: var(--mist); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .social.dark a:hover { background: var(--red); color: #fff; } }

@media (max-width: 560px) {
  .contact-list a, .contact-list div.ci { gap: 0.8rem; font-size: 1.12rem; }
  .contact-list .ico { width: 44px; height: 44px; }
}

.on-red-field .hours { gap: 0.6rem; margin-top: 0; }
.on-red-field .hours div { display: grid; gap: 0; }

/* delivery app links */
.apps { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.app-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.1rem 0 1.25rem; border-radius: 999px; background: var(--mist); font-weight: 600; transition: transform 0.16s var(--ease), background-color 0.2s, color 0.2s; }
.app-link:active { transform: scale(0.97); }
.app-link .icon { color: var(--red); transition: color 0.2s; }
@media (hover: hover) and (pointer: fine) { .app-link:hover { background: var(--red); color: #fff; } .app-link:hover .icon { color: #fff; } }
.panel-note { margin-top: 1.25rem; }
@media (min-width: 1041px) {
  .order-grid { grid-template-rows: auto 1fr; }
  .order-grid #cart-panel { grid-column: 1; grid-row: 1; }
  .order-grid #apps-panel { grid-column: 1; grid-row: 2; }
  .order-grid .sticky-col { grid-column: 2; grid-row: 1 / span 2; }
}
