/* ============================================================
   Half Baked Sweets and Such — stylesheet
   ============================================================ */

:root {
  /* Warm ivory + chocolate + caramel + soft rose */
  --bg: #fbf3e6;
  --bg-soft: #f3e4cb;
  --bg-rose: #fbe5dc;
  --card: #ffffff;
  --ink: #2a1c12;
  --ink-soft: #5a4432;
  --muted: #927b66;
  --line: #ead4b6;
  --line-soft: #f3e6d2;
  --accent: #c98a4b;            /* honey-caramel */
  --accent-dark: #9c6730;
  --accent-soft: #f6dfc2;
  --rose: #d97a6a;              /* warm coral-rose for secondary accents */
  --rose-soft: #f6d4cb;
  --leaf: #7a9b5c;              /* small accent for fresh/in-stock badges */
  --ok: #3f7d4e;
  --ok-bg: #e5f0e6;
  --err: #b23a2f;
  --err-bg: #f9e5e2;

  --r-sm: 10px;
  --r: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(42, 28, 18, .05), 0 4px 14px rgba(42, 28, 18, .06);
  --shadow-md: 0 8px 24px rgba(42, 28, 18, .09), 0 22px 48px rgba(42, 28, 18, .07);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-script:  "Caveat", "Brush Script MT", cursive;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

main.container { flex: 1; padding-top: 8px; padding-bottom: 56px; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rose);
  line-height: 1;
  margin-bottom: .35rem;
  transform: rotate(-2deg);
}
.eyebrow.tiny {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  transform: none;
}

