/*
  MEOWZIE'S CAFE WEBSITE
  Main stylesheet.
  OWNER EDIT: Brand colors are grouped in :root below.
*/

:root {
  --cream-50: #fffaf0;
  --cream-100: #f8edd7;
  --cream-200: #eed9b7;
  --espresso-900: #2d180c;
  --espresso-800: #3d2111;
  --espresso-700: #4a2b16;
  --caramel-600: #aa5719;
  --caramel-500: #d27a2c;
  --caramel-100: #f6dcc2;
  --olive-800: #33451f;
  --olive-700: #465a2d;
  --olive-100: #e8eddc;
  --white: #ffffff;
  --ink: #281e18;
  --muted: #6c5f56;
  --border: #ddc8aa;
  --danger: #9d2c2c;
  --danger-bg: #fff0f0;
  --warning: #785100;
  --warning-bg: #fff7dc;
  --success: #28603b;
  --shadow-sm: 0 8px 24px rgba(45, 24, 12, 0.08);
  --shadow-md: 0 18px 50px rgba(45, 24, 12, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--espresso-900); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 7vw, 5.4rem); letter-spacing: -0.045em; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: 76px 0; }
.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--caramel-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.small-print { color: var(--muted); font-size: 0.88rem; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--espresso-900);
  color: var(--white);
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid #1976d2;
  outline-offset: 3px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.78rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.button-primary { background: var(--espresso-800); color: var(--white); }
.button-primary:hover { background: var(--espresso-900); }
.button-secondary { background: transparent; color: var(--espresso-800); border-color: var(--espresso-700); }
.button-secondary:hover { background: rgba(74, 43, 22, 0.07); }
.button-full { width: 100%; }
.text-link { color: var(--espresso-700); font-weight: 800; text-underline-offset: 4px; }
.icon-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--espresso-900);
  font-size: 1.8rem;
  cursor: pointer;
}
.icon-button:disabled { opacity: 0.55; cursor: not-allowed; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(74, 43, 22, 0.12);
  background: rgba(255, 250, 240, 0.95);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 20px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: max-content; }
.header-logo { width: 54px; height: 54px; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); }
.brand-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 800; color: var(--espresso-900); }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.primary-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.primary-nav a:hover { background: var(--cream-100); }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--cream-100); font-size: 1.4rem; }
.cart-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  background: var(--espresso-800);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}
.cart-count { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--caramel-500); color: var(--espresso-900); font-size: 0.78rem; }

