/* The Morning Glori Bread Company site
   Palette from the weekly menu flyer + logo: cream, sage, terracotta, brown, heart red.
   Logo files live at /assets/logo.png (full circle) and /assets/logo-arc.png (nav). */

:root {
  --cream: #f6efe3;
  --cream-deep: #efe4d2;
  --parchment: #f3e6d0;
  --paper: #fffaf2;
  --sage: #6e7f5a;
  --sage-dark: #556346;
  --sage-soft: #8a9870;
  --sage-mist: #e7ebd9;
  --terracotta: #c4895a;
  --tan: #d4b48a;
  --tan-soft: #e8d3b3;
  --brown: #5a3a1e;
  --brown-soft: #7a5530;
  --ink: #3f2a16;
  --heart: #e41e26;
  --line: rgba(90, 58, 30, 0.14);
  --shadow: 0 18px 40px rgba(90, 58, 30, 0.12);
  --radius: 22px;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-brand: "Josefin Sans", "Gill Sans", "Helvetica Neue", sans-serif;
  --header-h: 4.5rem;
  --dock-h: 0px;
  --dock-offset: 0px;
  --loaf-h: 76px;
  --loaf-overhang-top: 15px;
  --loaf-rule-gap: 0.7rem;
  --loaf-space-below: 0.7rem;
  --badge-clearance: 0px;
  --content-max: 1120px;
  --content-gutter: 1rem;
  --content-width: min(var(--content-max), calc(100% - 2 * var(--content-gutter)));
}


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-bottom: var(--dock-offset); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse at 12% -10%, rgba(212, 180, 138, 0.28), transparent 46%),
    radial-gradient(ellipse at 100% 0%, rgba(110, 127, 90, 0.14), transparent 42%),
    radial-gradient(ellipse at 50% 120%, rgba(196, 137, 90, 0.12), transparent 40%),
    var(--cream);
  min-height: 100%;
  padding-bottom: var(--dock-offset);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); }
