@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root{
  --bg:       #f7f3ee;
  --bg2:      #efe9e0;
  --white:    #ffffff;
  --black:    #0e0e0e;
  --dark:     #1c1c1c;
  --card:     #ffffff;
  --border:   #e2dbd2;
  --beige:    #d4b896;
  --beige2:   #c9a87c;
  --text:     #1c1c1c;
  --muted:    #6f6459;
  --muted2:   #bbb0a4;
  --accent:   #1c1c1c;
  --lime:     #c8f135;
  --danger:   #d94f4f;
  --success:  #2d9e6b;
  --wpp:      #25d366;
  --of:       #d94f4f;
  --may:      #c9a87c;
  --btn:      #0e0e0e;
  --price:    #0e0e0e;
  --footer-bg:#0e0e0e;
  --radius:   12px;
  --shadow:   0 2px 20px rgba(0,0,0,0.06);
  --shadow-md:0 8px 32px rgba(0,0,0,0.1);
}

html{scroll-behavior:smooth;overflow-x:hidden;overscroll-behavior-x:none;}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden;overscroll-behavior-x:none;width:100%;max-width:100%;position:relative;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;}
::-webkit-scrollbar{width:4px;height:4px;}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px;}

/* ── TOPBAR ANNOUNCEMENT ── */
.topbar-announce{
  background:var(--black);color:var(--white);
  text-align:center;padding:8px 16px;
  font-size:0.75rem;letter-spacing:1px;font-weight:500;
}
.topbar-announce a{color:var(--beige);text-decoration:underline;}

/* ── NAVBAR ── */
.navbar{
  background:var(--white);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:600;
}
.navbar-inner{
  max-width:1200px;margin:0 auto;
  padding:0 20px;height:64px;
  display:flex;align-items:center;gap:16px;
}
.navbar-logo{
  font-family:'Playfair Display',serif;
  font-size:1.3rem;font-weight:700;
  color:var(--black);letter-spacing:-0.5px;
  white-space:nowrap;flex-shrink:0;
}
.navbar-logo span{color:var(--beige2);}
.navbar-logo-img{height:44px;width:auto;max-width:180px;object-fit:contain;display:block;}

.navbar-cats{
  display:flex;gap:0;margin-left:24px;flex:1;
  overflow-x:auto;scrollbar-width:none;
}
.navbar-cats::-webkit-scrollbar{display:none;}
.navbar-cat{
  padding:8px 16px;font-size:0.82rem;font-weight:500;
  color:var(--muted);white-space:nowrap;border:none;
  background:none;transition:color 0.2s;position:relative;
}
.navbar-cat::after{content:'';position:absolute;bottom:0;left:16px;right:16px;height:2px;background:var(--black);transform:scaleX(0);transition:transform 0.2s;}
.navbar-cat:hover,.navbar-cat.active{color:var(--black);}
.navbar-cat:hover::after,.navbar-cat.active::after{transform:scaleX(1);}

.navbar-right{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0;}
.nav-btn{
  width:40px;height:40px;border-radius:50%;
  background:none;border:none;color:var(--dark);
  display:flex;align-items:center;justify-content:center;
  transition:background 0.2s;position:relative;
}
.nav-btn:hover{background:var(--bg);}
.nav-badge{
  position:absolute;top:5px;right:5px;
  background:var(--black);color:var(--white);
  font-size:0.58rem;font-weight:800;
  width:15px;height:15px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}

/* ── SEARCH BAR (mobile) ── */
.mobile-search{
  background:var(--white);border-bottom:1px solid var(--border);
  padding:10px 16px;display:none;
}
@media(max-width:768px){
  .mobile-search{display:block;}
  .navbar-cats{display:none;}
}
.search-bar{
  display:flex;align-items:center;gap:10px;
  background:var(--bg);border:1px solid var(--border);
  border-radius:50px;padding:9px 16px;
  font-size:0.85rem;color:var(--muted);cursor:pointer;
}

/* ── SEARCH OVERLAY ── */
.search-overlay{
  display:none;position:fixed;inset:0;z-index:1000;
  background:rgba(247,243,238,0.98);padding:20px;
  flex-direction:column;
}
.search-overlay.open{display:flex;}
.search-top{display:flex;gap:12px;align-items:center;margin-bottom:20px;}
.search-input-real{
  flex:1;border:none;border-bottom:2px solid var(--black);
  background:transparent;padding:12px 4px;
  font-size:1.1rem;color:var(--text);outline:none;font-family:inherit;
}
.search-cancel-btn{font-size:0.875rem;color:var(--muted);white-space:nowrap;border:none;background:none;}
.search-res{flex:1;overflow-y:auto;}
.search-res-item{
  display:flex;gap:14px;align-items:center;
  padding:14px 0;border-bottom:1px solid var(--border);cursor:pointer;
}
.search-res-item:hover .sri-name{color:var(--beige2);}
.search-res-img{width:56px;height:56px;object-fit:cover;border-radius:8px;flex-shrink:0;background:var(--bg2);}
.sri-name{font-size:0.9rem;font-weight:600;transition:color 0.2s;}
.sri-price{font-size:0.8rem;color:var(--muted);margin-top:2px;}

/* ── HERO ── */
.hero{
  position:relative;background:var(--black);
  height:80vh;min-height:500px;max-height:700px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;
  background:linear-gradient(135deg,#1a1208 0%,#2d2218 50%,#1a1208 100%);
}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:0.7;}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 0.8s ease;pointer-events:none;}
.hero-slide.active{opacity:1;pointer-events:auto;}
.hero-content{
  position:absolute;bottom:0;left:0;right:0;top:0;
  display:flex;align-items:center;
  padding:0 max(24px, 5vw);
  max-width:700px;
}
.hero-inner{color:var(--white);}
.hero-eyebrow{
  display:inline-block;
  font-size:0.7rem;letter-spacing:3px;text-transform:uppercase;
  color:var(--beige);font-weight:600;margin-bottom:16px;
}
.hero-title{
  font-family:'Playfair Display',serif;
  font-size:clamp(2rem,6vw,3.8rem);
  font-weight:700;line-height:1.1;
  margin-bottom:16px;
}
.hero-sub{
  font-size:0.95rem;color:rgba(255,255,255,0.75);
  margin-bottom:32px;line-height:1.6;
  max-width:380px;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;}
.btn-hero-primary{
  padding:14px 28px;background:var(--white);color:var(--black);
  border-radius:50px;font-weight:700;font-size:0.875rem;
  border:none;transition:all 0.25s;
}
.btn-hero-primary:hover{background:var(--beige);transform:translateY(-2px);}
.btn-hero-ghost{
  padding:14px 28px;background:transparent;color:var(--white);
  border-radius:50px;font-weight:600;font-size:0.875rem;
  border:1px solid rgba(255,255,255,0.4);transition:all 0.25s;
}
.btn-hero-ghost:hover{border-color:var(--white);}
.hero-nav{
  position:absolute;bottom:28px;left:max(24px,5vw);
  display:flex;gap:8px;
}
.hero-dot{
  width:24px;height:3px;border-radius:2px;
  background:rgba(255,255,255,0.3);cursor:pointer;transition:all 0.3s;
}
.hero-dot.active{background:var(--white);width:48px;}
.hero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(255,255,255,0.1);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.2);color:var(--white);
  width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;transition:background 0.2s;border:none;
}
.hero-arrow:hover{background:rgba(255,255,255,0.25);}
.arrow-l{left:20px;}
.arrow-r{right:20px;}
/* En PC el track "desaparece" del layout: los slides se comportan igual que antes (fade). */
.hero-track{display:contents;}

