:root {
  color-scheme: dark;
  --bg: #100f0d;
  --surface: #191714;
  --surface-2: #211d18;
  --text: #fff8ee;
  --muted: #c9bda9;
  --line: #3f3529;
  --gold: #d9aa58;
  --red: #c7332f;
  --red-dark: #95231f;
  --green: #16824b;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  --display-font: Georgia, "Times New Roman", serif;
  --body-font: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  letter-spacing: 0;
  overflow-x: hidden;
}

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(16, 15, 13, 0.95);
  border-bottom: 1px solid rgba(217, 170, 88, 0.2);
  backdrop-filter: blur(12px);
}

.brand {
  display: grid;
  gap: 4px;
  align-items: start;
}

.brand-logo {
  display: block;
  width: clamp(190px, 26vw, 250px);
  height: auto;
  object-fit: contain;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.flame {
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
}

.flame::after {
  content: "";
  display: block;
  width: 160px;
  max-width: 100%;
  height: 5px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--green) 0 33%, #f8efe2 33% 66%, var(--red) 66% 100%);
}

.subtitle {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 10px;
}

nav a {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid rgba(217, 170, 88, 0.28);
  border-radius: 8px;
  font-weight: 800;
}

.top-note {
  padding: 9px 12px;
  color: var(--gold);
  background: rgba(217, 170, 88, 0.08);
  border: 1px solid rgba(217, 170, 88, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(16px, 5vw, 44px) 10px;
  text-align: left;
}

.intro .kicker,
.shop-heading .kicker,
.order-copy .kicker {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 6px 0 6px;
  font-family: var(--display-font);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
}

.intro p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.promo-strip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  max-width: 100%;
  padding: 10px 14px;
  color: #170f08;
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(217, 170, 88, 0.16);
}

.promo-strip strong {
  text-transform: uppercase;
}

.promo-strip em {
  padding: 5px 9px;
  color: var(--text);
  background: var(--red);
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.promo-strip-secondary {
  margin-left: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #2d2518, #1a1713);
  border: 1px solid rgba(217, 170, 88, 0.35);
}

.promo-strip-secondary strong {
  color: var(--gold);
}

.restaurant-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.restaurant-details {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(16px, 5vw, 44px) 38px;
}

.product-card,
.cart-panel,
.order-form {
  background: var(--surface);
  border: 1px solid rgba(217, 170, 88, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.restaurant-info div {
  padding: 15px;
  background: rgba(255, 248, 238, 0.04);
  border: 1px solid rgba(217, 170, 88, 0.14);
  border-radius: 8px;
}

.restaurant-info dt {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.restaurant-info dd {
  margin: 0;
  line-height: 1.4;
}

.flow-main {
  display: grid;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
  padding: 22px clamp(16px, 5vw, 44px) 44px;
}

.flow-checkout {
  max-width: 1180px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.5fr);
  align-items: start;
}

.flow-copy {
  display: grid;
  gap: 8px;
}

.flow-copy h1 {
  margin: 0;
}

.flow-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cart-page-panel,
.checkout-summary {
  position: static;
  max-height: none;
  overflow: visible;
}

.checkout-summary {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 88px;
}

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

.flow-actions .secondary-action {
  display: grid;
  place-items: center;
  min-height: 52px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid rgba(217, 170, 88, 0.28);
  border-radius: 8px;
  font-weight: 900;
}

.mini-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.shop-section,
.order-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px clamp(16px, 5vw, 44px);
}

.shop-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.shop-heading h2,
.order-copy h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1;
}

.shop-heading p,
.order-copy p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.catalog {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.045), rgba(255, 248, 238, 0.022));
  border: 1px solid rgba(217, 170, 88, 0.14);
  border-radius: 8px;
}

.category-tabs {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px;
  background: rgba(15, 13, 11, 0.96);
  border: 1px solid rgba(217, 170, 88, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  scrollbar-width: thin;
}

.category-tabs:empty {
  display: none;
}

.mobile-category-select {
  display: none;
}

.category-tabs button {
  min-height: 42px;
  padding: 0 17px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid rgba(217, 170, 88, 0.22);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 800;
}

.category-tabs button.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 8px 18px rgba(199, 51, 47, 0.24);
}

.category-title {
  margin: 8px 0 0;
  color: var(--gold);
  font-family: var(--display-font);
  font-size: 28px;
  line-height: 1;
}

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