a:hover { color: var(--brown); }
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--brown);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 0.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  padding-bottom: calc(var(--loaf-h) - var(--loaf-overhang-top) + var(--loaf-space-below));
}
.nav-wrap {
  position: relative;
  z-index: 5;
  background: rgba(246, 239, 227, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: visible;
}
.nav-bar {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0.32rem 0 0.18rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  color: #5a3a1e;
  flex: 0 1 auto;
  min-width: 0;
  position: relative;
  z-index: 5;
}
.brand-wordmark {
  display: block;
  color: #5a3a1e;
  font-family: var(--font-brand);
  line-height: 1;
}
.wm-line {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.34em;
  white-space: nowrap;
}
.wm-the,
.wm-co,
.wm-main,
.wm-title {
  line-height: 1;
}
.wm-the,
.wm-co {
  font-weight: 500;
  font-size: clamp(0.86rem, 0.55vw + 0.68rem, 1.08rem);
  letter-spacing: 0.1em;
  padding-right: 0.06em;
  flex: 0 0 auto;
  white-space: nowrap;
  color: #5a3a1e;
}
.wm-title {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
}
.wm-main {
  display: block;
  font-weight: 700;
  font-size: clamp(1.12rem, 1vw + 0.68rem, 1.5rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #5a3a1e;
}
.wm-tagline {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  margin-top: 0.06em;
  font-weight: 500;
  font-size: clamp(0.54rem, 0.28vw + 0.44rem, 0.68rem);
  color: #5a3a1e;
  line-height: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  column-gap: 0;
  z-index: 6;
  pointer-events: none;
}
.wm-tag-start,
.wm-tag-end {
  white-space: nowrap;
  letter-spacing: 0.28em;
}
.wm-tag-start {
  text-align: right;
  padding-right: 0;
}
.wm-tag-end {
  text-align: left;
  padding-left: 0;
  padding-right: 0.28em;
}
.wm-heart {
  color: #e41e26;
  display: block;
  width: 1.50em;
  height: 1.40em;
  margin: 0.04em 0.30em 0;
  letter-spacing: 0;
  position: relative;
  z-index: 7;
  line-height: 0;
  justify-self: center;
  flex: 0 0 auto;
  transform: rotate(-11deg);
  transform-origin: 50% 48%;
}
.wm-heart-back,
.wm-heart-red {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}
.wm-heart-back {
  transform: scale(1.16);
  z-index: 0;
}
.wm-heart-red {
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(63, 42, 22, 0.22));
}
.wm-heart-red path { fill: #E41E26; fill-opacity: 1; }
.wm-heart-back path { fill: #f6efe3; fill-opacity: 1; }
.wm-glori { font-weight: 700; }
.wm-i {
  font-weight: 700;
  letter-spacing: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin-left: auto;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
}
.brand-emblem {
  display: flex;
  align-items: center;
  width: var(--content-width);
  margin: 0 auto;
  height: 0;
  position: relative;
  z-index: auto;
  pointer-events: none;
}
.brand-rule-seg {
  flex: 1 1 auto;
  height: 1.5px;
  background: #5a3a1e;
  min-width: 0;
}
.brand-loaf {
  position: relative;
  z-index: 6;
  height: var(--loaf-h);
  width: auto;
  flex: 0 0 auto;
  display: block;
  margin: 0 var(--loaf-rule-gap);
  position: relative;
  top: calc((var(--loaf-h) / 2) - var(--loaf-overhang-top));
}

nav.main-nav {
  margin-left: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.12rem 0.8rem;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--brown);
  font-weight: 550;
  font-size: clamp(0.72rem, 0.28vw + 0.56rem, 0.86rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
nav.main-nav a[aria-current="page"] { color: var(--sage-dark); box-shadow: inset 0 -2px 0 var(--sage); }
.cart-btn {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--brown);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font: inherit;
  font-weight: 600;
  font-size: clamp(0.74rem, 0.22vw + 0.62rem, 0.84rem);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cart-btn:hover { background: var(--sage-mist); }
.cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--heart);
  color: #fff;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}
.cart-count[data-count="0"] { display: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  color: var(--brown);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
}

@media (max-width: 1100px) {
  :root {
    --loaf-h: 70px;
    --loaf-overhang-top: 13px;
  }
  .nav-bar { padding: 0.28rem 0 0.18rem; gap: 0.55rem; }
  .wm-line { gap: 0.26em; }
  nav.main-nav { gap: 0.08rem 0.45rem; }
  .nav-actions { gap: 0.35rem 0.42rem; }
  .cart-btn { padding: 0.28rem 0.52rem; }
}

@media (max-width: 900px) {
  :root {
    --loaf-h: 64px;
    --loaf-overhang-top: 12px;
  }
  .nav-bar { padding: 0.26rem 0 0.16rem; gap: 0.4rem; }
  .wm-line { gap: 0.22em; }
  .wm-the, .wm-co { font-size: clamp(0.72rem, 1.05vw + 0.52rem, 0.88rem); letter-spacing: 0.08em; }
  .wm-main { font-size: clamp(0.98rem, 1.5vw + 0.62rem, 1.2rem); }
  nav.main-nav { gap: 0.06rem 0.38rem; }
  nav.main-nav a { font-size: 0.72rem; }
  .nav-actions { gap: 0.28rem 0.35rem; }
  .cart-btn { padding: 0.24rem 0.46rem; font-size: 0.72rem; }
}

@media (max-width: 820px) {
  :root {
    --loaf-h: 60px;
    --loaf-overhang-top: 0px;
    --loaf-rule-gap: 0.5rem;
    --loaf-space-below: 0.6rem;
  }
  .nav-toggle, nav.main-nav, .cart-btn, .nav-actions { display: none !important; }
  .nav-bar {
    padding: 0.42rem 0 0.72rem;
    justify-content: center;
    align-items: baseline;
    flex-wrap: nowrap;
  }
  /* Loaf sits fully below the rule so it cannot cover the tagline or heart. */
  .site-header {
    padding-bottom: calc(var(--loaf-h) + 0.45rem + var(--loaf-space-below));
  }
  .brand-loaf {
    position: absolute;
    left: 50%;
    top: 0.4rem;
    transform: translateX(-50%);
    margin: 0;
    height: var(--loaf-h);
    z-index: 6;
  }
  .brand { flex: 0 0 auto; }
  .brand-wordmark { width: auto; }
  .wm-the, .wm-co {
    font-size: clamp(0.64rem, 2.8vw, 0.88rem);
    letter-spacing: 0.08em;
    padding-right: 0.05em;
    font-weight: 500;
  }
  .wm-main {
    font-size: clamp(0.98rem, 4.55vw, 1.32rem);
    letter-spacing: 0.04em;
  }
  .wm-tagline {
    font-size: clamp(0.5rem, 2.05vw, 0.62rem);
    margin-top: 0.06em;
  }
  .wm-tag-start,
  .wm-tag-end { letter-spacing: 0.24em; }
  .wm-tag-end { padding-right: 0.24em; }
  .wm-heart {
    width: 1.50em;
    height: 1.40em;
    margin: 0.02em 0.28em 0;
  }
}


.wrap {
  width: var(--content-width);
  margin: 0 auto;
}
.hero {
  padding: 0.15rem 0 1.55rem;
  text-align: center;
}
@media (max-width: 820px) {
  .hero { padding: 0.1rem 0 1.3rem; }
}
.eyebrow, .script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--brown-soft);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
  margin: 0;
}
.hero h1, .page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
  color: var(--brown);
  margin: 0.15rem 0 0.8rem;
  letter-spacing: 0.01em;
}
.fresh-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin: 0 0 1.4rem;
}
.fresh-line .heart { color: var(--heart); font-size: 0.9rem; }
.hero-lead {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: var(--brown-soft);
  font-size: 1.12rem;
}
.btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brown); color: #fffaf2; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--brown); border: 1px solid var(--brown); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-dark); color: #fff; }
.btn-heart { background: var(--heart); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.section { padding: 1.5rem 0 2.5rem; }
.section h2, .card h3, .product h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.01em;
}
.section-head { text-align: center; margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0.15rem 0 0.4rem; }
.section-head p { margin: 0 auto; max-width: 36rem; color: var(--brown-soft); }

