/* Tienda de crearia.app (catálogo, carrito y seguimiento). Se apoya en /navidad/esferas/css/app.css. */
.t-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 16px; }
.t-nav .links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.t-nav .links a { color: var(--cr-text-muted); text-decoration: none; font-weight: 600; font-size: var(--cr-text-sm); padding: 10px 10px; border-radius: 999px; }
.t-nav .links a:hover, .t-nav .links a[aria-current="page"] { color: var(--cr-primary); background: var(--cr-purple-50); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--cr-border); background: var(--cr-bg-elevated); color: var(--cr-text); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-hero { text-align: center; padding: 12px 0 28px; }
.t-hero h1 { font-size: var(--cr-text-2xl); margin: 0 0 8px; }
.t-hero p { max-width: 620px; margin: 0 auto; color: var(--cr-text-muted); }
.grad { background: var(--cr-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Catálogo */
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.prod { display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s; }
a.prod:hover { transform: translateY(-3px); }
.prod .foto { aspect-ratio: 4 / 3; background: var(--cr-purple-50); overflow: hidden; }
.prod .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod .info { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.prod h2 { margin: 0; font-size: 1.25rem; }
.prod p { margin: 0; color: var(--cr-text-muted); font-size: var(--cr-text-sm); }
.prod .precio { color: var(--cr-text); font-weight: 700; font-size: 1rem; margin-top: 4px; }
.prod .precio s { color: var(--cr-text-muted); font-weight: 500; margin-left: 6px; }
.prod .cta { margin-top: 8px; color: var(--cr-primary); font-weight: 700; }
.etiqueta { justify-self: start; font-size: var(--cr-text-xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--cr-mint) 30%, transparent); }
.etiqueta.pronto { background: color-mix(in srgb, var(--cr-peach) 35%, transparent); }
.prod.apagado { opacity: .8; }
.banda { margin-top: 28px; padding: 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banda h2 { margin: 0 0 4px; font-size: 1.2rem; }
.banda p { margin: 0; color: var(--cr-text-muted); }
.banda .btn { flex: 0 0 auto; }
.ventajas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; list-style: none; padding: 0; }
.ventajas li { padding: 14px 16px; font-size: var(--cr-text-sm); color: var(--cr-text-muted); }
.ventajas b { display: block; color: var(--cr-text); font-size: 1rem; }

/* Carrito */
.t-carrito { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.t-carrito h2 { margin: 0 0 12px; font-size: 1.3rem; }
.t-panel { padding: 20px; }
.t-lista { list-style: none; margin: 0; padding: 0; }
.t-lista li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--cr-border); }
.t-lista li:last-child { border-bottom: 0; }
.t-lista .img { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--cr-purple-50); }
.t-lista .img img, .t-lista .img canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-lista b { display: block; }
.t-lista small { color: var(--cr-text-muted); }
.t-lista .falta { color: #b3122e; font-weight: 600; font-size: var(--cr-text-xs); display: block; margin-top: 2px; }
.t-lista .der { display: grid; justify-items: end; gap: 6px; }
.t-lista .importe { font-weight: 700; }
.cant { display: inline-flex; align-items: center; border: 1px solid var(--cr-border); border-radius: 999px; background: var(--cr-bg-elevated); }
.cant button { width: 36px; height: 36px; border: 0; background: none; font: inherit; font-size: 18px; cursor: pointer; color: inherit; border-radius: 999px; min-height: 0; }
.cant span { min-width: 22px; text-align: center; font-weight: 700; }
.quitar { border: 0; background: none; color: var(--cr-text-muted); font: inherit; font-size: var(--cr-text-xs); text-decoration: underline; cursor: pointer; min-height: 32px; }
.vacio { text-align: center; padding: 24px 8px; }
.vacio p { color: var(--cr-text-muted); }
.sugerencias { margin-top: 18px; display: grid; gap: 10px; }
.sugerencias h3 { margin: 0; font-size: var(--cr-text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--cr-text-muted); }
.sug { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--cr-radius-md); background: var(--cr-bg-elevated); border: 1px solid var(--cr-border); text-decoration: none; color: inherit; }
.sug:hover { border-color: var(--cr-purple-300); }
.sug img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.sug small { display: block; color: var(--cr-text-muted); }
.sug em { font-style: normal; font-weight: 700; color: var(--cr-primary); font-size: var(--cr-text-sm); }
.resumen { display: grid; gap: 6px; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--cr-purple-200); }
.resumen div { display: flex; justify-content: space-between; gap: 10px; font-size: var(--cr-text-sm); }
.resumen .verde { color: #12795f; font-weight: 600; }
.resumen .total { font-size: 1.25rem; font-weight: 800; font-family: var(--cr-font-display); padding-top: 6px; }
.cupon { display: flex; gap: 8px; align-items: stretch; }
.cupon input { flex: 1; text-transform: uppercase; min-width: 0; }
.cupon .btn { flex: 0 0 auto; }
.cupon-msg { margin: 4px 0 0; font-size: var(--cr-text-xs); min-height: 1em; }
.cupon-msg.ok { color: #12795f; font-weight: 600; }
.cupon-msg.mal { color: #b3122e; font-weight: 600; }
.seguro { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--cr-text-muted); font-size: var(--cr-text-xs); margin: 0; }
.digital-nota { padding: 10px 12px; border-radius: var(--cr-radius-sm); background: var(--cr-purple-50); font-size: var(--cr-text-sm); margin: 0; }
.t-carrito .checkout { gap: 12px; }
@media (max-width: 900px) { .t-carrito { grid-template-columns: 1fr; } }

/* Seguimiento */
.t-pedido { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.t-pedido .t-panel h1 { margin: 0 0 6px; font-size: var(--cr-text-xl); }
.pasos { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: paso; }
.pasos li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: var(--cr-text-xs); color: var(--cr-text-muted); font-weight: 600; }
.pasos li::before { counter-increment: paso; content: counter(paso); width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--cr-bg-elevated); border: 2px solid var(--cr-border); color: var(--cr-text-muted); font-weight: 800; }
.pasos li.hecho::before { content: "✓"; background: var(--cr-gradient); border-color: transparent; color: #fff; }
.pasos li.ahora::before { border-color: var(--cr-primary); color: var(--cr-primary); }
.pasos li.hecho, .pasos li.ahora { color: var(--cr-text); }
.parte { display: grid; gap: 6px; }
.parte h2 { margin: 0; font-size: 1.15rem; }
.parte p { margin: 0; }
.lineas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--cr-text-sm); }
.lineas li { display: flex; justify-content: space-between; gap: 10px; }
.estado { display: inline-block; font-size: var(--cr-text-xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--cr-purple-50); color: var(--cr-primary); }
.estado.ok { background: color-mix(in srgb, var(--cr-mint) 30%, transparent); color: #0d5c49; }
.t-foot-links { display: flex; gap: 10px; flex-wrap: wrap; }
.t-foot-links .btn { flex: 0 0 auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .resumen .verde, :root:not([data-theme="light"]) .cupon-msg.ok { color: #5fe0c4; }
}
@media (max-width: 520px) {
  .t-nav { padding: 12px 16px; }
  .t-nav .brand small { display: none; }
  .t-nav .links { flex-wrap: nowrap; gap: 2px; }
  .t-nav .links a:not(.icon-btn) { padding: 10px 6px; }
}
