/* Todo en Casa — piel de referencia para el motor OptiMind IA.
   Dirección: almacén de barrio, claro y confiable.
   Sobreescribe las variables y componentes de styles.css. */

:root {
  --paper: #F5F3EF;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6E6E6E;
  --accent: #3E5641;
  --accent-2: #D4A056;
  --highlight: #E9E4DB;
  --line: rgba(26, 26, 26, 0.12);
  --line-strong: rgba(26, 26, 26, 0.24);
  --danger: #A94442;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 22px 60px rgba(26, 26, 26, 0.10);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-weight: 450;
}

::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.03em;
}

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

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

.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(800px, calc(100svh - 110px));
}

.hero::before {
  width: min(620px, 50vw);
  top: 48%;
  right: -12%;
  border: 2px solid var(--accent-2);
  background: radial-gradient(circle at 30% 30%, rgba(212, 160, 86, 0.20), 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-tag {
  width: clamp(130px, 14vw, 180px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(62, 86, 65, 0.12));
}

.hero-tag {
  position: absolute;
  right: -10px;
  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(26, 26, 26, 0.12);
}

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

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

.eyebrow > span {
  width: 22px;
  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.05em;
  line-height: 0.95;
}

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

.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(62, 86, 65, 0.22);
}

.button-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 88%, black);
  box-shadow: 0 18px 36px rgba(62, 86, 65, 0.28);
}

.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: 800;
}

