:root {
  --orange: #ff5700;
  --orange-dark: #e64500;
  --orange-glow: rgba(255, 87, 0, 0.28);
  --ink: #0d1117;
  --muted: #57606a;
  --line: #cbd5e1;
  --bg: #eff2f5;
  --green: #15803d;
  --track: #e2e8f0;
  --thumb: #94a3b8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--thumb) var(--track);
}
*::-webkit-scrollbar { width: 8px; height: 6px; }
*::-webkit-scrollbar-track { background: var(--track); }
*::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: #64748b; }

html { scroll-behavior: smooth; scroll-padding: 24px; }
body { margin: 0; padding-bottom: 160px; background: var(--bg); color: var(--ink); }

button, input, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button, a[href] { cursor: pointer; }
button, input { font: inherit; }
button { border: 0; transition: all .15s ease; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }

input {
  width: 100%;
  min-width: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  padding: 12px 14px;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: #94a3b8; font-weight: 500; opacity: 1; }
input:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-glow);
}
input[aria-invalid=true] { border-color: #dc2626; box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2); }
button:focus-visible, a:focus-visible { outline: 3px solid #ff884d; outline-offset: 3px; }

/* Header */
.brand-header {
  height: 150px;
  background: #0d1117;
  border-bottom: 3.5px solid var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden !important;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  max-height: 65px !important;
  overflow: hidden !important;
}
.brand img, .header-logo {
  object-fit: contain !important;
  max-height: 56px !important;
  max-width: 220px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}
.brand > span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1;
}
.brand b { color: #ffffff; }
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.5px;
  margin-top: 5px;
  color: #ff9d66;
  font-weight: 800;
}
.assurance {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid #c2410c;
  background: #2a1208;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fed7aa;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 87, 0, 0.25);
  text-transform: uppercase;
}
.assurance svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ff7e2e;
  stroke-width: 2.5;
}

/* Layout */
.layout {
  max-width: 1120px;
  margin: auto;
  padding: 30px 24px 40px;
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 34px;
}
.intro {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  background: #ffffff;
  padding: 16px 18px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
  border: 1px solid #d8dde3;
  margin-bottom: 24px;
  border-radius: 6px;
  color: #334155;
}
.section h1, .section h2 {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 16px;
  line-height: 1.25;
  position: relative;
  padding-left: 12px;
  color: #0d1117;
  letter-spacing: -0.3px;
}
.section h1:before, .section h2:before {
  content: "";
  position: absolute;
  width: 4px;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--orange);
  border-radius: 3px;
}

