/* ==========================================================================
   store.css — tienda pública de Jujuy Crea
   Se carga DESPUÉS de style.css y solo dentro de .store-scope.
   La estructura es común; la identidad sale de las variables que cada
   negocio define en _header.php (--brand, --bg, --ink, --accent y los
   colores de encabezado/portada). La voz tipográfica depende del rubro
   (.tone-serif / .tone-tech / .tone-plain).
   ========================================================================== */

.store-scope {
  --st-line: var(--border);
  --st-soft: var(--ink-soft);
  --st-faint: var(--ink-faint);
  --st-tint: color-mix(in srgb, var(--brand) 9%, var(--bg));
  --on-brand: #fff;
  --st-r: 6px;
  --st-max: 1320px;
  --st-gutter: 16px;
  --st-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --st-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --st-display: var(--st-sans);
  --st-display-weight: 700;
  --st-display-track: -0.02em;
  font-family: var(--st-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}
.store-scope.tone-serif { --st-display: var(--st-serif); --st-display-weight: 500; --st-display-track: -0.01em; --st-r: 2px; }
.store-scope.tone-tech  { --st-display-weight: 800; --st-display-track: -0.035em; --st-r: 8px; }
.store-scope.tone-plain { --st-display-weight: 700; --st-r: 5px; }

.store-scope :is(h1, h2, h3) { font-family: var(--st-display); font-weight: var(--st-display-weight); letter-spacing: var(--st-display-track); line-height: 1.12; margin: 0; color: var(--ink); }
.store-scope h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); }
.store-scope h2 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); }
.store-scope p { margin: 0; }
.store-scope img { max-width: 100%; }
:where(.store-scope) a { color: inherit; }
.store-scope :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.store-scope .st-i { flex: none; }

.st-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--st-r); }
.st-skip:focus { top: 8px; }
html.st-lock { overflow: hidden; }

.st-main { flex: 1 0 auto; width: 100%; }
.st-wrap { width: 100%; max-width: var(--st-max); margin: 0 auto; padding-inline: var(--st-gutter); }
.st-wrap .st-wrap { padding-inline: 0; }
.st-wrap-page { padding-block: 22px 56px; }
.st-section { margin-top: 56px; }
.st-flash { padding-top: 14px; }

/* ---------- Botones ---------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--st-r);
  font: 600 0.95rem/1 var(--st-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.st-btn-solid { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.st-btn-solid:hover { background: color-mix(in srgb, var(--brand) 86%, #000); border-color: color-mix(in srgb, var(--brand) 86%, #000); }
.st-btn-solid:disabled { background: var(--st-faint); border-color: var(--st-faint); color: var(--bg); cursor: not-allowed; }
.st-btn-line { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, var(--bg)); }
.st-btn-line:hover { border-color: var(--ink); }
.st-btn-block { display: flex; width: 100%; margin-top: 10px; }
.st-textlink { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); }

.st-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer; border-radius: 50%; text-decoration: none;
}
.st-iconbtn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

/* ---------- Encabezado ---------- */
.st-header { position: sticky; top: 0; z-index: 40; background: var(--i3d-header-bg); color: var(--i3d-on-header); }
.st-header :focus-visible { outline-color: currentColor; }
.st-header-bar { max-width: var(--st-max); margin: 0 auto; padding: 0 8px; height: 60px; display: flex; align-items: center; gap: 4px; }
.st-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; margin-right: auto; }
.st-brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: var(--st-r); flex: none; }
.st-brand-name { font-family: var(--st-display); font-weight: var(--st-display-weight); letter-spacing: var(--st-display-track); font-size: 1.12rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-nav { display: none; }
.st-actions { display: flex; align-items: center; gap: 2px; }
.st-search { display: none; }
.st-wa-btn { display: none; }

.st-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; color: inherit; text-decoration: none; border-radius: 22px; }
.st-cart:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.st-cart-label { display: none; font-weight: 600; font-size: 0.92rem; }
.st-cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: var(--on-brand); font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--i3d-header-color1);
}
.st-cart-count[hidden] { display: none; }
.st-menu-btn { order: -1; }

