*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --color-primary:#1a1a1a;
  --color-accent:#e63946;
  --color-purple:#6c5ce7;
  --color-bg:#ffffff;
  --color-bg-secondary:#f8f9fa;
  --color-border:#e5e7eb;
  --color-text:#111827;
  --color-text-secondary:#6b7280;
  --color-success:#10b981;
  --color-danger:#ef4444;
  --color-info:#3b82f6;
  --color-warning:#f59e0b;
  --radius:12px;
  --radius-lg:20px;
  --shadow:0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover:0 20px 40px rgba(0,0,0,0.15);
  --transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
  --gradient-primary:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  --gradient-accent:linear-gradient(135deg,#f093fb 0%,#f5576c 100%);
}
body.dark-mode{
  --color-primary:#f1f5f9;
  --color-bg:#0f172a;
  --color-bg-secondary:#1e293b;
  --color-border:#334155;
  --color-text:#f1f5f9;
  --color-text-secondary:#94a3b8;
}
html{scroll-behavior:smooth}
body{
  font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
  background:var(--color-bg);
  color:var(--color-text);
  line-height:1.6;
  transition:background-color 0.4s ease,color 0.4s ease;
  overflow-x:hidden;
}

/* HEADER */
/* ========== HEADER (responsive) ========== */
/* ========== HEADER — Card / glass, PC + móvil ========== */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px;
  position:sticky;
  top:0;
  z-index:100;
  gap:14px;
  min-height:64px;
  background:rgba(255,255,255,0.82);
  backdrop-filter:blur(20px) saturate(1.2);
  -webkit-backdrop-filter:blur(20px) saturate(1.2);
  border-bottom:1px solid rgba(148,163,184,0.18);
  box-shadow:0 4px 24px rgba(15,23,42,0.06);
  transition:background 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode .site-header{
  background:rgba(15,23,42,0.88);
  border-bottom-color:rgba(148,163,184,0.12);
  box-shadow:0 4px 28px rgba(0,0,0,0.35);
}

/* Contenedor interno tipo card en pantallas grandes */
@media (min-width: 1100px) {
  .site-header {
    margin: 10px 16px 0;
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,0.15);
    max-width: calc(100% - 32px);
    width: auto;
    left: 0;
    right: 0;
  }
}

.header-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
  min-width:0;
}
.logo{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:20px;
  font-weight:800;
  background:var(--gradient-primary);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  cursor:pointer;
  text-decoration:none;
  letter-spacing:-0.3px;
  white-space:nowrap;
  line-height:1.2;
  padding:4px 0;
}
.logo:hover{opacity:0.9; transform:scale(1.02)}
.logo-badge{
  display:inline-flex;
  width:34px; height:34px;
  align-items:center; justify-content:center;
  border-radius:11px;
  background:var(--gradient-primary);
  color:#fff !important;
  -webkit-text-fill-color:#fff;
  font-size:18px;
  box-shadow:0 4px 14px rgba(102,126,234,0.35);
  flex-shrink:0;
}

/* Hamburger (mobile) */
.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid var(--color-border);
  background:var(--color-bg-secondary);
  border-radius:12px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  padding:0;
  flex-shrink:0;
  transition:var(--transition);
}
.nav-toggle:hover{border-color:#667eea}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:var(--color-text);
  border-radius:2px;
  transition:transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.main-nav{
  display:flex;
  gap:6px;
  align-items:center;
  flex:1;
  justify-content:center;
  min-width:0;
  padding:4px;
  background:rgba(148,163,184,0.08);
  border-radius:14px;
  border:1px solid rgba(148,163,184,0.1);
}
body.dark-mode .main-nav{
  background:rgba(30,41,59,0.5);
  border-color:rgba(148,163,184,0.08);
}
.main-nav a{
  text-decoration:none;
  color:var(--color-text-secondary);
  font-weight:500;
  font-size:13.5px;
  padding:8px 16px;
  border-radius:10px;
  transition:var(--transition);
  position:relative;
  white-space:nowrap;
}
.main-nav a:hover{
  color:var(--color-text);
  background:rgba(255,255,255,0.7);
}
body.dark-mode .main-nav a:hover{
  background:rgba(51,65,85,0.6);
}
.main-nav a.active{
  color:#fff;
  font-weight:600;
  background:var(--gradient-primary);
  box-shadow:0 4px 14px rgba(102,126,234,0.35);
}
.main-nav a.active::after{display:none}

.header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.header-actions .cart-btn{
  min-width:44px;
  min-height:40px;
  border-radius:12px;
  padding:8px 12px;
}
.header-actions .cart-btn .cart-count{
  position:absolute;
  top:-4px;
  right:-4px;
}

/* Backdrop del menú móvil */
.nav-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  z-index:90;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 0.3s ease, visibility 0.3s ease;
}
.nav-backdrop.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* Panel lateral móvil: solo se muestra en ≤900px */
.mobile-menu-panel{
  display:none;
}

