/* ═══ TEMA TIENDA 1 (id joyeria1) — Moda: blanco y negro, la foto manda ═══
   El id sigue siendo "joyeria1" porque así lo guardan las empresas en BD; el
   diseño es de tienda de ropa. --accent lo pone cada empresa (color_acento) y
   solo se usa en ofertas: todo lo demás es blanco y negro. Esquinas rectas,
   tipografía condensada en mayúscula y fotos verticales 3:4. */
:root {
  --accent:      #111111;
  --accent-dark: #000000;
  --accent-gold: #111111;
  --on-accent:   #ffffff;   /* texto sobre el acento: tienda.js lo elige por contraste */
  /* core.css usa --white como color de TEXTO y --black como contraste. */
  --black:       #ffffff;
  --white:       #111111;
  --off-white:   #f4f4f2;
  --bg:          #ffffff;
  --surface:     #ffffff;
  --gray-100:    #f4f4f2;
  --gray-200:    #e4e4e1;
  --gray-400:    #6f6f6f;
  --gray-600:    #9b9b9b;
  --ink:         #111111;
  --muted:       #6b6b6b;
  --line:        #e6e6e3;
  --img-bg:      #f1f1ef;
  --danger:      #d92d20;
  --success:     #12805c;
  --radius-sm:   0;
  --radius-md:   0;
  --radius-lg:   0;
  --radius-xl:   0;
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter:      clamp(16px, 3vw, 40px);
}

body { background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.005em; }
p { color: var(--muted); }
button, input, select { font-family: inherit; }
.t-container { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* ── BARRA DE ANUNCIOS ── */
.t-announce { background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.t-announce-track { display: flex; justify-content: center; gap: 3.5rem; padding: .6rem var(--gutter); white-space: nowrap; }
@media (max-width: 760px) { .t-announce-track span:not(:first-child) { display: none; } }

/* ── HEADER ── */
.t-nav {
  position: sticky; top: 0; z-index: 100; height: 64px; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.t-nav-left { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.t-nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 1.6vw, 1.9rem); }
.t-nav-link {
  position: relative; padding-block: .35rem; cursor: pointer; white-space: nowrap;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.t-nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.t-nav-link:hover::after, .t-nav-link.active::after { transform: scaleX(1); }
.t-nav-logo {
  justify-self: center; display: flex; align-items: center; cursor: pointer; line-height: 1;
  font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 1.6rem;
  letter-spacing: .01em; text-transform: uppercase; color: var(--ink);
}
.t-nav-logo img { height: 38px !important; max-width: 190px; object-fit: contain; display: block; }
/* Logo blanco subido para fondos oscuros: tienda.js lo detecta y aquí se pinta negro. */
.t-nav-logo img.t-logo--claro { filter: brightness(0); }
.t-nav-actions { justify-self: end; display: flex; align-items: center; gap: .15rem; }
.t-nav-icon, .t-nav-cart {
  position: relative; width: 42px; height: 42px; border: none; border-radius: 50%; background: transparent;
  color: var(--ink); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s;
}
.t-nav-icon:hover, .t-nav-cart:hover { background: var(--gray-100); }
.t-nav-burger { display: none; }
.t-nav-cart .cart-badge {
  top: 4px; right: 1px; width: auto; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: .6rem; font-weight: 700; border: 2px solid #fff; box-sizing: content-box;
}

/* Buscador desplegable */
.t-search-bar {
  position: absolute; left: 0; right: 0; top: 100%; display: none;
  background: #fff; border-bottom: 1px solid var(--line); padding: 1rem var(--gutter);
}
.t-search-bar.open { display: block; animation: t-drop .2s ease; }
.t-search-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: .8rem; border-bottom: 1.5px solid var(--ink); padding: .45rem 0; }
.t-search-inner i { font-size: 1.05rem; color: var(--ink); }
.t-search-inner input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 1.05rem; color: var(--ink); }
.t-search-inner button { border: none; background: none; cursor: pointer; font-size: 1rem; color: var(--ink); padding: .25rem; }
@keyframes t-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Con Inicio, Tienda, Categorías, Colecciones y Mi pedido, los enlaces chocan con
   el logo centrado antes de los 900px: pasan al menú hamburguesa desde 1280px. */
@media (max-width: 1280px) {
  .t-nav-burger { display: flex; }
  .t-nav-links {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .35rem 0;
  }
  .t-nav-links.open { display: flex; animation: t-drop .2s ease; }
  .t-nav-link { padding: 1rem var(--gutter); font-size: .8rem; }
  .t-nav-link::after { display: none; }
}
@media (max-width: 900px) {
  .t-nav-logo { font-size: 1.3rem; }
  .t-nav-logo img { height: 32px !important; max-width: 140px; }
}

/* ── BOTONES ── */
.t-btn-primary, .t-btn-outline, .t-btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 1.05rem 2.1rem;
  border: none; border-radius: 0; cursor: pointer; font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; transition: background .2s, color .2s, box-shadow .2s;
}
.t-btn-primary, .t-btn-dark { background: var(--accent); color: var(--on-accent); }
.t-btn-primary:hover, .t-btn-dark:hover { filter: brightness(.88); }
.t-btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.t-btn-outline:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ── HERO ── */
.t-hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: min(86vh, 880px); padding: clamp(2rem, 5vw, 4.5rem) var(--gutter);
  background-color: #111; background-image: linear-gradient(135deg, #222 0%, #0b0b0b 100%);
  background-size: cover; background-position: center; color: #fff;
}
.t-hero-content { position: relative; z-index: 1; max-width: 820px; }
.t-hero-eyebrow { margin-bottom: 1rem; }
.t-hero-eyebrow-text { font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.t-hero h1 {
  margin-bottom: 1.1rem; color: #fff !important; text-transform: uppercase;
  font-weight: 900; font-stretch: 75%; font-size: clamp(3rem, 9vw, 7.6rem); line-height: .88; letter-spacing: -.005em;
}
.t-hero h1 em { font-style: normal; color: inherit; }
.t-hero-sub { max-width: 520px; margin-bottom: 1.8rem; font-size: clamp(.95rem, 1.4vw, 1.1rem); line-height: 1.6; color: rgba(255,255,255,.9) !important; }
.t-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.t-hero .t-btn-primary { background: #fff; color: var(--ink); }
.t-hero .t-btn-primary:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.t-hero .t-btn-outline { color: #fff; }
.t-hero .t-btn-outline:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #fff; }
/* Con color de marca, el botón principal del hero lo usa (sin él queda blanco sobre la foto). */
.t-has-accent .t-hero .t-btn-primary { background: var(--accent); color: var(--on-accent); }
.t-has-accent .t-hero .t-btn-primary:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; filter: brightness(.88); }
@media (max-width: 760px) {
  .t-hero { min-height: 72vh; }
  .t-hero-actions { width: 100%; }
  .t-hero-actions button { flex: 1 1 auto; padding-inline: 1rem; }
}

/* ── BENEFICIOS ── */
.t-benefits { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.t-benefit { display: flex; align-items: center; gap: .9rem; padding: 1.3rem var(--gutter); }
.t-benefit + .t-benefit { border-left: 1px solid var(--line); }
.t-benefit i { font-size: 1.45rem; color: var(--ink); }
.t-benefit strong { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.t-benefit span { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) {
  .t-benefits { grid-template-columns: 1fr; }
  .t-benefit { padding-block: .9rem; }
  .t-benefit + .t-benefit { border-left: none; border-top: 1px solid var(--line); }
}

/* ── SECCIONES ── */
.t-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.t-section--tight { padding-top: 0; }
.t-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.t-section-title {
  margin: 0; color: var(--ink); text-transform: uppercase;
  font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: clamp(2rem, 4vw, 3.1rem); line-height: .95;
}
.t-section-sub { margin: 0; color: var(--muted); font-size: .92rem; }
.t-link-arrow {
  border: none; background: none; cursor: pointer; white-space: nowrap; padding: 0 0 .2rem;
  border-bottom: 1.5px solid var(--accent); color: var(--ink);
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transition: opacity .15s;
}
.t-link-arrow:hover { opacity: .55; }
.t-grid-msg { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2.5rem 1rem; }

/* ── CATEGORÍAS (bloques de foto) ── */
.t-categorias-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.t-categorias-grid[data-count="1"] { grid-template-columns: 1fr; }
.t-categorias-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.t-categoria-card { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--img-bg); cursor: pointer; }
.t-categorias-grid[data-count="1"] .t-categoria-card { aspect-ratio: 21 / 9; }
.t-categorias-grid[data-count="2"] .t-categoria-card { aspect-ratio: 1 / 1; }
.t-categoria-img, .t-categoria-img img { width: 100%; height: 100%; }
.t-categoria-img img { object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.t-categoria-card:hover .t-categoria-img img { transform: scale(1.05); }
.t-categoria-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.t-categoria-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--gray-200); }
.t-categoria-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.3rem; color: #fff; display: flex; flex-direction: column; gap: .2rem; }
.t-categoria-name { font-weight: 900; font-stretch: 75%; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: .95; text-transform: uppercase; }
.t-categoria-count { font-size: .78rem; opacity: .85; }
.t-categoria-cta { align-self: flex-start; margin-top: .6rem; padding-bottom: .15rem; border-bottom: 1.5px solid #fff; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 760px) {
  .t-categorias-grid, .t-categorias-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .t-categorias-grid[data-count="1"] { grid-template-columns: 1fr; }
  .t-categorias-grid[data-count="1"] .t-categoria-card { aspect-ratio: 4 / 3; }
  .t-categorias-grid[data-count="2"] .t-categoria-card { aspect-ratio: 4 / 5; }
  .t-categoria-info { padding: .85rem; }
}

/* ── TARJETAS DE PRODUCTO ── */
.t-productos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 10px; }
@media (max-width: 1100px) { .t-productos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .t-productos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 6px; } }
.t-producto-card { display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.t-producto-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--img-bg); }
.t-producto-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .45s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.t-producto-img--alt { opacity: 0; }
.t-producto-img-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--gray-200); }
.t-producto-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: .35rem .55rem;
  background: #fff; color: var(--ink); font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.t-producto-badge--oferta { background: var(--accent); color: #fff; }
