/* Diseño 5 · pegamento entre el sistema 10 «Bloques planos» (public/ds) y esta tienda.
   Aquí no entra ningún valor nuevo: cada regla repite una del sistema (se nombra entre corchetes)
   para el marcado propio de la tienda: el carrito que pinta tienda.js, las fotos reales y el logo. */

.saltar { position: absolute; left: -999rem; }
.saltar:focus { left: var(--e4); top: var(--e4); z-index: var(--z-aviso); padding: var(--e2) var(--e4); background: var(--superficie); border: var(--borde); }

/* Marca: emblema «La» + «Cobra» [.topbar .brand; el emblema usa casi todo el alto de la barra] */
.topbar .brand svg { height: 3.75rem; margin-right: calc(-1 * var(--e2)); }
.footer .row svg { height: 3.75rem; width: auto; }

/* Botón del carrito en la barra y en el menú móvil [.topbar-cta a.dark, .topbar-drop a] */
.topbar-cta button { display: flex; align-items: center; padding: var(--e2) var(--e5); font-size: var(--t-lg); border-left: var(--borde); white-space: nowrap; background: #000; color: #fff; transition: background-color var(--dur-200), color var(--dur-200); }
.topbar-cta button:hover { background: var(--acento); color: #000; }
.topbar-drop button { display: flex; justify-content: center; width: 100%; padding: var(--e4); font-size: var(--t-lg); color: #fff; }
.topbar-drop button:hover { background: var(--acento); color: #000; }
.mega a.feat { display: block; align-self: start; }

/* Fotos reales sobre los colores planos del sistema [.product figure, .gallery .main] */
.tono-rosa { background: var(--rosa); } .tono-lila { background: var(--lila); } .tono-verde { background: var(--verde); }
.tono-naranja { background: var(--naranja); } .tono-amarillo { background: var(--amarillo); } .tono-rojo { background: var(--rojo); }
.product figure img { width: 100%; height: 100%; object-fit: contain; padding: var(--e5); }
.product footer { flex-wrap: wrap; } /* [.product footer en pantallas estrechas]: los precios en soles son largos */
.product footer > * { flex-wrap: wrap; }
.product footer > * + * { flex: 0 1 auto; max-width: 100%; min-width: 0; } /* precio anterior + precio no desbordan la tarjeta */
.product h4 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gallery .main { cursor: default; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: var(--e5); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs button[aria-current=true] { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento); } /* [.thumbs button[aria-selected=true]] */

/* Categorías como enlaces dentro de las facetas [.mega a, .crumbs [aria-current]] */
.facets a { display: flex; text-decoration: none; }
.facets a:hover { text-decoration: underline; }
.facets a[aria-current] { font-weight: 700; }
@media (width < 64rem) { .facets { display: none; } } /* en móvil las categorías están en el menú */

/* Ficha */
.precio-ficha { font-size: 1.5rem; height: 2.25rem; margin-right: 1.125rem; } /* [tienda.html: precio de la ficha] */
.precio-ficha::after { height: 2.25rem; width: 1.125rem; }
.precio-ficha::before { height: calc(2.25rem - 2px); width: calc(1.125rem - 1.5px); }
.qty output { width: 2.5rem; text-align: center; } /* [.qty input] */
.puntos { display: grid; gap: var(--e1); padding-left: var(--e5); }
.summary > div > :last-child { text-align: right; }
.acc-body .summary > div + div { border-top: var(--b) solid var(--linea-gris); padding-top: var(--e2); }
.acc-body p + p { margin-top: var(--e2); }

/* Carrito: la hoja del sistema con las clases que maneja tienda.js [.sheet, .cart-line, .qty.sm, .link] */
.telon { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--velo); opacity: 0; pointer-events: none; transition: opacity var(--dur-200); }
.telon.abierto { opacity: 1; pointer-events: auto; }
.hoja { position: fixed; inset: 0; z-index: calc(var(--z-modal) + 1); display: flex; flex-direction: column; gap: var(--e4); overflow: auto; padding: var(--e5); background: var(--superficie); transform: translateX(100%); transition: transform var(--dur-200) var(--curva-out); }
.hoja.abierto { transform: none; }
@media (width >= 48rem) { .hoja { left: auto; width: var(--hoja); border-left: var(--borde); } }
.hoja h2 { font-size: var(--t-2xl); }
.cart { list-style: none; }
.carrito-item { display: flex; gap: var(--e4); padding: var(--e4); }
.carrito-item + .carrito-item { border-top: var(--borde); }
.carrito-foto { flex: none; width: 3.5rem; height: 3.5rem; border: var(--borde); border-radius: var(--r1); overflow: hidden; }
.carrito-foto img { width: 100%; height: 100%; object-fit: contain; }
.carrito-datos { flex: 1; display: grid; gap: var(--e2); }
.carrito-nombre { font-size: var(--t-lg); font-weight: 500; line-height: var(--l-sm); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carrito-precio { font-size: var(--t-sm); color: var(--tinta-suave); }
.carrito-fila { display: flex; align-items: center; justify-content: space-between; gap: var(--e4); }
.carrito-cant { display: inline-flex; align-items: center; height: 2.25rem; border: var(--borde); border-radius: var(--r1); background: var(--superficie); }
.carrito-cant button { width: 2rem; height: 100%; }
.carrito-cant button:hover { background: var(--activo); }
.carrito-cant span { width: 2rem; text-align: center; }
.carrito-quitar { font-size: var(--t-sm); text-decoration: underline; text-underline-offset: .15em; }
