/* ============================================================
   LÍNEA CONTINUA — Estilos del sitio cliente (site.css)
   Hereda tokens de theme.css.
   ============================================================ */

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-4); }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
           font-size: var(--text-xs); color: var(--color-muted); margin: 0 0 var(--sp-2); }
.note { color: var(--color-muted); font-size: var(--text-sm); }
.section { padding: var(--sp-8) 0; }
.section-head { display: flex; align-items: center; justify-content: space-between;
                gap: var(--sp-3); margin-bottom: var(--sp-5); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 20;
               background: color-mix(in srgb, var(--color-bg) 86%, transparent);
               backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between;
                      height: 64px; }
.site-logo { font-size: 1.4rem; text-decoration: none; color: var(--color-text); }
.site-nav { display: flex; align-items: center; gap: var(--sp-5); }
.site-nav a { text-decoration: none; color: var(--color-text); font-weight: 700; }
.site-nav a:hover { color: var(--color-primary-hover); }
.site-nav__cart { display: inline-flex; align-items: center; gap: 4px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden;
        background:
          radial-gradient(60% 80% at 90% 0%, color-mix(in srgb, var(--brand-sage) 20%, transparent), transparent 60%),
          radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--brand-rose) 18%, transparent), transparent 55%); }
.hero__inner { position: relative; padding: var(--sp-10) 0; }
.hero__copy { max-width: 30ch; }
.hero h1 { font-size: clamp(2.4rem, 7vw, var(--text-3xl)); }
.hero__lead { font-size: var(--text-lg); color: var(--color-muted); margin: 0 0 var(--sp-5); }
.hero__line { position: absolute; right: -4%; bottom: 6%; width: 55%; max-width: 620px;
              opacity: .9; pointer-events: none; }
@media (max-width: 760px) {
  .hero__inner { padding: var(--sp-6) 0; }
  .hero__lead { font-size: var(--text-base); margin-bottom: var(--sp-4); }
  .hero__line { position: static; width: 100%; max-width: 320px; height: 80px; margin-top: var(--sp-4); }
  .section { padding: var(--sp-6) 0; }
}

/* ---- Grilla de productos ---- */
.product-grid { display: grid; gap: var(--sp-5);
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.product-card:hover { transform: translateY(-2px); }
.product-card__thumb { height: 170px; border-radius: var(--radius); margin-bottom: var(--sp-3);
                       background-color: var(--color-surface-2); background-size: cover; background-position: center;
                       background-image:
                         radial-gradient(120% 120% at 20% 15%, color-mix(in srgb,var(--color-secondary) 34%, var(--color-surface-2)) 0%, transparent 55%),
                         radial-gradient(120% 120% at 85% 85%, color-mix(in srgb,var(--color-accent) 40%, var(--color-surface-2)) 0%, transparent 55%); }
.product-card__name { font-size: var(--text-lg); margin: 0 0 4px; }
.product-card__comp { font-size: var(--text-xs); color: var(--color-muted); margin: 0 0 var(--sp-3); }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.product-card__foot .price { font-size: 1.35rem; }

/* ---- Estado vacío ---- */
.empty-state { text-align: center; padding: var(--sp-8) var(--sp-5); }
.empty-state .lc-line { max-width: 240px; margin: 0 auto var(--sp-3); display: block; }
.empty-state p { margin: var(--sp-1) 0; }
.empty-state .btn { margin-top: var(--sp-4); }

/* ---- PDP (detalle de producto) ---- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
.pdp__media { aspect-ratio: 4/3; border-radius: var(--radius-lg); background-color: var(--color-surface-2);
              background-size: cover; background-position: center;
              background-image:
                radial-gradient(120% 120% at 20% 15%, color-mix(in srgb,var(--color-secondary) 34%, var(--color-surface-2)) 0%, transparent 55%),
                radial-gradient(120% 120% at 85% 85%, color-mix(in srgb,var(--color-accent) 40%, var(--color-surface-2)) 0%, transparent 55%); }
.pdp__gallery { display: flex; flex-direction: column; gap: var(--sp-3); }
.pdp__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--sp-2); }
.pdp__thumb { aspect-ratio: 1; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer;
              background-size: cover; background-position: center; background-color: var(--color-surface-2);
              padding: 0; transition: border-color var(--transition); }
.pdp__thumb:hover { border-color: var(--color-border-strong); }
.pdp__thumb.is-active { border-color: var(--color-primary); }
.pdp__desc { color: var(--color-muted); }
.pdp__comp { margin: var(--sp-5) 0; }
.pdp__comp h3 { margin-bottom: var(--sp-2); }
.pdp__comp ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pdp__comp li { padding: 8px 12px; background: var(--color-surface-2); border-radius: var(--radius-sm); }
.pdp__price { margin-top: var(--sp-5); }
.pdp__total { display: flex; align-items: baseline; justify-content: space-between; }
.pdp__total .price { font-size: var(--text-3xl); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1eb858; }
.pdp__price .price-breakdown { margin: 0 0 var(--sp-3); padding: 0; }
.pdp__price .price-breakdown > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: var(--text-sm); }
.pdp__price .price-breakdown dt { margin: 0; color: var(--color-muted); }
.pdp__price .price-breakdown dd { margin: 0; font-weight: 700; }
.pdp__price .price-total { display: flex; justify-content: space-between; align-items: baseline;
                           border-top: 2px solid var(--color-border-strong); padding-top: var(--sp-3); margin-bottom: var(--sp-3); }
.pdp__price .price-total strong { font-size: var(--text-2xl); }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; gap: var(--sp-5); } }

/* ---- Cart badge en el header ---- */
.cart-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
              background: var(--color-accent); color: #fff; border-radius: var(--radius-pill);
              font-size: var(--text-xs); font-weight: 800; }

/* ---- Tarjeta de producto: link + botón agregar ---- */
.product-card__link { display: block; text-decoration: none; color: inherit; }
.product-card__add { padding: .5em 1em; white-space: nowrap; }

/* ---- Carrito / checkout ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-5); align-items: start; margin-top: var(--sp-5); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: var(--sp-4); border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item__name { font-weight: 700; color: var(--color-text); text-decoration: none; }
.cart-item__name:hover { color: var(--color-primary-hover); }
.cart-item__price, .cart-item__sub { white-space: nowrap; font-weight: 700; }
.cart-item__sub { font-family: var(--font-display); color: var(--color-primary-hover); }
.cart-item__del { background: none; border: none; cursor: pointer; color: var(--color-danger); font-size: 1.1rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { background: var(--color-surface-2); border: none; width: 32px; height: 34px; cursor: pointer; font-size: 1.1rem; color: var(--color-text); }
.qty button:hover { background: var(--color-primary); color: var(--color-on-primary); }
.qty input { width: 42px; height: 34px; border: none; text-align: center; background: var(--color-surface); color: var(--color-text); font-weight: 700; }
.cart-summary { position: sticky; top: 84px; }
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; margin: var(--sp-3) 0; }
.cart-summary__row strong { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-primary-hover); }
.cart-summary__item { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--text-sm); padding: 4px 0; }
@media (max-width: 760px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

/* ---- Footer ---- */
.site-footer { margin-top: var(--sp-10); padding: var(--sp-8) 0; border-top: 1px solid var(--color-border);
               background: var(--color-surface); text-align: center; }
.site-footer .lc-wordmark { font-size: 1.5rem; }
.site-footer p { color: var(--color-muted); margin: var(--sp-2) 0 0; }
.site-footer__legal { font-size: var(--text-xs); }
