:root {
  --bg: #faf6f0;
  --bg-elevated: #fffdf9;
  --bg-muted: #f2ebe1;
  --ink: #241914;
  --ink-muted: #65564d;
  --ink-soft: #8a796e;
  --accent: #a65738;
  --accent-dark: #844127;
  --berry: #9b4355;
  --gold: #c48c46;
  --sage: #5b7454;
  --border: #e5dacb;
  --border-strong: #d4c4b0;
  --shadow-sm: 0 4px 16px rgba(36, 25, 20, 0.05);
  --shadow-md: 0 14px 36px rgba(36, 25, 20, 0.09);
  --shadow-lg: 0 24px 60px rgba(36, 25, 20, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: 6px;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* Announcement */
.announcement-bar {
  background: var(--ink);
  color: #f6efe6;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.announcement-bar p {
  margin: 0;
}

.announcement-bar strong {
  color: #e6ba7e;
  letter-spacing: 0.06em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.cart-trigger:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.cart-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  display: inline-grid;
  place-items: center;
}

/* Typography & Buttons */
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 52px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  margin-bottom: 20px;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin: 0;
}

.hero-stats dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.hero-stats dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.94rem;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  max-width: 290px;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-md);
}

.floating-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
}

.hero-floating-card strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.hero-floating-card span:not(.floating-label) {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
}

.section-subtitle {
  margin: 0;
  max-width: 44ch;
  color: var(--ink-muted);
}

/* Filters */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.pill:hover {
  background: var(--bg-muted);
  color: var(--ink);
}

.pill.is-active {
  background: var(--ink);
  color: var(--bg);
}

.controls-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dietary-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diet-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.diet-chip[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  min-width: 230px;
}

.search-box input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.88rem;
}

/* Cake Grid */
.cake-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.cake-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cake-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cake-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-muted);
  overflow: hidden;
}

.cake-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cake-card:hover .cake-thumb img {
  transform: scale(1.04);
}

.cake-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
}

.cake-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cake-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.cake-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cake-tagline {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.cake-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.note-tag {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-muted);
  color: var(--ink-muted);
}