/* --- Header / nav --- */
.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 236, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 36px;
}
.admin-header {
  background: #2e2117;
  border-bottom-color: #463525;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent-dark); }
.admin-header .brand,
.admin-header a { color: #fbf5ec; }
.admin-header .muted { color: #c4ad95; }

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .96rem;
}
nav a:hover { color: var(--accent-dark); }
.admin-header nav a:hover { color: #f4cdb2; }

.inline { display: inline; margin: 0; padding: 0; }
button.link {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  padding: 0;
}
button.link:hover { color: var(--accent); }

/* --- Flash messages --- */
.flash-wrap { margin-bottom: 22px; }
.flash {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  font-size: .94rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.flash-error { background: var(--err-bg); color: var(--err); border-color: #efc3bc; }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: #bcdcc0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(198, 106, 58, .28);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(198, 106, 58, .32);
}
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 1.04rem; }
.btn-rose { background: var(--rose); box-shadow: 0 4px 12px rgba(217, 122, 106, .32); }
.btn-rose:hover { background: #c4624f; box-shadow: 0 8px 20px rgba(217, 122, 106, .36); }

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--accent);
}
.btn.danger { background: var(--err); box-shadow: 0 2px 8px rgba(178, 58, 47, .26); }
.btn.danger:hover { background: #942f26; }
.btn.small { padding: 7px 14px; font-size: .84rem; }

/* --- Cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.empty-state {
  text-align: center;
  padding: 48px 26px;
  border-style: dashed;
  border-color: var(--line);
  background: #fffdf9;
}
.empty-state h2, .empty-state h3 { margin-bottom: .3em; }

/* --- Hero (bakery-stand vibe) --- */
.hero {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(40px, 7vw, 84px) clamp(28px, 5vw, 72px);
  margin-bottom: 40px;
  overflow: hidden;
  /* Layered: subtle "kraft paper" grain on top of warm radial light,
     on top of a base gradient that fades from cream → caramel. */
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.43  0 0 0 0 0.26  0 0 0 0 0.10  0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(circle at 88% 18%, rgba(217, 122, 106, .22) 0, transparent 38%),
    radial-gradient(circle at 12% 88%, rgba(201, 138, 75, .22) 0, transparent 42%),
    linear-gradient(140deg, #fbe8d1 0%, #f6d3b1 50%, #f0c298 100%);
  background-size: 220px 220px, auto, auto, auto;
  border: 1px solid #ecc9a4;
  box-shadow: inset 0 -3px 0 rgba(120, 70, 30, .08);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 220px; height: 220px;
  right: -60px; top: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 70%);
}
.hero::after {
  width: 160px; height: 160px;
  left: -40px; bottom: -40px;
  background: radial-gradient(circle, rgba(217, 122, 106, .25) 0, rgba(217, 122, 106, 0) 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }

/* --- Hero bakery scene (wheat + bread + cookie + steam) --- */
.hero-scene {
  position: absolute;
  right: clamp(-20px, 3vw, 60px);
  bottom: clamp(-30px, -2vw, 0px);
  width: clamp(280px, 38vw, 480px);
  height: clamp(220px, 30vw, 360px);
  z-index: 1;
  pointer-events: none;
}
.hero-scene svg {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(120, 70, 30, .22));
}
.hero-wheat {
  width: 24%;
  left: 4%;
  bottom: 4%;
  transform: rotate(-22deg);
  transform-origin: bottom center;
  filter: drop-shadow(0 6px 10px rgba(120, 70, 30, .18));
}
.hero-cookie {
  width: 56%;
  right: 2%;
  top: 6%;
  transform: rotate(-8deg);
  animation: cookieFloat 7s ease-in-out infinite;
}
.hero-loaf {
  width: 78%;
  right: 4%;
  bottom: 0;
  transform: rotate(-3deg);
  z-index: 2;
}
.hero-steam {
  width: 30%;
  right: 26%;
  top: -6%;
  filter: blur(.4px);
}
.hero-steam .wisp {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  animation: steamRise 4.5s ease-in-out infinite;
}
.hero-steam .wisp-2 { animation-delay: .9s; }
.hero-steam .wisp-3 { animation-delay: 1.8s; }
@keyframes steamRise {
  0%   { stroke-dashoffset: 130; opacity: 0; transform: translateY(8px); }
  25%  { opacity: .55; }
  100% { stroke-dashoffset: 0;   opacity: 0; transform: translateY(-12px); }
}
@keyframes cookieFloat {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(-5deg) translateY(-6px); }
}
@media (max-width: 720px) {
  .hero-scene { display: none; }
}

/* --- Hand-drawn "Today's Fresh Bakes" chalk stamp --- */
.hero-stamp {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 4vw, 60px);
  top: clamp(20px, 4vw, 36px);
  width: clamp(110px, 13vw, 150px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 245, 220, .82);
  border: 2px dashed #a85c4a;
  color: #6b2e22;
  text-align: center;
  transform: rotate(-12deg);
  box-shadow:
    0 6px 14px rgba(120, 70, 30, .14),
    inset 0 0 0 6px rgba(255, 255, 255, .35);
  padding: 10px;
  pointer-events: none;
  animation: stampSway 6s ease-in-out infinite;
}
.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(168, 92, 74, .45);
}
.hero-stamp .stamp-top,
.hero-stamp .stamp-bot {
  font-family: var(--font-script, "Caveat", cursive);
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}
.hero-stamp .stamp-big {
  font-family: var(--font-display, "Fraunces", serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1;
  color: var(--rose, #d97a6a);
  margin: 2px 0;
}
@keyframes stampSway {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(-9deg); }
}
@media (max-width: 720px) {
  .hero-stamp {
    right: 16px;
    top: 16px;
    width: 92px;
  }
}

/* --- Floating flour/sprinkle specks --- */
.hero-speck {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero-speck.speck-1 { width: 8px;  height: 8px;  background: rgba(255, 255, 255, .65); top: 22%;  left: 48%; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.hero-speck.speck-2 { width: 5px;  height: 5px;  background: rgba(217, 122, 106, .55); top: 70%;  left: 52%; }
.hero-speck.speck-3 { width: 6px;  height: 6px;  background: rgba(201, 138, 75, .55); top: 38%;  left: 64%; }
.hero-speck.speck-4 { width: 4px;  height: 4px;  background: rgba(74, 37, 17, .45);   top: 80%;  left: 44%; }
@media (max-width: 720px) {
  .hero-speck { display: none; }
}
.hero h1 {
  margin-bottom: .3em;
  color: #2d1808;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
}
.hero p {
  font-size: 1.12rem;
  color: #6a4a32;
  margin-bottom: 1.7rem;
  max-width: 34em;
}
.hero .eyebrow { color: var(--rose); }

/* --- Section headings --- */
.section-head { margin: 48px 0 22px; text-align: center; }
.section-head.left { text-align: left; }
.section-head .eyebrow { margin-bottom: 0; }
.section-head h2 {
  margin: 0 0 .3em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-dark);
}
.section-head .ornament {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto .8rem;
  color: var(--accent);
}
.section-head .ornament::before,
.section-head .ornament::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.section-head .ornament span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.section-head p { margin: 0; color: var(--muted); max-width: 36em; margin-inline: auto; }
.section-head.left p { margin-inline: 0; }

/* --- Menu banner --- */
.menu-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
}
.menu-banner h2 { margin: 0; }
.menu-facts {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.menu-facts li {
  padding-left: 16px;
  border-left: 3px solid var(--accent-soft);
}
.fact-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.fact-value { font-weight: 600; color: var(--ink); font-size: .95rem; }
.menu-notes {
  flex-basis: 100%;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

/* --- Notices --- */
.notice {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
  padding: 22px;
}
.notice-closed {
  background: var(--accent-soft);
  border-color: #ecc9ac;
}
.notice-closed strong { font-size: 1.05rem; }

/* --- Menu items grid --- */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
  margin-bottom: 12px;
}
.item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.item::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--rose));
  opacity: 0;
  transition: opacity .2s ease;
  border-radius: var(--r) var(--r) 0 0;
}
.item:hover::before { opacity: 1; }
.item.sold-out { opacity: .72; }
.item.sold-out:hover { transform: none; box-shadow: var(--shadow-sm); }

