/* Tienda v2 */
#tienda .t2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
#tienda .t2-card { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; border-radius: 14px; border: 2px solid transparent; background: var(--crema); color: var(--tinta); cursor: pointer; font: inherit; }
#tienda .t2-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #e7e0cd; }
#tienda .t2-card-txt { padding: 8px 10px 10px; display: grid; gap: 1px; }
#tienda .t2-card b { font-size: .9rem; line-height: 1.15; color: var(--verde-noche); }
#tienda .t2-card span span { font-weight: 800; color: var(--verde); }
#tienda .t2-card small { color: var(--tinta-suave); font-size: .72rem; }
#tienda .t2-card[aria-pressed="true"], #tienda .t2-card:hover { border-color: var(--oro); }
#tienda .t2-ficha { position: relative; margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; background: var(--crema); color: var(--tinta); border-radius: var(--radio); padding: clamp(14px, 3vw, 28px); scroll-margin-top: 120px; }
#tienda .t2-ficha[hidden] { display: none; }
#tienda .t2-x { position: absolute; right: 10px; top: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--verde-noche); color: #fff; font-size: 1.4rem; cursor: pointer; z-index: 3; }
#tienda .t2-main-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #fff; }
#tienda #t2-main { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; cursor: zoom-in; }
#tienda .t2-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(11,61,38,.85); color: #fff; font-size: 26px; cursor: pointer; }
#tienda .t2-izq { left: 8px; }
#tienda .t2-der { right: 8px; }
#tienda .t2-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
#tienda .t2-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; }
#tienda .t2-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
#tienda .t2-thumbs button[aria-pressed="true"] { border-color: var(--verde); }
#tienda .t2-info h3 { margin: 0; font-family: var(--titular); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; color: var(--verde-noche); padding-right: 40px; }
#tienda .t2-precio { margin: 2px 0; font-size: 1.6rem; font-weight: 800; color: var(--verde); }
#tienda .t2-modelo { margin: 0; font-weight: 700; }
#tienda .t2-detalle { margin: 4px 0 14px; font-size: .85rem; color: var(--tinta-suave); }
#tienda .t2-et { margin: 10px 0 6px; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--verde-noche); }
#tienda .t2-vars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#tienda .t2-vars button { display: grid; gap: 4px; padding: 4px 4px 6px; border-radius: 12px; border: 2px solid #e2dccb; background: #fff; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 700; text-align: center; }
#tienda .t2-vars img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
#tienda .t2-vars button[aria-pressed="true"] { border-color: var(--verde); box-shadow: 0 0 0 2px var(--verde); }
#tienda .t2-tallas { display: flex; flex-wrap: wrap; gap: 8px; }
#tienda .t2-tallas button { min-width: 46px; padding: 9px 10px; border-radius: 10px; border: 2px solid #e2dccb; background: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
#tienda .t2-tallas button[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }
#tienda .t2-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
#tienda .t2-add .boton { flex: 1; min-height: 50px; font-size: 1.05rem; }
#tienda .t2-cant { display: flex; align-items: center; border: 2px solid #e2dccb; border-radius: 999px; background: #fff; }
#tienda .t2-cant button { width: 42px; height: 46px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
#tienda .t2-cant output { min-width: 26px; text-align: center; font-weight: 800; }
#tienda .t2-aviso { min-height: 1.2em; margin: 8px 0 0; font-weight: 700; color: var(--rojo); }
#tienda .t2-cesta { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
#tienda .t2-fondo { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
#tienda .t2-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--crema); color: var(--tinta); padding: 18px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 10px; }
#tienda .t2-cesta.abierta { pointer-events: auto; }
#tienda .t2-cesta.abierta .t2-fondo { opacity: 1; }
#tienda .t2-cesta.abierta .t2-panel { transform: none; }
#tienda .t2-panel-cab { position: relative; }
#tienda .t2-panel-cab h3 { margin: 0; font-family: var(--titular); font-weight: 400; text-transform: uppercase; color: var(--verde-noche); font-size: 1.6rem; }
#tienda .t2-panel-cab .t2-x { top: -4px; right: 0; }
#tienda .t2-lista, #tienda .t2-cruce { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#tienda .t2-lista li, #tienda .t2-cruce li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px; font-size: .86rem; }
#tienda .t2-lista img, #tienda .t2-cruce img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
#tienda .t2-lista small { display: block; color: var(--tinta-suave); }
#tienda .t2-mini { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
#tienda .t2-mini button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d6cfbd; background: var(--crema); cursor: pointer; }
#tienda .t2-mini .t2-quitar { width: auto; border-radius: 999px; padding: 0 10px; font-size: .74rem; }
#tienda .t2-vacio { display: block !important; text-align: center; color: var(--tinta-suave); }
#tienda .t2-cruce button { border: 0; border-radius: 999px; background: var(--verde); color: #fff; font-weight: 700; padding: 8px 12px; cursor: pointer; }
#tienda .t2-cruce span { display: block; color: var(--verde); font-weight: 800; }
#tienda .t2-total { display: flex; justify-content: space-between; font-size: 1.1rem; padding: 6px 2px; border-top: 2px solid #e2dccb; }
#tienda .t2-total b { color: var(--verde); font-size: 1.4rem; }
#tienda .t2-pagar { min-height: 52px; font-size: 1.05rem; }
#tienda .t2-pagar[disabled] { opacity: .5; cursor: not-allowed; }
#tienda .t2-seguir { border: 2px solid var(--verde); background: none; color: var(--verde); border-radius: 999px; padding: 12px; font: inherit; font-weight: 800; cursor: pointer; }
#tienda .t2-pie { font-size: .74rem; color: var(--tinta-suave); }
#tienda .t2-flota { position: fixed; right: 14px; bottom: 14px; z-index: 150; border: 0; background: var(--oro); color: var(--verde-noche); font: inherit; font-weight: 800; padding: 14px 20px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.3); cursor: pointer; }
#tienda .t2-zoom { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9); display: grid; place-items: center; cursor: zoom-out; }
#tienda .t2-zoom[hidden] { display: none; }
#tienda .t2-zoom img { max-width: 94vw; max-height: 92vh; }
@media (max-width: 860px) {
#tienda .t2-ficha { grid-template-columns: 1fr; }
#tienda .t2-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
#tienda .t2-flota[hidden] { display: none !important; }
#tienda .t2-cesta { z-index: 100000; }
#tienda .t2-vars button, #tienda .t2-tallas button, #tienda .t2-cant button, #tienda .t2-mini button { color: var(--tinta); }
#tienda .t2-tallas button[aria-pressed="true"] { color: #fff; }
@media (max-width: 860px) {
#tienda .t2-flota { bottom: 84px; }
}
#tienda .t2-card, #tienda .t2-vars button, #tienda .t2-tallas button, #tienda .t2-thumbs button { text-transform: none; letter-spacing: normal; line-height: 1.2; }
#tienda .t2-card img, #tienda .t2-vars img, #tienda .t2-thumbs img { height: auto; max-width: 100%; }
#tienda .t2-vars { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
#tienda .t2-vars button { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; height: auto; line-height: 1.2; font-size: .72rem; }
#tienda .t2-vars button span { display: block; white-space: normal; }
#tienda .t2-info { min-width: 0; }