.theme-toggle{
  background:var(--color-bg-secondary);
  border:1px solid var(--color-border);
  border-radius:50%;
  width:40px;
  height:40px;
  cursor:pointer;
  font-size:18px;
  transition:var(--transition);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.theme-toggle:hover{transform:rotate(180deg) scale(1.08);background:var(--color-border)}

.search-box{
  display:flex;
  gap:6px;
  align-items:center;
  position:relative;
}
.search-box input{
  padding:9px 16px;
  border:1.5px solid var(--color-border);
  border-radius:22px;
  width:180px;
  font-size:13px;
  background:var(--color-bg);
  color:var(--color-text);
  transition:var(--transition);
}
.search-box input:focus{
  outline:none;
  border-color:#667eea;
  width:220px;
  box-shadow:0 0 0 3px rgba(102,126,234,0.12);
}
.search-box button{
  padding:9px 12px;
  background:var(--gradient-primary);
  color:white;
  border:none;
  border-radius:22px;
  cursor:pointer;
  transition:var(--transition);
  font-size:14px;
  flex-shrink:0;
}
.search-box button:hover{transform:scale(1.05);box-shadow:0 4px 12px rgba(102,126,234,0.35)}

.cart-btn{
  position:relative;
  padding:8px 12px;
  background:var(--color-bg-secondary);
  border:1px solid var(--color-border);
  border-radius:22px;
  cursor:pointer;
  font-size:16px;
  transition:var(--transition);
  display:flex;
  align-items:center;
  gap:4px;
  min-width:44px;
  min-height:40px;
  justify-content:center;
}
.cart-btn:hover{background:var(--color-border);transform:translateY(-1px)}
.cart-count{
  position:absolute;
  top:-5px;
  right:-5px;
  background:var(--color-accent);
  color:white;
  min-width:20px;
  height:20px;
  border-radius:50%;
  font-size:10px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
}

/* Admin-only banner */
.admin-only-banner{
  background:linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#4c1d95 100%);
  color:white;
  padding:48px 32px;
  text-align:center;
  min-height:calc(100vh - 80px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.admin-banner-content{
  max-width:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}
.admin-banner-icon{font-size:56px;margin-bottom:8px}
.admin-banner-content h2{
  font-size:28px;
  font-weight:800;
  margin:0;
}
.admin-banner-content p{
  opacity:0.9;
  font-size:15px;
  line-height:1.5;
  margin:0 0 12px;
}
.admin-only-banner .btn-primary{
  margin-top:8px;
  padding:14px 28px;
  font-size:15px;
}

/* HERO */
.hero-section{
  background:var(--gradient-primary);
  background-size:200% 200%;
  color:white;
  padding:80px 32px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
body.dark-mode .hero-section{background:linear-gradient(135deg,#4c1d95 0%,#312e81 100%)}
.hero-section h1{font-size:42px;margin-bottom:16px;font-weight:800;position:relative;z-index:1}
.hero-section p{font-size:18px;opacity:0.95;max-width:600px;margin:0 auto;position:relative;z-index:1}
.hero-cta{margin-top:24px}
.hero-btn{
  display:inline-block;
  padding:14px 28px;
  border-radius:30px;
  font-weight:700;
  text-decoration:none;
  transition:var(--transition);
}
.hero-btn-primary{background:white;color:#667eea}
.hero-btn-primary:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(0,0,0,0.2)}

/* LAYOUT */
.store-container,.page-container{max-width:1280px;margin:0 auto;padding:32px}
.store-container{display:flex;gap:32px}
.page-container{display:block}
.sidebar{width:260px;flex-shrink:0}
.filter-section{margin-bottom:24px;padding:20px;background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius)}
.filter-section h3{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:14px;color:var(--color-text)}
.filter-list{list-style:none}
.filter-list li{margin-bottom:8px}
.filter-list label{display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer;padding:8px 10px;border-radius:8px;transition:var(--transition)}
.filter-list label:hover{background:var(--color-bg-secondary);transform:translateX(4px)}
.filter-list input[type="checkbox"]{width:18px;height:18px;accent-color:#667eea}
.price-inputs{display:flex;align-items:center;gap:8px}
.price-inputs input{width:100%;padding:10px;border:1px solid var(--color-border);border-radius:8px;font-size:14px;background:var(--color-bg);color:var(--color-text)}
.price-inputs input:focus{outline:none;border-color:#667eea}
.main-content{flex:1}
.products-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding:20px;background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius)}
.products-header h1{font-size:24px;font-weight:700}
#sortSelect{padding:10px 16px;border:1px solid var(--color-border);border-radius:8px;font-size:14px;background:var(--color-bg);color:var(--color-text);cursor:pointer}

/* PRODUCTOS */
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:24px}
.product-card{border:1px solid var(--color-border);border-radius:var(--radius-lg);overflow:hidden;transition:var(--transition);background:var(--color-bg);animation:fadeInUp 0.6s ease backwards}
@keyframes fadeInUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
.product-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-hover);border-color:#667eea}
.product-card.on-offer{border:2px solid var(--color-accent)}
.product-card.out-of-stock{opacity:0.65}
.product-image{position:relative;aspect-ratio:1;background:var(--color-bg-secondary);display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s}
.product-card:hover .product-image img{transform:scale(1.1)}
.badge-offer{position:absolute;top:12px;left:12px;background:var(--gradient-accent);color:white;font-size:11px;font-weight:700;padding:6px 14px;border-radius:20px;z-index:2;box-shadow:0 4px 15px rgba(245,87,108,0.4)}
.badge-new{position:absolute;top:12px;right:60px;background:var(--gradient-primary);color:white;font-size:10px;font-weight:700;padding:4px 10px;border-radius:20px;z-index:2;letter-spacing:1px}
.badge-stock{position:absolute;top:12px;right:12px;background:rgba(0,0,0,0.7);color:white;font-size:11px;font-weight:700;padding:6px 14px;border-radius:20px;z-index:2}
.quick-view-btn{position:absolute;bottom:12px;left:50%;transform:translateX(-50%) translateY(20px);background:rgba(255,255,255,0.95);color:var(--color-primary);border:none;padding:10px 24px;border-radius:25px;font-size:13px;font-weight:600;cursor:pointer;opacity:0;transition:var(--transition);z-index:2;backdrop-filter:blur(10px);box-shadow:0 4px 20px rgba(0,0,0,0.15)}
.product-card:hover .quick-view-btn{opacity:1;transform:translateX(-50%) translateY(0)}
.btn-compare-float{
  position:absolute;top:12px;right:12px;width:36px;height:36px;
  background:rgba(255,255,255,0.9);border:none;border-radius:50%;
  cursor:pointer;font-size:16px;opacity:0;transition:var(--transition);z-index:3;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}
.product-card:hover .btn-compare-float{opacity:1}
.btn-compare-float.active{opacity:1;background:#e0e7ff;color:#4338ca}
.product-info{padding:18px}
.product-category{display:inline-block;font-size:11px;color:#667eea;margin-bottom:6px;text-transform:uppercase;letter-spacing:1px;font-weight:600}
.product-name{font-size:16px;font-weight:700;margin-bottom:10px;line-height:1.3}
.rating{display:flex;align-items:center;gap:6px;margin-bottom:12px;font-size:14px}
.stars{color:#f59e0b;letter-spacing:2px}
.price-row{display:flex;align-items:baseline;gap:10px;margin-bottom:14px}
.price{font-size:22px;font-weight:800;background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.old-price{font-size:14px;color:var(--color-text-secondary);text-decoration:line-through}
.product-actions{display:flex;gap:8px}
.btn-add-cart{flex:1;padding:12px;background:var(--color-primary);color:var(--color-bg);border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:var(--transition)}
.btn-add-cart:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,0.2)}
.btn-add-cart:disabled{background:var(--color-border);cursor:not-allowed}
.btn-favorite{width:44px;height:44px;border:1px solid var(--color-border);background:var(--color-bg);border-radius:10px;cursor:pointer;font-size:20px;transition:var(--transition);display:flex;align-items:center;justify-content:center}
.btn-favorite:hover{background:var(--color-bg-secondary);transform:scale(1.1) rotate(10deg)}
.btn-favorite.active{background:#fff0f0;border-color:#ff6b6b}

/* MODALES */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.7);backdrop-filter:blur(8px);display:none;align-items:center;justify-content:center;z-index:200;padding:20px;overflow-y:auto}
.modal-overlay.show{display:flex;animation:fadeIn 0.3s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal{background:var(--color-bg);border-radius:var(--radius-lg);padding:32px;width:100%;max-width:500px;position:relative;box-shadow:0 30px 80px rgba(0,0,0,0.4);animation:scaleIn 0.3s ease}
.modal.modal-product-detail{max-width:min(1040px,94vw);padding:0}
@keyframes scaleIn{from{opacity:0;transform:scale(0.9)}to{opacity:1;transform:scale(1)}}
.modal-close{position:absolute;top:16px;right:16px;background:var(--color-bg-secondary);border:none;font-size:22px;cursor:pointer;width:36px;height:36px;border-radius:50%;transition:var(--transition);display:flex;align-items:center;justify-content:center;color:var(--color-text);z-index:10}
.modal-close:hover{background:var(--color-accent);color:white;transform:rotate(90deg)}

/* MODAL DETALLE PRODUCTO */
.modal-product-detail{max-width:1000px;padding:0;overflow:hidden}
.product-detail-content{display:grid;grid-template-columns:1fr 1fr;min-height:600px}
.product-gallery{background:linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);padding:40px;position:relative;display:flex;align-items:center;justify-content:center;min-height:500px}
body.dark-mode .product-gallery{background:linear-gradient(135deg,#1e293b 0%,#0f172a 100%)}
.product-gallery img{max-width:100%;max-height:450px;object-fit:contain;border-radius:var(--radius);filter:drop-shadow(0 20px 40px rgba(0,0,0,0.15));transition:var(--transition)}
.product-gallery img:hover{transform:scale(1.05) rotate(2deg)}
.btn-favorite-float{position:absolute;top:24px;right:24px;width:56px;height:56px;background:white;border:none;border-radius:50%;box-shadow:0 8px 24px rgba(0,0,0,0.15);cursor:pointer;font-size:24px;transition:var(--transition);display:flex;align-items:center;justify-content:center;z-index:10}
.btn-favorite-float:hover{transform:scale(1.15) rotate(15deg);box-shadow:0 12px 32px rgba(0,0,0,0.2)}
.btn-favorite-float.active{background:#fff0f0}
.gallery-badges{position:absolute;bottom:20px;left:20px}
.badge-sku{background:rgba(0,0,0,0.75);color:white;padding:6px 12px;border-radius:8px;font-size:11px;font-weight:700;font-family:'Courier New',monospace;letter-spacing:1px;backdrop-filter:blur(10px)}
.product-detail-info{padding:40px;overflow-y:auto;max-height:80vh}
.category-badge{display:inline-block;background:var(--gradient-primary);color:white;padding:8px 18px;border-radius:25px;font-size:11px;font-weight:700;margin-bottom:16px;text-transform:uppercase;letter-spacing:1.5px;box-shadow:0 4px 15px rgba(102,126,234,0.3)}
.product-detail-info h2{font-size:32px;font-weight:800;margin-bottom:12px;line-height:1.2;color:var(--color-text)}
.rating-detail{display:flex;align-items:center;gap:12px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--color-border)}
.stars-detail{color:#f59e0b;font-size:18px;letter-spacing:2px}
.rating-text{color:var(--color-text-secondary);font-size:14px;font-weight:500}
.price-detail{display:flex;align-items:baseline;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.price-main{font-size:48px;font-weight:800;background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1}
.price-old{font-size:22px;color:var(--color-text-secondary);text-decoration:line-through;font-weight:500}
.discount-badge{background:var(--gradient-accent);color:white;padding:8px 16px;border-radius:25px;font-size:14px;font-weight:700;box-shadow:0 4px 15px rgba(245,87,108,0.4);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.stock-status-badge{margin-bottom:24px}
.stock-badge-status{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:25px;font-size:13px;font-weight:600}
.stock-badge-status.in-stock{background:#d1fae5;color:#065f46}
.stock-badge-status.low-stock{background:#fef3c7;color:#92400e;animation:pulse 2s infinite}
.stock-badge-status.out-stock{background:#fee2e2;color:#991b1b}

/* ========== FICHA PRODUCTO v2 — responsive PC + móvil ========== */
/*
  Clases:
  - #productDetailModal.pdp-modal-v2  (overlay)
  - .modal-product-detail.pdp-modal-v2 (caja del modal)
  - .product-detail-content.pdp-v2     (contenido)
  Mobile-first → tablet → desktop 2 columnas
*/

/* —— Overlay —— */
#productDetailModal.pdp-modal-v2.modal-overlay,
.modal-overlay.pdp-modal-v2 {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 768px) {
  #productDetailModal.pdp-modal-v2.modal-overlay,
  .modal-overlay.pdp-modal-v2 {
    align-items: center;
    padding: 24px;
  }
}

/* —— Caja del modal (móvil) —— */
#productDetailModal .modal-product-detail.pdp-modal-v2,
.modal-product-detail.pdp-modal-v2,
.modal-product-detail:has(.pdp-v2) {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 20px 20px 0 0 !important;
  background: #fff;
  color: #0f172a;
  max-height: 96dvh !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
  padding: 0 !important;
}
body.dark-mode #productDetailModal .modal-product-detail.pdp-modal-v2,
body.dark-mode .modal-product-detail.pdp-modal-v2,
body.dark-mode .modal-product-detail:has(.pdp-v2) {
  background: #0f172a;
  color: #f1f5f9;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}

/* —— Contenido —— */
.product-detail-content.pdp-v2 {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
  min-height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 96dvh;
  flex: 1;
}

/* —— Galería —— */
.pdp-v2 .product-gallery.pdp-gallery {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 220px;
  padding: 16px 12px 8px;
  background: #f8fafc;
  border-radius: 0;
  position: relative;
}
body.dark-mode .pdp-v2 .product-gallery.pdp-gallery { background: #1e293b; }

.pdp-v2 .pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.pdp-v2 .pdp-thumb {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}
body.dark-mode .pdp-v2 .pdp-thumb { background: #0f172a; }
.pdp-v2 .pdp-thumb.active {
  border-color: #e11d48;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2);
}
.pdp-v2 .pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: none;
  filter: none;
  border-radius: 0;
}
.pdp-v2 .pdp-thumb img:hover { transform: none; }

.pdp-v2 .product-gallery > img#detailImage {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: none;
  border-radius: 14px;
  justify-self: center;
  transition: none;
}
.pdp-v2 .product-gallery > img#detailImage:hover { transform: none; }

.pdp-v2 .pdp-discount-float {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
  z-index: 5;
}
.pdp-v2 .btn-favorite-float.pdp-fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 6;
  transition: transform 0.2s;
}
.pdp-v2 .btn-favorite-float.pdp-fav-btn:hover { transform: scale(1.08); }
.pdp-v2 .pdp-share-btn { display: none !important; }
body.dark-mode .pdp-v2 .btn-favorite-float.pdp-fav-btn {
  background: #1e293b;
  color: #e2e8f0;
}
.pdp-v2 .gallery-badges { display: none; }

/* —— Info —— */
.pdp-v2 .product-detail-info.pdp-info {
  padding: 14px 16px 20px;
  max-height: none;
  overflow: visible;
  background: #fff;
}
body.dark-mode .pdp-v2 .product-detail-info.pdp-info { background: #0f172a; }

.pdp-v2 .category-badge {
  background: transparent;
  color: #64748b;
  padding: 0;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: none;
}
.pdp-v2 .product-detail-info h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #0f172a;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
body.dark-mode .pdp-v2 .product-detail-info h2 { color: #f8fafc; }

.pdp-v2 .rating-detail {
  border: none;
  padding: 0;
  margin: 0 0 10px;
  gap: 6px;
}
.pdp-v2 .stars-detail {
  color: #f59e0b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.pdp-v2 .rating-text { font-size: 12px; color: #64748b; }

.pdp-v2 .price-detail {
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.pdp-v2 .price-main {
  font-size: 26px;
  font-weight: 800;
  background: none;
  -webkit-text-fill-color: #e11d48;
  color: #e11d48;
  line-height: 1.1;
}
.pdp-v2 .price-old {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}
.pdp-v2 .discount-badge { display: none !important; }

.pdp-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.pdp-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid #e2e8f0;
}
body.dark-mode .pdp-chip {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}

.pdp-variants { margin: 4px 0 14px; }
.pdp-variant-block { margin-bottom: 12px; }
.pdp-variant-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
body.dark-mode .pdp-variant-label { color: #f1f5f9; }
.pdp-size-guide {
  border: none;
  background: none;
  color: #64748b;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}
.pdp-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.pdp-swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e11d48;
}
body.dark-mode .pdp-swatch.active {
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #e11d48;
}
.pdp-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-size {
  min-width: 48px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pdp-size.active,
.pdp-size:hover {
  border-color: #e11d48;
  background: #fff1f2;
}
body.dark-mode .pdp-size {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
body.dark-mode .pdp-size.active {
  border-color: #e11d48;
  background: rgba(225, 29, 72, 0.15);
}

.pdp-v2 .stock-status-badge { margin-bottom: 12px; }
.pdp-v2 .product-tabs {
  margin: 12px 0 16px;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.pdp-v2 .tabs-header {
  background: transparent;
  border-bottom: 1px solid #e2e8f0;
  gap: 0;
}
body.dark-mode .pdp-v2 .tabs-header { border-bottom-color: #334155; }
.pdp-v2 .tab-button {
  border-bottom: 2px solid transparent;
  padding: 10px 6px;
  font-size: 12px;
  gap: 4px;
}
.pdp-v2 .tab-button.active {
  color: #e11d48;
  border-bottom-color: #e11d48;
  background: transparent;
}
.pdp-v2 .tabs-content { padding: 12px 0; min-height: auto; }
.pdp-v2 .quantity-selector {
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.pdp-v2 .actions-detail { margin-bottom: 10px; }
.pdp-v2 .btn-large.btn-primary.pdp-add-btn,
.pdp-v2 #detailAddToCart.pdp-add-btn {
  background: #e11d48 !important;
  color: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35) !important;
  padding: 14px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  width: 100%;
  min-height: 48px;
}
.pdp-v2 .btn-large.btn-primary.pdp-add-btn:hover:not(:disabled),
.pdp-v2 #detailAddToCart.pdp-add-btn:hover:not(:disabled) {
  background: #be123c !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.45) !important;
}
.pdp-v2 .btn-large.btn-primary.pdp-add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
}
.pdp-v2 .product-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  gap: 6px;
  margin-top: 8px;
}
body.dark-mode .pdp-v2 .product-meta {
  background: #1e293b;
  border-color: #334155;
}
.pdp-v2 .meta-item { font-size: 12px; line-height: 1.4; }

/* Cerrar */
#productDetailModal .modal-product-detail.pdp-modal-v2 > .modal-close,
.modal-product-detail.pdp-modal-v2 > .modal-close,
.modal-product-detail:has(.pdp-v2) > .modal-close {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  z-index: 20;
}
body.dark-mode #productDetailModal .modal-product-detail.pdp-modal-v2 > .modal-close,
body.dark-mode .modal-product-detail.pdp-modal-v2 > .modal-close {
  background: rgba(15, 23, 42, 0.9);
  color: #f1f5f9;
}

/* —— Tablet (≥640px) —— */
@media (min-width: 640px) {
  #productDetailModal .modal-product-detail.pdp-modal-v2,
  .modal-product-detail.pdp-modal-v2,
  .modal-product-detail:has(.pdp-v2) {
    max-width: 560px !important;
    width: min(560px, 96vw) !important;
    border-radius: 24px !important;
    max-height: 92vh !important;
    margin: auto !important;
  }
  #productDetailModal.pdp-modal-v2.modal-overlay,
  .modal-overlay.pdp-modal-v2 {
    align-items: center;
    padding: 20px;
  }
  .product-detail-content.pdp-v2 {
    max-height: 92vh;
  }
  .pdp-v2 .product-gallery.pdp-gallery {
    min-height: 280px;
    padding: 20px 16px 10px;
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
  .pdp-v2 .pdp-thumbs { max-height: 280px; gap: 10px; }
  .pdp-v2 .pdp-thumb { width: 52px; height: 52px; border-radius: 12px; }
  .pdp-v2 .product-gallery > img#detailImage { max-height: 280px; }
  .pdp-v2 .product-detail-info.pdp-info { padding: 16px 20px 24px; }
  .pdp-v2 .product-detail-info h2 { font-size: 22px; }
  .pdp-v2 .price-main { font-size: 28px; }
}

/* —— DESKTOP / PC (≥900px): 2 columnas —— */
@media (min-width: 900px) {
  #productDetailModal .modal-product-detail.pdp-modal-v2,
  .modal-product-detail.pdp-modal-v2,
  .modal-product-detail:has(.pdp-v2) {
    max-width: 980px !important;
    width: min(980px, 94vw) !important;
    border-radius: 24px !important;
    max-height: 90vh !important;
    margin: auto !important;
  }

  .product-detail-content.pdp-v2 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    flex-direction: unset !important;
    max-height: 90vh;
    overflow: hidden !important;
  }

  .pdp-v2 .product-gallery.pdp-gallery {
    min-height: 100%;
    height: 100%;
    max-height: 90vh;
    padding: 28px 20px;
    border-radius: 24px 0 0 24px;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
    overflow: hidden;
  }
  .pdp-v2 .pdp-thumbs {
    max-height: 420px;
    gap: 12px;
  }
  .pdp-v2 .pdp-thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }
  .pdp-v2 .product-gallery > img#detailImage {
    max-height: 420px;
    border-radius: 16px;
  }
  .pdp-v2 .pdp-discount-float {
    top: 24px;
    right: 24px;
    min-width: 48px;
    height: 48px;
    font-size: 13px;
  }
  .pdp-v2 .btn-favorite-float.pdp-fav-btn {
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
  }
  .pdp-v2 .product-detail-info.pdp-info {
    padding: 28px 32px 32px;
    overflow-y: auto !important;
    max-height: 90vh;
    -webkit-overflow-scrolling: touch;
  }
  .pdp-v2 .product-detail-info h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .pdp-v2 .price-main { font-size: 32px; }
  .pdp-v2 .category-badge { font-size: 13px; }
  .pdp-v2 .rating-text { font-size: 13px; }
  .pdp-v2 .tab-button { font-size: 13px; padding: 12px 10px; }
  .pdp-v2 .tabs-content { padding: 16px 0; }
  .pdp-v2 .btn-large.btn-primary.pdp-add-btn,
  .pdp-v2 #detailAddToCart.pdp-add-btn {
    padding: 16px 22px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
  }
  .pdp-v2 .product-meta { padding: 14px 16px; border-radius: 14px; }
  .pdp-v2 .meta-item { font-size: 13px; }

  #productDetailModal .modal-product-detail.pdp-modal-v2 > .modal-close,
  .modal-product-detail.pdp-modal-v2 > .modal-close {
    top: 16px;
    right: 16px;
  }

  /* Botones extra en 2 cols */
  .pdp-v2 .abs-extra-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .pdp-v2 .abs-continue {
    grid-column: 1 / -1;
  }
}

/* —— Pantallas grandes (≥1200px) —— */
@media (min-width: 1200px) {
  #productDetailModal .modal-product-detail.pdp-modal-v2,
  .modal-product-detail.pdp-modal-v2,
  .modal-product-detail:has(.pdp-v2) {
    max-width: 1080px !important;
    width: min(1080px, 92vw) !important;
  }
  .pdp-v2 .product-gallery > img#detailImage { max-height: 480px; }
  .pdp-v2 .pdp-thumbs { max-height: 480px; }
  .pdp-v2 .product-detail-info h2 { font-size: 28px; }
  .pdp-v2 .price-main { font-size: 36px; }
}

/* —— Móvil estrecho: thumbs horizontales —— */
@media (max-width: 639px) {
  .pdp-v2 .product-gallery.pdp-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    min-height: auto;
    padding: 12px 12px 6px;
  }
  .pdp-v2 .pdp-thumbs {
    flex-direction: row;
    order: 2;
    max-height: none;
    width: 100%;
    justify-content: center;
    padding: 6px 0 4px;
    overflow-x: auto;
  }
  .pdp-v2 .product-gallery > img#detailImage {
    order: 1;
    max-height: 200px;
  }
  .pdp-v2 .pdp-thumb { width: 44px; height: 44px; }
  .pdp-v2 .abs-buy-now,
  .pdp-v2 .abs-wa,
  .pdp-v2 .abs-quote-btn,
  .pdp-v2 .abs-continue {
    min-height: 44px;
  }
  .pdp-v2 .abs-extra-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
}

@supports (height: 100dvh) {
  #productDetailModal .modal-product-detail.pdp-modal-v2,
  .modal-product-detail.pdp-modal-v2 {
    max-height: 96dvh !important;
  }
  @media (min-width: 900px) {
    #productDetailModal .modal-product-detail.pdp-modal-v2,
    .modal-product-detail.pdp-modal-v2 {
      max-height: 90dvh !important;
    }
  }
}

/* PESTAÑAS */
.product-tabs{margin:24px 0;border:1px solid var(--color-border);border-radius:var(--radius);overflow:hidden}
.tabs-header{display:flex;background:var(--color-bg-secondary);border-bottom:1px solid var(--color-border)}
.tab-button{flex:1;padding:14px 16px;background:transparent;border:none;cursor:pointer;font-size:13px;font-weight:600;color:var(--color-text-secondary);transition:var(--transition);border-bottom:3px solid transparent;display:flex;align-items:center;justify-content:center;gap:6px}
.tab-button:hover{background:var(--color-bg);color:var(--color-text)}
.tab-button.active{color:var(--color-purple);background:var(--color-bg);border-bottom-color:var(--color-purple)}
.tab-icon{font-size:14px}
.tabs-content{padding:24px;min-height:140px}
.tab-content{display:none;animation:fadeIn 0.3s ease}
.tab-content.active{display:block}
#tab-description p{font-size:15px;line-height:1.7;color:var(--color-text-secondary)}
.features-list{list-style:none;display:grid;gap:10px}
.features-list li{padding:12px 16px;background:var(--color-bg-secondary);border-radius:10px;font-size:14px;color:var(--color-text);border-left:4px solid var(--color-success);transition:var(--transition);display:flex;align-items:center;gap:10px}
.features-list li:hover{transform:translateX(6px);background:var(--color-border)}
.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.related-card{display:flex;gap:12px;padding:12px;background:var(--color-bg-secondary);border-radius:12px;cursor:pointer;transition:var(--transition);border:1px solid transparent}
.related-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--color-purple)}
.related-card img{width:60px;height:60px;object-fit:cover;border-radius:8px}
.related-info{flex:1;display:flex;flex-direction:column;justify-content:center}
.related-info h5{font-size:13px;font-weight:600;margin-bottom:4px;line-height:1.3}
.related-price{font-size:14px;font-weight:700;color:var(--color-purple)}

/* CANTIDAD */
.quantity-selector{display:flex;align-items:center;gap:20px;margin-bottom:24px}
.quantity-selector label{font-weight:600;font-size:14px}
.qty-controls{display:flex;border:2px solid var(--color-border);border-radius:12px;overflow:hidden}
.qty-controls button{width:44px;height:44px;border:none;background:var(--color-bg-secondary);cursor:pointer;font-size:20px;transition:var(--transition);color:var(--color-text);font-weight:700}
.qty-controls button:hover{background:var(--gradient-primary);color:white}
.qty-controls input[type="number"],input[type="number"]{-moz-appearance:textfield;-webkit-appearance:none;appearance:none;width:60px;text-align:center;border:none;border-left:2px solid var(--color-border);border-right:2px solid var(--color-border);font-size:16px;font-weight:700;background:var(--color-bg);color:var(--color-text);padding:0}
.qty-controls input[type="number"]::-webkit-inner-spin-button,.qty-controls input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;appearance:none}

/* BOTONES */
.actions-detail{margin-bottom:24px}
.btn-large{padding:18px;font-size:16px;font-weight:700;width:100%;border-radius:12px;border:none;cursor:pointer;transition:var(--transition);display:flex;align-items:center;justify-content:center;gap:10px}
.btn-large.btn-primary{background:var(--gradient-primary);color:white;box-shadow:0 6px 20px rgba(102,126,234,0.4)}
.btn-large.btn-primary:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(102,126,234,0.5)}
.product-meta{display:flex;flex-direction:column;gap:12px;padding:20px;background:var(--color-bg-secondary);border-radius:var(--radius);border:1px solid var(--color-border)}
.meta-item{font-size:13px;color:var(--color-text-secondary);display:flex;align-items:center;gap:10px}

/* PANEL ADMIN */
.modal-admin{max-width:1200px;padding:24px;max-height:90vh;overflow-y:auto}
.admin-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;padding-bottom:20px;border-bottom:2px solid var(--color-border);gap:16px;flex-wrap:wrap}
.admin-header h2{font-size:26px;font-weight:800;background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.admin-actions{display:flex;gap:10px;flex-wrap:wrap}
.admin-alerts{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}
.alert{padding:16px 20px;border-radius:10px;border-left:4px solid}
.alert strong{display:block;margin-bottom:4px;font-size:14px}
.alert p{font-size:13px;margin:0;opacity:0.9}
.alert-success{background:#d1fae5;border-color:#10b981;color:#065f46}
.alert-warning{background:#fef3c7;border-color:#f59e0b;color:#92400e}
.alert-danger{background:#fee2e2;border-color:#ef4444;color:#991b1b}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}
.stat-card{background:var(--color-bg);padding:20px;border-radius:var(--radius);display:flex;align-items:center;gap:16px;border:1px solid var(--color-border);transition:var(--transition)}
.stat-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}
.stat-card.stat-success{border-left:4px solid var(--color-success)}
.stat-card.stat-danger{border-left:4px solid var(--color-danger)}
.stat-card.stat-info{border-left:4px solid var(--color-info)}
.stat-card.stat-warning{border-left:4px solid var(--color-warning)}
.stat-icon{font-size:36px}
.stat-value{font-size:26px;font-weight:800}
.stat-label{font-size:12px;color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:1px}
.chart-section{background:var(--color-bg-secondary);padding:20px;border-radius:var(--radius);margin-bottom:24px;border:1px solid var(--color-border)}
.chart-section h3{margin-bottom:16px;font-size:16px}
.chart-container{display:flex;flex-direction:column;gap:12px}
.chart-item{display:flex;align-items:center;gap:12px}
.chart-label{width:100px;font-size:13px;font-weight:600}
.chart-bar-container{flex:1;height:28px;background:var(--color-bg);border-radius:14px;overflow:hidden;border:1px solid var(--color-border)}
.chart-bar{height:100%;border-radius:14px;display:flex;align-items:center;justify-content:flex-end;padding-right:12px;transition:width 0.8s cubic-bezier(0.4,0,0.2,1);min-width:40px}
.chart-value{color:white;font-size:12px;font-weight:700}
.admin-toolbar{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}
.admin-search,.admin-select{padding:12px 16px;border:2px solid var(--color-border);border-radius:10px;font-size:14px;background:var(--color-bg);color:var(--color-text);transition:var(--transition)}
.admin-search{flex:1;min-width:200px}
.admin-search:focus,.admin-select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px rgba(102,126,234,0.1)}
.table-container{overflow-x:auto;border:1px solid var(--color-border);border-radius:var(--radius)}
.admin-table{width:100%;border-collapse:collapse;font-size:14px}
.admin-table thead{background:var(--color-bg-secondary)}
.admin-table th{text-align:left;padding:14px 16px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--color-text-secondary)}
.admin-table td{padding:14px 16px;border-bottom:1px solid var(--color-border)}
.admin-table tbody tr{transition:var(--transition)}
.admin-table tbody tr:hover{background:var(--color-bg-secondary)}
.product-cell{display:flex;align-items:center;gap:12px}
.product-cell img{width:50px;height:50px;border-radius:10px;object-fit:cover}
.tag{display:inline-block;padding:4px 12px;background:var(--color-bg-secondary);border-radius:20px;font-size:12px;font-weight:600}
.stock-badge{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:700}
.stock-badge.in-stock{background:#d1fae5;color:#065f46}
.stock-badge.low-stock{background:#fef3c7;color:#92400e}
.stock-badge.out-of-stock{background:#fee2e2;color:#991b1b}
.admin-badges{display:flex;gap:4px;flex-wrap:wrap}
.mini-badge{padding:3px 8px;border-radius:10px;font-size:10px;font-weight:700;letter-spacing:0.5px}
.mini-badge.offer{background:#fee2e2;color:#991b1b}
.mini-badge.new{background:#dbeafe;color:#1e40af}
.mini-badge.active{background:#d1fae5;color:#065f46}
.mini-badge.inactive{background:#f3f4f6;color:#6b7280}
.actions{display:flex;gap:6px}
.btn-icon{width:36px;height:36px;border:none;background:var(--color-bg-secondary);border-radius:10px;cursor:pointer;font-size:16px;transition:var(--transition)}
.btn-icon:hover{transform:scale(1.1)}
.btn-icon.edit:hover{background:#dbeafe}
.btn-icon.duplicate:hover{background:#e0e7ff}
.btn-icon.delete:hover{background:#fee2e2}

/* FORMULARIOS */
.modal-form{max-width:750px;max-height:90vh;overflow-y:auto}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:16px}
.form-group{margin-bottom:16px}
.form-group.full-width{grid-column:1/-1}
.form-group label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px 16px;border:2px solid var(--color-border);border-radius:10px;font-size:14px;background:var(--color-bg);color:var(--color-text);transition:var(--transition);font-family:inherit}
.form-group textarea{resize:vertical;min-height:100px}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 4px rgba(102,126,234,0.1)}
.upload-preview{width:100%;height:200px;border:2px dashed var(--color-border);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;margin-bottom:12px;overflow:hidden;background:var(--color-bg-secondary);transition:var(--transition)}
.upload-preview:hover{border-color:#667eea}
.upload-preview img{max-width:100%;max-height:100%;object-fit:contain}
.form-row{display:flex;gap:20px;margin:20px 0;flex-wrap:wrap}
.switch-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;padding:10px 14px;background:var(--color-bg-secondary);border-radius:8px;transition:var(--transition);border:1px solid var(--color-border)}
.switch-label:hover{background:var(--color-border)}
.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}
.btn-primary,.btn-secondary,.btn-ghost{padding:12px 24px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:var(--transition);display:inline-flex;align-items:center;gap:8px}
.btn-primary{background:var(--gradient-primary);color:white;box-shadow:0 4px 15px rgba(102,126,234,0.3)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(102,126,234,0.5)}
.btn-secondary{background:var(--color-bg-secondary);color:var(--color-text);border:2px solid var(--color-border)}
.btn-secondary:hover{background:var(--color-border)}
.btn-ghost{background:transparent;color:var(--color-text-secondary)}
.btn-ghost:hover{color:var(--color-text);background:var(--color-bg-secondary)}
.btn-block{width:100%;justify-content:center}
.btn-sm{padding:8px 16px;font-size:13px}

/* CATEGORÍAS */
.categories-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-bottom:48px}
.category-card{background:var(--color-bg);border:2px solid var(--color-border);border-radius:var(--radius-lg);padding:32px 24px;text-align:center;cursor:pointer;transition:var(--transition);position:relative;overflow:hidden}
.category-card:hover{transform:translateY(-8px) scale(1.02);box-shadow:var(--shadow-hover);border-color:#667eea}
.category-icon{font-size:64px;margin-bottom:16px;display:block;transition:var(--transition)}
.category-card:hover .category-icon{transform:scale(1.2) rotate(10deg)}
.category-card h3{font-size:20px;font-weight:700;margin-bottom:8px}
.category-card p{color:var(--color-text-secondary);font-size:14px;margin-bottom:12px}
.category-count{display:inline-block;background:var(--gradient-primary);color:white;padding:6px 16px;border-radius:20px;font-size:12px;font-weight:700}

/* CONTACTO */
.contact-container{max-width:1000px;margin:0 auto;padding:32px}
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px;margin-bottom:48px}
.contact-card{background:var(--color-bg);padding:32px 24px;border-radius:var(--radius-lg);text-align:center;border:2px solid var(--color-border);transition:var(--transition);position:relative;overflow:hidden}
.contact-card::before{content:'';position:absolute;top:0;left:0;width:100%;height:4px;background:var(--gradient-primary);transform:scaleX(0);transition:var(--transition);transform-origin:left}
.contact-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-hover);border-color:#667eea}
.contact-card:hover::before{transform:scaleX(1)}
.contact-icon{font-size:56px;margin-bottom:16px;display:block;transition:var(--transition)}
.contact-card:hover .contact-icon{transform:scale(1.2)}
.contact-card h3{font-size:18px;margin-bottom:10px;font-weight:700}
.contact-card p{color:var(--color-text-secondary);font-size:14px;line-height:1.6}
.contact-form{background:var(--color-bg);padding:40px;border-radius:var(--radius-lg);border:2px solid var(--color-border);box-shadow:var(--shadow)}
.contact-form h2{margin-bottom:8px;font-size:26px;background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

/* CARRITO */
.cart-floating{position:fixed;bottom:24px;right:24px;width:60px;height:60px;background:var(--gradient-primary);color:white;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(102,126,234,0.4);cursor:pointer;z-index:50;transition:var(--transition);border:none;font-size:26px}
.cart-floating:hover{transform:scale(1.1) rotate(10deg);box-shadow:0 15px 40px rgba(102,126,234,0.6)}
.modal-cart{max-width:600px}
.cart-item{display:flex;align-items:center;gap:16px;padding:16px;border-bottom:1px solid var(--color-border);transition:var(--transition)}
.cart-item:hover{background:var(--color-bg-secondary)}
.cart-item img{width:70px;height:70px;object-fit:cover;border-radius:10px}
.cart-item-info{flex:1}
.cart-item-info h4{font-size:15px;margin-bottom:4px}
.cart-item-info p{color:var(--color-text-secondary);font-size:14px;font-weight:600}
.cart-qty-controls{display:flex;align-items:center;gap:8px;margin-top:6px}
.cart-qty-controls button{width:28px;height:28px;border:1px solid var(--color-border);background:var(--color-bg);border-radius:6px;cursor:pointer;font-weight:700}
.cart-qty-controls button:hover{background:var(--gradient-primary);color:white;border-color:transparent}
.cart-item-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.btn-remove{background:transparent;border:none;cursor:pointer;font-size:20px;transition:var(--transition);padding:8px;border-radius:8px}
.btn-remove:hover{background:#fee2e2;transform:scale(1.1)}
.cart-total{padding:20px;text-align:right;font-size:20px;font-weight:800;border-top:2px solid var(--color-border);margin-top:16px}
.empty-cart{text-align:center;padding:40px;color:var(--color-text-secondary)}
.coupon-box{display:flex;gap:8px;align-items:center;margin:12px 0;flex-wrap:wrap}
.coupon-box input{flex:1;padding:10px 14px;border:2px solid var(--color-border);border-radius:8px;font-size:14px;background:var(--color-bg);color:var(--color-text);min-width:140px}
.coupon-msg{width:100%;font-size:13px;color:var(--color-success);margin-top:4px}

/* COMPARE BAR */
.compare-bar{
  position:fixed;bottom:0;left:0;right:0;background:var(--color-bg);
  border-top:2px solid var(--color-border);padding:12px 24px;
  display:none;align-items:center;justify-content:space-between;gap:16px;
  z-index:90;box-shadow:0 -8px 30px rgba(0,0,0,0.1);
}
.compare-bar.show{display:flex}
.compare-items{display:flex;gap:12px;flex:1;overflow-x:auto}
.compare-chip{
  display:flex;align-items:center;gap:8px;background:var(--color-bg-secondary);
  padding:6px 12px;border-radius:20px;font-size:13px;white-space:nowrap;
}
.compare-chip img{width:28px;height:28px;border-radius:6px;object-fit:cover}
.compare-chip button{border:none;background:transparent;cursor:pointer;font-size:16px;color:var(--color-text-secondary)}
.modal-compare{max-width:900px;max-height:90vh;overflow:auto}
.compare-table-wrap{overflow-x:auto}
.compare-table{width:100%;border-collapse:collapse;font-size:14px}
.compare-table th,.compare-table td{padding:12px;border:1px solid var(--color-border);text-align:center;vertical-align:top}
.compare-table th{background:var(--color-bg-secondary);font-weight:700}
.compare-img{width:80px;height:80px;object-fit:cover;border-radius:8px}
.mini-features{list-style:none;text-align:left;font-size:12px}
.mini-features li{padding:2px 0}

/* CHAT WIDGET */
.chat-widget{position:fixed;bottom:100px;right:24px;z-index:60}
.chat-toggle{
  width:56px;height:56px;border-radius:50%;border:none;
  background:var(--gradient-primary);color:white;font-size:24px;
  cursor:pointer;box-shadow:0 8px 24px rgba(102,126,234,0.4);
  transition:var(--transition);
}
.chat-toggle:hover{transform:scale(1.1)}
.chat-box{
  position:absolute;bottom:70px;right:0;width:340px;max-height:420px;
  background:var(--color-bg);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,0.25);
  border:1px solid var(--color-border);display:none;flex-direction:column;overflow:hidden;
}
.chat-box.open{display:flex}
.chat-header{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--gradient-primary);color:white}
.chat-avatar{font-size:28px}
.chat-header-info h4{font-size:15px;margin:0}
.chat-header-info p{font-size:12px;opacity:0.85;margin:0}
.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;min-height:220px;max-height:280px}
.chat-msg{padding:10px 14px;border-radius:14px;font-size:13px;line-height:1.45;max-width:85%}
.chat-msg.bot{background:var(--color-bg-secondary);align-self:flex-start;border-bottom-left-radius:4px}
.chat-msg.user{background:var(--gradient-primary);color:white;align-self:flex-end;border-bottom-right-radius:4px}
.chat-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--color-border)}
.chat-input input{flex:1;padding:10px 14px;border:1px solid var(--color-border);border-radius:20px;font-size:13px;background:var(--color-bg);color:var(--color-text)}
.chat-input button{width:40px;height:40px;border:none;border-radius:50%;background:var(--gradient-primary);color:white;cursor:pointer;font-size:16px}

/* TOAST */
.toast{position:fixed;top:100px;right:20px;background:var(--color-bg);color:var(--color-text);padding:16px 24px;border-radius:var(--radius);font-size:14px;font-weight:600;opacity:0;transform:translateX(400px);transition:all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);pointer-events:none;z-index:300;box-shadow:0 10px 40px rgba(0,0,0,0.2);border-left:4px solid var(--color-success);max-width:400px}
.toast.show{opacity:1;transform:translateX(0)}
.toast.error{border-left-color:var(--color-danger)}
.toast.warning{border-left-color:var(--color-warning)}

/* FOOTER */
.site-footer{background:var(--color-bg-secondary);padding:40px 32px;border-top:1px solid var(--color-border);color:var(--color-text-secondary);font-size:14px;margin-top:60px;text-align:center}

/* EMPTY STATES */
.empty-state,.empty{text-align:center;padding:60px 20px;color:var(--color-text-secondary)}

/* CATALOG HEADER */
.catalog-header{display:flex;justify-content:space-between;align-items:center;padding:24px;border-radius:var(--radius-lg);border:1px solid var(--color-border);margin-bottom:32px}

/* RESPONSIVE */
@media(max-width:768px){
  /* Header se gestiona en el bloque @media (max-width: 900px) del final */
  .store-container{flex-direction:column;padding:16px}
  .sidebar{width:100%}
  .products-grid{grid-template-columns:repeat(2,1fr);gap:16px}
  .product-detail-content{grid-template-columns:1fr}
  .product-gallery{padding:20px;min-height:300px}
  .product-detail-info{padding:24px;max-height:none}
  .product-detail-info h2{font-size:24px}
  .price-main{font-size:36px}
  .modal{padding:20px}
  .modal-admin{padding:16px}
  .form-grid{grid-template-columns:1fr}
  .admin-header{flex-direction:column}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .tabs-header{flex-direction:column}
  .tab-button{border-bottom:none;border-left:3px solid transparent}
  .tab-button.active{border-left-color:var(--color-purple);border-bottom-color:transparent}
  .related-grid{grid-template-columns:1fr}
  .categories-grid{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:1fr}
  .hero-section h1{font-size:32px}
  .chat-box{width:300px;right:-8px}
  .compare-bar{flex-wrap:wrap}
}
@media(max-width:480px){
  .products-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr}
  .admin-toolbar{flex-direction:column}
  .categories-grid{grid-template-columns:1fr}
}


/* ========== AUTH ========== */
.auth-area{display:flex;align-items:center;gap:8px}
.btn-auth{
  padding:8px 16px;border-radius:20px;font-size:13px;font-weight:600;
  cursor:pointer;border:none;background:var(--gradient-primary);color:white;
  transition:var(--transition);
}
.btn-auth:hover{transform:translateY(-2px);box-shadow:0 4px 15px rgba(102,126,234,0.4)}
.btn-auth-outline{
  background:transparent;border:2px solid var(--color-border);color:var(--color-text);
}
.btn-auth-outline:hover{border-color:#667eea;color:#667eea;background:transparent;box-shadow:none}
.user-menu{position:relative}
.user-btn{
  display:flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;
  background:var(--color-bg-secondary);border:1px solid var(--color-border);
  border-radius:30px;cursor:pointer;font-size:13px;font-weight:600;color:var(--color-text);
  transition:var(--transition);
}
.user-btn:hover{border-color:#667eea}
.user-avatar{
  width:32px;height:32px;border-radius:50%;background:var(--gradient-primary);
  color:white;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;
}
.user-name{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.role-badge{font-size:10px;padding:2px 8px;border-radius:10px;font-weight:700;text-transform:uppercase}
.role-badge.admin{background:#dbeafe;color:#1e40af}
.role-badge.client{background:#d1fae5;color:#065f46}
.user-dropdown{
  position:absolute;top:calc(100% + 8px);right:0;background:var(--color-bg);
  border:1px solid var(--color-border);border-radius:12px;box-shadow:var(--shadow-hover);
  min-width:180px;padding:8px;display:none;z-index:150;flex-direction:column;gap:4px;
}
.user-dropdown.show{display:flex}
.user-dropdown button{
  width:100%;text-align:left;padding:10px 14px;border:none;background:transparent;
  border-radius:8px;cursor:pointer;font-size:13px;color:var(--color-text);transition:var(--transition);
}
.user-dropdown button:hover{background:var(--color-bg-secondary)}

.modal-auth{max-width:420px}
.auth-tabs{display:flex;gap:0;margin-bottom:24px;border-bottom:2px solid var(--color-border)}
.auth-tab{
  flex:1;padding:12px;border:none;background:transparent;cursor:pointer;
  font-size:14px;font-weight:600;color:var(--color-text-secondary);
  border-bottom:3px solid transparent;margin-bottom:-2px;transition:var(--transition);
}
.auth-tab.active{color:var(--color-purple);border-bottom-color:var(--color-purple)}
.auth-demo{
  margin-top:20px;padding:14px;background:var(--color-bg-secondary);border-radius:10px;
  font-size:12px;color:var(--color-text-secondary);line-height:1.6;
}
.auth-demo p{margin:0}

/* ========== CLIENT DASHBOARD ========== */
.modal-client-dash{max-width:900px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;padding:0}
.cd-header{
  display:flex;justify-content:space-between;align-items:flex-start;
  padding:24px 28px 16px;border-bottom:1px solid var(--color-border);gap:16px;
}
.cd-header h2{font-size:22px;margin-bottom:12px;background:var(--gradient-primary);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.cd-stats-row{display:flex;gap:16px;flex-wrap:wrap}
.cd-stat{text-align:center;min-width:70px}
.cd-stat-val{display:block;font-size:18px;font-weight:800}
.cd-stat-lbl{font-size:11px;color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:0.5px}
.cd-tabs{display:flex;gap:0;border-bottom:1px solid var(--color-border);padding:0 16px;background:var(--color-bg-secondary)}
.cd-tab{
  padding:14px 20px;border:none;background:transparent;cursor:pointer;font-size:13px;font-weight:600;
  color:var(--color-text-secondary);border-bottom:3px solid transparent;margin-bottom:-1px;transition:var(--transition);
}
.cd-tab:hover{color:var(--color-text)}
.cd-tab.active{color:var(--color-purple);border-bottom-color:var(--color-purple);background:var(--color-bg)}
.cd-body{padding:24px 28px;overflow-y:auto;flex:1;max-height:60vh}
.cd-welcome{margin-bottom:24px}
.cd-welcome h3{font-size:20px;margin-bottom:4px}
.cd-welcome p{color:var(--color-text-secondary);font-size:14px}
.cd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.cd-card{
  background:var(--color-bg-secondary);border:1px solid var(--color-border);
  border-radius:var(--radius);padding:20px;
}
.cd-card h4{font-size:15px;margin-bottom:14px}
.cd-empty{color:var(--color-text-secondary);font-size:13px;font-style:italic}
.cd-order-mini{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 0;border-bottom:1px solid var(--color-border);font-size:13px;
}
.cd-order-mini:last-child{border-bottom:none}
.cd-order-total{font-weight:700;color:var(--color-purple)}
.cd-mini-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.cd-mini-product{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:10px;background:var(--color-bg);border-radius:10px;cursor:pointer;
  border:1px solid transparent;transition:var(--transition);text-align:center;font-size:11px;
}
.cd-mini-product:hover{border-color:var(--color-purple);transform:translateY(-2px)}
.cd-mini-product img{width:48px;height:48px;object-fit:cover;border-radius:8px}
.cd-coupons{display:flex;flex-direction:column;gap:8px}
.cd-coupon{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 12px;background:var(--color-bg);border-radius:8px;font-size:13px;
  border:1px dashed var(--color-border);
}
.cd-coupon code{font-weight:700;color:var(--color-purple);font-size:12px}
.cd-order-card{
  background:var(--color-bg-secondary);border:1px solid var(--color-border);
  border-radius:var(--radius);padding:20px;margin-bottom:16px;
}
.cd-order-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px;flex-wrap:wrap;gap:8px}
.cd-badge{font-size:11px;padding:3px 10px;border-radius:12px;font-weight:700;margin-left:8px}
.cd-badge.completed{background:#d1fae5;color:#065f46}
.cd-order-date{font-size:12px;color:var(--color-text-secondary)}
.cd-order-items{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.cd-order-item{display:flex;align-items:center;gap:12px;font-size:13px}
.cd-order-item img{width:40px;height:40px;object-fit:cover;border-radius:6px}
.cd-order-item div{flex:1}
.cd-order-footer{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding-top:12px;border-top:1px solid var(--color-border);font-size:14px}
.cd-profile-form{max-width:500px}

@media(max-width:768px){
  .auth-area{order:4;width:100%;justify-content:center}
  .cd-tabs{overflow-x:auto}
  .cd-stat{min-width:60px}
  .cd-stat-val{font-size:15px}
}


/* ========== NOVELTY: Live ticker ========== */
.live-ticker {
  background: linear-gradient(90deg, #4c1d95, #667eea, #a855f7, #4c1d95);
  background-size: 300% 100%;
  animation: tickerBg 12s linear infinite;
  color: white;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 101;
}
@keyframes tickerBg {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}
.ticker-item { padding: 0 8px; opacity: 0.95; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== NOVELTY: Aurora hero ========== */
.hero-section { position: relative; overflow: hidden; }
.aurora-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.aurora-layer span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: auroraMove 10s ease-in-out infinite;
}
.aurora-layer span:nth-child(1) {
  width: 300px; height: 300px; background: #a855f7;
  top: -20%; left: 10%;
}
.aurora-layer span:nth-child(2) {
  width: 250px; height: 250px; background: #22d3ee;
  bottom: -10%; right: 15%;
  animation-delay: -3s;
}
.aurora-layer span:nth-child(3) {
  width: 200px; height: 200px; background: #f472b6;
  top: 30%; left: 50%;
  animation-delay: -6s;
}
@keyframes auroraMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
}
.hero-section h1, .hero-section p, .hero-cta, .hero-stats {
  position: relative;
  z-index: 1;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.25);
  min-width: 100px;
}
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}
.hero-stat span {
  font-size: 12px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== NOVELTY: Scroll reveal ========== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ========== LOYALTY & RECOMMENDATIONS (Client Dashboard) ========== */
.loyalty-card {
  background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(168,85,247,0.1));
  border: 1px solid rgba(102,126,234,0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.loyalty-card-lg { padding: 24px; }
.loyalty-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.loyalty-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.loyalty-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--lvl-color, #cd7f32);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--lvl-color) 40%, transparent);
}
.loyalty-badge strong { display: block; font-size: 16px; }
.loyalty-badge small { color: var(--color-text-secondary); font-size: 13px; }
.loyalty-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.loyalty-perk {
  font-size: 12px;
  padding: 6px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text-secondary);
}
.loyalty-progress-wrap { margin-bottom: 14px; }
.loyalty-progress-bar {
  height: 10px;
  background: var(--color-bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.loyalty-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}
.loyalty-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.loyalty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.loyalty-redeem-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-top: 8px;
}
.loyalty-levels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.loyalty-level-card {
  text-align: center;
  padding: 18px 12px;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}
.loyalty-level-card.current {
  border-color: var(--lvl-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lvl-color) 25%, transparent);
}
.ll-icon { font-size: 28px; margin-bottom: 6px; }
.loyalty-level-card strong { display: block; font-size: 14px; }
.loyalty-level-card small { color: var(--color-text-secondary); font-size: 11px; }
.ll-perk {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lvl-color, var(--color-purple));
}
.ll-current {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--gradient-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}
.loyalty-howto {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.loyalty-howto li {
  padding: 10px 12px;
  background: var(--color-bg);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.cd-recommendations {
  margin-top: 28px;
}
.cd-recommendations h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.cd-rec-sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}
.cd-rec-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}
.cd-rec-grid .product-card {
  margin: 0;
}

/* ========== LOGIN CARD ========== */
.modal-auth.login-card {
  max-width: 420px;
  padding: 28px 28px 24px;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.login-card-brand {
  text-align: center;
  margin-bottom: 20px;
}
.login-card-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  font-size: 28px;
  border-radius: 16px;
  background: var(--gradient-primary);
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(102,126,234,0.35);
}
.login-card-brand strong {
  display: block;
  font-size: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-card-brand small {
  color: var(--color-text-secondary);
  font-size: 13px;
}
.modal-auth.login-card .auth-tabs {
  background: var(--color-bg-secondary);
  border-radius: 12px;
  padding: 4px;
  border-bottom: none;
  gap: 4px;
  margin-bottom: 20px;
}
.modal-auth.login-card .auth-tab {
  border-radius: 10px;
  border-bottom: none;
  margin-bottom: 0;
  padding: 10px;
}
.modal-auth.login-card .auth-tab.active {
  background: var(--color-bg);
  color: var(--color-purple);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.modal-auth.login-card .form-group input {
  padding: 12px 14px;
  border-radius: 12px;
}
.modal-auth.login-card .btn-block {
  border-radius: 12px;
  padding: 13px;
  margin-top: 4px;
}

/* ========== GALERÍA IA IMÁGENES ========== */
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.img-gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border-radius: 12px;
  border: 1px dashed var(--color-border);
}
.img-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-bg-secondary);
}
.img-gallery-item.is-main {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.25);
}
.img-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.img-gallery-badges {
  position: absolute; top: 4px; left: 4px;
  display: flex; flex-direction: column; gap: 3px;
}
.badge-main, .badge-tone {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 8px;
  background: rgba(0,0,0,0.7); color: white;
}
.badge-main { background: #667eea; }
.img-gallery-actions {
  position: absolute; bottom: 4px; right: 4px;
  display: flex; gap: 4px;
}
.img-gallery-actions button {
  width: 26px; height: 26px; border: none; border-radius: 8px;
  background: rgba(255,255,255,0.92); cursor: pointer; font-size: 12px;
}
.image-ai-insights { margin-top: 12px; }
.ai-insight-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(168,85,247,0.08));
  border: 1px solid rgba(102,126,234,0.25);
}
.ai-insight-title {
  font-weight: 700; font-size: 13px; margin-bottom: 10px;
}
.ai-insight-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid rgba(148,163,184,0.15);
}
.ai-insight-row:last-child { border-bottom: none; }
.color-swatch {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--color-border);
  display: inline-block;
}

/* ========== PAGO YAPE / PLIN / TARJETA ========== */
.modal-payment { max-width: 520px; width: 100%; padding: 28px 24px; }
.payment-header { text-align: center; margin-bottom: 12px; }
.payment-header h2 {
  font-size: 22px; margin-bottom: 6px;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.payment-header p { color: var(--color-text-secondary); font-size: 14px; }
.payment-amount {
  text-align: center; font-size: 34px; font-weight: 800; margin: 4px 0 18px;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.payment-method-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border: 2px solid var(--color-border); border-radius: 14px;
  background: var(--color-bg-secondary); cursor: pointer; transition: var(--transition);
  font-size: 13px; font-weight: 700; color: var(--color-text); min-height: 96px;
}
.payment-method-btn:hover { border-color: #667eea; transform: translateY(-2px); }
.payment-method-btn.active {
  border-color: #667eea;
  background: rgba(102,126,234,0.1);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}
.payment-method-btn .pm-icon { font-size: 28px; }
.payment-method-btn .pm-sub {
  font-size: 10px; font-weight: 500; color: var(--color-text-secondary); text-align: center;
}
.payment-qr-panel, .payment-card-panel {
  display: none; text-align: center; padding: 18px 14px;
  background: var(--color-bg-secondary); border: 1px solid var(--color-border);
  border-radius: 16px; margin-bottom: 14px; animation: fadeIn 0.3s ease;
}
.payment-qr-panel.show, .payment-card-panel.show { display: block; }
.payment-qr-panel img.qr-code {
  width: 200px; height: 200px; max-width: 70vw; border-radius: 12px;
  background: #fff; padding: 10px; margin: 0 auto 10px; display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.qr-brand { font-size: 18px; font-weight: 800; }
.qr-phone { font-size: 14px; font-weight: 600; color: var(--color-purple); margin: 4px 0 8px; }
.qr-hint { font-size: 13px; color: var(--color-text-secondary); max-width: 300px; margin: 0 auto; }
.payment-steps { list-style: none; text-align: left; font-size: 13px; color: var(--color-text-secondary); margin: 12px auto 0; max-width: 300px; padding: 0; }
.payment-steps li { padding: 6px 0 6px 28px; position: relative; }
.payment-steps li::before {
  content: attr(data-step); position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; background: var(--gradient-primary); color: white;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Tarjeta visual */
.card-visual {
  width: 100%; max-width: 340px; margin: 0 auto 16px;
  aspect-ratio: 1.6;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95 40%, #667eea);
  color: white; padding: 20px 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 12px 32px rgba(76,29,149,0.35);
  text-align: left; position: relative; overflow: hidden;
}
.card-visual::after {
  content: '';
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,0.08); top: -40px; right: -30px;
}
.card-chip {
  width: 42px; height: 30px; border-radius: 6px;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  margin-bottom: auto; position: relative; z-index: 1;
}
.card-number-display {
  font-size: 18px; letter-spacing: 2px; font-weight: 600;
  font-family: ui-monospace, monospace; margin-bottom: 12px; position: relative; z-index: 1;
}
.card-meta-row {
  display: flex; justify-content: space-between; font-size: 12px;
  opacity: 0.95; position: relative; z-index: 1; gap: 12px;
}
.card-form { text-align: left; }
.card-form .form-group { margin-bottom: 12px; }
.card-form label { font-size: 12px; font-weight: 600; margin-bottom: 4px; display: block; }
.card-form input {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text);
  font-size: 15px;
}
.payment-actions { display: flex; flex-direction: column; gap: 10px; }
.payment-actions .btn-primary,
.payment-actions .btn-secondary { width: 100%; padding: 14px; border-radius: 12px; }
.payment-actions .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.payment-note {
  font-size: 12px; color: var(--color-text-secondary); margin-top: 10px;
  padding: 10px; background: rgba(245,158,11,0.1); border-radius: 10px;
  border: 1px solid rgba(245,158,11,0.25); line-height: 1.4; text-align: center;
}

@media (max-width: 768px) {
  .payment-methods { grid-template-columns: 1fr; }
  .payment-method-btn {
    flex-direction: row; justify-content: flex-start; min-height: auto;
    gap: 12px; padding: 12px 14px;
  }
  .payment-method-btn .pm-sub { text-align: left; }
  .payment-qr-panel img.qr-code { width: 170px; height: 170px; }
  .modal-auth.login-card { max-width: 100%; }
  .image-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Responsive global extra */
@media (max-width: 768px) {
  .store-container { flex-direction: column; padding: 16px 12px; }
  .sidebar { width: 100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-detail-content { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS — PC + Mobile (iPhone / Samsung)
   ============================================================ */

/* Safe areas for iOS notch / home indicator */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .cart-floating {
    bottom: max(24px, calc(16px + env(safe-area-inset-bottom)));
    right: max(16px, env(safe-area-inset-right));
  }
  .chat-widget {
    bottom: max(100px, calc(90px + env(safe-area-inset-bottom)));
    right: max(16px, env(safe-area-inset-right));
  }
  .toast {
    top: max(80px, calc(60px + env(safe-area-inset-top)));
    right: max(12px, env(safe-area-inset-right));
  }
  .admin-topbar {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* Larger touch targets */
@media (pointer: coarse) {
  .btn-add-cart,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .nav-item,
  .theme-toggle,
  .cart-btn,
  .btn-auth {
    min-height: 44px;
  }
  .qty-controls button {
    min-width: 44px;
    min-height: 44px;
  }
  .btn-icon {
    width: 40px;
    height: 40px;
  }
}

/* ========== TABLET & MOBILE (≤ 960px) ========== */
@media (max-width: 960px) {
  .store-container {
    flex-direction: column;
    padding: 20px 16px;
    gap: 20px;
  }
  .sidebar {
    width: 100%;
    position: relative;
  }
  .filter-section {
    margin-bottom: 12px;
  }
  .products-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .products-header h1 {
    font-size: 20px;
  }
  #sortSelect {
    width: 100%;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

/* ========== MOBILE (≤ 768px) ========== */
@media (max-width: 768px) {
  /* Header: ver bloque @media (max-width: 900px) al final del archivo */

  /* Layout */
  .store-container,
  .page-container,
  .contact-container {
    padding: 16px 12px;
  }
  .sidebar {
    width: 100%;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    border-radius: 14px;
  }
  .product-info {
    padding: 12px;
  }
  .product-name {
    font-size: 14px;
  }
  .price {
    font-size: 18px;
  }
  .btn-add-cart {
    padding: 10px 8px;
    font-size: 13px;
  }

  /* Hero */
  .hero-section {
    padding: 48px 20px;
  }
  .hero-section h1 {
    font-size: 28px;
  }
  .hero-section p {
    font-size: 15px;
  }
  .hero-stats {
    gap: 12px;
  }
  .hero-stat {
    padding: 10px 16px;
    min-width: 80px;
  }
  .hero-stat strong {
    font-size: 22px;
  }

  /* Product detail modal */
  .product-detail-content {
    grid-template-columns: 1fr;
  }
  .product-gallery {
    padding: 20px;
    min-height: 260px;
  }
  .product-gallery img {
    max-height: 280px;
  }
  .product-detail-info {
    padding: 20px;
    max-height: none;
  }
  .product-detail-info h2 {
    font-size: 22px;
  }
  .price-main {
    font-size: 32px;
  }
  .tabs-header {
    flex-wrap: wrap;
  }
  .tab-button {
    flex: 1 1 auto;
    min-width: 100px;
    font-size: 12px;
    padding: 12px 8px;
  }

  /* Modals */
  .modal {
    padding: 20px 16px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px;
  }
  .modal-product-detail {
    max-width: 100%;
    margin: 8px;
  }
  .modal-admin {
    padding: 12px;
    max-height: 95vh;
  }
  .modal-form {
    max-width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-value {
    font-size: 18px;
  }

  /* Categories & Contact */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Cart & Chat */
  .cart-floating {
    width: 54px;
    height: 54px;
    font-size: 22px;
    bottom: 20px;
    right: 16px;
  }
  .chat-widget {
    bottom: 86px;
    right: 16px;
  }
  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  .chat-box {
    width: min(340px, calc(100vw - 32px));
    right: 0;
    max-height: 60vh;
  }
  .chat-messages {
    max-height: 40vh;
  }

  /* Auth & Client Dashboard */
  .modal-auth.login-card {
    max-width: 100%;
  }
  .modal-client-dash {
    max-width: 100%;
    max-height: 92vh;
  }
  .cd-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .cd-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Payment */
  .payment-methods {
    grid-template-columns: 1fr;
  }
  .payment-method-btn {
    flex-direction: row;
    justify-content: flex-start;
    min-height: auto;
    gap: 12px;
    padding: 12px 14px;
  }

  /* Admin legacy panel inside app.html */
  .admin-header {
    flex-direction: column;
    gap: 12px;
  }
  .admin-actions {
    flex-wrap: wrap;
  }
  .admin-toolbar {
    flex-direction: column;
  }
  .admin-search {
    min-width: 0;
    width: 100%;
  }

  /* Toast */
  .toast {
    left: 12px;
    right: 12px;
    max-width: none;
    transform: translateY(-20px);
  }
  .toast.show {
    transform: translateY(0);
  }

  /* Live ticker */
  .live-ticker {
    height: 32px;
    font-size: 12px;
  }

  /* Prevent zoom on input focus (iOS) */
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ========== SMALL PHONES (≤ 480px) ========== */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .hero-section h1 {
    font-size: 24px;
  }
  .product-actions {
    flex-direction: column;
  }
  .btn-favorite {
    width: 100%;
  }
  .logo {
    font-size: 18px;
  }
  .price-main {
    font-size: 28px;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== LARGE DESKTOP ========== */
@media (min-width: 1400px) {
  .store-container,
  .page-container {
    max-width: 1400px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Filter collapse helper (mobile) */
.filters-collapsed .filter-section:not(:first-child) {
  display: none;
}
@media (max-width: 768px) {
  .filter-toggle-btn {
    display: flex !important;
    width: 100%;
    margin-bottom: 12px;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
  }
}
.filter-toggle-btn {
  display: none;
}

/* ========== FILTROS — PC y móvil ========== */
.filter-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.filter-clear-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 10px;
  cursor: pointer;
}
.filter-list label {
  min-height: 40px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.filter-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.price-inputs input {
  min-height: 42px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .sidebar {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 12px;
  }
  .filters-collapsed .filter-section,
  .filters-collapsed .filter-actions {
    display: none !important;
  }
  .filter-toggle-btn {
    display: flex !important;
    width: 100%;
    margin-bottom: 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    min-height: 48px;
  }
  .filter-toggle-btn:active {
    transform: scale(0.98);
  }
  /* Cuando los filtros están abiertos, el botón queda arriba */
  .sidebar:not(.filters-collapsed) .filter-toggle-btn {
    margin-bottom: 12px;
  }
}

@media (min-width: 769px) {
  .filter-toggle-btn {
    display: none !important;
  }
  .filters-collapsed .filter-section,
  .filters-collapsed .filter-actions {
    display: block !important;
  }
}

/* ========== HEADER RESPONSIVE — Panel lateral a pantalla completa ========== */
@media (max-width: 900px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 10px 12px;
    gap: 8px;
    min-height: 56px;
    margin: 0;
    border-radius: 0;
    max-width: none;
    width: 100%;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
  }

  /* El nav del header se oculta en móvil; el panel #mobileMenuPanel lo sustituye */
  .main-nav {
    display: none !important;
  }

  /* Panel en <body>: ocupa toda la altura de la pantalla */
  .mobile-menu-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    max-width: 360px;
    margin: 0;
    padding: 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 100;
    border: none;
    border-radius: 0 18px 18px 0;
    background: linear-gradient(165deg, #312e81 0%, #4c1d95 45%, #5b21b6 100%);
    box-shadow: 16px 0 48px rgba(49, 46, 129, 0.45);
    transform: translateX(-110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.dark-mode .mobile-menu-panel {
    background: linear-gradient(165deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.55);
  }
  .mobile-menu-panel.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: max(18px, env(safe-area-inset-top)) 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .mobile-menu-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
  }
  .mobile-menu-close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .mobile-menu-close:active {
    background: rgba(255, 255, 255, 0.22);
  }
  .mobile-menu-close .close-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
  }
  .mobile-menu-close .close-bars span {
    display: block;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
  }

  .mobile-menu-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 64px;
    padding: 0 22px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-item:active,
  .mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .mobile-menu-item.active {
    background: rgba(255, 255, 255, 0.16);
    font-weight: 600;
    color: #fff;
  }
  .mobile-menu-icon {
    font-size: 22px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
  }
  .mobile-menu-label {
    flex: 1;
    min-width: 0;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
  }
  .logo {
    font-size: 18px;
  }
  .logo-badge {
    width: 30px;
    height: 30px;
    font-size: 16px;
    border-radius: 9px;
  }
  .search-box input {
    width: 110px;
  }
  .search-box input:focus {
    width: 140px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .mobile-menu-panel {
    width: min(340px, 72vw);
    max-width: 380px;
  }
  .mobile-menu-item {
    min-height: 68px;
    font-size: 18px;
    padding: 0 26px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px 10px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }
  .search-box {
    position: relative;
  }
  .search-box input {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    padding: 9px 0;
    border-width: 0;
    pointer-events: none;
    z-index: 5;
    transition: width 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
  }
  .search-box.expanded input {
    width: min(210px, 58vw);
    opacity: 1;
    padding: 9px 14px;
    border-width: 1.5px;
    pointer-events: auto;
    background: var(--color-bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    border-radius: 22px;
  }
  .search-box button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-actions .cart-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    min-width: 40px;
  }
  .btn-auth {
    padding: 8px 12px;
    font-size: 12px;
  }
  .btn-auth-outline {
    display: none;
  }
  .user-name {
    display: none;
  }
  .role-badge {
    display: none;
  }
}

@media (max-width: 400px) {
  .logo span.logo-text {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ========== TARJETA DIGITAL LOYICARD / WALLET ========== */
.loyicard-wallet {
  --lvl-color: #667eea;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 40%, #4c1d95 70%, var(--lvl-color) 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(76, 29, 149, 0.35);
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.loyicard-wallet::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -40px; right: -30px;
  pointer-events: none;
}
.loyicard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 18px 8px;
  position: relative;
  z-index: 1;
}
.loyicard-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.loyicard-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(6px);
}
.loyicard-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.loyicard-brand small {
  font-size: 11px;
  opacity: 0.8;
}
.loyicard-tier {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
}
.loyicard-body {
  padding: 8px 18px 12px;
  position: relative;
  z-index: 1;
}
.loyicard-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
  margin-bottom: 2px;
}
.loyicard-holder strong {
  font-size: 18px;
  font-weight: 700;
}
.loyicard-meta-row {
  display: flex;
  gap: 24px;
  margin-top: 14px;
}
.loyicard-id {
  font-family: ui-monospace, monospace;
  letter-spacing: 1px;
  font-size: 14px;
}
.loyicard-points {
  font-size: 22px;
  font-weight: 800;
}
.loyicard-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 16px;
}
.stamp-slot {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1.5px dashed rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.55;
  background: rgba(0,0,0,0.12);
}
.stamp-slot.filled {
  border-style: solid;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.22);
  opacity: 1;
  color: #fde68a;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.loyicard-stamps-hint {
  margin: 8px 0 0;
  font-size: 11px;
  opacity: 0.75;
}
.loyicard-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 16px;
  background: rgba(0,0,0,0.18);
  position: relative;
  z-index: 1;
}
.loyicard-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.loyicard-qr {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  display: block;
}
.loyicard-qr-wrap span {
  font-size: 10px;
  opacity: 0.8;
}
.loyicard-foot-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  opacity: 0.9;
  min-width: 0;
}
.loyicard-save-btn {
  margin-top: 6px;
  align-self: flex-start;
  background: rgba(255,255,255,0.95) !important;
  color: #312e81 !important;
  border: none !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.loyicard-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
  .loyicard-wallet { border-radius: 16px; }
  .loyicard-meta-row { gap: 16px; }
  .loyicard-points { font-size: 18px; }
  .loyicard-qr { width: 64px; height: 64px; }
}

/* ========== LOYICARD Nivel A — CTA + QR ========== */
.loyicard-cta-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.35);
  background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(168,85,247,0.1));
  margin-bottom: 4px;
}
.loyicard-cta-text {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loyicard-cta-text strong {
  font-size: 15px;
  color: var(--color-text);
}
.loyicard-cta-text span {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.loyicard-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.loyicard-cta-qr {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.loyicard-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.loyicard-public-block {
  max-width: 560px;
  margin: 28px auto;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  text-align: center;
  box-shadow: var(--shadow);
}
.loyicard-public-block h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.loyicard-public-block p {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin: 0 0 16px;
}
.loyicard-public-block img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.loyicard-public-block .btn-primary {
  margin: 0 auto;
}

@media (max-width: 640px) {
  .loyicard-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .loyicard-cta-actions {
    justify-content: center;
  }
  .loyicard-cta-btns {
    width: 100%;
  }
  .loyicard-cta-btns .btn-primary,
  .loyicard-cta-btns .btn-secondary {
    width: 100%;
  }
}

/* ========== PULIDO GLOBAL DISEÑO 2026 ========== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video {
  max-width: 100%;
  height: auto;
}
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Contenedores más cómodos */
.store-container,
.page-container,
.contact-container {
  width: 100%;
}

/* Product cards más refinadas */
.product-card {
  border-radius: 16px;
  overflow: hidden;
}
.product-card:hover {
  border-color: rgba(102, 126, 234, 0.45);
}

/* Botones más consistentes */
.btn-primary,
.btn-secondary,
.btn-ghost {
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.98);
}

/* Footer más limpio en móvil */
.site-footer {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}
.site-footer p {
  margin: 4px 0;
}

/* QR oficial más nítido */
.loyicard-cta-qr,
.loyicard-qr,
.loyicard-public-block img {
  image-rendering: auto;
  background: #fff !important;
  object-fit: contain;
}

/* Espaciado móvil general */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 16px;
  }
  .hero-section h1 {
    font-size: 26px;
    line-height: 1.2;
  }
  .page-container,
  .contact-container,
  .store-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .products-grid {
    gap: 12px;
  }
  .product-info {
    padding: 12px;
  }
  .modal {
    margin: 8px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .cart-floating {
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .chat-widget {
    bottom: max(80px, calc(72px + env(safe-area-inset-bottom)));
  }
}

@media (min-width: 1024px) {
  .products-grid {
    gap: 22px;
  }
  .store-container {
    gap: 28px;
  }
}


/* ========== ABSOLUT 360 / VOL.360 STORE LOOK ========== */
:root {
  --abs-bg: #f5f0e8;
  --abs-card: #faf7f2;
  --abs-ink: #111111;
  --abs-muted: #6b6b6b;
  --abs-orange: #ff4d00;
  --abs-border: #111111;
}
body:not(.admin-body):not(.dark-mode) {
  background: var(--abs-bg);
}
body:not(.admin-body):not(.dark-mode) .site-header {
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid rgba(17,17,17,0.12);
}

/* Category chips */
.category-chips-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 4px 16px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cat-chip {
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1.5px solid #111;
  background: #faf7f2;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.cat-chip:hover { background: #fff; }
.cat-chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Toolbar filtros */
.abs-toolbar {
  background: #faf7f2;
  border: 1.5px solid #111;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.abs-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.abs-search-row input,
.abs-search-row select {
  padding: 10px 12px;
  border: 1.5px solid #cfcfcf;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #111;
  min-width: 100px;
}
.abs-search-row input[type="text"] { flex: 1; min-width: 140px; }
.abs-filter-btn {
  background: var(--abs-orange);
  color: #fff;
  border: 1.5px solid #111;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4px;
  cursor: pointer;
  border-radius: 4px;
}
.abs-clear-btn {
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
}

/* Product cards Absolut */
.product-card.abs-card {
  background: var(--abs-card);
  border: 2px solid #111;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #111;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card.abs-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #111;
  border-color: #111;
}
.product-card.abs-card .product-image {
  background: #fff;
  aspect-ratio: 1;
  border-bottom: 1.5px solid #e5e0d8;
}
.product-card.abs-card .product-image img {
  object-fit: contain;
  padding: 12px;
}
.product-card.abs-card .product-info {
  padding: 14px 14px 16px;
}
.product-card.abs-card .product-category {
  color: var(--abs-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.product-card.abs-card .product-name {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: #111;
  cursor: pointer;
  margin: 6px 0 8px;
  line-height: 1.25;
  min-height: 2.5em;
}
.product-card.abs-card .product-tag {
  display: inline-block;
  border: 1.5px solid #111;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-card.abs-card .price-row {
  margin-bottom: 12px;
}
.product-card.abs-card .price {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  background: none;
  -webkit-text-fill-color: #111;
}
.product-card.abs-card .btn-add-cart.abs-add,
.btn-add-cart.abs-add {
  width: 100%;
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  border-radius: 2px !important;
  padding: 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: none !important;
}
.product-card.abs-card .btn-add-cart.abs-add:hover:not(:disabled) {
  background: #111 !important;
  color: #fff !important;
  transform: none;
}
.product-card.abs-card .rating,
.product-card.abs-card .quick-view-btn,
.product-card.abs-card .btn-compare-float,
.product-card.abs-card .btn-favorite {
  display: none !important;
}

/* Detail IGV */
.detail-igv-box {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 14px;
}
.detail-igv-box .igv-total {
  color: var(--abs-orange);
  font-weight: 700;
  margin-top: 4px;
}
.detail-igv-box strong { color: #111; }
#productDetailModal .price-main {
  color: var(--abs-orange) !important;
  -webkit-text-fill-color: var(--abs-orange) !important;
  background: none !important;
  font-size: 28px !important;
}
.ship-hint {
  margin-left: 10px;
  font-size: 12px;
  color: #888;
}
.abs-detail-actions { margin: 12px 0; }
.abs-sec-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.abs-sec {
  flex: 1;
  min-width: 120px;
  padding: 10px 8px;
  border: 1.5px solid #111;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-transform: uppercase;
}
.abs-sec:hover { background: #f5f0e8; }
#productDetailModal .pdp-add-btn.abs-add-cart,
#detailAddToCart.abs-add-cart {
  background: var(--abs-orange) !important;
  color: #fff !important;
  border: 2px solid #111 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.abs-buy-now {
  margin-top: 10px;
  background: #111 !important;
  color: #fff !important;
  border: 2px solid #111 !important;
  border-radius: 2px !important;
  padding: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
}
.abs-buy-hint {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin: 8px 0 12px;
}
.abs-extra-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.abs-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: 2px solid #111;
  text-align: center;
}
.abs-continue {
  padding: 12px;
  background: #fff;
  border: 2px solid #111;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-transform: uppercase;
}

/* Cart Absolut */
.modal-cart.cart-abs {
  max-width: 720px;
  background: var(--abs-bg);
  border: 2px solid #111;
  border-radius: 4px;
}
.cart-abs-head {
  margin-bottom: 16px;
  border-bottom: 2px solid #111;
  padding-bottom: 12px;
}
.cart-abs-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--abs-orange);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.cart-abs-head h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.5px;
}
.cart-abs-item {
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
}
.cart-abs-item-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.cart-abs-item h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.cart-abs-unit { font-size: 13px; color: #666; margin: 0; }
.cart-abs-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-abs-qty {
  width: 52px;
  padding: 8px;
  border: 1.5px solid #111;
  text-align: center;
  font-weight: 700;
}
.cart-abs-line { font-weight: 800; min-width: 80px; text-align: right; }
.cart-abs-remove {
  border: none;
  background: none;
  color: var(--abs-orange);
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.4px;
}
.cart-abs-clear {
  margin-top: 12px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #666;
  cursor: pointer;
  text-transform: uppercase;
}
.cart-abs-summary {
  border: 2px solid #111;
  background: #faf7f2;
  padding: 20px;
  margin-top: 8px;
}
.cart-abs-summary h3 {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}
.cart-ship-note {
  font-size: 12px;
  color: #888;
  margin: 8px 0 14px;
}
.cart-abs-pay {
  background: var(--abs-orange) !important;
  color: #fff !important;
  border: 2px solid #111 !important;
  border-radius: 2px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  padding: 14px !important;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.cart-abs-continue {
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #111 !important;
  border-radius: 2px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  padding: 14px !important;
  text-transform: uppercase;
  cursor: pointer;
}
.cart-pay-foot {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 12px;
}
.cart-sum-row.total span:last-child {
  color: var(--abs-orange);
  font-weight: 800;
}

@media (max-width: 768px) {
  .abs-search-row { flex-direction: column; align-items: stretch; }
  .abs-extra-btns { grid-template-columns: 1fr; }
  .cart-abs-item-actions { width: 100%; justify-content: space-between; }
}

/* ========== ABSOLUT 360 LOGO & DUAL PRICE 2026 ========== */
.logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  -webkit-text-fill-color: unset !important;
  background: none !important;
}
.logo-img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.25));
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 1px;
}
.logo-text {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #5b21b6, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
.logo-tagline {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  -webkit-text-fill-color: var(--color-text-secondary);
}
@media (max-width: 640px) {
  .logo-tagline { display: none; }
  .logo-img { height: 36px; max-width: 120px; }
  .logo-text { font-size: 14px; }
}

/* Dual currency prices */
.price-row.dual-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 12px;
}
.price-row.dual-price .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  background: none !important;
  -webkit-text-fill-color: unset !important;
}
.price-pen {
  font-size: 18px;
  font-weight: 800;
  color: #111;
}
.price-usd {
  font-size: 13px;
  font-weight: 600;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}
body.dark-mode .price-pen { color: #f1f5f9; }
body.dark-mode .price-usd {
  color: #a5b4fc;
  background: rgba(102, 126, 234, 0.2);
}

.product-card.abs-card .price-row.dual-price .price-pen {
  font-size: 17px;
  font-weight: 800;
  color: #111;
}
.product-card.abs-card .price-row.dual-price .price-usd {
  font-size: 12px;
}

/* Refined product cards */
.product-card.abs-card .product-image img {
  transition: transform 0.4s ease;
}
.product-card.abs-card:hover .product-image img {
  transform: scale(1.04);
}

/* Category cards polish */
.category-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.18);
  border-color: rgba(102, 126, 234, 0.4);
}

/* Contact cards */
.contact-card {
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Hero Absolut accent */
.hero-section {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 40%, #7c3aed 70%, #a855f7 100%) !important;
  background-size: 200% 200% !important;
  animation: heroShift 12s ease infinite;
}
@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Currency note under products header */
.currency-note {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}
.currency-note strong { color: #667eea; }

/* Detail modal dual price */
#productDetailModal .price-main {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

/* Admin sidebar brand */
.admin-sidebar .sidebar-brand strong {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Softer store background */
body:not(.admin-body):not(.dark-mode) {
  background: linear-gradient(180deg, #f8f5f0 0%, #f5f0e8 40%, #faf7f2 100%);
}

/* Offers hero accent */
.ofertas-page .hero-section,
body:has([href="ofertas.html"].active) .hero-section {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f59e0b 100%) !important;
}

.contact-brand-card {
  background: linear-gradient(135deg, rgba(91,33,182,0.08), rgba(168,85,247,0.1));
  border: 1.5px solid rgba(124,58,237,0.25) !important;
}
.contact-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* Category cards Absolut polish */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.category-card {
  background: var(--color-bg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
}
.category-card .category-icon {
  font-size: 42px;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}
.category-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.category-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
}
.category-count {
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124,58,237,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* Footer brand */
.site-footer strong {
  background: linear-gradient(135deg, #5b21b6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   CLEARVIEW-INSPIRED PREMIUM DESIGN (Absolut 360)
   Clean, light, elegant e-commerce look
   ===================================================== */
:root {
  --cv-bg: #faf9f7;
  --cv-surface: #ffffff;
  --cv-ink: #1a1a1a;
  --cv-muted: #6b7280;
  --cv-gold: #6d28d9;
  --cv-gold-hover: #5b21b6;
  --cv-border: #ebe8e2;
  --cv-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
  --cv-shadow-hover: 0 12px 40px rgba(26, 26, 26, 0.1);
  --cv-radius: 14px;
}

body:not(.admin-body) {
  background: var(--cv-bg) !important;
  color: var(--cv-ink);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Header — clean glass white */
body:not(.admin-body) .site-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--cv-border) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) !important;
  backdrop-filter: blur(16px);
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
}
body:not(.admin-body).dark-mode .site-header {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: #334155 !important;
}

body:not(.admin-body) .main-nav {
  background: transparent !important;
  border: none !important;
  gap: 4px;
}
body:not(.admin-body) .main-nav a {
  color: var(--cv-muted);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
}
body:not(.admin-body) .main-nav a:hover {
  color: var(--cv-ink);
  background: rgba(0,0,0,0.04);
}
body:not(.admin-body) .main-nav a.active {
  background: var(--cv-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.logo-img {
  height: 40px !important;
  max-width: 140px !important;
}
.logo-text {
  background: none !important;
  -webkit-text-fill-color: var(--cv-ink) !important;
  color: var(--cv-ink) !important;
  font-size: 15px !important;
}
.logo-tagline {
  color: var(--cv-muted) !important;
  -webkit-text-fill-color: var(--cv-muted) !important;
}

/* ===== HERO ===== */
.cv-hero {
  background: linear-gradient(135deg, #f5f0e8 0%, #ebe4d8 50%, #f8f5f0 100%);
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}
.cv-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.cv-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cv-gold);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.cv-hero-copy h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cv-ink);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.cv-lead {
  font-size: 16px;
  color: var(--cv-muted);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 480px;
}
.cv-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cv-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--cv-gold);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
}
.cv-btn-primary:hover {
  background: var(--cv-gold-hover);
  transform: translateY(-2px);
}
.cv-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--cv-ink) !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 30px;
  text-decoration: none;
  border: 1.5px solid var(--cv-ink);
  transition: background 0.2s;
}
.cv-btn-outline:hover {
  background: rgba(0,0,0,0.04);
}
.cv-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cv-hero-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: var(--cv-shadow-hover);
  border: 1px solid var(--cv-border);
}
.cv-hero-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
}
.cv-hero-card p {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--cv-ink);
}
.cv-hero-card span {
  font-size: 13px;
  color: var(--cv-muted);
}

/* Trust bar */
.cv-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1120px;
  margin: -24px auto 0;
  position: relative;
  z-index: 5;
  background: #fff;
  border-radius: var(--cv-radius);
  box-shadow: var(--cv-shadow);
  border: 1px solid var(--cv-border);
  overflow: hidden;
}
.cv-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-right: 1px solid var(--cv-border);
}
.cv-trust-item:last-child { border-right: none; }
.cv-trust-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f5f0;
  border-radius: 12px;
  flex-shrink: 0;
}
.cv-trust-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cv-ink);
}
.cv-trust-item small {
  font-size: 11px;
  color: var(--cv-muted);
}

/* Store layout */
body:not(.admin-body) .store-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px 40px;
  gap: 28px;
}
body:not(.admin-body) .sidebar .filter-section {
  background: #fff;
  border: 1px solid var(--cv-border);
  border-radius: var(--cv-radius);
  box-shadow: none;
}
body:not(.admin-body) .products-header {
  background: transparent;
  border: none;
  padding: 0 0 16px;
}
body:not(.admin-body) .products-header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* Product cards — ClearView clean style */
body:not(.admin-body) .product-card,
body:not(.admin-body) .product-card.abs-card {
  background: #fff !important;
  border: 1px solid var(--cv-border) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body:not(.admin-body) .product-card:hover,
body:not(.admin-body) .product-card.abs-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cv-shadow-hover) !important;
  border-color: #ddd !important;
}
body:not(.admin-body) .product-card.abs-card .product-image {
  background: #f7f5f2 !important;
  border-bottom: 1px solid var(--cv-border) !important;
  aspect-ratio: 1;
}
body:not(.admin-body) .product-card.abs-card .product-image img {
  object-fit: contain;
  padding: 16px;
}
body:not(.admin-body) .product-card.abs-card .product-category {
  color: var(--cv-gold) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px;
}
body:not(.admin-body) .product-card.abs-card .product-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: var(--cv-ink) !important;
  min-height: auto !important;
  line-height: 1.35 !important;
}
body:not(.admin-body) .product-card.abs-card .price-pen {
  font-size: 17px;
  font-weight: 800;
  color: var(--cv-ink);
}
body:not(.admin-body) .product-card.abs-card .price-usd {
  background: #f8f5f0;
  color: var(--cv-gold);
  border-color: #e8e0d0;
  font-weight: 700;
}
body:not(.admin-body) .product-card.abs-card .btn-add-cart.abs-add,
body:not(.admin-body) .btn-add-cart.abs-add {
  background: var(--cv-ink) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  padding: 12px !important;
}
body:not(.admin-body) .product-card.abs-card .btn-add-cart.abs-add:hover:not(:disabled) {
  background: var(--cv-gold) !important;
  color: #fff !important;
}

