/* Sucre & Crème — Pastel Pink, Buttercream Yellow & Cozy Cocoa Kawaii Patisserie */
:root {
  --bg: #FFFBF2;
  --bg-blush: #FFF1F6;
  --bg-butter: #FEF6D8;
  --surface: #FFFFFF;
  --pink-soft: #FFE6EE;
  --pink-mid: #F7B7CB;
  --pink-deep: #D9799A;
  --yellow-soft: #FEF3C7;
  --yellow-mid: #F6D57A;
  --yellow-deep: #B98324;
  --cocoa: #54372B;
  --cocoa-mid: #6E4B3E;
  --cocoa-muted: #8A6557;
  --border: #ECD2DC;
  --border-warm: #E8D7B9;
  --border-cocoa: #C5A193;
  --sage: #245F44;
  --sage-bg: #E7F6EC;
  --danger: #9B2C2C;
  --danger-bg: #FDECEC;
  --shadow-sm: 0 3px 12px rgba(84, 55, 43, 0.06);
  --shadow-md: 0 10px 28px rgba(84, 55, 43, 0.09);
  --shadow-lg: 0 18px 42px rgba(84, 55, 43, 0.16);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 224, 236, 0.65) 0%, transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(254, 240, 195, 0.7) 0%, transparent 42%),
    radial-gradient(rgba(217, 165, 180, 0.16) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  overflow-x: clip;
  padding-bottom: 118px;
}

body.admin-body {
  padding-bottom: 64px;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2.5px solid var(--pink-deep);
  outline-offset: 2px;
}

.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;
}

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

/* Swirl Filigree Corners (inspired by Aubrey's hand-drawn cocoa + pastel pink + gold dot border) */
.swirl-corner {
  position: absolute;
  width: 78px;
  height: 78px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.swirl-tl { top: 8px; left: 8px; }
.swirl-tr { top: 8px; right: 8px; transform: scaleX(-1); }
.swirl-bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.swirl-br { bottom: 8px; right: 8px; transform: scale(-1, -1); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px dashed var(--border);
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-crest-sm {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--cocoa);
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-deep);
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--cocoa-mid);
  transition: color 0.15s ease;
  display: none;
}

.nav-link:hover {
  color: var(--pink-deep);
}

.header-box-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cocoa);
  color: #FFFBF2;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease;
}

.header-box-btn:hover {
  background: #6B4739;
}

.header-box-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink-mid);
  color: var(--cocoa);
  font-size: 12px;
  font-weight: 700;
}

/* Status Banner */
.paused-banner {
  background: var(--pink-soft);
  border-bottom: 1.5px dashed var(--pink-mid);
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--cocoa);
}

/* Hero Kawaii Patisserie Frame */
.hero {
  padding: 24px 0 22px;
}

.hero-frame {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F2 56%, #FFF2F7 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 58px 22px 34px;
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(208, 157, 173, 0.55);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.mascot-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.hero-mascot-img {
  width: 142px;
  height: 142px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(84, 55, 43, 0.08));
}

.doodle-sparkle {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.doodle-sparkle.sp-left { left: -24px; top: 18px; }
.doodle-sparkle.sp-right { right: -22px; bottom: 18px; width: 20px; height: 20px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cocoa);
  background: var(--yellow-soft);
  border: 1.5px solid var(--yellow-mid);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8.8vw, 66px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--cocoa);
}

.hero-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 4.4vw, 28px);
  font-weight: 600;
  color: var(--pink-deep);
  margin: 0 0 12px;
  line-height: 1.22;
}

.hero-copy {
  font-size: 15.5px;
  color: var(--cocoa-mid);
  max-width: 560px;
  margin: 0 auto 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--cocoa);
  color: #FFFBF2;
  border-color: var(--cocoa);
}

.btn-primary:hover {
  background: #6A4638;
}

.btn-primary:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--pink-soft);
  color: var(--cocoa);
  border-color: var(--pink-mid);
}

.btn-secondary:hover {
  background: #FFD8E6;
}