.subcategory-heading {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 9px 12px;
  color: var(--gold);
  background: rgba(217, 170, 88, 0.08);
  border: 1px solid rgba(217, 170, 88, 0.14);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.fallback-category {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 18px;
  color: var(--text);
  border-top: 1px solid rgba(217, 170, 88, 0.2);
  font-size: 28px;
  font-weight: 900;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.045), rgba(255, 248, 238, 0.018));
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card-photo {
  grid-template-columns: 132px minmax(0, 1fr) 62px;
  align-items: stretch;
}

.product-photo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(217, 170, 88, 0.2);
}

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

.product-option {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-option select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--text);
  background: #0f0d0b;
  border: 1px solid rgba(217, 170, 88, 0.24);
  border-radius: 8px;
  font: inherit;
}

.product-option-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.product-option-check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.product-card:hover {
  border-color: rgba(217, 170, 88, 0.34);
  transform: translateY(-1px);
}

.product-card h3 {
  margin: 0 0 5px;
  font-family: var(--display-font);
  font-size: 21px;
}

.product-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.product-price {
  color: var(--gold);
  font-weight: 900;
}

.product-card button {
  position: relative;
  isolation: isolate;
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(199, 51, 47, 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.product-card button:active,
.drink-suggestion-grid button:active,
.promo-strip:active {
  transform: scale(0.96);
}

.product-card.just-added,
.drink-suggestion.just-added,
.promo-strip.just-added {
  border-color: rgba(217, 170, 88, 0.64);
  box-shadow: 0 0 0 1px rgba(217, 170, 88, 0.22), 0 16px 34px rgba(217, 170, 88, 0.1);
}

.add-bounce {
  animation: addPulse 0.42s ease;
}

.add-bubble {
  position: absolute;
  top: -18px;
  right: -8px;
  z-index: 2;
  min-width: 30px;
  padding: 4px 7px;
  color: #170f08;
  background: var(--gold);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  animation: floatPlus 0.72s ease forwards;
}

.add-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(320px, calc(100vw - 36px));
  padding: 12px 16px;
  color: #170f08;
  background: var(--gold);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.add-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes addPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); box-shadow: 0 12px 26px rgba(199, 51, 47, 0.42); }
  100% { transform: scale(1); }
}

@keyframes floatPlus {
  0% { opacity: 0; transform: translateY(6px) scale(0.8); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px) scale(1.08); }
}

.cart-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #1d1a16, #15130f);
}

.cart-panel h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 26px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-toggle {
  display: none;
}

.cart-items {
  display: grid;
  gap: 10px;
  max-height: 42vh;
  overflow: auto;
  padding-right: 2px;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(217, 170, 88, 0.14);
}

.cart-item-name {
  font-weight: 900;
}

.cart-item small {
  color: var(--muted);
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-controls button {
  width: 34px;
  height: 34px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid rgba(217, 170, 88, 0.25);
  border-radius: 8px;
  cursor: pointer;
}

.item-note,
.order-form input,
.order-form textarea,
.order-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: #0f0d0b;
  border: 1px solid rgba(217, 170, 88, 0.24);
  border-radius: 8px;
  font: inherit;
}

.item-note {
  margin-top: 8px;
  font-size: 14px;
}

.extra-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.extra-option input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}

