:root {
  --bg-1: #fff9ef;
  --bg-2: #ffe7b3;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(98, 57, 17, 0.1);
  --text: #2d1a12;
  --muted: #7a5a45;
  --gold: #d4af37;
  --rust: #a0522d;
  --dark-rust: #8a3e1d;
  --shadow: 0 22px 55px rgba(81, 47, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(254, 245, 231, 0.55), rgba(252, 232, 208, 0.45)),
    url('popcorn_landscape.png') center center / cover no-repeat fixed;
  position: relative;
  overflow-x: hidden;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
}

@media (max-width: 767px) {
  body {
    background:
      linear-gradient(135deg, rgba(254, 245, 231, 0.5), rgba(252, 232, 208, 0.42)),
      url('popcorn_portait.png') center center / cover no-repeat fixed;
  }

  .hero {
    min-height: 100svh;
  }
}

.hero-video {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-logo {
  width: clamp(400px, 80vw, 600px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  position: relative;
  animation: edgeGlowIn 1.3s ease-out both;
}

.hero-logo::before {
  content: "";
  position: absolute;
  inset: 4% 8% 6% 6%;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0), rgba(255,232,160,0.42), rgba(255,255,255,0));
  opacity: 0;
  filter: blur(10px);
  animation: edgeGlow 2s ease-out 0.2s forwards;
  pointer-events: none;
}

@keyframes edgeGlowIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
    filter: brightness(0.8) drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  }
}

@keyframes edgeGlow {
  0% {
    opacity: 0;
    transform: translateX(-12px) scale(0.94);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
    transform: translateX(12px) scale(1.06);
  }
}

@media (max-width: 767px) {
  .hero-logo {
    width: min(88vw, 420px);
  }

  .hero-logo::before {
    inset: 6% 10% 8% 8%;
    filter: blur(16px);
    background: linear-gradient(135deg, rgba(255,255,255,0), rgba(255,228,134,0.8), rgba(255,255,255,0));
  }
}

.hero-logo-small {
  width: clamp(50px, 30vw, 150px);
  height: auto;
  object-fit: contain;
  
}

.hero-content h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -1px;
  font-family: 'Playfair Display', serif;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.95;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  background: rgba(45, 26, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.scroll-hint span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.scroll-arrow {
  width: 2px;
  height: 20px;
  background: #fff;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-hint {
    animation: none;
  }
}

button,
select {
  font: inherit;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.45;
  animation: floatBlob 12s ease-in-out infinite alternate;
}

.blob-one {
  width: 260px;
  height: 260px;
  background: rgba(212, 175, 55, 0.2);
  left: -60px;
  top: 8%;
}

.blob-two {
  width: 300px;
  height: 300px;
  background: rgba(160, 82, 45, 0.15);
  right: -60px;
  bottom: 12%;
  animation-delay: 1.6s;
}

.blob-three {
  width: 220px;
  height: 220px;
  background: rgba(212, 175, 55, 0.15);
  left: 48%;
  top: 40%;
  animation-delay: 3.2s;
}

@keyframes floatBlob {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(20px, -18px, 0) scale(1.08);
  }
}

.app-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto;
  position: relative;
  z-index: 1;
}

.topbar,
.panel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 24px;
  box-shadow: none;
  gap: 8px;
  text-align: center;
}

.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark-rust);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.5px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(120px, 25vw, 160px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.features-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(0.78rem, 1.8vw, 1.15rem);
  color: #4a2c1d;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-wrap: wrap;
  padding: 0 8px;
  line-height: 1.5;
}

.tc-link {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(160, 82, 45, 0.2);
  color: var(--rust);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tc-link:hover {
  background: rgba(212, 175, 55, 0.22);
  color: var(--dark-rust);
  transform: translateY(-1px);
}

.status-pill {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--rust);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.8rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}
.topbar-title {
    /* Font Choice: Pacifico is the closest free match to the script logo */
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    color: #D4AF37; /* Warm Gold color matching the logo */
    margin: 0;
    padding: 0;
    line-height: 1.2;
    /* Optional subtle text shadow to emulate 3D depth */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(160, 82, 45, 0.12);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 24px;
}

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

h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-top: 4px;
}