.btn-gold {
  background: var(--yellow-soft);
  color: var(--cocoa);
  border-color: var(--yellow-mid);
}

.btn-gold:hover {
  background: #FDE9A8;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #F2BDBD;
}

.btn-danger:hover {
  background: #FBD6D6;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa-mid);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-mid);
  border: 1.5px solid var(--cocoa);
}

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

.section-head-card {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 22px 46px 14px;
}

.section-head-card .swirl-corner {
  width: 58px;
  height: 58px;
  opacity: 0.78;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 8px;
  color: var(--cocoa);
}

.section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--cocoa-mid);
}

/* Tiered Box Savings Ladder */
.tier-section {
  padding: 12px 0 24px;
}

.tier-panel {
  background: var(--surface);
  border: 2px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.tier-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 14px;
}

.tier-panel-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  margin: 0;
  color: var(--cocoa);
}

.tier-panel-hint {
  font-size: 13.5px;
  color: var(--cocoa-muted);
  margin: 0;
}

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

.tier-card {
  background: var(--bg);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tier-card:nth-child(even) {
  background: var(--bg-blush);
  border-color: var(--border);
}

.tier-card.tier-wide {
  grid-column: 1 / -1;
  background: var(--bg-butter);
  border-color: var(--yellow-mid);
}

.tier-card.is-active {
  background: var(--cocoa);
  border-color: var(--cocoa);
  color: #FFFBF2;
  box-shadow: var(--shadow-sm);
}

.tier-qty {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.tier-card.is-active .tier-qty {
  color: var(--yellow-mid);
}

.tier-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
}

.tier-sub {
  font-size: 12px;
  color: var(--cocoa-muted);
}

.tier-card.is-active .tier-sub {
  color: #F3E4DB;
}

/* Progress Bar */
.progress-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--border);
}

.progress-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cocoa);
}

.savings-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--sage-bg);
  border: 1px solid #B6DFC7;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--pink-soft);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink-mid), var(--yellow-mid));
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* Kawaii Bakery Menu Cards (NO AI cookie photos; clean imageUrl support) */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.flavor-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.flavor-card:nth-child(even) {
  border-color: var(--border-warm);
}

.flavor-card:hover {
  border-color: var(--pink-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.flavor-card.has-qty {
  border-color: var(--cocoa);
  box-shadow: 0 0 0 2px rgba(247, 183, 203, 0.65), var(--shadow-md);
}

.flavor-card.is-sold-out {
  opacity: 0.7;
  background: #FAF5F2;
}

.flavor-photo {
  margin: -20px -20px 6px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) 0 0;
  background: var(--bg-blush);
}

.flavor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flavor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flavor-num {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  font-weight: 700;
  color: var(--pink-deep);
}

.flavor-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-mid);
  color: var(--cocoa);
}

.flavor-card:nth-child(odd) .flavor-badge {
  background: var(--pink-soft);
  border-color: var(--pink-mid);
}

.flavor-badge.sold-out {
  background: var(--danger-bg) !important;
  border-color: #F2C4C4 !important;
  color: var(--danger);
}

.flavor-name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  color: var(--cocoa);
}

.stuffed-ribbon {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-blush);
  border: 1.5px dashed var(--pink-mid);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--cocoa);
  font-weight: 600;
}

.flavor-card:nth-child(even) .stuffed-ribbon {
  background: var(--bg-butter);
  border-color: var(--yellow-mid);
}

.stuffed-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
  display: block;
  margin-bottom: 2px;
}

.flavor-card:nth-child(even) .stuffed-label {
  color: var(--yellow-deep);
}

.flavor-desc {
  margin: 0;
  font-size: 14px;
  color: var(--cocoa-mid);
  line-height: 1.5;
  flex: 1;
}

.flavor-notes {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cocoa-muted);
  padding-top: 8px;
  border-top: 1.5px dashed var(--border);
}

.flavor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.flavor-price-note {
  display: flex;
  flex-direction: column;
}

