/* =========================================================
   Tienda Vendedores — Réplica en español
   Tema oscuro · Poppins · grid 4 col · carrito + Wompi
   ========================================================= */

/* ----------  Reset / base  ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#565656;
  --bg-2:#4a4a4a;
  --bg-3:#3f3f3f;
  --line:rgba(255,255,255,.12);
  --text:#ffffff;
  --muted:#c9c9c9;
  --muted-2:#9a9a9a;
  --red:#f47a1e;
  --red-bright:#ff7a00;
  --blue:#38b6ff;
  --white:#ffffff;
  --radius:10px;
  --radius-sm:6px;
  --maxw:1180px;
  --font:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit}
ul{list-style:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.text-center{text-align:center}

/* ----------  Botones  ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:600;font-size:15px;line-height:1;
  padding:15px 22px;border-radius:8px;
  background:var(--white);color:#444;
  transition:transform .12s ease,opacity .2s ease,background .2s ease;
  width:100%;text-align:center;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn--block{width:100%}
.btn--red{background:var(--red);color:#fff}
.btn--red:hover{background:#b71f1f}
.btn--dark{background:#1f1f1f;color:#fff}
.btn--ghost{background:transparent;border:1px solid var(--line);color:#fff}
.btn[disabled],.btn.is-disabled{
  background:#6f6f6f;color:#d8d8d8;cursor:not-allowed;transform:none;opacity:.9;
}

/* ----------  Header  ---------- */
.site-header{
  position:sticky;top:0;z-index:60;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:var(--maxw);margin:0 auto;padding:18px 20px;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;
}
.hdr-left{display:flex;align-items:center;gap:18px}
.hdr-nav{display:flex;gap:22px}
.hdr-nav a{font-size:15.5px;font-weight:500;color:#eee;opacity:.9;transition:opacity .2s}
.hdr-nav a:hover{opacity:1}
.hdr-logo{justify-self:center;display:flex;align-items:center}
.hdr-logo img{height:74px;width:auto;object-fit:contain}
.hdr-actions{justify-self:end;display:flex;align-items:center;gap:8px}
.hdr-icon{
  width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;color:#fff;position:relative;transition:background .2s}
.hdr-icon:hover{background:rgba(255,255,255,.1)}
.hdr-icon svg{width:21px;height:21px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.menu-toggle{display:none}
.cart-count{
  position:absolute;top:2px;right:2px;min-width:17px;height:17px;padding:0 4px;
  background:var(--red);color:#fff;border-radius:9px;font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;line-height:1}
.cart-count[data-empty="true"]{display:none}

/* ----------  Hero / page title  ---------- */
.page-head{padding:46px 0 8px;text-align:center}
.page-head h1{font-size:34px;font-weight:700}
.breadcrumb{margin:6px 0 0;font-size:13px;color:var(--muted-2)}
.breadcrumb a:hover{color:#fff}

/* ----------  Section heading  ---------- */
.section{padding:40px 0}
.section-title{text-align:center;font-size:30px;font-weight:700;margin-bottom:30px}

/* ----------  Product grid  ---------- */
.collection{padding:34px 0 10px}
.product-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:22px;
}
.card{display:flex;flex-direction:column;text-align:center}
.card-media{
  position:relative;display:block;border-radius:var(--radius);overflow:hidden;
  background:#1c1c1c;aspect-ratio:1/1;
}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.card:hover .card-media img{transform:scale(1.04)}
.badge{
  position:absolute;left:10px;bottom:10px;z-index:2;
  background:#fff;color:#222;font-size:11px;font-weight:700;
  padding:5px 10px;border-radius:30px;letter-spacing:.2px;
  box-shadow:0 2px 8px rgba(0,0,0,.25)}
.badge--sold{background:#ddd;color:#333}
.card-title{margin:13px 0 6px;font-size:15px;font-weight:600;color:#fff}
.card-title a:hover{text-decoration:underline}
.price{display:flex;gap:8px;align-items:baseline;justify-content:center;font-size:14px}
.price .now{font-weight:700;color:#fff}
.price .was{color:var(--muted-2);text-decoration:line-through;font-size:13px}
.price .cur{font-size:12px;color:var(--muted);margin-left:2px}

/* ----------  Resultados actuales (stats)  ---------- */
.stats{padding:30px 0 10px}
.stats-list{max-width:430px;margin:0 auto;display:flex;flex-direction:column;gap:22px}
.stat{display:flex;align-items:center;gap:18px;justify-content:flex-start;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:20px}
.stat-ring{
  flex:0 0 auto;width:62px;height:62px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:transparent;border:3px solid #fff;
  font-size:15px;font-weight:700;color:#fff}
.stat-label{font-size:15px;color:#eaeaea}

/* ----------  Formulario de contacto  ---------- */
.contact{padding:40px 0 50px}
.contact-form{max-width:480px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13px;color:var(--muted)}
.field .req{color:var(--red-bright)}
.field input,.field textarea{
  width:100%;background:var(--bg-3);color:#fff;border:1px solid var(--line);
  border-radius:var(--radius-sm);padding:13px 14px;font-size:14px;font-family:inherit;
  transition:border-color .2s,box-shadow .2s}
.field input::placeholder,.field textarea::placeholder{color:#8d8d8d}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(56,182,255,.18)}
.field textarea{min-height:120px;resize:vertical}
.field.invalid input,.field.invalid textarea{border-color:var(--red-bright)}
.form-msg{font-size:14px;text-align:center;min-height:20px}
.form-msg.ok{color:#7CFC9A}
.form-msg.err{color:#ff8a8a}

/* ----------  Footer  ---------- */
.site-footer{border-top:1px solid var(--line);padding:34px 0 28px;margin-top:20px}
.pay-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:20px}
.pay-row svg{height:24px;width:38px;border-radius:4px;background:#fff}
.footer-bottom{text-align:center;color:var(--muted);font-size:13px}
.footer-bottom .copy{margin-bottom:8px}
.footer-links{display:flex;gap:8px 16px;flex-wrap:wrap;justify-content:center}
.footer-links a{color:var(--muted);transition:color .2s}
.footer-links a:hover{color:#fff;text-decoration:underline}

/* ----------  Drawers / overlay shared  ---------- */
.backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:80;
  opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.backdrop.is-open{opacity:1;visibility:visible}

/* Mobile menu (left) */
.mobile-menu{
  position:fixed;top:0;left:0;height:100%;width:300px;max-width:84vw;z-index:90;
  background:var(--bg-2);border-right:1px solid var(--line);
  transform:translateX(-105%);transition:transform .3s ease;
  display:flex;flex-direction:column;padding:18px}
.mobile-menu.is-open{transform:translateX(0)}
.mm-head{display:flex;justify-content:flex-end;margin-bottom:10px}
.mobile-menu nav{display:flex;flex-direction:column;gap:4px}
.mobile-menu nav a{padding:14px 6px;font-size:17px;font-weight:500;border-bottom:1px solid var(--line)}

/* Cart drawer (right) */
.cart-drawer{
  position:fixed;top:0;right:0;height:100%;width:410px;max-width:92vw;z-index:90;
  background:var(--bg-2);border-left:1px solid var(--line);
  transform:translateX(105%);transition:transform .3s ease;
  display:flex;flex-direction:column}
.cart-drawer.is-open{transform:translateX(0)}
.cart-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line)}
.cart-head h2{font-size:20px;font-weight:600}
.icon-btn{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;transition:background .2s}
.icon-btn:hover{background:rgba(255,255,255,.1)}
.icon-btn svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cart-body{flex:1;overflow-y:auto;padding:18px 22px}
.cart-empty{text-align:center;padding:40px 10px;color:var(--muted)}
.cart-empty p{margin-bottom:18px;font-size:16px}
.cart-empty .small{font-size:13px;margin-top:18px;color:var(--muted-2)}
.cart-item{display:grid;grid-template-columns:64px 1fr auto;gap:13px;padding:15px 0;border-bottom:1px solid var(--line)}
.cart-item img{width:64px;height:64px;border-radius:8px;object-fit:cover;background:#1c1c1c}
.ci-info{display:flex;flex-direction:column;gap:6px;min-width:0}
.ci-title{font-size:14px;font-weight:600;line-height:1.3}
.ci-price{font-size:13px;color:var(--muted)}
.ci-qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:7px;overflow:hidden;width:max-content}
.ci-qty button{width:30px;height:30px;font-size:16px;color:#fff;display:flex;align-items:center;justify-content:center}
.ci-qty button:hover{background:rgba(255,255,255,.08)}
.ci-qty span{min-width:30px;text-align:center;font-size:14px}
.ci-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}
.ci-line{font-size:14px;font-weight:600}
.ci-remove{font-size:12px;color:var(--muted-2);text-decoration:underline}
.ci-remove:hover{color:#ff8a8a}
.cart-foot{padding:18px 22px;border-top:1px solid var(--line)}
.cart-subtotal{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.cart-subtotal .lbl{font-size:16px;font-weight:600}
.cart-subtotal .val{font-size:18px;font-weight:700}
.cart-note{font-size:12px;color:var(--muted-2);margin-bottom:14px}
.cart-foot .btn{margin-top:4px}

/* Search overlay (top) */
.search-overlay{
  position:fixed;top:0;left:0;right:0;z-index:95;background:var(--bg-2);
  border-bottom:1px solid var(--line);transform:translateY(-105%);
  transition:transform .3s ease;padding:18px 0}
.search-overlay.is-open{transform:translateY(0)}
.search-box{max-width:var(--maxw);margin:0 auto;padding:0 20px}
.search-input-row{display:flex;align-items:center;gap:12px;border-bottom:2px solid var(--line);padding-bottom:10px}
.search-input-row svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;flex:0 0 auto}
.search-input-row input{flex:1;background:transparent;border:0;color:#fff;font-size:20px;font-family:inherit}
.search-input-row input:focus{outline:none}
.search-results{margin-top:14px;max-height:50vh;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.sr-item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:8px;transition:background .2s}
.sr-item:hover{background:rgba(255,255,255,.07)}
.sr-item img{width:46px;height:46px;border-radius:6px;object-fit:cover;background:#1c1c1c}
.sr-info{display:flex;flex-direction:column}
.sr-title{font-size:14px;font-weight:600}
.sr-price{font-size:13px;color:var(--muted)}
.sr-empty{padding:14px 10px;color:var(--muted-2);font-size:14px}

/* Modal */
.modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(0,0,0,.6);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.modal.is-open{opacity:1;visibility:visible}
.modal-card{background:var(--bg-2);border:1px solid var(--line);border-radius:14px;max-width:420px;width:100%;
  padding:30px 26px;position:relative;text-align:center;box-shadow:var(--shadow)}
.modal-close{position:absolute;top:12px;right:12px}
.modal-card h3{font-size:20px;margin-bottom:12px}
.modal-card p{color:var(--muted);font-size:14px;margin-bottom:18px}

/* Toast */
.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);
  background:#1f1f1f;color:#fff;padding:13px 20px;border-radius:10px;font-size:14px;font-weight:500;
  box-shadow:var(--shadow);z-index:120;opacity:0;visibility:hidden;transition:all .3s ease;max-width:90vw}
.toast.is-open{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}

/* ----------  Product page  ---------- */
.product{padding:30px 0 10px}
.product-wrap{display:grid;grid-template-columns:1fr 1fr;gap:46px;align-items:start}
.product-gallery{position:sticky;top:90px}
.product-gallery .main-img{border-radius:var(--radius);overflow:hidden;background:#1c1c1c;aspect-ratio:1/1}
.product-gallery .main-img img{width:100%;height:100%;object-fit:cover}
.p-flag{font-size:12px;font-weight:700;letter-spacing:.5px;color:var(--red-bright)}
.p-reviews-top{font-size:13px;color:var(--muted);margin:6px 0 4px}
.product-info h1{font-size:30px;font-weight:700;margin:6px 0 14px}
.p-bullets{display:flex;flex-direction:column;gap:7px;margin:0 0 20px}
.p-bullets li{font-size:15px;color:#eaeaea}
.p-price{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.p-price .now{font-size:26px;font-weight:700}
.p-price .was{font-size:17px;color:var(--muted-2);text-decoration:line-through}
.p-save{display:inline-block;background:var(--red);color:#fff;font-size:12px;font-weight:700;padding:4px 10px;border-radius:20px}
.p-unit{font-size:12px;color:var(--muted-2);margin-bottom:18px}
.p-pay{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}
.p-pay svg{height:22px;width:34px;border-radius:4px;background:#fff}
.qty-row{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.qty-row .lbl{font-size:14px;color:var(--muted)}
.qty-stepper{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.qty-stepper button{width:42px;height:46px;font-size:20px;color:#fff;display:flex;align-items:center;justify-content:center}
.qty-stepper button:hover{background:rgba(255,255,255,.08)}
.qty-stepper input{width:50px;height:46px;text-align:center;background:transparent;border:0;color:#fff;font-size:16px;font-family:inherit}
.qty-stepper input:focus{outline:none}
.p-actions{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.p-note{font-size:13px;color:var(--muted);background:var(--bg-3);border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin-top:8px}
.p-note strong{color:#fff}

/* Reviews */
.reviews{display:flex;flex-direction:column;gap:14px;margin:26px 0}
.review{display:flex;gap:14px;align-items:flex-start;background:var(--bg-3);border:1px solid var(--line);border-radius:12px;padding:15px}
.review .avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#1c1c1c}
.review .r-body p{font-size:14px;color:#eaeaea;margin-bottom:6px}
.review .r-name{font-size:13px;font-weight:600}
.review .stars{color:#ffc83d;font-size:13px;letter-spacing:1px}

/* Carrusel de reseñas */
.review-carousel{margin:18px 0 8px}
.rc-viewport{overflow:hidden;border-radius:12px}
.rc-track{display:flex;transition:transform .4s ease}
.rc-slide{min-width:100%;flex:0 0 100%}
.rc-slide .review{margin:0;height:100%}
.rc-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px}
.rc-arrow{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:0;color:#fff;background:rgba(255,255,255,.08)}
.rc-arrow:hover{background:rgba(255,255,255,.18)}
.rc-dots{display:flex;gap:8px}
.rc-dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.3);padding:0}
.rc-dot.is-active{background:var(--red)}

/* FAQ */
.faq{max-width:760px;margin:0 auto}
.faq-item{border-bottom:1px solid var(--line)}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:18px 4px;font-size:16px;font-weight:600;text-align:left}
.faq-q .ico{flex:0 0 auto;font-size:22px;font-weight:400;transition:transform .25s}
.faq-item.open .faq-q .ico{transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease;color:var(--muted)}
.faq-a-inner{padding:0 4px 18px;font-size:14px;line-height:1.6}

/* Rich text (policies / long desc) */
.rich{max-width:820px;margin:0 auto;color:#e6e6e6}
.rich h2{font-size:24px;margin:26px 0 12px}
.rich h3{font-size:19px;margin:22px 0 10px}
.rich p{margin-bottom:14px;font-size:15px;line-height:1.7;color:#dcdcdc}
.rich ul{margin:0 0 16px;padding-left:0;display:flex;flex-direction:column;gap:10px}
.rich ul li{font-size:15px;line-height:1.6;color:#dcdcdc}
.rich strong{color:#fff}
.rich a{color:var(--blue);text-decoration:underline}

/* ----------  Responsive  ---------- */
@media (max-width:1000px){
  .product-grid{grid-template-columns:repeat(3,1fr);gap:18px}
}
@media (max-width:860px){
  .hdr-nav{display:none}
  .menu-toggle{display:inline-flex}
  .header-inner{grid-template-columns:auto 1fr auto}
  .hdr-logo{justify-self:center}
  .hdr-logo img{height:56px}
  .product-wrap{grid-template-columns:1fr;gap:26px}
  .product-gallery{position:static}
  .product-info h1{font-size:25px}
}
@media (max-width:640px){
  .product-grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .form-row{grid-template-columns:1fr}
  .section-title{font-size:24px}
  .page-head h1{font-size:27px}
  .hdr-actions{gap:2px}
  .hdr-icon{width:38px;height:38px}
  .card-title{font-size:13.5px}
}
@media (max-width:380px){
  .product-grid{gap:11px}
}