/* Category chips */
body:not(.admin-body) .cat-chip {
  border: 1px solid var(--cv-border) !important;
  background: #fff !important;
  color: var(--cv-ink) !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  font-size: 13px !important;
  padding: 10px 18px !important;
}
body:not(.admin-body) .cat-chip.active {
  background: var(--cv-ink) !important;
  color: #fff !important;
  border-color: var(--cv-ink) !important;
}
body:not(.admin-body) .abs-toolbar {
  background: #fff !important;
  border: 1px solid var(--cv-border) !important;
  border-radius: var(--cv-radius) !important;
}
body:not(.admin-body) .abs-filter-btn {
  background: var(--cv-gold) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
}
body:not(.admin-body) .abs-clear-btn {
  border: 1px solid var(--cv-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

/* Hero pages (catalogo, ofertas, contacto) */
body:not(.admin-body) .hero-section {
  background: linear-gradient(135deg, #f5f0e8 0%, #ebe4d8 100%) !important;
  color: var(--cv-ink) !important;
  padding: 56px 24px !important;
  animation: none !important;
}
body:not(.admin-body) .hero-section h1 {
  color: var(--cv-ink) !important;
  font-weight: 800;
}
body:not(.admin-body) .hero-section p {
  color: var(--cv-muted) !important;
  opacity: 1 !important;
}
body:not(.admin-body) .hero-btn-primary {
  background: var(--cv-gold) !important;
  color: #fff !important;
}

/* Category cards */
body:not(.admin-body) .category-card {
  background: #fff !important;
  border: 1px solid var(--cv-border) !important;
  border-radius: 16px !important;
  box-shadow: none;
}
body:not(.admin-body) .category-card:hover {
  box-shadow: var(--cv-shadow-hover);
  border-color: #ddd !important;
}
body:not(.admin-body) .category-count {
  color: var(--cv-gold) !important;
  background: #f8f5f0 !important;
}

/* Contact cards */
body:not(.admin-body) .contact-card {
  background: #fff !important;
  border: 1px solid var(--cv-border) !important;
  border-radius: 16px !important;
  padding: 28px;
  text-align: center;
}
body:not(.admin-body) .contact-form {
  background: #fff;
  border: 1px solid var(--cv-border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
}

/* Footer dark premium */
body:not(.admin-body) .site-footer {
  background: #1a1a1a !important;
  color: rgba(255,255,255,0.7) !important;
  border-top: none !important;
  padding: 40px 24px !important;
  margin-top: 60px !important;
}
body:not(.admin-body) .site-footer strong {
  background: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}
body:not(.admin-body) .site-footer p {
  color: rgba(255,255,255,0.65);
}

/* Buttons primary global */
body:not(.admin-body) .btn-primary {
  background: var(--cv-gold) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}
body:not(.admin-body) .btn-primary:hover {
  background: var(--cv-gold-hover) !important;
}

/* Live ticker hide or soften */
body:not(.admin-body) .live-ticker {
  background: var(--cv-ink);
  color: #fff;
  font-size: 12px;
}

/* Responsive hero */
@media (max-width: 900px) {
  .cv-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cv-lead { margin-left: auto; margin-right: auto; }
  .cv-hero-cta { justify-content: center; }
  .cv-trust-bar {
    grid-template-columns: 1fr 1fr;
    margin: 16px 16px 0;
  }
  .cv-trust-item:nth-child(2) { border-right: none; }
}
@media (max-width: 520px) {
  .cv-trust-bar { grid-template-columns: 1fr; }
  .cv-trust-item { border-right: none; border-bottom: 1px solid var(--cv-border); }
  .cv-hero { padding: 36px 16px; }
  .cv-hero-logo { width: 140px; }
}

/* Offers catalog header */
body:not(.admin-body) .catalog-header {
  background: #fff !important;
  border: 1px solid var(--cv-border) !important;
  border-radius: 16px !important;
}

/* Modal polish */
body:not(.admin-body) .modal {
  border-radius: 20px !important;
  border: 1px solid var(--cv-border);
}
body:not(.admin-body) #productDetailModal .price-main,
body:not(.admin-body) #productDetailModal .price-pen {
  color: var(--cv-ink) !important;
  -webkit-text-fill-color: var(--cv-ink) !important;
}

/* ========== LOGO-DRIVEN DESIGN · DESKTOP + MOBILE ========== */
.site-header .logo-img {
  height: 48px;
  max-width: 180px;
  object-fit: contain;
}
@media (min-width: 900px) {
  .site-header .logo-img {
    height: 52px;
    max-width: 200px;
  }
  .logo-text-wrap { gap: 2px; }
  .logo-text { font-size: 18px; }
}

/* Hero with brand identity */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px !important;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('image.png');
  background-repeat: no-repeat;
  background-position: right 8% center;
  background-size: min(280px, 40vw);
  opacity: 0.18;
  pointer-events: none;
  filter: brightness(1.2);
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.hero-section h1,
.hero-section p,
.hero-section .hero-cta {
  position: relative;
  z-index: 2;
}

/* Floating brand watermark on store */
.store-container::before {
  content: '';
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 120px;
  height: 60px;
  background: url('image.png') no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* Product images real photo look */
.product-card.abs-card .product-image {
  background: #fff;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-card.abs-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0 !important;
}
.product-card.abs-card:hover .product-image img {
  transform: scale(1.06);
}

/* Mobile refinements */
@media (max-width: 768px) {
  .site-header {
    padding: 8px 12px;
    min-height: 56px;
  }
  .logo-img {
    height: 36px !important;
    max-width: 110px !important;
  }
  .logo-text {
    font-size: 13px !important;
  }
  .hero-section {
    min-height: 180px;
    padding: 36px 16px !important;
  }
  .hero-section::before {
    background-position: center bottom;
    background-size: 140px;
    opacity: 0.12;
  }
  .hero-section h1 {
    font-size: 22px !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card.abs-card {
    box-shadow: 3px 3px 0 #111;
  }
  .product-card.abs-card .product-name {
    font-size: 11px;
    min-height: 2.4em;
  }
  .price-pen { font-size: 14px !important; }
  .price-usd { font-size: 10px !important; padding: 1px 6px; }
  .product-card.abs-card .btn-add-cart.abs-add {
    padding: 10px 6px !important;
    font-size: 10px !important;
  }
  .store-container::before { display: none; }
  .abs-toolbar {
    border-radius: 6px;
    padding: 10px;
  }
  .category-chips-wrap {
    padding: 8px 0 12px;
  }
  .cat-chip {
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Contact brand card mobile */
@media (max-width: 640px) {
  .contact-logo {
    width: 100px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .category-card {
    padding: 18px 12px;
  }
  .category-card .category-icon {
    font-size: 28px;
  }
  .category-card h3 {
    font-size: 12px;
  }
}

/* Detail gallery real images */
.product-gallery img,
#detailImage {
  object-fit: contain;
  max-height: 420px;
  border-radius: 12px;
}

/* Admin logo mobile */
@media (max-width: 768px) {
  .admin-logo-img {
    width: 36px;
    height: 36px;
  }
}

/* Real product images */
.product-card .product-image img,
.product-gallery img,
#detailImage {
  object-fit: cover;
  background: #f3f4f6;
}
.product-card.abs-card .product-image img {
  object-fit: cover;
  padding: 0 !important;
}

/* Chat bot IA polish */
.chat-widget .chat-header {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #fff;
}
.chat-msg.bot {
  background: linear-gradient(135deg, rgba(91,33,182,0.08), rgba(168,85,247,0.1));
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 14px 14px 14px 4px;
}
.chat-msg.user {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.chat-toggle {
  background: linear-gradient(135deg, #5b21b6, #a855f7) !important;
  box-shadow: 0 8px 24px rgba(91,33,182,0.4);
}

/* Mobile logo compact */
@media (max-width: 480px) {
  .logo-img { height: 32px !important; max-width: 100px !important; }
  .logo-text { font-size: 12px !important; }
  .site-header { padding: 8px 12px; min-height: 56px; }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card.abs-card .product-name {
    font-size: 11px !important;
    min-height: 2.4em;
  }
  .price-pen { font-size: 14px !important; }
  .price-usd { font-size: 10px !important; }
}

/* Desktop wider logo */
@media (min-width: 900px) {
  .logo-img { height: 48px; max-width: 180px; }
}

/* Brand ribbon under header optional */
.abs-brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #4c1d95, #7c3aed, #a855f7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.abs-brand-bar img {
  height: 22px;
  background: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}

/* ============================================================
   ABSOLUT 360 — REDISEÑO PREMIUM AGENCIA (v4)
   Estilo editorial / boutique · no rompe clases ni JS
   ============================================================ */

:root {
  --abs-violet: #5b21b6;
  --abs-violet-deep: #3b0764;
  --abs-magenta: #a855f7;
  --abs-wow: #e11d8a;
  --abs-cream: #f7f3ee;
  --abs-paper: #fffdf9;
  --abs-ink: #1a1228;
  --abs-muted: #6b6280;
  --abs-line: rgba(91, 33, 182, 0.12);
  --abs-glow: 0 20px 50px rgba(91, 33, 182, 0.12);
  --abs-radius: 20px;
  --abs-radius-sm: 12px;
}

/* Fondo general distinto: papel cálido + sutil grid */
body:not(.admin-body):not(.dark-mode) {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(168, 85, 247, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(225, 29, 138, 0.06), transparent 45%),
    linear-gradient(180deg, #faf6f1 0%, var(--abs-cream) 40%, #f3eee8 100%) !important;
  color: var(--abs-ink);
}

body.dark-mode:not(.admin-body) {
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(91, 33, 182, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 30% at 100% 0%, rgba(225, 29, 138, 0.15), transparent 40%),
    #0c0a14 !important;
}

/* —— HEADER flotante tipo cápsula —— */
body:not(.admin-body) .site-header {
  margin: 12px 16px 0 !important;
  max-width: calc(100% - 32px);
  border-radius: 22px !important;
  border: 1px solid var(--abs-line) !important;
  background: rgba(255, 253, 249, 0.88) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  box-shadow:
    0 4px 6px rgba(26, 18, 40, 0.02),
    0 12px 32px rgba(91, 33, 182, 0.08) !important;
  padding: 10px 18px !important;
}
body.dark-mode:not(.admin-body) .site-header {
  background: rgba(18, 14, 32, 0.9) !important;
  border-color: rgba(168, 85, 247, 0.2) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
}

body:not(.admin-body) .main-nav {
  background: transparent !important;
  border: none !important;
  gap: 4px !important;
  padding: 0 !important;
}
body:not(.admin-body) .main-nav a {
  padding: 9px 16px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
}
body:not(.admin-body) .main-nav a.active {
  background: linear-gradient(135deg, var(--abs-violet), var(--abs-magenta)) !important;
  box-shadow: 0 6px 18px rgba(91, 33, 182, 0.35) !important;
}

.logo-img {
  height: 46px !important;
  max-width: 170px !important;
  border-radius: 10px;
  background: #fff;
  padding: 4px 8px;
  box-shadow: 0 2px 10px rgba(91, 33, 182, 0.1);
}
.logo-text {
  background: linear-gradient(120deg, var(--abs-violet-deep), var(--abs-magenta), var(--abs-wow)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900 !important;
  letter-spacing: -0.4px !important;
}
.logo-tagline {
  color: var(--abs-muted) !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
}

/* —— HERO editorial —— */
.hero-section {
  margin: 16px 16px 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  padding: 72px 36px !important;
  background:
    linear-gradient(135deg, rgba(59, 7, 100, 0.92) 0%, rgba(91, 33, 182, 0.88) 45%, rgba(168, 85, 247, 0.75) 100%),
    url('images/products/nfc-pack.jpg') center/cover !important;
  box-shadow: var(--abs-glow) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  animation: none !important;
  position: relative;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(225, 29, 138, 0.25), transparent 40%);
  pointer-events: none;
}
.hero-section h1 {
  font-size: clamp(28px, 5vw, 48px) !important;
  font-weight: 900 !important;
  letter-spacing: -1px !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.hero-section p {
  opacity: 0.92 !important;
  font-size: 16px !important;
  max-width: 520px !important;
}
.hero-btn-primary {
  background: #fff !important;
  color: var(--abs-violet) !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2) !important;
}
.hero-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
}

/* —— Chips de categoría: pastillas suaves —— */
.category-chips-wrap {
  padding: 8px 0 18px !important;
  gap: 10px !important;
}
.cat-chip {
  border: 1.5px solid var(--abs-line) !important;
  background: var(--abs-paper) !important;
  color: var(--abs-ink) !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 8px rgba(26, 18, 40, 0.04);
  transition: all 0.2s ease !important;
}
.cat-chip:hover {
  border-color: var(--abs-magenta) !important;
  background: #fff !important;
  transform: translateY(-2px);
}
.cat-chip.active {
  background: linear-gradient(135deg, var(--abs-violet), var(--abs-magenta)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(91, 33, 182, 0.3) !important;
}

/* —— Toolbar filtros —— */
.abs-toolbar {
  background: var(--abs-paper) !important;
  border: 1px solid var(--abs-line) !important;
  border-radius: var(--abs-radius) !important;
  box-shadow: 0 8px 28px rgba(26, 18, 40, 0.04) !important;
  padding: 14px 16px !important;
}
.abs-search-row input,
.abs-search-row select {
  border: 1.5px solid rgba(91, 33, 182, 0.15) !important;
  border-radius: 10px !important;
  background: #fff !important;
}
.abs-filter-btn {
  background: linear-gradient(135deg, var(--abs-violet), var(--abs-wow)) !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(225, 29, 138, 0.25) !important;
}
.abs-clear-btn {
  border: 1.5px solid var(--abs-line) !important;
  border-radius: 10px !important;
  background: transparent !important;
}

/* —— PRODUCT CARDS: estilo boutique (sin borde negro brutal) —— */
.product-card.abs-card,
.product-card {
  background: var(--abs-paper) !important;
  border: 1px solid var(--abs-line) !important;
  border-radius: var(--abs-radius) !important;
  box-shadow: 0 4px 16px rgba(26, 18, 40, 0.04) !important;
  overflow: hidden !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease !important;
}
.product-card.abs-card:hover,
.product-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 48px rgba(91, 33, 182, 0.14) !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
}
.product-card.abs-card .product-image {
  background: linear-gradient(160deg, #f0ebf8, #fff) !important;
  border-bottom: 1px solid var(--abs-line) !important;
  aspect-ratio: 1 !important;
}
.product-card.abs-card .product-image img {
  object-fit: cover !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
}
.product-card.abs-card .product-info {
  padding: 16px 16px 18px !important;
}
.product-card.abs-card .product-category {
  color: var(--abs-wow) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
}
.product-card.abs-card .product-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: -0.2px !important;
  color: var(--abs-ink) !important;
  line-height: 1.35 !important;
  min-height: auto !important;
}
.product-card.abs-card .price-row.dual-price .price-pen {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: var(--abs-violet-deep) !important;
  background: none !important;
  -webkit-text-fill-color: var(--abs-violet-deep) !important;
}
.product-card.abs-card .price-usd {
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.1), rgba(168, 85, 247, 0.12)) !important;
  color: var(--abs-violet) !important;
  border: none !important;
  border-radius: 8px !important;
}
.product-card.abs-card .btn-add-cart.abs-add,
.btn-add-cart.abs-add {
  background: var(--abs-ink) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  padding: 13px !important;
  box-shadow: 0 4px 14px rgba(26, 18, 40, 0.15) !important;
}
.product-card.abs-card .btn-add-cart.abs-add:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--abs-violet), var(--abs-wow)) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* —— Sidebar filtros —— */
.sidebar .filter-section {
  background: var(--abs-paper) !important;
  border: 1px solid var(--abs-line) !important;
  border-radius: var(--abs-radius) !important;
  box-shadow: 0 4px 16px rgba(26, 18, 40, 0.03);
}
.products-header {
  background: var(--abs-paper) !important;
  border: 1px solid var(--abs-line) !important;
  border-radius: var(--abs-radius) !important;
  box-shadow: 0 4px 16px rgba(26, 18, 40, 0.03);
}

/* —— Category cards (catálogo) —— */
.category-card {
  background: var(--abs-paper) !important;
  border: 1px solid var(--abs-line) !important;
  border-radius: var(--abs-radius) !important;
  padding: 32px 20px !important;
  box-shadow: 0 4px 16px rgba(26, 18, 40, 0.04);
}
.category-card:hover {
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 20px 48px rgba(91, 33, 182, 0.12) !important;
  background: linear-gradient(180deg, #fff, #f9f5ff) !important;
}
.category-card .category-icon {
  font-size: 48px !important;
  filter: drop-shadow(0 6px 12px rgba(91, 33, 182, 0.15));
}
.category-count {
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.12), rgba(225, 29, 138, 0.1)) !important;
  color: var(--abs-violet) !important;
}

/* —— Contact —— */
.contact-card {
  background: var(--abs-paper) !important;
  border: 1px solid var(--abs-line) !important;
  border-radius: var(--abs-radius) !important;
  padding: 28px 22px !important;
  box-shadow: 0 4px 16px rgba(26, 18, 40, 0.04);
}
.contact-brand-card {
  background: linear-gradient(145deg, #3b0764, #5b21b6 50%, #a855f7) !important;
  color: #fff !important;
  border: none !important;
}
.contact-brand-card h3,
.contact-brand-card p {
  color: #fff !important;
}
.contact-brand-card .contact-logo {
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
}
.contact-form {
  background: var(--abs-paper) !important;
  border: 1px solid var(--abs-line) !important;
  border-radius: var(--abs-radius) !important;
  padding: 32px !important;
  box-shadow: 0 8px 32px rgba(26, 18, 40, 0.05);
}

/* —— Botones globales —— */
.btn-primary {
  background: linear-gradient(135deg, var(--abs-violet), var(--abs-magenta)) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(91, 33, 182, 0.3) !important;
}
.btn-secondary {
  border-radius: 12px !important;
  border: 1.5px solid var(--abs-line) !important;
  background: var(--abs-paper) !important;
}

/* —— Modales —— */
.modal {
  border-radius: 24px !important;
  border: 1px solid var(--abs-line);
  box-shadow: 0 32px 80px rgba(26, 18, 40, 0.25) !important;
}
#productDetailModal .price-main,
#productDetailModal .price-pen {
  color: var(--abs-violet-deep) !important;
  -webkit-text-fill-color: var(--abs-violet-deep) !important;
}
#detailAddToCart.abs-add-cart,
#productDetailModal .pdp-add-btn.abs-add-cart {
  background: linear-gradient(135deg, var(--abs-violet), var(--abs-wow)) !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(225, 29, 138, 0.3) !important;
}
.abs-buy-now {
  background: var(--abs-ink) !important;
  border: none !important;
  border-radius: 14px !important;
}

/* —— Carrito Absolut —— */
.modal-cart.cart-abs {
  background: var(--abs-paper) !important;
  border: 1px solid var(--abs-line) !important;
  border-radius: 24px !important;
}
.cart-abs-pay {
  background: linear-gradient(135deg, var(--abs-violet), var(--abs-wow)) !important;
  border: none !important;
  border-radius: 14px !important;
}
.cart-abs-summary {
  border: 1px solid var(--abs-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
}

/* —— Chat IA —— */
.chat-toggle {
  background: linear-gradient(145deg, var(--abs-violet-deep), var(--abs-wow)) !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(91, 33, 182, 0.4) !important;
}
.chat-box {
  border-radius: 22px !important;
  border: 1px solid var(--abs-line) !important;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26, 18, 40, 0.2) !important;
}
.chat-header {
  background: linear-gradient(135deg, var(--abs-violet-deep), var(--abs-magenta)) !important;
}
.chat-msg.bot {
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.06), rgba(168, 85, 247, 0.08)) !important;
  border: 1px solid var(--abs-line) !important;
}