.flavor-price-main {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cocoa);
}

.flavor-price-tier {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cocoa-muted);
}

.add-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--cocoa);
  border: 2px solid var(--cocoa);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.add-btn:hover:not(:disabled) {
  background: var(--yellow-soft);
}

.add-btn:disabled {
  background: #EFE7E2;
  border-color: #D7C9C2;
  color: var(--cocoa-muted);
  cursor: not-allowed;
}

.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--cocoa);
  color: #FFFBF2;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.stepper-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #FFFBF2;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}

.stepper-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}

.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper-val {
  min-width: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

/* Checkout Section */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.1;
  color: var(--cocoa);
}

.card-sub {
  font-size: 14px;
  color: var(--cocoa-muted);
  margin: 0 0 16px;
}

.box-mascot-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.box-mascot-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
}

.empty-box {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border: 1.5px dashed var(--pink-mid);
  border-radius: var(--radius-md);
  color: var(--cocoa-mid);
}

.empty-box p {
  margin: 0 0 14px;
}

.box-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-blush);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.box-item-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--cocoa);
}

.box-item-sub {
  font-size: 12.5px;
  color: var(--cocoa-muted);
}

.stepper-sm {
  background: var(--surface);
  color: var(--cocoa);
  border: 1.5px solid var(--cocoa);
}

.stepper-sm .stepper-btn {
  width: 32px;
  height: 32px;
  font-size: 17px;
  color: var(--cocoa);
}

.stepper-sm .stepper-btn:hover:not(:disabled) {
  background: var(--pink-soft);
}

.summary-lines {
  border-top: 1.5px dashed var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.summary-row.savings {
  color: var(--sage);
  font-weight: 700;
}

.summary-row.total {
  border-top: 1.5px solid var(--border-cocoa);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 700;
  color: var(--cocoa);
}

.box-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.text-link-btn {
  background: none;
  border: none;
  padding: 4px 2px;
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.text-link-btn:hover {
  color: var(--cocoa);
}

/* Fulfillment Toggle */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-blush);
  padding: 5px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  margin-bottom: 18px;
}

.seg-btn {
  min-height: 50px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.seg-btn.is-active {
  background: var(--surface);
  border-color: var(--cocoa);
  box-shadow: var(--shadow-sm);
}

.seg-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cocoa);
}

.seg-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cocoa-muted);
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-cocoa);
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  color: var(--cocoa);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 3px rgba(247, 183, 203, 0.35);
}

.info-callout {
  background: var(--bg-butter);
  border: 1.5px solid var(--yellow-mid);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--cocoa);
}

.payment-preview-box {
  background: var(--bg-blush);
  border: 1.5px dashed var(--pink-mid);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13.5px;
  color: var(--cocoa);
}

.form-error {
  background: var(--danger-bg);
  border: 1.5px solid #F2BDBD;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
}

/* Confirmation Receipt */
.receipt-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F3 100%);
  border: 2px solid var(--pink-mid);
  border-radius: var(--radius-lg);
  padding: 52px 24px 28px;
  box-shadow: var(--shadow-md);
  max-width: 740px;
  margin: 0 auto;
  overflow: hidden;
}

.receipt-inner {
  position: relative;
  z-index: 2;
}

.receipt-check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sage-bg);
  border: 2px solid #9FD6B6;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.receipt-code {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--yellow-soft);
  color: var(--cocoa);
  border: 1.5px solid var(--yellow-mid);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.payment-card {
  margin-top: 18px;
  background: var(--bg-blush);
  border: 1.5px dashed var(--pink-mid);
  border-radius: var(--radius-md);
  padding: 18px;
}

.payment-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--cocoa);
}

.pay-method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.pay-method-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.pay-method-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink-deep);
}

.pay-method-val {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cocoa);
}

.pay-method-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Sticky Bottom Floating Box Bar */
.sticky-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 45;
  max-width: 680px;
  margin: 0 auto;
  background: var(--cocoa);
  color: #FFFBF2;
  border-radius: 20px;
  padding: 12px 15px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--pink-mid);
  display: none;
  flex-direction: column;
  gap: 8px;
}