.item-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.item-photo-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, #f7e2cf, transparent 60%),
    linear-gradient(140deg, #f1e2cd, #e9d2b3);
}
.item-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 600;
  color: rgba(164, 80, 42, .35);
}
.item-price {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 12px rgba(217, 122, 106, .35);
  letter-spacing: .01em;
}
.item-soldout {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.item-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 14px 0;
  flex-wrap: wrap;
}
.item-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 7px;
  border: 2px solid var(--line);
  cursor: pointer;
  opacity: .65;
  transition: opacity .12s ease, border-color .12s ease;
}
.item-thumb:hover { opacity: 1; }
.item-thumb.active { border-color: var(--accent); opacity: 1; }

.item-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.item-name { margin: 0; font-size: 1.18rem; }
.item-desc {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
  flex: 1;
}
.item-left {
  font-size: .8rem;
  margin-top: 6px;
}
.item-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.opt-row.opt-unavailable { opacity: .5; }
.opt-info { display: flex; flex-direction: column; line-height: 1.3; }
.opt-label { font-weight: 600; font-size: .92rem; }
.opt-price { font-size: .82rem; color: var(--muted); }
.opt-units { color: var(--muted); }
input[type=number].qty {
  width: 72px;
  padding: 7px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 600;
  flex-shrink: 0;
}
input[type=number].qty:disabled { background: var(--bg-soft); color: var(--muted); }

