/* Promociones, cantidad y carrito */
.promos { display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 16px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.promos::-webkit-scrollbar { display: none; }
.promos[hidden] { display: none; }
.pbanner { flex: 0 0 min(82%, 340px); scroll-snap-align: start; position: relative; background: var(--pc, var(--yellow)) radial-gradient(rgba(255, 255, 255, .45) 2px, transparent 2.6px) 0 0 / 13px 13px; border: 3px solid var(--ink); border-radius: 24px; box-shadow: var(--pop); padding: 14px 16px 16px; transform: rotate(var(--r, 0deg)); display: grid; gap: 6px; justify-items: start; cursor: pointer; transition: transform .2s var(--ease); overflow: hidden; }
.pbanner:hover { transform: rotate(0) translateY(-3px); }
.pbanner.dk { color: #fff; }
.pbanner.dk h3 { text-shadow: 0 2px 0 var(--ink); }
.pbanner::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40px; background: rgba(255, 255, 255, .45); transform: translateX(-120px) skewX(-20deg); animation: shine 4s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { transform: translateX(-120px) skewX(-20deg); } 100% { transform: translateX(420px) skewX(-20deg); } }
.pbanner h3 { font-size: 25px; line-height: 1.05; font-weight: 700; }
.pbanner p { font-weight: 600; font-size: 15px; }
.ptype { font-weight: 700; font-size: 13px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; text-transform: uppercase; letter-spacing: .04em; box-shadow: 2px 2px 0 var(--ink); }
.pbanner .cd { background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.pbanner .btn { font-size: 15px; padding: 8px 16px; box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
@media (min-width: 900px) { .pbanner { flex-basis: 340px; } }
.tag.ptag { background: var(--lilac); }
.price .deal { color: #e11d6a; }
.pfilter { margin-left: 8px; background: var(--yellow); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.deals { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.deals li { background: #f3eaff; border: 2.5px dashed var(--ink); border-radius: 14px; padding: 7px 11px; font-size: 14px; font-weight: 500; }

.qty { display: inline-flex; align-items: center; border: 3px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 38px; height: 38px; font-size: 22px; font-weight: 700; display: grid; place-items: center; }
.qty button:active:not(:disabled) { background: var(--yellow); }
.qty button:disabled { opacity: .3; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 18px; }
.qty.big button { width: 48px; height: 46px; } .qty.big span { min-width: 44px; font-size: 21px; }
.cta { display: flex; gap: 10px; align-items: stretch; }
.cta .btn { flex: 1; width: auto; }
.cta [hidden] { display: none !important; }
.cartbtn, .fab.cartfab { position: relative; }
.cartbtn { flex: none; width: 62px; border: 3px solid var(--ink); border-radius: 999px; background: var(--yellow); box-shadow: 0 6px 0 var(--ink); font-size: 26px; transition: transform .12s, box-shadow .12s; }
.cartbtn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.cartn { position: absolute; top: -8px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; border: 2.5px solid var(--ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.cartn[hidden] { display: none; }
#add.done { background: var(--lime); animation: pop .35s var(--ease); }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.fab.cartfab { bottom: calc(92px + var(--safe-b)); background: var(--yellow); color: var(--ink); font-size: 30px; }
.fab.cartfab::after { display: none; }
.fab.cartfab.bump { animation: pop .4s var(--ease); }
#toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 150%); z-index: 2147483647; background: var(--ink); color: #fff; font-weight: 600; padding: 12px 20px; border-radius: 999px; transition: transform .3s var(--ease); max-width: 92vw; text-align: center; pointer-events: none; }
#toast.on { transform: translate(-50%, 0); }
.sizes.shake .sz { border-color: #e11d48; }

#cart { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden; }
#cart::backdrop { background: rgba(6, 40, 82, .62); }
.cbox { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94dvh; display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-bottom: 0; border-radius: 28px 28px 0 0; transform: translateY(104%); transition: transform .4s var(--ease); overflow: hidden; }
#cart.open .cbox { transform: none; }
.chead { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--yellow); border-bottom: 3px solid var(--ink); }
.chead h2 { font-size: 23px; }
.cbody { overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px calc(18px + var(--safe-b)); display: grid; gap: 12px; align-content: start; }
.clist { display: grid; gap: 10px; }
.crow { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; border: 3px solid var(--ink); border-radius: 18px; padding: 8px; background: #fff; }
.crow.gone { opacity: .6; }
.cth { width: 64px; height: 80px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--tint, #ffd6ea); overflow: hidden; }
.cth img { width: 100%; height: 100%; object-fit: contain; }
.cinfo { display: grid; gap: 4px; min-width: 0; } .cinfo b { line-height: 1.1; }
.cinfo small { display: flex; align-items: center; gap: 6px; font-weight: 600; opacity: .75; } .cinfo small.bad { color: #b91c1c; opacity: 1; }
.cdot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--c); flex: none; }
.cinfo .qty button { width: 32px; height: 32px; } .cinfo .qty { justify-self: start; }
.cprice { display: grid; justify-items: end; gap: 2px; align-self: stretch; align-content: space-between; text-align: right; }
.cprice b { font-size: 17px; } .cprice s { opacity: .45; font-size: 13px; }
.cx { font-size: 18px; padding: 2px; }
.csum { border: 3px solid var(--ink); border-radius: 18px; background: #fff; padding: 10px 14px; display: grid; gap: 6px; }
.sum { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.sum.promo-l { color: #be185d; font-size: 15px; }
.sum.tot { border-top: 3px dashed var(--ink); padding-top: 8px; font-size: 22px; font-weight: 700; }
.hintc { background: #fff8cc; border: 2.5px dashed var(--ink); border-radius: 14px; padding: 8px 12px; font-weight: 600; font-size: 14px; }
.cnote { background: #e6f7ff; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 12px; font-size: 14.5px; line-height: 1.35; }
.cname { font: inherit; font-size: 16px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 14px; background: #fffbe8; width: 100%; }
#csend { width: 100%; font-size: 18px; padding: 15px 14px; text-align: center; }
.clear { justify-self: center; text-decoration: underline; font-weight: 600; opacity: .7; }
.cempty { box-shadow: none; border: 0; background: none; }
@media (min-width: 700px) {
  .cbox { inset: 0 0 0 auto; width: 460px; max-height: none; border: 3px solid var(--ink); border-right: 0; border-radius: 28px 0 0 28px; transform: translateX(104%); }
  #cart.open .cbox { transform: none; }
}

/* ---------- ver rápido: barra de vistas, compacta y por modelo ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px 2px; }
.toolbar .count { padding: 0; }
.views { display: flex; gap: 6px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 4px; box-shadow: 0 3px 0 var(--ink); flex: none; }
.views button { width: 40px; height: 34px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); transition: background .15s, transform .15s var(--ease); }
.views button svg { width: 22px; height: 22px; fill: currentColor; }
.views button:active { transform: scale(.9); }
.views button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }

.grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.grid.compact .card, .grid.rows .card { border-width: 2.5px; border-radius: 15px; box-shadow: 3px 3px 0 var(--ink); }
.grid.compact .thumb, .grid.rows .thumb { border-bottom-width: 2.5px; }
.grid.compact .thumb img, .grid.rows .thumb img { padding: 5%; }
.grid.compact .meta, .grid.rows .meta { padding: 6px 7px 2px; }
.grid.compact .meta h3, .grid.rows .meta h3 { font-size: 12.5px; min-height: 2.3em; line-height: 1.15; }
.grid.compact .price, .grid.rows .price { font-size: 14.5px; margin-top: 2px; gap: 5px; }
.grid.compact .price s, .grid.rows .price s { display: none; }
.grid.compact .dots, .grid.rows .dots { padding: 3px 7px 8px; gap: 4px; }
.grid.compact .dots button, .grid.rows .dots button { width: 15px; height: 15px; border-width: 2px; }
.grid.compact .dots button[aria-pressed="true"], .grid.rows .dots button[aria-pressed="true"] { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3.5px var(--ink); }
.grid.compact .tags, .grid.rows .tags { left: 4px; top: 4px; gap: 3px; }
.grid.compact .tag, .grid.rows .tag { font-size: 9.5px; padding: 1px 6px; border-width: 2px; box-shadow: 1px 1px 0 var(--ink); }
.grid.compact .tag.low, .grid.rows .tag.low { display: none; }
.grid.compact .b3d, .grid.rows .b3d { width: 26px; height: 26px; font-size: 10px; right: 4px; top: 4px; border-width: 2px; box-shadow: 1px 1px 0 var(--ink); }
.grid.compact .sold .thumb::after, .grid.compact .card.sold .thumb::after { font-size: 13px; padding: 3px 0; }
@media (min-width: 700px) { .grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } .grid.compact .meta h3 { font-size: 14px; } }
@media (min-width: 1000px) { .grid.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.grid.rows { display: block; padding-top: 4px; perspective: none; }
.mrow { margin-bottom: 14px; }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 4px 6px; }
.mhead h3 { color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.mhead h3 small { font-size: 15px; opacity: .85; -webkit-text-stroke: 3px var(--ink); }
.mall { background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 999px; padding: 5px 13px; font-weight: 700; font-size: 14px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.mall:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.hrow { display: flex; gap: 12px; overflow-x: auto; padding: 4px 6px 16px; margin: 0 -6px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.hrow::-webkit-scrollbar { display: none; }
.hrow .card { flex: 0 0 41vw; max-width: 200px; scroll-snap-align: start; }
@media (min-width: 700px) { .hrow .card { flex-basis: 200px; } }

/* portada más baja: las prendas aparecen antes */
.hero { padding: 10px 16px 52px; }
.hero-logo { width: min(66vw, 430px); }
.hero h1 { font-size: clamp(24px, 5.6vw, 44px); margin: 12px auto 6px; -webkit-text-stroke: 6px var(--ink); }
.hero p { font-size: clamp(15px, 3.4vw, 19px); margin-bottom: 14px; }
.hero-cta { gap: 10px; flex-wrap: nowrap; }
.hero-cta .btn { font-size: clamp(15px, 4.1vw, 22px); padding: 11px clamp(12px, 3.4vw, 26px); }
.ticker { margin-top: -30px; }
.shop { padding-top: 12px; }
.chips[hidden] { display: none; }
.grid.compact .tags .tag:nth-child(n+3), .grid.rows .tags .tag:nth-child(n+3) { display: none; }

/* ======================= OFERTAS: precio AHORA grande ======================= */
.price { flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.now { display: inline-flex; align-items: baseline; gap: 6px; }
.now .ahora { font-style: normal; font-size: 10px; font-weight: 700; background: var(--pink); color: #fff; border-radius: 6px; padding: 1px 6px; letter-spacing: .06em; align-self: center; }
.now.flash .ahora { background: #e11d48; }
.now .dealp { font-size: 26px; line-height: 1; color: #e11d48; font-weight: 700; }
.was { width: 100%; font-size: 12.5px; font-weight: 600; opacity: .6; }
.regular { font-weight: 700; }

.offer { position: absolute; right: 7px; bottom: 9px; z-index: 2; display: grid; place-items: center; text-align: center; min-width: 64px; padding: 5px 10px 4px; background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-7deg); line-height: 1; animation: stick 2.6s ease-in-out infinite; pointer-events: none; }
.offer small { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer b { font-size: 26px; font-weight: 700; text-shadow: 0 2px 0 var(--ink); }
.offer.sale { background: #ff7a00; }
.offer.flash { background: #e11d48; animation: stickpulse 1s ease-in-out infinite; }
@keyframes stick { 50% { transform: rotate(-3deg) scale(1.06); } }
@keyframes stickpulse { 50% { transform: rotate(-4deg) scale(1.15); } }

.cdchip { display: inline-block; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cdchip.crit, .cd.crit, .fb-cd.crit { background: #e11d48 !important; color: #fff !important; animation: blinkc .7s steps(2) infinite; }
.thumb .cdchip { position: absolute; left: 7px; bottom: 9px; z-index: 2; }
@keyframes blinkc { 50% { opacity: .55; } }
.card.flashy::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 4px solid #e11d48; pointer-events: none; animation: ringp 1.1s ease-in-out infinite; }
@keyframes ringp { 50% { opacity: .15; } }

/* ventas flash: barra fija, banner urgente */
.flashbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 12px; background: repeating-linear-gradient(-45deg, #e11d48 0 16px, #be123c 16px 32px); color: #fff; border-bottom: 3px solid var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.flashbar[hidden] { display: none; }
.fb-bolt { display: inline-block; animation: bolt .7s ease-in-out infinite; }
@keyframes bolt { 50% { transform: scale(1.4) rotate(-14deg); } }
.fb-t { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; font-size: 13px; letter-spacing: .06em; }
.fb-n { overflow: hidden; text-overflow: ellipsis; min-width: 0; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.fb-cd { background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 2px 12px; font-variant-numeric: tabular-nums; }
.fb-go { text-decoration: underline; }
body.has-flash .filters { top: 52px; }
@media (max-width: 520px) { .fb-n, .fb-go { display: none; } .flashbar { font-size: 14px; } }

.pbanner.flash { --pc: #e11d48; color: #fff; background: repeating-linear-gradient(-45deg, #e11d48 0 18px, #cf1240 18px 36px); transform: none; flex-basis: min(88%, 380px); }
.pbanner.flash::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 4px var(--yellow); pointer-events: none; animation: blinkc 1s steps(2) infinite; }
.pbanner.flash h3 { font-size: 30px; text-shadow: 0 3px 0 var(--ink); }
.pbanner.flash p { text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.pbanner.flash .ptype { background: var(--yellow); color: var(--ink); }
.pbanner.flash .btn { background: var(--yellow); }
.rush { background: var(--yellow); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 8px; padding: 2px 9px; font-weight: 700; font-size: 13px; animation: wob .6s ease-in-out infinite; }
.pbanner .cd.big { font-size: 20px; padding: 6px 16px; background: #fff; color: #e11d48; border: 3px solid var(--ink); }

/* ficha: caja de precio */
.pricebox { border: 3px solid var(--ink); border-radius: 20px; padding: 12px 14px; margin: 8px 0 12px; background: #fff3f8; box-shadow: 4px 4px 0 var(--ink); display: grid; gap: 4px; }
.pricebox.flash { background: #fff1f2; }
.pb-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill-offer { background: var(--pink); color: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.pricebox.flash .pill-offer { background: #e11d48; animation: blinkc 1s steps(2) infinite; }
.pricebox.sale .pill-offer { background: #ff7a00; }
.pb-now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pb-now i { font-style: normal; font-weight: 700; font-size: 15px; color: #be123c; letter-spacing: .06em; }
.pb-now b { font-size: clamp(42px, 12vw, 56px); line-height: 1; color: #e11d48; font-weight: 700; }
.pb-now em { font-style: normal; background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 10px; padding: 1px 9px; font-weight: 700; font-size: 18px; transform: rotate(-4deg); }
.pb-was { font-weight: 600; opacity: .85; } .pb-was b { color: #15803d; }
.pb-rush { font-size: 13.5px; font-weight: 700; color: #be123c; }
.cdchip.big { position: static; font-size: 16px; padding: 4px 12px; }

/* tarjetas compactas y por modelo: lo mismo, más pequeño */
.grid.compact .now .ahora, .grid.rows .now .ahora, .grid.compact .was, .grid.rows .was, .grid.compact .thumb .cdchip, .grid.rows .thumb .cdchip { display: none; }
.grid.compact .now .dealp, .grid.rows .now .dealp { font-size: 17px; }
.grid.compact .offer, .grid.rows .offer { min-width: 46px; padding: 3px 7px 3px; border-width: 2.5px; border-radius: 12px; box-shadow: 2px 2px 0 var(--ink); right: 4px; bottom: 5px; }
.grid.compact .offer small, .grid.rows .offer small { font-size: 8px; max-width: 54px; }
.grid.compact .offer b, .grid.rows .offer b { font-size: 16px; }

/* ======================= FONDO: azul + rosado (ambos) · rosado (niñas) · azul (niños) ======================= */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #1ea7ee; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: rgba(255, 110, 190, .3); }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: rgba(255, 110, 190, .22); }
:root { --c1: #1ea7ee; --c2: rgba(255, 110, 190, .3); --c3: rgba(255, 110, 190, .22); }
body[data-theme="ninas"] { --c1: #ff5fa8; --c2: rgba(255, 175, 220, .5); --c3: rgba(255, 40, 125, .3); }
body[data-theme="ninos"] { --c1: #1ea7ee; --c2: rgba(135, 222, 255, .45); --c3: rgba(8, 95, 205, .3); }
body, .stage {
  background:
    radial-gradient(rgba(255, 255, 255, .34) 2.3px, transparent 2.9px) 0 0 / 17px 17px,
    radial-gradient(95% 55% at 100% 0%, var(--c2), transparent 64%),
    radial-gradient(95% 55% at 0% 100%, var(--c3), transparent 64%),
    var(--c1);
}