/* —— Ofertas banner —— */
.catalog-header {
  border-radius: var(--abs-radius) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  background: linear-gradient(135deg, #fff7ed, #fef3c7) !important;
}

/* —— Footer —— */
.site-footer {
  margin: 48px 16px 24px !important;
  border-radius: 20px !important;
  border: 1px solid var(--abs-line) !important;
  background: var(--abs-paper) !important;
  box-shadow: 0 4px 20px rgba(26, 18, 40, 0.04);
}

/* —— Ticker —— */
.live-ticker {
  background: linear-gradient(90deg, var(--abs-violet-deep), var(--abs-violet), var(--abs-wow)) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 12px;
}

/* —— Mobile refinements —— */
@media (max-width: 768px) {
  body:not(.admin-body) .site-header {
    margin: 8px 10px 0 !important;
    max-width: calc(100% - 20px);
    border-radius: 16px !important;
    padding: 8px 12px !important;
  }
  .hero-section {
    margin: 10px 10px 0 !important;
    border-radius: 20px !important;
    padding: 48px 20px !important;
  }
  .store-container,
  .page-container,
  .contact-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .product-card.abs-card {
    border-radius: 16px !important;
  }
  .products-grid {
    gap: 12px !important;
  }
  .logo-img {
    height: 34px !important;
    max-width: 110px !important;
    padding: 2px 6px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .product-card.abs-card .btn-add-cart.abs-add {
    font-size: 9px !important;
    padding: 10px 6px !important;
  }
}

/* Dark mode cards */
body.dark-mode:not(.admin-body) .product-card.abs-card,
body.dark-mode:not(.admin-body) .product-card,
body.dark-mode:not(.admin-body) .filter-section,
body.dark-mode:not(.admin-body) .products-header,
body.dark-mode:not(.admin-body) .abs-toolbar,
body.dark-mode:not(.admin-body) .category-card,
body.dark-mode:not(.admin-body) .contact-card,
body.dark-mode:not(.admin-body) .site-footer {
  background: rgba(30, 24, 48, 0.9) !important;
  border-color: rgba(168, 85, 247, 0.15) !important;
}
body.dark-mode:not(.admin-body) .product-card.abs-card .product-name,
body.dark-mode:not(.admin-body) .price-pen {
  color: #f5f0ff !important;
  -webkit-text-fill-color: #f5f0ff !important;
}
body.dark-mode:not(.admin-body) .cat-chip {
  background: rgba(30, 24, 48, 0.9) !important;
  color: #e9e0ff !important;
  border-color: rgba(168, 85, 247, 0.2) !important;
}

/* ============================================================
   HEADER v7 — Pulido móvil (referencia captura)
   Limpio, espaciado uniforme, logo legible, sin recortes
   ============================================================ */

/* Base más limpia */
body:not(.admin-body) .site-header {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 58px !important;
  padding: 8px 14px !important;
  background: rgba(255, 252, 248, 0.96) !important;
  border-bottom: 1px solid rgba(91, 33, 182, 0.08) !important;
  box-shadow: 0 1px 12px rgba(26, 18, 40, 0.04) !important;
}

body.dark-mode:not(.admin-body) .site-header {
  background: rgba(16, 12, 28, 0.96) !important;
  border-bottom-color: rgba(168, 85, 247, 0.15) !important;
}

/* —— LOGO: imagen clara + texto sin cortar en desktop —— */
body:not(.admin-body) .header-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
}

body:not(.admin-body) .logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body:not(.admin-body) .logo-img {
  height: 38px !important;
  width: auto !important;
  max-width: 130px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  background: #fff !important;
  border-radius: 10px !important;
  padding: 3px 6px !important;
  box-shadow: 0 1px 5px rgba(91, 33, 182, 0.07) !important;
}

body:not(.admin-body) .logo-text-wrap {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body:not(.admin-body) .logo-text {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body:not(.admin-body) .logo-tagline {
  font-size: 9px !important;
  letter-spacing: 0.5px !important;
}

/* —— Botones de acción: tamaño táctil uniforme —— */
body:not(.admin-body) .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

body:not(.admin-body) .nav-toggle,
body:not(.admin-body) .theme-toggle,
body:not(.admin-body) .cart-btn,
body:not(.admin-body) .search-box button {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 16px !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}

body:not(.admin-body) .nav-toggle {
  border: 1px solid rgba(91, 33, 182, 0.12) !important;
  background: rgba(91, 33, 182, 0.05) !important;
}

body:not(.admin-body) .nav-toggle:active,
body:not(.admin-body) .theme-toggle:active,
body:not(.admin-body) .cart-btn:active,
body:not(.admin-body) .search-box button:active {
  transform: scale(0.94) !important;
}

body:not(.admin-body) .cart-btn {
  background: rgba(91, 33, 182, 0.06) !important;
  border: 1px solid rgba(91, 33, 182, 0.1) !important;
}

body:not(.admin-body) .cart-count {
  top: -3px !important;
  right: -3px !important;
  min-width: 17px !important;
  height: 17px !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #e11d8a, #c026d3) !important;
  box-shadow: 0 1px 4px rgba(225, 29, 138, 0.4) !important;
}

/* Avatar usuario más limpio */
body:not(.admin-body) .user-btn,
body:not(.admin-body) .user-avatar {
  border-radius: 50% !important;
}

body:not(.admin-body) .user-avatar {
  width: 34px !important;
  height: 34px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body:not(.admin-body) .user-btn {
  padding: 3px !important;
  background: transparent !important;
  border: none !important;
  gap: 0 !important;
}

/* ========== MÓVIL: header como en la captura, pero pulido ========== */
@media (max-width: 900px) {
  body:not(.admin-body) .site-header {
    padding: 7px 10px !important;
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
    min-height: 54px !important;
    gap: 6px !important;
    border-radius: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body:not(.admin-body) .nav-toggle {
    display: flex !important;
    order: 0 !important;
  }

  body:not(.admin-body) .main-nav {
    display: none !important;
  }

  /* En móvil: solo logo imagen (evita "Absol...") */
  body:not(.admin-body) .logo-text-wrap {
    display: none !important;
  }

  body:not(.admin-body) .logo-img {
    height: 36px !important;
    max-width: 120px !important;
    padding: 3px 5px !important;
  }

  body:not(.admin-body) .header-left {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  body:not(.admin-body) .header-actions {
    gap: 4px !important;
  }

  body:not(.admin-body) .search-box input {
    display: none !important;
  }

  body:not(.admin-body) .search-box.expanded input {
    display: block !important;
    position: absolute !important;
    right: 42px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: min(190px, 52vw) !important;
    z-index: 30 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
  }

  body:not(.admin-body) .btn-auth-outline,
  body:not(.admin-body) .user-name,
  body:not(.admin-body) .role-badge {
    display: none !important;
  }

  body:not(.admin-body) .nav-toggle,
  body:not(.admin-body) .theme-toggle,
  body:not(.admin-body) .cart-btn,
  body:not(.admin-body) .search-box button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 11px !important;
  }

  body:not(.admin-body) .user-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 640px) {
  body:not(.admin-body) .site-header {
    padding: 6px 8px !important;
    padding-left: max(8px, env(safe-area-inset-left)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
    min-height: 52px !important;
    gap: 4px !important;
  }

  body:not(.admin-body) .logo-img {
    height: 34px !important;
    max-width: 110px !important;
  }

  body:not(.admin-body) .nav-toggle,
  body:not(.admin-body) .theme-toggle,
  body:not(.admin-body) .cart-btn,
  body:not(.admin-body) .search-box button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }

  body:not(.admin-body) .header-actions {
    gap: 3px !important;
  }
}

@media (max-width: 380px) {
  /* Pantallas muy estrechas: ocultar tema para no apretar */
  body:not(.admin-body) .theme-toggle {
    display: none !important;
  }
  body:not(.admin-body) .logo-img {
    height: 32px !important;
    max-width: 100px !important;
  }
}

/* Desktop: cápsula + texto completo */
@media (min-width: 901px) {
  body:not(.admin-body) .site-header {
    margin: 12px auto 0 !important;
    max-width: min(1280px, calc(100% - 32px)) !important;
    width: calc(100% - 32px) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(91, 33, 182, 0.1) !important;
    padding: 10px 18px !important;
    min-height: 62px !important;
  }

  body:not(.admin-body) .logo-text-wrap {
    display: flex !important;
  }

  body:not(.admin-body) .logo-img {
    height: 42px !important;
    max-width: 150px !important;
  }

  body:not(.admin-body) .logo-text {
    font-size: 15px !important;
  }

  body:not(.admin-body) .header-left {
    flex: 0 1 auto !important;
    max-width: 280px !important;
  }
}

@media (min-width: 1100px) {
  body:not(.admin-body) .logo-img {
    height: 46px !important;
    max-width: 168px !important;
  }
  body:not(.admin-body) .logo-text {
    font-size: 16px !important;
  }
}

/* ============================================================
   DESKTOP / PC — Productos en 3 columnas fijas
   Ajustes suaves: no exagera tamaños ni rompe el layout
   ============================================================ */

/* Contenedor principal: ancho cómodo en PC */
@media (min-width: 900px) {
  body:not(.admin-body) .store-container,
  body:not(.admin-body) .page-container,
  body:not(.admin-body) .contact-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Sidebar izquierda + productos derecha */
  body:not(.admin-body) .store-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 24px;
  }
  body:not(.admin-body) .store-container .sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  body:not(.admin-body) .store-container .main-content {
    flex: 1;
    min-width: 0;
  }

  /* PRODUCTOS: siempre 3 columnas en PC */
  body:not(.admin-body) .products-grid,
  body:not(.admin-body) #productsGrid,
  body:not(.admin-body) #offersGrid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (min-width: 1100px) {
  body:not(.admin-body) .store-container .sidebar {
    width: 240px;
  }
  body:not(.admin-body) .products-grid,
  body:not(.admin-body) #productsGrid,
  body:not(.admin-body) #offersGrid {
    gap: 22px !important;
  }
}

/* Cards de producto: altura uniforme, sin exagerar */
body:not(.admin-body) .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
}
body:not(.admin-body) .product-card .product-image {
  aspect-ratio: 1 / 1;
  max-height: 260px;
}
body:not(.admin-body) .product-card .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
body:not(.admin-body) .product-card .product-actions {
  margin-top: auto;
}

/* —— CATÁLOGO: 3 columnas en PC + scroll natural —— */
body:not(.admin-body) .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
  overflow: visible;
}

@media (min-width: 900px) {
  body:not(.admin-body) .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Tarjetas de categoría: tamaño moderado */
body:not(.admin-body) .category-card {
  min-height: 0;
  padding: 26px 16px !important;
}
body:not(.admin-body) .category-card .category-icon {
  font-size: 40px !important;
}

body:not(.admin-body) .page-container {
  overflow-x: hidden;
  overflow-y: visible;
}

body:not(.admin-body) .products-grid > *,
body:not(.admin-body) .categories-grid > * {
  min-width: 0;
}

/* ============================================================
   MOCKUP TELÉFONO + TARJETA DIGITAL (estilo Reel Vol Loyalty)
   ============================================================ */
.phone-mockup-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  margin: 8px 0 20px;
}

.phone-mockup {
  width: 280px;
  max-width: 100%;
  background: #0f172a;
  border-radius: 36px;
  padding: 12px 10px 16px;
  box-shadow:
    0 0 0 3px #1e293b,
    0 0 0 6px #334155,
    0 24px 48px rgba(15, 23, 42, 0.45);
  position: relative;
  flex-shrink: 0;
}

.phone-notch {
  width: 96px;
  height: 10px;
  background: #020617;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 8px;
  position: relative;
}
.phone-notch::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e293b;
  right: 18px;
  top: 1px;
}

