/* ── Elegance theme — Eternal Glow Jewelry ──────────────────── */
:root {
  --gold:       #C9A96E;
  --gold-dark:  #a68850;
  --brand:      #4a5240;
  --brand-dark: #363c2f;
  --black:      #2b2b2b;
  --white:      #ffffff;
  --off-white:  #fafaf8;
  --gray-light: #f4f3f0;
  --gray:       #e8e6e1;
  --gray-mid:   #b0a898;
  --text:       #2b2b2b;
  --text-muted: #7a7269;
  --radius:     4px;
  --font-body:  'Jost', sans-serif;
  --font-head:  'Cormorant Garamond', serif;
  --max-w:      1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.site-logo {
  flex-shrink: 0; display: flex; align-items: center;
}
.logo-img {
  height: 42px; width: auto; display: block;
}
.logo-img--footer {
  height: 36px;
}
.site-nav {
  display: flex; gap: 1.5rem; margin-left: auto;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500;
}
.site-nav a:hover { color: var(--gold); }
.cart-btn {
  position: relative; display: flex; align-items: center;
  margin-left: .5rem; padding: .25rem;
}
.cart-badge {
  position: absolute; top: -5px; right: -7px;
  background: var(--gold); color: #fff;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.burger { display: none; background: none; border: none; padding: .25rem; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--black); }

@media (max-width: 768px) {
  .burger { display: flex; }
  .site-nav {
    display: none; position: fixed; inset: 0; background: var(--white);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem; font-size: 1.1rem; z-index: 200;
  }
  .site-nav.open { display: flex; }
}

/* ── Botones ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--brand); color: var(--white);
  padding: .75rem 2rem; font-size: .8rem; letter-spacing: .15em;
  text-transform: uppercase; font-weight: 500;
  transition: background .2s, color .2s;
}
.btn-primary:hover { background: var(--gold); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline {
  display: inline-block; border: 1px solid var(--brand); color: var(--brand);
  padding: .7rem 2rem; font-size: .8rem; letter-spacing: .15em;
  text-transform: uppercase; font-weight: 500; transition: all .2s;
}
.btn-outline:hover { background: var(--brand); color: var(--white); }
.btn-link { background: none; border: none; color: var(--gold); font-size: .9rem; text-decoration: underline; cursor: pointer; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--alt { background: var(--off-white); }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400; text-align: center; margin-bottom: 2.5rem; color: var(--black);
}
.page-title {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 400;
  margin-bottom: 1.5rem; color: var(--black);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  background: var(--gray-light);
  background-image: linear-gradient(135deg, #f9f6f0 0%, #ede8df 100%);
  text-align: center; padding: 4rem 1.5rem;
}
.hero-eyebrow {
  display: block; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; font-weight: 500;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 300; line-height: 1.1; margin-bottom: 1.25rem; color: var(--black);
}
.hero-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }

/* ── Categorías ──────────────────────────────────────────── */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem;
}
.category-card { display: block; text-align: center; }
.category-card__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--gray-light); margin-bottom: .6rem; }
.category-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-card:hover .category-card__img img { transform: scale(1.05); }
.category-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #f0ece4, #e5dfd3); }
.category-card__name { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

/* ── Productos ───────────────────────────────────────────── */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem;
}
.product-card { display: block; }
.product-card__img {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: var(--gray-light); border-radius: var(--radius); margin-bottom: .75rem;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #f0ece4, #e5dfd3); }
.badge-sale {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--gold); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .25rem .5rem; border-radius: 2px;
}
.product-card__cat { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .25rem; }
.product-card__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 400; margin-bottom: .35rem; }
.product-card__price { display: flex; gap: .5rem; align-items: baseline; }
.price-main { font-weight: 500; font-size: .95rem; }
.price-compare { color: var(--text-muted); text-decoration: line-through; font-size: .85rem; }

/* ── Trust bar ───────────────────────────────────────────── */
.trust-bar { background: var(--black); color: var(--white); padding: 2rem 0; }
.trust-grid { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item span { font-size: 1.2rem; color: var(--gold); display: block; margin-bottom: .25rem; }
.trust-item p { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ── Catálogo ────────────────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 3rem; }
@media (max-width: 768px) { .catalog-layout { grid-template-columns: 1fr; } }
.catalog-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.catalog-count { color: var(--text-muted); font-size: .9rem; }
.filters-sidebar {}
.filters-toggle { display: none; width: 100%; background: var(--gray-light); border: none; padding: .6rem 1rem; text-align: left; font-weight: 500; }
@media (max-width: 768px) {
  .filters-toggle { display: block; }
  .filters-form { display: none; }
  .filters-form.open { display: block; }
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; color: var(--text-muted); }
.filter-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: .4rem; cursor: pointer; }
.filter-input { width: 100%; padding: .5rem .75rem; border: 1px solid var(--gray); border-radius: var(--radius); font-family: inherit; font-size: .9rem; background: var(--white); }
.filter-input--sm { width: calc(50% - 8px); }
.filter-select { width: 100%; padding: .5rem .75rem; border: 1px solid var(--gray); border-radius: var(--radius); font-family: inherit; background: var(--white); }
.price-range { display: flex; align-items: center; gap: .5rem; }
.empty-catalog { text-align: center; padding: 3rem; color: var(--text-muted); }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray); font-size: .9rem; }
.page-btn--active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── Producto ────────────────────────────────────────────── */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 1.5rem 3rem; max-width: var(--max-w); margin: 0 auto; }
@media (max-width: 768px) { .product-layout { grid-template-columns: 1fr; } }
.product-gallery { display: flex; gap: 1rem; }
.gallery-thumbs { display: flex; flex-direction: column; gap: .5rem; width: 72px; flex-shrink: 0; }
.gallery-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; opacity: .7; transition: all .2s; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); opacity: 1; }
.gallery-main { flex: 1; position: relative; }
.gallery-main-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; }
.gallery-placeholder { width: 100%; aspect-ratio: 4/5; background: var(--gray-light); border-radius: var(--radius); }
.zoom-hint { position: absolute; bottom: .75rem; right: .75rem; background: rgba(255,255,255,.85); border: 1px solid var(--gray); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.product-breadcrumb { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .75rem; }
.product-title { font-family: var(--font-head); font-size: 2rem; font-weight: 400; margin-bottom: .5rem; }
.product-subtitle { color: var(--text-muted); margin-bottom: 1rem; }
.product-price { font-size: 1.5rem; font-weight: 500; margin: .75rem 0; }
.variants-section { margin: 1.25rem 0; }
.variant-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .5rem; }
.variant-select { width: 100%; padding: .65rem .75rem; border: 1px solid var(--gray); border-radius: var(--radius); font-family: inherit; }
.stock-warn { color: var(--gold); font-size: .85rem; margin-top: .5rem; }
.product-actions { display: flex; gap: 1rem; margin: 1.5rem 0; align-items: center; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--gray); border-radius: var(--radius); }
.qty-control button { width: 36px; height: 40px; background: none; border: none; font-size: 1.1rem; }
.qty-input { width: 44px; text-align: center; border: none; border-left: 1px solid var(--gray); border-right: 1px solid var(--gray); height: 40px; font-family: inherit; }
.qty-control--sm { transform: scale(.85); }
.btn-add-cart { flex: 1; justify-content: center; }
.add-success { background: #f0faf4; border: 1px solid #b2dfcc; color: #1a5c35; padding: .6rem 1rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 1rem; }
.product-description { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray); }
.product-description h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: .75rem; }
.product-desc-text { color: var(--text-muted); line-height: 1.8; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.9); display: flex;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 1.5rem; }
[x-cloak] { display: none !important; }