.sticky-bar.is-visible {
  display: flex;
}

.sticky-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-bar-info {
  min-width: 0;
}

.sticky-bar-main {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sticky-bar-save {
  background: var(--yellow-soft);
  color: var(--cocoa);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.sticky-bar-sub {
  font-size: 12.5px;
  color: #F6DDE6;
}

.sticky-bar-cta {
  background: var(--pink-soft);
  color: var(--cocoa);
  border: 1.5px solid var(--pink-mid);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  min-height: 42px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.sticky-bar-cta:hover {
  background: var(--yellow-soft);
}

.sticky-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.sticky-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink-mid), var(--yellow-mid));
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* Footer */
.site-footer {
  margin-top: 44px;
  background: var(--cocoa);
  color: #F6ECE4;
  padding: 36px 0 42px;
  border-top: 4px solid var(--pink-mid);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #FFFBF2;
}

.footer-text {
  font-size: 13.5px;
  color: #E7D4CA;
  max-width: 580px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--yellow-mid);
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Admin Dashboard Styles */
.pin-gate {
  max-width: 440px;
  margin: 40px auto;
  text-align: center;
}

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

.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card:nth-child(2) {
  background: var(--bg-blush);
  border-color: var(--pink-mid);
}

.stat-card:nth-child(3) {
  background: var(--bg-butter);
  border-color: var(--yellow-mid);
}

.stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--cocoa);
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cocoa-muted);
  margin-top: 4px;
}

.tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 18px;
}

.tab-btn {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-cocoa);
  background: var(--surface);
  color: var(--cocoa-mid);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.is-active {
  background: var(--cocoa);
  color: #FFFBF2;
  border-color: var(--cocoa);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.pill-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cocoa-mid);
  cursor: pointer;
}

.pill-btn.is-active {
  background: var(--pink-soft);
  border-color: var(--pink-deep);
  color: var(--cocoa);
}

.order-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed var(--border);
}

.order-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-mid);
  color: var(--cocoa);
}

.order-badge.shipping {
  background: var(--pink-soft);
  border-color: var(--pink-mid);
  color: var(--cocoa);
}

.bake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.bake-qty {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--pink-deep);
  min-width: 56px;
  text-align: right;
}

.admin-menu-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--cocoa);
  color: #FFFBF2;
  border: 1.5px solid var(--pink-mid);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  display: none;
}

.toast.is-show {
  display: block;
}

.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .nav-link {
    display: inline-block;
  }
  .swirl-corner {
    width: 112px;
    height: 112px;
  }
  .hero-frame {
    padding: 58px 56px 46px;
  }
  .hero-mascot-img {
    width: 168px;
    height: 168px;
  }
  .tier-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .tier-card.tier-wide {
    grid-column: auto;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-row-3 {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 28px;
  }
  .swirl-corner {
    width: 128px;
    height: 128px;
  }
  .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .checkout-grid {
    grid-template-columns: 5fr 7fr;
    gap: 24px;
  }
  .card {
    padding: 28px;
  }
}

/* Social Pill Links */
.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cocoa);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.social-pill:hover {
  background: var(--pink-soft);
  border-color: var(--pink-mid);
}

.footer-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 240, 245, 0.14);
  border: 1px solid rgba(247, 183, 203, 0.45);
  color: #FFFBF2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-social-pill:hover {
  background: rgba(247, 183, 203, 0.25);
}

/* Mobile Admin Header & Tabs Polish */
.admin-body .brand-name {
  font-size: 19px;
  white-space: nowrap;
}
.admin-body .header-nav {
  gap: 6px;
}
.admin-body .header-nav .btn-sm {
  white-space: nowrap;
  padding: 6px 11px;
  font-size: 12.5px;
}
.tabs-bar {
  flex-wrap: wrap;
  overflow-x: visible;
  gap: 8px;
}
.tab-btn {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 13.5px;
}