@media (min-width: 900px) {
  .st-header-bar { height: 68px; padding: 0 var(--st-gutter); gap: 28px; }
  .st-menu-btn, .st-search-btn { display: none; }
  .st-brand { margin-right: 0; }
  .st-nav { display: flex; gap: 22px; margin-right: auto; }
  .st-nav a { text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; opacity: .82; }
  .st-nav a:hover { opacity: 1; }
  .st-nav a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
  .st-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); width: 210px; transition: width .2s; }
  .st-search:focus-within { width: 270px; border-color: currentColor; }
  .st-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: inherit; font-size: 0.9rem; }
  .st-search input::placeholder { color: inherit; opacity: .6; }
  .st-search input::-webkit-search-cancel-button { display: none; }
  .st-wa-btn { display: inline-flex; }
  .st-cart { margin-left: 6px; padding: 0 16px 0 12px; background: color-mix(in srgb, currentColor 14%, transparent); }
  .st-cart-label { display: inline; }
  .st-cart-count { position: static; box-shadow: none; }
}
@media (min-width: 900px) and (max-width: 1099px) { .st-search { width: 150px; } .st-search:focus-within { width: 200px; } }

/* ---------- Paneles: menú, buscador, filtros ---------- */
.st-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.st-overlay.is-open { opacity: 1; visibility: visible; }

.st-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(86vw, 340px);
  background: var(--bg); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(-102%); visibility: hidden; transition: transform .22s ease, visibility .22s; overflow-y: auto;
}
.st-drawer.is-open { transform: none; visibility: visible; }
.st-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--st-line); min-height: 60px; }
.st-drawer-title { font-family: var(--st-display); font-weight: var(--st-display-weight); font-size: 1.1rem; }
.st-drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.st-drawer-nav a { padding: 14px 20px; font-size: 1.02rem; font-weight: 500; text-decoration: none; border-left: 3px solid transparent; }
.st-drawer-nav a[aria-current="page"] { border-left-color: var(--brand); background: var(--st-tint); font-weight: 700; }
.st-drawer-social { margin-top: auto; padding: 16px 20px 24px; border-top: 1px solid var(--st-line); display: flex; flex-direction: column; gap: 4px; }
.st-drawer-social a { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--st-soft); }

.st-searchpanel { position: fixed; left: 0; right: 0; top: 0; z-index: 60; background: var(--bg); padding: 10px 12px; transform: translateY(-102%); visibility: hidden; transition: transform .2s ease, visibility .2s; border-bottom: 1px solid var(--st-line); }
.st-searchpanel.is-open { transform: none; visibility: visible; }
.st-searchpanel form { display: flex; align-items: center; gap: 8px; }
.st-searchpanel input[type="search"] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: var(--st-r); border: 1.5px solid var(--st-line); background: var(--bg); color: var(--ink); font: inherit; }
.st-searchpanel .st-btn { min-height: 46px; padding: 0 16px; }
@media (min-width: 900px) { .st-drawer, .st-searchpanel { display: none; } }

