/* ==========================================================================
   SOLINEX MINING — Tienda
   --------------------------------------------------------------------------
   El azul de Solinex es la marca y se respeta, pero una tienda de ferretería
   necesita un color que grite "compra": el ámbar de los botones. Ese contraste
   es el que usan Ripley, Promart o Sodimac, y es el que hace que el ojo sepa
   dónde tocar sin pensarlo.

   Las variables --sx-* vienen de global.css. Aquí sólo se añade el acento.
   ========================================================================== */

:root {
  --tnd-accion: #F08A00;         /* el botón de comprar */
  --tnd-accion-osc: #D97706;
  --tnd-accion-suave: #FFF4E3;
  --tnd-tinta: #131820;
}

.tnd-wrap { background: var(--sx-gris-50); padding: 0 0 64px; }

/* ==========================================================================
   1. Portada
   ========================================================================== */
.tnd-head { background: linear-gradient(135deg, #0B1E3F 0%, #14315E 55%, #1B3D6E 100%); color: #fff; padding: 38px 0 32px; position: relative; overflow: hidden; }
/* Trama diagonal tenue: da textura sin robarle protagonismo al producto. */
.tnd-head::after { content: ''; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 14px); }
.tnd-head > * { position: relative; z-index: 1; }

.tnd-head h1 { font-family: var(--sx-font-display); font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 10px; line-height: 1.12; color: #fff; -webkit-text-fill-color: #fff; background: none; }
.tnd-head h1 em { font-style: normal; color: #FFC163; }
.tnd-head p { margin: 0; max-width: 660px; color: #C4D8EE; font-size: 1rem; line-height: 1.55; }

.tnd-sellos { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.tnd-sello { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: 7px 13px; border-radius: 999px; font-size: .81rem; font-weight: 500; }
.tnd-sello svg { width: 15px; height: 15px; flex: 0 0 15px; }

.tnd-sectores { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tnd-sector { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.88); padding: 5px 11px; border-radius: 5px; font-size: .78rem; }
.tnd-sector svg { width: 13px; height: 13px; opacity: .75; flex: 0 0 13px; }

/* --- Barra de confianza --------------------------------------------------- */
.tnd-confianza { background: #0A1832; border-top: 1px solid rgba(255,255,255,.09); }
.tnd-confianza-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.07); }
@media (max-width: 780px) { .tnd-confianza-in { grid-template-columns: repeat(2, 1fr); } }
.tnd-conf { background: #0A1832; padding: 15px 18px; display: flex; align-items: center; gap: 11px; }
.tnd-conf svg { width: 21px; height: 21px; color: #FFC163; flex: 0 0 21px; }
.tnd-conf b { display: block; color: #fff; font-size: .83rem; font-weight: 600; line-height: 1.2; }
.tnd-conf span { color: rgba(255,255,255,.55); font-size: .73rem; }

/* ==========================================================================
   2. Secciones
   ========================================================================== */
.tnd-seccion { padding: 34px 0 6px; }
.tnd-seccion-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.tnd-seccion h2 { font-family: var(--sx-font-display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); margin: 0; color: var(--tnd-tinta); position: relative; padding-left: 14px; }
/* Barra ámbar a la izquierda del título: ancla la vista al empezar la sección. */
.tnd-seccion h2::before { content: ''; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 3px; background: var(--tnd-accion); }
.tnd-seccion p { margin: 5px 0 0 14px; color: var(--sx-gris-500); font-size: .88rem; }
.tnd-vertodo { background: none; border: 0; color: var(--sx-azul-600); font: inherit; font-size: .87rem; font-weight: 700; cursor: pointer; padding: 4px 2px; white-space: nowrap; }
.tnd-vertodo:hover { color: var(--sx-azul-800); text-decoration: underline; }

/* ==========================================================================
   3. Rubros
   ========================================================================== */
.tnd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 13px; }
.tnd-cat { position: relative; display: block; border-radius: var(--sx-radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--sx-gris-200); padding: 0; cursor: pointer; text-align: left; aspect-ratio: 4/3; font: inherit; transition: var(--sx-transition); }
.tnd-cat:hover { transform: translateY(-3px); box-shadow: var(--sx-shadow-lg); border-color: var(--tnd-accion); }
.tnd-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 20px 20px 48px; background: #fff; transition: transform .35s; }
.tnd-cat:hover img { transform: scale(1.07); }
.tnd-cat-pie { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(11,30,63,.95) 40%); padding: 26px 12px 10px; }
.tnd-cat-pie b { display: block; color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.tnd-cat-pie span { color: #FFC163; font-size: .71rem; font-weight: 600; }

/* ==========================================================================
   4. Carrusel horizontal
   ========================================================================== */
.tnd-carril { position: relative; }
/* Ancho fijo, no 1fr: con "1fr" las tarjetas se encogen para caber en el
   contenedor y el carrusel nunca desborda, asi que las flechas no hacen
   nada. Con ancho fijo desbordan y el desplazamiento funciona. */
.tnd-tira { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 13px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; padding: 4px 2px 14px; scrollbar-width: thin; }
.tnd-tira > * { scroll-snap-align: start; }
.tnd-tira::-webkit-scrollbar { height: 7px; }
.tnd-tira::-webkit-scrollbar-thumb { background: var(--sx-gris-300); border-radius: 4px; }
.tnd-flecha { position: absolute; top: 42%; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sx-gris-200); background: #fff; color: var(--sx-gris-700); cursor: pointer; box-shadow: var(--sx-shadow-md); display: flex; align-items: center; justify-content: center; transition: var(--sx-transition); }
.tnd-flecha:hover { background: var(--tnd-accion); color: #fff; border-color: var(--tnd-accion); }
.tnd-flecha svg { width: 17px; height: 17px; }
.tnd-flecha.izq { left: -14px; }
.tnd-flecha.der { right: -14px; }
@media (max-width: 900px) { .tnd-flecha { display: none; } }

/* ==========================================================================
   5. Tarjeta de producto
   ========================================================================== */
.tnd-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }
.tnd-card { background: #fff; border: 1px solid var(--sx-gris-200); border-radius: var(--sx-radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: var(--sx-transition); position: relative; }
.tnd-card:hover { border-color: var(--tnd-accion); box-shadow: 0 8px 22px rgba(11,30,63,.11); transform: translateY(-3px); }
.tnd-foto { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.tnd-foto img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s; }
.tnd-card:hover .tnd-foto img { transform: scale(1.05); }
.tnd-foto .tnd-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--sx-gris-400); }
.tnd-foto .tnd-ph svg { width: 40px; height: 40px; opacity: .5; }
.tnd-foto .tnd-ph span { font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; }

.tnd-etq { position: absolute; top: 9px; left: 9px; background: var(--sx-verde-600); color: #fff; font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: .02em; text-transform: uppercase; }
.tnd-etq.pocas { background: #C2410C; }

.tnd-cuerpo { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; }
.tnd-marca { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--sx-azul-600); font-weight: 800; margin-bottom: 4px; }
.tnd-nombre { font-size: .855rem; font-weight: 600; color: var(--tnd-tinta); line-height: 1.32; margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tnd-modelo { font-size: .72rem; color: var(--sx-gris-400); margin-bottom: 9px; font-variant-numeric: tabular-nums; }
.tnd-precio { margin-top: auto; }
.tnd-pvp { font-family: var(--sx-font-display); font-size: 1.32rem; font-weight: 800; color: var(--tnd-tinta); line-height: 1.05; letter-spacing: -.01em; }
.tnd-igv { font-size: .7rem; color: var(--sx-gris-500); margin-top: 1px; }
.tnd-entrega { font-size: .73rem; color: var(--sx-verde-700); margin-top: 6px; display: flex; align-items: center; gap: 5px; font-weight: 600; }
.tnd-entrega svg { width: 12px; height: 12px; flex: 0 0 12px; }

.tnd-acc { display: flex; gap: 6px; margin-top: 11px; }
.tnd-add { flex: 1; padding: 10px; background: var(--tnd-accion); color: #fff; border: 0; border-radius: var(--sx-radius-md); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: var(--sx-transition); }
.tnd-add:hover { background: var(--tnd-accion-osc); }
.tnd-add.ok { background: var(--sx-verde-600); }
.tnd-ver { padding: 10px 11px; background: #fff; border: 1px solid var(--sx-gris-300); border-radius: var(--sx-radius-md); color: var(--sx-gris-600); font: inherit; font-size: .84rem; cursor: pointer; }
.tnd-ver:hover { border-color: var(--tnd-accion); color: var(--tnd-accion-osc); }

/* Tarjeta compacta del carrusel */
.tnd-mini { background: #fff; border: 1px solid var(--sx-gris-200); border-radius: var(--sx-radius-lg); padding: 11px; display: flex; flex-direction: column; cursor: pointer; transition: var(--sx-transition); text-align: left; font: inherit; }
.tnd-mini:hover { border-color: var(--tnd-accion); box-shadow: var(--sx-shadow-md); transform: translateY(-3px); }
.tnd-mini-foto { aspect-ratio: 1; background: #fff; border-radius: var(--sx-radius-md); margin-bottom: 9px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tnd-mini-foto img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.tnd-mini b { font-size: .78rem; font-weight: 600; color: var(--tnd-tinta); line-height: 1.3; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tnd-mini .m { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sx-azul-600); font-weight: 800; margin-bottom: 3px; }
.tnd-mini .p { margin-top: auto; font-family: var(--sx-font-display); font-size: 1.06rem; font-weight: 800; color: var(--tnd-tinta); }

/* ==========================================================================
   6. Marcas
   ========================================================================== */
.tnd-marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 11px; }
.tnd-marca-b { background: #fff; border: 1px solid var(--sx-gris-200); border-radius: var(--sx-radius-md); padding: 15px 10px; text-align: center; cursor: pointer; font: inherit; transition: var(--sx-transition); }
.tnd-marca-b:hover { border-color: var(--tnd-accion); background: var(--tnd-accion-suave); transform: translateY(-2px); }
.tnd-marca-b b { display: block; font-family: var(--sx-font-display); font-size: .93rem; font-weight: 700; color: var(--tnd-tinta); margin-bottom: 2px; }
.tnd-marca-b span { font-size: .72rem; color: var(--sx-gris-500); }

/* ==========================================================================
   7. Cinta de llamada
   ========================================================================== */
.tnd-cinta { background: linear-gradient(115deg, #14315E, #1F4F8B 60%, #2C6BB3); border-radius: var(--sx-radius-lg); padding: 26px 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 32px 0 6px; position: relative; overflow: hidden; }
.tnd-cinta::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,193,99,.13); }
.tnd-cinta > * { position: relative; z-index: 1; }
.tnd-cinta-txt { flex: 1 1 380px; color: #fff; }
.tnd-cinta h3 { font-family: var(--sx-font-display); font-size: 1.28rem; margin: 0 0 6px; color: #fff; -webkit-text-fill-color: #fff; }
.tnd-cinta p { margin: 0; color: rgba(255,255,255,.88); font-size: .9rem; line-height: 1.5; }
.tnd-cinta-btn { flex: 0 0 auto; background: var(--tnd-accion); color: #fff; border: 0; border-radius: var(--sx-radius-md); padding: 14px 28px; font: inherit; font-weight: 700; font-size: .94rem; cursor: pointer; white-space: nowrap; transition: var(--sx-transition); }
.tnd-cinta-btn:hover { background: var(--tnd-accion-osc); transform: translateY(-2px); }

/* ==========================================================================
   8. Buscador, filtros y catálogo
   ========================================================================== */
.tnd-barra { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin: 0 0 20px; }
.tnd-buscar { position: relative; flex: 1 1 300px; min-width: 220px; }
.tnd-buscar input { width: 100%; padding: 13px 14px 13px 42px; border: 2px solid var(--sx-gris-200); border-radius: var(--sx-radius-md); font: inherit; font-size: .94rem; background: #fff; transition: var(--sx-transition); }
.tnd-buscar input:focus { outline: none; border-color: var(--tnd-accion); box-shadow: 0 0 0 3px var(--tnd-accion-suave); }
.tnd-buscar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--sx-gris-400); pointer-events: none; }
.tnd-orden { padding: 13px 14px; border: 2px solid var(--sx-gris-200); border-radius: var(--sx-radius-md); background: #fff; font: inherit; font-size: .89rem; color: var(--sx-gris-700); cursor: pointer; }
.tnd-conteo { font-size: .87rem; color: var(--sx-gris-500); margin-left: auto; font-weight: 600; }

.tnd-cols { display: grid; grid-template-columns: 236px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .tnd-cols { grid-template-columns: 1fr; } }
.tnd-filtros { background: #fff; border: 1px solid var(--sx-gris-200); border-radius: var(--sx-radius-lg); padding: 17px; position: sticky; top: 16px; max-height: calc(100vh - 40px); overflow-y: auto; }
@media (max-width: 900px) { .tnd-filtros { position: static; max-height: none; } }
.tnd-fgrupo + .tnd-fgrupo { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sx-gris-200); }
.tnd-fgrupo h3 { font-family: var(--sx-font-display); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--sx-gris-500); margin: 0 0 10px; }
.tnd-fop { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .86rem; color: var(--sx-gris-700); cursor: pointer; line-height: 1.3; }
.tnd-fop:hover { color: var(--tnd-accion-osc); }
.tnd-fop input { accent-color: var(--tnd-accion); width: 15px; height: 15px; flex: 0 0 15px; cursor: pointer; }
.tnd-fop span.n { margin-left: auto; color: var(--sx-gris-400); font-size: .76rem; }
.tnd-limpiar { width: 100%; margin-top: 15px; padding: 9px; background: var(--sx-gris-100); border: 1px solid var(--sx-gris-200); border-radius: var(--sx-radius-md); color: var(--sx-gris-600); font: inherit; font-size: .84rem; cursor: pointer; }
.tnd-limpiar:hover { background: var(--sx-gris-200); }

.tnd-vacio { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--sx-gris-500); }
.tnd-vacio strong { display: block; font-size: 1.05rem; color: var(--sx-gris-700); margin-bottom: 8px; }
.tnd-mas { grid-column: 1/-1; display: flex; justify-content: center; padding: 14px 0 0; }
.tnd-mas button { padding: 13px 32px; background: #fff; border: 2px solid var(--tnd-accion); color: var(--tnd-accion-osc); border-radius: var(--sx-radius-md); font: inherit; font-weight: 700; cursor: pointer; transition: var(--sx-transition); }
.tnd-mas button:hover { background: var(--tnd-accion); color: #fff; }

/* ==========================================================================
   9. Carrito flotante y panel
   ========================================================================== */
.tnd-fab { position: fixed; right: 20px; bottom: 88px; z-index: 900; background: var(--tnd-accion); color: #fff; border: 0; border-radius: 999px; padding: 13px 21px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; box-shadow: 0 8px 24px rgba(240,138,0,.4); display: flex; align-items: center; gap: 9px; transition: var(--sx-transition); }
.tnd-fab:hover { background: var(--tnd-accion-osc); transform: translateY(-2px); }
.tnd-fab[hidden] { display: none; }
.tnd-fab svg { width: 18px; height: 18px; }
.tnd-fab .b { background: #fff; color: var(--tnd-accion-osc); border-radius: 999px; min-width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; font-size: .76rem; font-weight: 800; padding: 0 6px; }

.tnd-panel { position: fixed; inset: 0; z-index: 1200; display: none; }
.tnd-panel.open { display: block; }
.tnd-panel-bg { position: absolute; inset: 0; background: rgba(11,30,63,.5); opacity: 0; transition: opacity .25s; }
.tnd-panel.open .tnd-panel-bg { opacity: 1; }
.tnd-panel-caja { position: absolute; top: 0; right: 0; bottom: 0; width: min(470px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); }
.tnd-panel.open .tnd-panel-caja { transform: translateX(0); }
.tnd-panel-top { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--sx-gris-200); flex: 0 0 auto; }
.tnd-panel-top h2 { font-family: var(--sx-font-display); font-size: 1.08rem; margin: 0; color: var(--tnd-tinta); }
.tnd-cerrar { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--sx-gris-500); cursor: pointer; padding: 0 4px; }
.tnd-cerrar:hover { color: var(--tnd-tinta); }
.tnd-panel-cuerpo { flex: 1; overflow-y: auto; padding: 18px 22px; }
.tnd-panel-pie { flex: 0 0 auto; border-top: 1px solid var(--sx-gris-200); padding: 17px 22px; background: var(--sx-gris-50); }

.tnd-linea { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--sx-gris-100); }
.tnd-linea-foto { width: 56px; height: 56px; flex: 0 0 56px; background: #fff; border: 1px solid var(--sx-gris-200); border-radius: var(--sx-radius-sm); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tnd-linea-foto img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.tnd-linea-foto svg { width: 22px; height: 22px; color: var(--sx-gris-400); }
.tnd-linea-txt { flex: 1; min-width: 0; }
.tnd-linea-txt b { display: block; font-size: .84rem; font-weight: 600; color: var(--tnd-tinta); line-height: 1.3; }
.tnd-linea-txt small { color: var(--sx-gris-500); font-size: .74rem; }
.tnd-cant { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.tnd-cant button { width: 25px; height: 25px; border: 1px solid var(--sx-gris-300); background: #fff; border-radius: var(--sx-radius-sm); cursor: pointer; font-size: 1rem; line-height: 1; color: var(--sx-gris-600); }
.tnd-cant button:hover { border-color: var(--tnd-accion); color: var(--tnd-accion-osc); }
.tnd-cant span { min-width: 26px; text-align: center; font-size: .87rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tnd-cant .quitar { margin-left: auto; border: 0; color: var(--sx-error); font-size: .77rem; background: none; width: auto; padding: 0 2px; }
.tnd-linea-pre { text-align: right; font-weight: 800; font-size: .9rem; color: var(--tnd-tinta); white-space: nowrap; font-variant-numeric: tabular-nums; }

.tnd-tot { display: flex; justify-content: space-between; padding: 5px 0; font-size: .88rem; color: var(--sx-gris-600); }
.tnd-tot.grande { font-size: 1.18rem; font-weight: 800; color: var(--tnd-tinta); padding-top: 11px; margin-top: 7px; border-top: 1px solid var(--sx-gris-300); font-family: var(--sx-font-display); }
.tnd-tot b { font-variant-numeric: tabular-nums; }
.tnd-envio-libre { background: var(--sx-verde-100); color: var(--sx-verde-700); border-radius: var(--sx-radius-md); padding: 9px 12px; font-size: .8rem; margin-bottom: 12px; line-height: 1.4; }

.tnd-campo { margin-bottom: 13px; }
.tnd-campo label { display: block; font-size: .79rem; font-weight: 700; color: var(--sx-gris-600); margin-bottom: 5px; }
.tnd-campo input, .tnd-campo select, .tnd-campo textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--sx-gris-300); border-radius: var(--sx-radius-md); font: inherit; font-size: .9rem; background: #fff; }
.tnd-campo input:focus, .tnd-campo select:focus, .tnd-campo textarea:focus { outline: none; border-color: var(--tnd-accion); box-shadow: 0 0 0 3px var(--tnd-accion-suave); }
.tnd-campo .err { color: var(--sx-error); font-size: .75rem; margin-top: 4px; display: none; }
.tnd-campo.malo input, .tnd-campo.malo select { border-color: var(--sx-error); }
.tnd-campo.malo .err { display: block; }
.tnd-dosc { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.tnd-btn { width: 100%; padding: 14px; background: var(--tnd-accion); color: #fff; border: 0; border-radius: var(--sx-radius-md); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; transition: var(--sx-transition); }
.tnd-btn:hover { background: var(--tnd-accion-osc); }
.tnd-btn:disabled { background: var(--sx-gris-300); cursor: not-allowed; }
.tnd-btn.verde { background: var(--sx-verde-600); }
.tnd-btn.verde:hover { background: var(--sx-verde-700); }
.tnd-btn2 { width: 100%; padding: 11px; background: #fff; color: var(--sx-gris-600); border: 1px solid var(--sx-gris-300); border-radius: var(--sx-radius-md); font: inherit; font-size: .87rem; cursor: pointer; margin-top: 9px; }
.tnd-btn2:hover { border-color: var(--tnd-accion); color: var(--tnd-accion-osc); }

.tnd-ficha-foto { aspect-ratio: 4/3; background: #fff; border: 1px solid var(--sx-gris-200); border-radius: var(--sx-radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; overflow: hidden; }
.tnd-ficha-foto img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.tnd-ficha-foto svg { width: 56px; height: 56px; color: var(--sx-gris-300); }
.tnd-ficha h3 { font-family: var(--sx-font-display); font-size: 1.14rem; margin: 0 0 6px; color: var(--tnd-tinta); line-height: 1.3; }
.tnd-ficha-pre { font-family: var(--sx-font-display); font-size: 1.8rem; font-weight: 800; color: var(--tnd-tinta); margin: 14px 0 3px; }
.tnd-specs { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .86rem; }
.tnd-specs td { padding: 8px 0; border-bottom: 1px solid var(--sx-gris-100); vertical-align: top; }
.tnd-specs td:first-child { color: var(--sx-gris-500); width: 45%; padding-right: 12px; }
.tnd-specs td:last-child { color: var(--tnd-tinta); font-weight: 600; }

.tnd-aviso { font-size: .77rem; color: var(--sx-gris-500); line-height: 1.5; margin-top: 14px; }
.tnd-ok { text-align: center; padding: 28px 12px; }
.tnd-ok svg { width: 54px; height: 54px; color: var(--sx-verde-600); margin-bottom: 14px; }
.tnd-ok h3 { font-family: var(--sx-font-display); font-size: 1.25rem; margin: 0 0 10px; color: var(--tnd-tinta); }
.tnd-ok p { color: var(--sx-gris-600); font-size: .92rem; line-height: 1.55; margin: 0 0 8px; }
.tnd-ok .cod { display: inline-block; background: var(--tnd-accion-suave); border: 1px dashed var(--tnd-accion); color: var(--tnd-accion-osc); padding: 9px 16px; border-radius: var(--sx-radius-md); font-weight: 800; letter-spacing: .04em; margin: 12px 0; }

.tnd-pago-op { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 2px solid var(--sx-gris-200); border-radius: var(--sx-radius-md); margin-bottom: 10px; cursor: pointer; transition: var(--sx-transition); }
.tnd-pago-op:hover { border-color: var(--tnd-accion); }
.tnd-pago-op.sel { border-color: var(--tnd-accion); background: var(--tnd-accion-suave); }
.tnd-pago-op input { margin-top: 3px; accent-color: var(--tnd-accion); }
.tnd-pago-op b { display: block; font-size: .89rem; color: var(--tnd-tinta); margin-bottom: 3px; }
.tnd-pago-op small { color: var(--sx-gris-500); font-size: .78rem; line-height: 1.45; display: block; }

/* Datos bancarios: se muestran en el momento, no "te los enviamos por
   correo". Cada espera entre el sí del cliente y el pago enfría la venta. */
.tnd-banco { background: var(--sx-azul-50); border: 1px solid var(--sx-azul-200); border-radius: var(--sx-radius-md); padding: 13px 15px; margin: 14px 0; text-align: left; }
.tnd-banco-fila { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .85rem; border-bottom: 1px solid var(--sx-azul-100); }
.tnd-banco-fila:last-child { border-bottom: 0; }
.tnd-banco-fila span { color: var(--sx-gris-500); flex: 0 0 auto; }
.tnd-banco-fila b { color: var(--sx-azul-900); font-variant-numeric: tabular-nums; text-align: right; }

/* ==========================================================================
   10. Móvil
   ========================================================================== */
@media (max-width: 560px) {
  .tnd-rejilla { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tnd-cuerpo { padding: 10px; }
  .tnd-nombre { font-size: .79rem; }
  .tnd-pvp { font-size: 1.06rem; }
  .tnd-ver { display: none; }
  .tnd-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tnd-marcas { grid-template-columns: repeat(3, 1fr); }
  .tnd-cinta { padding: 20px; }
  .tnd-cinta-btn { width: 100%; }
}

/* ==========================================================================
   11. Arreglos de móvil (auditoría a 390 px sobre la web publicada)
   ========================================================================== */

/* --- Los filtros sepultaban la tienda ------------------------------------
   En una sola columna, la barra de filtros va antes que los productos. Con
   294 casillas (11 rubros + 283 marcas) eso son 8.377 px: catorce pantallas
   de casillas antes de ver el primer artículo. En el teléfono nadie llega.

   Se esconden detrás de un botón y se abren como panel a pantalla completa,
   que es como lo resuelve cualquier tienda seria. */
.tnd-filtro-btn { display: none; }

@media (max-width: 900px) {
  .tnd-filtro-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px; margin-bottom: 14px;
    background: #fff; border: 2px solid var(--sx-gris-200);
    border-radius: var(--sx-radius-md); font: inherit; font-size: .9rem;
    font-weight: 700; color: var(--sx-gris-700); cursor: pointer;
  }
  .tnd-filtro-btn svg { width: 16px; height: 16px; }
  .tnd-filtro-btn .cuantos {
    background: var(--tnd-accion); color: #fff; border-radius: 999px;
    min-width: 20px; height: 20px; display: inline-flex; align-items: center;
    justify-content: center; font-size: .72rem; padding: 0 6px;
  }

  .tnd-filtros {
    position: fixed; inset: 0; z-index: 1300; margin: 0; border-radius: 0;
    border: 0; max-height: none; overflow-y: auto;
    padding: 16px 18px 90px;
    transform: translateY(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
    visibility: hidden;
  }
  .tnd-filtros.abierto { transform: translateY(0); visibility: visible; }

  /* Cabecera y botón de cerrar dentro del panel */
  .tnd-filtros-top {
    display: flex; align-items: center; justify-content: space-between;
    margin: -16px -18px 14px; padding: 15px 18px;
    border-bottom: 1px solid var(--sx-gris-200); position: sticky; top: -16px;
    background: #fff; z-index: 2;
  }
  .tnd-filtros-top b { font-family: var(--sx-font-display); font-size: 1.05rem; color: var(--tnd-tinta); }
  .tnd-filtros-cerrar { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--sx-gris-500); cursor: pointer; padding: 0 4px; }

  .tnd-filtros-aplicar {
    position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px;
    background: #fff; border-top: 1px solid var(--sx-gris-200); z-index: 3;
  }
  .tnd-filtros-aplicar button {
    width: 100%; padding: 14px; background: var(--tnd-accion); color: #fff;
    border: 0; border-radius: var(--sx-radius-md); font: inherit;
    font-weight: 700; font-size: .95rem; cursor: pointer;
  }
}
@media (min-width: 901px) {
  .tnd-filtros-top, .tnd-filtros-aplicar { display: none; }
}

/* --- Texto legible en el teléfono ---------------------------------------
   Había etiquetas a 10,6 px. Bajo 12 px no se lee de un vistazo. */
@media (max-width: 600px) {
  .tnd-mini .m, .tnd-marca { font-size: 12px; }
  .tnd-igv, .tnd-modelo, .tnd-entrega { font-size: 12px; }
  .tnd-fop { font-size: .92rem; }
}

/* --- Zonas que se puedan tocar ------------------------------------------ */
@media (max-width: 900px) {
  .tnd-fop { min-height: 42px; }
  .tnd-fop input { width: 19px; height: 19px; flex: 0 0 19px; }
  .tnd-marca-b { min-height: 64px; }
  .tnd-vertodo { min-height: 40px; display: inline-flex; align-items: center; }
}

/* --- El carrito flotante no debe tapar la última fila -------------------- */
@media (max-width: 900px) {
  .tnd-wrap { padding-bottom: 96px; }
  .tnd-fab { bottom: 16px; right: 14px; }
}
