:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

html {
  scroll-behavior: smooth;
}

.header-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.header-brand-logo-wrap {
  align-items: center;
  background: white;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  padding: 4px 8px;
}

.header-brand-logo {
  display: block;
  height: 28px;
  max-width: none;
  width: auto;
}

.btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}

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

.btn[disabled] {
  cursor: not-allowed;
  opacity: .45;
}

.btn.dark {
  background: #09090b;
  color: white;
}

.btn.dark:hover {
  background: #27272a;
}

.product-add-button:not(:disabled) {
  color: #fff;
}

.product-add-button,
.product-add-button span,
.product-add-button [data-add-label] {
  color: #fff;
}

.btn.light,
.btn.ghost {
  background: white;
  border: 1px solid #d4d4d8;
  color: #18181b;
}

.btn.ghost {
  border-color: transparent;
}

.btn.large {
  min-height: 46px;
  padding: 12px 18px;
}

.badge {
  background: #10b981;
  border-radius: 999px;
  color: white;
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  transform-origin: center;
}

.cart-link {
  margin-right: 4px;
  position: relative;
}

.cart-link .badge {
  border: 2px solid white;
  min-width: 20px;
  padding: 3px 5px;
  position: absolute;
  right: -8px;
  text-align: center;
  top: -8px;
}

.badge.cart-count-pop {
  transform: scale(1.18);
  transition: transform 140ms var(--ease-out);
}

.cart-live-region {
  pointer-events: none;
  position: fixed;
  right: 16px;
  top: 76px;
  z-index: 60;
}

.floating-wa {
  align-items: center;
  background: #25d366;
  border: 3px solid #fff;
  border-radius: 999px;
  bottom: 18px;
  box-sizing: border-box;
  box-shadow: 0 16px 32px rgba(37, 211, 102, .28), 0 4px 12px rgba(24, 24, 27, .12);
  color: white;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  left: auto;
  margin: 0;
  max-width: none;
  min-height: 56px;
  min-width: 56px;
  position: fixed !important;
  right: 18px;
  top: auto;
  transition: transform 140ms var(--ease-out), box-shadow 160ms ease, background-color 160ms ease;
  width: 56px;
  z-index: 45;
}

.floating-wa:hover {
  background: #1fbe5c;
  box-shadow: 0 20px 38px rgba(37, 211, 102, .34), 0 6px 16px rgba(24, 24, 27, .14);
  transform: translateY(-2px);
}

.floating-wa:active {
  transform: scale(.96);
}

.floating-wa svg {
  display: block;
  height: 30px;
  width: 30px;
}

.payment-copy-order {
  background: #18181b;
  border: 1px solid #18181b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(24, 24, 27, .14);
}

.payment-copy-order:hover {
  background: #27272a;
}

@media (max-width: 640px) {
  .floating-wa {
    bottom: 14px;
    height: 52px;
    right: 14px;
    width: 52px;
  }
}

.cart-toast {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(9, 9, 11, .2);
  color: white;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 12px 14px;
  transition: opacity 160ms ease, transform 180ms var(--ease-out);
}

.cart-toast span {
  color: #a1a1aa;
  font-size: 12px;
}

.cart-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(.98);
}

.cart-fly-dot {
  align-items: center;
  background: #10b981;
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .45);
  color: white;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 20px;
  z-index: 70;
}

.cart-fly-dot svg {
  height: 12px;
  width: 12px;
}

.cart-stepper {
  align-items: center;
  background: #f4f4f5;
  border: 1px solid #d4d4d8;
  border-radius: 9px;
  display: inline-grid;
  grid-template-columns: 36px 32px 36px;
  min-height: 38px;
  overflow: hidden;
}

.cart-stepper button {
  align-self: stretch;
  color: #18181b;
  font-size: 20px;
  line-height: 1;
  transition: background-color 140ms ease, transform 120ms var(--ease-out);
}

.cart-stepper button:active {
  background: #e4e4e7;
  transform: scale(.92);
}