/* Hoja de filtros: inferior en celular, lateral en escritorio */
.st-sheet {
  position: fixed; z-index: 60; background: var(--bg); color: var(--ink);
  left: 0; right: 0; bottom: 0; max-height: 86vh; border-radius: 14px 14px 0 0;
  transform: translateY(102%); visibility: hidden; transition: transform .24s ease, visibility .24s;
}
.st-sheet.is-open { transform: none; visibility: visible; }
.st-sheet form { display: flex; flex-direction: column; max-height: 86vh; }
.st-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 20px; border-bottom: 1px solid var(--st-line); }
.st-sheet-body { padding: 8px 20px 18px; overflow-y: auto; }
.st-sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--st-line); }
.st-sheet-foot .st-btn { flex: 1; }
.st-fieldset { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.st-fieldset legend { font-weight: 700; font-size: 0.95rem; padding: 0; margin-bottom: 8px; }
.st-fieldset label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 0.97rem; cursor: pointer; }
.st-fieldset label small { margin-left: auto; color: var(--st-faint); }
.st-fieldset input[type="radio"] { accent-color: var(--brand); width: 20px; height: 20px; margin: 0; }
.st-fieldset input[type="range"] { width: 100%; accent-color: var(--brand); margin: 8px 0 4px; }
.st-range-labels { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--st-soft); }
@media (min-width: 900px) {
  .st-sheet { left: auto; top: 0; right: 0; bottom: 0; width: 380px; max-height: none; border-radius: 0; transform: translateX(102%); }
  .st-sheet.is-open { transform: none; }
  .st-sheet form { height: 100%; max-height: none; }
  .st-sheet-body { flex: 1; }
  .st-sheet-cats { display: none; } /* en escritorio las categorías ya están arriba, como pestañas */
}

/* ---------- Portada (inicio) ---------- */
.st-hero { background: var(--i3d-hero-bg); color: var(--i3d-on-hero); }
.st-hero-inner { max-width: var(--st-max); margin: 0 auto; display: flex; flex-direction: column-reverse; }
.st-hero-copy { padding: 32px var(--st-gutter) 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
.st-hero-copy h1 { color: inherit; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem); max-width: 16ch; }
.st-hero-copy p { color: color-mix(in srgb, var(--i3d-on-hero) 82%, var(--i3d-hero-color1)); max-width: 46ch; font-size: 1.05rem; }
.st-btn-hero { margin-top: 6px; background: var(--i3d-on-hero); color: var(--i3d-hero-color1); border-color: var(--i3d-on-hero); }
.st-btn-hero:hover { background: transparent; color: var(--i3d-on-hero); }
.st-hero-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
.st-hero-noimg .st-hero-copy { padding-block: 56px 64px; }
.st-hero-noimg .st-hero-copy h1 { max-width: 20ch; }
@media (min-width: 900px) {
  .st-hero-inner { flex-direction: row; min-height: 480px; }
  .st-hero-copy { flex: 0 0 46%; padding: 56px 40px 56px var(--st-gutter); }
  .st-hero-media { flex: 1; min-width: 0; position: relative; }
  .st-hero-media img { position: absolute; inset: 0; aspect-ratio: auto; }
  .st-hero-noimg .st-hero-copy { flex-basis: 100%; padding-block: 88px; }
}

/* Beneficios reales del negocio: una línea discreta, sin cajas */
.st-benefits { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: 1fr; gap: 14px 28px; border-bottom: 1px solid var(--st-line); }
.st-benefits li { display: flex; align-items: center; gap: 12px; }
.st-benefits strong { display: block; font-size: 0.95rem; }
.st-benefits small { display: block; color: var(--st-soft); font-size: 0.85rem; line-height: 1.35; }
.st-benefit-icon { font-size: 1.35rem; line-height: 1; width: 28px; text-align: center; flex: none; }
@media (min-width: 640px) { .st-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .st-benefits { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }

.st-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.st-section-head a { font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); white-space: nowrap; }
.st-h2 { margin-bottom: 20px; }

