/* ==========================================================
   22 Style — Tienda online — Sistema de diseño
   ========================================================== */
:root{
  --blush: #F7DCD4;
  --blush-light: #FCF1EC;
  --cream: #FFFBF8;
  --gold: #A97C50;
  --gold-dark: #8B6239;
  --gold-soft: #F1E3D3;
  --wine: #5C2430;
  --wine-soft: #F3E3E1;
  --ink: #2B2320;
  --ink-muted: #7A6B62;
  --ink-faint: #A8988D;
  --border: #EAD9CF;
  --success: #3E7D5A;
  --danger: #B34444;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(92,36,48,.08);
  --shadow: 0 8px 28px rgba(92,36,48,.10);
  --shadow-lg: 0 20px 50px rgba(92,36,48,.18);

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Jost', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:var(--font-body); font-size:15.5px; line-height:1.55;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; margin:0; color:var(--wine); letter-spacing:.01em; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; font-size:15px; }
::selection{ background:var(--gold-soft); }

.container{ max-width:1180px; margin:0 auto; padding:0 24px; }
@media (max-width:640px){ .container{ padding:0 18px; } }

/* ---------- Topbar / anuncio ---------- */
.announce{
  background:var(--wine); color:#fff; text-align:center; font-size:12.5px;
  letter-spacing:.04em; padding:8px 14px; text-transform:uppercase;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,251,248,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:44px; width:auto; }
.brand-logo-badge{
  display:inline-flex; align-items:center; justify-content:center;
  background:#fff; border-radius:10px; padding:5px 8px; line-height:0;
}
.brand-logo-badge img{ height:34px; width:auto; display:block; }
.brand-text{ font-family:var(--font-display); font-size:20px; color:var(--wine); letter-spacing:.03em; }
.brand-text span{ display:block; font-family:var(--font-body); font-size:9.5px; letter-spacing:.18em; color:var(--gold-dark); text-transform:uppercase; margin-top:1px; }

.main-nav{ display:flex; gap:30px; }
.main-nav a{ font-size:13.5px; letter-spacing:.05em; text-transform:uppercase; color:var(--ink); font-weight:500; padding:6px 0; border-bottom:2px solid transparent; }
.main-nav a:hover, .main-nav a.active{ border-color:var(--gold); }
@media (max-width:760px){ .main-nav{ display:none; } }

.header-actions{ display:flex; align-items:center; gap:16px; }
.icon-link{ position:relative; display:inline-flex; align-items:center; justify-content:center; font-size:19px; color:var(--wine); background:none; border:none; width:40px; height:40px; border-radius:50%; cursor:pointer; }
.icon-link:hover{ background:var(--blush-light); }
.cart-count{
  position:absolute; top:-7px; right:-9px; background:var(--wine); color:#fff;
  font-size:10px; font-weight:700; width:17px; height:17px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}

/* ---------- Botones ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px; border-radius:999px; font-size:13px; letter-spacing:.06em;
  text-transform:uppercase; font-weight:600; border:1px solid transparent; transition:filter .15s, background .15s;
}
.btn-gold{ background:var(--gold); color:#fff; }
.btn-gold:hover{ background:var(--gold-dark); }
.btn-wine{ background:var(--wine); color:#fff; }
.btn-wine:hover{ filter:brightness(1.1); }
.btn-outline{ background:transparent; border-color:var(--wine); color:var(--wine); }
.btn-outline:hover{ background:var(--wine); color:#fff; }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }
.btn-sm{ padding:9px 18px; font-size:11.5px; }

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  min-height:78vh; max-height:640px;
  display:flex; align-items:flex-end;
  background:var(--blush-light);
}
@media (max-width:640px){ .hero{ min-height:64vh; } }
.hero-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero-scrim{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(to top, rgba(43,35,32,.82) 0%, rgba(43,35,32,.45) 42%, rgba(43,35,32,.05) 72%);
}
.hero-content{ position:relative; z-index:2; padding:60px 0 54px; max-width:640px; }
.hero-content .hero-eyebrow{ font-size:12.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; margin-bottom:14px; color:var(--gold-soft); }
.hero-content h1{ color:#fff; font-size:44px; line-height:1.15; margin-bottom:18px; }
@media (max-width:640px){ .hero-content h1{ font-size:30px; } }
.hero-content p.lead{ color:#f1e3dd; font-size:16.5px; margin-bottom:28px; }

/* ---------- Secciones ---------- */
.section{ padding:64px 0; }
.section-head{ text-align:center; margin-bottom:40px; }
.section-head .eyebrow{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-dark); font-weight:600; margin-bottom:8px; }
.section-head h2{ font-size:30px; }
.section-head p{ color:var(--ink-muted); margin-top:10px; max-width:520px; margin-left:auto; margin-right:auto; }