.loaf-grid, .steps, .info-row {
  display: grid;
  gap: 1.25rem;
}
.loaf-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
  .loaf-grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card .media { position: relative; background: var(--cream-deep); aspect-ratio: 1.15 / 1; overflow: hidden; }
.card .media picture { display: block; width: 100%; height: 100%; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body, .product-copy { padding: 1.2rem 1.3rem 1.4rem; }
.price-kicker {
  display: inline-block;
  background: var(--sage-mist);
  color: var(--sage-dark);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.price-kicker.tan { background: var(--tan-soft); color: var(--brown); }
.card h3 { font-size: 1.85rem; margin: 0.45rem 0 0.15rem; }
.price { font-family: var(--font-display); font-size: 1.7rem; color: var(--brown); margin: 0 0 0.5rem; }
.card p, .product-copy p { margin: 0 0 1rem; color: var(--brown-soft); }

.preorder-band {
  text-align: center;
  padding: 2rem 1rem;
  background:
    linear-gradient(180deg, transparent, rgba(110,127,90,0.08), transparent);
}
.preorder-band h2 { font-family: var(--font-script); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 400; margin: 0 0 1rem; color: var(--brown); }
.info-row { grid-template-columns: repeat(3, 1fr); width: min(900px, 100%); margin: 0 auto; }
@media (max-width: 700px) { .info-row { grid-template-columns: 1fr; } }
.info-item {
  background: var(--paper);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
}
.info-item .icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.info-item h3 { margin: 0 0 0.25rem; font-size: 1.15rem; font-family: var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; font-size: 0.8rem; color: var(--sage-dark); }
.info-item p { margin: 0; font-size: 0.98rem; color: var(--brown-soft); }

.steps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  text-align: center;
  padding: 1.2rem 1rem;
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--line);
}
.step .num {
  width: 2.1rem; height: 2.1rem; margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--brown-soft); font-size: 0.95rem; }

.ig-cta {
  text-align: center;
  padding: 2.4rem 1rem 1rem;
}
.ig-cta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 0.5rem; }
.ig-cta p { margin: 0 auto 1.1rem; max-width: 32rem; color: var(--brown-soft); }

