/* Beauty by Belén — estilos de tienda (ADITIVO, reutiliza las variables de style.css) */

/* ── icono de carrito en el nav ── */
.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-left: 0.6rem; color: var(--charcoal); transition: color var(--tr); }
.nav-cart:hover { color: var(--teal); }
.nav-cart svg { width: 22px; height: 22px; }
.nav-cart .cart-count { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 100px; background: var(--teal); color: #fff; font-family: var(--font-body); font-size: 0.64rem; font-weight: 700; display: none; align-items: center; justify-content: center; line-height: 1; }

/* ── cabecera de página de tienda ── */
.store-hero { background: var(--cream); padding: calc(var(--nav-h) + var(--bar-h) + 3rem) 0 3rem; text-align: center; }
.store-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; color: var(--charcoal); margin: 0 0 0.6rem; }
.store-hero p { font-family: var(--font-body); color: var(--text-soft); font-size: 1rem; max-width: 620px; margin: 0 auto; }

/* ── filtros por categoría ── */
.store-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin: 2rem auto 2.5rem; max-width: 1000px; }
.store-filters button { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; padding: 0.55rem 1.25rem; border-radius: 100px; border: 1px solid var(--border); background: var(--white); color: var(--text-soft); cursor: pointer; transition: all var(--tr); }
.store-filters button:hover { border-color: var(--teal); color: var(--teal); }
.store-filters button.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ── grid de productos ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.75rem; }
.product-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--tr), box-shadow var(--tr); box-shadow: var(--shadow-sm); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .pc-img { display: block; aspect-ratio: 4/3; background: var(--rose-mist); overflow: hidden; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tr); }
.product-card:hover .pc-img img { transform: scale(1.05); }
.product-card .pc-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-cat { font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 0.4rem; }
.product-card .pc-name { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--charcoal); line-height: 1.2; margin-bottom: 0.45rem; }
.product-card .pc-desc { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; margin-bottom: 1rem; flex: 1; }
.product-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.product-card .pc-price { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--charcoal); }
.product-card .pc-price.budget { font-size: 0.8rem; font-weight: 600; color: var(--teal); }

/* ── botones de tienda (reutilizan el look de la demo) ── */
.store-btn { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; padding: 0.6rem 1.15rem; border-radius: 100px; border: none; cursor: pointer; background: var(--teal); color: #fff; transition: background var(--tr), transform var(--tr-fast); display: inline-flex; align-items: center; gap: 0.4rem; }
.store-btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.store-btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--charcoal); }
.store-btn.ghost:hover { border-color: var(--teal); color: var(--teal); background: transparent; }
.store-btn.block { width: 100%; justify-content: center; padding: 0.9rem 1.15rem; font-size: 0.9rem; }

/* ── PDP (ficha de producto) ── */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: calc(var(--nav-h) + var(--bar-h) + 2.5rem) 0 4rem; }
.pdp-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--rose-mist); aspect-ratio: 1/1; box-shadow: var(--shadow-md); }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-cat { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 0.6rem; }
.pdp h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--charcoal); margin: 0 0 1rem; }
.pdp .pdp-price { font-family: var(--font-body); font-size: 1.35rem; font-weight: 700; color: var(--charcoal); margin-bottom: 1.5rem; }
.pdp .pdp-price.budget { color: var(--teal); font-size: 1.05rem; }
.pdp .pdp-desc { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 2rem; }
.pdp .pdp-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 100px; overflow: hidden; }
.qty-box button { width: 38px; height: 40px; border: none; background: var(--white); color: var(--charcoal); font-size: 1.1rem; cursor: pointer; }
.qty-box button:hover { background: var(--cream); }
.qty-box input { width: 44px; height: 40px; border: none; text-align: center; font-family: var(--font-body); font-size: 0.9rem; }

/* ── carrito ── */
.cart-wrap { padding: calc(var(--nav-h) + var(--bar-h) + 2.5rem) 0 4rem; }
.cart-wrap h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--charcoal); margin: 0 0 2rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 1.15rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--border-light); }
.cart-item .ci-img { width: 90px; height: 90px; border-radius: var(--radius); object-fit: cover; background: var(--rose-mist); }
.cart-item .ci-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--charcoal); }
.cart-item .ci-price { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-soft); margin-top: 0.2rem; }
.cart-item .ci-remove { font-family: var(--font-body); font-size: 0.74rem; color: var(--text-muted); background: none; border: none; cursor: pointer; margin-top: 0.4rem; text-decoration: underline; }
.cart-item .ci-remove:hover { color: var(--teal); }
.cart-summary { background: var(--cream); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: calc(var(--nav-h) + 1rem); }
.cart-summary h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--charcoal); margin: 0 0 1.25rem; }
.cart-summary .cs-row { display: flex; justify-content: space-between; font-family: var(--font-body); font-size: 0.9rem; color: var(--text-soft); padding: 0.5rem 0; }
.cart-summary .cs-total { font-weight: 700; color: var(--charcoal); font-size: 1.05rem; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 1rem; }
.cart-note { font-family: var(--font-body); font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; margin-top: 1rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty p { font-family: var(--font-body); color: var(--text-soft); margin-bottom: 1.5rem; }

/* ── checkout ── */
.checkout-wrap { padding: calc(var(--nav-h) + var(--bar-h) + 2.5rem) 0 4rem; }
.checkout-wrap h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--charcoal); margin: 0 0 2rem; }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.checkout-form label { display: block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: var(--charcoal); margin: 1rem 0 0.4rem; letter-spacing: 0.02em; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 0.75rem 0.95rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; color: var(--text); background: var(--white); }
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--teal); }
.checkout-form textarea { min-height: 90px; resize: vertical; }
.checkout-msg { margin-top: 1.25rem; padding: 1rem; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.85rem; display: none; }
.checkout-msg.ok { display: block; background: var(--mint-soft); color: var(--teal-dark); }
.checkout-msg.err { display: block; background: #fdecec; color: #b23434; }

.store-loading { text-align: center; padding: 3rem 1rem; font-family: var(--font-body); color: var(--text-muted); }

@media (max-width: 820px) {
  .pdp { grid-template-columns: 1fr; gap: 1.75rem; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