.tax-line,
.delivery-line,
.discount-line,
.delivery-note,
.delivery-rates {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.discount-line strong {
  color: var(--gold);
}

.grand-total {
  padding-top: 11px;
  color: var(--gold);
  border-top: 1px solid rgba(217, 170, 88, 0.2);
  font-size: 21px;
  font-weight: 900;
}

.cart-next,
.order-form button {
  display: grid;
  place-items: center;
  min-height: 52px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #df3b34, var(--red-dark));
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cart-panel .cart-next {
  position: sticky;
  bottom: 12px;
  box-shadow: 0 12px 26px rgba(199, 51, 47, 0.26);
}

.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  border-top: 1px solid rgba(217, 170, 88, 0.14);
}

.order-copy {
  display: grid;
  align-self: start;
  gap: 8px;
  position: sticky;
  top: 90px;
}

.order-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.order-form label,
.order-form fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.order-form fieldset {
  padding: 12px;
  border: 1px solid rgba(217, 170, 88, 0.2);
  border-radius: 8px;
}

.order-form legend {
  padding: 0 6px;
  color: var(--gold);
  font-weight: 900;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.payment-fieldset {
  gap: 10px !important;
}

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

.payment-card {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  min-height: 76px;
  padding: 12px;
  color: var(--text) !important;
  background: #0f0d0b;
  border: 1px solid rgba(217, 170, 88, 0.22);
  border-radius: 8px;
}

.payment-card input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.payment-card strong,
.payment-card small {
  display: block;
}

.payment-card small {
  margin-top: 4px;
  color: var(--muted);
}

.payment-card:has(input[value="Efectivo"]) strong {
  color: var(--gold);
}

.payment-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(217, 170, 88, 0.1);
}

.payment-card:has(input[value="Efectivo"]:checked)::after {
  content: "Ahorra 7%";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  color: #170f08;
  background: var(--gold);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.cash-change[hidden] {
  display: none !important;
}

.cash-change small {
  color: var(--gold);
  font-size: 13px;
  line-height: 1.35;
}

.drink-suggestion {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(217, 170, 88, 0.14), rgba(199, 51, 47, 0.08));
  border: 1px solid rgba(217, 170, 88, 0.28);
  border-radius: 8px;
}

.drink-suggestion h3 {
  margin: 3px 0 4px;
  font-family: var(--display-font);
  font-size: 25px;
  line-height: 1;
}

.drink-suggestion p {
  margin: 0;
  color: var(--muted);
}

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

.drink-suggestion-grid button {
  position: relative;
  isolation: isolate;
  min-height: 46px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(16, 15, 13, 0.72);
  border: 1px solid rgba(217, 170, 88, 0.28);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.drink-suggestion-grid button span {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-size: 12px;
}

.drink-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  background: rgba(16, 15, 13, 0.82);
  border: 1px solid rgba(217, 170, 88, 0.24);
  border-radius: 8px;
  font-weight: 900;
}

.drink-total strong {
  color: var(--gold);
  font-family: var(--display-font);
  font-size: 25px;
  line-height: 1;
}

.save-data {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  color: var(--text) !important;
  padding: 12px;
  background: rgba(217, 170, 88, 0.08);
  border: 1px solid rgba(217, 170, 88, 0.2);
  border-radius: 8px;
}

.save-data input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.order-form textarea {
  resize: vertical;
}

.location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.location-button {
  min-width: 158px;
  padding: 0 14px;
  color: var(--text) !important;
  background: var(--surface-2) !important;
  border: 1px solid rgba(217, 170, 88, 0.25) !important;
}

.location-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid rgba(217, 170, 88, 0.3);
  border-radius: 50%;
  font-size: 20px;
}

.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 15, 13, 0.82);
  backdrop-filter: blur(8px);
}

.thanks-modal[hidden] {
  display: none;
}