.phone-screen {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 0 0 8px;
}

body.dark-mode .phone-screen {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}
body.dark-mode .phone-status { color: #94a3b8; }
.phone-status-icons { font-size: 10px; letter-spacing: 1px; }

.phone-app-header {
  text-align: center;
  padding: 4px 12px 10px;
}
.phone-app-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1e1b4b;
  letter-spacing: 0.2px;
}
body.dark-mode .phone-app-title { color: #e0e7ff; }
.phone-app-sub {
  font-size: 11px;
  color: #64748b;
}

.phone-card.loyicard-wallet {
  margin: 0 10px;
  max-width: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(76, 29, 149, 0.3);
  transform: scale(1);
}

.phone-card .loyicard-top { padding: 14px 14px 6px; }
.phone-card .loyicard-body { padding: 6px 14px 10px; }
.phone-card .loyicard-foot { padding: 10px 12px 12px; }
.phone-card .loyicard-qr { width: 68px; height: 68px; }
.phone-card .loyicard-holder strong { font-size: 16px; }
.phone-card .loyicard-points { font-size: 20px; }
.phone-card .loyicard-stamps {
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 12px;
}
.phone-card .stamp-slot {
  border-radius: 8px;
  font-size: 10px;
}
.phone-card .stamp-slot.filled { font-size: 12px; }

.loyicard-balance-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.loyicard-balance-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 10px;
}
.loyicard-balance-box strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}