/* Categorías con la foto de su producto más reciente */
.st-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
.st-cat { display: block; text-decoration: none; }
.st-cat-media { display: block; aspect-ratio: 5 / 6; overflow: hidden; background: var(--st-tint); border-radius: var(--st-r); }
.st-cat-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .35s; }
.st-cat:hover .st-cat-media img { transform: scale(1.04); }
.st-cat-name { display: block; margin-top: 10px; font-weight: 600; }
@media (min-width: 640px) { .st-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .st-cats { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Productos ---------- */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
@media (min-width: 640px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; } }
@media (min-width: 900px) { .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; } }
@media (min-width: 1200px) { .st-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .st-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.st-card { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.st-card-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--st-tint); border-radius: var(--st-r); }
.st-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .35s; }
.st-card:hover .st-card-media img { transform: scale(1.035); }
.st-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--st-display); font-size: 3rem; color: color-mix(in srgb, var(--brand) 55%, var(--bg)); }
.st-card-badge { position: absolute; top: 8px; left: 8px; background: var(--bg); color: var(--ink); font-size: 0.72rem; font-weight: 700; padding: 4px 8px; border-radius: 3px; line-height: 1.2; }
.st-card-name { margin-top: 8px; font-size: 0.9rem; line-height: 1.3; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-card-price { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.st-price-now { font-weight: 700; font-size: 0.98rem; }
.st-price-was { color: var(--st-faint); font-size: 0.85rem; }
.st-card-status { margin-top: 4px; font-size: 0.8rem; font-weight: 600; }
.st-status-agotado { color: #a33; }
.st-status-ultimas { color: #9a5b00; }
.st-status-encargo { color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.st-status-disponible { color: #1f7a4a; }

.st-empty { text-align: center; padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.st-empty p { color: var(--st-soft); }
.st-empty .st-btn { margin-top: 8px; }

/* ---------- Tienda (catálogo) ---------- */
.st-shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.st-count { color: var(--st-soft); font-size: 0.9rem; }

.st-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--st-gutter) * -1) 0; padding: 4px var(--st-gutter) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.st-chips::-webkit-scrollbar { display: none; }
.st-chips a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--st-line); border-radius: 22px; text-decoration: none; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.st-chips a:hover { border-color: var(--ink); }
.st-chips .st-chips-sep { flex: none; width: 1px; background: var(--st-line); margin: 6px 4px; }
.st-chips a[aria-current="true"], .st-chips a[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
@media (min-width: 900px) {
  .st-chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

.st-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 16px; border-bottom: 1px solid var(--st-line); margin-bottom: 22px; }
.st-toolbar .st-btn { min-height: 44px; padding: 0 16px; }
.st-sort { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-sort label { font-size: 0.88rem; color: var(--st-soft); }
.st-sort select { min-height: 44px; max-width: 100%; padding: 0 34px 0 12px; border: 1.5px solid var(--st-line); border-radius: var(--st-r); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.92rem; }
@media (max-width: 480px) { .st-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .st-sort select { width: 100%; } .st-sort { flex: 1; } .st-filter-btn { flex: none; } }

.st-applied { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.st-applied a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; background: var(--st-tint); border-radius: 17px; font-size: 0.85rem; text-decoration: none; }
.st-applied .st-applied-clear { background: none; text-decoration: underline; padding: 0 4px; }

/* ---------- Ficha de producto ---------- */
.st-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--st-soft); margin-bottom: 16px; }
.st-crumbs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; min-height: 32px; }
.st-crumbs a:hover { color: var(--ink); text-decoration: underline; }

.st-product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.st-gallery-main { position: relative; background: var(--st-tint); border-radius: var(--st-r); overflow: hidden; aspect-ratio: 1 / 1; touch-action: pan-y; }
.st-gallery-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 5px 10px; border-radius: 20px; background: rgba(20,20,20,.72); color: #fff; font: 600 .78rem/1.2 var(--st-sans); pointer-events: none; }
.st-gallery-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #222; box-shadow: 0 2px 10px rgba(0,0,0,.12); cursor: pointer; }
.st-gallery-prev { left: 10px; }
.st-gallery-next { right: 10px; }
.st-gallery-arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .st-card-media img, .st-cat-media img { transition: none; } }
.st-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; user-select: none; -webkit-user-drag: none; }
.st-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.st-thumbs button { flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: var(--st-r); overflow: hidden; background: var(--st-tint); cursor: pointer; opacity: .7; }
.st-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.st-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

.st-buy h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); }
.st-buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; }
.st-buy-price .st-price-now { font-size: 1.6rem; }
.st-buy-price .st-price-was { font-size: 1.05rem; }
.st-off { font-size: 0.82rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; background: var(--brand); color: var(--on-brand); }
.st-stock { margin-top: 6px; font-size: 0.9rem; font-weight: 600; }
.st-desc { margin-top: 18px; color: color-mix(in srgb, var(--ink) 85%, var(--bg)); max-width: 62ch; }
.st-note { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--st-tint); font-size: 0.92rem; }
.st-note p + p { margin-top: 4px; }
.st-note a { font-weight: 600; text-decoration: underline; }
.st-opt { margin-top: 20px; }
.st-opt-label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; }
.st-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--st-line); border-radius: var(--st-r); background: var(--bg); color: var(--ink); font: inherit; margin-top: 8px; }
.st-buy-row { display: flex; gap: 10px; margin-top: 22px; align-items: stretch; }
.st-buy-row .st-btn { flex: 1; min-height: 50px; }
.st-msg { margin-top: 10px; font-size: 0.9rem; min-height: 1.2em; }
.st-msg-ok { color: #1f7a4a; }
.st-msg-error { color: #a33; }
@media (min-width: 900px) {
  .st-product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .st-buy { position: sticky; top: 92px; }
}

/* Elementos heredados del carrito y la ficha, con el mismo lenguaje */
.store-scope .color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.store-scope .color-swatch { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--st-line); border-radius: var(--st-r); background: var(--bg); color: var(--ink); font: 500 0.92rem var(--st-sans); cursor: pointer; }
.store-scope .color-swatch:hover:not(:disabled) { border-color: var(--ink); }
.store-scope .color-swatch.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.store-scope .color-swatch.out-of-stock { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.store-scope .qty-selector { display: inline-flex; align-items: center; border: 1.5px solid var(--st-line); border-radius: var(--st-r); }
.store-scope .qty-btn { width: 44px; height: 46px; border: 0; background: none; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.store-scope .qty-value { min-width: 34px; text-align: center; font-weight: 600; }

.store-scope .btn-catalog { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--st-r); font-weight: 600; border: 1.5px solid transparent; }
.store-scope .btn-catalog-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.store-scope .btn-catalog-whatsapp { background: #1f9d55; color: #fff; border-color: #1f9d55; }
.store-scope .st-wrap-page > h1 { margin-bottom: 18px; }

.store-scope .cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 6px 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--st-line); }
.store-scope .cart-item-img { width: 72px; height: 90px; object-fit: contain; padding: 3px; border-radius: var(--st-r); border: 0; background: var(--st-tint); }
.store-scope .cart-item-info { min-width: 0; }
.store-scope .cart-item-subtotal { color: var(--ink); text-align: right; font-weight: 700; min-width: 0; }
.store-scope .cart-item-qty { grid-column: 2; }
.store-scope .cart-total-row { font-size: 1.15rem; }
.store-scope .cart-total-row strong { color: var(--ink); }
.store-scope .cart-empty { padding: 48px 0; }
.store-scope.page-carrito .st-wrap-page { max-width: 760px; }
.store-scope .field input, .store-scope .field select, .store-scope .field textarea { min-height: 46px; border-radius: var(--st-r); border: 1.5px solid var(--st-line); background: var(--bg); color: var(--ink); }
.store-scope .alert { border-radius: var(--st-r); }

/* ---------- Páginas de texto: Contacto, Nosotros, Preguntas ---------- */
.st-page-head { max-width: 62ch; margin-bottom: 28px; }
.st-page-head p { margin-top: 12px; color: var(--st-soft); font-size: 1.05rem; }

.st-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.st-wa-block { padding: 20px 0; border-block: 1px solid var(--st-line); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.st-wa-block p { color: var(--st-soft); max-width: 46ch; }
.st-lines { list-style: none; margin: 0; padding: 0; }
.st-lines li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--st-line); }
.st-line-icon { color: var(--brand); width: 24px; padding-top: 2px; display: flex; }
.st-line-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.st-line-text small { color: var(--st-soft); font-size: 0.82rem; }
.st-line-text a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--st-line); }
.st-line-text a:hover { text-decoration-color: var(--brand); }
.st-line-text em { font-style: normal; color: var(--st-soft); font-size: 0.9rem; margin-top: 2px; }
.st-block + .st-block { margin-top: 36px; }
.st-block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 12px; }
.st-block p { color: var(--st-soft); margin-bottom: 12px; }
.st-tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-tags li { padding: 6px 12px; border: 1px solid var(--st-line); border-radius: 18px; font-size: 0.88rem; }
.st-reasons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--st-line); }
.st-reasons li { border-bottom: 1px solid var(--st-line); }
.st-reasons a, .st-reasons div { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; text-decoration: none; }
.st-reasons a span:not(.st-reason-icon) { flex: 1; font-weight: 500; }
.st-reasons a:hover { color: var(--brand); }
.st-reasons .is-highlighted span:not(.st-reason-icon) { font-weight: 700; }
.st-reason-icon { width: 28px; text-align: center; font-size: 1.2rem; }
@media (min-width: 900px) { .st-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }  }