.page-hero { padding: 0.35rem 0 0.5rem; text-align: center; }
.page-hero p { max-width: 36rem; margin: 0 auto 0.5rem; color: var(--brown-soft); }

.product .media { position: relative; }
.product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
}
.product .media img, .product .media picture, .product .media { height: 100%; }
.product .media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .product .media img { min-height: 240px; max-height: 360px; }
}
.qty-row, .add-row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
label.field, .field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
  margin: 0 0 0.9rem;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select, .qty-input {
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  width: 100%;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.qty button {
  width: 2.2rem; height: 2.2rem;
  border: 0; background: transparent;
  color: var(--brown); font-size: 1.1rem; cursor: pointer;
}
.qty input {
  width: 2.4rem; border: 0; text-align: center; padding: 0;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hint { font-weight: 400; color: var(--brown-soft); font-size: 0.86rem; }
.example-note {
  font-size: 0.82rem;
  color: var(--brown-soft);
  background: var(--sage-mist);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  margin: 0 0 0.8rem;
}

.prose {
  max-width: 40rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.prose h2 { margin-top: 0; font-size: 1.8rem; }
.placeholder {
  border: 1px dashed var(--terracotta);
  background: rgba(196, 137, 90, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--brown);
  margin: 1rem 0;
}
.placeholder strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.25rem; }

.contact-card {
  max-width: 32rem;
  margin: 0 auto 2rem;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow);
}

footer.site-footer {
  margin-top: 2rem;
  padding: 2rem 1rem 1.6rem;
  text-align: center;
  color: var(--brown-soft);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
footer .footer-logo { width: 92px; margin: 0 auto 0.6rem; }
footer nav { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 0.6rem 0 0.8rem; }
footer nav a { color: var(--brown); text-decoration: none; }
.fine-print { font-size: 0.8rem; max-width: 36rem; margin: 0.6rem auto 0; }

/* Cart drawer */
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(63, 42, 22, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--cream);
  z-index: 90;
  transform: translateX(110%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(63,42,22,0.15);
}
body.cart-open { overflow: hidden; }
body.cart-open .cart-backdrop { opacity: 1; pointer-events: auto; }
body.cart-open .cart-drawer { transform: none; }
.cart-head, .cart-foot { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.cart-foot { border-bottom: 0; border-top: 1px solid var(--line); background: var(--paper); }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { margin: 0; font-size: 1.6rem; }
.icon-btn {
  background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--brown);
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
}
.cart-body { flex: 1 1 auto; min-height: 7.5rem; overflow: auto; padding: 0.8rem 1.1rem 1rem; }
.cart-foot { overflow: auto; max-height: 62%; }
.cart-empty { color: var(--brown-soft); text-align: center; padding: 2rem 0.5rem; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-item h3 { margin: 0 0 0.15rem; font-size: 1rem; font-family: var(--font-body); }
.cart-item .meta { font-size: 0.82rem; color: var(--brown-soft); }
.cart-item .line { font-weight: 700; color: var(--brown); }
.remove {
  background: none; border: 0; color: var(--brown-soft); cursor: pointer;
  font-size: 0.78rem; text-decoration: underline; padding: 0;
}
.totals { display: flex; justify-content: space-between; font-weight: 700; margin: 0.4rem 0 0.8rem; font-size: 1.05rem; }
.checkout-note, .confirm-note { font-size: 0.85rem; color: var(--brown-soft); margin: 0 0 0.8rem; }
.summary-box {
  width: 100%;
  min-height: 7rem;
  font: inherit;
  font-size: 0.88rem;
  background: var(--cream);
  border: 1px dashed var(--terracotta);
  border-radius: 12px;
  padding: 0.7rem;
  margin: 0 0 0.7rem;
  resize: vertical;
}
.cart-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-offset) + 0.35rem);
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 120;
  transition: transform 0.2s ease;
  max-width: calc(100% - 2rem);
}
.toast.show { transform: translateX(-50%) translateY(0); }