/* ── CATS STRIP ── */
.cats-strip{padding:20px 0;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--border);background:var(--white);}
.cats-strip::-webkit-scrollbar{display:none;}
.cats-inner{display:flex;gap:8px;padding:0 20px;width:max-content;margin:0 auto;}
.cat-chip{
  padding:9px 20px;border-radius:50px;
  border:1.5px solid var(--border);background:var(--white);
  font-size:0.8rem;font-weight:600;color:var(--muted);
  white-space:nowrap;transition:all 0.2s;
}
.cat-chip:hover,.cat-chip.active{
  background:var(--black);color:var(--white);border-color:var(--black);
}

/* ── CONTAINER ── */
.container{max-width:1200px;margin:0 auto;padding:0 20px;}
.section{padding:48px 0;}

/* ── SECTION HEADER ── */
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px;}
.sec-title{
  font-family:'Playfair Display',serif;
  font-size:1.6rem;font-weight:700;
}
.sec-link{font-size:0.8rem;color:var(--muted);display:flex;align-items:center;gap:4px;transition:color 0.2s;}
.sec-link:hover{color:var(--black);}

/* ── BANNERS GRID ── */
.banners-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px;}
.banner-tile{
  position:relative;border-radius:var(--radius);overflow:hidden;
  cursor:pointer;min-height:240px;background:var(--bg2);
}
.banner-tile:first-child{grid-column:span 2;min-height:320px;}
.banner-tile img{width:100%;height:100%;object-fit:cover;transition:transform 0.4s;}
.banner-tile:hover img{transform:scale(1.03);}
.banner-tile-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.1) 60%,transparent 100%);
  padding:20px;display:flex;flex-direction:column;justify-content:flex-end;
}
.btag{font-size:0.65rem;letter-spacing:2px;text-transform:uppercase;color:var(--beige);font-weight:700;margin-bottom:6px;}
.btitle{font-family:'Playfair Display',serif;font-size:1.1rem;font-weight:700;color:#fff;line-height:1.2;}
.bsub{font-size:0.78rem;color:rgba(255,255,255,0.75);margin-top:4px;}
.banner-arrow{
  position:absolute;top:16px;right:16px;
  width:34px;height:34px;border-radius:50%;
  background:rgba(255,255,255,0.15);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:0.9rem;
}

/* ── PRODUCT GRID ── */
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
}
@media(max-width:600px){
  .products-grid{grid-template-columns:1fr 1fr;gap:10px;}
  .banners-row{grid-template-columns:1fr;}
  .banner-tile:first-child{grid-column:span 1;}
}