.cake-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cake-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.cake-price small {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.card-btn-group {
  display: flex;
  gap: 8px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

/* Bespoke Cake Studio */
.studio-section {
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.studio-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.studio-preview-card {
  position: sticky;
  top: 96px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.preview-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
}

.preview-serves {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.cake-stage {
  background: radial-gradient(circle at 50% 42%, #fffdf9 0%, #f1e7d9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 290px;
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.cake-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cake-tier {
  position: relative;
  border-radius: 12px 12px 6px 6px;
  border: 2px solid var(--tier-stroke, #dfd0be);
  background: var(--tier-frosting, #fbf4ea);
  box-shadow: inset 0 -8px 0 rgba(36, 25, 20, 0.04), 0 6px 14px rgba(36, 25, 20, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  overflow: hidden;
  transition: all 0.28s ease;
}

.cake-tier.is-semi-naked {
  background: repeating-linear-gradient(
    to bottom,
    var(--tier-sponge, #f2dfba) 0px,
    var(--tier-sponge, #f2dfba) 16px,
    var(--tier-frosting, #fbf4ea) 16px,
    var(--tier-frosting, #fbf4ea) 24px
  );
}

.tier-filling-band {
  height: 7px;
  width: 100%;
  background: var(--tier-filling, #b84a60);
  opacity: 0.85;
}

.tier-drip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: #321d17;
  border-radius: 0 0 10px 10px;
  opacity: 0.92;
}

.tier-meringue-top {
  display: flex;
  gap: 8px;
  margin-bottom: -4px;
  z-index: 2;
}

.meringue-peak {
  width: 16px;
  height: 14px;
  background: linear-gradient(180deg, #b86c2b 0%, #fff8ee 75%);
  border-radius: 50% 50% 20% 20%;
}

.tier-accents {
  display: flex;
  gap: 7px;
  margin-bottom: -5px;
  z-index: 3;
}

.accent-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
}

.cake-pedestal {
  width: 240px;
  height: 12px;
  background: #d8c8b4;
  border-radius: 999px;
  margin-top: 2px;
}

.cake-pedestal-stem {
  width: 68px;
  height: 16px;
  background: linear-gradient(180deg, #c6b49d, #dfd1bf);
  border-radius: 0 0 10px 10px;
}

.cake-plaque {
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #2f1b15;
  color: #f4d6a8;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.spec-list {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  font-size: 0.85rem;
}

.spec-list dt {
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-list dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.price-label {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.preview-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

/* Builder Controls */
.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.builder-group h3,
.input-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.builder-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.option-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opt-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.opt-btn:hover {
  border-color: var(--ink);
}

.opt-btn.is-selected {
  border-color: var(--ink);
  background: #fff7ec;
  box-shadow: 0 0 0 1px var(--ink);
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(36, 25, 20, 0.2);
  flex-shrink: 0;
}

.opt-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.opt-name {
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.25;
}

.opt-meta {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.inscription-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.inscription-row input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
}

.char-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Craft & Serving Guide */
.craft-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.craft-intro h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 16px;
}

.craft-intro p {
  color: var(--ink-muted);
  margin: 0;
}

.craft-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.craft-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.craft-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.craft-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.craft-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.guide-section {
  padding-top: 20px;
}

.guide-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.guide-copy .eyebrow {
  color: #e6ba7e;
}

.guide-copy h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.guide-copy p {
  margin: 0;
  color: #dcd0c3;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(250, 246, 240, 0.15);
}

.guide-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e6ba7e;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-note {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Modal & Drawer */
.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 15, 11, 0.56);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.drawer-backdrop {
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

[hidden] {
  display: none !important;
}

.modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.modal-panel--compact {
  width: min(500px, 100%);
}

.icon-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.modal-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-muted);
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--ink-muted);
  margin: 0 0 18px;
}

.size-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.size-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
}

.size-btn.is-selected {
  border-color: var(--ink);
  background: #fff7ec;
  box-shadow: 0 0 0 1px var(--ink);
}

.size-btn strong {
  display: block;
  font-size: 0.88rem;
}

.size-btn span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.modal-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  margin-top: 6px;
  margin-bottom: 16px;
}

.allergen-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* Cart Drawer */
.drawer-panel {
  position: relative;
  width: min(460px, 100%);
  height: 100%;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.drawer-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.drawer-header h2 {
  font-size: 1.8rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-muted);
}

.cart-item-custom {
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.94rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 3px 0 8px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.qty-control button {
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: 700;
}

.qty-control span {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

.drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px 22px;
  background: var(--bg);
}

.fulfillment-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.radio-pill {
  position: relative;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
}

.radio-pill span {
  display: block;
  text-align: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 0.82rem;
  font-weight: 600;
}

.radio-pill input:checked + span {
  border-color: var(--ink);
  background: #fff7ec;
  box-shadow: 0 0 0 1px var(--ink);
}

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}

.checkout-fields label span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.checkout-fields input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 0.84rem;
}

.promo-row {
  display: flex;
  gap: 6px;
}

.promo-feedback {
  min-height: 18px;
  margin: 4px 0 8px;
  font-size: 0.78rem;
  color: var(--sage);
}

.promo-feedback.is-error {
  color: var(--berry);
}

.totals-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.totals-list > div {
  display: flex;
  justify-content: space-between;
}

.total-row {
  padding-top: 8px;
  border-top: 1px solid var(--border-strong);
  font-size: 1rem;
}

.order-receipt {
  text-align: center;
  padding: 12px 6px;
}

.order-receipt h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.receipt-code {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 150;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .studio-layout,
  .craft-grid,
  .guide-box,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .studio-preview-card {
    position: static;
  }

  .cake-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-cards {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .cake-grid,
  .option-grid,
  .builder-row,
  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section {
    padding: 52px 0;
  }
}