/* --- Forms --- */
.form-card { padding: 28px; }
form .row { margin-bottom: 18px; }
form .row:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=datetime-local],
input[type=file], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  background: #fffdf9;
  color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 106, 58, .16);
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.grid-2 .row { margin-bottom: 0; }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf9;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}
.radio-pill:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
form .actions { margin-top: 22px; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}
th, td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
  vertical-align: top;
}
th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fffaf2; }
tfoot th { background: #fff; border-top: 2px solid var(--line); }

/* --- Pills --- */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.pill.pending { background: #fdedc4; color: #8a6410; }
.pill.confirmed { background: #d3e7fb; color: #1f568a; }
.pill.fulfilled { background: #d6edd8; color: #2f6b3c; }
.pill.cancelled { background: #f6d6d3; color: var(--err); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 0 28px;
  color: var(--ink-soft);
  font-size: .92rem;
  margin-top: auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  margin-bottom: 28px;
}
.footer-col p { margin: 0 0 .8em; line-height: 1.55; }
.footer-col p:last-child { margin-bottom: 0; }
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-fineprint strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.footer-fineprint p { font-size: .86rem; color: var(--ink-soft); max-width: 60em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.site-footer .footer-script {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--rose);
  display: block;
  margin-bottom: -2px;
  line-height: 1;
}
@media (max-width: 720px) {
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; }
}

/* --- Inline checkbox label (admin forms) --- */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.checkbox-inline input { width: auto; margin: 0; }

/* --- Contact list (about page) --- */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-size: 1rem;
}
.contact-list a { font-weight: 600; word-break: break-word; }
.contact-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
@media (max-width: 480px) {
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* --- Stand / map (storefront + admin preview) --- */
.stand-card {
  margin-top: 28px;
  padding: 8px 4px 0;
}
.stand-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 24px;
  align-items: stretch;
}
.stand-info {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.stand-address {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.stand-address span { display: block; }
.stand-directions {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
}
.stand-info .btn { align-self: flex-start; margin-top: 4px; }
.stand-map-wrap {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}
.stand-map {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
@media (max-width: 720px) {
  .stand-grid { grid-template-columns: 1fr; }
  .stand-map { height: 260px; }
}

/* --- Decorative section divider --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 32px auto;
  color: var(--accent);
}
.divider::before,
.divider::after {
  content: "";
  display: block;
  height: 1px;
  width: 60px;
  background: currentColor;
  opacity: .45;
}
.divider .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* --- Login pages --- */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(164, 80, 42, .1) 1.5px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(150deg, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 24px;
}
.login-card {
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-md);
  margin: 0;
}
.login-card h1 { font-size: 1.8rem; }

/* ============================================================
   Admin UI helpers — page intros, status rows, stats, tiles
   ============================================================ */

.welcome {
  margin: 4px 0 24px;
}
.welcome h1 { margin: 4px 0 .25em; }
.welcome p  { color: var(--muted); max-width: 56em; margin: 0; }
.welcome .actions { margin-top: 14px; }

.card-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.help-text {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 4px 0 18px;
  line-height: 1.55;
}
.help-text strong { color: var(--ink); }
.help-text em { font-style: italic; }

.small { font-size: .82rem; }

/* Status block — colored-dot rows with description + inline action */
.status-card { padding: 22px 26px; }
.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.status-row.simple {
  background: transparent;
  border-color: var(--line-soft);
  margin-top: 12px;
}
.status-row > div:not(.status-action) { flex: 1; }
.status-row strong { font-size: 1rem; line-height: 1.3; }
.status-row .muted { line-height: 1.45; }
.status-action { flex-shrink: 0; }
.status-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .04);
}
.status-dot.dot-on  { background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 125, 78, .15); }
.status-dot.dot-off { background: var(--err); box-shadow: 0 0 0 4px rgba(178, 58, 47, .15); }
@media (max-width: 600px) {
  .status-row { flex-direction: column; align-items: flex-start; }
  .status-action { width: 100%; }
}

/* This-week stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.stat {
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.stat-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-dark);
}
.stat-value-sm {
  display: block;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  line-height: 1.3;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

/* Settings tiles */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.settings-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.settings-tile:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.settings-tile strong { font-size: 1rem; }

/* --- Compact row-action buttons (admin table cells) --- */
.row-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 132px;
}
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  font-size: .82rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.25;
  white-space: nowrap;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.row-action:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--ink);
  text-decoration: none;
}
.row-action-count {
  background: var(--bg-soft);
  color: var(--ink-soft);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}
.row-action:hover .row-action-count {
  background: #fff;
  color: var(--accent-dark);
}
.row-action-remove {
  color: var(--err);
  border-color: #eccfca;
  justify-content: center;
}
.row-action-remove:hover {
  background: #fbe7e3;
  border-color: var(--err);
  color: var(--err);
}