/* ── PRODUCT CARD ── */
.prod-card{
  background:var(--card);border-radius:var(--radius);
  overflow:hidden;cursor:pointer;
  transition:transform 0.25s,box-shadow 0.25s;
  box-shadow:var(--shadow);position:relative;
}
.prod-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);}
.prod-img{
  aspect-ratio:3/4;overflow:hidden;
  background:var(--bg2);position:relative;
}
.prod-img img{
  width:100%;height:100%;object-fit:cover;
  transition:transform 0.4s;
}
.prod-card:hover .prod-img img{transform:scale(1.06);}
.prod-ph{
  width:100%;height:100%;min-height:200px;
  display:flex;align-items:center;justify-content:center;
  font-size:3.5rem;color:var(--muted2);
}
.prod-badge{
  position:absolute;top:10px;left:10px;
  padding:4px 10px;border-radius:20px;
  font-size:0.65rem;font-weight:800;letter-spacing:0.5px;text-transform:uppercase;
}
.pb-sale{background:var(--black);color:var(--white);}
.pb-new{background:var(--beige2);color:var(--white);}
.pb-mayor{background:rgba(255,255,255,0.9);color:var(--black);border:1px solid var(--border);}
.pb-nostock{background:rgba(0,0,0,0.5);color:#fff;}
.prod-quick{
  position:absolute;bottom:-40px;left:0;right:0;
  background:rgba(28,28,28,0.9);backdrop-filter:blur(8px);
  color:#fff;font-size:0.78rem;font-weight:600;letter-spacing:0.5px;
  padding:12px;text-align:center;
  transition:bottom 0.25s;border:none;width:100%;
}
.prod-card:hover .prod-quick{bottom:0;}
.prod-info{padding:14px 12px;}
.prod-name{
  font-size:0.875rem;font-weight:600;
  margin-bottom:3px;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;
}
.prod-cat{font-size:0.72rem;color:var(--muted);margin-bottom:10px;}
.prod-prices{display:flex;align-items:center;justify-content:space-between;}
.prod-price{font-size:0.95rem;font-weight:700;color:var(--price);}
.prod-old{font-size:0.78rem;color:var(--muted);text-decoration:line-through;}
.prod-price-col{display:flex;flex-direction:column;}
.btn-plus{
  width:34px;height:34px;border-radius:50%;
  background:var(--btn);color:var(--white);border:none;
  display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;font-weight:700;flex-shrink:0;
  transition:all 0.2s;
}
.btn-plus:hover{background:var(--beige2);transform:scale(1.1);}
.btn-plus:disabled{background:var(--border);color:var(--muted);cursor:not-allowed;transform:none;}

/* ── FILTER BAR ── */
.filter-bar{display:flex;gap:8px;align-items:center;margin-bottom:24px;flex-wrap:wrap;}
.filter-select{
  padding:8px 14px;border:1.5px solid var(--border);
  border-radius:50px;font-size:0.8rem;font-family:inherit;
  background:var(--white);color:var(--text);outline:none;transition:border 0.2s;
}
.filter-select:focus{border-color:var(--black);}
.results-label{margin-left:auto;font-size:0.8rem;color:var(--muted);}

/* ── SECCIÓN CATEGORÍAS ── */
.cat-section{padding:44px 0 12px;}
.cat-section-head{font-family:'Playfair Display',serif;font-size:2rem;font-weight:700;letter-spacing:-0.5px;}
.cat-section-sub{color:var(--muted);font-size:0.95rem;margin-top:4px;margin-bottom:20px;}

/* Tarjetas de categoría (grandes y vistosas) */
.catcards{display:flex;gap:18px;overflow-x:auto;scrollbar-width:none;padding:4px 2px 8px;}
.catcards::-webkit-scrollbar{display:none;}
.catcard{position:relative;flex-shrink:0;width:340px;height:220px;border-radius:22px;overflow:hidden;cursor:pointer;border:none;padding:0;font-family:inherit;background:var(--black);box-shadow:0 10px 26px rgba(0,0,0,0.16);transition:transform .25s, box-shadow .25s;}
.catcard:hover{transform:translateY(-5px);box-shadow:0 20px 40px rgba(0,0,0,0.28);}
.catcard>img,.catcard-noimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .55s ease;}
.catcard-noimg{background:linear-gradient(135deg,#2d2218,#1a1208);}
.catcard:hover>img{transform:scale(1.08);}
/* Texto arriba, botón abajo: el centro de la imagen queda limpio (el producto se luce). */
.catcard-ov{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;text-align:center;padding:20px 16px;background:linear-gradient(to bottom,rgba(0,0,0,0.60) 0%,rgba(0,0,0,0.16) 22%,rgba(0,0,0,0) 42%,rgba(0,0,0,0) 56%,rgba(0,0,0,0.30) 76%,rgba(0,0,0,0.80) 100%);}
.catcard-cta{color:#fff;font-family:'Playfair Display',serif;font-size:0.95rem;font-weight:500;line-height:1.15;text-shadow:0 2px 12px rgba(0,0,0,0.85);opacity:.92;}
.catcard-cta strong{display:block;font-weight:800;font-size:1.55rem;letter-spacing:0.2px;margin-top:1px;opacity:1;}
.catcard-go{display:inline-flex;align-items:center;gap:6px;color:#fff;font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;border:1.4px solid rgba(255,255,255,0.6);padding:6px 15px;border-radius:50px;transition:all .22s;background:rgba(0,0,0,.12);backdrop-filter:blur(1px);}
.catcard:hover .catcard-go{background:#fff;color:var(--black);border-color:#fff;}
.catcard.active{outline:3px solid var(--black);outline-offset:3px;}
.catcard.active .catcard-go{background:#fff;color:var(--black);border-color:#fff;}
.catcard-wrap{display:flex;flex-direction:column;gap:10px;flex-shrink:0;}
/* En celular, SOLO en modo apiladas las categorías se apilan a lo ancho.
   El modo horizontal (carrusel) se controla desde index.php. */
@media(max-width:640px){
  .catmovil-apiladas .catcards{flex-direction:column;overflow-x:visible;gap:14px;}
  .catmovil-apiladas .catcard-wrap{width:100%!important;flex-shrink:1;}
  .catmovil-apiladas .catcard{width:100%!important;}
}
.catcard-promos{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;}
.catcard-promos .promo-btn{padding:8px 14px;font-size:0.76rem;}
.hero-promos-inline{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}

/* ── SECCIÓN PRODUCTOS ── */
#productos,#categorias{scroll-margin-top:80px;}
.prod-big-title{font-family:'Playfair Display',serif;font-size:2.2rem;font-weight:700;letter-spacing:-0.5px;margin:6px 0 22px;}

/* ── SHOP BAR (Filtrar · Ordenar · subcategorías) ── */
.shopbar{display:flex;align-items:center;gap:14px;background:var(--white);padding:2px 0 12px;flex-wrap:wrap;}
.shopbar-actions{display:flex;gap:10px;flex-shrink:0;}
.shopbar-count{font-size:0.82rem;color:var(--muted);font-weight:600;padding-bottom:18px;}
.subcat-bar{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;align-items:center;padding:0;min-width:0;}
.subcat-bar::-webkit-scrollbar{display:none;}
.subcat-chip{display:inline-flex;align-items:center;gap:5px;background:var(--white);color:var(--text);border:1.5px solid var(--border);border-radius:50px;padding:8px 16px;font-size:0.82rem;font-weight:700;font-family:inherit;cursor:pointer;transition:all .16s;white-space:nowrap;}
.subcat-chip:hover{border-color:var(--black);}
.subcat-chip.active{background:var(--black);color:#fff;border-color:var(--black);}
.subcat-chip em{font-style:normal;font-weight:500;opacity:0.65;}
.shopbar-btn{position:relative;display:inline-flex;align-items:center;gap:8px;background:var(--white);color:var(--text);border:1.5px solid var(--border);border-radius:11px;padding:11px 18px;font-size:0.78rem;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;font-family:inherit;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,0.06);transition:all .18s;}
.shopbar-btn svg{stroke:var(--text);}
.shopbar-btn .sb-chev{opacity:0.6;}
.shopbar-btn:hover{border-color:var(--black);box-shadow:0 5px 14px rgba(0,0,0,0.12);}
.shopbar-badge{background:var(--black);color:#fff;border-radius:50px;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;font-size:0.66rem;font-weight:800;padding:0 5px;}

/* Subcategorías en lista al costado */
.subcat-list{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.subchip{flex-shrink:0;background:var(--white);border:1.5px solid var(--border);border-radius:50px;padding:8px 15px;font-size:0.77rem;font-weight:600;color:var(--text);cursor:pointer;font-family:inherit;white-space:nowrap;transition:all .16s;}
.subchip em{color:var(--muted);font-style:normal;font-weight:500;}
.subchip:hover{border-color:var(--black);}
.subchip.active{background:var(--black);color:#fff;border-color:var(--black);}
.subchip.active em{color:rgba(255,255,255,0.7);}

/* ── Botones de Ofertas / Mayorista ── */
.promo-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.promo-btn{display:inline-flex;align-items:center;gap:6px;border:none;border-radius:50px;padding:10px 18px;font-size:0.82rem;font-weight:800;font-family:inherit;color:#fff;cursor:pointer;transition:transform .15s, box-shadow .15s;white-space:nowrap;box-shadow:0 4px 12px rgba(0,0,0,0.12);}
.promo-btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,0.22);}
.promo-of{background:var(--of);}
.promo-may{background:var(--may);}
.promo-toolbar{background:var(--white);border-bottom:1px solid var(--border);padding:10px 20px;display:flex;justify-content:center;gap:10px;overflow-x:auto;scrollbar-width:none;}
.promo-toolbar::-webkit-scrollbar{display:none;}
.hero-promos{position:absolute;left:0;right:0;bottom:26px;display:flex;justify-content:center;z-index:5;padding:0 16px;}
.flt-oferta-btn.activo{background:var(--black);color:#fff;border-color:var(--black);}

/* ── Menú de categoría / ordenar (bottom sheets) ── */
.catmenu-item,.orden-item{padding:14px 6px;border-bottom:1px solid var(--border);font-size:0.92rem;font-weight:600;color:var(--muted);cursor:pointer;display:flex;justify-content:space-between;align-items:center;}
.catmenu-item.active,.orden-item.active{color:var(--text);font-weight:700;}
.catmenu-item.active::after{content:'✓';color:var(--black);font-weight:800;}
.orden-chk{opacity:0;color:var(--black);font-weight:800;}
.orden-item.active .orden-chk{opacity:1;}

/* ── Panel Filtrar ── */
.flt-sec{padding:4px 0 16px;border-bottom:1px solid var(--border);margin-bottom:14px;}
.flt-sec:last-child{border-bottom:none;}
.flt-sec-ttl{font-size:0.72rem;font-weight:800;text-transform:uppercase;letter-spacing:0.6px;color:var(--muted);margin-bottom:14px;}
.flt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;}
.flt-chk{display:flex;align-items:center;gap:9px;font-size:0.86rem;font-weight:600;cursor:pointer;}
.flt-chk input{width:18px;height:18px;accent-color:var(--black);cursor:pointer;flex-shrink:0;}
.flt-chk em{color:var(--muted);font-style:normal;font-weight:500;}
.flt-precio{display:flex;align-items:center;gap:10px;}
.flt-precio .a-input{flex:1;}
.flt-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px;}
.flt-oferta-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:50px;border:1.5px solid var(--border);background:var(--white);font-size:0.8rem;font-weight:700;cursor:pointer;font-family:inherit;color:var(--text);text-decoration:none;}
.flt-oferta-btn.of{border-color:var(--of);color:var(--of);}
.flt-oferta-btn.may{border-color:var(--may);color:var(--may);}
.flt-oferta-btn.disp{border-color:#16a34a;color:#16a34a;}

/* ── SHEET OVERLAY ── */
.overlay{
  display:none;position:fixed;inset:0;z-index:700;
  background:rgba(0,0,0,0.45);backdrop-filter:blur(4px);
}
.overlay.open{display:block;}

/* ── SHEET ── */
.sheet{
  position:fixed;z-index:701;
  background:var(--white);
  display:none;flex-direction:column;
}
.sheet.open{display:flex;}
/* Right sheet */
.sheet-right{
  top:0;right:0;bottom:0;width:400px;max-width:100vw;
  border-left:1px solid var(--border);
  animation:slideRight 0.3s ease;
}
@keyframes slideRight{from{transform:translateX(100%);}to{transform:translateX(0);}}
/* Bottom sheet */
.sheet-bottom{
  bottom:0;left:0;right:0;
  border-radius:20px 20px 0 0;
  max-height:92vh;
  animation:slideUp 0.3s ease;
}
@keyframes slideUp{from{transform:translateY(100%);}to{transform:translateY(0);}}

.sheet-handle{width:40px;height:4px;background:var(--border);border-radius:4px;margin:12px auto 4px;}
.sheet-head{
  padding:16px 20px;border-bottom:1px solid var(--border);
  display:flex;justify-content:space-between;align-items:center;flex-shrink:0;
}
.sheet-title{font-size:1rem;font-weight:700;}
.sheet-close{
  width:32px;height:32px;border-radius:50%;
  background:var(--bg);border:none;color:var(--muted);
  display:flex;align-items:center;justify-content:center;font-size:1.1rem;
}
.sheet-body{flex:1;overflow-y:auto;padding:20px;}
.sheet-foot{padding:16px 20px;border-top:1px solid var(--border);flex-shrink:0;background:var(--white);}

/* ── CARRITO ── */
.cart-empty{text-align:center;padding:48px 0;color:var(--muted);}
.cart-empty .icon{font-size:3rem;margin-bottom:12px;}
.c-item{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--border);}
.c-img{width:72px;height:72px;object-fit:cover;border-radius:8px;flex-shrink:0;background:var(--bg2);}
.c-img-ph{width:72px;height:72px;background:var(--bg2);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.8rem;flex-shrink:0;}
.c-info{flex:1;min-width:0;}
.c-name{font-size:0.875rem;font-weight:600;margin-bottom:2px;}
.c-price{font-size:0.85rem;color:var(--muted);}
.c-qty{display:flex;align-items:center;gap:10px;margin-top:10px;}
.qty-b{
  width:28px;height:28px;border-radius:8px;
  border:1.5px solid var(--border);background:var(--white);
  font-size:0.9rem;font-weight:700;display:flex;align-items:center;justify-content:center;
  transition:all 0.15s;
}
.qty-b:hover{border-color:var(--black);}
.qty-n{font-size:0.875rem;font-weight:600;min-width:20px;text-align:center;}
.c-rm{margin-left:auto;border:none;background:none;color:var(--muted);font-size:1rem;}
.c-total{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.c-total-label{font-size:1rem;font-weight:600;}
.c-total-amt{font-size:1.3rem;font-weight:800;}
.btn-checkout{
  width:100%;padding:15px;
  background:var(--btn);color:var(--white);
  border:none;border-radius:50px;
  font-size:0.9rem;font-weight:700;letter-spacing:0.5px;
  margin-bottom:10px;transition:filter 0.2s;
}
.btn-checkout:hover{filter:brightness(1.25);}
.btn-wpp{
  width:100%;padding:13px;
  background:var(--wpp);color:var(--white);
  border:none;border-radius:50px;
  font-size:0.875rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:background 0.2s;
}
.btn-wpp:hover{background:#1ebe5d;}

/* ── AUTH ── */
.auth-tabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:24px;}
.atab{
  flex:1;padding:12px;text-align:center;
  font-size:0.875rem;font-weight:600;color:var(--muted);
  border:none;background:none;border-bottom:2px solid transparent;
  transition:all 0.2s;
}
.atab.active{color:var(--black);border-bottom-color:var(--black);}
.aform{display:none;}
.aform.active{display:block;}
.a-input{
  width:100%;border:1.5px solid var(--border);
  border-radius:var(--radius);padding:13px 16px;
  font-size:0.9rem;font-family:inherit;background:var(--bg);
  color:var(--text);outline:none;margin-bottom:12px;transition:border 0.2s;
}
.a-input:focus{border-color:var(--black);background:var(--white);}
.btn-auth{
  width:100%;padding:14px;background:var(--btn);color:var(--white);
  border:none;border-radius:50px;font-size:0.9rem;font-weight:700;
  margin-top:4px;transition:filter 0.2s;
}
.btn-auth:hover{filter:brightness(1.25);}
.a-err{font-size:0.8rem;color:var(--danger);margin-bottom:10px;display:none;}
.user-head{display:flex;align-items:center;gap:14px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--border);}
.user-av{
  width:52px;height:52px;border-radius:50%;
  background:var(--black);color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;font-weight:800;flex-shrink:0;
}
.user-nm{font-weight:700;font-size:1rem;}
.user-em{font-size:0.8rem;color:var(--muted);}
.menu-row{
  display:flex;align-items:center;gap:12px;
  padding:14px 0;border-bottom:1px solid var(--border);cursor:pointer;
}
.menu-row:hover .mr-lbl{color:var(--beige2);}
.mr-icon{width:38px;height:38px;background:var(--bg);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;}
.mr-lbl{font-size:0.9rem;font-weight:500;}
.mr-arr{margin-left:auto;color:var(--muted);}

/* ── PRODUCT DETAIL SHEET ── */
.pd-img{width:100%;height:580px;object-fit:cover;object-position:center;background:var(--bg2);}
.pd-ph{width:100%;min-height:260px;background:var(--bg2);display:flex;align-items:center;justify-content:center;font-size:5rem;color:var(--muted2);}
.pd-thumbs{display:flex;gap:8px;padding:12px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--border);}
.pd-thumb{width:56px;height:56px;object-fit:cover;border-radius:8px;flex-shrink:0;cursor:pointer;border:2px solid transparent;transition:border 0.2s;}
.pd-thumb.active{border-color:var(--black);}
.pd-info{padding:20px;}
.pd-cat{font-size:0.7rem;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:6px;}
.pd-name{font-family:'Playfair Display',serif;font-size:1.4rem;font-weight:700;line-height:1.2;margin-bottom:14px;}
.pd-price-main{font-size:1.8rem;font-weight:800;}
.pd-price-old{font-size:0.875rem;color:var(--muted);text-decoration:line-through;margin-bottom:4px;}
.pd-mayor{
  background:var(--bg2);border-left:3px solid var(--beige2);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:14px 16px;margin:16px 0;
}
.pd-mayor-ttl{font-size:0.7rem;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:var(--beige2);margin-bottom:8px;}
.pd-mayor-row{display:flex;justify-content:space-between;font-size:0.85rem;margin-bottom:4px;}
/* ── Accesibilidad: foco visible en teclado ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--black);
  outline-offset:2px;
  border-radius:6px;
}
/* ── Medios de pago (footer) ── */
.footer-pagos{max-width:1200px;margin:22px auto 0;padding:18px 20px 0;border-top:1px solid rgba(255,255,255,.12);text-align:center;}
.footer-pagos .fp-title{display:block;font-size:.7rem;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,.55);margin-bottom:12px;}
.fp-list{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.fp-chip{display:inline-flex;align-items:center;gap:7px;background:#fff;color:#1a1a1a;border-radius:8px;padding:7px 13px;font-size:.78rem;font-weight:700;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,.25);}
.fp-visa{color:#1a1f71;font-style:italic;letter-spacing:.5px;}
.fp-mc::before{content:"";width:26px;height:16px;flex:0 0 auto;background:radial-gradient(circle at 9px 8px,#eb001b 7px,transparent 7px),radial-gradient(circle at 17px 8px,#f79e1b 7px,transparent 7px);}
/* ── Migas de pan (detalle de producto) ── */
.pd-bc{font-size:.76rem;color:var(--muted);margin-bottom:8px;display:flex;flex-wrap:wrap;align-items:center;gap:5px;}
.pd-bc a{color:var(--muted);cursor:pointer;text-decoration:none;}
.pd-bc a:hover{color:var(--text);text-decoration:underline;}
.pd-bc .pd-bc-sep{opacity:.5;}
.pd-bc .pd-bc-cur{color:var(--text);font-weight:600;}
/* ── Skeletons (carga de productos) ── */
.prod-card.skel{pointer-events:none;}
.skel-box{background:linear-gradient(90deg,#ece6dd 25%,#f5f0e9 37%,#ece6dd 63%);background-size:400% 100%;animation:skelShimmer 1.3s ease infinite;border-radius:var(--radius) var(--radius) 0 0;aspect-ratio:1/1;}
.skel-line{height:12px;border-radius:6px;background:linear-gradient(90deg,#ece6dd 25%,#f5f0e9 37%,#ece6dd 63%);background-size:400% 100%;animation:skelShimmer 1.3s ease infinite;margin:10px 0;}
@keyframes skelShimmer{0%{background-position:100% 0}100%{background-position:0 0}}
@media (prefers-reduced-motion: reduce){ .skel-box,.skel-line{animation:none;} }
/* ── Barra de compra fija (solo móvil) en el detalle ── */
.pd-sticky-bar{display:none;}
@media (max-width:900px){
  .pd-sticky-bar{
    display:flex;align-items:center;gap:12px;
    position:sticky;bottom:0;z-index:5;
    background:rgba(255,255,255,0.96);backdrop-filter:blur(8px);
    border-top:1px solid var(--border);
    padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));
    margin:8px -16px 0;
  }
  .pd-sticky-info{display:flex;flex-direction:column;min-width:0;flex:1;}
  .pd-sticky-lbl{font-size:0.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .pd-sticky-price{font-size:1.1rem;font-weight:800;color:var(--price);}
  .pd-sticky-add{flex:0 0 auto;width:auto;padding:12px 22px;margin:0;white-space:nowrap;}
}
.pd-desc{font-size:0.875rem;color:var(--muted);line-height:1.7;margin:14px 0;}
.pd-desc-wrap{margin:14px 0;}
.pd-desc-wrap .pd-desc{margin:0;}
.pd-desc.pd-collapsable{max-height:240px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 72%,transparent);mask-image:linear-gradient(#000 72%,transparent);}
.pd-desc.pd-expanded{max-height:none;-webkit-mask-image:none;mask-image:none;}
.pd-desc-toggle{background:none;border:none;color:var(--text);font-weight:800;font-size:0.82rem;cursor:pointer;padding:8px 0 2px;font-family:inherit;letter-spacing:.2px;}
.pd-desc-toggle:hover{text-decoration:underline;}
/* Bloque "Terminar compra" */
.pd-compra{margin:16px 0 4px;}
/* Productos relacionados */
.pd-relac{margin:20px 0 6px;border-top:1px solid var(--border);padding-top:16px;}
.pd-relac-title{font-size:0.82rem;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:var(--text);margin-bottom:12px;}
.pd-relac-row{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;}
.pd-relac-row::-webkit-scrollbar{height:6px;}
.pd-relac-row::-webkit-scrollbar-thumb{background:var(--border);border-radius:6px;}
.pd-relac-card{flex:0 0 140px;width:140px;scroll-snap-align:start;background:var(--white);border:1.5px solid var(--border);border-radius:14px;padding:10px;cursor:pointer;text-align:left;font-family:inherit;transition:all .16s;display:flex;flex-direction:column;gap:6px;}
.pd-relac-card:hover{border-color:var(--black);transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);}
.pd-relac-card img{width:100%;height:110px;object-fit:contain;border-radius:8px;background:var(--bg2,#f6f6f6);}
.pd-relac-ph{width:100%;height:110px;border-radius:8px;background:var(--bg2,#f6f6f6);display:flex;align-items:center;justify-content:center;font-size:1.8rem;}
.pd-relac-name{font-size:0.8rem;font-weight:700;color:var(--text);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.1em;}
.pd-relac-price{font-size:0.9rem;font-weight:800;color:var(--text);}
.pd-relac-sin{font-size:0.68rem;font-weight:700;color:var(--danger);}
.pd-links{display:flex;flex-direction:column;gap:8px;margin:14px 0;}
.pd-link{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;background:var(--white);border:1.5px solid var(--border);border-radius:10px;font-size:0.86rem;font-weight:700;color:var(--text);text-decoration:none;transition:all .16s;}
.pd-link:hover{border-color:var(--black);transform:translateY(-1px);}
.pd-stock{font-size:0.8rem;color:var(--muted);margin-bottom:16px;}
.pd-qty-row{display:flex;gap:12px;margin-bottom:14px;}
.pd-qty-ctrl{
  display:flex;align-items:center;gap:12px;
  border:1.5px solid var(--border);border-radius:50px;padding:8px 16px;
}
.pd-qty-ctrl button{border:none;background:none;font-size:1rem;font-weight:700;color:var(--text);}
.pd-qty-ctrl span{font-size:0.95rem;font-weight:700;min-width:20px;text-align:center;}
.btn-pd-add{
  flex:1;padding:13px;background:var(--btn);color:var(--white);
  border:none;border-radius:50px;font-size:0.875rem;font-weight:700;
  transition:filter 0.2s;
}
.btn-pd-add:hover{filter:brightness(1.25);}
.btn-pd-wpp{
  width:100%;padding:13px;background:none;
  border:1.5px solid var(--border);border-radius:50px;
  font-size:0.875rem;font-weight:600;color:var(--text);
  display:flex;align-items:center;justify-content:center;gap:8px;
  margin-top:10px;transition:all 0.2s;
}
.btn-pd-wpp:hover{border-color:var(--wpp);color:var(--wpp);}

/* ── CHECKOUT ── */
.pay-opt{
  display:flex;align-items:center;gap:12px;
  padding:14px;background:var(--bg);
  border:2px solid var(--border);border-radius:var(--radius);
  margin-bottom:10px;cursor:pointer;transition:border 0.2s;
}
.pay-opt.sel{border-color:var(--black);background:var(--white);}
.pay-icon{font-size:1.3rem;width:40px;}
.pay-lbl{font-size:0.9rem;font-weight:600;}
.pay-sub{font-size:0.75rem;color:var(--muted);}
.pay-chk{
  margin-left:auto;width:20px;height:20px;
  border-radius:50%;border:2px solid var(--border);
  display:flex;align-items:center;justify-content:center;font-size:0.7rem;
}
.pay-opt.sel .pay-chk{background:var(--black);border-color:var(--black);color:var(--white);}

/* ── TOAST ── */
.toast{
  position:fixed;bottom:28px;left:50%;
  transform:translateX(-50%) translateY(16px);
  background:var(--black);color:var(--white);
  padding:10px 20px;border-radius:50px;
  font-size:0.8rem;font-weight:500;
  z-index:9999;opacity:0;pointer-events:none;
  transition:all 0.3s;white-space:nowrap;
  box-shadow:0 4px 20px rgba(0,0,0,0.2);
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.toast.ok{background:var(--success);}

/* ── WPP FLOAT ── */
.wpp-float{
  position:fixed;bottom:28px;right:24px;
  width:52px;height:52px;border-radius:50%;
  background:var(--wpp);color:var(--white);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(37,211,102,0.4);
  z-index:600;transition:transform 0.2s;font-size:1.4rem;
}
.wpp-float:hover{transform:scale(1.1);}

/* ── FOOTER ── */
.footer{background:var(--footer-bg);color:rgba(255,255,255,0.6);padding:48px 0 28px;margin-top:64px;}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;max-width:1200px;margin:0 auto;padding:0 20px 40px;border-bottom:1px solid rgba(255,255,255,0.1);}
@media(max-width:600px){.footer-inner{grid-template-columns:1fr;gap:24px;}}
.f-logo{font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:700;color:var(--white);margin-bottom:10px;}
.f-logo span{color:var(--beige);}
.f-desc{font-size:0.85rem;line-height:1.7;}
.f-col h4{color:var(--white);font-size:0.85rem;font-weight:700;margin-bottom:14px;letter-spacing:1px;text-transform:uppercase;}
.f-col a{display:block;font-size:0.82rem;margin-bottom:8px;transition:color 0.2s;}
.f-col a:hover{color:var(--beige);}
.f-bottom{max-width:1200px;margin:0 auto;padding:20px 20px 0;font-size:0.78rem;text-align:center;}

/* ── SPINNER ── */
.spinner{width:28px;height:28px;border:2px solid var(--border);border-top-color:var(--black);border-radius:50%;animation:spin 0.7s linear infinite;margin:48px auto;}
@keyframes spin{to{transform:rotate(360deg);}}

/* ===== DISEÑO v2 · Prioridad 1 ===== */
/* ═══════════════════════════════════════════════════════════════════════
   ClikPhone · PRIORIDAD 1  (v4)
   · Computadora: un clic hace zoom sobre la propia foto (otro clic lo deshace),
     sin abrir nada encima de los datos del producto.
   · Celular: tocar la foto la abre a pantalla completa, con swipe entre fotos
     y pinch para acercar.
   · Feedback al agregar: toast con mini-foto, ✓ y "Ver carrito".
   · Se puede apagar todo desde Apariencia (clave configuracion: zoom_imagen).

   → Pegar TODO este bloque AL FINAL de tienda/style.css
   → No se inventan colores: sale de las variables ya existentes
     (--bg2 --white --border --black --text --muted --btn --lime --shadow-md).
     El lima se usa SOLO en estados activos.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── GALERÍA DEL DETALLE ─────────────────────────────────────────────── */
.pd-gal{position:relative;width:calc(100% - 32px);max-width:440px;margin:16px auto 4px;}
#prodSheetContent .pd-gal .pd-img{width:100%;max-width:none;margin:0;display:block;}
#prodSheetContent .pd-gal .pd-ph{width:100%;max-width:none;margin:0;}

.pd-gal-count{position:absolute;top:12px;right:12px;background:rgba(255,255,255,.94);color:var(--text);
  font-size:.72rem;font-weight:800;padding:4px 10px;border-radius:20px;
  box-shadow:0 1px 6px rgba(0,0,0,.14);pointer-events:none;z-index:3;}
.pd-gal-dots{display:flex;gap:6px;justify-content:center;padding:10px 0 2px;}
.pd-gal-dot{height:6px;width:6px;border-radius:6px;background:var(--border);border:none;padding:0;
  cursor:pointer;transition:all .22s;}
.pd-gal-dot.active{width:22px;background:var(--black);}

/* miniatura activa: negro + anillo lima muy suave (único pop de color) */
.pd-thumb.active{border-color:var(--black);box-shadow:0 0 0 2px rgba(200,241,53,.65);}

/* ── ESCRITORIO: zoom sobre la misma foto (clic acerca / clic aleja) ───
   No abre nada encima de los datos del producto: la foto se agranda dentro
   de su propio marco y moviendo el mouse se recorre el detalle.          */
@media(min-width:820px){
  #prodSheetContent .pd-media .pd-gal{order:2;flex:1;min-width:0;width:auto;max-width:none;margin:0;overflow:hidden;border-radius:18px;}
  #prodSheetContent .pd-media .pd-gal .pd-img,
  #prodSheetContent .pd-media .pd-gal .pd-ph{width:100%;height:auto;max-height:66vh;aspect-ratio:1/1;margin:0;border-radius:0;}
  .pd-zoom-on #prodSheetContent .pd-gal{cursor:zoom-in;}
  .pd-zoom-on #prodSheetContent .pd-gal.zoom{cursor:zoom-out;}
  #prodSheetContent .pd-gal .pd-img{transition:transform .28s ease;}
  #prodSheetContent .pd-gal.zoom .pd-img{transform:scale(2.4);}
  .pd-gal-dots{display:none;}
}
@media (prefers-reduced-motion: reduce){ #prodSheetContent .pd-gal .pd-img{transition:none;} }

/* Zoom apagado desde el admin: fotos normales, sin ampliar */
.pd-zoom-off .pd-gal{cursor:default;}
.pd-zoom-off .pd-gal .pd-img{transform:none!important;}

/* ── LIGHTBOX (pantalla completa, celular) ─────────────────────────── */
.pd-lb{position:fixed;inset:0;z-index:1200;background:rgba(14,14,14,.94);display:none;flex-direction:column;}
.pd-lb.open{display:flex;}
.pd-lb-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;flex-shrink:0;}
.pd-lb-count{color:rgba(255,255,255,.8);font-size:.78rem;font-weight:700;letter-spacing:.5px;}
.pd-lb-close{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.14);border:none;
  color:#fff;font-size:1.05rem;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.pd-lb-stage{flex:1;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:0 8px;
  cursor:zoom-in;touch-action:none;}
.pd-lb-stage.zoom{cursor:zoom-out;}
.pd-lb-stage img{max-width:100%;max-height:100%;object-fit:contain;transition:transform .25s ease;}
.pd-lb-stage.pinch img{transition:none;}
.pd-lb-hint{text-align:center;color:rgba(255,255,255,.55);font-size:.72rem;padding:8px 0 4px;}
.pd-lb-thumbs{display:flex;gap:8px;justify-content:center;overflow-x:auto;scrollbar-width:none;flex-shrink:0;
  padding:10px 12px calc(22px + env(safe-area-inset-bottom,0px));}
.pd-lb-thumbs::-webkit-scrollbar{display:none;}
.pd-lb-thumb{width:52px;height:52px;object-fit:cover;border-radius:10px;flex-shrink:0;cursor:pointer;
  background:rgba(255,255,255,.12);border:2px solid transparent;opacity:.6;transition:opacity .18s,border-color .18s;}
.pd-lb-thumb.active{border-color:var(--lime);opacity:1;}

/* ── TOAST DE CARRITO (con mini-foto y acceso al carrito) ───────────── */
.ck-toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%) translateY(18px);width:min(400px,calc(100vw - 32px));
  background:var(--white);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-md);
  padding:11px 12px;display:flex;align-items:center;gap:11px;z-index:1300;
  opacity:0;pointer-events:none;transition:opacity .26s,transform .26s;}
.ck-toast.show{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto;}
.ck-toast-img{width:46px;height:46px;border-radius:10px;object-fit:contain;background:var(--bg2);flex-shrink:0;}
.ck-toast-ph{width:46px;height:46px;border-radius:10px;background:var(--bg2);flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:1.4rem;}
.ck-toast-body{flex:1;min-width:0;}
.ck-toast-ttl{display:flex;align-items:center;gap:6px;font-size:.82rem;font-weight:800;color:var(--text);}
.ck-toast-chk{width:17px;height:17px;border-radius:50%;background:var(--lime);color:var(--black);
  font-size:.68rem;font-weight:900;display:flex;align-items:center;justify-content:center;flex-shrink:0;
  animation:ckPulse .5s ease both;}
.ck-toast-sub{font-size:.73rem;color:var(--muted);margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ck-toast-btn{flex-shrink:0;background:var(--btn);color:var(--white);border:none;border-radius:50px;
  padding:9px 14px;font-size:.73rem;font-weight:800;font-family:inherit;cursor:pointer;transition:filter .2s;}
.ck-toast-btn:hover{filter:brightness(1.25);}
/* en móvil el toast sube para no quedar debajo de la barra fija de compra */
@media(max-width:900px){.ck-toast{bottom:calc(80px + env(safe-area-inset-bottom,0px));}}
@keyframes ckPulse{0%{transform:scale(1)}45%{transform:scale(1.35)}100%{transform:scale(1)}}

/* ── ESTADO "PRESIONADO" EN LOS BOTONES DE COMPRA ───────────────────── */
.btn-pd-add,.pd-sticky-add,.btn-plus,.prod-quick,.btn-checkout,.ck-toast-btn{
  transition:transform .12s,filter .2s,background .2s,box-shadow .25s;}
.btn-pd-add:active,.pd-sticky-add:active,.prod-quick:active,.btn-checkout:active,.ck-toast-btn:active{
  transform:scale(.97);filter:brightness(1.3);}
.btn-plus:active{transform:scale(.92);}
/* badge del carrito: latido cuando cambia la cantidad */
.nav-badge.bump{animation:ckPulse .45s ease both;}

@media (prefers-reduced-motion: reduce){
  .ck-toast{transition:none;}
  .ck-toast-chk,.nav-badge.bump{animation:none;}
  .pd-lb-stage img{transition:none;}
}

/* ===== DISEÑO v2 · Prioridad 2 ===== */
/* ═══════════════════════════════════════════════════════════════════════
   ClikPhone · PRIORIDAD 2 — prolijidad visual
   Tarjetas de categoría: alto uniforme opcional + estado lindo sin imagen.
   (La grilla de productos y sus etiquetas NO se tocan.)

   → Pegar TODO este bloque AL FINAL de tienda/style.css (después del de
     Prioridad 1). Solo variables ya existentes: --bg2 --beige --white
     --border --black --text --muted --radius --shadow-md.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 3b · CATEGORÍA SIN IMAGEN ───────────────────────────────────────────
   En vez de un bloque plano: degradado de la propia paleta + la inicial
   de la categoría marcada al agua. El texto pasa a negro para que se lea. */
.catcard-noimg{
  background:linear-gradient(150deg,var(--white) 0%,var(--bg2) 46%,var(--beige) 100%);
}
.catcard-noimg::before{
  content:'';position:absolute;top:-18%;right:-14%;
  width:64%;aspect-ratio:1/1;border-radius:50%;
  background:rgba(255,255,255,0.40);
}
.catcard-noimg::after{
  content:attr(data-inicial);
  position:absolute;left:0;right:0;top:50%;transform:translateY(-58%);
  text-align:center;font-family:'Playfair Display',serif;
  font-size:clamp(64px,30cqw,104px);line-height:1;font-weight:700;
  color:rgba(14,14,14,0.13);
}
.catcard{container-type:inline-size;}
/* overlay claro cuando no hay foto (el degradado oscuro no va sobre crema) */
.catcard:has(.catcard-noimg) .catcard-ov{
  background:linear-gradient(to bottom,rgba(255,255,255,0.35) 0%,rgba(255,255,255,0) 40%,rgba(0,0,0,0.06) 74%,rgba(0,0,0,0.16) 100%);
}
.catcard:has(.catcard-noimg) .catcard-cta{color:var(--black);text-shadow:none;opacity:.75;}
.catcard:has(.catcard-noimg) .catcard-cta strong{opacity:1;}
.catcard:has(.catcard-noimg) .catcard-go{
  color:var(--black);border-color:rgba(14,14,14,0.35);background:rgba(255,255,255,0.55);
}
.catcard:has(.catcard-noimg):hover .catcard-go{background:var(--black);color:var(--white);border-color:var(--black);}
/* navegadores sin :has() → queda el overlay oscuro de siempre, se lee igual */

/* ===== DISEÑO v2 · Prioridad 3 ===== */
/* ═══════════════════════════════════════════════════════════════════════
   ClikPhone · PRIORIDAD 3 — hero de tecnología + barra de confianza
   → Pegar AL FINAL de tienda/style.css (después de Prioridad 2).
   Solo variables existentes: --bg2 --beige --white --border --black
   --text --muted --radius --shadow.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── HERO SIN IMAGEN ────────────────────────────────────────────────────
   Antes: degradado marrón que no combinaba. Ahora: negro de la paleta con
   un halo beige suave. Si el hero tiene banner cargado, no cambia nada.  */
.hero-bg.hero-sin-img{
  background:linear-gradient(120deg,var(--black) 0%,#2a2622 42%,#3a332a 100%);
}
.hero-bg.hero-sin-img::after{
  content:'';position:absolute;right:-6%;top:-26%;
  width:46%;aspect-ratio:1/1;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,rgba(212,184,150,0.42),rgba(212,184,150,0) 68%);
}

/* en celular el texto del hero baja al pie: se lee mejor sobre el degradado */
@media(max-width:900px){
  .hero-content{align-items:flex-end;padding-bottom:62px;max-width:none;}
  .hero-overlay{background:linear-gradient(to top,rgba(0,0,0,0.72) 0%,rgba(0,0,0,0.25) 55%,transparent 100%);}
  .hero-sub{max-width:none;margin-bottom:20px;}
  /* la barrita de slides queda separada de los botones, con aire */
  .hero-nav{bottom:20px;}
}

/* En el celular el hero se desliza con el dedo (igual que las categorías), en vez del fundido. */
@media(max-width:640px){
  .hero-track{display:flex;position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain;}
  .hero-track::-webkit-scrollbar{display:none;height:0;}
  .hero-slide{position:relative;inset:auto;flex:0 0 100%;width:100%;height:100%;opacity:1;pointer-events:auto;scroll-snap-align:start;transition:none;}
  .hero-arrow{display:none;}   /* en el celular se desliza, no hacen falta las flechas */
}

/* ── BARRA DE CONFIANZA ─────────────────────────────────────────────────
   Fila discreta debajo del hero: 3 pares título/detalle editables.       */
.trustbar{
  display:grid;grid-template-columns:repeat(3,1fr);
  background:var(--white);border-top:1px solid var(--border);border-bottom:1px solid var(--border);
}
.trust-item{
  display:flex;align-items:center;gap:11px;
  padding:16px 22px;border-right:1px solid var(--border);min-width:0;
}
.trust-item:last-child{border-right:none;}
.trust-ico{
  width:26px;height:26px;border-radius:50%;background:var(--bg2);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted);
}
.trust-txt{min-width:0;}
.trust-ttl{display:block;font-size:0.78rem;font-weight:700;color:var(--text);}
.trust-sub{display:block;font-size:0.72rem;color:var(--muted);margin-top:1px;}

/* celular: chips deslizables en una sola línea (no compite con la barra de arriba) */
@media(max-width:900px){
  .trustbar{
    display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;
    padding:12px 16px;border-bottom:1px solid var(--border);
  }
  .trustbar::-webkit-scrollbar{display:none;}
  .trust-item{
    background:var(--white);border:1px solid var(--border);border-radius:50px;
    padding:8px 13px;gap:8px;flex-shrink:0;
  }
  .trust-ico{width:auto;height:auto;background:none;}
  .trust-ttl{white-space:nowrap;font-size:0.75rem;}
  .trust-sub{display:none;}
}

/* ===== DISEÑO v2 · Prioridad 4 (SEO) ===== */
/* ── SEO: contenido del producto servido por el servidor ───────────────── */
.seo-prod{background:var(--white);border-bottom:1px solid var(--border);padding:26px 0;}
.seo-prod-mig{font-size:0.76rem;color:var(--muted);margin-bottom:10px;}
.seo-prod-mig a{color:var(--muted);text-decoration:underline;}
.seo-prod-ttl{font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:700;margin:0 0 8px;}
.seo-prod-price{font-size:1.25rem;font-weight:800;color:var(--text);margin:0 0 14px;}
.seo-prod-stock{font-size:0.72rem;font-weight:700;color:var(--muted);margin-left:8px;}
.seo-prod-desc{font-size:0.9rem;line-height:1.65;color:var(--text);max-width:70ch;}
.seo-prod-desc p{margin:0 0 10px;}
.seo-prod-cta{margin:14px 0 0;font-size:0.85rem;}
.seo-prod-cta a{font-weight:700;text-decoration:underline;}

/* ===== Barra de confianza: mostrar/ocultar por dispositivo ===== */
@media(min-width:901px){ .trustbar.trust-no-pc{display:none !important;} }
@media(max-width:900px){ .trustbar.trust-no-mov{display:none !important;} }

/* ===== Tamaños de botones del hero (editables desde Apariencia) ===== */
.btn-hero-primary.hero-btn-sm, .btn-hero-ghost.hero-btn-sm{padding:10px 20px;font-size:0.8rem;}
.btn-hero-primary.hero-btn-lg, .btn-hero-ghost.hero-btn-lg{padding:17px 38px;font-size:0.98rem;}
/* la barra de confianza queda pegada al hero (sin espacio en blanco) */
.trustbar{margin-top:0;}

/* ===== Ficha de producto: botón "Volver" siempre visible ===== */
/* Antes la ficha solo tenía la barrita (handle) y no había forma clara de
   salir. Ahora arriba hay un botón Volver + una × que cierran la ficha. */
#prodSheet{flex-direction:column;}
#prodSheetContent{flex:1 1 auto;min-height:0;overflow-x:hidden;}
.pd-topbar{
  flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;background:var(--white);border-bottom:1px solid var(--border);
}
.pd-back{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--bg);border:1px solid var(--border);border-radius:50px;
  padding:9px 18px 9px 13px;font-size:0.9rem;font-weight:700;color:var(--text);
  font-family:inherit;cursor:pointer;transition:border-color .18s;
}
.pd-back svg{stroke:var(--text);}
.pd-back:hover{border-color:var(--black);}
.pd-close-x{
  width:38px;height:38px;border-radius:50%;background:var(--bg);border:1px solid var(--border);
  color:var(--muted);font-size:1.4rem;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:all .18s;
}
.pd-close-x:hover{color:var(--text);border-color:var(--black);}

/* ===== Celular: sin movimiento horizontal (los carruseles no arrastran la página) ===== */
.catcards,.subcat-bar,.cats-strip,.promo-toolbar,.pd-thumbs,.trustbar{overscroll-behavior-x:contain;}

/* ===== Móvil: barra de filtros (Filtrar / Ordenar / Modelos) ===== */
/* Antes los 3 botones no entraban y se salían a la derecha (MODELOS cortado).
   Ahora ocupan todo el ancho en partes iguales, prolijos y sin desbordar. */
@media(max-width:600px){
  .shopbar{gap:10px;}
  .shopbar-actions{width:100%;gap:8px;flex-wrap:nowrap;}
  .shopbar-actions .shopbar-btn{
    flex:1 1 0;min-width:0;justify-content:center;white-space:nowrap;
    padding:11px 8px;font-size:0.7rem;letter-spacing:0.3px;gap:6px;
  }
  .shopbar-actions .shopbar-btn > svg:first-child{flex-shrink:0;}
  .shopbar-actions .shopbar-btn .sb-chev{display:none;}
}