.st-about-head { padding-block: 40px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.st-about-copy { max-width: 62ch; }
.st-about-copy h1 { margin-bottom: 16px; }
.st-about-copy p { font-size: 1.08rem; color: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
.st-about-media { border-radius: var(--st-r); overflow: hidden; background: var(--st-tint); }
.st-about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .st-about-head.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 56px; }
  .st-about-media img { aspect-ratio: 5 / 4; }
}
.st-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.st-story-copy { max-width: 62ch; }
.st-story-copy h2 { margin-bottom: 14px; }
.st-story-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.st-story-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--st-r); }
.st-story-count-1 { grid-template-columns: 1fr; }
.st-story-count-1 img { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .st-story.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.st-points { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--st-line); }
.st-point { padding: 20px 0; border-bottom: 1px solid var(--st-line); }
.st-point-icon { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.st-point h3 { font-size: 1.05rem; font-family: var(--st-sans); letter-spacing: 0; font-weight: 700; }
.st-point p { margin-top: 4px; color: var(--st-soft); font-size: 0.95rem; }
@media (min-width: 700px) { .st-points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1000px) { .st-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.st-gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--st-r); }
@media (min-width: 800px) { .st-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.st-closing { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 8px; }

.st-faq { max-width: 760px; border-top: 1px solid var(--st-line); }
.st-faq-item { border-bottom: 1px solid var(--st-line); }
.st-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; }
.st-faq-item summary::-webkit-details-marker { display: none; }
.st-faq-item summary .st-i { transition: transform .2s; color: var(--st-soft); }
.st-faq-item[open] summary .st-i { transform: rotate(180deg); }
.st-faq-answer { padding: 0 0 20px; color: color-mix(in srgb, var(--ink) 85%, var(--bg)); max-width: 62ch; }
.st-faq-more { margin-top: 24px; color: var(--st-soft); }