.status-pill {
  background: rgba(255, 191, 70, 0.18);
  border: 1px solid rgba(255, 165, 73, 0.2);
  color: var(--brown);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.8rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.category-field {
  grid-column: 1 / -1;
}

.product-type-tabs.hidden {
  display: none;
}

.product-type-tabs {
  margin-top: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
}

.toggle-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(160, 82, 45, 0.15);
  border-radius: 16px;
  padding: 4px;
}

.toggle-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.toggle-tab.active {
  background: linear-gradient(135deg, var(--rust), var(--gold));
  color: #fff;
  box-shadow: 0 6px 14px rgba(160, 82, 45, 0.22);
}

.toggle-tab:hover:not(.active) {
  color: var(--text);
}

.product-type-tabs {
  gap: 6px;
  padding: 5px;
  background: rgba(98, 57, 17, 0.06);
  border: 1px solid rgba(98, 57, 17, 0.08);
  border-radius: 18px;
}

.product-type-tabs .toggle-tab {
  position: relative;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.product-type-tabs .toggle-tab.active {
  border-color: rgba(160, 82, 45, 0.12);
  background: linear-gradient(180deg, #fff, #fffaf2);
  color: var(--text);
  box-shadow: 0 2px 7px rgba(81, 47, 26, 0.1);
}

.product-type-tabs .toggle-tab.active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  transform: translateY(-50%);
}

.product-type-tabs .toggle-tab:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}

.product-type-tabs .toggle-tab:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

select {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(160, 82, 45, 0.15);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(160, 82, 45, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  outline: none;
}

input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: rgba(160, 82, 45, 0.6);
  box-shadow: 0 0 0 4px rgba(160, 82, 45, 0.12);
}

select:focus {
  border-color: rgba(160, 82, 45, 0.6);
  box-shadow: 0 0 0 4px rgba(160, 82, 45, 0.12);
}

.preview-card {
  --preview-text: #ffffff;
  --preview-subtle: rgba(255, 255, 255, 0.9);
  --preview-label: rgba(255, 255, 255, 0.9);
  --preview-price: #86efac;
  --preview-discount: #ff6b6b;
  position: relative;
  isolation: isolate;
  margin-top: 22px;
  display: block;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(160, 82, 45, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(45, 26, 18, 0.12);
  animation: previewCardEnter 0.6s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(45, 26, 18, 0.2);
}

.preview-card.is-light {
  --preview-text: #2d1a12;
  --preview-subtle: rgba(45, 26, 18, 0.8);
  --preview-label: rgba(45, 26, 18, 0.8);
  --preview-price: #166534;
  --preview-discount: #b91c1c;
}

.preview-card.is-dark {
  --preview-text: #ffffff;
  --preview-subtle: rgba(255, 255, 255, 0.9);
  --preview-label: rgba(255, 255, 255, 0.9);
  --preview-price: #86efac;
  --preview-discount: #ff6b6b;
}

.preview-visual {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.15), rgba(160, 82, 45, 0.12));
  overflow: hidden;
  display: grid;
  place-items: center;
}

.preview-munch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.preview-card:hover .preview-munch-img {
  transform: scale(1.045);
}

.preview-copy {
  --preview-text: #2d1a12;
  --preview-subtle: rgba(45, 26, 18, 0.66);
  --preview-price: #166534;
  --preview-discount: #b91c1c;
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: auto;
  z-index: 1;
  width: fit-content;
  max-width: min(42%, 360px);
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.64), rgba(255, 255, 255, 0.54));
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
  backdrop-filter: blur(7px) saturate(1.15);
  box-shadow: 0 14px 34px rgba(32, 20, 12, 0.14), inset 0 1px rgba(255, 255, 255, 0.58);
  text-align: left;
  color: var(--preview-text);
  animation: previewCopyEnter 0.65s 0.1s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.preview-copy .eyebrow {
  margin-bottom: 6px;
  color: #96633b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-copy h3 {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--preview-text);
}

.preview-copy > p:not(.eyebrow) {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 4px 10px;
  border: 1px solid rgba(150, 99, 59, 0.12);
  border-radius: 999px;
  background: rgba(150, 99, 59, 0.08);
  color: var(--preview-subtle);
  font-size: 0.78rem;
  font-weight: 700;
}

.price-line {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin-left: 0;
  color: var(--preview-text);
  font-weight: 700;
}

