/* Raíces del Norte — piel de referencia para el motor OptiMind IA.
   Dirección: artesanía del norte argentino, tierra, luz cálida, telar como firma.
   Sobreescribe las variables y componentes de styles.css. */

:root {
  --paper: #10241F;
  --surface: #18342D;
  --ink: #F2E7D3;
  --muted: #B7B9A7;
  --accent: #8E533C;
  --accent-2: #E0B273;
  --highlight: #26443B;
  --line: rgba(242, 231, 211, 0.16);
  --line-strong: rgba(242, 231, 211, 0.32);
  --danger: #9B3A3A;
  --display: 'Alegreya', 'Iowan Old Style', Georgia, serif;
  --body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-weight: 460;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--accent-2);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent-2);
}

/* Cabecera */
.announcement {
  background: var(--ink);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement strong {
  color: var(--accent-2);
  font-weight: 500;
}

.announcement > span {
  color: var(--accent-2);
  opacity: 0.6;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 10px;
}

.desktop-nav a {
  color: var(--muted);
  font-weight: 650;
}

.desktop-nav a::after {
  background: var(--accent-2);
  height: 2px;
}

.cart-trigger {
  border-color: var(--ink);
  font-family: var(--body);
}

.cart-trigger:hover {
  background: var(--ink);
}

.cart-count {
  background: var(--accent);
  color: var(--surface);
}

/* Hero */
.hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  grid-template-rows: auto 1fr;
  gap: 0 clamp(40px, 6vw, 100px);
  min-height: min(820px, calc(100svh - 110px));
}

.hero::before {
  width: min(680px, 54vw);
  top: 46%;
  right: -14%;
  border: 1px solid var(--accent-2);
  background: radial-gradient(circle at 30% 30%, rgba(163, 92, 66, 0.14), transparent 60%);
  opacity: 0.55;
}

.hero::after {
  display: none;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1 / 3;
  z-index: 2;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  position: relative;
  padding: 0 24px 34px 0;
}

.signature-loom {
  width: clamp(150px, 15vw, 220px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(163, 92, 66, 0.14));
}

.hero-tag {
  position: absolute;
  right: -12px;
  bottom: 10px;
  padding: 13px 17px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 0 8px 24px rgba(44, 36, 31, 0.12);
}

.hero-ticket-wrap {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: center;
}

.weave-band {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 540px);
  margin: 8px auto 0;
  padding: 10px 16px;
  color: var(--surface);
  background:
    repeating-linear-gradient(90deg, rgba(250, 246, 235, 0.14) 0 2px, transparent 2px 16px),
    var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.weave-band i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--accent-2);
  transform: rotate(45deg);
}

/* Raíces no repite la composición de campaña: el telar ocupa el centro y el
   pedido aparece como una ficha de archivo a la derecha. */
body[data-store-style="material-archive"] .hero {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr) minmax(330px, 0.72fr);
  grid-template-rows: minmax(620px, 1fr) auto;
  gap: 20px clamp(18px, 3vw, 54px);
}

body[data-store-style="material-archive"] .hero-copy {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: center;
}

body[data-store-style="material-archive"] .hero-lead {
  max-width: 31rem;
}

body[data-store-style="material-archive"] .hero-visual {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: center;
  padding: 0 0 88px;
}

body[data-store-style="material-archive"] .hero-ticket-wrap {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: stretch;
}

body[data-store-style="material-archive"] .weave-band {
  grid-row: 2;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 2px;
  background: var(--accent-2);
}

.eyebrow.light {
  color: var(--accent-2);
}

.hero h1,
.section-heading h2,
.how-intro h2,
.faq-section h2,
.closing-section h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.hero h1 em,
.closing-section h2 em {
  color: var(--accent-2);
  font-style: italic;
}

.hero-actions {
  gap: 28px;
}

.button {
  font-family: var(--body);
  border-radius: 999px;
}

.button-primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 12px 28px rgba(163, 92, 66, 0.24);
}

.button-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 88%, black);
  box-shadow: 0 18px 36px rgba(163, 92, 66, 0.30);
}

.button-secondary {
  border-color: var(--line-strong);
}

.button-secondary:hover:not(:disabled) {
  background: var(--ink);
}