/* --- Item library (admin dashboard quick-add) --- */
.library-card {
  position: relative;
}
.lib-search {
  width: 100%;
  margin: 6px 0 10px;
}
.lib-section-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 12px;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.lib-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.lib-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(42, 28, 18, .06);
}
.lib-item-photo {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.lib-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lib-item-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, #f7e2cf, transparent 60%),
    linear-gradient(140deg, #f1e2cd, #e9d2b3);
}
.lib-item-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: rgba(164, 80, 42, .35);
}
.lib-fav-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--accent);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}
.lib-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lib-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.lib-item-name {
  font-size: 1rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-item-price {
  font-weight: 700;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.lib-item-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .82rem;
}
.lib-item-desc {
  margin: 4px 0 0;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lib-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.lib-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.lib-target-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  margin: 10px 0 14px;
}
.lib-target-picker label { margin: 0; }
.lib-target-picker small { flex-basis: 100%; }
.lib-target-select {
  flex: 1;
  min-width: 220px;
}
.lib-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
}
.lib-photo-thumb {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.lib-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lib-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 14, 8, .72);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lib-photo-remove:hover { background: var(--rose); }
@media (max-width: 480px) {
  .lib-item { flex-direction: column; }
  .lib-item-photo { width: 100%; height: 140px; }
}

/* --- Confirmation order-number hero --- */
.order-hero {
  text-align: center;
  padding: 36px 28px 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 122, 106, .12) 0, transparent 60%),
    var(--card);
}
.order-hero .eyebrow { margin-bottom: 4px; }
.order-number-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 36px;
  margin: 10px auto 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--r);
}
.order-number-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.order-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}
.order-hero h3 { margin-top: 18px; }

/* --- Payment methods (admin + storefront) --- */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.payment-card .payment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.payment-card h2 { margin: 0; }
.enable-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.enable-toggle input { width: auto; }
.qr-block {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.qr-preview {
  display: block;
  width: 160px;
  height: 160px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin: 8px 0;
  background: #fff;
  padding: 6px;
}
.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.pay-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 14px;
  text-align: center;
}
.pay-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.pay-qr {
  display: block;
  width: 160px;
  height: 160px;
  margin: 8px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 6px;
}

/* --- Admin item gallery --- */
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.admin-gallery-item {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 8px;
  background: #fffdf9;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.admin-gallery-item img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  border-radius: 7px;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .menu-facts { margin-left: 0; gap: 20px; }
  .hero { padding: 32px 24px; }
  nav { gap: 16px; }
  .card { padding: 20px; }
}

@media (max-width: 460px) {
  .menu-facts { flex-direction: column; gap: 14px; }
  .nav { gap: 10px; }
  nav { width: 100%; flex-wrap: wrap; }
}

/* =================================================================== */
/* Bakery-stand theme — page-wide                                       */
/* =================================================================== */

/* Wheat-sprig flourish in section headings: turns the existing
   .ornament's center dot into a small wheat-stalk silhouette and the
   side lines into braided rules. */