/* ---------- Categorías ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media (max-width:900px){ .cat-grid{ grid-template-columns:repeat(2,1fr); } }
.cat-card{
  position:relative; border-radius:var(--radius); overflow:hidden; aspect-ratio:3/4;
  background:var(--blush-light); border:1px solid var(--border); cursor:pointer;
}
.cat-card img{ width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.cat-card:hover img{ transform:scale(1.06); }
.cat-card .cat-label{
  position:absolute; left:0; right:0; bottom:0; padding:16px;
  background:linear-gradient(to top, rgba(43,35,32,.75), transparent);
  color:#fff; font-family:var(--font-display); font-size:16px;
}

/* ---------- Grid de productos ---------- */
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px 22px; }
@media (max-width:980px){ .product-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:680px){ .product-grid{ grid-template-columns:repeat(2,1fr); gap:18px 14px; } }

.product-card{ cursor:pointer; }
.product-card .pc-img{
  position:relative; aspect-ratio:4/5; border-radius:var(--radius); overflow:hidden;
  background:var(--blush-light); margin-bottom:12px; border:1px solid var(--border);
}
.product-card .pc-img img{ width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.product-card:hover .pc-img img{ transform:scale(1.045); }
.product-card .pc-badge{
  position:absolute; top:10px; left:10px; background:var(--wine); color:#fff;
  font-size:10px; letter-spacing:.04em; text-transform:uppercase; padding:4px 10px; border-radius:999px;
}
.product-card .pc-badge.agotado{ background:#8a8a8a; }
.product-card .pc-name{ font-family:var(--font-display); font-size:15.5px; color:var(--ink); margin-bottom:4px; }
.product-card .pc-price{ font-size:14px; }
.product-card .pc-price .old{ text-decoration:line-through; color:var(--ink-faint); margin-right:6px; font-size:12.5px; }
.product-card .pc-price .now{ color:var(--wine); font-weight:600; }

.empty-store{ text-align:center; padding:70px 20px; color:var(--ink-muted); }
.empty-store .es-icon{ font-size:40px; margin-bottom:14px; }

/* ---------- Producto individual ---------- */
.product-detail{ display:grid; grid-template-columns:1fr 1fr; gap:56px; padding:50px 0 80px; }
@media (max-width:860px){ .product-detail{ grid-template-columns:1fr; gap:26px; padding:26px 0 60px; } }
.pd-gallery-main{ aspect-ratio:1/1; border-radius:var(--radius-lg); overflow:hidden; background:var(--blush-light); border:1px solid var(--border); margin-bottom:12px; }
.pd-gallery-main img{ width:100%; height:100%; object-fit:cover; }
.pd-thumbs{ display:flex; gap:10px; flex-wrap:wrap; }
.pd-thumbs img{ width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid var(--border); cursor:pointer; opacity:.65; }
.pd-thumbs img.active{ opacity:1; border-color:var(--gold); }

.pd-category{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-dark); font-weight:600; margin-bottom:8px; }
.pd-title{ font-size:30px; margin-bottom:12px; }
.pd-price{ font-size:22px; color:var(--wine); font-weight:600; margin-bottom:20px; }
.pd-price .old{ text-decoration:line-through; color:var(--ink-faint); font-size:16px; margin-right:10px; font-weight:400; }
.pd-desc{ color:var(--ink-muted); margin-bottom:26px; line-height:1.7; }

.pd-option-group{ margin-bottom:22px; }
.pd-option-label{ font-size:12.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink); margin-bottom:10px; }
.swatches{ display:flex; gap:9px; flex-wrap:wrap; }
.swatch{
  padding:11px 16px; border-radius:999px; border:1px solid var(--border); background:#fff;
  font-size:13px; cursor:pointer; transition:border-color .15s, background .15s;
}
.swatch.selected{ border-color:var(--wine); background:var(--wine); color:#fff; }
.swatch.disabled{ opacity:.35; cursor:not-allowed; text-decoration:line-through; }

.pd-stock-msg{ font-size:12.5px; margin-bottom:20px; }
.pd-stock-msg.ok{ color:var(--success); }
.pd-stock-msg.low{ color:#B08A2E; }
.pd-stock-msg.out{ color:var(--danger); }

.qty-row{ display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.qty-box{ display:flex; align-items:center; border:1px solid var(--border); border-radius:999px; overflow:hidden; }
.qty-box button{ width:38px; height:38px; background:none; border:none; font-size:16px; }
.qty-box span{ width:36px; text-align:center; font-weight:600; }

/* ---------- Carrito (drawer) ---------- */
.cart-overlay{ position:fixed; inset:0; background:rgba(43,35,32,.4); z-index:300; display:none; }
.cart-overlay.open{ display:block; }
.cart-drawer{
  position:fixed; top:0; right:0; height:100vh; width:400px; max-width:92vw;
  background:var(--cream); z-index:301; box-shadow:var(--shadow-lg);
  transform:translateX(100%); transition:transform .28s ease; display:flex; flex-direction:column;
}
.cart-drawer.open{ transform:translateX(0); }
.cart-head{ display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid var(--border); }
.cart-head h3{ font-size:18px; }
.cart-close{ background:none; border:none; font-size:20px; color:var(--ink-muted); }
.cart-items{ flex:1; overflow-y:auto; padding:16px 22px; }
.cart-line{ display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.cart-line img{ width:64px; height:64px; object-fit:cover; border-radius:8px; flex-shrink:0; background:var(--blush-light); }
.cart-line .cl-name{ font-family:var(--font-display); font-size:14px; }
.cart-line .cl-var{ font-size:12px; color:var(--ink-muted); margin:3px 0 8px; }
.cart-line .cl-remove{ font-size:11.5px; color:var(--danger); background:none; border:none; padding:0; margin-left:auto; }
.cart-foot{ padding:20px 22px; border-top:1px solid var(--border); }
.cart-total-row{ display:flex; justify-content:space-between; font-size:17px; font-weight:600; margin-bottom:16px; }

/* ---------- Checkout ---------- */
.checkout-layout{ display:grid; grid-template-columns:1.1fr .9fr; gap:50px; padding:50px 0 80px; align-items:start; }
@media (max-width:900px){ .checkout-layout{ grid-template-columns:1fr; } }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12.5px; font-weight:600; letter-spacing:.03em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px 14px;
  background:#fff; color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--gold); outline-offset:0; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .field-row{ grid-template-columns:1fr; } }

.pago-metodo-opciones{ display:flex; flex-direction:column; gap:10px; }
.pago-metodo-op{
  display:flex; align-items:center; gap:10px; border:1.5px solid var(--border); border-radius:var(--radius);
  padding:12px 14px; cursor:pointer; font-size:13.5px; transition:border-color .15s, background .15s;
}
.pago-metodo-op input{ margin:0; accent-color:var(--wine); }
.pago-metodo-op.selected{ border-color:var(--wine); background:var(--blush-light); font-weight:600; }

.summary-card{ background:var(--blush-light); border:1px solid var(--border); border-radius:var(--radius-lg); padding:26px; }
.summary-line{ display:flex; justify-content:space-between; padding:9px 0; font-size:14px; }
.summary-line.total{ font-size:19px; font-weight:600; color:var(--wine); border-top:1px solid var(--border); margin-top:8px; padding-top:16px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--wine); color:#f4e4e0; padding:50px 0 26px; margin-top:50px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:36px; margin-bottom:36px; }
@media (max-width:700px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:#fff; font-size:14px; margin-bottom:14px; letter-spacing:.04em; text-transform:uppercase; }
.footer-grid a{ display:block; font-size:13.5px; color:#e9cfc9; margin-bottom:9px; }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.footer-social{ display:flex; gap:12px; margin-top:16px; }
.footer-social a{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.12); color:#fff; }
.footer-social a:hover{ background:rgba(255,255,255,.22); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.15); padding-top:20px; font-size:12px; color:#e0bdb6; text-align:center; }

/* ---------- WhatsApp flotante ---------- */
.wa-float{
  position:fixed; bottom:22px; right:22px; z-index:250;
  width:56px; height:56px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:26px; box-shadow:var(--shadow-lg);
}

/* ---------- Toast / feedback ---------- */
.toast-root{ position:fixed; bottom:20px; left:20px; z-index:400; display:flex; flex-direction:column; gap:8px; }
.toast{ background:var(--wine); color:#fff; padding:12px 18px; border-radius:10px; font-size:13.5px; box-shadow:var(--shadow-lg); }
.toast.danger{ background:var(--danger); }
.toast.success{ background:var(--success); }

/* ---------- Modal genérico (guía de tallas, etc.) ---------- */
.store-modal-overlay{
  position:fixed; inset:0; background:rgba(43,35,32,.5); z-index:500;
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.store-modal{ background:var(--cream); border-radius:var(--radius-lg); max-width:480px; width:100%; max-height:80vh; overflow:hidden; box-shadow:var(--shadow-lg); }
.store-modal-head{ display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--border); }
.store-modal-head h3{ font-size:17px; }
.store-modal-head button{ background:none; border:none; font-size:18px; color:var(--ink-muted); cursor:pointer; }
.store-modal-body{ padding:20px 22px; overflow-y:auto; max-height:calc(80vh - 60px); }
.size-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.size-table th, .size-table td{ padding:9px 10px; text-align:center; border-bottom:1px solid var(--border); }
.size-table th{ color:var(--wine); font-family:var(--font-display); }

/* ---------- Reseñas de clientas ---------- */
.testi-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px; }
.testi-card{ background:var(--surface,#fff); background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; }
.testi-stars{ font-size:13px; margin-bottom:10px; }
.testi-text{ font-style:italic; color:var(--ink-muted); line-height:1.6; margin-bottom:16px; }
.testi-author{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:13.5px; }
.testi-author img{ width:36px; height:36px; border-radius:50%; object-fit:cover; }
.testi-avatar{ width:36px; height:36px; border-radius:50%; background:var(--blush-light); display:flex; align-items:center; justify-content:center; }

/* ---------- Insignias de confianza ---------- */
.trust-badges{ display:flex; flex-direction:column; gap:8px; margin:18px 0; padding:14px 16px; background:var(--blush-light); border-radius:var(--radius); }
.trust-badges .tb-item{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--ink); }

/* ---------- Videos de TikTok ---------- */
.tiktok-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:22px; max-width:900px; margin:0 auto; }
.tiktok-grid .tiktok-embed{ margin:0 auto !important; }

/* ---------- Zoom / Lightbox ---------- */
.lightbox-overlay{
  position:fixed; inset:0; background:rgba(20,15,14,.92); z-index:600;
  display:flex; align-items:center; justify-content:center; padding:30px; cursor:zoom-out;
}
.lightbox-overlay img{ max-width:92vw; max-height:92vh; object-fit:contain; border-radius:8px; }
.lightbox-close{ position:absolute; top:20px; right:24px; background:none; border:none; color:#fff; font-size:28px; cursor:pointer; }

/* ---------- Contador de urgencia ---------- */
.urgency-timer{
  display:inline-block; background:var(--wine); color:#fff; padding:8px 16px; border-radius:999px;
  font-size:13px; font-weight:700; margin-bottom:16px; letter-spacing:.02em;
}

/* ---------- Filtros de catálogo ---------- */
.filter-bar{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:26px; align-items:center; }
.filter-bar select{
  padding:9px 14px; border-radius:999px; border:1px solid var(--border); background:#fff; font-size:13px; color:var(--ink);
}
.filter-bar .filter-clear{ font-size:12.5px; color:var(--gold-dark); font-weight:600; cursor:pointer; background:none; border:none; text-decoration:underline; }
.pc-badge.pc-new{ background:var(--success,#3E7D5A); }

/* ---------- Utilidades ---------- */
.faint{ color:var(--ink-faint); font-size:12.5px; }
.muted{ color:var(--ink-muted); }
.center{ text-align:center; }
.mb-8{ margin-bottom:8px; } .mb-16{ margin-bottom:16px; } .mb-24{ margin-bottom:24px; }
.skeleton{ background:linear-gradient(90deg, var(--blush-light) 25%, var(--border) 37%, var(--blush-light) 63%); background-size:400% 100%; animation:shimmer 1.4s infinite; border-radius:var(--radius); }
@keyframes shimmer{ 0%{background-position:100% 0;} 100%{background-position:0 0;} }