/* ---------- Pie ---------- */
.st-footer { margin-top: 72px; border-top: 1px solid var(--st-line); background: color-mix(in srgb, var(--ink) 4%, var(--bg)); }
.st-footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 44px 28px; }
.st-footer-name { font-family: var(--st-display); font-weight: var(--st-display-weight); font-size: 1.3rem; text-decoration: none; letter-spacing: var(--st-display-track); }
.st-footer-brand p { margin-top: 10px; color: var(--st-soft); font-size: 0.92rem; max-width: 40ch; }
.st-footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; min-width: 0; overflow-wrap: anywhere; }
.st-footer-col h2 { font-family: var(--st-sans); font-size: 0.92rem; letter-spacing: 0; margin-bottom: 4px; }
.st-footer-col a { text-decoration: none; color: var(--st-soft); min-height: 24px; }
.st-footer-col a:hover { color: var(--ink); text-decoration: underline; }
.st-footer-col span { color: var(--st-soft); }
.st-footer-col span strong { color: var(--ink); }
.st-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 18px 26px; border-top: 1px solid var(--st-line); font-size: 0.85rem; color: var(--st-soft); }
.st-powered { text-decoration: none; }
.st-powered:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 700px) { .st-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .st-footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 48px; } }

@media (prefers-reduced-motion: reduce) {
  .store-scope *, .store-scope *::before, .store-scope *::after { transition: none !important; scroll-behavior: auto !important; }
}