.cart-stepper button:disabled {
  color: #a1a1aa;
  cursor: not-allowed;
}

.cart-stepper output {
  color: #09090b;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cart-fly-dot {
    display: none;
  }

  .cart-toast {
    transition: opacity 160ms ease;
  }
}

.hero-band {
  background:
    radial-gradient(circle at 80% 10%, rgba(16, 185, 129, .18), transparent 28rem),
    linear-gradient(180deg, #fff, #f4f4f5);
}

.hero-visual {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}

.hero-tile {
  background: linear-gradient(145deg, #ffffff, #e4e4e7);
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(24, 24, 27, .08);
  color: #18181b;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  position: relative;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.hero-tile::before {
  background: linear-gradient(135deg, rgba(9, 9, 11, .9), rgba(82, 82, 91, .3));
  border-radius: 999px;
  content: "";
  height: 170px;
  position: absolute;
  right: -40px;
  top: -35px;
  width: 170px;
}

.hero-tile:hover {
  box-shadow: 0 24px 70px rgba(24, 24, 27, .13);
  transform: translateY(-3px);
}

.hero-tile strong {
  font-size: 20px;
  line-height: 1.15;
  margin-top: 6px;
  max-width: 12rem;
}

.tile-1 {
  grid-row: span 2;
}

.tile-2,
.tile-3 {
  min-height: 150px;
}

.catalog-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.catalog-sidebar {
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

/* Desktop: filter sidebar as a static column */
@media (min-width: 641px) {
  #catalog-filter-drawer {
    display: grid;
    position: sticky;
    top: 84px;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    background: white;
    max-height: none;
    width: auto;
    margin: 0;
    overflow: hidden;
  }
  #catalog-filter-drawer::backdrop {
    display: none;
  }
  .catalog-dialog-close {
    display: none;
  }
}

/* Mobile: filter as a bottom drawer dialog */
@media (max-width: 640px) {
  #catalog-filter-drawer:not([open]) {
    display: none;
  }
  #catalog-filter-drawer {
    border: none;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    max-height: 85vh;
    margin: auto 0 0 0;
    padding: 0;
    width: 100%;
    overflow-y: auto;
  }
  #catalog-filter-drawer::backdrop {
    background: rgba(0,0,0,0.5);
  }
  #catalog-filter-drawer .catalog-sidebar-header {
    padding: 16px 18px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-bottom: 1px solid #e4e4e7;
  }
  #catalog-filter-drawer .catalog-sidebar-section {
    border: none;
    margin: 0;
  }
  #catalog-filter-drawer .catalog-sidebar-actions {
    padding: 12px 18px;
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #e4e4e7;
    flex-direction: row;
  }
}

.catalog-sidebar-header {
  border-bottom: 1px solid #e4e4e7;
  font-size: 14px;
  font-weight: 800;
  padding: 16px 18px;
}

.catalog-sidebar-section {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 18px;
}

.catalog-sidebar-section:last-of-type {
  border-bottom: 0;
}

.catalog-content {
  min-width: 0;
}

.catalog-sortbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.catalog-sort-summary {
  color: #52525b;
  font-size: 14px;
  margin-bottom: 14px;
}

.catalog-toolbar {
  align-items: flex-end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
}