.phone-hint {
  text-align: center;
  font-size: 11px;
  color: #64748b;
  margin: 10px 12px 4px;
}

.phone-home-bar {
  width: 100px;
  height: 4px;
  border-radius: 4px;
  background: #475569;
  margin: 10px auto 0;
}

.phone-mockup-side {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 8px 4px;
}
.phone-mockup-side h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--color-text);
}
.phone-mockup-side > p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 14px;
}
.phone-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-benefits li {
  font-size: 13px;
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .phone-mockup-wrap {
    flex-direction: column;
    align-items: center;
  }
  .phone-mockup {
    width: min(280px, 92vw);
  }
  .phone-mockup-side {
    max-width: 100%;
    text-align: center;
  }
  .phone-benefits {
    text-align: left;
  }
}

/* ========== Opiniones de producto ========== */
.product-reviews-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary, rgba(0,0,0,0.03));
}
.reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.reviews-header h4 { margin: 0; font-size: 16px; }
.reviews-summary { font-size: 13px; color: var(--color-text-secondary); }
.review-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.form-row-reviews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.form-row-reviews input[type="text"] {
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg, #fff);
  color: var(--color-text);
}
.review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  background: var(--color-bg, #fff);
  color: var(--color-text);
}
.review-stars-input { display: flex; gap: 2px; }
.review-stars-input .star-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.review-stars-input .star-btn.on { color: #f59e0b; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; max-height: 280px; overflow-y: auto; }
.review-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border);
}
.review-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.review-stars { color: #f59e0b; letter-spacing: 1px; font-size: 13px; }
.review-item p { margin: 4px 0; font-size: 14px; line-height: 1.4; }
.review-item small { color: var(--color-text-secondary); font-size: 11px; }
.reviews-empty { font-size: 13px; color: var(--color-text-secondary); margin: 0; }

/* Pedidos admin: nuevos + estados */
.order-row.order-new {
  border-left: 3px solid #8b5cf6;
  background: rgba(139, 92, 246, 0.06);
}
.badge-new-order {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #8b5cf6;
  color: #fff;
}
.order-status-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}
.order-status-select { min-width: 130px; font-size: 12px !important; padding: 6px 8px !important; }
.order-admin-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.nav-badge.badge-alert {
  background: #ef4444 !important;
  animation: badge-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}


/* WhatsApp flotante */
/* Botón flotante WhatsApp */
/* WhatsApp flotante — IZQUIERDA para no tapar carrito/chat (derecha) */
.floating-whatsapp {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: auto;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: calc(100vw - 100px);
}
.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  color: #fff !important;
  outline: none;
}
.floating-whatsapp:active {
  transform: scale(0.98);
}
.floating-whatsapp .wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1;
}
.floating-whatsapp .wa-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}
.floating-whatsapp .wa-text {
  position: relative;
  z-index: 1;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.floating-whatsapp .wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #25D366;
  z-index: 0;
  animation: wa-pulse 2.2s ease-out infinite;
  opacity: 0.45;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.45; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* Móvil: icono circular abajo-izquierda, lejos del carrito flotante */
@media (max-width: 640px) {
  .floating-whatsapp {
    left: max(12px, env(safe-area-inset-left));
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .floating-whatsapp .wa-text { display: none; }
  .floating-whatsapp .wa-icon {
    width: 30px;
    height: 30px;
    font-size: 26px;
  }
  .floating-whatsapp .wa-icon svg {
    width: 30px;
    height: 30px;
  }
  /* Carrito flotante se queda a la derecha */
  .cart-floating {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* Asegurar que carrito flotante no compita con WA */
.cart-floating {
  right: 24px;
  left: auto;
  bottom: 24px;
  z-index: 50;
}

.quote-form .form-group { margin-bottom: 12px; }
.quote-form label { display: block; font-size: 12px; margin-bottom: 4px; color: var(--color-text-secondary); }
.quote-form input, .quote-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg, #fff);
  color: var(--color-text);
  font-family: inherit;
}

.admin-new-alert {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-new-alert strong { margin-right: 6px; }

/* Libro de reclamaciones */
.claims-page {
  max-width: 640px;
  margin: 32px auto;
  padding: 0 16px 48px;
}
.claims-page h1 { font-size: 24px; margin-bottom: 8px; }
.claims-page .claims-note {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.claims-form .form-group { margin-bottom: 14px; }
.claims-form label { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 600; }
.claims-form input, .claims-form select, .claims-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg, #fff);
  color: var(--color-text);
  font-family: inherit;
}


/* Home testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.testimonial-card {
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.testimonial-card .stars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }
.testimonial-card .t-comment { font-size: 14px; line-height: 1.5; color: var(--color-text, #1e293b); margin-bottom: 12px; }
.testimonial-card .t-meta { font-size: 12px; color: var(--color-text-secondary, #64748b); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.testimonial-card .t-name { font-weight: 700; color: var(--color-text, #334155); }


/* Registro mejorado + ticker sticky offset */
.phone-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg);
}
.phone-flag {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--color-bg-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid var(--color-border);
  color: var(--color-text);
}
.phone-row input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
}
.dob-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
}
.dob-row input {
  text-align: center;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin: 10px 0;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1.4;
}
.check-row input {
  margin-top: 3px;
  flex-shrink: 0;
}
.check-row a {
  color: var(--color-purple, #667eea);
  text-decoration: underline;
}

/* Ticker fijo arriba del header */
.live-ticker {
  position: sticky;
  top: 0;
  z-index: 110;
}
.site-header {
  top: 0;
}
body:has(.live-ticker) .site-header {
  /* header sigue sticky debajo del flujo normal */
}

.cv-trust-bar {
  margin-top: 8px;
}
body.dark-mode .cv-trust-bar {
  background: var(--color-bg-secondary);
  border-color: var(--color-border);
}
body.dark-mode .cv-trust-icon {
  background: rgba(201, 162, 39, 0.12);
}


/* Favoritos en header (como en el video) */
.header-fav-btn {
  position: relative;
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.header-fav-btn:hover { transform: translateY(-1px); border-color: #f472b6; }
.header-fav-btn .fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ec4899;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Chips de servicios estilo demo */
.category-chips-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}
.category-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.category-chip:hover {
  border-color: #667eea;
  color: var(--color-text);
}
.category-chip.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}
.abs-toolbar {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
}
.abs-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.abs-search-row input,
.abs-search-row select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 13px;
  min-width: 0;
}
.abs-filter-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.abs-clear-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}