.text-button {
  border-bottom-color: var(--accent-2);
}

.trust-inline li::before {
  content: '✦';
  color: var(--accent-2);
  font-weight: 400;
}

/* Ticket preview */
.ticket-shadow {
  background: var(--accent-2);
  transform: rotate(4deg);
  opacity: 0.45;
}

.live-ticket {
  background: var(--surface);
  transform: rotate(-1.5deg);
  border-radius: var(--radius-lg);
}

.ticket-brand {
  font-family: var(--display);
  font-weight: 600;
}

.ticket-mark {
  background: var(--accent);
  color: var(--accent-2);
  border-radius: 12px;
}

.ticket-rule {
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
}

.ticket-preview-pending {
  color: var(--accent);
}

.ticket-preview-pending strong {
  color: var(--accent-2);
}

.ticket-preview-pending span {
  text-decoration: underline wavy var(--accent-2);
}

.ticket-total {
  border-color: var(--ink);
}

.ticket-barcode {
  background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 4px, var(--ink) 4px 7px, transparent 7px 10px);
}

/* Categorías */
.category-strip {
  border-color: var(--line-strong);
}

.category-strip button {
  border-color: var(--line-strong);
  font-family: var(--body);
  font-weight: 650;
}

.category-strip button span {
  border-color: var(--accent-2);
  color: var(--accent);
}

.category-strip button:hover {
  background: var(--accent);
  color: var(--surface);
}

.category-strip button:hover span {
  border-color: var(--accent-2);
}

/* Tienda */
.shop-tools {
  border-color: var(--line);
  background: rgba(255, 251, 245, 0.60);
}

.search-field:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(212, 160, 86, 0.15);
}

.filter-chips button:hover,
.filter-chips button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
}

.catalog-meta button {
  color: var(--accent);
}