.thanks-card {
  width: min(440px, 100%);
  padding: 28px 22px;
  text-align: center;
  background: linear-gradient(180deg, #211d18, #15130f);
  border: 1px solid rgba(217, 170, 88, 0.32);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.thanks-card h2 {
  margin: 6px 0 10px;
  color: var(--text);
  font-family: var(--display-font);
  font-size: clamp(30px, 7vw, 46px);
  line-height: 0.95;
  text-transform: uppercase;
}

.thanks-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 86px;
  }

  .add-toast {
    right: 12px;
    bottom: 98px;
    left: 12px;
    max-width: none;
    text-align: center;
  }

  .topbar {
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
  }

  .flame {
    font-size: 22px;
  }

  .flame::after {
    width: 128px;
  }

  .top-note {
    padding: 7px 10px;
    font-size: 11px;
  }

  .intro {
    padding-top: 18px;
    padding-bottom: 10px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .promo-strip,
  .restaurant-info,
  .shop-layout,
  .product-grid,
  .order-section,
  .location-row {
    grid-template-columns: 1fr;
  }

  .promo-strip {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-top: 12px;
  }

  .product-card-photo {
    grid-template-columns: 1fr 58px;
  }

  .product-card-photo .product-photo {
    grid-column: 1 / -1;
    width: 100%;
    height: 190px;
  }

  .promo-strip-secondary {
    margin-left: 0;
  }

  .intro p {
    font-size: 15px;
  }

  .shop-section,
  .order-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .shop-heading {
    margin-bottom: 12px;
  }

  .shop-heading h2 {
    font-size: 34px;
  }

  .category-tabs {
    display: none;
  }

  .mobile-category-select {
    position: sticky;
    top: 67px;
    z-index: 22;
    display: grid;
    gap: 6px;
    margin: -2px -12px 10px;
    padding: 10px 12px;
    color: var(--gold);
    background: rgba(16, 15, 13, 0.97);
    border-bottom: 1px solid rgba(217, 170, 88, 0.18);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-category-select select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid rgba(217, 170, 88, 0.28);
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
  }

  .catalog {
    padding: 12px;
    order: 1;
  }

  .cart-panel {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 55;
    order: 2;
    max-height: 88px;
    overflow: hidden;
    margin-top: 0;
    padding: 12px;
    border-color: rgba(217, 170, 88, 0.28);
    border-radius: 10px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
    transition: max-height 0.2s ease;
  }

  body:not(.flow-page) .cart-panel:not(.has-items) {
    display: none;
  }

  .cart-panel.is-open {
    max-height: min(68vh, 560px);
    overflow: auto;
  }

  .cart-items {
    max-height: 34vh;
  }

  .cart-panel h3 {
    font-size: 18px;
  }

  .cart-toggle {
    display: inline-grid;
    place-items: center;
    min-height: 34px;
    padding: 0 11px;
    color: #170f08;
    background: var(--gold);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
  }

  .cart-panel:not(.is-open) .cart-items,
  .cart-panel:not(.is-open) .cart-total:not(.grand-total),
  .cart-panel:not(.is-open) .delivery-note,
  .cart-panel:not(.is-open) .cart-next {
    display: none;
  }

  .cart-panel:not(.is-open) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
  }

  .cart-panel:not(.is-open) .cart-header {
    display: contents;
  }

  .cart-panel:not(.is-open) .grand-total {
    grid-column: 1 / -1;
    padding-top: 0;
    border-top: 0;
  }

  .cart-total {
    font-size: 14px;
  }

  .grand-total {
    font-size: 15px;
    padding-top: 6px;
  }

  .grand-total strong {
    white-space: nowrap;
  }

  .cart-next {
    position: static;
    min-height: 42px;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-controls {
    justify-content: flex-end;
  }

  .product-options {
    grid-template-columns: 1fr;
  }

  .order-copy {
    position: static;
  }

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

  .payment-options {
    grid-template-columns: 1fr;
  }

  .order-form input,
  .order-form textarea,
  .order-form button,
  .item-note {
    font-size: 16px;
  }

  .back-top {
    right: 14px;
    bottom: 16px;
  }

  .flow-main,
  .flow-checkout {
    grid-template-columns: 1fr;
    padding: 18px 12px 32px;
  }

  .flow-page {
    padding-bottom: 0;
  }

  .flow-page .cart-panel,
  .flow-page .checkout-summary {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 14px;
    border-radius: 8px;
  }

  .flow-page .cart-panel,
  .flow-page .cart-panel:not(.is-open) {
    grid-template-columns: 1fr !important;
    align-items: stretch;
    gap: 12px;
  }

  .flow-page .cart-panel:not(.is-open) .cart-header {
    display: flex;
  }

  .flow-page .cart-items {
    display: grid !important;
    max-height: none;
    overflow: visible;
  }

  .flow-page .cart-panel:not(.is-open) .cart-items,
  .flow-page .cart-panel:not(.is-open) .cart-total:not(.grand-total),
  .flow-page .cart-panel:not(.is-open) .delivery-note,
  .flow-page .cart-panel:not(.is-open) .cart-next {
    display: revert;
  }

  .flow-page .cart-item {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .flow-page .cart-item-name,
  .flow-page .cart-item small {
    overflow-wrap: anywhere;
  }

  .flow-page .cart-total {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .flow-page .cart-total span,
  .flow-page .cart-total strong {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .flow-page .cart-total strong {
    flex: 0 0 auto;
    text-align: right;
  }

  .flow-page .delivery-note {
    display: block !important;
  }

  .flow-page .cart-next,
  .flow-page .secondary-action {
    display: grid !important;
  }

  .flow-page .grand-total {
    font-size: 18px;
  }

  .flow-page .grand-total strong {
    white-space: normal;
  }

  .flow-page .cart-toggle {
    display: none;
  }

  .checkout-summary {
    grid-column: auto;
    grid-row: auto;
  }

  .flow-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .add-bounce,
  .add-bubble {
    animation: none;
  }

  .add-toast {
    transition: none;
  }
}