.t-producto-badge--agotado { background: var(--ink); color: #fff; }
.t-producto-wishlist {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 36px; height: 36px; border: none; background: transparent;
  color: var(--ink); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.t-producto-wishlist.active { color: var(--danger); }
.t-producto-wishlist.active i::before { content: "\f415"; } /* bi-heart-fill */

/* Compra rápida: aparece al pasar el mouse (en táctil se entra a la ficha) */
.t-producto-quick {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; padding: .6rem;
  background: rgba(255,255,255,.96); transform: translateY(calc(100% + 12px));
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.t-producto-quick-label { display: block; margin-bottom: .45rem; text-align: center; font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.t-producto-quick-tallas { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.t-producto-quick-tallas button {
  min-width: 36px; height: 32px; padding: 0 .45rem; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: .72rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.t-producto-quick-tallas button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.t-producto-quick-tallas button:disabled { color: var(--gray-600); text-decoration: line-through; cursor: not-allowed; }
.t-producto-quick-add {
  width: 100%; height: 40px; border: none; background: var(--accent); color: var(--on-accent); cursor: pointer;
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.t-producto-quick-add:hover { filter: brightness(.88); }
@media (hover: hover) {
  .t-producto-card:hover .t-producto-img--alt { opacity: 1; }
  .t-producto-card:hover .t-producto-img { transform: scale(1.03); }
  .t-producto-card:hover .t-producto-quick { transform: none; }
}
@media (hover: none) { .t-producto-quick { display: none; } }

.t-producto-body { display: flex; flex-direction: column; gap: .22rem; padding-top: .75rem; }
.t-producto-name {
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-size: .8rem; font-weight: 600; line-height: 1.35; letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
}
.t-producto-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.t-producto-price { font-size: .86rem; font-weight: 500; color: var(--ink); }
.t-producto-price--oferta { color: var(--accent); font-weight: 700; }
.t-producto-price-old { font-size: .78rem; color: var(--muted); text-decoration: line-through; }
.t-producto-meta { font-size: .72rem; color: var(--muted); }

/* ── EDITORIAL ── */
/* La foto va en 16:9, la misma proporción del banner recomendado (1920 × 1080),
   así se ve completa en vez de recortarse según el ancho de la pantalla. */
.t-editorial { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--off-white); }
.t-editorial-media { aspect-ratio: 16 / 9; background-color: #1a1a1a; background-size: cover; background-position: center; }
.t-editorial-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2.25rem, 6vw, 5.5rem); }
.t-eyebrow-sm { margin-bottom: 1rem; font-size: .68rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.t-editorial-body h2 { margin-bottom: 1.1rem; text-transform: uppercase; font-weight: 900; font-stretch: 75%; font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: .9; }
.t-editorial-body p { max-width: 420px; margin-bottom: 1.8rem; line-height: 1.65; }
@media (max-width: 860px) {
  .t-editorial { grid-template-columns: 1fr; min-height: 0; }
  .t-editorial-media { aspect-ratio: 16 / 9; }
}

/* ── NEWSLETTER ── */
.t-newsletter { border-top: 1px solid var(--line); padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.t-newsletter-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 3rem; }
.t-newsletter-inner p { margin: .55rem 0 0; }
.t-newsletter-form { display: flex; flex: 1 1 360px; max-width: 540px; border-bottom: 1.5px solid var(--ink); }
.t-newsletter-form input { flex: 1; min-width: 0; padding: .95rem 0; border: none; outline: none; background: transparent; font-size: .95rem; color: var(--ink); }
.t-newsletter-form button { padding: 0 0 0 1rem; border: none; background: none; cursor: pointer; color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.t-newsletter-form button:hover { opacity: .55; }

/* ── FOOTER ── */
.t-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: clamp(3rem, 6vw, 4.75rem) var(--gutter) 1.75rem; }
.t-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; max-width: 1440px; margin: 0 auto 2.75rem; }
.t-footer-brand { margin-bottom: .9rem; color: #fff; text-transform: uppercase; font-weight: 900; font-stretch: 75%; font-size: 2.3rem; line-height: 1; }
.t-footer-desc { max-width: 380px; font-size: .86rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.t-footer-payments { display: flex; gap: .9rem; margin-top: 1.3rem; font-size: 1.25rem; color: rgba(255,255,255,.5); }
.t-footer-col-title { margin-bottom: 1rem; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.t-footer-link { display: block; width: fit-content; margin-bottom: .7rem; cursor: pointer; font-size: .86rem; color: rgba(255,255,255,.65); transition: color .15s; }
.t-footer-link:hover { color: #fff; }
.t-footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; max-width: 1440px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .74rem; color: rgba(255,255,255,.45);
}
@media (max-width: 760px) {
  .t-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .t-footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ── TIENDA (catálogo) ── */
.t-breadcrumb { margin-bottom: 1rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t-breadcrumb span[onclick] { cursor: pointer; }
.t-breadcrumb span[onclick]:hover { color: var(--ink); }
.t-catalog-header { padding-block: clamp(1.75rem, 4vw, 3rem) 1.25rem; }
.t-catalog-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.25rem; }
.t-catalog-title { margin: 0; text-transform: uppercase; font-weight: 900; font-stretch: 75%; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .88; }
.t-catalog-count { font-size: .8rem; color: var(--muted); }
.t-catalog-toolbar { position: sticky; top: 64px; z-index: 50; margin-bottom: 1.75rem; background: rgba(255,255,255,.97); border-block: 1px solid var(--line); }
.t-catalog-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.25rem; min-height: 56px; padding-block: .5rem; }
.t-catalog-cats { display: flex; gap: 1.5rem; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.t-catalog-cats::-webkit-scrollbar { display: none; }
.t-cat-chip {
  padding: .4rem 0; border: none; border-bottom: 1.5px solid transparent; background: none; cursor: pointer; white-space: nowrap;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.t-cat-chip:hover { color: var(--ink); }
.t-cat-chip.active { color: var(--ink); border-bottom-color: var(--accent); }
.t-catalog-tools { display: flex; align-items: center; gap: .75rem; }
.t-catalog-search { display: flex; align-items: center; gap: .5rem; width: 210px; padding: .4rem 0; border-bottom: 1px solid var(--line); cursor: text; }
.t-catalog-search i { color: var(--muted); }
.t-catalog-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: .85rem; color: var(--ink); }
.t-catalog-sort { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font-size: .78rem; cursor: pointer; }
#page-catalog .t-productos-grid { padding-bottom: 4rem; }
.t-catalog-empty { padding: 4rem 1rem 6rem; text-align: center; color: var(--muted); }
.t-catalog-empty i { display: block; margin-bottom: 1rem; font-size: 2.4rem; color: var(--gray-200); }
@media (max-width: 760px) {
  .t-catalog-tools { width: 100%; }
  .t-catalog-search { flex: 1; width: auto; }
}

/* ── FICHA DE PRODUCTO ── */
.t-product-wrap { padding-block: 1.5rem clamp(3rem, 6vw, 5rem); }
.t-product-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.t-product-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; }
.t-product-gallery:has(.t-product-thumbs:empty) { grid-template-columns: minmax(0, 1fr); }
.t-product-thumbs { display: flex; flex-direction: column; gap: 8px; }
.t-product-thumbs:empty { display: none; }
.t-product-thumb { aspect-ratio: 3 / 4; overflow: hidden; background: var(--img-bg); cursor: pointer; opacity: .55; outline: 1.5px solid transparent; outline-offset: -1.5px; transition: opacity .2s; }
.t-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-product-thumb:hover, .t-product-thumb.active { opacity: 1; outline-color: var(--accent); }
.t-product-main-img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--img-bg); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--gray-200); }
.t-product-main-img img { width: 100%; height: 100%; object-fit: cover; }
/* Zoom: clic para acercar y recorrer con el mouse; en táctil abre pantalla completa. */
.t-product-main-img.t-zoomable { cursor: zoom-in; position: relative; }
.t-product-main-img.t-zoomable img { transition: transform .25s ease; will-change: transform; }
.t-product-main-img.t-zoom-on { cursor: zoom-out; }
.t-product-main-img.t-zoom-on img { transition: transform .25s ease, transform-origin .05s linear; }
.t-foto-completa { position: fixed; inset: 0; z-index: 2000; display: none; background: #fff; }
.t-foto-completa.open { display: block; }
.t-foto-completa-scroll { width: 100%; height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; }
.t-foto-completa-scroll img { display: block; width: 220vw; max-width: none; height: auto; }
.t-foto-completa-close {
  position: fixed; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.t-product-info { position: sticky; top: 88px; }
/* En computador la foto cabe entera en la pantalla: su alto se limita al alto
   visible (menos barra de anuncios, header y migas) y el ancho sale de la
   proporción 3:4. El texto ocupa el resto, con un ancho cómodo de lectura. */
@media (min-width: 901px) {
  .t-product-grid {
    --foto-h: max(380px, calc(100vh - 215px));
    grid-template-columns: minmax(0, min(58%, calc(var(--foto-h) * .75 + 86px))) minmax(0, 1fr);
  }
  .t-product-grid:has(.t-product-thumbs:empty) { grid-template-columns: minmax(0, min(58%, calc(var(--foto-h) * .75))) minmax(0, 1fr); }
  .t-product-thumbs { max-height: var(--foto-h); overflow-y: auto; scrollbar-width: none; }
  .t-product-thumbs::-webkit-scrollbar { display: none; }
  .t-product-info { max-width: 560px; }
}
.t-product-cat { margin-bottom: .6rem; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.t-product-name { margin-bottom: .9rem; text-transform: uppercase; font-weight: 900; font-stretch: 75%; font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: .92; }
.t-product-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.t-product-price { font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.t-product-price-old { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.t-badge-oferta { padding: .3rem .55rem; background: var(--accent); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.t-product-tallas { margin-bottom: 1rem; }
.t-product-tallas-head { display: flex; justify-content: space-between; margin-bottom: .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.t-product-tallas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.t-talla-btn {
  height: 48px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  font-size: .84rem; font-weight: 700; transition: border-color .15s, background .15s, color .15s;
}
.t-talla-btn:hover:not(:disabled) { border-color: var(--ink); }
.t-talla-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.t-talla-btn:disabled {
  color: var(--gray-600); text-decoration: line-through; cursor: not-allowed;
  background: repeating-linear-gradient(135deg, #fff 0 6px, #f2f2f0 6px 7px);
}
.t-product-tallas.t-shake .t-product-tallas-grid { animation: t-shake .35s ease; }
.t-product-tallas.t-shake .t-talla-btn:not(:disabled) { border-color: var(--danger); }
@keyframes t-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.t-product-stock { min-height: 1.2em; margin-bottom: 1rem; font-size: .8rem; font-weight: 600; }
.t-product-stock--in   { color: var(--success); }
.t-product-stock--low  { color: #b54708; }
.t-product-stock--out  { color: var(--danger); }
.t-product-stock--hint { color: var(--muted); font-weight: 500; }
.t-product-buy { display: flex; gap: 8px; margin-bottom: 1.6rem; }
.t-qty-stepper { display: inline-flex; align-items: center; height: 54px; border: 1px solid var(--line); }
.t-qty-stepper button { width: 42px; height: 100%; border: none; background: #fff; color: var(--ink); cursor: pointer; font-size: 1rem; }
.t-qty-stepper button:hover { background: var(--gray-100); }
.t-qty-stepper span { min-width: 34px; text-align: center; font-weight: 700; font-size: .9rem; }
.t-product-add-btn { flex: 1; height: 54px; padding-inline: 1.25rem; }
.t-product-add-btn:disabled { background: var(--gray-200); color: var(--muted); cursor: not-allowed; }

.t-product-acc { border-top: 1px solid var(--line); }
.t-product-acc:last-of-type { border-bottom: 1px solid var(--line); }
.t-product-acc summary {
  display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 0; list-style: none; cursor: pointer;
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.t-product-acc summary::-webkit-details-marker { display: none; }
.t-product-acc summary::after { content: "+"; font-size: 1.15rem; font-weight: 400; }
.t-product-acc[open] summary::after { content: "−"; }
.t-product-desc { margin: 0 0 1.2rem; font-size: .9rem; line-height: 1.75; white-space: pre-line; color: var(--muted); }
.t-trust-row { display: flex; flex-direction: column; gap: .8rem; padding-bottom: 1.2rem; }
.t-trust-item { display: flex; align-items: center; gap: .7rem; font-size: .86rem; color: var(--muted); }
.t-trust-item i { font-size: 1.05rem; color: var(--ink); }
.t-related-section { margin-top: clamp(3rem, 6vw, 5rem); }
.t-related-section .t-section-title { margin-bottom: 1.5rem; }
@media (max-width: 900px) {
  .t-product-grid { grid-template-columns: 1fr; }
  .t-product-info { position: static; }
  .t-product-gallery { grid-template-columns: minmax(0, 1fr); }
  .t-product-thumbs { order: 2; flex-direction: row; overflow-x: auto; }
  .t-product-thumb { flex: 0 0 64px; }
}

/* ── CARRITO, CHECKOUT Y MODALES (heredados de core.css, en claro) ── */
.toast, .modal, .cart-drawer, .checkout-loading-box, .thankyou-box {
  background: #fff; border-color: var(--line); color: var(--ink); border-radius: 0;
}
.toast-msg { color: var(--ink); }
.modal-close { background: var(--gray-100); color: var(--ink); }
.modal-close:hover { background: var(--ink); color: #fff; }
.cart-drawer-overlay.open, .modal-overlay:not(.hidden) { backdrop-filter: blur(2px); }
.cart-drawer { width: 420px; max-width: 100%; }
.cart-drawer-title { text-transform: uppercase; font-weight: 900; font-stretch: 75%; font-size: 1.8rem; }
.cart-item { gap: 14px; }
.cart-item-img { position: relative; width: 84px; height: 112px; flex-shrink: 0; overflow: hidden; background: var(--img-bg); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.cart-item-talla { margin-bottom: .25rem; font-size: .76rem; color: var(--muted); }
.cart-item-price { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--ink); }
.cart-item-qty { display: flex; align-items: center; gap: .45rem; margin-top: .65rem; }
.cart-item-qty button { width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.cart-item-qty button:hover { border-color: var(--ink); }
.cart-item-qty .cart-item-remove { margin-left: auto; border: none; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total-label { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cart-total-value { font-size: 1.2rem; font-weight: 700; }
.cart-footer-note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .8rem 0 0; font-size: .74rem; color: var(--muted); }
.cart-empty-icon { color: var(--gray-200); }

.btn { border-radius: 0; }
.btn-primary {
  background: var(--accent); color: var(--on-accent); justify-content: center; box-shadow: none;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.btn-primary:hover { background: var(--accent); box-shadow: none; filter: brightness(.88); }
.btn-outline { color: var(--ink); border-color: var(--line); }
.input { background: #fff; border-color: var(--line); color: var(--ink); border-radius: 0; }
.input:focus { border-color: var(--ink); box-shadow: none; }
.input::placeholder { color: var(--gray-600); }
.form-label { color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.checkout-summary { margin-bottom: 20px; padding: 16px; background: var(--gray-100); }
.order-summary-line span:first-child { color: var(--muted); }
.order-summary-line.total span:last-child { color: var(--ink); font-weight: 800; }

/* Consulta de pedido: core.css la pinta oscura; aquí va en claro */
#reference-modal .rf-modal { background: #fff; color: var(--ink); border-color: var(--line); border-radius: 0; }
#reference-modal .rf-close { background: var(--gray-100); border-color: var(--line); color: var(--ink); }
#reference-modal .rf-eyebrow { color: var(--ink); }
#reference-modal .rf-eyebrow-line { background: var(--ink); }
#reference-modal .rf-title { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; color: var(--ink); text-transform: uppercase; }
#reference-modal .rf-desc, #reference-modal .rf-card-sub, #reference-modal .rf-secure { color: var(--muted); }
#reference-modal .rf-card { background: var(--gray-100); border-color: var(--line); border-radius: 0; }
#reference-modal .rf-card-title { color: var(--ink); }
#reference-modal .rf-input { background: #fff; border-color: var(--line); color: var(--ink); border-radius: 0; }
#reference-modal .rf-input::placeholder { color: var(--gray-600); }
#reference-modal .rf-input:focus { border-color: var(--ink); }
#reference-modal .rf-btn { background: var(--accent); color: var(--on-accent); border-radius: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
#reference-modal .rf-error { color: var(--danger); }
.rf-illus-icon { font-size: 7rem; color: var(--gray-200); }

/* Pedido confirmado */
.thankyou-header h2 i { color: var(--success); }
.thankyou-order-items { display: flex; flex-direction: column; gap: .6rem; max-height: 220px; margin: 1.25rem 0; overflow-y: auto; }
.thankyou-order-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem .9rem; background: var(--gray-100); font-size: .85rem; }
.thankyou-order-item span:first-child { color: var(--ink); font-weight: 600; }
.thankyou-order-item span:last-child { color: var(--muted); white-space: nowrap; }
.thankyou-order-total { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.thankyou-order-total strong { font-size: 1.3rem; color: var(--ink); }

.t-hero h1, .t-section-title, .t-product-name, .t-catalog-title { overflow-wrap: break-word; }

/* ── Estado del envío en «Mi pedido» ── */
.t-envio { margin: 1.1rem 0 .6rem; padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--line); background: #fff; text-align: left; }
.t-envio:empty { display: none; }
.t-envio-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.15rem; }
.t-envio-icon { flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1.05rem; }
.t-envio-title { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.t-envio-sub { margin-top: .15rem; font-size: .76rem; color: var(--muted); }
.t-envio-steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.t-envio-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 0 .2rem; text-align: center; font-size: .6rem; font-weight: 700; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-600); }
.t-envio-step::before { content: ""; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--gray-200); }
.t-envio-step:first-child::before { display: none; }
.t-envio-step.done { color: var(--ink); }
.t-envio-step.done::before { background: var(--accent); }
.t-envio-dot { position: relative; z-index: 1; width: 14px; height: 14px; border: 2px solid var(--gray-200); border-radius: 50%; background: #fff; }
.t-envio-step.done .t-envio-dot { border-color: var(--accent); background: var(--accent); }
.t-envio-step.current .t-envio-dot { box-shadow: 0 0 0 4px rgba(0,0,0,.08); transform: scale(1.15); }
.t-envio-guia { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.15rem; padding: .85rem .9rem; background: var(--gray-100); }
.t-envio-guia-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.t-envio-label { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.t-envio-guia strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.02rem; letter-spacing: .04em; color: var(--ink); word-break: break-all; }
.t-envio-acciones { display: flex; flex-wrap: wrap; gap: .45rem; }
.t-envio-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .85rem; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; }
.t-envio-btn:hover { border-color: var(--ink); }
.t-envio-btn--main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.t-envio-btn--main:hover { border-color: var(--accent); filter: brightness(.9); }
.t-envio-hint { margin: .55rem 0 0; font-size: .74rem; color: var(--muted); }
.t-envio-nota { display: flex; gap: .45rem; margin: .8rem 0 0; font-size: .82rem; color: var(--gray-400); }
.t-envio--novedad { border-color: #f0b44c; background: #fffaf0; }
.t-envio--novedad .t-envio-icon { background: #f0b44c; color: #111; }
@media (max-width: 480px) {
  .t-envio-guia { flex-direction: column; align-items: stretch; }
  .t-envio-acciones .t-envio-btn { flex: 1; justify-content: center; }
}

/* Encabezado de «Mi pedido» con la tipografía de la tienda */
.thankyou-header h2 { color: var(--ink); font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 1.9rem; letter-spacing: 0; text-transform: uppercase; }
.thankyou-ref-code { border-radius: 0; background: var(--gray-100); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════
   CATEGORÍAS A ESCALA · COLECCIONES · FILTROS · CÓDIGO · CHECKOUT
   ═══════════════════════════════════════════════════════════════ */

/* ── Mega menú de categorías ── */
.t-nav-link--mega i { margin-left: .2rem; font-size: .62rem; transition: transform .2s; }
.t-nav-link--mega.active i { transform: rotate(180deg); }
.t-mega {
  position: absolute; left: 0; right: 0; top: 100%; display: none;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(0,0,0,.35);
}
.t-mega.open { display: block; animation: t-drop .2s ease; }
.t-mega-inner { max-width: 1440px; max-height: calc(100vh - 110px); margin: 0 auto; padding: 1.4rem var(--gutter) 1.8rem; overflow-y: auto; }
.t-mega-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.t-mega-search { display: flex; align-items: center; gap: .55rem; flex: 0 1 360px; padding: .5rem 0; border-bottom: 1.5px solid var(--ink); cursor: text; }
.t-mega-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: .95rem; color: var(--ink); }
.t-mega-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
.t-mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 2rem; align-content: start; }
.t-mega-cols--flow { display: block; }
.t-mega-flow { columns: 4 190px; column-gap: 2rem; }
.t-mega-flow .t-mega-link { break-inside: avoid; }
.t-mega-title { margin-bottom: .7rem; font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.t-mega-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; width: 100%;
  padding: .32rem 0; border: none; background: none; cursor: pointer; text-align: left;
  font-size: .9rem; color: var(--muted); transition: color .15s;
}
.t-mega-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-mega-link small { flex-shrink: 0; font-size: .7rem; color: var(--gray-600); }
.t-mega-link:hover { color: var(--ink); }
.t-mega-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.t-mega-empty { color: var(--muted); font-size: .9rem; }
.t-mega-cols-col { width: 250px; padding-left: 2rem; border-left: 1px solid var(--line); }
.t-mega-col { display: flex; align-items: center; gap: .8rem; width: 100%; margin-bottom: .7rem; padding: 0; border: none; background: none; cursor: pointer; text-align: left; }
.t-mega-col-img { width: 58px; height: 74px; flex-shrink: 0; overflow: hidden; background: var(--img-bg); display: flex; align-items: center; justify-content: center; color: var(--gray-600); }
.t-mega-col-img img { width: 100%; height: 100%; object-fit: cover; }
.t-mega-col-name { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.t-mega-col:hover .t-mega-col-name { text-decoration: underline; }
.t-mega-backdrop { position: fixed; inset: 0; z-index: 90; display: none; background: rgba(0,0,0,.28); }
.t-mega-backdrop.open { display: block; }
@media (max-width: 900px) {
  .t-mega-inner { max-height: calc(100vh - 64px); padding-top: 1rem; }
  .t-mega-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .t-mega-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .t-mega-flow { columns: 2; column-gap: 1rem; }
  .t-mega-cols-col { width: auto; padding: 1.25rem 0 0; border-left: none; border-top: 1px solid var(--line); }
  .t-mega-top .t-mega-search { flex: 1; }
}

/* ── Categorías en portada: pestañas por grupo + carrusel ── */
.t-rail-controls { display: flex; align-items: center; gap: .5rem; }
.t-rail-btn {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s, opacity .15s;
}
.t-rail-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.t-rail-btn:disabled { opacity: .3; cursor: default; }
.t-rail-controls .t-link-arrow { margin-left: .75rem; }
.t-cat-tabs { display: flex; gap: 1.6rem; margin-bottom: 1.1rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.t-cat-tabs::-webkit-scrollbar { display: none; }
.t-cat-tab {
  padding: .55rem 0; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; cursor: pointer; white-space: nowrap;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.t-cat-tab:hover { color: var(--ink); }
.t-cat-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.t-categorias-grid--rail {
  display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 30px) / 4);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.t-categorias-grid--rail::-webkit-scrollbar { display: none; }
.t-categorias-grid--rail .t-categoria-card { aspect-ratio: 3 / 4; scroll-snap-align: start; }
.t-categoria-grupo { font-size: .62rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
@media (max-width: 1100px) { .t-categorias-grid--rail { grid-auto-columns: calc((100% - 20px) / 3); } }
@media (max-width: 760px) {
  .t-categorias-grid.t-categorias-grid--rail { grid-template-columns: none; grid-auto-columns: 58%; gap: 6px; }
  .t-rail-btn { display: none; }
}

/* ── Colecciones ── */
.t-editorial { scroll-margin-top: 80px; }
.t-editorial-media--link { cursor: pointer; }
.t-editorial-thumbs { display: flex; gap: 8px; margin: -.4rem 0 1.8rem; }
.t-editorial-thumb { width: 64px; height: 84px; padding: 0; border: 1px solid var(--line); background: var(--img-bg); overflow: hidden; cursor: pointer; }
.t-editorial-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.t-editorial-thumb:hover img { transform: scale(1.06); }
#colecciones-section { scroll-margin-top: 64px; }
/* Sin bloque grande entre medio, Categorías y Colecciones no suman dos márgenes. */
#categorias-section:not(.hidden) ~ #t-editorial.hidden + #colecciones-section { padding-top: 0; }
/* Tarjetas en 16:9 (proporción del banner): la foto no se recorta. Con una o dos
   colecciones las tarjetas no se estiran a todo el ancho. */
.t-colecciones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.t-coleccion-card {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; padding: 0; border: none;
  background: var(--img-bg); cursor: pointer; text-align: left; color: #fff;
}
.t-coleccion-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--gray-200); }
.t-coleccion-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.t-coleccion-card:hover .t-coleccion-img img { transform: scale(1.05); }
.t-coleccion-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.62) 100%); pointer-events: none; }
.t-coleccion-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; }
.t-coleccion-eyebrow { font-size: .64rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.t-coleccion-name { font-weight: 900; font-stretch: 75%; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: .92; text-transform: uppercase; }
@media (max-width: 760px) {
  .t-colecciones-grid { gap: 6px; }
}

/* Portada de colección dentro de la tienda */
.t-col-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--off-white); }
.t-col-hero-media { aspect-ratio: 16 / 9; background-color: #1a1a1a; background-size: cover; background-position: center; }
.t-col-hero-media--vacia { background: var(--ink); }
.t-col-hero-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2rem, 5vw, 4.5rem); }
.t-col-hero-body .t-catalog-title { margin-bottom: 1rem; }
.t-col-hero-body p { max-width: 460px; margin: 0; line-height: 1.65; }
@media (max-width: 860px) {
  .t-col-hero { grid-template-columns: 1fr; min-height: 0; }
  .t-col-hero-media { aspect-ratio: 16 / 9; }
  .t-col-hero-body { padding-block: 1.75rem 1.5rem; }
}

/* ── Tienda: filtros laterales ── */
.t-catalog-controls { justify-content: flex-start; }
.t-catalog-controls .t-catalog-count { margin-right: auto; }
.t-filter-btn {
  display: none; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.t-filter-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .62rem; display: inline-flex; align-items: center; justify-content: center; }
.t-catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
#page-catalog .t-catalog-main .t-productos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 4rem; }
@media (min-width: 1500px) { #page-catalog .t-catalog-main .t-productos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.t-filtros {
  position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; padding: 0 .4rem 2rem 0;
  scrollbar-width: thin; scrollbar-color: var(--gray-200) transparent;
}
.t-filtros-head, .t-filtros-ver, .t-filtros-backdrop { display: none; }
.t-filtros-activos { display: flex; flex-wrap: wrap; gap: .4rem; }
.t-filtros-activos:not(:empty) { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.t-filtro-chip {
  display: inline-flex; align-items: center; gap: .2rem; padding: .32rem .55rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  font-size: .72rem; font-weight: 600;
}
.t-filtro-clear { border: none; background: none; cursor: pointer; padding: .32rem .2rem; font-size: .72rem; color: var(--muted); text-decoration: underline; }
.t-filtros-block { padding: 0 0 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.t-filtros-title { margin-bottom: .6rem; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.t-filtros-search { display: flex; align-items: center; gap: .45rem; margin-bottom: .55rem; padding: .45rem .6rem; border: 1px solid var(--line); cursor: text; }
.t-filtros-search i { font-size: .8rem; color: var(--muted); }
.t-filtros-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: .84rem; color: var(--ink); }
.t-filtro-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; width: 100%;
  padding: .38rem 0 .38rem .7rem; border: none; border-left: 2px solid transparent; background: none; cursor: pointer; text-align: left;
  font-size: .87rem; color: var(--muted); transition: color .15s, border-color .15s;
}
.t-filtro-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-filtro-item small { flex-shrink: 0; font-size: .7rem; color: var(--gray-600); }
.t-filtro-item:hover { color: var(--ink); }
.t-filtro-item.active { color: var(--ink); font-weight: 700; border-left-color: var(--accent); }
.t-filtro-grupo { border-top: 1px solid var(--line); }
.t-filtro-grupo summary {
  display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; cursor: pointer; list-style: none;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.t-filtro-grupo summary::-webkit-details-marker { display: none; }
.t-filtro-grupo summary::after { content: "+"; font-size: 1rem; font-weight: 400; line-height: 1; }
.t-filtro-grupo[open] summary::after { content: "−"; }
.t-filtro-grupo summary small { margin-left: .4rem; margin-right: auto; font-size: .66rem; font-weight: 600; color: var(--gray-600); letter-spacing: 0; }
.t-filtro-grupo .t-filtro-item:last-child { margin-bottom: .5rem; }
.t-filtros-empty { margin: .4rem 0; font-size: .82rem; color: var(--muted); }
.t-filtros-check { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; cursor: pointer; font-size: .87rem; color: var(--ink); }
.t-filtros-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.t-catalog-empty .t-link-arrow { margin-top: 1rem; }
body.t-no-scroll { overflow: hidden; }
@media (max-width: 900px) {
  .t-filter-btn { display: inline-flex; }
  .t-catalog-layout { grid-template-columns: minmax(0, 1fr); }
  #page-catalog .t-catalog-main .t-productos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-filtros {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1200; width: min(360px, 88vw); max-height: none;
    padding: 0 1.25rem; background: #fff; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
    display: flex; flex-direction: column;
  }
  .t-filtros.open { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .t-filtros-head {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1;
    margin: 0 -1.25rem 1rem; padding: 1rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line);
    font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  }
  .t-filtros-head button { border: none; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
  .t-filtros-ver { display: flex; position: sticky; bottom: 0; margin: auto -1.25rem 0; width: calc(100% + 2.5rem); }
  .t-filtros-backdrop { position: fixed; inset: 0; z-index: 1150; background: rgba(0,0,0,.4); }
  .t-filtros-backdrop.open { display: block; }
  .t-catalog-controls .t-catalog-count { margin-right: 0; }
}
@media (max-width: 760px) {
  .t-catalog-controls { gap: .6rem .9rem; }
  .t-catalog-controls .t-catalog-count { margin-left: auto; }
  .t-catalog-tools { order: 3; }
}

/* ── Carrito: código de descuento y totales ── */
.cart-code { margin-bottom: 1rem; }
.cart-code-input { background: #fff; color: var(--ink); border-color: var(--line); border-radius: 0; font-family: var(--font-body); }
.cart-code-input::placeholder { font-family: var(--font-body); color: var(--gray-600); }
.cart-code-input:focus { border-color: var(--ink); }
.cart-code-btn {
  border-radius: 0; border-color: var(--ink); background: var(--ink); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.cart-code-btn:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.cart-code-msg.ok { color: var(--success); }
.cart-code-msg.err { color: var(--danger); }
.t-code-applied {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px dashed var(--success);
  background: rgba(18,128,92,.06); font-size: .82rem; color: var(--ink);
}
.t-code-applied i { color: var(--success); font-size: 1rem; }
.t-code-applied span { flex: 1; min-width: 0; }
.t-code-applied strong { letter-spacing: .06em; }
.t-code-applied button { border: none; background: none; cursor: pointer; padding: 0; font-size: .75rem; color: var(--muted); text-decoration: underline; }
.t-cart-lines:not(:empty) { margin-bottom: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.t-cart-line { display: flex; justify-content: space-between; padding: .18rem 0; font-size: .84rem; color: var(--muted); }
.t-cart-line--desc { color: var(--success); font-weight: 600; }

/* ── Checkout (estructura de Balceiro, en blanco y negro) ── */
.t-co.co-modal { width: min(980px, 96vw); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 0; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.t-co .co-close { background: var(--gray-100); border-color: var(--line); color: var(--ink); }
.t-co .co-close:hover { background: var(--ink); color: #fff; }
.t-co .co-right { background: var(--off-white); border-left: 1px solid var(--line); }
.t-co .co-head-icon { border-radius: 0; background: var(--accent); color: var(--on-accent); }
.t-co .co-title { color: var(--ink); font-family: var(--font-display); font-weight: 900; font-stretch: 75%; font-size: 2rem; line-height: .95; text-transform: uppercase; letter-spacing: 0; }
.t-co .co-sub { color: var(--muted); }
.t-co .co-callout { background: #fff; border-color: var(--line); border-radius: 0; }
.t-co .co-callout-title { color: var(--ink); }
.t-co .co-callout-body p { color: var(--muted); }
.t-co .co-secure { color: var(--success); }
.t-co .co-section-label { margin-bottom: 2px; color: var(--ink); border-bottom-color: var(--line); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.t-co .co-section-label i { color: var(--ink); }
.t-co .co-section-label--gap { margin-top: .6rem; }
.t-co .co-field label { color: var(--ink); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.t-co .co-input { background: #fff; border-color: var(--line); color: var(--ink); border-radius: 0; }
.t-co .co-input::placeholder { color: var(--gray-600); }
.t-co .co-input:focus { border-color: var(--ink); box-shadow: none; }
.t-co .co-trust { background: rgba(18,128,92,.05); border-color: rgba(18,128,92,.22); border-radius: 0; }
.t-co .co-trust i { color: var(--success); }
.t-co .co-trust strong { color: var(--ink); }
.t-co .co-trust span { color: var(--muted); }
.t-co .co-summary-head { color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.t-co .co-summary-head i { color: var(--ink); font-size: 1rem; }
.t-co .co-summary-line { color: var(--muted); border-top-color: var(--line); }
.t-co .co-summary-line + .co-summary-line { margin-top: -8px; padding-top: 0; border-top: none; }
.t-co .co-summary-total { border-top-color: var(--ink); }
.t-co .co-total-label { color: var(--ink); text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; }
.t-co .co-total-cur { color: var(--muted); }
.t-co .co-total-val { color: var(--ink); font-size: 1.7rem; }
.t-co .co-pay-badge { background: #fff; border-color: var(--line); border-radius: 0; }
.t-co .co-pay-badge-title { color: var(--ink); }
.t-co .co-bold-logo { border-radius: 0; background: var(--ink); color: #fff; }
.t-co .co-pay-logos .co-pm { border-radius: 0; }
.t-co .co-points strong { color: var(--ink); }
.t-co .co-points span { color: var(--muted); }
.t-co .co-points li i { color: var(--ink); }
.t-co .co-pay-btn { border-radius: 0; background: var(--accent); color: var(--on-accent); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; padding: 17px; }
.t-co .co-legal { color: var(--muted); }
.t-co-items { display: flex; flex-direction: column; gap: 14px; max-height: 250px; margin-right: -8px; padding: 8px 8px 2px 0; overflow-y: auto; }
.t-co-item { display: flex; align-items: center; gap: 12px; }
.t-co-thumb { position: relative; width: 54px; height: 70px; flex-shrink: 0; background: var(--img-bg); display: flex; align-items: center; justify-content: center; color: var(--gray-600); }
.t-co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-co-qty {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .66rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.t-co-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.t-co-item-name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .76rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.t-co-item-meta { font-size: .74rem; color: var(--muted); }
.t-co-item-price { flex-shrink: 0; font-size: .86rem; font-weight: 700; color: var(--ink); }
.t-co .t-co-desc { color: var(--success); font-weight: 600; }
.t-co-desc i { margin-right: .2rem; }
.t-co-muted { font-size: .78rem; color: var(--gray-600); }
@media (max-width: 760px) {
  .t-co .co-right { border-left: none; border-top: 1px solid var(--line); }
  .t-co .co-title { font-size: 1.7rem; }
}