.section-head .ornament::before,
.section-head .ornament::after {
  width: 56px;
  height: 6px;
  background:
    linear-gradient(to right, transparent 0, currentColor 18%, currentColor 82%, transparent 100%);
  opacity: .55;
}
.section-head .ornament span {
  width: 22px;
  height: 22px;
  background: transparent;
  border-radius: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c98a4b' stroke-width='1.6' stroke-linecap='round'><path d='M12 22 V6'/><path d='M12 6 Q 8 7 6 4'/><path d='M12 6 Q 16 7 18 4'/><path d='M12 10 Q 8 11 6 8'/><path d='M12 10 Q 16 11 18 8'/><path d='M12 14 Q 8 15 6 12'/><path d='M12 14 Q 16 15 18 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Kraft-paper accent card — for "about/story" sections and the stand
   info card. Gives them a wrapped, hand-tied feel. */
.kraft-card {
  position: relative;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0.43  0 0 0 0 0.26  0 0 0 0 0.10  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(160deg, #f6e2c2 0%, #efd1a8 100%);
  background-size: 220px 220px, auto;
  border: 1px solid #e1bd8e;
  box-shadow:
    0 8px 20px rgba(120, 70, 30, .12),
    inset 0 -3px 0 rgba(120, 70, 30, .07);
  border-radius: var(--r-md, 12px);
  padding: 36px clamp(24px, 4vw, 44px);
}
.kraft-card .eyebrow { color: var(--rose, #d97a6a); }
.kraft-card h2, .kraft-card h3 { color: #432210; }
.kraft-card p { color: #5a3a20; }
.kraft-card .script {
  font-family: var(--font-script, "Caveat", cursive);
  font-size: 1.35rem;
  color: var(--rose, #d97a6a);
  line-height: 1.1;
}

/* Twine-tied tag accent that can be pinned on any card or photo. */
.tag-pin {
  position: absolute;
  top: -14px;
  left: 18px;
  background: #fff5e0;
  color: #6b2e22;
  border: 1px dashed #a85c4a;
  font-family: var(--font-script, "Caveat", cursive);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 4px 14px 4px 22px;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 0 4px 8px rgba(120, 70, 30, .14);
}
.tag-pin::before {
  content: "";
  position: absolute;
  left: 7px; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #a85c4a;
  transform: translateY(-50%);
}

/* Story split — image (or illustration) beside text block. */
.story-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.story-split .story-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f7d9a8, #d6a361 60%, #9c6a30 100%);
  box-shadow:
    0 12px 28px rgba(120, 70, 30, .18),
    inset 0 0 0 6px rgba(255, 245, 220, .35);
  max-width: 320px;
  width: 100%;
  margin-inline: auto;
  position: relative;
}
.story-split .story-art svg { width: 65%; height: auto; }
.story-split blockquote {
  margin: 0;
  font-family: var(--font-script, "Caveat", cursive);
  font-size: 1.55rem;
  line-height: 1.35;
  color: #6b3a1f;
  border-left: 3px solid var(--rose, #d97a6a);
  padding-left: 14px;
  margin-top: 14px;
}
@media (max-width: 720px) {
  .story-split { grid-template-columns: 1fr; }
}

/* Themed item-card upgrades — give every menu card a small "price tag"
   that hangs off the photo corner, and warm up the placeholder backdrop. */
.item .item-price {
  font-family: var(--font-script, "Caveat", cursive);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .01em;
  padding: 4px 14px 4px 18px;
  background: #fff5e0;
  color: #6b2e22;
  border: 1px dashed #a85c4a;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(120, 70, 30, .14);
  position: absolute;
  top: 14px; right: 14px;
  transform: rotate(-4deg);
}
.item .item-price::before {
  content: "";
  position: absolute;
  left: 6px; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #a85c4a;
  transform: translateY(-50%);
}
.item-photo-placeholder {
  background:
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(180, 110, 50, .06) 6px 7px),
    radial-gradient(circle at 35% 30%, #f7e2cf, transparent 60%),
    linear-gradient(140deg, #f1e2cd, #e9d2b3);
}

/* Footer "receipt" feel — narrow centered card with monospace touch
   for the address/hours line. */
.bakery-footer {
  margin: 64px auto 32px;
  max-width: 560px;
  background: #fffaf0;
  border: 1px solid #e1bd8e;
  border-radius: var(--r-sm, 8px);
  padding: 22px 26px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 14px rgba(120, 70, 30, .08);
}
.bakery-footer::before, .bakery-footer::after {
  content: "";
  position: absolute;
  left: 0; right: 0; height: 12px;
  background:
    radial-gradient(circle at 6px 12px, transparent 6px, #fffaf0 6.5px) repeat-x;
  background-size: 12px 12px;
}
.bakery-footer::before { top: -12px; }
.bakery-footer::after  { bottom: -12px; transform: rotate(180deg); }
.bakery-footer .script {
  font-family: var(--font-script, "Caveat", cursive);
  font-size: 1.4rem;
  color: var(--rose, #d97a6a);
  margin: 0 0 6px;
}
.bakery-footer .small {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .82rem;
  color: #6b3a1f;
  letter-spacing: .04em;
}

/* Subtle warm background gloss behind the whole page (overlays body bg).
   Only triggers if a parent has .bakery-page set. */
.bakery-page {
  background:
    radial-gradient(900px 540px at 90% -10%, rgba(217, 122, 106, .12), transparent 70%),
    radial-gradient(800px 480px at -10% 60%, rgba(201, 138, 75, .10), transparent 70%);
}

/* =================================================================== */
/* Accent-color variants (apply via body.accent-X)                      */
/* =================================================================== */
/* Defaults already live in :root — these just retint --rose, which is
   used by buttons, price tags, chalk stamp, section eyebrows, etc. */
body.accent-honey { --rose: #c98a4b; }
body.accent-berry { --rose: #9d4f48; }

/* =================================================================== */
/* Classic theme — reverts the bakery additions so the site looks like  */
/* the pre-bakery design. Applied via body.theme-classic.               */
/* =================================================================== */

/* Hide every piece of bakery scenery. */
body.theme-classic .hero-scene,
body.theme-classic .hero-stamp,
body.theme-classic .hero-speck { display: none !important; }

/* Hero background — drop the kraft-paper grain, restore the original
   three-radial-gradient look. */
body.theme-classic .hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 122, 106, .22) 0, transparent 38%),
    radial-gradient(circle at 12% 88%, rgba(201, 138, 75, .22) 0, transparent 42%),
    linear-gradient(140deg, #fbe8d1 0%, #f6d3b1 50%, #f0c298 100%);
  background-size: auto;
  box-shadow: none;
}

/* Section ornament — back to thin line + solid dot. */
body.theme-classic .section-head .ornament::before,
body.theme-classic .section-head .ornament::after {
  width: 36px;
  height: 1px;
  background: currentColor;
}
body.theme-classic .section-head .ornament span {
  width: 8px;
  height: 8px;
  background: currentColor;
  background-image: none;
  border-radius: 50%;
}

/* Item price — back to the solid rose pill. */
body.theme-classic .item .item-price {
  font-family: inherit;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  padding: 7px 14px;
  background: var(--rose);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 12px rgba(217, 122, 106, .35);
  transform: none;
}
body.theme-classic .item .item-price::before { display: none; }

/* Item photo placeholder — drop the diagonal hatch. */
body.theme-classic .item-photo-placeholder {
  background:
    radial-gradient(circle at 30% 25%, #f7e2cf, transparent 60%),
    linear-gradient(140deg, #f1e2cd, #e9d2b3);
}

/* Hide the new bakery-only sections in the home template. */
body.theme-classic .home-story-card,
body.theme-classic .home-themed-stand-extras { display: none; }

/* =================================================================== */
/* Admin theme picker                                                   */
/* =================================================================== */
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px;
  border: 2px solid var(--line-soft, #e8d5b6);
  border-radius: var(--r-sm, 8px);
  background: #fff;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.theme-option:hover { border-color: var(--accent, #c98a4b); }
.theme-option.is-selected {
  border-color: var(--accent, #c98a4b);
  box-shadow: 0 4px 14px rgba(120, 70, 30, .12);
}
.theme-option input { margin-top: 4px; }
.theme-option-body { display: flex; flex-direction: column; gap: 2px; }
.accent-options { display: flex; flex-wrap: wrap; gap: 10px; }
.accent-option {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 2px solid var(--line-soft, #e8d5b6);
  border-radius: var(--r-pill, 999px);
  background: #fff;
  cursor: pointer;
  transition: border-color .12s ease;
}
.accent-option:hover { border-color: var(--swatch); }
.accent-option.is-selected { border-color: var(--swatch); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.accent-option input { display: none; }
.accent-option .accent-swatch {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px #fff;
}
@media (max-width: 480px) {
  .theme-options { grid-template-columns: 1fr; }
}
