/* ============================================================================
   Tienda PLADIEX — Estilos
   Identidad de marca tomada de chatbot/widget.css del bot PLADIEX.
   ============================================================================ */

:root {
  --plx-azul:     #01587A;
  --plx-teal:     #5CB3C1;
  --plx-amarillo: #E7BA11;
  --plx-rosa:     #E05C8A;
  --plx-ink:      #1a2b35;
  --plx-ink-soft: #6b7c89;
  --plx-bg:       #f6f9fb;
  --plx-card:     #fff;
  --plx-border:   #e7eaee;
  --plx-grad:     linear-gradient(135deg, #01587A, #5CB3C1);
  --plx-grad-hdr: linear-gradient(135deg, #01587A 0%, #3a9fb0 100%);
  --plx-grad-hero: linear-gradient(105deg, #01587A 0%, #1d7d9b 38%, #3a9fb0 56%, #8fb87a 78%, #d6a82c 100%);
  --plx-verde:    #16a34a;
  --plx-ambar:    #d9870b;
  --plx-violeta:  #6d44b8;
  --plx-tint-azul:   #eef6ff;
  --plx-tint-teal:   #eaf6f8;
  --plx-tint-verde:  #eafaf1;
  --plx-tint-dorado: #fff7e6;
  --plx-tint-gris:   #f6f8fa;
  --plx-r-panel:  22px;
  --plx-r-card:   14px;
  --plx-shadow:   0 4px 22px rgba(30,41,59,0.08);
  --plx-shadow-h: 0 10px 30px rgba(30,41,59,0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--plx-ink);
  background: var(--plx-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.plx-container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ── Barra promocional ─────────────────────────────────────────────────── */
.plx-promo {
  background: var(--plx-grad-hero);
  color: #fff;
}
.plx-promo-inner {
  max-width: 1180px; margin: 0 auto; padding: 9px 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 13.5px; flex-wrap: wrap;
}
.plx-promo-pill {
  background: #fff; color: #0e7c93; font-weight: 700; font-size: 12.5px;
  padding: 4px 14px; border-radius: 20px;
}
.plx-promo-text { color: rgba(255,255,255,0.95); }
.plx-promo-text strong { font-weight: 700; }
.plx-promo-dim { color: rgba(255,255,255,0.75); }
.plx-promo-cta { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.plx-promo-cta:hover { color: #fff; opacity: .85; }

/* ── Header ────────────────────────────────────────────────────────────── */
.plx-store-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid #eef3f5;
  box-shadow: 0 2px 14px rgba(30,41,59,0.06);
}
.plx-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.plx-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.plx-brand-img { height: 34px; width: auto; }

/* Nav central */
.plx-nav-main { display: flex; align-items: center; gap: 34px; flex: 1; justify-content: center; }
.plx-nav-main a {
  text-decoration: none; color: #243947; font-weight: 700; font-size: 14px;
  letter-spacing: .3px; transition: color .18s; display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.plx-nav-main a:hover { color: var(--plx-teal); }

.plx-header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Icono de usuario */
.plx-user-icon {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #d8e6ea;
  display: flex; align-items: center; justify-content: center; color: #243947;
  transition: border-color .2s, color .2s, background .2s; text-decoration: none;
}
.plx-user-icon:hover { border-color: var(--plx-teal); color: var(--plx-azul); background: #f4fafb; }

/* Botón Iniciar Sesión */
.plx-login-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid #d8e6ea; border-radius: 26px; padding: 11px 22px;
  font-weight: 600; font-size: 14px; color: #243947; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .18s; white-space: nowrap;
}
.plx-login-btn span { transition: transform .18s; }
.plx-login-btn:hover { border-color: var(--plx-teal); box-shadow: 0 4px 14px rgba(30,41,59,0.12); }
.plx-login-btn:hover span { transform: translateX(3px); }

/* Icono de carrito */
.plx-cart-icon {
  position: relative; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px; color: var(--plx-azul);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.plx-cart-icon:hover { background: #eef7f9; }
.plx-cart-badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px;
  padding: 0 5px; background: var(--plx-rosa); color: #fff; border-radius: 10px;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.plx-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--plx-grad-hero);
}
/* Luces/glow decorativos del hero */
.plx-hero::before {
  content: ""; position: absolute; top: -90px; right: 5%;
  width: 360px; height: 360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 66%);
}
.plx-hero::after {
  content: ""; position: absolute; bottom: -110px; left: 22%;
  width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(231,186,17,0.22), transparent 66%);
}
/* Palabra de acento con degradado dorado (ej. "MALL") */
.plx-hero-accent {
  background: linear-gradient(92deg, #ffe08a, #ffcf3f 55%, #ffe7a0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.plx-hero .plx-container { padding-top: 56px; padding-bottom: 60px; position: relative; z-index: 1; }
.plx-hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .6px;
  padding: 6px 14px; border-radius: 20px; text-transform: uppercase; margin-bottom: 18px;
}
.plx-hero h1 { font-size: 38px; font-weight: 700; margin: 0 0 14px; max-width: 660px; line-height: 1.15; }
.plx-hero p  { font-size: 16px; color: rgba(255,255,255,0.9); margin: 0; max-width: 560px; line-height: 1.6; }
.plx-hero-hint {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(255,255,255,0.85);
}
.plx-hero-hint span {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}

/* ── Sección catálogo ──────────────────────────────────────────────────── */
.plx-section { padding: 46px 0 70px; }
.plx-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.plx-section-head h2 { font-size: 24px; font-weight: 700; color: var(--plx-azul); margin: 0; }
.plx-section-head p  { color: var(--plx-ink-soft); font-size: 13px; margin: 4px 0 0; }

.plx-search {
  border: 1.5px solid #daeef1; border-radius: 22px; background: #fff;
  padding: 10px 18px; font-family: inherit; font-size: 13.5px; color: var(--plx-ink);
  outline: none; min-width: 240px; transition: border-color .2s, box-shadow .2s;
}
.plx-search:focus { border-color: var(--plx-teal); box-shadow: 0 0 0 3px rgba(92,179,193,0.12); }

/* ── Barra de tienda: búsqueda sticky + chips de categoría ──────────────── */
.plx-shopbar {
  position: sticky; top: 0; z-index: 90;   /* se pega al borde superior al scrollear; el header se desplaza por encima sin dejar hueco */
  background: #fff; border-bottom: 1px solid #eef3f5;
  box-shadow: 0 3px 12px rgba(30,41,59,0.04);
}
.plx-shopbar .plx-container { padding-top: 12px; padding-bottom: 12px; }
.plx-shopbar-search { position: relative; display: flex; align-items: center; }
.plx-shopbar-search-icon { position: absolute; left: 16px; color: var(--plx-azul); pointer-events: none; }
.plx-shopbar-search .plx-search {
  width: 100%; min-width: 0; border-radius: 26px;
  padding: 12px 18px 12px 46px; font-size: 14.5px;
  border: 1.5px solid #dcebee; background: #f6fbfc;
}
.plx-shopbar-search .plx-search:focus { background: #fff; }

.plx-cat-chips {
  display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.plx-cat-chips::-webkit-scrollbar { display: none; }
.plx-catchip {
  flex-shrink: 0; white-space: nowrap;
  border: 1.5px solid #cdd8e1; background: #eef3f6;
  color: #1a2b35; font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 7px 15px; border-radius: 20px; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.plx-catchip:hover { border-color: var(--plx-amarillo); color: #8a6206; background: #fff7e6; }
.plx-catchip.active { background: var(--plx-amarillo); border-color: var(--plx-amarillo); color: #5a3d00; }

/* ── Carrusel de destacados ─────────────────────────────────────────────── */
.plx-featured { padding: 22px 0 0; }
.plx-featured-head { display: flex; align-items: center; margin-bottom: 14px; }
.plx-featured-head h2 {
  font-size: 18px; font-weight: 700; color: var(--plx-azul); margin: 0;
  display: flex; align-items: center; gap: 9px;
}
.plx-featured-head h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 3px;
  background: var(--plx-amarillo, #E7BA11);
}
.plx-featured-track {
  display: flex; gap: 14px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; scroll-snap-type: x proximity;
}
.plx-featured-track::-webkit-scrollbar { display: none; }
.plx-feat-card {
  flex: 0 0 auto; width: 162px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--plx-border); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.plx-feat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(30,41,59,0.1); border-color: #d8e6ea; }
.plx-feat-imgwrap { position: relative; aspect-ratio: 1 / 1; background: #f2f8f9; }
.plx-feat-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plx-feat-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--plx-amarillo, #E7BA11); color: #5a4500;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.plx-feat-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.plx-feat-name {
  font-size: 12.5px; font-weight: 600; color: var(--plx-ink); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 32px;
}
.plx-feat-price { font-size: 14px; font-weight: 700; color: var(--plx-azul); }

/* ── Ofertas / descuentos (el % va en el cuerpo, no sobre la imagen) ─────── */
.plx-price-wrap { display: flex; flex-direction: column; gap: 2px; }
.plx-price.sale { color: #e11d48; }
.plx-price-sub { display: inline-flex; align-items: center; gap: 6px; }
.plx-price-old { font-size: 12px; color: var(--plx-ink-soft); text-decoration: line-through; font-weight: 600; }
.plx-price-off { font-size: 10.5px; font-weight: 800; color: #fff; background: #e11d48; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }

.plx-feat-foot { display: flex; flex-direction: column; gap: 1px; }
.plx-feat-price.sale { color: #e11d48; }
.plx-feat-sub { display: inline-flex; align-items: center; gap: 5px; }
.plx-feat-price-old { font-size: 11.5px; color: var(--plx-ink-soft); text-decoration: line-through; font-weight: 600; }

.plx-detail-price.sale { color: #e11d48; }
.plx-detail-price-old { font-size: 18px; color: var(--plx-ink-soft); text-decoration: line-through; font-weight: 600; margin-right: 6px; }
.plx-detail-off {
  display: inline-block; font-size: 13px; font-weight: 800; color: #fff; background: #e11d48;
  padding: 3px 10px; border-radius: 8px; vertical-align: middle; margin-left: 6px; letter-spacing: .3px;
}

/* Grid */
.plx-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}

/* ── Badges de tarjeta (Destacado / Popular) ──────────────────────────── */
.plx-card-imgwrap { position: relative; }
.plx-badges {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 5px;
  max-width: calc(100% - 20px);
}
.plx-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  white-space: nowrap;
}
.plx-badge svg { flex-shrink: 0; width: 11px; height: 11px; }
.plx-badge-feat { background: var(--plx-amarillo); color: #5a3d00; }
.plx-badge-pop  { background: var(--plx-teal);  color: #fff; }

/* ── Tarjeta de producto ───────────────────────────────────────────────── */
.plx-card {
  background: var(--plx-card); border: 1px solid var(--plx-border);
  border-radius: var(--plx-r-card); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--plx-shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: plx-rise .5s cubic-bezier(.21,1,.3,1) both;
}
.plx-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(30,41,59,0.16); border-color: var(--plx-teal); }
/* Entrada en cascada (primeras filas) */
.plx-card:nth-child(1){animation-delay:.03s}
.plx-card:nth-child(2){animation-delay:.07s}
.plx-card:nth-child(3){animation-delay:.11s}
.plx-card:nth-child(4){animation-delay:.15s}
.plx-card:nth-child(5){animation-delay:.19s}
.plx-card:nth-child(6){animation-delay:.23s}
.plx-card:nth-child(7){animation-delay:.27s}
.plx-card:nth-child(8){animation-delay:.31s}
.plx-card:nth-child(9){animation-delay:.35s}
@keyframes plx-rise { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }
.plx-card-imgwrap { aspect-ratio: 1 / 1; background: #eef5f7; overflow: hidden; }
.plx-card-imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.21,1,.3,1); }
.plx-card:hover .plx-card-imgwrap img { transform: scale(1.07); }
.plx-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.plx-chip-cat {
  align-self: flex-start; background: #eef2f6; color: #56697a;
  font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 14px;
}
.plx-card-name {
  font-size: 14.5px; font-weight: 600; color: var(--plx-ink); line-height: 1.35;
  text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.plx-card-name:hover { color: var(--plx-azul); }
.plx-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.plx-price { font-size: 17px; font-weight: 700; color: var(--plx-azul); }
.plx-stock {
  font-size: 10.5px; color: var(--plx-ink-soft); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.plx-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--plx-verde); flex-shrink: 0; }
.plx-stock.out { color: var(--plx-rosa); }
.plx-stock.out::before { background: var(--plx-rosa); }

/* ── Botones ───────────────────────────────────────────────────────────── */
.plx-btn {
  font-family: inherit; font-weight: 600; cursor: pointer; border: none;
  border-radius: 22px; transition: transform .18s, box-shadow .18s, opacity .18s, background .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none;
}
.plx-btn-primary {
  background: var(--plx-azul); color: #fff; padding: 11px 20px; font-size: 13.5px;
  box-shadow: 0 3px 12px rgba(30,41,59,0.28);
}
.plx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,41,59,0.4); }
.plx-btn-pink {
  background: linear-gradient(135deg, #E05C8A, #e8437a); color: #fff;
  padding: 11px 20px; font-size: 13.5px; box-shadow: 0 3px 12px rgba(224,92,138,0.3);
}
.plx-btn-pink:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(224,92,138,0.45); }
.plx-btn-ghost {
  background: #fff; color: var(--plx-azul); border: 1.5px solid var(--plx-border);
  padding: 10px 18px; font-size: 13px;
}
.plx-btn-ghost:hover { border-color: var(--plx-teal); background: #f4fafb; }
.plx-btn-add {
  width: 100%; background: var(--plx-tint-teal); color: var(--plx-azul); border: 1.5px solid #cfe6ec;
  padding: 9px 0; font-size: 12.5px; font-weight: 700; border-radius: 20px; box-shadow: none;
}
.plx-btn-add:hover { background: var(--plx-azul); color: #fff; border-color: var(--plx-azul); transform: translateY(-1px); }
.plx-btn-add.added { background: var(--plx-azul); color: #fff; border-color: var(--plx-azul); box-shadow: none; }
.plx-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Estados ───────────────────────────────────────────────────────────── */
.plx-empty, .plx-loading {
  text-align: center; color: var(--plx-ink-soft); padding: 60px 20px; font-size: 14px;
}
.plx-spinner {
  width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid #d8edf1; border-top-color: var(--plx-teal); animation: plx-spin .8s linear infinite;
}
@keyframes plx-spin { to { transform: rotate(360deg); } }
@keyframes plx-fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Carrito (drawer) ──────────────────────────────────────────────────── */
.plx-cart-overlay {
  position: fixed; inset: 0; background: rgba(1,43,53,0.45); z-index: 9000;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.plx-cart-overlay.open { opacity: 1; pointer-events: all; }
.plx-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 390px; max-width: 92vw;
  background: #fff; z-index: 9001; display: flex; flex-direction: column;
  box-shadow: -12px 0 56px rgba(30,41,59,0.22);
  transform: translateX(100%); transition: transform .28s ease;
}
.plx-cart-drawer.open { transform: translateX(0); }
.plx-cart-head {
  background: var(--plx-azul); color: #fff; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.plx-cart-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.plx-cart-close {
  background: rgba(255,255,255,0.18); border: none; color: #fff; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.plx-cart-close:hover { background: rgba(255,255,255,0.3); }
.plx-cart-items { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.plx-cart-empty { text-align: center; color: var(--plx-ink-soft); padding: 50px 20px; font-size: 14px; }

.plx-cart-item { display: flex; gap: 12px; background: #f7fbfc; border: 1px solid var(--plx-border); border-radius: 12px; padding: 10px; }
.plx-cart-item img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; background: #eef5f7; flex-shrink: 0; }
.plx-cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.plx-cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.plx-cart-item-price { font-size: 12px; color: var(--plx-ink-soft); }
.plx-qty { display: flex; align-items: center; gap: 8px; }
.plx-qty button {
  width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--plx-border); background: #fff;
  cursor: pointer; color: var(--plx-azul); font-weight: 700; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.plx-qty button:hover { border-color: var(--plx-teal); background: #f0f9fa; }
.plx-qty span { font-size: 13px; font-weight: 600; min-width: 18px; text-align: center; }
.plx-cart-item-remove { background: none; border: none; color: var(--plx-rosa); cursor: pointer; font-size: 11px; align-self: flex-start; padding: 0; }
.plx-cart-item-remove:hover { text-decoration: underline; }

.plx-cart-foot { border-top: 1px solid #e8f4f6; padding: 16px 18px; flex-shrink: 0; background: #fff; }
.plx-cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.plx-cart-total span { font-size: 13px; color: var(--plx-ink-soft); }
.plx-cart-total strong { font-size: 20px; color: var(--plx-azul); }
.plx-cart-foot .plx-btn-pink { width: 100%; margin-bottom: 8px; }
.plx-cart-clear { background: none; border: none; color: var(--plx-ink-soft); cursor: pointer; font-size: 12px; width: 100%; padding: 4px; }
.plx-cart-clear:hover { color: var(--plx-rosa); }

/* ── Detalle de producto ───────────────────────────────────────────────── */
.plx-detail { padding: 36px 0 70px; }
.plx-back { display: inline-flex; align-items: center; gap: 6px; color: var(--plx-ink-soft); text-decoration: none; font-size: 13px; margin-bottom: 22px; }
.plx-back:hover { color: var(--plx-azul); }
.plx-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; animation: plx-rise .5s cubic-bezier(.21,1,.3,1) both; }
.plx-detail-img { border-radius: var(--plx-r-panel); overflow: hidden; background: #eef5f7; border: 1px solid var(--plx-border); aspect-ratio: 1/1; }
.plx-detail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.21,1,.3,1); }
.plx-detail-img:hover img { transform: scale(1.06); }
.plx-detail-info h1 { font-size: 27px; font-weight: 700; color: var(--plx-ink); margin: 12px 0 8px; line-height: 1.2; }
.plx-detail-sku { font-size: 11px; color: var(--plx-ink-soft); letter-spacing: .4px; }
.plx-detail-price { font-size: 30px; font-weight: 700; color: var(--plx-azul); margin: 18px 0 4px; }
.plx-detail-section { margin-top: 22px; }
.plx-detail-section h4 { font-size: 12px; font-weight: 700; color: var(--plx-azul); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 8px; }
.plx-detail-section p { font-size: 14px; line-height: 1.7; color: #38505c; margin: 0; white-space: pre-line; }
.plx-detail-indications { background: #f3f8fa; border-left: 3px solid var(--plx-teal); border-radius: 0 12px 12px 0; padding: 14px 16px; }
.plx-detail-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.plx-detail-actions .plx-btn { flex: 1; min-width: 160px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.plx-footer { background: #fff; border-top: 1px solid #daedf2; padding: 28px 0; text-align: center; color: var(--plx-ink-soft); font-size: 12px; }
.plx-footer strong { color: var(--plx-azul); }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.plx-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--plx-azul); color: #fff; padding: 12px 22px; border-radius: 24px;
  font-size: 13px; font-weight: 600; box-shadow: 0 8px 28px rgba(30,41,59,0.35);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 9500;
}
.plx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Filtros ────────────────────────────────────────────────────────────── */
.plx-filters-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 26px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--plx-border); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(30,41,59,0.05);
}
.plx-filter-select {
  padding: 8px 14px; border: 1.5px solid var(--plx-border); border-radius: 22px;
  font-family: inherit; font-size: 13px; color: var(--plx-ink); background: #f8fbfc;
  outline: none; cursor: pointer; transition: border-color .2s;
}
.plx-filter-select:focus { border-color: var(--plx-teal); }
.plx-price-range {
  display: flex; align-items: center; gap: 6px;
}
.plx-price-range input {
  width: 115px; padding: 8px 12px; border: 1.5px solid var(--plx-border); border-radius: 22px;
  font-family: inherit; font-size: 13px; color: var(--plx-ink); background: #f8fbfc;
  outline: none; transition: border-color .2s;
}
.plx-price-range input:focus { border-color: var(--plx-teal); }
.plx-price-range span { color: var(--plx-ink-soft); font-size: 13px; }
.plx-btn-sm { padding: 8px 14px; font-size: 12.5px; }

/* ── Paginación ─────────────────────────────────────────────────────────── */
#plx-pagination { margin-top: 38px; }
.plx-pag { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.plx-pag-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1.5px solid var(--plx-border); border-radius: 10px;
  background: #fff; color: var(--plx-ink); font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: border-color .18s, background .18s, color .18s;
}
.plx-pag-btn:hover:not([disabled]) { border-color: var(--plx-teal); color: var(--plx-azul); background: #f0f9fa; }
.plx-pag-btn.active { background: var(--plx-azul); border-color: var(--plx-azul); color: #fff; }
.plx-pag-btn[disabled] { opacity: .4; cursor: not-allowed; }
.plx-pag-dots { color: var(--plx-ink-soft); font-size: 13px; padding: 0 4px; }

/* ── Checkout modal ─────────────────────────────────────────────────────── */
.plx-checkout-overlay {
  position: fixed; inset: 0; background: rgba(1,43,53,0.55);
  z-index: 9200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.plx-checkout-overlay.open { opacity: 1; pointer-events: all; }

.plx-checkout-box {
  background: #fff; border-radius: 22px;
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 72px rgba(30,41,59,0.28);
  transform: translateY(20px) scale(.97); transition: transform .25s;
}
.plx-checkout-overlay.open .plx-checkout-box { transform: none; }

.plx-checkout-head {
  background: var(--plx-azul); color: #fff;
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  border-radius: 22px 22px 0 0; position: sticky; top: 0; z-index: 1;
}
.plx-checkout-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.plx-checkout-close {
  background: rgba(255,255,255,.18); border: none; color: #fff; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: background .18s;
}
.plx-checkout-close:hover { background: rgba(255,255,255,.3); }

.plx-checkout-body { padding: 22px 24px 28px; }
.plx-checkout-section-title {
  font-size: 12px; font-weight: 700; color: var(--plx-azul);
  text-transform: uppercase; letter-spacing: .6px; margin: 0 0 12px;
}

/* Resumen de items */
.plx-co-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #eef5f7;
}
.plx-co-item:last-child { border-bottom: none; margin-bottom: 16px; }
.plx-co-item img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; background: #eef5f7; flex-shrink: 0; }
.plx-co-item-info { flex: 1; min-width: 0; }
.plx-co-item-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.plx-co-item-sub  { font-size: 12px; color: var(--plx-ink-soft); margin-top: 2px; }
.plx-co-item-sub2 { font-size: 13.5px; font-weight: 700; color: var(--plx-azul); flex-shrink: 0; }

/* Form */
.plx-checkout-form { margin-top: 20px; }
.plx-cof { margin-bottom: 14px; }
.plx-cof label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.plx-cof label span { color: var(--plx-rosa); }
.plx-cof input, .plx-cof textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--plx-border);
  border-radius: 10px; font-family: inherit; font-size: 13.5px; color: var(--plx-ink);
  background: #f8fbfc; outline: none; transition: border-color .2s, box-shadow .2s;
}
.plx-cof input:focus, .plx-cof textarea:focus {
  border-color: var(--plx-teal); background: #fff; box-shadow: 0 0 0 3px rgba(92,179,193,.1);
}
.plx-cof textarea { resize: vertical; min-height: 70px; }

.plx-checkout-total {
  display: flex; align-items: center; justify-content: space-between;
  background: #f3f8fa; border-radius: 12px; padding: 12px 16px; margin: 16px 0;
}
.plx-checkout-total span { font-size: 13px; color: var(--plx-ink-soft); }
.plx-checkout-total strong { font-size: 22px; font-weight: 700; color: var(--plx-azul); }

.plx-checkout-err {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px;
}
.plx-checkout-submit { width: 100%; padding: 13px; font-size: 14.5px; border-radius: 12px; }

/* Success state */
.plx-checkout-success { text-align: center; padding: 12px 0 8px; }
.plx-co-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff;
  font-size: 28px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.plx-checkout-success h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.plx-checkout-success p { font-size: 14px; color: var(--plx-ink-soft); line-height: 1.6; margin: 0 0 6px; }
.plx-co-success-sub { color: var(--plx-ink-soft); font-size: 13px; }
.plx-btn-whatsapp {
  display: inline-flex; align-items: center; gap: 9px;
  background: #25D366; color: #fff; padding: 12px 22px; border-radius: 22px;
  font-weight: 700; font-size: 14px; text-decoration: none; margin: 18px 0 10px;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.plx-btn-whatsapp:hover { background: #22c55e; }
.plx-co-close-btn { display: block; width: 100%; margin-top: 6px; }

/* ── Responsive base ───────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .plx-nav-main { display: none; }
}
@media (max-width: 720px) {
  .plx-hero { display: none; }                 /* home tipo app: directo a buscar/catálogo */
  .plx-hero h1 { font-size: 28px; }
  .plx-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .plx-section-head { flex-direction: column; align-items: stretch; }
  .plx-search { width: 100%; }
  .plx-nav { height: 64px; gap: 12px; }
  .plx-login-btn { padding: 9px 14px; font-size: 13px; }
  .plx-login-btn span { display: none; }
  .plx-promo-dim { display: none; }
  .plx-promo-inner { font-size: 12px; gap: 8px; }
  .plx-section { padding: 18px 0 60px; }
  .plx-feat-card { width: 144px; }
}

/* ── Catálogo con sidebar ──────────────────────────────────────────────── */
.plx-catalog-layout {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.plx-sidebar {
  width: 252px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--plx-border);
  border-radius: 16px;
  box-shadow: var(--plx-shadow);
  position: sticky;
  top: 124px;                         /* debajo de la barra de búsqueda sticky (~112px) */
  max-height: calc(100vh - 142px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--plx-border) transparent;
}
.plx-sidebar::-webkit-scrollbar { width: 4px; }
.plx-sidebar::-webkit-scrollbar-thumb { background: var(--plx-border); border-radius: 4px; }

.plx-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--plx-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.plx-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--plx-azul);
  text-transform: uppercase;
  letter-spacing: .6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.plx-sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--plx-ink-soft);
  padding: 4px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.plx-sidebar-close-btn:hover { background: #f0f4f6; color: var(--plx-azul); }

.plx-sidebar-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--plx-border);
}
.plx-sidebar-section:last-child { border-bottom: none; }

.plx-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--plx-teal);
  margin-bottom: 10px;
}

/* Búsqueda en sidebar */
.plx-sidebar-search-wrap {
  position: relative;
}
.plx-sidebar-search-wrap .plx-search {
  width: 100%;
  min-width: unset;
  padding: 9px 36px 9px 14px;
  font-size: 13px;
}
.plx-sidebar-search-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--plx-ink-soft);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Categorías */
.plx-cat-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.plx-cat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  color: var(--plx-ink);
  transition: background .15s, color .15s;
  width: 100%;
  line-height: 1.3;
}
.plx-cat-item:hover { background: #eef7f9; color: var(--plx-azul); }
.plx-cat-item.active { background: var(--plx-tint-dorado); color: #8a6206; font-weight: 700; box-shadow: inset 3px 0 0 var(--plx-amarillo); }
.plx-cat-item.active .plx-cat-icon { color: #b8860b; }
.plx-cat-item.active .plx-cat-arrow { stroke: #b8860b; }

.plx-cat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--plx-teal);
}
.plx-cat-label { flex: 1; font-weight: 500; }
.plx-cat-arrow { flex-shrink: 0; stroke: var(--plx-border); }

/* Radios de filtro */
.plx-radio-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  cursor: pointer;
  font-size: 13px;
  color: var(--plx-ink);
  transition: color .15s;
  line-height: 1.4;
}
.plx-radio-opt:hover { color: var(--plx-azul); }
.plx-radio-opt input[type="radio"] {
  accent-color: var(--plx-azul);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Precio columna en sidebar */
.plx-price-range--col {
  flex-direction: column;
  gap: 8px;
}
.plx-price-range--col input {
  width: 100%;
}

/* Botón bloque */
.plx-btn-block { width: 100%; }

/* ── Área principal del catálogo ──────────────────────────────────────── */
.plx-catalog-main { flex: 1; min-width: 0; }

.plx-catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.plx-catalog-topbar p {
  color: var(--plx-ink-soft);
  font-size: 13px;
  margin: 0;
}

.plx-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1.5px solid var(--plx-border);
  border-radius: 22px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--plx-azul);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.plx-sidebar-toggle:hover { border-color: var(--plx-teal); background: #f4fafb; }

/* ── Overlay móvil ─────────────────────────────────────────────────────── */
.plx-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1,43,53,.5);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.plx-sidebar-overlay.open { opacity: 1; pointer-events: all; }

/* Hero hint icon wrapper */
.plx-hero-hint-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Responsive sidebar ────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .plx-catalog-layout { display: block; }
  .plx-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 278px;
    max-height: 100vh;
    border-radius: 0 18px 18px 0;
    z-index: 850;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  .plx-sidebar.open { transform: translateX(0); }
  .plx-sidebar-overlay { display: block; }
  .plx-sidebar-close-btn { display: flex; }
  .plx-sidebar-toggle { display: inline-flex; }
  .plx-catalog-topbar { margin-bottom: 14px; }
}

@media (max-width: 620px) {
  .plx-hero h1 { font-size: 24px; }
  .plx-hero p  { font-size: 14px; }
  .plx-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* El icono de usuario ya lleva al login: el botón con texto sobra y desborda */
  .plx-login-btn { display: none; }
}
@media (max-width: 340px) {
  .plx-grid { grid-template-columns: 1fr; }
}