/* 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: 600;
}

.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, 255, 255, 0.55);
}

.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: 700;
}

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

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

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

.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;
}

/* 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: #5A8A6E;
}

.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(169, 68, 66, 0.1);
}

.checkout-error {
  border-color: rgba(169, 68, 66, 0.28);
  background: rgba(169, 68, 66, 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(48px, 13vw, 64px);
  }

  .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: 58px;
  }
}

/* motion-signature-home: useful objects click, slide and settle like a well-made tool. */
body[data-store-style="domestic-modular"] ::selection { background:#E0A43B; color:#173C2B; }
body[data-store-style="domestic-modular"] :focus-visible { outline:3px solid #E0A43B; outline-offset:4px; }
body[data-store-style="domestic-modular"] .hero-copy > * { animation:home-slide-in .72s cubic-bezier(.16,1,.3,1) both; }
body[data-store-style="domestic-modular"] .hero-copy h1 { animation-delay:.08s; }
body[data-store-style="domestic-modular"] .hero-lead { animation-delay:.16s; }
body[data-store-style="domestic-modular"] .hero-actions { animation-delay:.24s; }
body[data-store-style="domestic-modular"] .hero-visual { animation:home-tool-drop .85s cubic-bezier(.34,1.56,.64,1) .12s both; }
body[data-store-style="domestic-modular"] .hero-ticket-wrap { animation:home-ticket-click .65s cubic-bezier(.34,1.56,.64,1) .3s both; }
body[data-store-style="domestic-modular"] .hero-tag { animation:home-dial 14s linear infinite; }
body[data-store-style="domestic-modular"] .button,
body[data-store-style="domestic-modular"] .cart-trigger,
body[data-store-style="domestic-modular"] .quick-view { transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s,background .22s,color .22s; }
body[data-store-style="domestic-modular"] .button:hover,
body[data-store-style="domestic-modular"] .quick-view:hover { transform:translate(-2px,-2px); box-shadow:5px 5px 0 #173C2B; }
body[data-store-style="domestic-modular"] .button:active,
body[data-store-style="domestic-modular"] .quick-view:active { transform:translate(2px,2px); box-shadow:1px 1px 0 #173C2B; }
body[data-store-style="domestic-modular"] .product-card { transition:transform .42s cubic-bezier(.16,1,.3,1),box-shadow .42s,border-color .42s; }
body[data-store-style="domestic-modular"] .product-card:hover { transform:translateY(-7px) rotate(.25deg); box-shadow:0 20px 40px rgba(23,60,43,.14); border-color:#173C2B; }
body[data-store-style="domestic-modular"] .product-card:nth-child(even):hover { transform:translateY(-7px) rotate(-.25deg); }
body[data-store-style="domestic-modular"] .product-media img,
body[data-store-style="domestic-modular"] .product-media svg { transition:transform .65s cubic-bezier(.16,1,.3,1); transform-origin:50% 75%; }
body[data-store-style="domestic-modular"] .product-card:hover .product-media img,
body[data-store-style="domestic-modular"] .product-card:hover .product-media svg { transform:translateY(-7px) scale(1.025); }
body[data-store-style="domestic-modular"] .category-strip button:hover svg { animation:home-category-pop .5s cubic-bezier(.34,1.56,.64,1); }
@supports (animation-timeline:view()) {
  body[data-store-style="domestic-modular"] .product-card { animation:home-card-dock linear both; animation-timeline:view(); animation-range:entry 4% cover 30%; }
  body[data-store-style="domestic-modular"] .how-steps article,body[data-store-style="domestic-modular"] .trust-cards article { animation:home-card-dock linear both; animation-timeline:view(); animation-range:entry 4% cover 30%; }
}
@keyframes home-slide-in { from { opacity:0; transform:translateX(-32px); } to { opacity:1; transform:none; } }
@keyframes home-tool-drop { from { opacity:0; transform:translateY(-28px) rotate(-2deg); } to { opacity:1; transform:none; } }
@keyframes home-ticket-click { from { opacity:0; transform:translate(18px,-14px) rotate(3deg) scale(.92); } to { opacity:1; transform:none; } }
@keyframes home-card-dock { from { opacity:.25; transform:translateY(30px) scale(.975); } to { opacity:1; transform:none; } }
@keyframes home-category-pop { 50% { transform:translateY(-5px) rotate(-4deg); } }
@keyframes home-dial { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { body[data-store-style="domestic-modular"] *,body[data-store-style="domestic-modular"] *::before,body[data-store-style="domestic-modular"] *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; } }

/* weekend-toolbox: Todo en Casa behaves like a clear, useful household index */
body[data-store-style="domestic-modular"] {
  --paper: #E5EEDB;
  --surface: #FFFDF4;
  --ink: #17392E;
  --muted: #4F665B;
  --accent: #D65A36;
  --accent-2: #F2B64B;
  --highlight: #B5D4BD;
  --line: rgba(23, 57, 46, 0.18);
  --line-strong: rgba(23, 57, 46, 0.38);
  background: var(--paper);
}

body[data-store-style="domestic-modular"] .announcement { background: #17392E; color: #FFFDF4; }
body[data-store-style="domestic-modular"] .site-header { background: #FFFDF4; border-bottom: 2px solid #17392E; }
body[data-store-style="domestic-modular"] .brand img { border-radius: 10px; }
body[data-store-style="domestic-modular"] .cart-trigger { border-radius: 8px; background: #17392E; color: #FFFDF4; }
body[data-store-style="domestic-modular"] .cart-count { border-radius: 6px; background: var(--accent-2); color: #17392E; }

body[data-store-style="domestic-modular"] .hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(410px, 1.05fr);
  grid-template-rows: 1fr;
  min-height: min(760px, calc(100svh - 108px));
  gap: 28px;
  padding-bottom: 78px;
}
body[data-store-style="domestic-modular"] .hero-copy { grid-column: 1; grid-row: 1; max-width: 620px; }
body[data-store-style="domestic-modular"] .hero h1 {
  max-width: 7.5ch;
  color: #17392E;
  font-size: clamp(70px, 8vw, 126px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.075em;
}
body[data-store-style="domestic-modular"] .hero h1 em { color: var(--accent); font-style: normal; }
body[data-store-style="domestic-modular"] .hero-lead { max-width: 34ch; color: #405B4E; }
body[data-store-style="domestic-modular"] .hero-visual { display: none; }
body[data-store-style="domestic-modular"] .hero-ticket-wrap {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 540px);
  justify-self: end;
  align-self: center;
}
body[data-store-style="domestic-modular"] .ticket-shadow { background: #17392E; opacity: 1; transform: translate(14px, 14px); }
body[data-store-style="domestic-modular"] .live-ticket { border: 2px solid #17392E; border-radius: 14px; background: #FFFDF4; transform: rotate(1deg); box-shadow: none; }
body[data-store-style="domestic-modular"] .ticket-mark { border-radius: 8px; background: var(--accent); color: #FFFDF4; }
body[data-store-style="domestic-modular"] .button-primary { border-radius: 10px; background: #17392E; box-shadow: 6px 6px 0 var(--accent-2); }
body[data-store-style="domestic-modular"] .button-primary:hover:not(:disabled) { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--accent-2); }

body[data-store-style="domestic-modular"] .category-strip { border-top: 2px solid #17392E; border-bottom: 2px solid #17392E; background: #FFFDF4; }
body[data-store-style="domestic-modular"] .category-strip button { min-height: 108px; border-color: #17392E; }
body[data-store-style="domestic-modular"] .category-strip button:hover { background: var(--accent-2); color: #17392E; }
body[data-store-style="domestic-modular"] .shop-section { background: #E5EEDB; }
body[data-store-style="domestic-modular"] .shop-tools { border: 2px solid #17392E; border-radius: 12px; background: #FFFDF4; }
body[data-store-style="domestic-modular"] .search-field { border-radius: 8px; border-color: #17392E; }
body[data-store-style="domestic-modular"] .filter-chips button.is-active,
body[data-store-style="domestic-modular"] .filter-chips button:hover { background: var(--accent); border-color: var(--accent); }

body[data-store-style="domestic-modular"] .product-grid { gap: 18px; }
body[data-store-style="domestic-modular"] .product-card,
body[data-store-style="domestic-modular"] .product-card:first-child {
  grid-column: span 3;
  padding: 12px;
  border: 2px solid #17392E;
  border-radius: 12px;
  background: #FFFDF4;
  box-shadow: 5px 5px 0 rgba(23, 57, 46, 0.22);
}
body[data-store-style="domestic-modular"] .product-card:first-child { grid-column: span 6; }
body[data-store-style="domestic-modular"] .product-card::before { display: none; }
body[data-store-style="domestic-modular"] .product-media,
body[data-store-style="domestic-modular"] .product-card:first-child .product-media { border-radius: 7px; background: var(--highlight); }
body[data-store-style="domestic-modular"] .product-card:first-child .product-media { aspect-ratio: 16 / 9; }
body[data-store-style="domestic-modular"] .product-info h3 { font-size: 20px; color: #17392E; }
body[data-store-style="domestic-modular"] .card-add { border-radius: 7px; background: #17392E; color: #FFFDF4; }
body[data-store-style="domestic-modular"] .card-add:hover:not(:disabled) { background: var(--accent); transform: none; }

@media (max-width: 960px) {
  body[data-store-style="domestic-modular"] .hero { grid-template-columns: 1fr; min-height: auto; }
  body[data-store-style="domestic-modular"] .hero-ticket-wrap { grid-column: 1; grid-row: 2; justify-self: start; }
  body[data-store-style="domestic-modular"] .product-card { grid-column: span 6; }
  body[data-store-style="domestic-modular"] .product-card:first-child { grid-column: 1 / -1; }
}

/* home-detail-pass: practical warmth, with a small amount of shop-floor texture */
body[data-store-style="domestic-modular"] .hero::before {
  border-color: rgba(242, 182, 75, 0.65);
  background: repeating-linear-gradient(45deg, rgba(23, 57, 46, 0.035) 0 2px, transparent 2px 14px);
}

body[data-store-style="domestic-modular"] .hero h1 {
  text-wrap: balance;
  text-shadow: 1px 1px 0 rgba(255, 253, 244, 0.78);
}

body[data-store-style="domestic-modular"] .hero-lead {
  padding: 18px 0 0;
  border-top: 2px solid var(--accent-2);
}

body[data-store-style="domestic-modular"] .category-strip button span {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
}

body[data-store-style="domestic-modular"] .shop-tools {
  box-shadow: 8px 8px 0 rgba(23, 57, 46, 0.14);
}

body[data-store-style="domestic-modular"] .product-card:nth-child(3n + 2) .product-media { background: #F7D7A0; }
body[data-store-style="domestic-modular"] .product-card:nth-child(3n) .product-media { background: #C7D8EF; }
body[data-store-style="domestic-modular"] .product-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 rgba(23, 57, 46, 0.24);
}

body[data-store-style="domestic-modular"] .product-category {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body[data-store-style="domestic-modular"] .trust-section {
  border-top: 2px solid #17392E;
  background: #FFFDF4;
}
@media (max-width: 640px) {
  body[data-store-style="domestic-modular"] .hero h1 { font-size: clamp(60px, 17vw, 90px); }
  body[data-store-style="domestic-modular"] .product-card,
  body[data-store-style="domestic-modular"] .product-card:first-child { grid-column: 1 / -1; }
}

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

  body[data-store-style="domestic-modular"] .hero h1 {
    font-size: clamp(54px, 14.5vw, 70px);
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }
}

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

  body[data-store-style="domestic-modular"] .hero {
    width: calc(100vw - 48px);
    min-width: 0;
  }

  body[data-store-style="domestic-modular"] .hero-copy,
  body[data-store-style="domestic-modular"] .hero-lead {
    width: min(100%, calc(100vw - 48px));
    min-width: 0;
    max-width: calc(100vw - 48px);
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

/* utility-switch: domestic modules stay still and reveal an obvious action rail */
body[data-store-style="domestic-modular"] .product-grid {
  gap: 16px;
}

body[data-store-style="domestic-modular"] .product-card,
body[data-store-style="domestic-modular"] .product-card:first-child {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
  transition: border-color 180ms ease, background 180ms ease;
}

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

body[data-store-style="domestic-modular"] .product-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--highlight) 50%, var(--surface));
}

body[data-store-style="domestic-modular"] .product-media,
body[data-store-style="domestic-modular"] .product-card:first-child .product-media {
  aspect-ratio: 1 / 0.82;
  border-radius: 6px;
  background: var(--highlight);
}

body[data-store-style="domestic-modular"] .product-media:hover img,
body[data-store-style="domestic-modular"] .product-media:focus-visible img {
  transform: none;
  filter: none;
}

body[data-store-style="domestic-modular"] .quick-view {
  right: auto;
  bottom: 10px;
  left: 10px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--surface);
  transform: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-store-style="domestic-modular"] .product-info {
  padding-top: 14px;
}

body[data-store-style="domestic-modular"] .product-summary {
  min-height: 42px;
  margin-top: 5px;
}

body[data-store-style="domestic-modular"] .card-add {
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 13px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--display);
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease;
}

body[data-store-style="domestic-modular"] .card-add:hover:not(:disabled) {
  padding: 10px 13px;
  border: 0;
  background: var(--accent-2);
  color: var(--ink);
}

body[data-store-style="domestic-modular"] .cart-trigger {
  min-width: 86px;
  min-height: 48px;
  padding: 7px 9px 7px 13px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
}

body[data-store-style="domestic-modular"] .cart-trigger:hover {
  transform: none;
  background: var(--accent-2);
  color: var(--ink);
}

body[data-store-style="domestic-modular"] .cart-count {
  border-radius: 5px;
  background: var(--surface);
  color: var(--accent);
}

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

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

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