/* iOS-style app dock / tab bar — mobile only (820px and below) */
.app-dock {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  align-items: stretch;
  gap: 0.15rem;
  padding: 0.35rem 0.45rem;
  background: rgba(246, 239, 227, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(63, 42, 22, 0.14);
}
.app-dock a, .app-dock button {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  color: #5a3a1e;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 4.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  line-height: 1;
}
.app-dock a:hover, .app-dock button:hover { background: rgba(196, 137, 90, 0.12); }
.app-dock a[aria-current="page"],
.app-dock button.is-active {
  color: var(--terracotta);
  background: rgba(196, 137, 90, 0.18);
}
.app-dock svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
}
.app-dock .dock-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.app-dock .dock-cart { position: relative; }
.app-dock .cart-count {
  position: absolute;
  top: 0.1rem;
  right: 0.55rem;
  min-width: 1.05rem;
  height: 1.05rem;
  font-size: 0.62rem;
}
body.cart-open .app-dock {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 820px) {
  :root {
    --dock-h: 4.1rem;
    /* Badge is ~44px tall and ~16px from the bottom; 68px clears it. */
    --badge-clearance: calc(68px + env(safe-area-inset-bottom, 0px));
    --dock-offset: calc(var(--badge-clearance) + 0.45rem + var(--dock-h));
  }
  .app-dock {
    display: flex;
    left: 0.55rem;
    right: 0.55rem;
    bottom: var(--badge-clearance);
    transform: none;
    width: auto;
    max-width: none;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0.22rem 0.2rem 0.28rem;
    justify-content: space-around;
    gap: 0;
    box-shadow: 0 10px 28px rgba(63, 42, 22, 0.16);
  }
  .app-dock a, .app-dock button {
    flex: 1;
    min-width: 0;
    padding: 0.3rem 0.15rem 0.2rem;
    border-radius: 999px;
  }
  .app-dock .cart-count { right: calc(50% - 1.35rem); }
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sticker-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(63, 42, 22, 0.22);
  overflow: hidden;
  pointer-events: none;
  display: block;
}
.card .media .sticker-badge img,
.product .media .sticker-badge img,
.sticker-badge img,
.sticker-badge picture {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0;
  max-height: none;
}
@media (max-width: 760px) {
  .sticker-badge { width: 68px; height: 68px; right: 0.55rem; bottom: 0.55rem; }
}

.flavor-line {
  margin: 0 0 1rem;
}
.flavor-this-week-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.flavor-minis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
}
.flavor-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--brown);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}
.flavor-mini img,
.card .body .flavor-mini img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(63, 42, 22, 0.12);
}

.flavor-picker {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  min-width: 0;
}
.flavor-picker legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
  padding: 0;
  margin: 0 0 0.55rem;
}
.flavor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
}
.flavor-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 6.6rem;
  padding: 0.45rem 0.4rem 0.55rem;
  border: 1.5px solid var(--line);
  background: var(--cream);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  gap: 0.3rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.flavor-chip:hover {
  border-color: var(--brown);
}
.flavor-chip:focus-within,
.flavor-chip:has(input:checked) {
  border-color: var(--brown);
  background: var(--paper);
  box-shadow: 0 0 0 2px rgba(90, 58, 30, 0.18);
}
.flavor-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.flavor-chip-art,
.flavor-chip-art picture,
.flavor-chip-art img {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: contain;
  display: block;
}
.flavor-chip-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.25;
}
.flavor-chip-other {
  justify-content: center;
}
.flavor-chip-other-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px dashed var(--line);
  color: var(--brown);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}
.flavor-picker .hint { margin: 0; }

.cart-item img {
  object-fit: cover;
  background: var(--cream-deep);
}
.cart-item img.sticker-thumb {
  object-fit: contain;
  border-radius: 12px;
  background: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Square checkout CTAs */
.card-actions, .product-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.card-actions .btn,
.product-actions .btn {
  width: 100%;
}
.square-trust {
  font-size: 0.82rem;
  color: var(--brown-soft);
  margin: 0.45rem 0 0;
  line-height: 1.4;
}
.product-actions { margin-bottom: 0.15rem; }
.cart-item .btn-square-line {
  display: inline-flex;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  box-sizing: border-box;
}
