/* =========================================================
   DSL STORE · Black x Gold — CSS compacto
   ========================================================= */

/* ---------- Variables ---------- */
:root{
  --gold:#D4C7A1; --gold-hover:#C6B894; --gold-strong:#b08900;
  --bg:#F9F9F9; --card:#FFF; --fg:#111; --muted:#6b7280; --border:#E6E6E6;
  --black:#000;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0 0 8px}
h1{font-size:1.6rem} h2{font-size:1.2rem;color:var(--muted);font-weight:700}
main{max-width:1100px;margin:20px auto;padding:0 12px}
.muted{color:var(--muted)} .hidden{display:none!important}

/* =========================================================
   NAVBAR
   ========================================================= */
header{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:10px 16px;background:#000;border-bottom:1px solid #111}
.nav{display:flex;align-items:center;flex:1;gap:16px;justify-content:space-between}
.nav a{color:#fff;opacity:.95;padding:8px 10px;border-radius:10px;transition:.2s}
.nav a:hover{background:#111}
.nav a.active{background:linear-gradient(135deg,var(--gold),#E8DFC5);color:#000;font-weight:700}

/* Nav search */
.nav-search{
  flex:1;
  max-width:360px;
  display:flex;
  align-items:center;
  gap:8px;
}
.nav-search-icon{
  font-size:0.9rem;
  opacity:.8;
}
.nav-search input{
  width:100%;
}

/* Hamburger toggle (mobile) */
.nav-toggle{
  display:none;
  background:#000;
  border:1px solid #333;
  border-radius:999px;
  width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:16px;
  height:2px;
  border-radius:999px;
  background:#f9f9f9;
  transition:transform .18s ease,opacity .18s ease;
}
.nav-toggle span+span{margin-top:3px;}
.nav-toggle.open span:nth-child(1){
  transform:translateY(5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2){
  opacity:0;
}
.nav-toggle.open span:nth-child(3){
  transform:translateY(-5px) rotate(-45deg);
}

/* Mobile nav behavior */
@media (max-width:768px){
  header.site-header{
    padding:8px 12px;
  }
  .nav-toggle{
    display:inline-flex;
  }
  .nav{
    position:fixed;
    top:56px;
    left:0;
    right:0;
    background:#000;
    flex-direction:column;
    align-items:flex-start;
    padding:12px 16px 16px;
    gap:10px;
    transform:translateY(-130%);
    opacity:0;
    pointer-events:none;
    transition:transform .22s ease,opacity .22s ease;
  }
  .nav.open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .nav a{
    width:100%;
    text-align:left;
    background:#111;
  }
  .nav-search{
    width:100%;
    max-width:none;
  }
}

/* Logo */

.logo{flex-shrink:0;background:transparent!important;padding:0!important;border-radius:0!important;box-shadow:none!important}
.logo img{height:45px;width:auto;object-fit:contain;display:block}
.logo a:hover img{transform:scale(1.04);filter:drop-shadow(0 0 10px rgba(212,175,55,.35));transition:transform .15s ease,filter .15s ease}
@media (max-width:480px){.logo img{height:40px}}

/* =========================================================
   CONTROLES
   ========================================================= */
.btn{background:var(--gold);color:#1a1a1a;border:none;border-radius:14px;padding:10px 14px;font-weight:600;cursor:pointer;transition:background .15s,box-shadow .15s}
.btn:hover{background:var(--gold-hover);box-shadow:0 8px 20px rgba(0,0,0,.06)}
.btn.secondary{background:#fff;color:#111;border:1px solid var(--border)}
.btn[disabled]{opacity:.5;cursor:not-allowed}

input[type="search"],input[type="text"],input[type="number"],select{
  border-radius:14px;border:1px solid var(--border);background:#fff;color:#111;padding:12px}

/* Chips / Filtros */
#catButtons{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
#catSelectMobile{
  display:none;
}

/* Mobile: usar desplegable en lugar de chips */
@media (max-width:720px){
  #catButtons{
    display:none;
  }
  #catSelectMobile{
    display:block;
    width:100%;
    margin:10px 0;
    border-radius:14px;
    border:1px solid var(--border);
    background:#fff;
    color:#111;
    padding:10px 12px;
    font-size:0.95rem;
  }
}

.chip{padding:8px 14px;border-radius:12px;border:1px solid var(--border);background:#fff;color:#111;cursor:pointer;transition:.15s}
.chip:hover{box-shadow:0 2px 8px rgba(0,0,0,.06)}
.chip.active{background:var(--gold);color:#000;border-color:var(--gold-hover);font-weight:700}
#filtersBar{display:flex;align-items:center;gap:10px;margin:8px 0 14px}
#filtersBar .btn.secondary{border:1px solid var(--border);background:#1b1b1b;color:#e8e8e8;border-radius:10px;padding:8px 12px}

/* Range precio (único) */
.price-range{display:flex;align-items:center;gap:10px}
.price-range input[type=range]{appearance:none;height:4px;background:#2a2a2a;border-radius:6px}
.price-range input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border-radius:50%;background:var(--gold);border:2px solid var(--gold-hover)}
.range-labels{font-size:.9rem;color:var(--muted)}
/* Si algún JS reinyecta el chip de “Envío 24/48hs”, lo oculto */
#onlyExpress,.chip[data-express],.chip.express{display:none!important}

/* =========================================================
   GRID + CARDS
   ========================================================= */
/* Grid responsive */
#productGrid.productos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
@media (max-width:960px){#productGrid.productos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){#productGrid.productos-grid{grid-template-columns:1fr}}

/* Modo lista */
#productGrid.productos-list{display:flex;flex-direction:column;gap:14px}
#productGrid.productos-list .product-card{display:grid;grid-template-columns:120px 1fr auto;align-items:center;padding:14px 16px}
#productGrid.productos-list .img-wrap{width:120px;height:90px}
#productGrid.productos-list .actions-row{justify-content:flex-end}

/* Card base */
.product-card{background:var(--card);border:1px solid var(--border);border-radius:18px;box-shadow:0 10px 22px rgba(0,0,0,.08);
  overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:14px;transition:transform .15s ease,box-shadow .15s ease}
.product-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,0,0,.16)}
.product-card .img-wrap{position:relative;width:100%;height:170px;display:flex;align-items:center;justify-content:center}
.product-card .img-wrap img{max-width:90%;max-height:160px;object-fit:contain}
.product-card .title{font-weight:800;text-align:center;margin:8px 0 4px;min-height:40px}
.product-card .desc{color:var(--muted);font-size:.92rem;line-height:1.25;margin:6px 0;min-height:36px;text-align:center}

/* Precio */
.price{display:flex;gap:8px;align-items:center;justify-content:center}
.price .now{color:var(--gold-strong);font-weight:900;font-size:1.25rem;font-variant-numeric:tabular-nums}
.price .old{color:#9ca3af;text-decoration:line-through}

/* OFF badge */
.off-badge{position:absolute;left:10px;top:10px;width:48px;height:48px;border-radius:999px;background:var(--gold);color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px rgba(0,0,0,.18)}

/* Qty + CTA */
.actions-row{width:100%;margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.actions-row .btn.add-cart{flex:1;min-width:160px}
.qty-row{display:flex;align-items:center;gap:6px}
.qty-btn{width:24px;height:24px;border-radius:999px;border:1px solid var(--border);background:#f4f4f4;line-height:24px;text-align:center;padding:0;font-weight:900}
.qty-btn:hover{filter:brightness(1.05)}
.qty-input{width:44px;height:28px;border:1px solid var(--border);border-radius:10px;text-align:center;padding:4px 6px}

/* =========================================================
   PRODUCTO (detalle)
   ========================================================= */
main.detail{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start;max-width:1100px;margin:24px auto;padding:0 12px}
@media (max-width:900px){main.detail{grid-template-columns:1fr}}
#mainImage{width:100%;height:360px;object-fit:contain;border-radius:16px;border:1px solid var(--border);background:#fff}
#thumbs{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
#thumbs img{width:88px;height:72px;object-fit:cover;border-radius:10px;border:1px solid var(--border);cursor:pointer;opacity:.9}
#thumbs img:hover{opacity:1}

/* =========================================================
   CARRITO
   ========================================================= */
.cart-panel{position:fixed;right:0;top:0;bottom:0;width:360px;max-width:92vw;transform:translateX(100%);transition:transform .25s;
  background:#000;color:#fff;border-left:1px solid #111;z-index:3000;display:flex;flex-direction:column}
.cart-panel.open{transform:none}
.cart-header{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid #111}
.cart-header h3{margin:0}
.cart-items{flex:1;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:10px}
.cart-item{display:flex;gap:10px;align-items:center;border-bottom:1px dashed #222;padding-bottom:8px}
.cart-item img{width:56px;height:56px;object-fit:cover;border-radius:12px;border:1px solid #222}
.cart-footer{padding:12px 14px;border-top:1px solid #111;display:flex;flex-direction:column;gap:8px}
.cart-total{font-weight:900}
.cart-close{background:none;border:none;color:#fff;font-size:1.3rem;cursor:pointer}

/* Controles compactos (a juego con la X) */
.cart-panel .qty-btn{width:24px;height:24px;border-radius:8px;padding:0;line-height:24px;font-size:14px}
.cart-panel .qty-val{min-width:22px;text-align:center}
.cart-panel .btn[data-act="rm"],.cart-panel .remove-btn{padding:4px 8px;border-radius:8px;background:#2a2a2a;border:1px solid #333;color:#ddd}
.cart-panel .btn[data-act="rm"]:hover{background:#3a3a3a}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{background:#000;color:#ddd;padding:18px 20px;margin-top:24px}
.site-footer .container{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.site-footer a{color:#d4af37} .site-footer a:hover{text-decoration:underline}

/* =========================================================
   WHATSAPP (SVG inline centrado)
   ========================================================= */
.fab-whatsapp{position:fixed;right:16px;bottom:18px;width:60px;height:60px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;background:transparent;box-shadow:0 6px 18px rgba(0,0,0,.25);z-index:1000;transition:transform .15s}
.fab-whatsapp:hover{transform:scale(1.07)}
.fab-whatsapp .wa-ico{width:60px;height:60px;display:block}
@media (max-width:600px){.fab-whatsapp{right:14px;bottom:80px}}

/* override for feature icons (gold, no filter) */
.feature-card .icon img{ filter:none !important; }

/* feature cards row robust sizing */

.features-row{max-width:1100px;margin:18px auto 16px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:0 12px}
.feature-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 16px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  text-align:center;
}
.feature-card .icon{
  width:170px;
  height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:24px;
  background:transparent;
}
.feature-card .icon img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.feature-card h3{
  margin:4px 0 2px;
  font-size:18px;
  font-weight:800;
}
.feature-card p{
  margin:0;
  color:var(--muted);
}
@media (max-width:720px){
  .features-row{grid-template-columns:1fr}
}
#homeFeatured.productos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.nav-search{display:flex;align-items:center;justify-content:center;flex:1;margin:0 24px}
.nav-search input{
  min-width:220px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #333;
  background:#111;
  color:#eee;
  font-size:.9rem;
}
.nav-search input::placeholder{color:#777}
@media (max-width:720px){
  .nav-search input{min-width:140px;font-size:.8rem}
}

/* Ocultar flechas de inputs numéricos (cantidad) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{
  -webkit-appearance:none;
  margin:0;
}
input[type=number]{-moz-appearance:textfield;appearance:textfield;}

/* Hero video */
#hero .product-card{overflow:hidden;border-radius:18px;}
.hero-video{
  width:100%;
  height:360px;
  object-fit:cover;
  display:block;
}
@media (max-width:720px){
  .hero-video{height:240px;}
}

.product-card .actions-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}

/* grid de recomendados en detalle: 3 por fila en desktop */
@media (max-width:960px){
}
@media (max-width:620px){
}

/* Precio en detalle alineado a la izquierda */
#productPrice .price{justify-content:flex-start}
 

/* relacionados grid */
.relacionados-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:20px 0;}

/* Recommended products grid: always 3 cards per row on desktop */
#recommendedGrid.productos-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
@media (max-width:960px){
  #recommendedGrid.productos-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:620px){
  #recommendedGrid.productos-grid{
    grid-template-columns:1fr;
  }
}


/* Mantener botones de cupón en una sola fila */
#couponRow > div{
  flex-wrap:nowrap !important;
}


/* -------------------------
   BOTÓN FLOTANTE COMUNIDAD DSL
   ------------------------- */
.dsl-floating-community{
  position:fixed;
  bottom:96px;
  right:16px;
  width:60px;
  height:60px;
  border-radius:999px;

  box-shadow:0 0 25px rgba(212,192,122,0.9);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:9998;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.dsl-floating-community img{
  width:38px;
  height:38px;
  object-fit:contain;
  border-radius:50%;
}

/* halo animation */
@keyframes dsl-pulse{
  0%{ box-shadow:0 0 16px rgba(212,192,122,0.6); }
  50%{ box-shadow:0 0 32px rgba(212,192,122,1); }
  100%{ box-shadow:0 0 16px rgba(212,192,122,0.6); }
}
.dsl-floating-community{
  animation:dsl-pulse 2.4s ease-in-out infinite;
}

/* Tooltip */
.dsl-floating-community .dsl-tooltip{
  position:absolute;
  right:64px;
  padding:6px 12px;
  background:#D4C7A1;
  color:#000;
  font-size:.85rem;
  border-radius:10px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transform:translateX(8px);
  transition:opacity .2s ease, transform .2s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}
.dsl-floating-community:hover{
  transform:translateY(-3px) scale(1.05);

}
.dsl-floating-community:hover .dsl-tooltip{
  opacity:1;
  transform:translateX(0);
}

/* Ocultar tooltip en pantallas muy chicas */
@media (max-width:620px){
  .dsl-floating-community .dsl-tooltip{
    display:none;
  }
}


/* Ocultar botón comunidad cuando el carrito está abierto */
body.cart-open .dsl-floating-community{
  display:none;
}


/* ----- Detalle: galería de producto ----- */
.detail{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:28px;
  max-width:1100px;
  margin:18px auto 28px;
  padding:0 12px;
}
@media (max-width:860px){
  .detail{
    grid-template-columns:1fr;
  }
}
.detail-media img#mainImage{
  width:100%;
  max-height:420px;
  border-radius:18px;
  object-fit:contain;
  background:#000;
}
.thumbs-row{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}
.thumbs-row img{
  background:#000;
}

/* Ajuste móvil: separar botones flotantes */
@media (max-width:620px){
  .fab-whatsapp{
    right:14px;
    bottom:18px;
    width:54px;
    height:54px;
  }
  .dsl-floating-community{
    left:16px;
    right:auto;
    bottom:22px;
    width:54px;
    height:54px;
  }
}

@media (min-width:1024px){.nav-search{margin:0 auto;}}


/* -------- Popup Comunidad DSL -------- */
.dsl-popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.58);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.dsl-popup{
  background:#101010;
  border-radius:20px;
  padding:20px 22px 18px;
  max-width:420px;
  width:calc(100% - 40px);
  box-shadow:0 18px 40px rgba(0,0,0,0.75);
  border:1px solid rgba(212,192,122,0.65);
  position:relative;
}

.dsl-popup-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}

.dsl-popup-logo{
  width:40px;
  height:40px;
  border-radius:50%;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dsl-popup-logo img{
  width:30px;
  height:30px;
  object-fit:contain;
}

.dsl-popup-title{
  font-size:1.05rem;
  font-weight:600;
  color:#f8f8f8;
}

.dsl-popup-text{
  font-size:0.9rem;
  color:#d7d7d7;
  margin:4px 0 14px;
}

.dsl-popup-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.dsl-popup-join{
  border-radius:999px;
  padding:7px 16px;
  font-size:0.9rem;
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(135deg,#f4e3a2,#d4c07a);
  color:#000;
  font-weight:600;
}

.dsl-popup-join:hover{
  filter:brightness(1.05);
}

.dsl-popup-close{
  position:absolute;
  top:8px;
  right:10px;
  width:26px;
  height:26px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:rgba(255,255,255,0.06);
  color:#f5f5f5;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dsl-popup-close:hover{
  background:rgba(255,255,255,0.16);
}

@media (max-width:520px){
  .dsl-popup{
    padding:18px 16px 16px;
  }
}


/* --- Bloque dual de precios (Transf. / MP) --- */

/* Apple-style pricing card */

.price-dual{
  background:#f2f2f2;
  color:#111;
  border-radius:14px;
  padding:16px 18px;
  border:1px solid #e0e0e0;
  box-shadow:0 1px 4px rgba(0,0,0,0.05);
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
}



.price-dual .price-line{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.price-dual .label{
  font-size:0.75rem;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:#9a8b68;
  font-weight:600;
}

.price-dual .now,
.price-dual .mp{/* MP menos protagonista */
  font-size:0.95rem;
  font-weight:500;
  opacity:0.55;
  font-size:1.08rem;
  font-weight:800;
}

.price-dual .mp{/* MP menos protagonista */
  font-size:0.95rem;
  font-weight:500;
  opacity:0.55;
  color:#caa24a;
}

/* Nota aclaratoria debajo del total del carrito */
.cart-note{
  font-size:0.78rem;
  color:#777;
  margin-top:4px;
}

.price-dual .price-line{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}


/* === DSL custom: qty buttons smaller + gold style === */
.qty-btn{
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid var(--gold);
  background:transparent;
  color:var(--gold);
  line-height:22px;
  text-align:center;
  padding:0;
  font-weight:600;
  font-size:.8rem;
}
.qty-btn:hover{
  background:var(--gold-hover);
  color:#000;
  filter:none;
}

/* === DSL custom: OFF badge in gold circle, better numerals === */
.off-badge{
  position:absolute;
  left:10px;
  top:10px;
  width:46px;
  height:46px;
  border-radius:999px;
  background:var(--gold);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(0,0,0,.18);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:-0.02em;
  font-variant-numeric:tabular-nums;
}
.off-badge *{
  font-weight:700;
}

/* Cart panel specific qty buttons */
.cart-panel .qty-btn{
  width:22px;
  height:22px;
  min-width:22px;
  min-height:22px;
  border-radius:999px;
  border:1px solid var(--gold);
  background:transparent;
  color:var(--gold);
  line-height:22px;
  text-align:center;
  padding:0;
  font-weight:600;
  font-size:.8rem;
}
.cart-panel .qty-btn:hover{
  background:var(--gold-hover);
  color:#000;
}
.cart-panel .qty-row span,
.cart-panel .qty-row b{
  font-weight:600;
}