.hero { position: relative; min-height: min(760px, calc(100vh - var(--header-height))); display: grid; align-items: center; overflow: hidden; background: var(--cream-100); }
.hero-image-wrap, .hero-overlay { position: absolute; inset: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { background: linear-gradient(90deg, rgba(255,250,240,0.97) 0%, rgba(255,250,240,0.83) 42%, rgba(255,250,240,0.18) 75%, rgba(255,250,240,0.08) 100%); }
.hero-content { position: relative; z-index: 2; padding-block: 80px; }
.hero-card { max-width: 660px; }
.hero-card > p:not(.eyebrow):not(.hero-note) { max-width: 590px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #4e4037; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.72); color: var(--olive-800); font-weight: 800; box-shadow: var(--shadow-sm); }

.split-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 56px; align-items: center; }
.intro-section { background: var(--white); }
.feature-panel { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--cream-50); box-shadow: var(--shadow-sm); }
.feature-item { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; padding: 14px; border-radius: var(--radius-md); background: var(--white); }
.feature-item > span:first-child { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--olive-100); font-size: 1.35rem; }
.feature-item > span:last-child { color: var(--muted); font-size: 0.9rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.featured-section { background: var(--cream-100); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.featured-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.featured-card img {
  width: 100%;
  height: clamp(120px, 11vw, 150px);
  object-fit: cover;
}
.featured-card-body { padding: 18px; }
.featured-card-body p { color: var(--muted); margin-bottom: 0; }

.menu-section { background: var(--cream-50); }
.menu-heading p { max-width: 700px; color: var(--muted); }
.category-filters { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px 24px; scrollbar-width: thin; }
.filter-button { min-height: 44px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; padding: 0 16px; background: var(--white); color: var(--espresso-800); font-weight: 800; cursor: pointer; }
.filter-button.is-active { border-color: var(--espresso-800); background: var(--espresso-800); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.product-card.is-unavailable { opacity: 0.62; }
.product-image-wrap {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: var(--cream-100);
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.product-card-drink .product-image {
  box-sizing: border-box;
  padding: 8px 14px;
  object-fit: contain;
}
.product-card:hover .product-image { transform: scale(1.01); }
.product-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: var(--caramel-500); color: var(--espresso-900); font-size: 0.78rem; font-weight: 900; box-shadow: var(--shadow-sm); }
.unavailable-badge { background: #efdfd8; color: var(--danger); }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.product-heading-row { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.product-category { color: var(--olive-700); font-size: 0.76rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.09em; }
.product-description { color: var(--muted); font-size: 0.94rem; min-height: 3em; }
.product-price { color: var(--espresso-900); font-weight: 900; white-space: nowrap; }
.product-controls { margin-top: auto; display: grid; gap: 13px; }
.option-row { display: grid; grid-template-columns: 1fr 122px; gap: 12px; align-items: end; }
.drink-add-on { display: grid; gap: 0; }
.drink-add-on .field-label span { color: var(--muted); font-weight: 700; }
.field-label { display: block; margin-bottom: 6px; color: var(--espresso-800); font-size: 0.82rem; font-weight: 800; }
.select-control { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 12px; padding: 0 38px 0 12px; background: var(--white); color: var(--ink); }
.quantity-control { min-height: 46px; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); }
.quantity-control button { height: 100%; border: 0; background: var(--cream-100); color: var(--espresso-900); font-size: 1.2rem; cursor: pointer; }
.quantity-control input { width: 100%; border: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.quantity-control input::-webkit-outer-spin-button, .quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-button { width: 100%; }
.product-feedback { min-height: 1.35rem; color: var(--success); font-size: 0.84rem; font-weight: 800; }

.coffee-story { background: linear-gradient(120deg, var(--olive-800), #1d2c13); color: var(--white); }
.coffee-story h2, .coffee-story .eyebrow { color: var(--white); }
.coffee-story .small-print { color: #dce7d0; }
.coffee-story-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.coffee-story-logo {
  width: min(100%, 280px);
  height: min(280px, 36vw);
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-md);
}

.about-section { background: var(--white); }
.about-lead { max-width: 860px; font-size: 1.2rem; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.about-grid article { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--cream-50); }
.editable-placeholder { color: #82521f; background: #fff4dc; border-radius: 6px; padding: 0.08em 0.25em; }

.contact-section { background: var(--cream-100); }
.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.contact-list { margin: 0; display: grid; gap: 10px; }
.contact-list div { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--border); }
.contact-list dt { font-weight: 900; color: var(--espresso-800); }
.contact-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.contact-list a { font-weight: 700; text-underline-offset: 3px; }
.site-footer { padding: 34px 0; background: var(--espresso-900); color: var(--cream-100); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 24px; align-items: center; }
.footer-inner p { margin-bottom: 0; }
.site-footer .text-link { color: var(--cream-100); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 1990; background: rgba(22, 12, 6, 0.54); }
.cart-drawer { position: fixed; z-index: 2000; top: 0; right: 0; width: min(100%, 470px); height: 100dvh; display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow-md); transform: translateX(105%); visibility: hidden; transition: transform 220ms ease, visibility 220ms ease; }
.cart-drawer.is-open { transform: translateX(0); visibility: visible; }
.cart-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 22px; border-bottom: 1px solid var(--border); }
.cart-header h2 { font-size: 1.8rem; margin-bottom: 0; }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 74px 1fr; gap: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.cart-item.is-unavailable { padding: 12px; border: 2px solid #c75f5f; border-radius: 14px; background: var(--danger-bg); }
.cart-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 12px; background: var(--cream-100); }
.cart-item-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-item h3 { font-size: 1rem; margin-bottom: 2px; }
.cart-item-meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 8px; }
.cart-item-warning { margin: -2px 0 8px; color: var(--danger); font-size: 0.84rem; font-weight: 900; }
.cart-line-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cart-quantity { width: 118px; min-height: 44px; }
.remove-button { min-height: 44px; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--danger); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.empty-cart { min-height: 52vh; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-cart[hidden] { display: none; }
.empty-cart > span { font-size: 2.7rem; }
.empty-cart h3 { margin: 10px 0 6px; }
.cart-footer { padding: 18px 22px 22px; border-top: 1px solid var(--border); background: var(--cream-50); }
.cart-availability-status { margin-top: 0; }
.totals-list { margin: 0; display: grid; gap: 8px; }
.totals-list div { display: flex; justify-content: space-between; gap: 16px; }
.totals-list dt, .totals-list dd { margin: 0; }
.grand-total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 1.25rem; font-weight: 900; color: var(--espresso-900); }

.checkout-dialog { width: min(96vw, 1180px); max-height: 94dvh; padding: 0; border: 0; border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-md); overflow: hidden; }
.checkout-dialog::backdrop { background: rgba(22, 12, 6, 0.66); }
.checkout-shell { max-height: 94dvh; overflow-y: auto; }
.checkout-header { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); }
.checkout-header h2 { font-size: 1.8rem; margin-bottom: 0.2rem; }
.order-number-line { margin-bottom: 0; color: var(--muted); }
#checkoutForm { padding: 24px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr); gap: 26px; align-items: start; }
.checkout-fields { display: grid; gap: 20px; }
.form-section { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--cream-50); }
.form-section h3 { margin-bottom: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 800; color: var(--espresso-800); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bfa78a;
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 0.82rem; }
.field-error { display: block; min-height: 1.2em; margin-top: 4px; color: var(--danger); font-size: 0.82rem; font-weight: 800; }
.checkbox-field { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checkbox-field input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--espresso-800); }
.checkbox-field label { margin: 0; }
.gcash-card { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 20px; align-items: start; margin-bottom: 18px; }
.gcash-qr { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.gcash-instructions p { margin-bottom: 8px; }
.gcash-instructions ol { padding-left: 1.25rem; margin-bottom: 0; }
.notice { padding: 14px 16px; border-radius: 14px; margin: 16px 0; }
.notice ul { margin: 8px 0 0; padding-left: 1.2rem; }
.notice-warning { color: var(--warning); background: var(--warning-bg); border: 1px solid #e8ce79; }
.notice-error { color: var(--danger); background: var(--danger-bg); border: 1px solid #e3a7a7; }
.checkout-summary { position: sticky; top: 108px; padding: 20px; border-radius: var(--radius-md); background: var(--cream-100); border: 1px solid var(--border); }
.checkout-items { display: grid; gap: 10px; max-height: 350px; overflow-y: auto; padding-right: 4px; }
.checkout-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.checkout-item p { margin-bottom: 0; }
.checkout-item-meta { color: var(--muted); font-size: 0.84rem; }
.checkout-totals { margin-top: 16px; }
.clear-draft-button { margin-top: 8px; }
.checkout-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 22px; }
.submission-status { min-height: 1.5rem; margin-top: 18px; color: var(--danger); font-weight: 800; }
.confirmation-view { padding: 54px 24px 64px; text-align: center; max-width: 680px; margin-inline: auto; }
.confirmation-icon { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--olive-100); color: var(--success); font-size: 2.4rem; font-weight: 900; }
.confirmation-number { display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--cream-100); color: var(--espresso-900); font-size: 1.35rem; font-weight: 900; letter-spacing: 0.06em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 3000; max-width: min(90vw, 460px); padding: 12px 16px; border-radius: 999px; background: var(--espresso-900); color: var(--white); box-shadow: var(--shadow-md); transform: translate(-50%, 130px); opacity: 0; transition: transform 180ms ease, opacity 180ms ease; pointer-events: none; text-align: center; font-weight: 800; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card:last-child { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 56px 0; }
  .header-inner { position: relative; gap: 10px; }
  .header-logo { width: 46px; height: 46px; }
  .brand-text { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .primary-nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 1px); display: none; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-md); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { width: 100%; }
  .cart-button { padding-inline: 12px; }
  .cart-button > span:nth-child(2) { display: none; }
  .hero { min-height: 680px; align-items: end; }
  .hero-image { object-position: 62% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,250,240,0.15) 0%, rgba(255,250,240,0.76) 48%, rgba(255,250,240,0.98) 75%); }
  .hero-content { padding-block: 54px; }
  .hero-note { border-radius: 18px; }
  .split-layout, .coffee-story-inner { grid-template-columns: 1fr; gap: 28px; }
  .coffee-story-logo { width: min(80%, 250px); height: min(80vw, 250px); }
  .section-heading { align-items: start; }
  .desktop-cart-shortcut { display: none; }
  .product-grid, .featured-grid, .about-grid { grid-template-columns: 1fr; }
  .featured-card:last-child { grid-column: auto; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .gcash-card { grid-template-columns: 1fr; }
  .gcash-qr { max-width: 360px; margin-inline: auto; }
  .checkout-dialog { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .checkout-shell { max-height: 100dvh; }
  .checkout-header { padding: 16px; }
  #checkoutForm { padding: 16px; }
  .form-section { padding: 16px; }
  .checkout-actions { position: sticky; bottom: 0; z-index: 3; margin: 20px -16px -16px; padding: 14px 16px; background: var(--white); border-top: 1px solid var(--border); }
  .checkout-actions .button { flex: 1; }
}

@media (max-width: 430px) {
  h1 { font-size: 2.7rem; }
  .option-row { grid-template-columns: 1fr; }
  .quantity-block { max-width: 150px; }
  .checkout-actions { flex-direction: column-reverse; }
  .cart-item { grid-template-columns: 62px 1fr; }
  .cart-item img { width: 62px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