/* Form */
.field { margin-bottom: 16px; min-width: 0; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 800;
  margin-bottom: 7px;
  color: #1e293b;
  text-transform: uppercase;
}
.field label > span:not(.optional) { color: var(--orange); }
.optional { font-weight: 600; color: #64748b; font-size: 10px; }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; }
.field-row > .number { flex: 0 0 110px; }
.field-row > .state { flex: 0 0 70px; }
#uf { text-transform: uppercase; }
.error { display: block; color: #dc2626; font-size: 11px; font-weight: 700; line-height: 1.4; }
.error:not(:empty) { margin-top: 5px; }
.help { font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--muted); margin: 7px 0 0; }
.help.success { color: var(--green); }
.help.danger { color: #dc2626; }
.privacy-note { font-size: 11px; font-weight: 600; line-height: 1.5; color: #64748b; margin: 0 0 24px; }

/* Coupon */
.coupon-section { margin-top: 26px; }
.coupon-panel {
  background: #ffffff;
  padding: 16px;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}
.coupon-panel > label {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.coupon-row { display: flex; gap: 10px; }
.coupon-row input { text-transform: uppercase; }
.coupon-row .orange { width: 120px; flex-shrink: 0; }
.orange {
  background: linear-gradient(135deg, #ff6200 0%, #ee3e00 100%);
  border: 1px solid #e03b00;
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 16px;
  box-shadow: 0 4px 14px rgba(255, 87, 0, 0.35);
  letter-spacing: 0.5px;
}
.orange:hover {
  background: linear-gradient(135deg, #ff7214 0%, #dc3700 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 87, 0, 0.45);
}
.orange:active, .qty button:active { transform: scale(.96); }

/* Catalog */
.catalog-column { padding-top: 2px; }
.catalog-tools { margin-bottom: 18px; }
.search-wrap { position: relative; }
.search-wrap input { padding-right: 42px; font-weight: 600; }
.search-wrap input::-webkit-search-cancel-button { appearance: none; }
.search-wrap button {
  position: absolute;
  right: 2px;
  top: 2px;
  height: 40px;
  width: 40px;
  background: transparent;
  font-size: 24px;
  font-weight: 700;
  color: #64748b;
}
.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0 8px;
  scrollbar-gutter: stable;
}
.category {
  flex-shrink: 0;
  background: #ffffff;
  color: #1e293b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 14px;
  min-height: 38px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all .15s ease;
}
.category:hover {
  background: #fff5ed;
  border-color: #ff9d66;
  color: #ea580c;
}
.category.active {
  color: #ffffff;
  border-color: #ff5700;
  background: linear-gradient(135deg, #ff6200 0%, #ee3e00 100%);
  box-shadow: 0 4px 12px rgba(255, 87, 0, 0.32);
}
.free-shipping {
  border: 1.5px solid #10b981;
  background: #ecfdf5;
  border-radius: 6px;
  padding: 11px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1px;
  margin-top: 10px;
  color: #065f46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}
.free-shipping strong { color: #047857; text-decoration: underline; text-underline-offset: 2px; }
.free-shipping svg {
  width: 18px;
  height: 18px;
  stroke: #ff5700;
  fill: #fcd34d;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* Products */
.product-group { margin-bottom: 22px; }
.group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.group-title h3 {
  font-size: 13px;
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0d1117;
}
.group-title span { font-size: 11px; font-weight: 700; color: #64748b; }
.product-card {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  margin-bottom: 10px;
  min-height: 90px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.product-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-copy { flex: 1; min-width: 0; }
.product-copy h4 {
  font-size: 14px;
  line-height: 1.3;
  margin: 0 0 6px;
  font-weight: 800;
  color: #0d1117;
}
.product-copy span {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.product-copy .price {
  color: #ff5700;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.4px;
}
.qty {
  display: flex;
  gap: 0;
  align-items: center;
  flex-shrink: 0;
  border: 1.5px solid #cbd5e1;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 3px;
}
.qty button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  font-size: 20px;
  font-weight: 900;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  line-height: 1;
}
.qty button:hover:not(:disabled) { background: #e2e8f0; }
.qty button:disabled { color: #cbd5e1; background: #f8fafc; border-color: #e2e8f0; }
.qty .plus {
  background: linear-gradient(135deg, #ff6200, #ee3e00);
  border-color: #e03b00;
  color: #ffffff;
}
.qty .plus:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff7214, #dc3700);
  color: #ffffff;
}
.qty output {
  font-size: 14px;
  font-weight: 900;
  width: 28px;
  text-align: center;
  color: #0d1117;
}
.catalog-note {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #64748b;
  padding: 10px 0 14px;
}
.no-results {
  text-align: center;
  background: #ffffff;
  padding: 40px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}
.no-results strong { font-size: 16px; font-weight: 900; color: #0d1117; }
.no-results p { font-size: 13px; font-weight: 600; line-height: 1.5; color: #64748b; }
.no-results button {
  background: #fff5ed;
  color: #c2410c;
  border: 1.5px solid #ffb285;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 800;
}

/* Fixed Bottom Summary Bar */
.summary-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #ffffff;
  border-top: 2px solid #fed7aa;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
  padding: 14px 28px max(14px, env(safe-area-inset-bottom));
}
.summary-inner {
  max-width: 1080px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.item-count { font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; margin-bottom: 2px; }
.summary-copy > strong {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.1;
  color: #0d1117;
}
.summary-details {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #475569;
  margin-top: 4px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.summary-details b { color: #0f172a; font-weight: 800; }
.shipping-hint { font-size: 12px; color: #9a3412; margin-top: 4px; font-weight: 800; }
.shipping-hint.unlocked { color: var(--green); }
.review-button {
  height: 48px;
  min-width: 270px;
  background: #111827;
  border: 1px solid #111827;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all .18s ease;
}
.review-button svg { width: 18px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.review-button:not(:disabled) {
  background: linear-gradient(135deg, #ff6200 0%, #ee3e00 100%);
  border-color: #e03b00;
  box-shadow: 0 4px 18px rgba(255, 87, 0, 0.4);
}
.review-button:not(:disabled):hover {
  background: linear-gradient(135deg, #ff7214 0%, #dc3700 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 87, 0, 0.5);
}
.review-button:disabled {
  background: #334155;
  border-color: #334155;
  color: #94a3b8;
  box-shadow: none;
}
.review-button:disabled svg { display: none; }

/* Spinners */
.cep-wrap { position: relative; }
.cep-spinner {
  position: absolute;
  right: 12px;
  top: 13px;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-top-color: var(--orange);
  border-radius: 100%;
  animation: spin .8s linear infinite;
}

/* Modal Review Dialog */
dialog {
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  width: calc(100% - 28px);
  max-width: 530px;
  max-height: calc(100dvh - 40px);
  color: var(--ink);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}
dialog::backdrop {
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #ea580c;
  font-weight: 800;
  text-transform: uppercase;
}
.dialog-header h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; margin: 4px 0 0; color: #0d1117; }
.close-button {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 26px;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}
.close-button:hover { background: #e2e8f0; color: #0f172a; }
.dialog-content { padding: 18px 24px; }
.dialog-content h3 {
  font-size: 14px;
  font-weight: 900;
  border-left: 3.5px solid var(--orange);
  padding-left: 8px;
  margin: 18px 0 12px;
  color: #0d1117;
  letter-spacing: -0.2px;
}
.review-customer {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px;
  color: #1e293b;
  overflow-wrap: anywhere;
}
.review-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  line-height: 1.4;
}
.review-line strong { white-space: nowrap; font-weight: 900; }
.review-line.total {
  font-size: 19px;
  font-weight: 900;
  border-bottom: 0;
  color: #ff5700;
  padding-top: 14px;
}
.review-line .line-name { max-width: 70%; font-weight: 800; }
.review-notice {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 12px;
  border-radius: 6px;
  color: #92400e;
}
.dialog-actions { padding: 0 24px 24px; display: grid; gap: 10px; }
.dialog-actions .orange { color: #ffffff; font-weight: 900; font-size: 13px; }

.pay-infinitepay-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff5700 0%, #e64500 100%);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(255, 87, 0, 0.45);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.pay-infinitepay-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 87, 0, 0.55);
  background: linear-gradient(135deg, #ff6a1a 0%, #eb4d0a 100%);
}
.pay-infinitepay-button:active:not(:disabled) {
  transform: translateY(1px);
}
.pay-infinitepay-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.pay-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.pay-security-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  padding: 4px 0 2px;
}
.pay-security-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pay-security-row svg {
  color: #16a34a;
}
.pay-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6px 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.pay-divider::before,
.pay-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.pay-divider span {
  padding: 0 10px;
}
.copy-order-button {
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  font-size: 12px;
  padding: 11px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all .15s ease;
}
.copy-order-button:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.checkout-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  line-height: 1.4;
}

.text-button {
  background: transparent;
  padding: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}
.text-button:hover { color: #0f172a; }
.whatsapp-button {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  text-align: center;
  padding: 14px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  letter-spacing: 0.5px;
}
.whatsapp-button:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff;
}
.toast {
  position: fixed;
  bottom: 165px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d1117;
  color: #ffffff;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 800;
  z-index: 30;
  pointer-events: none;
  max-width: calc(100% - 32px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity .2s ease;
}
.toast.visible { opacity: 1; }

[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Shared Storefront Settings */
.product-card, .intro, .coupon-panel, .product-thumb, .category, input, .review-button {
  border-radius: var(--card-radius, 6px);
}
.product-copy .price { color: var(--orange-dark); }
.brand strong { font-size: inherit; font-weight: 900; }
.store-load-status {
  grid-column: 1/-1;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 16px;
  font-size: 13px;
  font-weight: 700;
}
.store-load-status button {
  background: var(--orange);
  color: #ffffff;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 6px;
  margin-left: 6px;
}
.field-row:has(>.field[hidden]):not(:has(>.field:not([hidden]))) { display: none; }
.layout > .coupon-section { margin-top: 0; }
.layout[data-mode="stacked"] {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  gap: 25px;
}
.layout[data-mode="stacked"] .customer-column { border: 0; padding: 0; }
.layout[data-density="comfortable"] .product-card { padding: 16px; min-height: 104px; }
.layout[data-density="comfortable"] .product-thumb { width: 76px; height: 76px; }

/* Responsive */
@media(min-width: 769px) {
  .customer-column { padding-right: 24px; border-right: 1.5px solid #d8dde3; }
  .catalog-column > .section h2 { font-size: 16px; }
  .catalog-tools {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 2;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .brand-header { height: 155px; }
  .product-card { min-height: 94px; }
  .layout:not([data-mode="stacked"]) {
    grid-template-rows: auto 1fr;
    column-gap: 34px;
    row-gap: 0;
  }
  .layout:not([data-mode="stacked"]) > .customer-column { grid-column: 1; grid-row: 1; }
  .layout:not([data-mode="stacked"]) > .coupon-section {
    grid-column: 1;
    grid-row: 2;
    padding-right: 24px;
    border-right: 1.5px solid #d8dde3;
  }
  .layout:not([data-mode="stacked"]) > .catalog-column { grid-column: 2; grid-row: 1 / span 2; }
}

@media(max-width: 768px) {
  .brand-header { height: 124px; gap: 8px; }
  .brand > span { font-size: 21px; }
  .brand img { max-height: 52px; max-width: 210px; height: auto; width: auto; }
  .assurance { font-size: 10px; padding: 5px 12px; }
  .layout { display: flex; flex-direction: column; max-width: 540px; padding: 22px 14px 26px; gap: 0; }
  .layout > .coupon-section { margin: 24px 0; }
  .layout[data-mode="stacked"] { gap: 0; }
  .layout[data-density="comfortable"] .product-card { padding: 12px; }
  .layout[data-density="comfortable"] .product-thumb { width: 68px; height: 68px; }
  .intro { padding: 14px; font-size: 13px; margin-bottom: 22px; }
  .section h1, .section h2 { font-size: 14px; margin-bottom: 14px; }
  .field { margin-bottom: 16px; }
  .field label { font-size: 10px; }
  .field input { height: 44px; font-size: 14px; }
  .privacy-note { margin-top: 0; }
  .coupon-section { margin: 24px 0; }
  .coupon-panel { padding: 12px; }
  .coupon-panel > label { font-size: 12px; }
  .coupon-row .orange { width: 120px; }
  .catalog-column { padding-top: 0; }
  .categories { gap: 6px; }
  .category { font-size: 10px; min-height: 36px; padding: 9px 12px; }
  .free-shipping { font-size: 12px; padding: 10px; margin-top: 10px; }
  .product-card { padding: 10px; gap: 12px; min-height: 84px; margin-bottom: 10px; }
  .product-thumb { width: 62px; height: 62px; }
  .product-copy h4 { font-size: 13px; margin-bottom: 6px; }
  .product-copy .price { font-size: 14px; }
  .qty { padding: 3px; }
  .qty button { width: 32px; height: 34px; }
  .qty output { width: 25px; font-size: 13px; }
  .group-title h3 { font-size: 11px; }
  .group-title span { font-size: 10px; }
  .summary-bar { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .summary-inner { display: block; max-width: 520px; }
  .summary-copy > strong { font-size: 22px; }
  .item-count { font-size: 10px; }
  .summary-details { display: block; font-size: 11px; line-height: 1.4; margin-top: 4px; }
  .summary-details > span { display: block; }
  .shipping-hint { font-size: 11px; margin-top: 0; }
  .review-button { width: 100%; min-width: 0; height: 46px; margin-top: 12px; font-size: 12px; }
  body { padding-bottom: 180px; }
  .toast { bottom: 180px; }
  .dialog-header { padding: 18px 20px; }
  .dialog-content { padding: 14px 20px; }
  .dialog-actions { padding: 0 20px 18px; }
}

@media(max-width: 350px) {
  .product-thumb { width: 50px; height: 54px; }
  .product-card { gap: 8px; padding: 8px; }
  .product-copy h4 { font-size: 12px; }
  .qty button { width: 28px; }
  .qty output { width: 20px; }
  .coupon-row .orange { width: 95px; }
}

@media(prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media(forced-colors: active) {
  * { scrollbar-color: auto; }
  .category.active { outline: 2px solid Highlight; }
  .section h2:before { background: CanvasText; }
}