/* =========================================================
   HEADER — layout limpio y ordenado (override final)
   ========================================================= */
body:not(.admin-body) .live-ticker {
  position: relative;
  z-index: 120;
  height: 34px;
  font-size: 12.5px;
  letter-spacing: 0.2px;
}

body:not(.admin-body) .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  width: 100% !important;
  min-height: 64px;
  padding: 0 !important;
  display: block !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}

body:not(.admin-body).dark-mode .site-header {
  background: rgba(15, 23, 42, 0.94) !important;
  border-bottom-color: rgba(148, 163, 184, 0.12) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35) !important;
}

body:not(.admin-body) .site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  min-height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body:not(.admin-body) .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

body:not(.admin-body) .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: none !important;
  -webkit-text-fill-color: unset !important;
  transform: none !important;
}

body:not(.admin-body) .logo-img {
  height: 38px !important;
  width: auto !important;
  max-width: 42px !important;
  object-fit: contain;
  border-radius: 8px;
}

body:not(.admin-body) .logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 1px;
}

body:not(.admin-body) .logo-text {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #0f172a !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
}

body:not(.admin-body).dark-mode .logo-text {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

body:not(.admin-body) .logo-tagline {
  font-size: 10px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

/* Nav centrado y ordenado */
body:not(.admin-body) .main-nav {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 2px !important;
  flex: 1;
  min-width: 0;
  padding: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  max-width: 560px;
  margin: 0 auto;
}

body:not(.admin-body).dark-mode .main-nav {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(148, 163, 184, 0.15) !important;
}

body:not(.admin-body) .main-nav a {
  text-decoration: none;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.admin-body) .main-nav a:hover {
  color: #0f172a !important;
  background: rgba(255,255,255,0.9) !important;
}

body:not(.admin-body).dark-mode .main-nav a:hover {
  color: #f1f5f9 !important;
  background: rgba(51, 65, 85, 0.8) !important;
}

body:not(.admin-body) .main-nav a.active {
  color: #fff !important;
  background: linear-gradient(135deg, #5b4cdb, #7c6cf0) !important;
  box-shadow: 0 4px 12px rgba(91, 76, 219, 0.35) !important;
  font-weight: 700 !important;
}

body:not(.admin-body) .main-nav a.nav-link-muted {
  color: #94a3b8 !important;
  font-size: 12px !important;
}

/* Acciones derecha alineadas */
body:not(.admin-body) .header-actions {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body:not(.admin-body) .header-actions-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

body:not(.admin-body).dark-mode .header-actions-icons {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.15);
}

body:not(.admin-body) .search-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  height: 40px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body:not(.admin-body) .search-box:focus-within {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

body:not(.admin-body) .search-box input {
  border: none !important;
  background: transparent !important;
  padding: 0 12px;
  height: 100%;
  width: 160px;
  font-size: 13px;
  outline: none;
  color: var(--color-text);
}

body:not(.admin-body) .search-box button {
  border: none;
  background: transparent;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
}

body:not(.admin-body) .theme-toggle,
body:not(.admin-body) .header-fav-btn,
body:not(.admin-body) .header-actions .cart-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  border: none !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  transition: background 0.15s, transform 0.15s;
}

body:not(.admin-body) .theme-toggle:hover,
body:not(.admin-body) .header-fav-btn:hover,
body:not(.admin-body) .header-actions .cart-btn:hover {
  background: rgba(99, 102, 241, 0.12) !important;
  transform: none !important;
}

body:not(.admin-body) .header-actions .cart-count,
body:not(.admin-body) .header-fav-btn .fav-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body:not(.admin-body) .header-actions .cart-count {
  background: #5b4cdb;
  color: #fff;
}

body:not(.admin-body) .auth-area {
  margin-left: 2px;
}

body:not(.admin-body) .user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px !important;
  border-radius: 999px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  height: 40px;
}

body:not(.admin-body) .user-avatar {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b4cdb, #c9a227);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile header */
@media (max-width: 960px) {
  body:not(.admin-body) .site-header .header-inner {
    padding: 8px 12px;
    gap: 8px;
  }
  body:not(.admin-body) .main-nav {
    display: none !important; /* se abre con menú móvil existente */
  }
  body:not(.admin-body) .logo-tagline {
    display: none !important;
  }
  body:not(.admin-body) .search-box input {
    width: 0;
    padding: 0;
    opacity: 0;
  }
  body:not(.admin-body) .search-box.open input,
  body:not(.admin-body) .search-box:focus-within input {
    width: 120px;
    padding: 0 10px;
    opacity: 1;
  }
  body:not(.admin-body) .nav-toggle {
    display: inline-flex !important;
  }
}

@media (max-width: 480px) {
  body:not(.admin-body) .header-actions-icons {
    gap: 2px;
    padding: 2px;
  }
}


/* Envío gratis — barra del carrito */
.free-ship-box { margin: 10px 0 6px; }
.free-ship {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}
.free-ship.ok {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--color-success, #10b981);
  font-weight: 700;
  text-align: center;
}
.free-ship-text { margin-bottom: 6px; color: var(--color-text-secondary); }
.free-ship-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}
body.dark-mode .free-ship-track { background: rgba(255,255,255,0.1); }
.free-ship-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #667eea, #c9a227);
  transition: width 0.35s ease;
}


/* ========== Pulido visual video Absolut 360 ========== */

/* Auth pills (Iniciar sesión / Registrarse) */
.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-auth {
  padding: 9px 18px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  border: none !important;
  background: linear-gradient(135deg, #6d28d9, #7c3aed 50%, #a855f7) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-auth:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.45) !important;
}
.btn-auth-outline {
  background: #fff !important;
  color: #6d28d9 !important;
  border: 2px solid #7c3aed !important;
  box-shadow: none !important;
}
.btn-auth-outline:hover {
  background: rgba(124, 58, 237, 0.08) !important;
  color: #5b21b6 !important;
  border-color: #5b21b6 !important;
}
body.dark-mode .btn-auth-outline {
  background: transparent !important;
  color: #c4b5fd !important;
  border-color: #a78bfa !important;
}

/* Category service chips — más visibles */
.category-chips-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 4px 18px !important;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent);
}
.cat-chip {
  flex-shrink: 0;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(109, 40, 217, 0.25) !important;
  background: #fff !important;
  color: #4c1d95 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.06);
}
.cat-chip:hover {
  border-color: #7c3aed !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.15);
}
.cat-chip.active {
  background: linear-gradient(135deg, #6d28d9, #a855f7) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.35) !important;
}
body.dark-mode .cat-chip {
  background: rgba(30, 41, 59, 0.9) !important;
  color: #e2e8f0 !important;
  border-color: rgba(167, 139, 250, 0.3) !important;
}
body.dark-mode .cat-chip.active {
  background: linear-gradient(135deg, #6d28d9, #a855f7) !important;
  color: #fff !important;
}

/* Product card dual CTAs */
.product-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.product-cta-row .btn-add-cart {
  flex: 1;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 11px 10px !important;
  background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
  color: #fff !important;
}
.btn-wa-card {
  width: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1.5px solid #25D366;
  background: rgba(37, 211, 102, 0.12);
  color: #128C7E;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn-wa-card:hover {
  background: #25D366;
  color: #fff;
  transform: scale(1.05);
}
.btn-card-secondary {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px dashed rgba(109, 40, 217, 0.35);
  background: transparent;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-card-secondary:hover {
  background: rgba(109, 40, 217, 0.06);
  border-style: solid;
}
body.dark-mode .btn-card-secondary {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.4);
}

/* PDP: Comprar / WhatsApp / Cotizar / Seguir */
.abs-buy-now-row {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.abs-buy-now {
  background: linear-gradient(135deg, #6d28d9, #a855f7) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35);
  cursor: pointer;
}
.abs-buy-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.abs-buy-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  text-align: center;
}
.abs-extra-btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}
.abs-wa {
  display: block;
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.abs-wa:hover { filter: brightness(1.05); }
.abs-quote-btn {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(109, 40, 217, 0.4);
  background: rgba(109, 40, 217, 0.06);
  color: #6d28d9;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
body.dark-mode .abs-quote-btn {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(109, 40, 217, 0.15);
}
.abs-continue {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
}
.abs-continue:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text);
}

/* Cart: free shipping + points */
.free-ship-box { margin: 12px 0 6px; }
.free-ship {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
}
.free-ship.ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #15803d;
  font-weight: 700;
  text-align: center;
}
body.dark-mode .free-ship.ok { color: #86efac; }
.free-ship-text { font-size: 13px; margin-bottom: 8px; }
.free-ship-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}
body.dark-mode .free-ship-track { background: rgba(255,255,255,0.1); }
.free-ship-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #c9a227);
  transition: width 0.35s ease;
}
.cart-ship-note {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 6px 0 12px;
  line-height: 1.4;
}
.cart-points-box {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(201, 162, 39, 0.08));
  border: 1px solid rgba(109, 40, 217, 0.22);
}
.cart-points-box.can-redeem {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.12);
}
.cart-points-box.guest {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.cart-points-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 4px;
}
.cart-points-head strong {
  color: #c9a227;
  font-size: 16px;
}
.cart-points-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
}
.cart-points-btn {
  background: linear-gradient(135deg, #c9a227, #e8c547) !important;
  color: #1a1208 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 11px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  cursor: pointer;
}
.cart-points-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.cart-abs-pay {
  background: linear-gradient(135deg, #6d28d9, #a855f7) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px !important;
  font-weight: 800 !important;
  margin-top: 8px;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.3);
}
.cart-abs-continue {
  background: transparent !important;
  border: 1.5px solid var(--color-border) !important;
  color: var(--color-text) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  font-weight: 650 !important;
  margin-top: 8px;
  cursor: pointer;
}
.cart-abs-continue:hover {
  border-color: #7c3aed !important;
  color: #6d28d9 !important;
}

@media (max-width: 640px) {
  .btn-auth, .btn-auth-outline {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  .auth-area { gap: 6px; }
  .cat-chip {
    padding: 9px 14px !important;
    font-size: 11px !important;
  }
}


/* Correo del sistema (demo video) */
.email-system-modal { border-radius: 16px !important; }
.email-sys-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px 12px;
  background: linear-gradient(135deg, rgba(109,40,217,0.12), rgba(201,162,39,0.1));
  border-bottom: 1px solid var(--color-border);
}
.email-sys-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #6d28d9;
  background: rgba(109,40,217,0.12);
  padding: 4px 10px;
  border-radius: 999px;
}
.email-sys-meta {
  padding: 12px 20px;
  font-size: 13px;
  line-height: 1.7;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}
.email-sys-meta span {
  display: inline-block;
  min-width: 52px;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}
.email-sys-body {
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.55;
  max-height: 280px;
  overflow-y: auto;
  color: var(--color-text);
}
.email-sys-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px 8px;
  border-top: 1px solid var(--color-border);
}
.email-sys-note {
  font-size: 11px;
  color: var(--color-text-secondary);
  padding: 0 20px 16px;
  margin: 0;
  line-height: 1.4;
}
.email-inline-preview {
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid rgba(109, 40, 217, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}
.email-inline-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6d28d9;
  margin-bottom: 6px;
}
.email-inline-subject { margin-bottom: 2px; }
.email-inline-to { color: var(--color-text-secondary); font-size: 12px; }


/* =========================================================
   PRO THEME ABSOLUT 360 2026 — más atractivo y profesional
   ========================================================= */
:root {
  --pro-ink: #0f0a1a;
  --pro-muted: #5c5670;
  --pro-paper: #fbfaf8;
  --pro-cream: #f4efe6;
  --pro-line: rgba(15, 10, 26, 0.08);
  --pro-violet: #5b21b6;
  --pro-violet-2: #7c3aed;
  --pro-gold: #c9a227;
  --pro-gold-2: #e0bc4a;
  --pro-radius: 18px;
  --pro-shadow: 0 12px 40px rgba(15, 10, 26, 0.08);
  --pro-shadow-lg: 0 24px 60px rgba(15, 10, 26, 0.12);
}

body:not(.admin-body) {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif !important;
  background: var(--pro-paper) !important;
  color: var(--pro-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.admin-body) h1,
body:not(.admin-body) h2,
body:not(.admin-body) .cv-hero-copy h1,
body:not(.admin-body) .products-header h1 {
  font-family: "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.03em;
}

/* Ticker más fino */
body:not(.admin-body) .live-ticker {
  height: 34px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: linear-gradient(90deg, #2e1065, #5b21b6, #7c3aed, #c9a227, #5b21b6) !important;
  background-size: 300% 100% !important;
  letter-spacing: 0.02em;
}

/* Header premium */
body:not(.admin-body) .site-header {
  background: rgba(251, 250, 248, 0.86) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  border-bottom: 1px solid var(--pro-line) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 8px 30px rgba(15,10,26,0.04) !important;
  padding: 12px 24px !important;
  min-height: 68px !important;
}
body:not(.admin-body).dark-mode .site-header {
  background: rgba(15, 23, 42, 0.92) !important;
}
body:not(.admin-body) .main-nav a {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  color: var(--pro-muted) !important;
  transition: all 0.2s ease !important;
}
body:not(.admin-body) .main-nav a:hover {
  color: var(--pro-ink) !important;
  background: rgba(91, 33, 182, 0.06) !important;
}
body:not(.admin-body) .main-nav a.active {
  background: var(--pro-ink) !important;
  color: #fff !important;
}
body:not(.admin-body) .logo-text {
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}
body:not(.admin-body) .logo-tagline {
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

/* Hero editorial */
body:not(.admin-body) .cv-hero {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(91, 33, 182, 0.1), transparent 50%),
    linear-gradient(160deg, #f7f3ec 0%, #efe8dc 40%, #fbfaf8 100%) !important;
  padding: 64px 24px 56px !important;
  position: relative;
}
body:not(.admin-body) .cv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235b21b6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.7;
}
body:not(.admin-body) .cv-kicker {
  color: var(--pro-gold) !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  font-weight: 700 !important;
}
body:not(.admin-body) .cv-hero-copy h1 {
  font-size: clamp(30px, 4.5vw, 46px) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  color: var(--pro-ink) !important;
  max-width: 14ch;
}
body:not(.admin-body) .cv-lead {
  font-size: 16.5px !important;
  line-height: 1.65 !important;
  color: var(--pro-muted) !important;
}
body:not(.admin-body) .cv-btn-primary {
  background: linear-gradient(135deg, var(--pro-gold), var(--pro-gold-2)) !important;
  color: #1a1208 !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35) !important;
  letter-spacing: 0.02em;
}
body:not(.admin-body) .cv-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.45) !important;
}
body:not(.admin-body) .cv-btn-outline {
  border: 1.5px solid rgba(15, 10, 26, 0.2) !important;
  color: var(--pro-ink) !important;
  background: rgba(255,255,255,0.55) !important;
  backdrop-filter: blur(8px);
  border-radius: 999px !important;
  padding: 13px 26px !important;
  font-weight: 700 !important;
}
body:not(.admin-body) .cv-btn-outline:hover {
  border-color: var(--pro-violet) !important;
  color: var(--pro-violet) !important;
  background: #fff !important;
}
body:not(.admin-body) .cv-hero-card {
  background: rgba(255,255,255,0.75) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8) !important;
  border-radius: 24px !important;
  box-shadow: var(--pro-shadow-lg) !important;
  padding: 36px 28px !important;
  text-align: center;
}
body:not(.admin-body) .cv-hero-logo {
  width: 88px !important;
  height: auto !important;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 20px rgba(91,33,182,0.15));
}
body:not(.admin-body) .cv-hero-card p {
  font-weight: 800 !important;
  font-size: 18px !important;
  margin: 0 0 4px !important;
  color: var(--pro-ink) !important;
}
body:not(.admin-body) .cv-hero-card span {
  font-size: 12px !important;
  color: var(--pro-muted) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Trust bar glass */
body:not(.admin-body) .cv-trust-bar {
  background: #fff !important;
  border-radius: 20px !important;
  border: 1px solid var(--pro-line) !important;
  box-shadow: var(--pro-shadow) !important;
  margin-top: -28px !important;
  max-width: 1040px !important;
  overflow: hidden;
}
body:not(.admin-body) .cv-trust-item {
  padding: 22px 20px !important;
  gap: 14px !important;
}
body:not(.admin-body) .cv-trust-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(91,33,182,0.08), rgba(201,162,39,0.12)) !important;
  font-size: 20px !important;
}
body:not(.admin-body) .cv-trust-item strong {
  font-size: 13.5px !important;
  font-weight: 750 !important;
  color: var(--pro-ink) !important;
}
body:not(.admin-body) .cv-trust-item small {
  color: var(--pro-muted) !important;
}

/* Store layout */
body:not(.admin-body) .store-container {
  max-width: 1180px !important;
  margin: 48px auto !important;
  padding: 0 20px 48px !important;
}

/* Sidebar filters card */
body:not(.admin-body) .sidebar .filter-section {
  background: #fff !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 16px !important;
  padding: 18px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 4px 16px rgba(15,10,26,0.03);
}
body:not(.admin-body) .sidebar .filter-section h3 {
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  color: var(--pro-muted) !important;
  margin-bottom: 12px !important;
}

/* Products header */
body:not(.admin-body) .products-header {
  background: transparent !important;
  border: none !important;
  padding: 8px 0 16px !important;
  margin-bottom: 8px !important;
}
body:not(.admin-body) .products-header h1 {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--pro-ink) !important;
}
body:not(.admin-body) .currency-note {
  font-size: 13px !important;
  color: var(--pro-muted) !important;
}

/* Product cards elevados */
body:not(.admin-body) .product-card.abs-card,
body:not(.admin-body) .product-card {
  background: #fff !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(15,10,26,0.04) !important;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease, border-color 0.2s !important;
}
body:not(.admin-body) .product-card.abs-card:hover,
body:not(.admin-body) .product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--pro-shadow-lg) !important;
  border-color: rgba(91, 33, 182, 0.22) !important;
}
body:not(.admin-body) .product-card .product-image {
  background: linear-gradient(180deg, #f8f5f0, #fff) !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
body:not(.admin-body) .product-card .product-image img {
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1) !important;
}
body:not(.admin-body) .product-card:hover .product-image img {
  transform: scale(1.06) !important;
}
body:not(.admin-body) .product-info {
  padding: 16px 16px 18px !important;
}
body:not(.admin-body) .product-category {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: var(--pro-violet-2) !important;
  text-transform: uppercase !important;
}
body:not(.admin-body) .product-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--pro-ink) !important;
  margin: 6px 0 10px !important;
}
body:not(.admin-body) .price-pen {
  font-weight: 800 !important;
  font-size: 16px !important;
  color: var(--pro-ink) !important;
}
body:not(.admin-body) .price-usd {
  font-size: 12px !important;
  color: var(--pro-muted) !important;
  margin-left: 6px;
  font-weight: 600;
}