.catalog-search-inline,
.catalog-sort-inline {
  align-items: flex-end;
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.catalog-sort-inline {
  justify-content: flex-end;
}

.catalog-search-inline-field {
  min-width: 240px;
}

.catalog-search-inline {
  margin-right: auto;
}

.catalog-sort-inline {
  margin-left: auto;
}

.catalog-filter-group {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.catalog-filter-group legend,
.catalog-filter-field > span,
.catalog-search,
.catalog-sort {
  color: #52525b;
  font-size: 12px;
  font-weight: 800;
}

.catalog-filter-field {
  display: block;
}

.catalog-search input,
.catalog-sort select,
.catalog-filter-field input {
  background: white;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  color: #18181b;
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: 46px;
  margin-top: 6px;
  padding: 0 12px;
  width: 100%;
}

.catalog-check {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #27272a;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 24px;
  padding: 0;
  transition: color 140ms ease;
}

.catalog-check input {
  appearance: none;
  -webkit-appearance: none;
  background: white;
  border: 2px solid #52525b;
  border-radius: 7px;
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  position: relative;
  width: 16px;
}

.catalog-radio-row input {
  border-radius: 999px;
}

.catalog-radio-row input:checked {
  background: white;
  border-color: #16a34a;
}

.catalog-radio-row input:checked::after {
  background: #16a34a;
  border: 0;
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 2px;
  position: absolute;
  top: 2px;
  transform: none;
  width: 8px;
}

.catalog-check input[type="checkbox"]:checked {
  background: #16a34a;
  border-color: #16a34a;
}

.catalog-check input[type="checkbox"]:checked::after {
  border-bottom: 2px solid white;
  border-right: 2px solid white;
  content: "";
  height: 8px;
  left: 4px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 4px;
}

.catalog-check:has(input:checked) {
  color: #111827;
}

.catalog-check-stack {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.catalog-check-row {
  justify-content: flex-start;
  width: 100%;
}

.catalog-price-stack {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.catalog-actions {
  display: flex;
  gap: 8px;
}

.catalog-sidebar-actions {
  padding: 18px;
}

.catalog-sidebar-actions .btn {
  flex: 1 1 0;
  justify-content: center;
}

.product-social-proof {
  align-items: center;
  color: #d97706;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-weight: 700;
  justify-content: flex-end;
  text-align: right;
}

.product-social-proof-count {
  color: #71717a;
  font-weight: 600;
}

.product-social-source {
  color: #71717a;
  font-size: 11px;
  line-height: 1.4;
  margin: -4px 0 8px;
  text-align: right;
}

.product-card {
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(24, 24, 27, .04);
  overflow: hidden;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.product-card:hover {
  box-shadow: 0 18px 45px rgba(24, 24, 27, .08);
  transform: translateY(-2px);
}

.product-media,
.product-detail-media {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  color: #52525b;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .12em;
  overflow: hidden;
  text-transform: uppercase;
}

.product-preview-trigger {
  appearance: none;
  border: 0;
  cursor: zoom-in;
  padding: 0;
}

.product-media img,
.product-detail-media img {
  display: block;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  width: 100%;
}

.product-card .product-media {
  height: auto;
  min-height: 0;
}

.product-card-footer {
  align-items: flex-end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.product-card-price {
  min-width: 0;
}

.product-card-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.product-card-cart-form {
  display: contents;
}

.product-card-cart-button {
  align-items: center;
  background: #f4f4f5;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  color: #18181b;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
  width: 40px;
}

.product-card-cart-button:hover:not(:disabled) {
  background: #18181b;
  border-color: #18181b;
  color: #fff;
}

.product-card-cart-button:active:not(:disabled) {
  transform: scale(0.94);
}

.product-card-cart-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.product-card-cart-button svg {
  height: 19px;
  width: 19px;
}

.product-detail-media {
  border: 1px solid #d4d4d8;
  border-radius: 8px;
}

.pill {
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 6px 10px;
}

.product-proof-panel {
  background: linear-gradient(135deg, #fffbeb, #fff);
  border: 1px solid #fde68a;
  border-radius: 12px;
  margin-top: 16px;
  padding: 13px;
}

.product-proof-summary {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.product-proof-summary strong {
  color: #92400e;
  font-size: 18px;
}

.product-proof-summary span {
  color: #a16207;
  font-size: 13px;
  font-weight: 700;
}

.product-proof-caption {
  color: #71717a;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 3px;
}

.product-proof-shops {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.product-proof-shops > a,
.product-proof-shops > span {
  align-items: center;
  background: rgba(255, 255, 255, .8);
  border: 1px solid #fcd34d;
  border-radius: 999px;
  color: #78350f;
  display: inline-flex;
  font-size: 11px;
  gap: 6px;
  padding: 5px 8px;
}

.product-proof-shops > a:hover {
  background: #fff;
  border-color: #f59e0b;
}

.variant-row,
.cart-line,
.shipping-option {
  align-items: center;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.variant-pills {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.variant-pill {
  align-items: center;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(24, 24, 27, .04);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.variant-pill:focus-within,
.variant-pill:hover {
  border-color: #a1a1aa;
  box-shadow: 0 2px 8px rgba(24, 24, 27, .06);
}

.variant-pill[data-add-to-cart]:has(:disabled) {
  opacity: .55;
}

.variant-pill-info {
  display: grid;
  gap: 2px 12px;
  grid-template-columns: 1fr auto;
  min-width: 0;
}

.variant-pill-name {
  font-size: 15px;
  grid-column: 1 / 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-pill-price {
  font-size: 15px;
  font-weight: 700;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  text-align: right;
  white-space: nowrap;
}

.variant-pill-stock {
  color: #71717a;
  font-size: 12px;
  grid-column: 1 / 2;
}

.variant-pill-soldout {
  color: #dc2626;
  font-weight: 700;
}

.variant-pill-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.variant-pill-btn {
  align-items: center;
  border-radius: 999px !important;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  width: 40px;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.variant-row span,
.cart-line span,
.cart-line small,
.shipping-option small {
  color: #71717a;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.qty-input {
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  height: 38px;
  padding: 0 10px;
  width: 72px;
}

.field {
  color: #52525b;
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea {
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  color: #18181b;
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-top: 6px;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.field textarea {
  min-height: 92px;
}

.field-help {
  color: #71717a;
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 5px;
}

.field-error {
  color: #dc2626;
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
}

.field:has(.field-error) input,
.field:has(.field-error) textarea {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgb(248 113 113 / 10%);
}

.region-combobox {
  position: relative;
}

.region-combobox > label {
  display: block;
}

.region-combobox input:disabled {
  background: #f4f4f5;
  color: #a1a1aa;
  cursor: not-allowed;
}

.region-combobox.is-locked {
  opacity: .58;
}

.region-combobox.is-locked input:disabled {
  background: #e4e4e7;
  border-color: #d4d4d8;
  color: #71717a;
}

.region-results {
  background: white;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgb(24 24 27 / 12%);
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

.region-result {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #27272a;
  cursor: pointer;
  display: block;
  font-size: 14px;
  min-height: 40px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.region-result.active {
  background: #f4f4f5;
}

@media (hover: hover) and (pointer: fine) {
  .region-result:hover {
    background: #f4f4f5;
  }
}

.region-result-empty {
  color: #71717a;
  font-size: 13px;
  padding: 10px;
}

.shipping-option {
  cursor: pointer;
}

.shipping-option:has(input:checked) {
  background: #ecfdf5;
  border-color: #10b981;
}

.shipping-placeholder {
  background: #fafafa;
  border: 1px dashed #d4d4d8;
  border-radius: 9px;
  color: #71717a;
  font-size: 13px;
  padding: 14px;
  text-align: center;
}

.shipping-placeholder.is-error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.terms-summary {
  align-items: center;
  background: #fafafa;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  display: grid;
  gap: 10px 14px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.terms-summary strong {
  display: block;
  font-size: 14px;
}

.terms-summary p,
.terms-consent-status {
  color: #71717a;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 3px;
}

.terms-consent-status {
  grid-column: 1 / -1;
  margin: 0;
}

.terms-consent-status.is-accepted {
  color: #047857;
  font-weight: 700;
}

.terms-dialog {
  background: white;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(9, 9, 11, .28);
  color: #18181b;
  margin: auto;
  max-height: min(720px, calc(100dvh - 32px));
  max-width: 680px;
  padding: 0;
  width: calc(100% - 32px);
}

.terms-dialog::backdrop {
  background: rgba(9, 9, 11, .58);
  backdrop-filter: blur(3px);
}

.terms-dialog-header,
.terms-dialog-footer {
  align-items: center;
  background: white;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.terms-dialog-header {
  border-bottom: 1px solid #e4e4e7;
}

.terms-dialog-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}

.terms-eyebrow {
  color: #71717a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.terms-close {
  border-radius: 8px;
  color: #52525b;
  font-size: 26px;
  height: 38px;
  line-height: 1;
  transition: background-color 140ms ease, transform 120ms var(--ease-out);
  width: 38px;
}

.terms-close:active {
  background: #f4f4f5;
  transform: scale(.94);
}

.terms-key-points {
  background: #ecfdf5;
  border-bottom: 1px solid #a7f3d0;
  color: #065f46;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px 14px;
  padding: 12px 20px;
}

.terms-key-points strong {
  width: 100%;
}

.terms-dialog-body {
  max-height: min(430px, calc(100dvh - 280px));
  overflow-y: auto;
  padding: 18px 24px 20px 42px;
}

.terms-dialog-body ol {
  display: grid;
  gap: 12px;
  list-style: decimal;
}

.terms-dialog-body li {
  font-size: 13px;
  line-height: 1.65;
  padding-left: 4px;
}

.terms-dialog-footer {
  border-top: 1px solid #e4e4e7;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 520px) {
  .terms-summary {
    grid-template-columns: 1fr;
  }

  .terms-summary .btn,
  .terms-dialog-footer .btn {
    justify-content: center;
    width: 100%;
  }

  .terms-dialog-footer {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .terms-dialog[open] {
    animation: terms-enter 180ms var(--ease-out);
  }

  @keyframes terms-enter {
    from { opacity: 0; transform: scale(.97) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
}

.review-section {
  background: linear-gradient(180deg, #fff, #fafafa);
}

.review-kicker {
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.review-source-note,
.review-attribution {
  color: #71717a;
  font-size: 12px;
}

.review-source-note {
  line-height: 1.45;
  margin-top: 4px;
}

.review-source-note a {
  color: #047857;
  font-weight: 650;
}

.review-source-note a:hover {
  color: #065f46;
  text-decoration: underline;
}

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

.review-card {
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(24, 24, 27, .05);
  display: grid;
  grid-template-columns: 150px 1fr;
  min-width: 0;
  overflow: hidden;
}

.review-photo {
  background: #f4f4f5;
  min-height: 180px;
  overflow: hidden;
  position: relative;
}

.review-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms var(--ease-out);
  width: 100%;
}

.review-photo span {
  background: rgba(9, 9, 11, .76);
  border-radius: 999px;
  bottom: 10px;
  color: white;
  font-size: 11px;
  left: 10px;
  padding: 5px 8px;
  position: absolute;
}

@media (hover: hover) and (pointer: fine) {
  .review-photo:hover img { transform: scale(1.035); }
}

.review-copy {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.review-copy p {
  color: #52525b;
  font-size: 13px;
  line-height: 1.65;
  margin-top: 10px;
}

.review-attribution { margin-top: auto; padding-top: 14px; }
.review-rating { color: #d97706; font-size: 12px; font-weight: 800; white-space: nowrap; }

.review-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.review-page-link {
  align-items: center;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  color: #3f3f46;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  min-width: 36px;
}

.review-page-link:hover,
.review-page-link.current {
  background: #18181b;
  border-color: #18181b;
  color: white;
}

.review-lightbox {
  background: transparent;
  border: 0;
  height: 100dvh;
  max-height: none;
  max-width: none;
  padding: 48px 20px 20px;
  width: 100vw;
}

.review-lightbox::backdrop { background: rgba(9, 9, 11, .86); backdrop-filter: blur(5px); }
.review-lightbox img { border-radius: 12px; height: 100%; margin: auto; max-width: min(900px, 100%); object-fit: contain; width: 100%; }
.review-lightbox button { background: white; border-radius: 999px; color: #18181b; font-size: 24px; height: 38px; position: fixed; right: 18px; top: 16px; width: 38px; }

.product-preview-lightbox {
  background: transparent;
  border: 0;
  height: 100dvh;
  max-height: none;
  max-width: none;
  padding: 48px 20px 20px;
  width: 100vw;
}

.product-preview-lightbox::backdrop {
  background: rgba(9, 9, 11, .86);
  backdrop-filter: blur(5px);
}

.product-preview-lightbox img {
  border-radius: 12px;
  height: 100%;
  margin: auto;
  max-width: min(900px, 100%);
  object-fit: contain;
  width: 100%;
}

.product-preview-lightbox button {
  background: white;
  border-radius: 999px;
  color: #18181b;
  font-size: 24px;
  height: 38px;
  position: fixed;
  right: 18px;
  top: 16px;
  width: 38px;
}

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

@media (max-width: 460px) {
  .review-card { grid-template-columns: 108px 1fr; }
  .review-photo { min-height: 160px; }
  .review-copy { padding: 13px; }
}

.status-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 14px;
}

.trust-badges span {
  align-items: center;
  color: #16a34a;
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  gap: 4px;
}

.trust-badges-form {
  margin-top: 4px;
}

.status-waiting_payment {
  background: #fef3c7;
  color: #92400e;
}

.status-awaiting_verification {
  background: #fef3c7;
  color: #92400e;
}

.order-lookup input {
  border: 1px solid #d4d4d8;
  border-radius: 9px;
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.order-lookup input:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 3px rgb(24 24 27 / 8%);
}

.order-step {
  color: #a1a1aa;
  display: grid;
  gap: 6px;
  justify-items: center;
  position: relative;
}

.order-step span {
  align-items: center;
  background: #f4f4f5;
  border-radius: 999px;
  display: flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.order-step.done {
  color: #065f46;
}

.order-step.done span {
  background: #d1fae5;
}

.status-paid,
.status-sent_to_rms,
.status-processed {
  background: #d1fae5;
  color: #065f46;
}

.status-shipped {
  background: #dbeafe;
  color: #1e40af;
}

.status-delivered {
  background: #d1fae5;
  color: #065f46;
}

.status-pending {
  background: #f4f4f5;
  color: #52525b;
}

.stock-low {
  background: #fef2f2;
  border-radius: 999px;
  color: #dc2626;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.cart-free-progress {
  margin-top: 14px;
}

.cart-free-reminder {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
}

.cart-free-reminder span {
  color: #166534;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-free-bar-bg {
  background: #dcfce7;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  width: 100%;
}

.cart-free-bar-fill {
  background: #16a34a;
  border-radius: 999px;
  height: 100%;
  transition: width 300ms ease;
}

.cart-free-achieved {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  text-align: center;
}

.status-delivery_failed,
.status-returned {
  background: #fee2e2;
  color: #991b1b;
}

.status-bridge_failed,
.status-cancelled,
.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.tracking-trigger {
  min-height: 44px;
}

.tracking-spinner {
  animation: tracking-spin 700ms linear infinite;
  display: none;
  height: 16px;
  opacity: 1;
  width: 16px;
}

.htmx-request .tracking-spinner,
.tracking-spinner.htmx-request {
  display: block;
}

.tracking-result {
  min-width: 0;
}

.tracking-timeline {
  border-left: 1px solid #e4e4e7;
  margin-left: 6px;
}

.tracking-event {
  padding: 0 0 20px 24px;
  position: relative;
}

.tracking-event:last-child {
  padding-bottom: 0;
}

.tracking-event-dot {
  background: #18181b;
  border: 3px solid white;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #d4d4d8;
  height: 12px;
  left: -6.5px;
  position: absolute;
  top: 3px;
  width: 12px;
}

@keyframes tracking-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tracking-spinner {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero-visual {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tile-1 {
    grid-row: span 1;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sortbar,
  .catalog-toolbar,
  .catalog-search-inline,
  .catalog-sort-inline,
  .catalog-sidebar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-search-inline,
  .catalog-sort-inline {
    margin-left: 0;
    margin-right: 0;
  }

  .cart-line,
  .variant-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .catalog-sidebar-actions .btn {
    width: 100%;
  }
}