/* Productos */
.product-card {
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 300ms ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-media {
  border-radius: var(--radius-lg);
  background: var(--highlight);
}

.product-badge {
  background: var(--accent-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.quick-view {
  background: var(--accent);
  color: var(--surface);
}

.product-category {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.product-info h3,
.cart-line h3 {
  font-family: var(--body);
  font-weight: 700;
}

.card-add:hover:not(:disabled) {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.no-results > span {
  color: var(--accent-2);
}

/* Cómo comprar */
.how-section {
  background: var(--accent);
  color: var(--surface);
}

.how-intro > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.how-steps li {
  border-color: rgba(255, 255, 255, 0.18);
}

.step-number {
  background: var(--accent-2);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 750;
}

.how-steps p {
  color: rgba(255, 255, 255, 0.68);
}

/* Confianza */
.trust-cards article {
  background: rgba(255, 251, 245, 0.55);
  border-color: var(--line);
}

.trust-cards article > span {
  background: var(--accent);
  color: var(--accent-2);
  border-radius: 12px;
}

.trust-cards article:nth-child(2) > span {
  background: var(--accent-2);
  color: var(--ink);
}

.trust-cards article:nth-child(3) > span {
  background: var(--highlight);
  color: var(--ink);
}

.trust-cards h3 {
  font-family: var(--body);
  font-weight: 700;
}

.trust-quote blockquote {
  font-family: var(--display);
  font-style: italic;
}

/* FAQ */
.faq-section {
  border-color: var(--line-strong);
}

.faq-list details {
  border-color: var(--line-strong);
}

.faq-list summary span {
  border-color: var(--accent-2);
}

.faq-list details[open] summary span {
  background: var(--accent);
  color: var(--accent-2);
  border-color: var(--accent);
}

/* Cierre */
.closing-section {
  background: var(--accent-2);
  color: var(--ink);
}

.closing-section h2 em {
  color: var(--accent);
}

.closing-section .button-primary {
  background: var(--ink);
  color: var(--surface);
}

/* Footer */
.site-footer h2 {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Diálogos */
.product-dialog {
  border-radius: var(--radius-lg);
}

.dialog-product-media {
  background: var(--highlight);
}

.dialog-product-copy h2,
.checkout-copy h2 {
  font-family: var(--display);
  font-weight: 600;
}

.dialog-price {
  color: var(--accent);
}

.variant-fieldset input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
}

.variant-fieldset input:focus-visible + span {
  outline-color: var(--accent-2);
}

.stock-message::before {
  background: #6B8E6B;
}

.stock-message[data-state="low_stock"]::before {
  background: var(--accent-2);
}

.stock-message[data-state="out_of_stock"]::before {
  background: var(--danger);
}

.dialog-actions select:focus {
  border-color: var(--accent-2);
}

/* Carrito */
.cart-header p {
  color: var(--accent-2);
  font-family: var(--mono);
}

.cart-header h2 {
  font-family: var(--display);
}

.shipping-progress span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.cart-empty > span {
  color: var(--accent-2);
}

.cart-saving {
  color: var(--accent);
}

.cart-subtotal {
  font-family: var(--display);
}

.cart-footer::after {
  background: radial-gradient(circle at 7px -1px, transparent 7px, var(--surface) 7.5px) 0 0 / 14px 14px repeat-x;
}

/* Checkout */
.checkout-copy {
  background: var(--accent-2);
  color: var(--ink);
}

.checkout-copy .eyebrow {
  color: var(--accent);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(212, 160, 86, 0.14);
}

.form-field [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(155, 58, 58, 0.1);
}

.checkout-error {
  border-color: rgba(155, 58, 58, 0.28);
  background: rgba(155, 58, 58, 0.07);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .live-ticket {
    transform: rotate(-1.5deg);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 50px 0;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    padding-bottom: 0;
  }

  .hero-ticket-wrap {
    grid-column: 1;
    grid-row: 3;
  }

  .hero::before {
    width: 520px;
    right: -50%;
    top: 22%;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(46px, 12vw, 60px);
  }

  .hero-tag {
    right: -20px;
    padding: 10px 13px;
    font-size: 10px;
  }

  .category-strip button {
    font-size: 16px;
  }

  .section-heading h2,
  .how-intro h2,
  .faq-section h2 {
    font-size: 46px;
  }

  .closing-section h2 {
    font-size: 56px;
  }
}

/* PREVIEW-OVERRIDE */
/* .reveal{opacity:1;transform:none;filter:none} .hero{min-height:auto} */

/* archive-drawer: nocturnal material archive with its own collection hardware */
body[data-store-style="material-archive"] {
  background:
    radial-gradient(circle at 84% 8%, rgba(224, 178, 115, 0.12), transparent 26%),
    var(--paper);
  color: var(--ink);
}

body[data-store-style="material-archive"] .site-header {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: rgba(224, 178, 115, 0.24);
}

body[data-store-style="material-archive"] .announcement {
  background: #091814;
  color: var(--ink);
}

body[data-store-style="material-archive"] .hero::before {
  border-color: rgba(224, 178, 115, 0.48);
  background: radial-gradient(circle at 30% 30%, rgba(224, 178, 115, 0.16), transparent 62%);
}

body[data-store-style="material-archive"] .weave-band {
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(224, 178, 115, 0.18) 0 2px, transparent 2px 16px),
    #091814;
}

body[data-store-style="material-archive"] .product-grid {
  gap: 18px;
}

body[data-store-style="material-archive"] .product-card,
body[data-store-style="material-archive"] .product-card:first-child {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(224, 178, 115, 0.34);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(38, 68, 59, 0.92), rgba(16, 36, 31, 0.92));
  box-shadow: none;
  transition: border-color 220ms ease, background 220ms ease;
}

body[data-store-style="material-archive"] .product-card::before {
  display: none;
}

body[data-store-style="material-archive"] .product-card:hover {
  border-color: var(--accent-2);
  background: linear-gradient(145deg, #2B4A40, var(--surface));
}

body[data-store-style="material-archive"] .product-media,
body[data-store-style="material-archive"] .product-card:first-child .product-media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: #0B1A16;
}

body[data-store-style="material-archive"] .product-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(224, 178, 115, 0.14), transparent 42%, rgba(16, 36, 31, 0.42));
}

body[data-store-style="material-archive"] .product-media:hover img,
body[data-store-style="material-archive"] .product-media:focus-visible img {
  transform: none;
  filter: saturate(0.82) contrast(1.06);
}

body[data-store-style="material-archive"] .quick-view {
  right: 0;
  bottom: 0;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 0;
  background: var(--accent-2);
  color: #10241F;
  transform: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-store-style="material-archive"] .product-info {
  padding-top: 15px;
}

body[data-store-style="material-archive"] .product-info h3,
body[data-store-style="material-archive"] .cart-line h3 {
  color: var(--ink);
}

body[data-store-style="material-archive"] .product-summary {
  min-height: 42px;
  color: var(--muted);
}

body[data-store-style="material-archive"] .card-add {
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid var(--accent-2);
  border-radius: 0;
  background: transparent;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

body[data-store-style="material-archive"] .card-add:hover:not(:disabled) {
  padding: 10px 13px;
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #10241F;
}

body[data-store-style="material-archive"] .cart-trigger {
  min-height: 48px;
  border: 1px solid var(--accent-2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-store-style="material-archive"] .cart-trigger:hover {
  transform: none;
  background: var(--accent-2);
  color: #10241F;
}

body[data-store-style="material-archive"] .cart-count {
  border-radius: 0;
  background: var(--accent);
  color: var(--ink);
}

body[data-store-style="material-archive"] .cart-panel,
body[data-store-style="material-archive"] .cart-footer,
body[data-store-style="material-archive"] .product-dialog {
  background: #10241F;
  color: var(--ink);
}

body[data-store-style="material-archive"] .cart-panel {
  border-left: 1px solid var(--accent-2);
}

body[data-store-style="material-archive"] .cart-header,
body[data-store-style="material-archive"] .cart-footer,
body[data-store-style="material-archive"] .cart-line {
  border-color: rgba(224, 178, 115, 0.28);
}

body[data-store-style="material-archive"] .cart-footer::after {
  background: repeating-linear-gradient(90deg, var(--accent-2) 0 1px, transparent 1px 10px);
}

/* archive-search-table: a quiet material index, never a generic filter box */
body[data-store-style="material-archive"] .shop-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 15px 34px;
  padding: 18px 0 16px;
  border: 0;
  border-top: 1px solid rgba(224, 178, 115, 0.42);
  border-radius: 0;
  background: transparent;
}

body[data-store-style="material-archive"] .search-field {
  min-height: 48px;
  gap: 12px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(242, 231, 211, 0.30);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

body[data-store-style="material-archive"] .search-field svg {
  color: var(--accent-2);
}

body[data-store-style="material-archive"] .search-field input {
  color: var(--ink);
  font-size: 16px;
}

body[data-store-style="material-archive"] .search-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 86%, transparent);
}

body[data-store-style="material-archive"] .search-field:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 2px 0 var(--accent-2);
}

