/* ── RESPONSIVO Y FIX DE BORDES BLANCOS GLOBALES (MÓVIL + TABLET + IPHONE HORIZONTAL) ── */
@media(max-width:767px){
  .header-nav, #header .col-md-5, .language-selector, .currency-selector, ._desktop_contact_link { display:none!important; }
  #header .header-top { padding:0!important; }
  #header .col-md-7.right-nav { display:none!important; }
  #ctrlw-header-wrapper { display:none!important; }
  .ctrlw-nav { display:none!important; }
  #cw-bottom-bar { display:flex!important; visibility:visible!important; opacity:1!important; pointer-events:all!important; position:fixed!important; bottom:0!important; left:0!important; right:0!important; z-index:100000!important; background:#0b0b0b!important; }
  #header { padding: 0 !important; margin: 0 !important; }
  #header .container { padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important; width: 100% !important; }
  #header .row { margin-left: 0 !important; margin-right: 0 !important; }
  #header [class*="col-"] { padding-left: 0 !important; padding-right: 0 !important; }
  #ctrlw-mobile-header { display:flex!important; width: 100% !important; }
}


@media(min-width:768px){
  #ctrlw-mobile-header { display:none!important; }

  /* 1. BARRA SUPERIOR NEGRA (Contactos, Iniciar Sesión) */
  .header-nav { 
      background: linear-gradient(90deg, #050505 0%, #151515 100%) !important; 
      border-bottom: 1px solid #222 !important; padding: 8px 0 !important; 
  }
  .header-nav a { 
      color: #dfdfdf !important; font-weight: 700 !important; font-size: 13px !important; 
      text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s ease; position: relative;
  }
  .header-nav a:hover { color: #FFD700 !important; text-decoration: none; }
  
  /* 2. BOTÓN DEL CARRITO TIPO PÍLDORA ANIMADA */
  #_desktop_cart { display: none !important; } /* Reemplazado por .cw-pill-cart en header.tpl */
  #_desktop_cart .blockcart {
      background: linear-gradient(135deg, #FFD700, #e6c000) !important;
      color: #111 !important; border-radius: 30px !important;
      padding: 10px 24px !important; font-weight: 900 !important;
      display: flex; align-items: center; gap: 8px;
      box-shadow: 0 4px 15px rgba(255,215,0,0.15) !important;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
      border: none !important; cursor: pointer !important;
      position: relative !important; overflow: visible !important;
  }
  #_desktop_cart .blockcart:hover {
      transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,215,0,0.4) !important; background: linear-gradient(135deg, #ffe133, #FFD700) !important;
  }
  #_desktop_cart .cart-products-count {
      position: absolute !important;
      top: -8px !important; right: -8px !important;
      background: #FFD700 !important; color: #111 !important;
      min-width: 20px !important; height: 20px !important;
      border-radius: 10px !important; font-size: 11px !important;
      font-weight: 900 !important; padding: 0 5px !important;
      display: flex !important; align-items: center !important;
      justify-content: center !important; line-height: 1 !important;
      border: 2px solid #0b0b0b !important; z-index: 3 !important;
  }
  /* Suprimir completamente el dropdown nativo de PS */
  #_desktop_cart .dropdown-menu,
  #_desktop_cart .blockcart .body,
  #_desktop_cart .cart-hover-content,
  #_desktop_cart .cart-preview .body,
  #_desktop_cart .blockcart:hover .dropdown-menu { display: none !important; visibility:hidden !important; opacity:0!important; pointer-events:none!important; }

  /* 3. BUSCADOR PRINCIPAL (Centro de Comando) */
  #ctrlw-header-wrapper {
      max-width: 800px !important; margin: 15px auto 25px auto !important;
      position: relative !important; z-index: 9999999 !important;
  }
  #smart-search-input {
      padding: 16px 25px 16px 50px !important; border: 3px solid #FFD700 !important;
      border-radius: 11px !important; font-size: 16px !important; font-weight: 700 !important; color: #111 !important;
      box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  #smart-search-input:focus {
      box-shadow: 0 12px 35px rgba(255,215,0,0.25) !important; transform: translateY(-2px); border-color:#fff!important;
  }
  
  /* 4. FIX Z-INDEX: Buscador siempre por encima del menú */
  .header-top { position: relative !important; z-index: 999999 !important; }
  #cw-drop {
      margin-top: 15px !important; border: none !important;
      border-top: 4px solid #FFD700 !important; border-radius: 15px !important;
      box-shadow: 0 30px 70px rgba(0,0,0,0.4) !important; animation: floatIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  @keyframes floatIn { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }

  /* 🔥 5. REDISEÑO TOTAL DEL MENÚ DE CATEGORÍAS (TIPO SYSCOM/CYBERPUERTA) 🔥 */
  /* Fondo unificado y línea amarilla debajo */
  #_desktop_top_menu, .top-menu-container, .menu-container, .amegamenu {
      background: #0b0b0b !important;
      border-bottom: 3px solid #FFD700 !important;
  }
  
  /* Letras Blancas, nítidas y súper legibles */
  #_desktop_top_menu a, .top-menu a, .menu a, .amegamenu a {
      color: #ffffff !important; 
      font-weight: 800 !important; 
      font-size: 13px !important;
      text-transform: uppercase !important; 
      letter-spacing: 0.5px !important;
      transition: all 0.2s ease-out !important; 
      padding: 12px 18px !important;
      border-radius: 8px; /* Preparar para efecto píldora */
      text-shadow: none !important;
      display: inline-flex;
      align-items: center;
  }
  
  /* Efecto Hover Moderno (Píldora iluminada) */
  #_desktop_top_menu a:hover, .top-menu a:hover, .menu a:hover, .amegamenu a:hover {
      color: #FFD700 !important; 
      background: #1e1e1e !important; /* Gris carbón suave al pasar el ratón */
      text-decoration: none !important;
  }

  /* Refinando los botones especiales (Categorías y Promociones) */
  /* Promociones: Degradado Fuego */
  .top-menu a[href*="promociones"], .menu a[href*="promociones"], a[title*="Promociones"] {
      background: linear-gradient(135deg, #ff416c, #ff4b2b) !important;
      color: #fff !important;
      box-shadow: 0 4px 10px rgba(255,65,108,0.2) !important;
      border-radius: 8px !important;
  }
  .top-menu a[href*="promociones"]:hover, .menu a[href*="promociones"]:hover, a[title*="Promociones"]:hover {
      background: linear-gradient(135deg, #ff4b2b, #ff416c) !important;
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(255,65,108,0.4) !important;
      color: #fff !important;
  }

  /* Categorías: Botón de mando elegante */
  .top-menu a[href*="categorias"], .menu a[href*="categorias"], a.category-button {
      background: #1a1a1a !important;
      border: 1px solid #333 !important;
      border-radius: 8px !important;
      color: #FFD700 !important;
  }
  .top-menu a[href*="categorias"]:hover, .menu a[href*="categorias"]:hover, a.category-button:hover {
      background: #FFD700 !important;
      color: #000 !important;
      border-color: #FFD700 !important;
  }
}

html, body { overflow-x: hidden !important; }

/* ── DISEÑO GENERAL COMPARTIDO ── */
#ctrlw-header-wrapper { width:100%; max-width:640px; margin:12px auto; position:relative; z-index:1000; }
#smart-search-input { width:100%; padding:11px 20px 11px 40px; border:2px solid #FFD700; border-radius:8px; outline:none; font-size:15px; box-sizing:border-box; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="%23999" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 12px center; }
#cw-drop { display:none; position:absolute; top:calc(100% + 5px); left:0; right:0; min-width:680px; background:#fff; border-radius:10px; box-shadow:0 10px 40px rgba(0,0,0,.2); border:1px solid #e8e8e8; z-index:999999; overflow:hidden; }
#cw-drop.open { display:flex; }
#cw-drop-left { width:185px; flex-shrink:0; border-right:1px solid #f0f0f0; overflow-y:auto; max-height:480px; padding:10px 0; background:#fdfdfd; }
#cw-drop-right { flex:1; overflow-y:auto; max-height:480px; padding:12px 14px; min-width:0; }
.cw-sec-title { padding:8px 15px; font-size:11px; font-weight:800; text-transform:uppercase; color:#bbb; letter-spacing:.05em; }
.cw-cat-item { display:block; padding:8px 15px; font-size:13px; color:#444; text-decoration:none; border-left:3px solid transparent; transition:0.15s; }
.cw-cat-item:hover { background:#fffce0; color:#111; border-left-color:#FFD700; }
/* Autocomplete desktop — tarjeta de producto */
.cw-prod {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  cursor: pointer;
  margin-bottom: 8px;
  transition: 0.15s;
  background: #fff;
  min-width: 0;
}
.cw-prod:hover { background: #fffce0; border-color: #FFD700; }
.cw-prod-img {
  width: 64px; height: 64px; flex-shrink: 0;
  background: #f9f9f9; border-radius: 8px;
  border: 1px solid #eee; display: flex;
  align-items: center; justify-content: center;
  overflow: hidden; padding: 3px;
}
.cw-prod-img img { width: 100%; height: 100%; object-fit: contain; }
.cw-prod-info { min-width: 0; overflow: hidden; }
.cw-prod-marca { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #b8860b; letter-spacing: .05em; margin-bottom: 2px; }
.cw-prod-nombre {
  font-size: 13px; font-weight: 600; color: #222;
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  white-space: normal;
}
.cw-prod-precio { font-size: 14px; font-weight: 900; color: #1fa85b; margin-top: 4px; white-space: nowrap; }
.cw-prod-add-btn {
  background: #f4c400; border: none; border-radius: 7px;
  padding: 7px 12px; font-weight: 900; font-size: 11px;
  color: #111; cursor: pointer; white-space: nowrap;
  flex-shrink: 0; transition: 0.15s;
}
.cw-prod-add-btn:hover { background: #dfb300; }
.cw-prod-add-btn.added { background: #1fa85b; color: #fff; }

/* ── DISEÑO MÓVIL (APP STYLE) ── */
#ctrlw-mobile-header { display:none; flex-direction:column; background:#0b0b0b !important; position:sticky; top:0; z-index:9999; box-shadow:0 2px 10px rgba(0,0,0,.5); }
.mob-top-bar { display:flex; align-items:center; justify-content:space-between; padding:7px 12px; }
.mob-logo { font-weight:900; font-size:19px; color:#FFD700 !important; background:transparent !important; text-decoration:none; letter-spacing:-1px; font-family:Arial Black,sans-serif; }
.mob-logo span { color:#fff !important; }
.mob-actions { display:flex; align-items:center; gap:12px; }
.mob-login-btn { color:#fff; font-size:20px; text-decoration:none; line-height:1; cursor:pointer; }
.mob-cart-btn { background:#FFD700; color:#000; padding:5px 10px; border-radius:8px; font-weight:900; text-decoration:none; font-size:13px; display:flex; align-items:center; gap:5px; cursor:pointer; user-select:none; }
.mob-search-wrap { padding:0 10px 8px; }
#smart-search-input-mobile { width:100%; padding:9px 12px 9px 33px; border:2px solid #FFD700; border-radius:8px; font-size:14px; outline:none; box-sizing:border-box; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23999" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 9px center; }

#mob-results { display:none; position:fixed; top:96px; left:0; right:0; bottom:0; background:#fff; z-index:99998; overflow-y:auto; border-top:3px solid #FFD700; }
#mob-results-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; padding:10px; }
.mob-pcard { border:1px solid #eee; border-radius:8px; overflow:hidden; display:flex; flex-direction:column; background:#fff; cursor:pointer; }
.mob-pcard-img { aspect-ratio:1; background:#fdfdfd; display:flex; align-items:center; justify-content:center; padding:10px; border-bottom:1px solid #f0f0f0; }
.mob-pcard-img img { max-width:100%; max-height:100%; object-fit:contain; }
.mob-pcard-body { padding:10px; flex:1; display:flex; flex-direction:column; }
.mob-pcard-marca { font-size:10px; font-weight:400; text-transform:uppercase; color:#b8860b; margin-bottom:2px; }
.mob-pcard-nombre { font-size:12px; font-weight:600; color:#333; margin-bottom:6px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-height:1.2; }
.mob-pcard-precio { font-size:15px; font-weight:800; color:#2cb367; margin-top:auto; }
.mob-pcard-btn { margin-top:10px; width:100%; background:#FFD700; border:none; padding:8px; border-radius:6px; font-weight:900; font-size:11px; color:#111; transition:0.2s; cursor:pointer; }
.mob-pcard-btn.added { background:#2cb367; color:#fff; }

/* ── OVERLAY GLOBALES ── */
#cw-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:9999998 !important; }

/* ── PANEL DE USUARIO (DERECHA, OFF-CANVAS) ── */
#cw-user-panel { position:fixed; top:0; right:0; width:85%; max-width:340px; height:100vh; background:#f8f9fa; z-index:9999999 !important; transform:translateX(100%); transition:transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity .2s ease, visibility .2s ease; box-shadow:-5px 0 25px rgba(0,0,0,0.4); display:flex; flex-direction:column; opacity:0; visibility:hidden; pointer-events:none; }
#cw-user-panel.open { transform:translateX(0); opacity:1; visibility:visible; pointer-events:auto; }
.cw-u-header { background:#0b0b0b; padding:20px 15px; display:flex; align-items:center; border-bottom:3px solid #FFD700; }
.cw-u-avatar { width:45px; height:45px; border:2px solid #FFD700; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; margin-right:12px; flex-shrink:0; background:transparent; }
.cw-u-info { flex:1; color:#fff; }
.cw-u-name { font-weight:900; font-size:15px; text-transform:uppercase; margin-bottom:2px; line-height:1.1; }
.cw-u-sub { font-size:11px; color:#aaa; font-weight:600; }
.cw-u-close { background:none; border:none; color:#fff; font-size:26px; padding:0; cursor:pointer; margin-left:10px; line-height:1; }
.cw-u-body { flex:1; overflow-y:auto; background:#fff; }
.cw-u-group { font-size:10px; font-weight:900; color:#aaa; letter-spacing:0.08em; padding:0 20px; margin:15px 0 5px; }
.cw-u-link { display:flex; align-items:center; padding:12px 20px; color:#333; text-decoration:none; font-size:14px; font-weight:700; transition:0.2s; border-left:3px solid transparent; }
.cw-u-link span { font-size:16px; margin-right:12px; filter:grayscale(1); opacity:0.6; transition:0.2s; }
.cw-u-link:hover, .cw-u-link:active { background:#fffce0; color:#111; border-left-color:#FFD700; padding-left:25px; }

/* ── CARRITO FLOTANTE (MODAL CENTRADO) ── */
#cw-cart-modal {
    position:fixed; top:50%; left:50%; transform:translate(-50%, -50%) scale(0.95);
    width:92%; max-width:400px; max-height:80vh;
    background:#f4f7fb; z-index:10000001; border-radius:12px;
    box-shadow:0 15px 50px rgba(0,0,0,0.5); display:flex; flex-direction:column;
    opacity:0; visibility:hidden; transition:all 0.2s ease-out; overflow:hidden;
}
#cw-cart-modal.open { transform:translate(-50%, -50%) scale(1); opacity:1; visibility:visible; }
/* Desktop: JS controla posición exacta, anular centrado */
@media(min-width:769px){
  #cw-cart-modal.open { transform:none !important; }
}
.cw-c-header { background:#fff; border-bottom:1px solid #eee; padding:15px 20px; display:flex; justify-content:space-between; align-items:center; }
.cw-c-title { font-weight:900; color:#333; font-size:14px; display:flex; align-items:center; gap:8px; }
.cw-c-close { background:none; border:none; font-size:20px; color:#888; padding:0; cursor:pointer; }
.cw-c-body { flex:1; overflow-y:auto; padding:0 10px; }
.cw-c-item { display:flex; padding:12px 5px; border-bottom:1px solid #eee; align-items:center; position:relative; }
.cw-c-img { width:55px; height:55px; border:1px solid #f0f0f0; border-radius:6px; padding:2px; display:flex; justify-content:center; align-items:center; margin-right:12px; flex-shrink:0; background:#fff; }
.cw-c-img img { max-width:100%; max-height:100%; object-fit:contain; }
.cw-c-info { flex:1; padding-right:20px; }
.cw-c-pname { font-size:12px; font-weight:600; color:#333; line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cw-c-meta { margin-top:4px; font-size:12px; }
.cw-c-qty { color:#888; font-weight:700; font-size:11px; margin-right:5px; }
.cw-c-price { color:#2cb367; font-weight:900; }
.cw-c-del { position:absolute; right:5px; top:50%; transform:translateY(-50%); background:none; border:none; color:#ccc; font-size:18px; cursor:pointer; padding:5px; transition:0.2s; }
.cw-c-del:hover { color:#d9534f; }
.cw-c-footer { padding:15px; background:#fff; border-top:1px solid #eee; }
.cw-c-total-row { display:flex; justify-content:space-between; margin-bottom:12px; font-size:14px; font-weight:800; color:#555; }
.cw-c-total-val { color:#222; font-size:16px; font-weight:900; }
.cw-c-envio-row { font-size:12px; color:#666; margin-bottom:4px; display:flex; justify-content:space-between; }
.cw-c-envio-fecha { font-size:11px; color:#999; margin-bottom:10px; }
.cwc-envio { font-size:11px; color:#888; margin-top:4px; padding-top:4px; border-top:1px solid #f0f0f0; line-height:1.4; }
.cw-c-btn-blue { display:block; text-align:center; background:#FFD700; color:#111; font-weight:900; padding:12px; border-radius:8px; text-decoration:none; font-size:13px; text-transform:uppercase; box-shadow:0 4px 10px rgba(255,212,0,0.3); transition:0.2s; }
.cw-c-btn-blue:hover { background:#e6c000; }
.cw-c-btn-pay { display:block; text-align:center; background:#FFD700; color:#111; font-weight:900; padding:15px; border-radius:10px; text-decoration:none; font-size:15px; letter-spacing:.3px; text-transform:uppercase; box-shadow:0 6px 18px rgba(255,212,0,0.45); transition:.2s; }
.cw-c-btn-pay:hover { background:#ffdb1a; transform:translateY(-1px); box-shadow:0 8px 22px rgba(255,212,0,0.6); }
.cw-c-seecart { display:block; text-align:center; margin-top:9px; font-size:11.5px; color:#999; text-decoration:underline; }
.cw-c-seecart:hover { color:#FFD700; }

/* ── FORMULARIO DE LOGIN DESPLEGABLE (NATIVO) ── */
.cw-login-accordion { display: none; background: #f8f9fa; padding: 15px; border-radius: 8px; margin-top: 10px; border: 1px solid #eaeaea; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); }
.cw-login-accordion.open { display: block; animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.cw-input { width: 100%; padding: 10px 12px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.cw-input:focus { border-color: #FFD700; outline: none; background: #fff; }
.cw-btn-submit { width: 100%; background: #FFD700; color: #111; border: none; padding: 12px; border-radius: 6px; font-weight: 900; margin-bottom: 5px; cursor: pointer; text-transform: uppercase; font-size: 13px; transition: 0.2s; }
.cw-btn-submit:hover { background: #e6c000; }
.cw-login-links { display: flex; justify-content: space-between; font-size: 11px; margin-top: 10px; }
.cw-login-links a { color: #555; text-decoration: none; font-weight: 600; transition: 0.2s; }
.cw-login-links a:hover { color: #FFD700; }
.cw-social-divider {
  text-align: center;
  color: #888;
  font-size: 12px;
  padding: 12px 0 8px;
  border-top: 1px solid #eee;
  margin-top: 12px;
}
.cw-btn-google {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin: 6px 0;
}
.cw-btn-facebook {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  background: #1877F2;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin: 6px 0;
}

/* ── PÁGINA LOGIN / REGISTRO ── */
body#authentication, body#registration { background: #f5f5f5 !important; }
body#authentication #wrapper, body#registration #wrapper { background: #f5f5f5 !important; }
body#authentication #content-wrapper, body#registration #content-wrapper { max-width: 480px !important; margin: 0 auto !important; padding: 30px 16px 60px !important; }
body#authentication .page-header h1, body#registration .page-header h1 { font-weight: 900 !important; text-transform: uppercase; color: #111 !important; border-bottom: 3px solid #FFD700; display: inline-block; padding-bottom: 5px; margin-bottom: 24px; font-size: 22px; }
body#authentication .login-form, body#registration .register-form { background: #fff; padding: 28px; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,0.07); border: 1px solid #eee; }
body#authentication .form-group label, body#registration .form-group label { font-weight: 700 !important; font-size: 13px !important; color: #333 !important; margin-bottom: 6px !important; }
body#authentication .form-control, body#registration .form-control { border: 2px solid #e0e0e0 !important; border-radius: 8px !important; padding: 12px 15px !important; box-shadow: none !important; background: #fafafa !important; font-size: 14px !important; height: auto !important; }
body#authentication .form-control:focus, body#registration .form-control:focus { border-color: #FFD700 !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(255,215,0,0.15) !important; outline: none !important; }
/* BOTÓN ENTRAR — amarillo CTRLW */
body#authentication .btn-primary, body#registration .btn-primary { background: #FFD700 !important; border: none !important; color: #111 !important; border-radius: 8px !important; font-weight: 900 !important; font-size: 15px !important; text-transform: uppercase !important; padding: 14px !important; box-shadow: 0 4px 14px rgba(255,215,0,0.35) !important; width: 100% !important; transition: 0.2s ease !important; letter-spacing: 0.5px !important; }
body#authentication .btn-primary:hover, body#registration .btn-primary:hover { background: #e6c000 !important; transform: translateY(-1px) !important; box-shadow: 0 6px 18px rgba(255,215,0,0.45) !important; }
body#authentication .forgot-password, body#registration .forgot-password { text-align: right; margin: 8px 0 16px; }
body#authentication a, body#registration a { color: #555 !important; font-weight: 600; transition: 0.2s; }
body#authentication a:hover, body#registration a:hover { color: #b8860b !important; text-decoration: none; }
body#authentication .forgot-password a, body#registration .forgot-password a { font-size: 12px !important; }
body#authentication .no-account, body#registration .no-account { text-align: center; margin-top: 18px; font-size: 13px; }
body#authentication .no-account a, body#registration .no-account a { color: #111 !important; font-weight: 800 !important; text-decoration: underline !important; }
body#authentication .alert-danger, body#registration .alert-danger { background: #fff5f5 !important; border: 1px solid #ffebeb !important; border-left: 4px solid #d9534f !important; color: #c9302c !important; border-radius: 6px; font-weight: 600; }
body#authentication .input-group-btn button, body#registration .input-group-btn button { background: #f4f4f4 !important; border: 2px solid #e0e0e0 !important; border-left: none !important; border-radius: 0 8px 8px 0 !important; color: #555 !important; font-weight: 700 !important; }

/* ── MODAL DE LOGIN ── */
#cw-login-modal { display:none; }
#cw-login-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:10000000; backdrop-filter:blur(4px); }
#cw-login-box {
  position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
  background:#0f0f13 !important;
  border:1px solid rgba(255,215,0,.15);
  border-radius:20px; padding:36px 32px;
  width:100%; max-width:420px;
  z-index:10000001;
  box-shadow:0 32px 80px rgba(0,0,0,.6);
}
#cw-login-box * { box-sizing:border-box; }
#cw-login-close { position:absolute; top:16px; right:16px; background:none; border:none; font-size:20px; cursor:pointer; color:#666; line-height:1; transition:color .18s; }
#cw-login-close:hover { color:#fff; }
#cw-login-logo { font-size:22px; font-weight:900; color:#fff; margin-bottom:16px; text-align:center; }
#cw-login-logo span { color:#FFD700; }
#cw-login-box h2, #cw-login-box .cw-login-title { font-size:20px; font-weight:900; color:#fff; margin-bottom:20px; text-align:center; }
.cw-login-field { margin-bottom:14px; }
.cw-login-field label {
  display:block; font-size:11px; font-weight:700;
  color:rgba(255,255,255,.5) !important;
  margin-bottom:6px; text-transform:uppercase; letter-spacing:.8px;
}
.cw-login-field input {
  width:100%;
  border:1.5px solid rgba(255,255,255,.1) !important;
  border-radius:10px !important;
  padding:12px 14px !important; font-size:14px !important;
  outline:none !important; box-sizing:border-box;
  background:rgba(255,255,255,.06) !important;
  color:#fff !important;
  transition:border-color .2s, background .2s;
}
.cw-login-field input:focus {
  border-color:#FFD700 !important;
  background:rgba(255,215,0,.05) !important;
  color:#fff !important;
}
.cw-login-field input::placeholder { color:rgba(255,255,255,.3) !important; }
.cw-login-forgot { display:block; text-align:right; font-size:12px; color:rgba(255,255,255,.4) !important; text-decoration:none; margin-bottom:16px; transition:color .18s; }
.cw-login-forgot:hover { color:#FFD700 !important; }
.cw-login-submit { width:100%; background:#FFD700; color:#111; border:none; border-radius:8px; padding:13px; font-size:15px; font-weight:900; cursor:pointer; transition:background 0.2s; }
.cw-login-submit:hover { background:#e6c000; }
.cw-login-divider { text-align:center; color:rgba(255,255,255,.25); font-size:11px; font-weight:700; margin:18px 0; letter-spacing:.5px; }
.cw-login-google { display:flex; align-items:center; justify-content:center; gap:10px; background:rgba(255,255,255,.06); border:1.5px solid rgba(255,255,255,.12); border-radius:10px; padding:11px; font-weight:700; color:#fff !important; text-decoration:none; font-size:14px; margin-bottom:8px; transition:border-color .2s, background .2s; }
.cw-login-google:hover { border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.1); color:#fff !important; }
.cw-login-facebook { display:flex; align-items:center; justify-content:center; gap:10px; background:#1877F2; border:1.5px solid #1877F2; border-radius:10px; padding:11px; font-weight:700; color:#fff !important; text-decoration:none; font-size:14px; transition:opacity .2s; }
.cw-login-facebook:hover { opacity:0.85; color:#fff !important; }
.cw-login-register { text-align:center; font-size:13px; color:rgba(255,255,255,.4) !important; margin-top:18px; }
.cw-login-register a { color:#FFD700 !important; font-weight:700; text-decoration:none; }
.cw-login-register a:hover { text-decoration:underline; }
.cw-login-register a { color:#FFD700; font-weight:700; text-decoration:none; }
/* 15-sep-2026: .cw-login-field de la página de login (flex en fila) y el dark de tokens se colaban aquí:
   la etiqueta quedaba al lado del campo y el campo angosto. */
#cw-login-box .cw-login-field { display:block !important; background:none !important; border:0 !important; border-radius:0 !important; padding:0 !important; }
#cw-login-box .cw-login-field input { display:block; width:100% !important; flex:none; }
#cw-login-box .cw-login-field label { text-align:left; }
/* "body#authentication a {color:#555 !important}" apagaba el botón de código en /iniciar-sesion y /registro */
body#authentication .cw-logincodigo .cw-lc-btn, body#registration .cw-logincodigo .cw-lc-btn { color:#FFD700 !important; }
#cw-login-box .cw-login-codigo { display:block; text-align:center; margin-top:8px; background:transparent; border:1.5px solid #FFD700; border-radius:10px; padding:11px; font-weight:700; color:#FFD700 !important; text-decoration:none; font-size:14px; transition:background .2s; }
#cw-login-box .cw-login-codigo:hover { background:rgba(255,215,0,.08); color:#FFD700 !important; }
@media(max-width:768px) {
  #cw-login-box { margin:16px; padding:28px 20px; max-width:calc(100% - 32px); top:50%; left:16px; transform:translateY(-50%); }
}

/* ── CARRITO MOBILE: cabecera y pie siempre visibles ── */
@media(max-width:768px){
  #cw-cart-modal {
    top: 96px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 56px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    transform: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  #cw-cart-modal.open {
    transform: none !important;
  }
  .cw-c-header {
    flex-shrink:0;
    background:#0b0b0b;
    border-bottom:1px solid #333;
  }
  .cw-c-header .cw-c-title { color:#FFD700; }
  .cw-c-header .cw-c-close { color:#FFD700; font-size:22px; }
  .cw-c-body {
    flex:1;
    min-height:0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .cw-c-footer {
    flex-shrink:0;
    background:#0b0b0b;
    padding:12px;
    border-top:1px solid #333;
  }
  .cw-c-total-row { color:#ccc; }
  .cw-c-total-val { color:#FFD700; }
}

/* ═══════════════════════════════════════════════
   MI CUENTA MÓVIL — App-like redesign
   Desktop keeps existing design untouched.
   ═══════════════════════════════════════════════ */

/* Hide mobile-only elements on desktop */
@media(min-width:768px){
  .cw-mob-email-el, .cw-mob-edit-el,
  .cw-mob-grid-wrap, .cw-cuenta-section { display:none !important; }
}

@media(max-width:767px){
  /* ── Panel móvil: debajo del header, sube con translateY ── */
  #cw-user-panel {
    top: 96px !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100dvh - 96px) !important;
    border-radius: 0 !important;
    transform: translate3d(0, calc(100dvh + 24px), 0) !important;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity .2s ease, visibility .2s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
    z-index: 100000002 !important;
  }
  #cw-user-panel.open {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  #cw-overlay { z-index: 100000001 !important; }
  #cw-cart-modal { z-index: 100000003 !important; }
  /* Body scroll fix for login form (non-logged state) */
  #cw-user-panel .cw-u-body { min-height: 0; }

  /* ── Avatar: filled gold circle with initials when logged ── */
  #cw-user-panel.cw-logged .cw-u-avatar {
    background: #FFD700 !important;
    border-color: #FFD700 !important;
    color: #0b0b0b !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    width: 52px !important;
    height: 52px !important;
  }

  /* ── Mobile-only header extras ── */
  .cw-mob-email-el {
    font-size: 11px; color: #999; margin-top: 2px;
  }
  .cw-mob-edit-el {
    font-size: 11px; color: #FFD700; font-weight: 700;
    text-decoration: none; margin-top: 3px; display: inline-block;
  }
  /* Hide "Socio Pro" subtitle on mobile */
  #cw-user-panel.cw-logged .cw-u-sub { display: none; }

  /* cw-cuenta.css maneja display del body logueado */

  /* ── Mobile scrollable body ── */
  .cw-mob-grid-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
  }

  /* ── 2-column card grid ── */
  .cw-cuenta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }
  .cw-cuenta-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 12px 18px;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
  }
  .cw-cuenta-card:active { border-color: #FFD700; transform: scale(0.97); }
  .cw-cuenta-card-icon { font-size: 36px; margin-bottom: 10px; display: block; }
  .cw-cuenta-card-label { font-size: 13px; font-weight: 700; color: #1a1a1a; }
  .cw-cuenta-card-badge {
    background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 900;
    padding: 2px 7px; border-radius: 10px;
    position: absolute; top: 10px; right: 10px;
  }

  /* ── Logout button (mobile) ── */
  .cw-mob-logout {
    display: block; text-align: center;
    color: #d9534f; font-weight: 700; font-size: 14px;
    text-decoration: none;
    background: #fff; border-radius: 14px;
    padding: 15px; margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    -webkit-tap-highlight-color: transparent;
  }

  /* ── Section sub-panels (slide in from right) ── */
  .cw-cuenta-section {
    position: absolute;
    top: 0; left: 100%;
    width: 100%; height: 100%;
    background: #f5f5f5;
    z-index: 5;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    display: flex; flex-direction: column;
  }
  .cw-cuenta-section.cw-sec-active { left: 0; }

  /* ── Section header (sticky dark bar with back btn) ── */
  .cw-section-header {
    background: #0b0b0b;
    padding: 16px 16px;
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; flex-shrink: 0;
    border-bottom: 2px solid #FFD700;
  }
  .cw-back-btn {
    background: none; border: none;
    color: #FFD700; font-size: 28px;
    cursor: pointer; padding: 0; line-height: 1;
    flex-shrink: 0;
  }
  .cw-section-title { color: #fff; font-weight: 700; font-size: 16px; }

  /* ── Section content area ── */
  .cw-sec-content { padding: 12px; flex: 1; }

  /* ── Action link cards inside sections ── */
  .cw-sec-action-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: 14px;
    padding: 18px 16px; margin-bottom: 10px;
    text-decoration: none; color: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.12s;
    -webkit-tap-highlight-color: transparent;
  }
  .cw-sec-action-card:active { transform: scale(0.99); }
  .cw-sac-icon { font-size: 30px; flex-shrink: 0; }
  .cw-sac-body { flex: 1; min-width: 0; }
  .cw-sac-title { font-weight: 700; font-size: 14px; color: #111; }
  .cw-sac-sub { font-size: 12px; color: #888; margin-top: 3px; }
  .cw-sac-arrow { color: #ccc; font-size: 22px; flex-shrink: 0; }

  /* ── Favoritos: 2-column grid ── */
  .cw-mob-fav-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  .cw-mob-fav-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex; flex-direction: column; cursor: pointer;
  }
  .cw-mob-fav-img {
    aspect-ratio: 1; background: #f9f9f9;
    display: flex; align-items: center; justify-content: center;
    padding: 10px; border-bottom: 1px solid #f0f0f0;
  }
  .cw-mob-fav-img img { max-width:100%; max-height:100%; object-fit:contain; }
  .cw-mob-fav-body { padding: 10px; flex: 1; display: flex; flex-direction: column; }
  .cw-mob-fav-name {
    font-size: 12px; font-weight: 600; color: #333; margin-bottom: 6px;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; flex: 1;
  }
  .cw-mob-fav-price { font-size: 14px; font-weight: 800; color: #2cb367; margin-bottom: 8px; }
  .cw-mob-fav-btn {
    width: 100%; background: #FFD700; border: none;
    padding: 8px; border-radius: 8px;
    font-weight: 900; font-size: 11px; color: #111; cursor: pointer;
  }
  .cw-mob-loading { text-align: center; padding: 40px 20px; color: #999; font-size: 14px; }
}

/* ── Bug 2: solo sección activa en el panel ── */
.cw-panel .cw-cuenta-section{ display:none !important; }
.cw-panel .cw-cuenta-section.cw-sec-active{ display:flex !important; }

/* ── Login page layout ── */
.cw-login-card{
  max-width:420px; margin:40px auto;
  background:linear-gradient(180deg,#161616,#101010);
  border:1px solid #2a2a2a; border-radius:20px; padding:28px;
  color:#ececec; font-family:Inter,system-ui,Arial,sans-serif;
}
.cw-login-card h2{ margin:0 0 6px; font-size:22px; color:#fff; }
.cw-login-card label{ display:block; font-size:12px; color:#c9c9c9; margin:14px 0 7px; font-weight:600; }
.cw-login-field{
  display:flex; align-items:center; gap:8px;
  background:#1c1c1c; border:1px solid #2a2a2a;
  border-radius:12px; padding:0 14px;
}
.cw-login-field input{ flex:1; background:transparent; border:0; outline:0; color:#fff; padding:13px 0; font-size:14px; }
.cw-login-btn{
  width:100%; margin-top:16px; padding:14px; border:0; border-radius:12px;
  background:linear-gradient(135deg,#FFD700,#d9b400);
  color:#111; font-weight:800; font-size:14px; cursor:pointer;
}

/* ═══ DESKTOP MI CUENTA: Sidebar + Content ═══ */
#cw-desk-resumen { display: none; }
@media(min-width:768px){
  #cw-user-panel.cw-logged {
    width: 760px !important; max-width: 760px !important;
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    grid-template-rows: auto 1fr !important;
    overflow: hidden !important;
  }
  #cw-user-panel.cw-logged .cw-u-header { grid-column: 1/-1; }
  #cw-user-panel.cw-logged .cw-u-body {
    grid-column: 1; overflow-y: auto; overflow-x: hidden;
    background: #111 !important; border-right: 1px solid #222 !important;
  }
  #cw-user-panel.cw-logged .cw-u-group { color: #555 !important; }
  #cw-user-panel.cw-logged .cw-u-link {
    color: #ccc !important; border-left: 3px solid transparent !important;
  }
  #cw-user-panel.cw-logged .cw-u-link:hover,
  #cw-user-panel.cw-logged .cw-u-link.cw-active {
    color: #FFD700 !important; background: rgba(255,215,0,0.08) !important; border-left-color: #FFD700 !important;
  }
  #cw-user-panel.cw-logged .cw-u-link span { filter: none !important; opacity: 1 !important; }
  #cw-desk-resumen { grid-column: 2; overflow-y: auto; background: #fafafa; display: block; }
  #cw-user-panel.cw-logged .cw-cuenta-section {
    grid-column: 2 !important; position: static !important; left: auto !important;
    display: none !important; overflow-y: auto !important; background: #fafafa !important;
  }
  #cw-user-panel.cw-logged .cw-cuenta-section.cw-sec-active { display: flex !important; flex-direction: column !important; }
  #cw-user-panel.cw-logged .cw-back-btn { display: none !important; }
  .cw-desk-resumen-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
  .cw-desk-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 12px; background: #fff; border-radius: 14px;
    text-decoration: none; color: #111; border: 2px solid transparent;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    font-weight: 700; font-size: 13px; text-align: center;
  }
  .cw-desk-card:hover { border-color: #FFD700; box-shadow: 0 4px 16px rgba(255,215,0,.2); color: #111; text-decoration: none; }
  .cw-desk-icon { font-size: 32px; margin-bottom: 8px; display: block; }
}

/* ══ SYSCOM-STYLE PANEL MÓVIL: dark theme + grupos dorados ══ */
@media(max-width:767px){
  /* Panel fondo oscuro */
  .cw-panel{
    background:#0e0e0e !important;
    border-left:1px solid #232323 !important;
    display:flex !important; flex-direction:column !important;
  }
  /* Mostrar lista, ocultar tarjetas */
  .cw-panel .cw-mob-grid-wrap,
  .cw-panel .cw-desk-resumen-grid{ display:none !important; }
  .cw-panel .cw-u-body{
    display:block !important; flex:1 1 auto !important; min-height:0 !important;
    overflow-y:auto !important; -webkit-overflow-scrolling:touch !important;
    padding:6px 0 110px 0 !important; background:#0e0e0e !important;
  }
  /* Header / perfil */
  .cw-panel .cw-u-header{
    flex:0 0 auto !important; display:flex !important; align-items:center !important; gap:13px !important;
    background:linear-gradient(135deg,#1a1a1a,#0e0e0e) !important;
    border-bottom:1px solid #232323 !important; padding:16px 18px !important;
  }
  .cw-panel .cw-u-avatar{
    width:46px !important; height:46px !important; border-radius:12px !important;
    background:linear-gradient(135deg,#FFD700,#c9a400) !important;
    color:#111 !important; font-weight:800 !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
  }
  .cw-panel .cw-u-name{ color:#fff !important; font-weight:700 !important; }
  .cw-panel .cw-u-sub{ color:#FFD700 !important; font-size:11px !important; }
  .cw-panel .cw-mob-email-el{ color:#9a9a9a !important; }
  .cw-panel .cw-mob-edit-el{ color:#FFD700 !important; }
  .cw-panel .cw-u-close{
    color:#fff !important; background:transparent !important;
    border:0 !important; margin-left:auto !important;
  }
  /* Encabezados de grupo dorados */
  .cw-panel .cw-u-group{
    color:#FFD700 !important; font-size:11px !important; font-weight:700 !important;
    letter-spacing:1.2px !important; text-transform:uppercase !important;
    padding:16px 20px 8px !important;
  }
  /* Links: texto siempre claro */
  .cw-panel .cw-u-link,
  .cw-panel .cw-u-link *{ color:#ececec !important; }
  .cw-panel .cw-u-link{
    display:flex !important; align-items:center !important; gap:14px !important;
    padding:13px 20px !important; font-size:15px !important;
    text-decoration:none !important; border-left:3px solid transparent !important;
  }
  .cw-panel .cw-u-link:active{ background:#181818 !important; }
  .cw-panel .cw-u-link > span:first-child{
    width:26px !important; text-align:center !important; font-size:18px !important;
  }
  /* Cerrar sesión en rojo */
  .cw-panel .cw-u-link[href*="logout"],
  .cw-panel .cw-u-link[href*="mylogout"],
  .cw-panel .cw-u-link[href*="logout"] *,
  .cw-panel .cw-u-link[href*="mylogout"] *{ color:#ff6b6b !important; }
  .cw-panel .cw-u-link[href*="logout"],
  .cw-panel .cw-u-link[href*="mylogout"]{
    border-top:1px solid #232323 !important;
    margin-top:8px !important; font-weight:600 !important;
  }
}
@media (max-width:900px){
  #cw-user-panel.cw-logged .cw-u-body{ display:block !important; overflow-y:auto !important; -webkit-overflow-scrolling:touch !important; }
  #cw-user-panel .cw-fm-header{ display:flex; align-items:center; gap:12px; padding:18px 16px; background:linear-gradient(135deg,#1a1a1a,#0e0e0e); border-bottom:1px solid #222; }
  #cw-user-panel .cw-fm-avatar{ width:52px; height:52px; border-radius:14px; background:#FFD700; display:flex; align-items:center; justify-content:center; font-weight:800; color:#0b0b0b; font-size:20px; flex:0 0 auto; text-transform:uppercase; }
  #cw-user-panel .cw-fm-id{ min-width:0; flex:1; }
  #cw-user-panel .cw-fm-name{ color:#fff; font-weight:700; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #cw-user-panel .cw-fm-mail{ color:#9a9a9a; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #cw-user-panel .cw-fm-badge{ display:inline-block; margin-top:4px; font-size:10px; font-weight:700; color:#0b0b0b; background:#FFD700; padding:2px 8px; border-radius:20px; }
  #cw-user-panel .cw-fm-new{ margin-left:auto; font-size:9px; font-weight:700; color:#fff; background:#15803d; padding:2px 7px; border-radius:20px; white-space:nowrap; }
  #cw-user-panel .cw-u-logout{ color:#ff5a5a !important; border-top:1px solid #222 !important; margin-top:10px !important; }
  #cw-user-panel .cw-u-logout *{ color:#ff5a5a !important; }
}
#ctrlw-header-wrapper #smart-search-input{ padding-right:54px !important; }
.cw-srch-acts{ position:absolute; top:50%; transform:translateY(-50%); right:8px; display:flex; align-items:center; gap:2px; z-index:6; }
.cw-srch-ico{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:none; background:transparent; color:#888; border-radius:9px; cursor:pointer; transition:.18s; padding:0; }
.cw-srch-ico:hover{ color:#111; background:#f0f0f0; }
.cw-srch-ico.rec{ color:#fff; background:#e0202e; animation:cwMicPulse 1s infinite; }
@keyframes cwMicPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(224,32,46,.5);} 70%{ box-shadow:0 0 0 7px rgba(224,32,46,0);} }

/* =========================================================
   CTRLW CART / CHECKOUT VISUAL
   Solo diseño. No modifica lógica de carrito ni pagos.
========================================================= */

/* Fondo general carrito — blanco limpio */
#cart #wrapper,
#cart #content-wrapper,
#cart #main {
  background: #ffffff !important;
}

#checkout #wrapper {
  background:
    radial-gradient(circle at top right, rgba(255,212,0,.08), transparent 28%),
    #f1f3f6 !important;
}

/* Contenedores */
#cart .card,
#checkout .checkout-step,
#checkout #order-summary-content {
  border: 1px solid #e7e7e7 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.07) !important;
  overflow: visible !important;
  background: #fff !important;
}

/* Título carrito */
#cart .cart-container .card-block h1,
#cart h1 {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #111 !important;
  letter-spacing: -.3px !important;
}

#cart .cart-container .card-block h1::after {
  content: '';
  display: block;
  width: 74px;
  height: 4px;
  background: #FFD700;
  border-radius: 99px;
  margin-top: 10px;
}

/* Líneas de producto */
#cart .cart-item {
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 18px 0 !important;
}

#cart .cart-item:last-child {
  border-bottom: none !important;
}

/* Imagen producto */
#cart .product-line-grid-left img,
#cart .product-image img {
  border-radius: 10px !important;
  border: 1px solid #eee !important;
  padding: 5px !important;
  background: #fafafa !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.04) !important;
  object-fit: contain !important;
  width: 90px !important;
  height: 90px !important;
}

/* Nombre producto */
#cart .product-line-grid-body .label,
#cart .product-line-grid-body a.label {
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  color: #181818 !important;
  text-decoration: none !important;
}

#cart .product-line-grid-body .label:hover,
#cart .product-line-grid-body a.label:hover {
  color: #000 !important;
}

/* Precio unitario */
#cart .product-line-grid-body .product-price,
#cart .product-line-grid-body .current-price {
  color: #666 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* Precio total */
#cart .product-line-grid-right .price,
#cart .product-line-actions .price,
#cart .product-price strong {
  color: #111 !important;
  font-weight: 900 !important;
  font-size: 17px !important;
}

/* Cantidad */
#cart .js-cart-line-product-quantity,
#cart input[name="product-quantity-spin"] {
  border: 2px solid #dedede !important;
  border-radius: 10px !important;
  height: 38px !important;
  text-align: center !important;
  font-weight: 900 !important;
  color: #111 !important;
  box-shadow: none !important;
}

#cart .js-cart-line-product-quantity:focus,
#cart input[name="product-quantity-spin"]:focus {
  border-color: #FFD700 !important;
  box-shadow: 0 0 0 3px rgba(255,215,0,.15) !important;
  outline: none !important;
}

/* Botones qty de PrestaShop */
#cart .bootstrap-touchspin .btn {
  background: #f5f5f5 !important;
  border: 1px solid #dedede !important;
  color: #111 !important;
  font-weight: 900 !important;
}

#cart .bootstrap-touchspin .btn:hover {
  background: #FFD700 !important;
  border-color: #FFD700 !important;
  color: #111 !important;
}

#cart .cw-cart-qty .input-group-btn-vertical {
  display: none !important;
}

/* Eliminar */
#cart .remove-from-cart,
#cart .cart-line-product-actions a {
  color: #999 !important;
  transition: .2s ease !important;
}

#cart .remove-from-cart:hover,
#cart .cart-line-product-actions a:hover {
  color: #d35400 !important;
}

/* Resumen */
#cart .cart-grid-right .card {
  position: sticky !important;
  top: 16px !important;
}

#cart .cart-summary-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 22px !important;
}

#cart .cart-summary-line .label {
  font-size: 13px !important;
  color: #666 !important;
  margin: 0 !important;
}

#cart .cart-summary-line .value {
  font-weight: 800 !important;
  color: #111 !important;
}

#cart .cart-summary-line.cart-total {
  border-top: 1px solid #ededed !important;
  margin-top: 8px !important;
  padding-top: 18px !important;
}

#cart .cart-summary-line.cart-total .label {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #111 !important;
}

#cart .cart-summary-line.cart-total .value {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #22a85a !important;
}

/* Botón checkout */
#cart .checkout {
  padding: 18px 22px 22px !important;
}

#cart .checkout a,
#cart .checkout .btn,
#cart a.btn-primary {
  display: block !important;
  background: #FFD700 !important;
  color: #111 !important;
  text-align: center !important;
  padding: 15px 18px !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(255,215,0,.30) !important;
  transition: .2s ease !important;
}

#cart .checkout a:hover,
#cart .checkout .btn:hover,
#cart a.btn-primary:hover {
  background: #e6c000 !important;
  transform: translateY(-2px) !important;
}

/* Seguir comprando */
#cart a.label,
#cart .cart-grid-body a {
  color: #111 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

#cart a.label:hover,
#cart .cart-grid-body a:hover {
  color: #b89100 !important;
}

/* Mensajes */
#cart .alert,
#checkout .alert {
  border-radius: 12px !important;
  border: none !important;
}

/* =========================================================
   CARRITO DESKTOP (≥769px)
   Targets: .product-line-grid y sus cols Bootstrap
========================================================= */
@media (min-width: 769px) {

  /* Ancho máximo del carrito */
  #cart .cart-grid {
    max-width: 1200px !important;
    margin: 0 auto !important;
  }

  /* Card visual por producto */
  #cart .cart-item {
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 14px !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    transition: box-shadow .2s ease !important;
  }
  #cart .cart-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.09) !important;
  }
  #cart .cart-item:last-child {
    border: 1px solid #e8e8e8 !important;
    margin-bottom: 0 !important;
  }

  /* Fila de producto: flex override sobre Bootstrap float/cols */
  #cart .product-line-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Oculta clearfix para que no sea flex-item */
  #cart .product-line-grid .clearfix {
    display: none !important;
  }

  /* Imagen: columna fija 120x120 */
  #cart .product-line-grid-left {
    flex: 0 0 120px !important;
    width: 120px !important;
    max-width: 120px !important;
    padding: 0 !important;
    float: none !important;
  }
  #cart .product-line-grid-left .product-image,
  #cart .product-line-grid-left picture {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
  }
  #cart .product-line-grid-left img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Cuerpo: nombre del producto + precio unitario — columna flexible */
  #cart .product-line-grid-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    float: none !important;
  }

  /* Nombre del producto: completo, sin cortar */
  #cart .product-line-grid-body a.label {
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
  }

  /* SKU / atributos: gris pequeño */
  #cart .product-line-grid-body .product-line-info .label {
    font-size: 12px !important;
    color: #888 !important;
    font-weight: 500 !important;
  }
  #cart .product-line-grid-body .product-line-info .value {
    font-size: 12px !important;
    color: #666 !important;
  }

  /* Columna derecha: cantidad + total + eliminar */
  #cart .product-line-grid-right {
    flex: 0 0 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    padding: 0 !important;
    float: none !important;
  }

  /* Precio total (cw-total-price generado por el tpl) */
  #cart .cw-total-price {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #111 !important;
    display: block !important;
    margin-top: 4px !important;
  }

  /* Precio unitario en columna derecha */
  #cart .cw-unit-price {
    font-size: 12px !important;
    color: #888 !important;
    display: block !important;
  }

  /* Ocultar precio duplicado debajo del nombre del producto (desktop only) */
  body.page-cart .product-line-info .price {
    display: none !important;
  }

}

/* =========================================================
   CHECKOUT CTRLW
========================================================= */

#checkout .checkout-step {
  margin-bottom: 16px !important;
}

#checkout .step-title {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #111 !important;
  padding: 18px 24px !important;
  border-bottom: 1px solid #f1f1f1 !important;
  background: #fff !important;
}

#checkout .step-title .step-number {
  background: #111 !important;
  color: #FFD700 !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  margin-right: 8px !important;
}

#checkout .step-content {
  padding: 24px !important;
}

#checkout .form-control,
#checkout input,
#checkout select,
#checkout textarea {
  border: 2px solid #e8e8e8 !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

#checkout .form-control:focus,
#checkout input:focus,
#checkout select:focus,
#checkout textarea:focus {
  border-color: #FFD700 !important;
  box-shadow: 0 0 0 3px rgba(255,215,0,.15) !important;
  outline: none !important;
}

#checkout button.continue,
#checkout .continue.btn,
#checkout .btn-primary {
  background: #FFD700 !important;
  color: #111 !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  padding: 14px 28px !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 18px rgba(255,215,0,.25) !important;
}

#checkout button.continue:hover,
#checkout .continue.btn:hover,
#checkout .btn-primary:hover {
  background: #e6c000 !important;
  color: #111 !important;
}

/* Direcciones */
#checkout .address-item {
  border: 2px solid #e8e8e8 !important;
  border-radius: 14px !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
  transition: .2s ease !important;
  background: #fff !important;
}

#checkout .address-item.selected {
  border-color: #FFD700 !important;
  background: #fffbea !important;
  box-shadow: 0 6px 18px rgba(255,215,0,.12) !important;
}

/* Resumen checkout */
#checkout #order-summary-content {
  border-radius: 18px !important;
}

/* Paso de envío: oculta opciones extras (regalo/mensaje/hooks), pero MUESTRA la
   lista de carriers (.delivery-options) para poder elegir "Recoger en oficina". */
body#checkout .delivery-options-list .order-options,
body#checkout #hook-display-before-carrier,
body#checkout #hook-display-after-carrier,
body#checkout #extra_carrier { display: none !important; }

/* FIX sidebar resumen: etiqueta y valor en su lugar (evita texto fusionado) */
body#checkout .cart-summary-subtotals-container .cart-summary-line,
body#checkout .cart-detailed-totals .cart-summary-line {
  display: flex !important; justify-content: space-between !important;
  align-items: center !important; flex-wrap: nowrap !important; gap: 8px !important;
}
body#checkout .cart-summary-subtotals-container .cart-summary-line .label,
body#checkout .cart-detailed-totals .cart-summary-line .label {
  flex: 1 1 auto !important; white-space: normal !important;
  font-size: 12px !important; color: #666 !important; float: none !important; width: auto !important;
}
body#checkout .cart-summary-subtotals-container .cart-summary-line .value,
body#checkout .cart-detailed-totals .cart-summary-line .value {
  flex: 0 0 auto !important; white-space: nowrap !important; text-align: right !important;
  font-weight: 700 !important; float: none !important; width: auto !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width: 600px) {
  #cart .cart-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  #cart .cart-grid-body,
  #cart .cart-grid-right {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  #cart .product-line-grid {
    display: grid !important;
    grid-template-columns: 76px 1fr !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  #cart .product-line-grid-left {
    width: 76px !important;
    padding: 0 !important;
  }

  #cart .product-line-grid-left img {
    width: 76px !important;
    height: 76px !important;
  }

  #cart .product-line-grid-body {
    padding: 0 !important;
  }

  #cart .product-line-grid-body .label {
    font-size: 12.5px !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    display: -webkit-box !important;
    overflow: hidden !important;
  }

  #cart .product-line-grid-body .product-price {
    display: none !important;
  }

  #cart .product-line-actions .row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    justify-content: space-between !important;
  }

  #cart .cart-summary-line.cart-total .value {
    font-size: 21px !important;
  }

  #cart .checkout a,
  #cart .checkout .btn {
    font-size: 14px !important;
    padding: 14px !important;
  }
}


#cw-bottom-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #0b0b0b !important;
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  padding: 5px 0;
  padding-bottom: calc(5px + env(safe-area-inset-bottom));
  z-index: 100000 !important;
  border-top: 1px solid #222;
}
.cw-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  color: #aaa !important;
  text-decoration: none !important;
  font-size: 9px !important;
  gap: 2px !important;
}
.cw-nav-item svg { width: 20px !important; height: 20px !important; }
.cw-nav-item:hover,
.cw-nav-item.active {
  color: #FFD700 !important;
}
@media(min-width: 768px) {
  #cw-bottom-bar { display: none !important; }
}
/* Espacio para que el contenido no quede detrás de la barra fija */
@media(max-width: 767px) {
  body:not(#cart):not(#checkout) #wrapper,
  body:not(#cart):not(#checkout) #main { padding-bottom: 64px !important; }
  body#cart, body#checkout { padding-bottom: 58px !important; }
}

/* ── Colores del header móvil y barra inferior en carrito y checkout ── */
body#cart .mob-logo,
body#checkout .mob-logo        { color: #FFD700 !important; }
body#cart .mob-logo span,
body#checkout .mob-logo span   { color: #fff !important; }
body#cart .cw-ia-btn,
body#checkout .cw-ia-btn       { color: #FFD700 !important; background: #0b0b0b !important; border-color: #FFD700 !important; }
body#cart .cw-nav-item,
body#checkout .cw-nav-item     { color: #fff !important; }
body#cart .cw-nav-item svg,
body#checkout .cw-nav-item svg { stroke: #fff !important; }
body#cart .cw-nav-item:hover,
body#cart .cw-nav-item.active,
body#checkout .cw-nav-item:hover,
body#checkout .cw-nav-item.active { color: #FFD700 !important; }
body#cart #cw-bottom-bar,
body#checkout #cw-bottom-bar   { background: #0b0b0b !important; }


/* === CARRITO DESKTOP — BOTÓN COMPLETO SIN CORTES === */
@media (min-width: 769px) {

  html body #_desktop_cart .blockcart.cart-preview .header,
  html body #_desktop_cart .blockcart .header {
    background: #FFD700 !important;
    border-radius: 50px !important;
    padding: 8px 18px 8px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 90px !important;
    height: 40px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html body #_desktop_cart .blockcart .header a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #000 !important;
    text-decoration: none !important;
  }

  html body #_desktop_cart .blockcart i.material-icons.shopping-cart {
    font-size: 24px !important;
    color: #000 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }

  html body #_desktop_cart .hidden-sm-down { display: none !important; }

  html body #_desktop_cart .blockcart span.cart-products-count {
    background: #000 !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}

/* =============================================
   FIX BUSCADOR — MÁS CORTO, PROPORCIONAL (solo desktop)
   ============================================= */
@media(min-width:768px) {
.cw-search-wrap #ctrlw-header-wrapper,
#ctrlw-header-wrapper {
  max-width: 500px !important;
  width: 500px !important;
  flex: none !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
#cw-search-inner {
  flex: 1 !important;
  position: relative !important;
  min-width: 0 !important;
}
#smart-search-input {
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  font-size: 14px !important;
  padding: 8px 16px 8px 38px !important;
  border-radius: 11px !important;
  border: 2px solid #FFD700 !important;
  box-sizing: border-box !important;
}
}

/* =============================================
   FIX RESUMEN CARRITO — FILAS SIMÉTRICAS
   ============================================= */
#cart .cart-summary-line {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #f2f2f2 !important;
}
#cart .cart-summary-line .label {
  font-size: 14px !important;
  color: #555 !important;
  font-weight: 400 !important;
  flex: 1 !important;
  text-align: left !important;
}
#cart .cart-summary-line .value {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111 !important;
  text-align: right !important;
  white-space: nowrap !important;
}
/* Línea TOTAL — misma fila, perfectamente alineado */
#cart .cart-summary-line.cart-total,
.card-block.cart-summary-totals .cart-summary-line.cart-total {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  border-top: 2px solid #eee !important;
  border-bottom: none !important;
  padding: 14px 0 !important;
  margin-top: 4px !important;
  gap: 12px !important;
}
#cart .cart-summary-line.cart-total .label,
.card-block.cart-summary-totals .cart-summary-line.cart-total .label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #111 !important;
  text-transform: uppercase !important;
  flex: 1 1 auto !important;
  max-width: 45% !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
#cart .cart-summary-line.cart-total .value,
.card-block.cart-summary-totals .cart-summary-line.cart-total .value {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #2cb367 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-align: right !important;
}
#cart .cart-summary-line .label.sub { font-size: 12px !important; color: #aaa !important; font-weight: 400 !important; }
#cart .cart-summary-line .value.sub { font-size: 12px !important; color: #aaa !important; font-weight: 400 !important; }

/* Buscador detrás cuando el carrito está abierto */
body.cart-panel-open #ctrlw-header-wrapper,
body.cart-panel-open .cw-search-wrap,
body.cart-panel-open #cw-drop {
  z-index: 100 !important;
  position: relative !important;
}


/* ── BOTÓN IA Y CHAT FLOTANTE ── */
.cw-ia-btn {
  background: #0b0b0b;
  color: #FFD700 !important;
  border: 2px solid #FFD700;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.cw-ia-btn:hover {
  background: #FFD700;
  color: #0b0b0b;
  text-decoration: none;
}
/* En móvil el botón IA compacto para que el header sea más delgado */
@media(max-width:767px){
  #cw-ia-btn-mobile { padding: 5px 10px; font-size: 13px; border-width: 1.5px; }
}
#cw-ia-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 560px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  z-index: 9999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
#cw-ia-chat.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
#cw-ia-header {
  background: #0b0b0b;
  color: #FFD700;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
}
#cw-ia-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
#cw-ia-consultas {
  font-size: 11px;
  color: #aaa;
}
#cw-ia-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cw-ia-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.cw-ia-msg.ia {
  background: #f0f0f0;
  color: #111;
  align-self: flex-start;
}
.cw-ia-msg.user {
  background: #FFD700;
  color: #111;
  align-self: flex-end;
}
#cw-ia-footer {
  padding: 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #eee;
}
#cw-ia-input {
  flex: 1;
  border: 2px solid #FFD700;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
#cw-ia-send {
  background: #0b0b0b;
  color: #FFD700;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 18px;
  cursor: pointer;
}
#cw-ia-cam, #cw-ia-mic {
  background: #f2f2f2;
  color: #3a3a3a;
  border: none;
  border-radius: 8px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
#cw-ia-cam:hover, #cw-ia-mic:hover { background: #FFE680; color: #111; }
#cw-ia-mic.rec { background: #e0202e; color: #fff; animation: cwMicPulse 1s infinite; }
@keyframes cwMicPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(224,32,46,.5);} 70%{ box-shadow:0 0 0 7px rgba(224,32,46,0);} }
.cw-ia-producto {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.cw-ia-producto img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.cw-ia-producto-info {
  flex: 1;
  font-size: 12px;
}
.cw-ia-producto-precio {
  color: #2cb367;
  font-weight: 700;
}
.cw-ia-producto a {
  background: #FFD700;
  color: #111;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
/* ── Tier cards (Fase 2.3) ─────────────────────────────── */
.cw-ia-tier-card {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 10px;
  margin: 6px 0;
  overflow: hidden;
}
.cw-ia-tier-card.recomendada { border-color: #FFD700; }
.cw-ia-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #252525;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.cw-ia-tier-card.recomendada .cw-ia-tier-header { background: #2a2200; color: #FFD700; }
.cw-ia-tier-total { color: #2cb367; font-size: 14px; font-weight: 700; }
.cw-ia-tier-items { padding: 7px 12px; font-size: 11px; color: #bbb; line-height: 1.6; }
.cw-ia-tier-items .cw-ia-tier-item { display: block; }
.cw-ia-tier-items .cw-ia-tier-envio { color: #777; margin-top: 3px; }
.cw-ia-tier-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 4px 12px 10px;
  padding: 8px 0;
  background: #FFD700;
  color: #111;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}
.cw-ia-tier-btn:hover:not(:disabled) { background: #e6c200; }
.cw-ia-tier-btn:disabled { background: #444; color: #888; cursor: not-allowed; }
.cw-ia-tier-btn.ok { background: #2cb367; color: #fff; }
@media(max-width: 768px) {
  #cw-ia-chat {
    top: 110px;
    bottom: calc(52px + env(safe-area-inset-bottom));
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-radius: 0;
  }
}


.cw-mob-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #1a1a1a;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.cw-mob-cat-item:hover, .cw-mob-cat-item:active { background: #1a1a1a; color: #FFD700; }
.cw-mob-cat-item .cw-mob-arrow { color: #FFD700; font-size: 16px; flex-shrink: 0; }
.cw-mob-cat-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #111;
  color: #FFD700;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid #222;
}


#cw-cookie-bar{position:fixed;bottom:0;left:0;right:0;background:#0b0b0b;color:#fff;z-index:99999;padding:14px 20px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:2px solid #222;font-size:13px;line-height:1.4}
#cw-cookie-bar p{margin:0;flex:1;min-width:200px}
#cw-cookie-bar .cw-ck-accept{background:#FFD700;color:#111;border:none;padding:10px 20px;border-radius:7px;font-weight:900;cursor:pointer;font-size:13px;white-space:nowrap}
#cw-cookie-bar .cw-ck-accept:hover{background:#e6c000}
#cw-cookie-bar .cw-ck-reject{background:#333;color:#ccc;border:none;padding:10px 16px;border-radius:7px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
#cw-cookie-bar .cw-ck-reject:hover{background:#444;color:#fff}
#cw-cookie-bar .cw-ck-info{color:#aaa;font-size:12px;text-decoration:underline;white-space:nowrap;background:none;border:none;cursor:pointer;padding:0}
#cw-cookie-bar .cw-ck-info:hover{color:#fff}
@media(max-width:600px){
  #cw-cookie-bar{
    bottom:calc(55px + env(safe-area-inset-bottom));
    align-items:center;
    flex-wrap:nowrap;
    gap:8px;
    padding:8px 10px;
    text-align:left;
    font-size:10.5px;
    line-height:1.25;
  }
  #cw-cookie-bar p{
    min-width:0;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  #cw-cookie-bar .cw-ck-info{ display:none; }
  #cw-cookie-bar .cw-ck-accept,
  #cw-cookie-bar .cw-ck-reject{
    width:auto;
    padding:8px 9px;
    font-size:11px;
    text-align:center;
    flex:0 0 auto;
  }
}


#cw-wa-btn{
  position:fixed;
  bottom:64px; /* above mobile bottom-bar (~53px) */
  right:18px;
  width:56px;height:56px;
  background:#25D366;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 16px rgba(0,0,0,.35);
  z-index:100001;
  transition:transform .2s,box-shadow .2s;
  text-decoration:none;
}
#cw-wa-btn:hover{transform:scale(1.08);box-shadow:0 6px 20px rgba(0,0,0,.4);}
@media(min-width:900px){
  #cw-wa-btn{bottom:24px;} /* desktop: no bottom bar */
}

/* ── CHECKOUT MP: ocultar formulario tarjeta cuando no está seleccionado ── */
body.page-order .js-additional-information {
  display: none;
}
body.page-order .js-additional-information.open {
  display: block;
}
/* ── MOSTRAR/OCULTAR CONTRASEÑA ── */
.cw-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.cw-pw-wrap input {
  flex: 1;
  padding-right: 44px !important;
}
.cw-show-pw {
  position: absolute;
  right: 10px;
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: #888;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}
.cw-show-pw:hover { color: #FFD700; }