/* ── Carrito ─────────────────────────────────────────────── */
.cart-layout { padding: 2rem 1.5rem 3rem; max-width: var(--max-w); margin: 0 auto; }
.empty-cart { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-cart p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.cart-content { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
@media (max-width: 768px) { .cart-content { grid-template-columns: 1fr; } }
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gray); align-items: flex-start; }
.cart-item__img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; background: var(--gray-light); }
.cart-item__img--empty { background: var(--gray-light); }
.cart-item__info { flex: 1; }
.cart-item__title { font-weight: 500; display: block; margin-bottom: .25rem; }
.cart-item__variant { font-size: .85rem; color: var(--text-muted); display: block; }
.cart-item__custom { font-size: .8rem; color: var(--gold); display: block; }
.cart-item__controls { display: flex; gap: 1rem; align-items: center; margin-top: .5rem; }
.cart-item__price { font-weight: 500; flex-shrink: 0; }
.cart-summary { background: var(--gray-light); padding: 1.5rem; border-radius: var(--radius); height: fit-content; }
.cart-summary h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .9rem; }
.coupon-box { margin: 1rem 0; padding-top: 1rem; border-top: 1px solid var(--gray); }
.coupon-input { display: flex; gap: .5rem; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; }
.coupon-msg { color: #c0392b; font-size: .85rem; margin-top: .4rem; }

/* ── Checkout ────────────────────────────────────────────── */
.checkout-layout { max-width: 820px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.checkout-section { background: var(--white); border: 1px solid var(--gray); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.checkout-section h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; color: var(--text-muted); }
.form-row { display: flex; gap: 1rem; }
@media (max-width: 600px) { .form-row { flex-direction: column; } }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--gray); border-radius: var(--radius); font-family: inherit; font-size: .95rem; }
.rates-loading, .rates-hint { color: var(--text-muted); font-size: .9rem; padding: .75rem 0; }
.rates-error { color: #c0392b; font-size: .9rem; }
.rate-option { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--gray); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: .5rem; cursor: pointer; }
.rate-option:hover { border-color: var(--gold); }
.rate-info { flex: 1; }
.rate-carrier { font-weight: 500; display: block; }
.rate-service, .rate-time { font-size: .85rem; color: var(--text-muted); }
.rate-price { font-weight: 500; }
.checkout-summary { background: var(--gray-light); padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: .4rem; font-size: .9rem; }
.summary-line--total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--gray); padding-top: .75rem; margin-top: .5rem; }
.checkout-note { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: .75rem; }

/* ── Resultado de pago ───────────────────────────────────── */
.result-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1.5rem; }
.result-icon--success { background: #d4edda; color: #155724; }
.result-icon--pending { background: #fff3cd; color: #856404; }
.result-icon--failure { background: #f8d7da; color: #721c24; }

/* ── Contacto ────────────────────────────────────────────── */
.contact-options { display: flex; flex-direction: column; gap: 1rem; }
.contact-card { display: flex; align-items: center; gap: 1.5rem; border: 1px solid var(--gray); border-radius: var(--radius); padding: 1.25rem 1.5rem; transition: border-color .2s; }
.contact-card:hover { border-color: var(--gold); }
.contact-icon { font-size: 1.8rem; flex-shrink: 0; }
.contact-card h3 { font-family: var(--font-head); margin-bottom: .25rem; }
.contact-card p { color: var(--text-muted); font-size: .9rem; }

/* ── WhatsApp flotante ───────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  background: #25D366; color: #fff;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--black); color: var(--white); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--gray-mid); font-size: .9rem; margin-top: .5rem; }
.footer-links h4 { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--gray-mid); font-size: .9rem; margin-bottom: .4rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--max-w); margin: 2rem auto 0; padding: 1rem 1.5rem 0; border-top: 1px solid #2a2a2a; font-size: .8rem; color: var(--gray-mid); }