body[data-store-style="material-archive"] .filter-chips {
  grid-column: 1 / -1;
  gap: 8px;
  min-width: 0;
}

body[data-store-style="material-archive"] .filter-chips button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(224, 178, 115, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

body[data-store-style="material-archive"] .filter-chips button:hover,
body[data-store-style="material-archive"] .filter-chips button.is-active {
  border-color: var(--accent-2);
  background: var(--accent);
  color: var(--ink);
}

body[data-store-style="material-archive"] .sort-field {
  min-height: 48px;
  gap: 10px;
  padding: 0 0 0 20px;
  border-left: 1px solid rgba(224, 178, 115, 0.24);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body[data-store-style="material-archive"] .sort-field select {
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
}

body[data-store-style="material-archive"] .checkout-dialog {
  background: var(--surface);
  color: var(--ink);
}

@media (max-width: 960px) {
  html,
  body { overflow-x: clip; }

  body[data-store-style="material-archive"] .hero {
    width: calc(100vw - 48px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 34px 0;
    min-width: 0;
  }

  body[data-store-style="material-archive"] .hero-copy {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, calc(100vw - 48px));
    min-width: 0;
    max-width: calc(100vw - 48px);
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body[data-store-style="material-archive"] .hero-lead {
    width: min(100%, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
  }

  body[data-store-style="material-archive"] .hero-visual {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    padding: 0;
  }

  body[data-store-style="material-archive"] .hero-ticket-wrap {
    grid-column: 1;
    grid-row: 3;
    width: min(100%, 470px);
    justify-self: center;
  }

  body[data-store-style="material-archive"] .weave-band {
    grid-column: 1;
    grid-row: 4;
  }

  body[data-store-style="material-archive"] .product-card,
  body[data-store-style="material-archive"] .product-card:first-child { grid-column: span 6; }
}

@media (max-width: 640px) {
  body[data-store-style="material-archive"] .product-card,
  body[data-store-style="material-archive"] .product-card:first-child { grid-column: 1 / -1; }
  body[data-store-style="material-archive"] .quick-view { min-height: 44px; }

  /* mobile-copy-guard */
  body[data-store-style="material-archive"] .hero-copy,
  body[data-store-style="material-archive"] .hero-lead {
    width: min(100%, calc(100vw - 48px));
    min-width: 0;
    max-width: calc(100vw - 48px);
  }
}

@media (max-width: 760px) {
  body[data-store-style="material-archive"] .shop-tools {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 16px;
  }

  body[data-store-style="material-archive"] .filter-chips {
    grid-column: 1;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  body[data-store-style="material-archive"] .filter-chips::-webkit-scrollbar { display: none; }
  body[data-store-style="material-archive"] .filter-chips button { flex: 0 0 auto; }

  body[data-store-style="material-archive"] .sort-field {
    min-height: 42px;
    justify-content: space-between;
    padding: 0;
    border-top: 1px solid rgba(224, 178, 115, 0.24);
    border-left: 0;
  }
}

/* high-contrast-archive: Raíces uses paper, ink and ember with no muddy middle */
body[data-store-style="material-archive"] {
  --paper: #0B211A;
  --surface: #F7E9D1;
  --ink: #FFF6E5;
  --muted: #D8D0BC;
  --accent: #D56C47;
  --accent-2: #FFD36E;
  --highlight: #315548;
  --line: rgba(255, 246, 229, 0.22);
  --line-strong: rgba(255, 211, 110, 0.66);
  background:
    linear-gradient(125deg, rgba(255, 211, 110, 0.08), transparent 30%),
    var(--paper);
}
body[data-store-style="material-archive"] .announcement { background: #06140F; color: #FFF6E5; }
body[data-store-style="material-archive"] .site-header { background: #0B211A; border-bottom: 1px solid var(--accent-2); }
body[data-store-style="material-archive"] .desktop-nav a { color: #EDE0C5; }
body[data-store-style="material-archive"] .cart-trigger { background: var(--accent-2); color: #0B211A; border-color: var(--accent-2); }
body[data-store-style="material-archive"] .cart-count { background: #0B211A; color: var(--accent-2); }
body[data-store-style="material-archive"] .hero { min-height: min(820px, calc(100svh - 108px)); }
body[data-store-style="material-archive"] .hero h1 { color: #FFF6E5; text-shadow: 0 2px 0 rgba(0,0,0,0.25); }
body[data-store-style="material-archive"] .hero h1 em { color: var(--accent-2); }
body[data-store-style="material-archive"] .hero-lead { color: #E1D7C2; }
body[data-store-style="material-archive"] .button-primary { background: var(--accent); color: #FFF6E5; border-radius: 4px; box-shadow: 5px 5px 0 var(--accent-2); }
body[data-store-style="material-archive"] .button-primary:hover:not(:disabled) { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--accent-2); }
body[data-store-style="material-archive"] .live-ticket { border: 2px solid var(--accent-2); border-radius: 0; background: #F7E9D1; color: #153328; transform: rotate(-1deg); box-shadow: 14px 14px 0 rgba(213, 108, 71, 0.72); }
body[data-store-style="material-archive"] .live-ticket * { color: inherit; }
body[data-store-style="material-archive"] .ticket-mark { background: var(--accent); color: #FFF6E5; border-radius: 0; }
body[data-store-style="material-archive"] .ticket-brand { color: #153328; }
body[data-store-style="material-archive"] .ticket-preview-pending { color: var(--accent); }
body[data-store-style="material-archive"] .ticket-preview-pending strong { color: #153328; }
body[data-store-style="material-archive"] .ticket-shadow { display: none; }

body[data-store-style="material-archive"] .category-strip { background: #06140F; border-color: var(--accent-2); }
body[data-store-style="material-archive"] .category-strip button { color: #FFF6E5; border-color: rgba(255, 211, 110, 0.42); }
body[data-store-style="material-archive"] .category-strip button:hover { background: var(--accent-2); color: #0B211A; }
body[data-store-style="material-archive"] .shop-section { background: #123126; border-top: 1px solid var(--accent-2); }
body[data-store-style="material-archive"] .section-heading h2 { color: #FFF6E5; }
body[data-store-style="material-archive"] .section-heading > p { color: #E1D7C2; }
body[data-store-style="material-archive"] .shop-tools { border-top-color: var(--accent-2); }
body[data-store-style="material-archive"] .search-field { border-bottom-color: rgba(255, 246, 229, 0.58); }
body[data-store-style="material-archive"] .search-field input { color: #FFF6E5; }
body[data-store-style="material-archive"] .filter-chips button { color: #F3E5C9; border-color: rgba(255, 211, 110, 0.42); }
body[data-store-style="material-archive"] .filter-chips button.is-active,
body[data-store-style="material-archive"] .filter-chips button:hover { background: var(--accent-2); color: #0B211A; }
body[data-store-style="material-archive"] .sort-field select { color: #FFF6E5; }

body[data-store-style="material-archive"] .product-grid { gap: 22px; }
body[data-store-style="material-archive"] .product-card,
body[data-store-style="material-archive"] .product-card:first-child {
  grid-column: span 4;
  padding: 10px;
  border: 2px solid var(--accent-2);
  border-radius: 0;
  background: #F7E9D1;
  color: #153328;
  box-shadow: 6px 6px 0 rgba(6, 20, 15, 0.8);
}
body[data-store-style="material-archive"] .product-card:hover { border-color: #FFF6E5; background: #FFF6E5; }
body[data-store-style="material-archive"] .product-media,
body[data-store-style="material-archive"] .product-card:first-child .product-media { background: #27483C; border: 1px solid #153328; }
body[data-store-style="material-archive"] .product-info h3,
body[data-store-style="material-archive"] .cart-line h3,
body[data-store-style="material-archive"] .product-price { color: #153328; }
body[data-store-style="material-archive"] .product-summary { color: #426356; }
body[data-store-style="material-archive"] .product-category { color: var(--accent); }
body[data-store-style="material-archive"] .card-add { border-color: #153328; background: #153328; color: #FFF6E5; }
body[data-store-style="material-archive"] .card-add:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #FFF6E5; }
body[data-store-style="material-archive"] .catalog-meta { color: #E1D7C2; }
body[data-store-style="material-archive"] .catalog-meta strong { color: var(--accent-2); }

@media (max-width: 960px) {
  body[data-store-style="material-archive"] .product-card,
  body[data-store-style="material-archive"] .product-card:first-child { grid-column: span 6; }
}
@media (max-width: 640px) {
  body[data-store-style="material-archive"] .product-card,
  body[data-store-style="material-archive"] .product-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  body[data-store-style="material-archive"] .hero,
  body[data-store-style="material-archive"] .hero-copy,
  body[data-store-style="material-archive"] .hero h1,
  body[data-store-style="material-archive"] .hero-lead {
    width: calc(100vw - 68px);
    min-width: 0;
    max-width: calc(100vw - 68px);
  }

  body[data-store-style="material-archive"] .hero h1 {
    font-size: clamp(52px, 14vw, 68px);
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }
}

/* high-contrast-footer: closing uses ember paper; footer returns to deep ink */
body[data-store-style="material-archive"] .closing-section {
  background: #FFD36E;
  color: #102B22;
}

body[data-store-style="material-archive"] .closing-section h2,
body[data-store-style="material-archive"] .closing-section > p {
  color: #102B22;
}

body[data-store-style="material-archive"] .closing-section h2 em { color: #A8442A; }
body[data-store-style="material-archive"] .closing-section .button-primary {
  background: #102B22;
  color: #FFF6E5;
  box-shadow: 5px 5px 0 #A8442A;
}

body[data-store-style="material-archive"] .site-footer {
  background: #06140F;
  color: #FFF6E5;
  border-top: 1px solid #FFD36E;
}

body[data-store-style="material-archive"] .site-footer .brand,
body[data-store-style="material-archive"] .site-footer .regret-link,
body[data-store-style="material-archive"] .site-footer a:hover { color: #FFF6E5; }

body[data-store-style="material-archive"] .footer-brand p,
body[data-store-style="material-archive"] .site-footer a,
body[data-store-style="material-archive"] .site-footer span,
body[data-store-style="material-archive"] .footer-bottom { color: #D8D0BC; }

body[data-store-style="material-archive"] .site-footer h2 { color: #FFD36E; }
body[data-store-style="material-archive"] .footer-bottom { border-top-color: rgba(255, 211, 110, 0.38); }

/* roots-detail-pass: make the archive feel stamped, tactile and deliberate */
body[data-store-style="material-archive"] .hero::before {
  border-width: 2px;
  box-shadow: inset 0 0 0 14px rgba(255, 211, 110, 0.035);
}

body[data-store-style="material-archive"] .hero-lead {
  padding-left: 18px;
  border-left: 2px solid var(--accent-2);
}

body[data-store-style="material-archive"] .category-strip button span {
  min-width: 31px;
  min-height: 31px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
}

body[data-store-style="material-archive"] .product-card::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  pointer-events: none;
}

body[data-store-style="material-archive"] .product-info { border-top: 1px solid rgba(21, 51, 40, 0.24); }
body[data-store-style="material-archive"] .product-info h3 { font-family: var(--display); font-size: 27px; line-height: 0.95; }
body[data-store-style="material-archive"] .quick-view {
  border-top: 1px solid #153328;
  background: #153328;
  color: #FFF6E5;
}

body[data-store-style="material-archive"] .how-section {
  background: #A8442A;
  color: #FFF6E5;
}

body[data-store-style="material-archive"] .how-intro > p:last-child,
body[data-store-style="material-archive"] .how-steps p { color: #FFE9CA; }

body[data-store-style="material-archive"] .trust-section { background: #0B211A; }
body[data-store-style="material-archive"] .trust-cards article {
  border-color: rgba(255, 211, 110, 0.52);
  background: #123126;
}

/* motion-signature-roots: an archive drawer opens and the woven material answers. */
body[data-store-style="material-archive"] ::selection { background:#FFD36E; color:#0B211A; }
body[data-store-style="material-archive"] :focus-visible { outline:3px solid #FFD36E; outline-offset:4px; }
body[data-store-style="material-archive"] .hero-copy > * { animation:roots-drawer-open .82s cubic-bezier(.16,1,.3,1) both; }
body[data-store-style="material-archive"] .hero-copy h1 { animation-delay:.08s; }
body[data-store-style="material-archive"] .hero-lead { animation-delay:.16s; }
body[data-store-style="material-archive"] .hero-actions { animation-delay:.24s; }
body[data-store-style="material-archive"] .hero-visual { animation:roots-object-rise .95s cubic-bezier(.16,1,.3,1) .12s both; }
body[data-store-style="material-archive"] .hero-ticket-wrap { animation:roots-stamp-in .72s cubic-bezier(.34,1.56,.64,1) .3s both; }
body[data-store-style="material-archive"] .hero-tag { animation:roots-seal 10s ease-in-out infinite; }
body[data-store-style="material-archive"] .product-card { overflow:hidden; transition:transform .5s cubic-bezier(.16,1,.3,1),box-shadow .5s,border-color .5s; }
body[data-store-style="material-archive"] .product-card:hover { transform:translateY(-6px); box-shadow:10px 12px 0 rgba(11,33,26,.22); border-color:#A8442A; }
body[data-store-style="material-archive"] .product-card::after { transition:width .45s cubic-bezier(.16,1,.3,1),height .45s,border-color .45s; }
body[data-store-style="material-archive"] .product-card:hover::after { width:calc(100% - 20px); height:calc(100% - 20px); border-color:#A8442A; }
body[data-store-style="material-archive"] .product-media img,
body[data-store-style="material-archive"] .product-media svg { transition:transform .75s cubic-bezier(.16,1,.3,1); }
body[data-store-style="material-archive"] .product-card:hover .product-media img,
body[data-store-style="material-archive"] .product-card:hover .product-media svg { transform:scale(1.035) rotate(.6deg); }
body[data-store-style="material-archive"] .quick-view { transition:background .28s,color .28s,letter-spacing .28s; }
body[data-store-style="material-archive"] .quick-view:hover { background:#FFD36E; color:#0B211A; letter-spacing:.08em; }
body[data-store-style="material-archive"] .category-strip button:hover { transform:translateY(-3px) rotate(-.4deg); }
@supports (animation-timeline:view()) {
  body[data-store-style="material-archive"] .product-card { animation:roots-piece-reveal linear both; animation-timeline:view(); animation-range:entry 5% cover 34%; }
  body[data-store-style="material-archive"] .how-intro,body[data-store-style="material-archive"] .how-steps,body[data-store-style="material-archive"] .trust-cards { animation:roots-piece-reveal linear both; animation-timeline:view(); animation-range:entry 5% cover 34%; }
}
@keyframes roots-drawer-open { from { opacity:0; transform:translateX(-38px); clip-path:inset(0 100% 0 0); } to { opacity:1; transform:none; clip-path:inset(0); } }
@keyframes roots-object-rise { from { opacity:0; transform:translateY(42px) scale(.96); filter:sepia(.5); } to { opacity:1; transform:none; filter:none; } }
@keyframes roots-stamp-in { from { opacity:0; transform:scale(1.35) rotate(-12deg); } to { opacity:1; transform:none; } }
@keyframes roots-piece-reveal { from { opacity:.15; transform:translateY(35px); clip-path:inset(14% 0 0 0); } to { opacity:1; transform:none; clip-path:inset(0); } }
@keyframes roots-seal { 50% { transform:rotate(-4deg) scale(1.04); } }
@media (prefers-reduced-motion:reduce) { body[data-store-style="material-archive"] *,body[data-store-style="material-archive"] *::before,body[data-store-style="material-archive"] *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; } }

/* roots-dialog-contrast: the product sheet reads like a lit archive card, never washed out. */
body[data-store-style="material-archive"] .product-dialog {
  background: #082219;
  color: #FFF6E5;
  border: 1px solid #E9AD57;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.58), 9px 9px 0 #A8442A;
}

body[data-store-style="material-archive"] .dialog-product-copy {
  background: #082219;
  color: #FFF6E5;
}

body[data-store-style="material-archive"] .dialog-product-copy h2,
body[data-store-style="material-archive"] .variant-fieldset legend,
body[data-store-style="material-archive"] .dialog-actions label {
  color: #FFF6E5;
}

body[data-store-style="material-archive"] .dialog-product-copy .product-category {
  color: #FF9A70;
  font-weight: 800;
}

body[data-store-style="material-archive"] .dialog-price {
  color: #FFD36E;
  text-shadow: none;
}

body[data-store-style="material-archive"] .dialog-description,
body[data-store-style="material-archive"] .stock-message {
  color: #F1E0C3;
}

body[data-store-style="material-archive"] .variant-fieldset span {
  border-color: #DFAE50;
  background: #10382A;
  color: #FFF6E5;
}

body[data-store-style="material-archive"] .variant-fieldset input:checked + span {
  border-color: #FFD36E;
  background: #E16E43;
  color: #FFFDF5;
  box-shadow: 3px 3px 0 #FFD36E;
}

body[data-store-style="material-archive"] .stock-message::before {
  background: #85C99A;
}

body[data-store-style="material-archive"] .dialog-actions {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 211, 110, 0.42);
}

body[data-store-style="material-archive"] .dialog-actions select {
  border-color: #FFD36E;
  background: #10382A;
  color: #FFFDF5;
  font-weight: 800;
}

body[data-store-style="material-archive"] .dialog-actions .button-primary {
  background: #FFD36E;
  color: #082219;
  box-shadow: 5px 5px 0 #A8442A;
}

body[data-store-style="material-archive"] .dialog-actions .button-primary:hover {
  background: #FFF6E5;
  color: #082219;
}

body[data-store-style="material-archive"] .dialog-close {
  border-color: #FFD36E;
  background: #FFF6E5;
  color: #082219;
}

body[data-store-style="material-archive"] .dialog-close:hover {
  background: #FFD36E;
  color: #082219;
}

@media (max-width: 640px) {
  body[data-store-style="material-archive"] .product-dialog {
    box-shadow: 6px 6px 0 #A8442A;
  }

  body[data-store-style="material-archive"] .dialog-actions {
    gap: 12px;
  }
}