.st-pricebox { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-pricebox label { display: block; min-height: 0; font-size: 0.85rem; color: var(--st-soft); }
.st-pricebox input { width: 100%; min-height: 46px; margin-top: 4px; padding: 0 12px; border: 1.5px solid var(--st-line); border-radius: var(--st-r); background: var(--bg); color: var(--ink); font: inherit; }
.st-fieldset .st-check { gap: 12px; }
.st-fieldset input[type="checkbox"] { accent-color: var(--brand); width: 20px; height: 20px; margin: 0; }

/* Contacto sin columna lateral: los medios se reparten en dos columnas en escritorio */
@media (min-width: 900px) {
  .st-contact:not(:has(.st-contact-side)) { grid-template-columns: minmax(0, 1fr); }
  .st-contact:not(:has(.st-contact-side)) .st-lines { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid var(--st-line); }
  .st-contact:not(:has(.st-contact-side)) .st-wa-block { border-bottom: 0; flex-direction: row; align-items: center; }
}


/* Checkout simplificado: sin formulario de datos personales. */
.store-scope .btn-catalog-whatsapp { gap: 10px; font-weight: 750; }
.store-scope .btn-catalog-whatsapp .st-i { width: 23px; height: 23px; flex: 0 0 23px; }
.store-scope .btn-catalog-whatsapp span { line-height: 1.2; }
.store-scope .cart-whatsapp-note { color: var(--st-soft); font-size: .82rem; line-height: 1.55; text-align: center; max-width: 560px; margin: 12px auto 0; }
@media (max-width: 520px) {
  .store-scope .btn-catalog-whatsapp { min-height: 52px; font-size: .96rem !important; }
  .store-scope .cart-whatsapp-note { font-size: .78rem; padding: 0 8px; }
}


/* Fotografías completas dentro de espacios de tamaño fijo: no deformar ni agrandar tarjetas. */
.store-scope .st-card-media,
.store-scope .st-cat-media,
.store-scope .st-gallery-main,
.store-scope .st-thumbs button,
.store-scope .st-about-media,
.store-scope .st-story-media img,
.store-scope .st-gallery-grid img {
  background: var(--st-tint, #f2f4f6);
}
.store-scope .st-card-media img,
.store-scope .st-cat-media img,
.store-scope .st-gallery-main img,
.store-scope .st-thumbs img,
.store-scope .st-about-media img,
.store-scope .st-story-media img,
.store-scope .st-gallery-grid img {
  object-fit: contain !important;
  box-sizing: border-box;
}
.store-scope .st-card-media img,
.store-scope .st-cat-media img,
.store-scope .st-gallery-main img,
.store-scope .st-thumbs img,
.store-scope .st-about-media img,
.store-scope .st-story-media img,
.store-scope .st-gallery-grid img { padding: 8px; }
.store-scope .st-about-media { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.store-scope .st-about-media img { width: 100%; height: 100%; }
@media (min-width: 900px) { .store-scope .st-about-media { aspect-ratio: 5 / 4; } }
.store-scope .st-story-media img,
.store-scope .st-gallery-grid img { display: block; height: auto; }
.st-whatsapp-logo { display: inline-block; width: 1.2em; height: 1.2em; object-fit: contain; vertical-align: middle; flex: 0 0 auto; }
/* Contraste para botones y cabecera oscuros; el archivo de logo se conserva tal cual. */
.st-header .st-whatsapp-logo,
.btn-catalog-whatsapp .st-whatsapp-logo { filter: brightness(0) invert(1); }