.price-line strong {
  font-size: 1.75rem;
  color: var(--preview-price);
}

.price-line del {
  color: var(--preview-subtle);
  font-size: 0.95rem;
  font-weight: 600;
}

.price-discount {
  color: var(--preview-discount);
  font-size: 0.85rem;
  font-weight: 800;
}

@keyframes previewCardEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes previewCopyEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.primary-btn,
.secondary-btn,
.checkout-btn {
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.checkout-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  margin-top: 22px;
  width: 100%;
  background: linear-gradient(135deg, var(--rust), var(--gold));
  color: #fff;
  box-shadow: 0 16px 35px rgba(160, 82, 45, 0.25);
}

.flavor-legends {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1;
  white-space: nowrap;
}

.flavor-legends span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.secondary-btn {
  background: rgba(212, 175, 55, 0.15);
  color: var(--rust);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed rgba(160, 82, 45, 0.2);
  border-radius: 18px;
  padding: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(160, 82, 45, 0.12);
  border-radius: 18px;
  padding: 12px 14px;
}

.item-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(160, 82, 45, 0.2));
  overflow: hidden;
}

.item-badge img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}

.item-details {
  min-width: 0;
}

.cart-item strong {
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.item-flags {
  white-space: nowrap;
}

.item-flag {
  margin-left: 0.25em;
}

.item-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.item-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--rust);
}

.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 6px 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.delete-btn:hover {
  transform: scale(1.15);
  opacity: 1;
  filter: hue-rotate(15deg);
}

.summary-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(160, 82, 45, 0.15);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  margin-bottom: 10px;
}

.total-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(160, 82, 45, 0.2);
  color: var(--text);
  font-size: 1.1rem;
}

.delivery-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.checkout-btn {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #1abf76, #17a05a);
  color: white;
  box-shadow: 0 18px 36px rgba(26, 191, 118, 0.22);
}

.checkout-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
  }

  .hero-content p {
    font-size: clamp(0.9rem, 2vw, 1.4rem);
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#tcModal {
  z-index: 2000;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: white;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  width: min(90vw, 600px);
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(160, 82, 45, 0.15);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  transform: scale(1.1);
}

.modal-body {
  overflow-y: auto;
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-body strong {
  color: var(--rust);
  font-weight: 700;
}

.order-modal-content {
  max-height: 90vh;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-choice {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid rgba(160, 82, 45, 0.15);
  border-radius: 16px;
  padding: 14px;
}

.delivery-choice legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 700;
}

.delivery-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.delivery-fields {
  display: grid;
  gap: 14px;
}

.delivery-fields.hidden {
  display: none;
}

.order-conditions {
  font-size: 0.8rem;
  line-height: 1.4;
}

.order-conditions p {
  margin: 0 0 4px;
  font-weight: 600;
}

.order-conditions ul {
  margin: 0;
  padding-left: 20px;
}

.note-ack {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
}

.inline-tc-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--rust);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.inline-tc-link:hover {
  color: var(--dark-rust);
}

@media (max-width: 640px) {
  .hero {
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .app-shell {
    width: min(100% - 20px, 1200px);
    margin: 20px auto 32px;
  }

  .topbar,
  .panel {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .features-text {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .tc-link {
    align-self: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    display: block;
  }

  .preview-visual {
    width: 100%;
    height: 280px;
  }

  .preview-copy {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    padding: 16px;
    border: 0;
    border-top: 1px solid rgba(160, 82, 45, 0.12);
    border-radius: 0;
    background: linear-gradient(145deg, rgba(255, 251, 245, 0.98), rgba(255, 255, 255, 0.94));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .preview-copy h3 {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .preview-copy p,
  .price-line {
    font-size: 0.8rem;
  }

  .price-line strong {
    font-size: 1.35rem;
  }

  .cart-item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .item-badge {
    width: 40px;
    height: 40px;
  }

  .item-price {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .delete-btn {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .modal-content {
    width: min(95vw, 500px);
    max-height: 90vh;
  }

  .modal-header {
    padding: 18px;
  }

  .order-form {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-card,
  .preview-copy,
  .preview-munch-img {
    animation: none;
    transition: none;
  }

  .preview-card:hover,
  .preview-card:hover .preview-munch-img {
    transform: none;
  }
}