/* Toolbar */
body:not(.admin-body) .abs-toolbar {
  background: #fff !important;
  border: 1px solid var(--pro-line) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  box-shadow: 0 4px 16px rgba(15,10,26,0.03);
}
body:not(.admin-body) .abs-filter-btn {
  background: linear-gradient(135deg, var(--pro-violet), var(--pro-violet-2)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
}
body:not(.admin-body) .abs-clear-btn {
  border-radius: 10px !important;
  font-weight: 650 !important;
}

/* Modals */
body:not(.admin-body) .modal {
  border-radius: 20px !important;
  box-shadow: 0 25px 80px rgba(15,10,26,0.25) !important;
  border: 1px solid rgba(255,255,255,0.2);
}
body:not(.admin-body) .modal-overlay {
  backdrop-filter: blur(10px) !important;
  background: rgba(15, 10, 26, 0.45) !important;
}

/* Footer profesional */
.pro-footer.site-footer {
  background: linear-gradient(180deg, #0f0a1a 0%, #1a1028 100%) !important;
  color: rgba(255,255,255,0.72) !important;
  padding: 0 !important;
  margin-top: 72px !important;
  text-align: left !important;
  border-top: none !important;
}
.pro-footer .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}
.pro-footer .footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pro-footer .footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
}
.pro-footer .footer-brand strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pro-footer .footer-brand span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.pro-footer .footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pro-footer .footer-col h4 {
  color: #e0bc4a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.pro-footer .footer-col a,
.pro-footer .footer-col p {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13.5px;
  margin: 0 0 8px;
  line-height: 1.4;
}
.pro-footer .footer-col a:hover {
  color: #fff;
}
.pro-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 800px) {
  .pro-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 24px;
  }
  .pro-footer .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  body:not(.admin-body) .cv-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  body:not(.admin-body) .cv-hero-copy h1 {
    max-width: none;
  }
}
@media (max-width: 520px) {
  .pro-footer .footer-cols { grid-template-columns: 1fr; }
  body:not(.admin-body) .cv-trust-bar {
    grid-template-columns: 1fr 1fr !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}

/* Dark mode store tweaks */
body:not(.admin-body).dark-mode {
  background: #0b1220 !important;
}
body:not(.admin-body).dark-mode .cv-hero {
  background: linear-gradient(160deg, #0f172a, #1e1b4b 50%, #0f172a) !important;
}
body:not(.admin-body).dark-mode .cv-hero-copy h1 { color: #f8fafc !important; }
body:not(.admin-body).dark-mode .cv-lead { color: #94a3b8 !important; }
body:not(.admin-body).dark-mode .cv-trust-bar,
body:not(.admin-body).dark-mode .product-card,
body:not(.admin-body).dark-mode .abs-toolbar,
body:not(.admin-body).dark-mode .sidebar .filter-section {
  background: #1e293b !important;
  border-color: #334155 !important;
}
body:not(.admin-body).dark-mode .product-name,
body:not(.admin-body).dark-mode .price-pen {
  color: #f1f5f9 !important;
}

/* Suave entrada */
@keyframes proFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
body:not(.admin-body) .cv-hero-copy {
  animation: proFadeUp 0.6s ease both;
}
body:not(.admin-body) .cv-hero-visual {
  animation: proFadeUp 0.7s 0.1s ease both;
}
body:not(.admin-body) .cv-trust-bar {
  animation: proFadeUp 0.5s 0.15s ease both;
}


/* Día 1–2: validación de formularios */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.field-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.3;
}


/* WA + cotización garantizados */
.floating-whatsapp {
  position: fixed !important;
  left: 20px !important;
  right: auto !important;
  bottom: 24px !important;
  z-index: 9998 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #25D366 !important;
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 14px;
}
.floating-whatsapp:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}
.btn-wa-card,
.btn-card-secondary,
.abs-wa,
.abs-quote-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
  z-index: 2;
}
#quoteRequestModal.modal-overlay {
  z-index: 10050 !important;
}
#quoteRequestModal.modal-overlay.show {
  display: flex !important;
}
.abs-extra-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.abs-wa {
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.abs-quote-btn {
  background: transparent !important;
  color: #6d28d9 !important;
  border: 1.5px solid rgba(109, 40, 217, 0.4) !important;
  border-radius: 12px !important;
  padding: 11px 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.abs-quote-btn:hover {
  background: rgba(109, 40, 217, 0.08) !important;
}


/* Modal cotización siempre visible */
#quoteRequestModal.modal-overlay.show,
#quoteRequestModal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10060 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
#quoteRequestModal .quote-modal-box {
  background: var(--color-bg, #fff);
  color: var(--color-text, #111);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
  max-height: 90vh;
  overflow-y: auto;
}
body.dark-mode #quoteRequestModal .quote-modal-box {
  background: #1e293b;
  color: #f1f5f9;
}


/* WA-FORCE */
a#floatingWhatsApp.floating-whatsapp,
.floating-whatsapp {
  position: fixed !important;
  left: 16px !important;
  right: auto !important;
  bottom: 24px !important;
  z-index: 9998 !important;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  background: #25D366 !important;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45) !important;
}
.btn-wa-card {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 5 !important;
  background: rgba(37, 211, 102, 0.15) !important;
  border: 1.5px solid #25D366 !important;
  color: #128C7E !important;
}
.btn-wa-card:hover {
  background: #25D366 !important;
  color: #fff !important;
}
button.abs-wa {
  pointer-events: auto !important;
  cursor: pointer !important;
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
}
@media (max-width: 640px) {
  a#floatingWhatsApp.floating-whatsapp {
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }
  a#floatingWhatsApp .wa-text { display: none !important; }
}


/* WA-ANCHOR */
a.btn-wa-card {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1.5px solid #25D366;
  background: rgba(37, 211, 102, 0.15);
  color: #128C7E;
  font-size: 18px;
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 5;
}
a.btn-wa-card:hover {
  background: #25D366 !important;
  color: #fff !important;
}
a.abs-wa {
  display: block !important;
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
a#floatingWhatsApp {
  z-index: 99999 !important;
  pointer-events: auto !important;
}


/* CART-FORCE */
#cartModal.modal-overlay.show {
  display: flex !important;
  z-index: 10050 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
#cartModal .modal-cart {
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.cart-floating,
#cartFloating {
  position: fixed !important;
  right: 20px !important;
  left: auto !important;
  bottom: 24px !important;
  z-index: 9997 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.cart-floating.has-items {
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.55) !important;
}
.btn-add-cart:not(:disabled) {
  cursor: pointer !important;
  pointer-events: auto !important;
}




/* ========== DIA 8-10 MEJORADO ========== */

/* Tipografía y ritmo */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grid catálogo: 3 columnas en PC, 2 tablet, 1 móvil */
#productsGrid,
.products-grid,
.offers-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1024px) {
  #productsGrid, .products-grid, .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 560px) {
  #productsGrid, .products-grid, .offers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Cards más premium */
.product-card.abs-card,
.product-card {
  border-radius: 18px !important;
  border: 1px solid rgba(109, 40, 217, 0.08) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  background: var(--color-bg, #fff);
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(109, 40, 217, 0.14) !important;
  border-color: rgba(109, 40, 217, 0.22) !important;
}
.product-card .product-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  overflow: hidden;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.06);
}
.product-info {
  padding: 14px 16px 16px !important;
}
.product-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row .price {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #5b21b6 !important;
}
.product-cta-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}
.btn-add-cart.abs-add,
.product-cta-row .btn-add-cart {
  flex: 1;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 11px 10px !important;
  background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
  color: #fff !important;
  border: none !important;
}
.btn-add-cart.abs-add:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.35);
}

/* Hero más impactante */
.hero-section {
  border-radius: 0 0 28px 28px;
  padding: 48px 24px 40px !important;
}
.hero-section h1 {
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* fallback */
  color: #fff;
}
@supports (-webkit-background-clip: text) {
  .hero-section h1 {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #ffffff, #e9d5ff);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.hero-stats {
  margin-top: 28px;
  gap: 12px !important;
}
.hero-stat {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px !important;
  padding: 12px 18px !important;
}

/* Ticker */
.live-ticker {
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Trust badges row */
.trust-badges,
.abs-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 8px;
}
.trust-badge,
.abs-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid rgba(109, 40, 217, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #5b21b6;
}

/* Footer profesional */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%) !important;
  color: #cbd5e1 !important;
  padding: 48px 24px 28px !important;
  border-top: none !important;
  text-align: left !important;
}
.site-footer a { color: #c4b5fd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 24px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.footer-col p, .footer-col a {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

/* Cart modal polish */
#cartModal .modal-cart {
  border-radius: 20px !important;
  padding: 24px !important;
}
.cart-abs-item {
  border-radius: 12px;
  padding: 12px;
  background: rgba(109, 40, 217, 0.03);
  margin-bottom: 10px;
}

/* Skeleton loading */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.skeleton-card {
  height: 320px;
  border-radius: 18px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
}
@keyframes skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (max-width: 1024px) {
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .skeleton-grid { grid-template-columns: 1fr; }
}

/* Page load fade */
.page-ready main,
.page-ready #productsGrid {
  animation: fadeInPage 0.35s ease;
}
@keyframes fadeInPage {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}


/* Pro footer polish */
.site-footer.pro-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%) !important;
  color: #cbd5e1 !important;
  padding: 48px 24px 24px !important;
  text-align: left !important;
  border-top: none !important;
}
.pro-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .pro-footer .footer-inner { grid-template-columns: 1fr; }
}
.pro-footer .footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pro-footer .footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
}
.pro-footer .footer-brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
}
.pro-footer .footer-brand span {
  font-size: 13px;
  color: #94a3b8;
}
.pro-footer .footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 560px) {
  .pro-footer .footer-cols { grid-template-columns: 1fr; }
}
.pro-footer .footer-col h4 {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.pro-footer .footer-col a,
.pro-footer .footer-col p {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.5;
}
.pro-footer .footer-col a:hover { color: #e9d5ff; }
.pro-footer .footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  text-align: left !important;
}


/* ========== DÍA 8–10 MEJORADO: UI + imágenes + UX ========== */
.product-card.abs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(17, 17, 17, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.product-card.abs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(109, 40, 217, 0.14);
  border-color: rgba(109, 40, 217, 0.35);
}
.product-card.abs-card.on-offer {
  border-color: rgba(245, 87, 108, 0.45);
}
.product-card.abs-card .product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #f8f7f4 0%, #efeae3 100%);
  overflow: hidden;
  cursor: pointer;
}
.product-card.abs-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
}
.product-card.abs-card:hover .product-image img {
  transform: scale(1.06);
}
.product-card.abs-card .quick-view-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(17, 17, 17, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.product-card.abs-card:hover .quick-view-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.abs-badge-offer,
.badge-offer.abs-badge-offer {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.35);
}
.abs-badge-new,
.badge-new.abs-badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.badge-low-stock {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
}
.badge-stock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: 10px;
}
.product-card.abs-card.out-of-stock .product-image img {
  filter: grayscale(0.7);
  opacity: 0.7;
}
.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.product-rating {
  color: #f59e0b;
  font-size: 11px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.product-rating small {
  color: #94a3b8;
  font-size: 10px;
}
.product-card.abs-card .product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}
.product-card.abs-card .product-category {
  color: #7c3aed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.product-card.abs-card .product-name {
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
  text-transform: none;
  letter-spacing: 0;
  margin: 4px 0 8px;
  line-height: 1.3;
  min-height: 2.6em;
  cursor: pointer;
}
.product-card.abs-card .product-name:hover {
  color: #6d28d9;
}
.product-card.abs-card .price {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: #0f172a;
}
.product-card.abs-card .old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 13px;
  margin-left: 6px;
}
.product-card.abs-card .btn-add-cart.abs-add {
  background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 11px 12px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0.3px;
  text-transform: none;
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.28) !important;
}
.product-card.abs-card .btn-add-cart.abs-add:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
  color: #fff !important;
}
.product-card.abs-card .btn-add-cart.abs-add:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}
.product-cta-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  align-items: stretch;
}
.product-cta-row .btn-add-cart {
  flex: 1;
}
.btn-card-secondary {
  margin-top: 8px;
  width: 100%;
  border-radius: 10px;
  border: 1.5px dashed rgba(109, 40, 217, 0.35);
  background: transparent;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 10px;
  cursor: pointer;
}
.btn-card-secondary:hover {
  background: rgba(109, 40, 217, 0.06);
  border-style: solid;
}

/* Skeleton loading */
.abs-skeleton {
  pointer-events: none;
}
.abs-skeleton .sk-img {
  aspect-ratio: 1;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skShine 1.2s ease infinite;
}
.abs-skeleton .sk-line {
  height: 12px;
  border-radius: 6px;
  margin: 10px 0;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skShine 1.2s ease infinite;
}
.abs-skeleton .sk-w40 { width: 40%; }
.abs-skeleton .sk-w60 { width: 60%; }
.abs-skeleton .sk-w90 { width: 90%; }
.abs-skeleton .sk-btn {
  height: 40px;
  border-radius: 12px;
  margin-top: 12px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skShine 1.2s ease infinite;
}
@keyframes skShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.abs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
}
.abs-empty-icon { font-size: 48px; margin-bottom: 8px; }
.abs-empty h3 { margin: 0 0 6px; color: #0f172a; }
.abs-empty p { color: #64748b; margin: 0 0 16px; }

/* Hero polish */
.cv-hero {
  position: relative;
  overflow: hidden;
}
.cv-hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 70%);
  pointer-events: none;
}
.cv-btn-primary {
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.35);
}
.cv-trust-bar {
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.cv-trust-item {
  transition: background 0.2s;
}
.cv-trust-item:hover {
  background: rgba(109, 40, 217, 0.04);
}

/* Products grid spacing */
#productsGrid.products-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 980px) {
  #productsGrid.products-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 560px) {
  #productsGrid.products-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Page load bar */
.abs-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 100000;
  background: linear-gradient(90deg, #6d28d9, #a855f7, #f093fb);
  transition: width 0.25s ease;
  pointer-events: none;
}
.abs-progress.done {
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}

/* Ticker polish */
.live-ticker {
  background: linear-gradient(90deg, #4c1d95, #6d28d9, #7c3aed);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}


/* DAY-8-10-GRID · Catálogo 3 columnas en PC */
@media (min-width: 1024px) {
  .products-grid,
  #productsGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .products-grid,
  #productsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}
@media (max-width: 639px) {
  .products-grid,
  #productsGrid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
}

/* Product card polish */
.product-card.abs-card {
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  background: var(--color-bg, #fff);
}
.product-card.abs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(109, 40, 217, 0.14);
}
.product-card .product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f1f5f9;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quick-view-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.product-card:hover .quick-view-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.badge-offer, .abs-badge-offer {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2;
}
.badge-new, .abs-badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2;
}
.badge-low-stock {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(234, 179, 8, 0.95);
  color: #422006;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}


/* CLAIMS-UX */
.claims-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}
.claim-success {
  margin-bottom: 16px;
  border: 1.5px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
  border-radius: 14px;
}
.my-claim-item {
  border: 1px solid var(--color-border, #e2e8f0);
}
.claims-form input,
.claims-form select,
.claims-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border, #e2e8f0);
  font-size: 15px;
  background: var(--color-bg, #fff);
  color: var(--color-text, #111);
}
.claims-form textarea { resize: vertical; min-height: 100px; }


/* CLAIMS-PAGE */
.claims-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
.claims-page h1 {
  font-size: 1.75rem;
  margin: 0 0 10px;
}
.claims-note {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.88;
  margin: 0 0 20px;
}
.claims-form .form-group {
  margin-bottom: 14px;
}
.claims-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: 0.85;
}
.claims-form input,
.claims-form select,
.claims-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-bg, #fff);
  color: var(--color-text, #111);
  font-size: 14px;
}
.claim-success-inner {
  animation: fadeInUp 0.35s ease;
}
.my-claim-item {
  border: 1px solid var(--color-border, #e2e8f0);
}
#badgeClaims.badge-alert,
.nav-badge.badge-alert {
  background: #ef4444 !important;
  color: #fff !important;
  min-width: 18px;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

/* ========== PDP v2 — botones de acción responsive ========== */
.pdp-v2 .abs-buy-now-row {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-v2 .abs-buy-now {
  width: 100%;
  min-height: 48px;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
.pdp-v2 .abs-buy-hint {
  font-size: 12px;
  text-align: center;
  margin: 2px 0 4px;
  color: var(--color-text-secondary);
}
.pdp-v2 .abs-extra-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-v2 .abs-wa,
.pdp-v2 .abs-quote-btn,
.pdp-v2 .abs-continue {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

@media (min-width: 900px) {
  .pdp-v2 .abs-extra-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pdp-v2 .abs-continue {
    grid-column: 1 / -1;
  }
  .pdp-v2 .abs-buy-now {
    min-height: 52px;
    font-size: 16px !important;
  }
}

/* Asegurar que el modal producto no se corte en iOS */
@supports (height: 100dvh) {
  .modal-product-detail:has(.pdp-v2) {
    max-height: 96dvh;
  }
  @media (min-width: 900px) {
    .modal-product-detail:has(.pdp-v2) {
      max-height: 90dvh;
    }
  }
}

/* ============================================================
   PDP FORCE RESPONSIVE — última prioridad (gana sobre .modal 500px)
   ============================================================ */

/* Anular max-width:500px de .modal en la ficha de producto */
#productDetailModal .modal.modal-product-detail,
#productDetailModal .modal-product-detail,
.modal.modal-product-detail.pdp-modal-v2 {
  max-width: none;
  width: 100%;
  padding: 0 !important;
}

/* —— Móvil: bottom sheet —— */
#productDetailModal.pdp-modal-v2,
#productDetailModal:has(.pdp-v2) {
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 !important;
}
#productDetailModal .modal.modal-product-detail.pdp-modal-v2,
#productDetailModal .modal-product-detail:has(.pdp-v2),
#productDetailModal .modal-product-detail.pdp-modal-v2 {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 20px 20px 0 0 !important;
  max-height: 96dvh !important;
  overflow: hidden !important;
}

#productDetailModal .product-detail-content.pdp-v2 {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  max-height: 96dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* —— Tablet+ (≥768px): modal centrado, aún 1 columna —— */
@media (min-width: 768px) {
  #productDetailModal.pdp-modal-v2,
  #productDetailModal:has(.pdp-v2) {
    align-items: center !important;
    padding: 24px !important;
  }
  #productDetailModal .modal.modal-product-detail.pdp-modal-v2,
  #productDetailModal .modal-product-detail:has(.pdp-v2),
  #productDetailModal .modal-product-detail.pdp-modal-v2 {
    max-width: 640px !important;
    width: min(640px, 94vw) !important;
    border-radius: 24px !important;
    max-height: 92vh !important;
    margin: auto !important;
  }
}

/* —— PC (≥900px): 2 COLUMNAS anchas —— */
@media (min-width: 900px) {
  #productDetailModal .modal.modal-product-detail.pdp-modal-v2,
  #productDetailModal .modal-product-detail:has(.pdp-v2),
  #productDetailModal .modal-product-detail.pdp-modal-v2 {
    max-width: 1040px !important;
    width: min(1040px, 94vw) !important;
    border-radius: 24px !important;
    max-height: 90vh !important;
  }

  #productDetailModal .product-detail-content.pdp-v2 {
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr) !important;
    flex-direction: row !important;
    max-height: 90vh !important;
    overflow: hidden !important;
  }

  #productDetailModal .pdp-v2 .product-gallery.pdp-gallery {
    grid-template-columns: 64px 1fr !important;
    min-height: 100% !important;
    height: 100% !important;
    max-height: 90vh !important;
    padding: 32px 24px !important;
    border-radius: 24px 0 0 24px !important;
    align-items: center !important;
  }

  #productDetailModal .pdp-v2 .product-gallery > img#detailImage {
    max-height: 460px !important;
    width: 100% !important;
    object-fit: contain !important;
  }

  #productDetailModal .pdp-v2 .pdp-thumbs {
    flex-direction: column !important;
    max-height: 460px !important;
    overflow-y: auto !important;
  }

  #productDetailModal .pdp-v2 .product-detail-info.pdp-info {
    padding: 28px 36px 36px !important;
    overflow-y: auto !important;
    max-height: 90vh !important;
  }

  #productDetailModal .pdp-v2 .product-detail-info h2 {
    font-size: 26px !important;
  }

  #productDetailModal .pdp-v2 .price-main {
    font-size: 34px !important;
  }

  /* En PC: miniaturas verticales a la izquierda de la imagen */
  #productDetailModal .pdp-v2 .product-gallery.pdp-gallery {
    display: grid !important;
  }
}

/* —— Pantallas grandes —— */
@media (min-width: 1200px) {
  #productDetailModal .modal.modal-product-detail.pdp-modal-v2,
  #productDetailModal .modal-product-detail:has(.pdp-v2),
  #productDetailModal .modal-product-detail.pdp-modal-v2 {
    max-width: 1120px !important;
    width: min(1120px, 92vw) !important;
  }
  #productDetailModal .pdp-v2 .product-gallery > img#detailImage {
    max-height: 520px !important;
  }
}

/* —— Móvil estrecho: thumbs bajo la imagen —— */
@media (max-width: 767px) {
  #productDetailModal .pdp-v2 .product-gallery.pdp-gallery {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    padding: 12px 12px 6px !important;
    min-height: auto !important;
  }
  #productDetailModal .pdp-v2 .pdp-thumbs {
    flex-direction: row !important;
    order: 2 !important;
    width: 100% !important;
    justify-content: center !important;
    max-height: none !important;
    overflow-x: auto !important;
    padding: 6px 0 !important;
  }
  #productDetailModal .pdp-v2 .product-gallery > img#detailImage {
    order: 1 !important;
    max-height: 220px !important;
  }
  #productDetailModal .pdp-v2 .pdp-thumb {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ========== Live product preview (admin) ========== */
.product-live-preview {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
}
body.dark-mode .product-live-preview,
.admin-body.dark-mode .product-live-preview {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: #334155;
}
.plp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.plp-hint { font-size: 12px; color: #64748b; }
.plp-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}
body.dark-mode .plp-card { background: #0f172a; border-color: #334155; }
.plp-img-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
}
.plp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plp-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.plp-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 600;
}
.plp-body h4 {
  margin: 4px 0 8px;
  font-size: 15px;
  line-height: 1.3;
}
.plp-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.plp-price span:first-child {
  font-size: 18px;
  font-weight: 800;
  color: #e11d48;
}
.plp-old {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}
.plp-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 8px;
  line-height: 1.4;
}
.plp-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #64748b;
}
@media (max-width: 560px) {
  .plp-card { grid-template-columns: 1fr; }
  .plp-img-wrap { max-width: 160px; margin: 0 auto; }
}

/* Company settings */
.company-settings-card { margin-top: 24px; }
.co-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.co-logo-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 6px;
}
.co-pay-title { margin: 20px 0 10px; font-size: 15px; }
.co-payments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.co-pay-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.co-pay-item input[type="text"] {
  flex: 1;
  min-width: 100px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.quote-extra-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.quote-extra-grid .full-width { grid-column: 1 / -1; }
@media (min-width: 900px) {
  #productModal .modal.modal-form {
    max-width: min(920px, 96vw) !important;
  }
  #productModal .modal.modal-form:has(#productLivePreview) {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0 16px;
    align-items: start;
  }
  #productLivePreview {
    grid-column: 2;
    grid-row: 1 / span 20;
    position: sticky;
    top: 12px;
    margin-top: 40px;
  }
}
