/* === Solo categoría 10 - Barajas === */
body.category-id-10 #js-product-list .product-miniature .thumbnail-container,
body.category-id-10 #js-product-list .product-miniature a.product-thumbnail,
body.category-id-10 #js-product-list .product-miniature .thumbnail {
  position: relative;
  display: block;
  overflow: hidden;
  height: 0;
  padding-bottom: 100%; /* Cuadrado. Cambia a 125% o 133% para vertical */
}

body.category-id-10 #js-product-list .product-miniature .thumbnail-container img,
body.category-id-10 #js-product-list .product-miniature a.product-thumbnail img,
body.category-id-10 #js-product-list .product-miniature .thumbnail img,
body.category-id-10 #js-product-list .product-miniature .thumbnail-container picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Por si tu tema usa fondo en lugar de <img> */
body.category-id-10 #js-product-list .product-miniature a.product-thumbnail,
body.category-id-10 #js-product-list .product-miniature .thumbnail {
  background-size: cover;
  background-position: center;
}

/* ===============================================================
   THE JOKER HOUSE — BRAND DIRECTORY
   =============================================================== */

.jh-brands-page {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

/* INTRO */
.jh-brands-page .brands-intro {
  margin-top: .25rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
  color: #666;
}

/* TOOLBAR */
.jh-brands-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.4rem;
  align-items: center;
  margin-bottom: 2rem;
}

.jh-brands-search input {
  min-width: 240px;
  padding: .4rem .75rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: .9rem;
}

.jh-brands-search input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}

/* CHECKBOX "solo marcas con productos" */
.jh-only-active {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #555;
}

.jh-only-active input {
  accent-color: #111;
}

/* TOP BRANDS */
.jh-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.jh-top-brands {
  margin-bottom: 2rem;
}

.jh-top-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 1rem;
}

.jh-top-brand-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.jh-top-brand-card__link {
  display: flex;
  flex-direction: column;
  padding: .7rem .9rem;
  text-decoration: none;
  color: inherit;
}

.jh-top-brand-card__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70px;
  margin-bottom: .35rem;
}

.jh-top-brand-card__logo img {
  max-height: 70px;
  width: auto;
}

/* Ocultar SOLO imágenes por defecto tipo "es-default-manufacturer_default" */
.jh-top-brand-card__logo img[src*="-default-"],
.jh-brand-card__logo img[src*="-default-"] {
  display: none;
}

.jh-top-brand-card__body {
  text-align: center;
}

.jh-top-brand-card__name {
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
}

.jh-top-brand-card__meta {
  margin-top: .1rem;
  font-size: .8rem;
  color: #777;
}

.jh-top-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* A-Z INDEX */
.jh-brands-index {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.jh-brands-index__item {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  display: flex;
  font-size: .8rem;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  color: #555;
}

.jh-brands-index__item:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* LETTER BLOCK */
.jh-brands-list {
  margin-top: .4rem;
}

.jh-brands-letter-block {
  margin-bottom: 1.2rem;
}

.jh-brands-letter-title {
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 1px solid #eee;
  padding-bottom: .15rem;
  margin-bottom: .2rem;
}

/* BRAND ROW — COMPACTO */
.jh-brand-row {
  position: relative;
  padding: .05rem 0;
}

.jh-brand-row__name-wrap {
  font-size: .95rem;
  font-weight: 500;
}

.jh-brand-row__name-link {
  text-decoration: none;
  color: #111;
}

.jh-brand-row__name-link:hover {
  text-decoration: underline;
}

/* TARJETA FLOTANTE */
.jh-brand-card {
  position: absolute;
  left: 220px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  padding: .85rem 1rem .8rem;
  max-width: 330px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  z-index: 9;
}

/* LOGO DENTRO DE LA FICHA */
.jh-brand-card__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: .7rem;
  min-height: 20px; /* hueco mínimo */
}

.jh-brand-card__logo img {
  max-height: 100px;
  width: auto;
}

/* CONTENIDO FICHA */
.jh-brand-card__body {
  text-align: center;
}

.jh-brand-card__title {
  font-size: 1rem;
  margin: 0 0 .2rem;
}

.jh-brand-card__meta {
  margin: 0 0 .5rem;
  font-size: .83rem;
  color: #555;
}

.jh-brand-card__link {
  display: inline-flex;
  justify-content: center;
  padding: .28rem .9rem;
  font-size: .8rem;
  border-radius: 999px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
}

.jh-brand-card__link:hover {
  background: #111;
  color: #fff;
}

/* HOVER: muestra ficha sin separar filas */
.jh-brand-row:hover .jh-brand-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(4px);
}

/* MOBILE */
@media (max-width: 768px) {
  .jh-brand-card {
    position: static;
    transform: none;
    opacity: 1;
    margin-top: .25rem;
    max-width: 100%;
  }

  .jh-brand-row:hover .jh-brand-card {
    transform: none;
  }
}

/* ============================================
   HEADER JOKER HOUSE – GUAPADINAS BÁSICAS
   ============================================ */

/* Barra negra de categorías */
.jh-main-nav {
  background: #000;
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* Items del menú principal */
.jh-main-nav .nav > li > a {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .88rem;
  padding: .9rem 2.4rem;
  position: relative;
  overflow: hidden;
}

/* Subrayado animado en hover/activo */
.jh-main-nav .nav > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .4rem;
  width: 0;
  height: 2px;
  background: #f6c34f; /* dorado Joker */
  transition: all .18s ease-out;
  transform: translateX(-50%);
}

.jh-main-nav .nav > li > a:hover::after,
.jh-main-nav .nav > li.active > a::after {
  width: 60%;
}

/* Header central: logo + search + user/cart */
.jh-header-main {
  padding: 1.4rem 3rem 1.1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo con micro-animación */
.jh-header-logo img {
  max-height: 70px;
  transition: transform .15s ease-out;
}

.jh-header-logo:hover img {
  transform: translateY(-1px) scale(1.02);
}

/* Bloque de acciones (buscar, usuario, carrito) */
.jh-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Iconos redondos con hover suave */
.jh-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .15s ease-out, transform .12s ease-out;
}

.jh-header-icon:hover {
  background: rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* Badge del carrito */
.jh-header-icon--cart::after {
  content: attr(data-count);
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ff3b3b;
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Idiomas / moneda como pills */
.jh-lang-currency {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
}

.jh-lang-pill {
  padding: .15rem .55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .15s ease-out;
}

.jh-lang-pill--active,
.jh-lang-pill:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

/* Barra superior promo */
.jh-topbar {
  background: #000;
  color: #fff;
  padding: .25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  letter-spacing: .04em;
}

.jh-topbar strong {
  font-weight: 600;
}

.jh-topbar a {
  color: #f6c34f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Header sticky con versión reducida en scroll */
.jh-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

body.jh-header-scrolled .jh-header-main {
  padding: .6rem 2rem .4rem;
}

body.jh-header-scrolled .jh-header-logo img {
  max-height: 48px;
}

/* ===============================================================
   THE JOKER HOUSE — CHECKOUT NUEVO + PREMIUM
   =============================================================== */

/* Fondo general checkout: blanco limpio */
body#checkout {
  background: #ffffff;
}

/* Contenedor principal */
body#checkout #wrapper {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 15px 60px;
}

/* Caja del contenido */
body#checkout .checkout {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding-top: 20px;
}

/* Layout dos columnas en escritorio */
@media (min-width: 992px) {
  body#checkout .checkout .row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
    column-gap: 32px;
    align-items: flex-start;
  }
}

/* -----------------------------
   PASOS IZQUIERDA (tarjetas)
   ----------------------------- */

body#checkout .checkout-step {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e8e8e8;
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

/* Hover premium */
body#checkout .checkout-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* Paso actual aún más marcado */
body#checkout .checkout-step.-current {
  border-color: #111;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

/* Paso completado, más visual (verde suave) */
body#checkout .checkout-step.-complete {
  border-color: #d1f5e0;
  background: #f7fff9;
}

body#checkout .checkout-step.-complete .step-number {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
}

/* títulos de paso — MÁS GORDOS Y SIN LÍNEA DORADA */
body#checkout .checkout-step .step-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

/* Quitar la línea amarilla que había debajo */
body#checkout .checkout-step .step-title::after {
  content: none !important;
}

/* Número del paso */
body#checkout .checkout-step .step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #000;
  color: #000;
  background: #fff;
}

/* Paso actual */
body#checkout .checkout-step.-current .step-number {
  background: #000;
  color: #fff;
}

/* El contenido del paso sin bordes ni cajas internas raras */
body#checkout .checkout-step .content {
  margin-top: 4px;
  padding: 6px 0 0;
  background: transparent !important;
  border: none !important;
}

/* Limpiar fieldsets/cards internos que metan bordes o fondos */
body#checkout .checkout-step fieldset,
body#checkout .checkout-step .card,
body#checkout .checkout-step .card-block,
body#checkout .checkout-step .card-body,
body#checkout .checkout-step .form-fields {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* -----------------------------
   FORMULARIOS
   ----------------------------- */

body#checkout .form-group {
  margin-bottom: 14px;
}

body#checkout .form-control {
  border-radius: 12px;
  border: 1px solid #d6d6d6;
  padding: 8px 10px;
  font-size: 14px;
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body#checkout .form-control:focus {
  background: #ffffff;
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
  outline: none;
}

body#checkout label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

/* Radios / checks en negro */
body#checkout input[type="radio"],
body#checkout input[type="checkbox"] {
  accent-color: #000;
}

/* -----------------------------
   MÉTODOS DE PAGO
   ----------------------------- */

body#checkout .payment-option {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #d8d8d8;
  padding: 10px 14px;
  margin-bottom: 8px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  position: relative;
}

body#checkout .payment-option label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

body#checkout .payment-option:hover {
  background: #fdfdfd;
  border-color: #aaa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Estado SELECCIONADO en métodos de pago (usa :has, degrada con gracia) */
body#checkout .payment-option:has(input[type="radio"]:checked) {
  border-color: #000;
  background: #fdfdfd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

body#checkout .payment-option:has(input[type="radio"]:checked)::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
}

/* -----------------------------
   BOTONES
   ----------------------------- */

body#checkout .btn,
body#checkout button {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* BOTÓN PREMIUM "Realizar pedido" */
body#checkout .btn-primary,
body#checkout button[type="submit"],
body#checkout .payment-confirmation button {
  background: #000;
  padding: 14px 28px !important;
  font-size: 16px;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

body#checkout .btn-primary:hover,
body#checkout .payment-confirmation button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  background: #111;
}

/* Flecha → en el botón de confirmar */
body#checkout .payment-confirmation button::after {
  content: "➜";
  margin-left: 8px;
  font-size: 18px;
}

/* -----------------------------
   RESUMEN DEL CARRITO (derecha)
   ----------------------------- */

/* Tarjeta RESUMEN en gris clarito elegante */
body#checkout .cart-grid-right .card,
body#checkout .cart-grid-right .cart-summary,
body#checkout .cart-summary,
body#checkout #cart-summary,
body#checkout .js-cart-summary.card {
  background: #f7f7f9 !important;
  color: #111111 !important;
  border-radius: 22px !important;
  border: 1px solid #e2e2e8 !important;
  padding: 22px 22px 18px !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.10);
}

/* Texto interno legible, sin opacidades raras */
body#checkout .cart-summary,
body#checkout .cart-summary * {
  color: #111111 !important;
  opacity: 1 !important;
}

/* Títulos y cabeceras */
body#checkout .cart-summary .card-header,
body#checkout .cart-summary .summary-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none !important;
  background: transparent !important;
}

/* Líneas subtotal / transporte / etc */
body#checkout .cart-summary-line {
  font-size: 14px;
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Etiquetas algo más suaves */
body#checkout .cart-summary-line .label {
  color: #666666 !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
}

/* Valores */
body#checkout .cart-summary-line .value {
  font-weight: 600;
}

/* Total destacado con tipografía un poco más pequeña (para que quepa) */
body#checkout .cart-summary-line.cart-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-weight: 800;
}

/* AQUÍ BAJA EL TAMAÑO DEL TEXTO DEL TOTAL (LO QUE QUERÍAS) */
body#checkout .cart-summary-line.cart-total .label {
  font-size: 12px !important;
  color: #222 !important;
}

body#checkout .cart-summary-line.cart-total .value {
  font-size: 20px !important; /* antes 22px */
  font-weight: 800;
  color: #000000 !important;
}

/* Texto "¿Tiene un código promocional?" */
body#checkout .cart-summary p {
  font-size: 12px;
  margin-top: 12px;
  color: #555555 !important;
}

/* Mensaje de confianza debajo del total */
body#checkout .cart-summary::after {
  content: "Pago 100% seguro · Envíos rápidos desde España · Cambios sencillos";
  display: block;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 11px;
  line-height: 1.6;
  color: #777777;
}

/* -----------------------------
   OCULTAR BLOQUE DE POLÍTICAS EXTRA
   ----------------------------- */

body#checkout #block-reassurance,
body#checkout .block-reassurance,
body#checkout .blockreassurance,
body#checkout .blockreassurance_product,
body#checkout .reassurance-wrapper,
body#checkout [class*="reassurance"],
body#checkout [id*="reassurance"] {
  display: none !important;
}

/* ===============================================================
   RESPONSIVE CHECKOUT
   =============================================================== */

@media (max-width: 768px) {
  /* Más espacio debajo del header sticky en móvil
     para que el primer paso NO se meta por debajo */
  body#checkout #wrapper {
    margin: 80px auto 24px;
    padding: 0 15px 24px;
  }

  body#checkout .checkout {
    padding: 16px 0 24px;
  }

  body#checkout .checkout-step {
    padding: 16px 16px;
  }

  body#checkout .cart-grid-right .card,
  body#checkout .cart-grid-right .cart-summary,
  body#checkout .cart-summary {
    margin-top: 16px;
  }

  /* Tipos un pelín más grandes en móvil para más confort */
  body#checkout .checkout-step .step-title {
    font-size: 18px;
  }

  body#checkout .cart-summary-line {
    font-size: 15px;
  }
}

/* ===============================================================
   EXTRA: RESUMEN STICKY EN ESCRITORIO
   =============================================================== */

@media (min-width: 992px) {
  body#checkout .cart-grid-right {
    position: sticky;
    top: 120px;
  }
}

/* ===============================================================
   CLAUDE DEMO KIT — UX KIT DE ALTA CONVERSIÓN
   Apartado para que sea fácil ver/quitar. Pareja con assets/js/claude-demo.js
   =============================================================== */

/* ----- 1) Live viewer counter en ficha de producto ----- */
.jh-live-viewers {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .9rem;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #fff8e7 0%, #fff3d0 100%);
  border: 1px solid #f6c34f;
  border-radius: 999px;
  font-size: .85rem;
  color: #5a4500;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(246, 195, 79, 0.18);
}
.jh-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.55);
  animation: jhPulseDot 1.8s ease-out infinite;
}
@keyframes jhPulseDot {
  0%   { box-shadow: 0 0 0 0   rgba(255,59,59,.55); transform: scale(1);   }
  60%  { box-shadow: 0 0 0 14px rgba(255,59,59,0);  transform: scale(1.05);}
  100% { box-shadow: 0 0 0 0   rgba(255,59,59,0);   transform: scale(1);   }
}
#jh-live-num {
  font-weight: 800;
  color: #c0392b;
  display: inline-block;
  transition: transform .2s ease-out, color .2s ease-out;
}
#jh-live-num.jh-bump {
  transform: scale(1.25);
  color: #000;
}

/* ----- 2) Sale notification toast (social proof) ----- */
.jh-sale-toast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.06);
  padding: 14px 14px 12px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  line-height: 1.35;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.18,.89,.32,1.28), opacity .25s;
}
.jh-sale-toast.jh-show { transform: translateY(0); opacity: 1; }
.jh-sale-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #111;
  color: #f6c34f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.jh-sale-body { flex: 1; min-width: 0; }
.jh-sale-body strong { color: #000; }
.jh-sale-item {
  font-weight: 600;
  color: #c0392b;
  display: inline-block;
  margin-top: 2px;
}
.jh-sale-time {
  margin-top: 4px;
  font-size: .7rem;
  color: #888;
  letter-spacing: .02em;
}
.jh-sale-close {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #aaa;
  padding: 2px 4px;
  flex-shrink: 0;
}
.jh-sale-close:hover { color: #000; }

@media (max-width: 768px) {
  .jh-sale-toast { left: 12px; right: 12px; width: auto; bottom: 12px; }
}

/* ----- 3) WhatsApp FAB ----- */
.jh-wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9997;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 16px;
  background: #25D366;
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35), 0 0 0 0 rgba(37, 211, 102, .35);
  animation: jhWaPulse 2.4s ease-out infinite;
  transition: transform .15s ease;
}
.jh-wa-fab:hover {
  transform: translateY(-2px) scale(1.02);
  color: #fff !important;
}
.jh-wa-label { white-space: nowrap; }
@keyframes jhWaPulse {
  0%   { box-shadow: 0 10px 28px rgba(37,211,102,.35), 0 0 0 0    rgba(37,211,102,.55); }
  60%  { box-shadow: 0 10px 28px rgba(37,211,102,.35), 0 0 0 18px rgba(37,211,102,0);   }
  100% { box-shadow: 0 10px 28px rgba(37,211,102,.35), 0 0 0 0    rgba(37,211,102,0);   }
}
@media (max-width: 768px) {
  .jh-wa-fab { padding: 0; width: 56px; justify-content: center; right: 14px; bottom: 14px; }
  .jh-wa-label { display: none; }
}

/* ----- 4) Easter egg "modo Joker" ----- */
.jh-confetti {
  position: fixed;
  top: -40px;
  font-size: 28px;
  pointer-events: none;
  z-index: 99999;
  animation: jhConfettiFall linear forwards;
}
@keyframes jhConfettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: .3; }
}
.jh-joker-banner {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #5b1aaf, #1a8a45);
  color: #fff;
  padding: 28px 44px;
  border-radius: 22px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  z-index: 99999;
  animation: jhBannerPop .55s cubic-bezier(.34,1.56,.64,1) forwards;
  letter-spacing: .04em;
}
.jh-joker-banner strong {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: .12em;
  display: block;
  margin-bottom: 4px;
}
@keyframes jhBannerPop {
  0%   { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1);  opacity: 1; }
}
body.jh-joker-mode { animation: jhWiggle .35s ease-in-out 2; }
@keyframes jhWiggle {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-4px); }
  75%     { transform: translateX(4px); }
}

/* ===============================================================
   SELECTOR DE IDIOMAS — MINIMALISTA CON BANDERITAS
   =============================================================== */

.jh-lang {
  position: relative;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  color: #111;
  -webkit-user-select: none;
  user-select: none;
}

/* Boton actual (cerrado) */
.jh-lang__current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.jh-lang__current:hover,
.jh-lang--open .jh-lang__current {
  background: #fff;
  border-color: #eaeaea;
}
.jh-lang__current:focus { outline: none; }
.jh-lang__current:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.jh-lang__flag {
  font-size: 17px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}
.jh-lang__flag-img {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  flex-shrink: 0;
}
.jh-lang__code {
  font-weight: 600;
  letter-spacing: .05em;
  font-size: 12px;
  text-transform: uppercase;
}
.jh-lang__chevron {
  transition: transform .2s ease;
  opacity: .55;
}
.jh-lang--open .jh-lang__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown */
.jh-lang__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 1000;
}
.jh-lang--open .jh-lang__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.jh-lang__item {
  margin: 0;
}
.jh-lang__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #444;
  text-decoration: none;
  font-size: 13.5px;
  transition: background .14s ease, color .14s ease, padding-left .14s ease;
}
.jh-lang__link:hover,
.jh-lang__link:focus-visible {
  background: #f5f5f5;
  color: #111;
  text-decoration: none;
  padding-left: 14px;
}
.jh-lang__item--active .jh-lang__link {
  color: #111;
  font-weight: 600;
  background: #fafafa;
}
.jh-lang__name {
  flex: 1;
  white-space: nowrap;
}
.jh-lang__check {
  font-size: 12px;
  color: #2ecc71;
  font-weight: 700;
}

/* Quitar la version mobile select del flow visual en escritorio */
.jh-lang__mobile-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* MOVIL: ocultamos dropdown custom y usamos el select nativo encima del boton */
@media (max-width: 991px) {
  .jh-lang__dropdown {
    display: none;
  }
  .jh-lang__mobile-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    clip: auto;
    overflow: visible;
    cursor: pointer;
    z-index: 2;
  }
  .jh-lang__current {
    position: relative;
  }
}

/* ===============================================================
   JOKER HEADER 2.0 - HEADER MODERNO
   =============================================================== */

:root {
  --jh-h-bg: #ffffff;
  --jh-h-fg: #111111;
  --jh-h-muted: #6b6b6b;
  --jh-h-line: #ececec;
  --jh-h-accent: #f6c34f;
  --jh-h-danger: #ff3b3b;
  --jh-h-radius: 12px;
  --jh-topbar-h: 32px;
  --jh-mainbar-h: 100px;
  --jh-nav-h: 48px;
  --jh-shadow: 0 2px 14px rgba(0,0,0,.06);
  --jh-shadow-up: 0 10px 30px rgba(0,0,0,.1);
}

/* Oculta cualquier header generado por stsitebuilder o el clasico */
#stsb-header { display: none !important; }
.jh-orig-header-hidden { display: none !important; }

body { padding-top: calc(var(--jh-topbar-h) + var(--jh-mainbar-h) + var(--jh-nav-h)); }

/* Contenedor general fixed top */
.jh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--jh-h-bg);
  color: var(--jh-h-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-shadow: var(--jh-shadow);
  transition: transform .3s ease;
}

.jh-header * { box-sizing: border-box; }

/* Quitar el outline negro feo al hacer clic (lo mantenemos solo con teclado para a11y) */
.jh-header a:focus,
.jh-header button:focus,
.jh-drawer a:focus,
.jh-drawer button:focus,
.jh-cart a:focus,
.jh-cart button:focus,
.jh-search-mobile a:focus,
.jh-search-mobile button:focus,
.jh-actions__panel a:focus,
.jh-actions__panel button:focus,
.jh-lang a:focus,
.jh-lang button:focus { outline: none !important; }

/* Mantener un outline accesible cuando llegan por teclado (Tab) */
.jh-header a:focus-visible,
.jh-header button:focus-visible,
.jh-drawer a:focus-visible,
.jh-drawer button:focus-visible,
.jh-cart a:focus-visible,
.jh-cart button:focus-visible,
.jh-actions__panel a:focus-visible,
.jh-actions__panel button:focus-visible,
.jh-lang a:focus-visible,
.jh-lang button:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 2px !important;
  border-radius: 6px !important;
}

/* ========== TOP BAR ========== */
.jh-topbar {
  background: #0c0c0c;
  color: #d8d8d8;
  height: var(--jh-topbar-h);
  font-size: 12px;
  letter-spacing: .03em;
  overflow: hidden;
  transition: height .3s ease, opacity .25s ease;
}
.jh-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.jh-topbar__inner::-webkit-scrollbar { display: none; }
.jh-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d8d8d8;
}
.jh-topbar__item strong { color: var(--jh-h-accent); font-weight: 600; }
.jh-topbar__dot { color: #555; }

.jh-header--hide-top .jh-topbar { height: 0; opacity: 0; }

/* ========== MAIN BAR ========== */
.jh-mainbar {
  height: var(--jh-mainbar-h);
  border-bottom: 1px solid var(--jh-h-line);
  transition: height .25s ease;
}
.jh-mainbar__inner {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 560px) 1fr;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}
.jh-mainbar__inner > .jh-logo { justify-self: start; }
.jh-mainbar__inner > .jh-search { justify-self: stretch; }
.jh-mainbar__inner > .jh-actions { justify-self: end; }

.jh-mainbar__burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--jh-h-fg);
  border-radius: 8px;
}
.jh-mainbar__burger:hover { background: #f4f4f4; }

/* LOGO */
.jh-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform .15s ease;
}
.jh-logo:hover { transform: translateY(-1px); }
.jh-logo__img {
  height: 76px;
  width: auto;
  display: block;
  transition: height .25s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: bicubic;
}
.jh-header--compact .jh-logo__img { height: 54px; }

/* SEARCH */
.jh-search {
  position: relative;
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  background: #f6f6f6;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 6px 0 16px;
  height: 44px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.jh-search:focus-within {
  background: #fff;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}
.jh-search__icon {
  color: var(--jh-h-muted);
  display: inline-flex;
  align-items: center;
}
.jh-search__input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  color: var(--jh-h-fg);
  width: 100%;
  min-width: 0;
}
.jh-search__input::placeholder { color: #999; }
.jh-search__submit {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s ease;
}
.jh-search__submit:hover { background: #000; }

/* Search results dropdown */
.jh-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--jh-h-line);
  border-radius: 14px;
  box-shadow: var(--jh-shadow-up);
  padding: 8px;
  max-height: 460px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}
.jh-search__results--visible { display: block; }
.jh-search__section {
  font-size: 11px;
  color: var(--jh-h-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 12px 4px;
  font-weight: 600;
}
.jh-search__hit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--jh-h-fg);
  transition: background .14s ease;
}
.jh-search__hit:hover { background: #f5f5f5; }
.jh-search__hit-img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
  image-rendering: -webkit-optimize-contrast;
}
.jh-search__hit-name {
  font-size: 14.5px;
  line-height: 1.3;
}
.jh-search__hit-price {
  font-size: 13px;
  margin-top: 4px;
  font-weight: 600;
  color: #111;
}
.jh-search__results {
  max-height: 540px;
}
.jh-search__hit-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.jh-search__hit-name {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jh-search__hit-price {
  font-size: 12px;
  color: var(--jh-h-muted);
  margin-top: 2px;
}
.jh-search__all {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--jh-h-line);
  color: #111;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.jh-search__all:hover { background: #fafafa; }
.jh-search__empty,
.jh-search__loading {
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--jh-h-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.jh-spin {
  width: 14px;
  height: 14px;
  border: 2px solid #ddd;
  border-top-color: #111;
  border-radius: 50%;
  animation: jhSpin .7s linear infinite;
  display: inline-block;
}
@keyframes jhSpin { to { transform: rotate(360deg); } }

/* ACTIONS */
.jh-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.jh-actions__group { position: relative; }
.jh-actions__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--jh-h-fg);
  text-decoration: none;
  transition: background .15s ease, transform .12s ease, color .12s ease;
}
.jh-actions__btn svg { transition: transform .15s ease; }
.jh-actions__btn:hover svg { transform: scale(1.06); }
.jh-actions__btn:hover { background: #f4f4f4; transform: translateY(-1px); }
.jh-actions__btn--mobile { display: none; }
.jh-actions__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--jh-h-danger);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.jh-actions__lang {
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--jh-h-line);
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.jh-actions__lang .jh-lang { display: inline-flex; align-items: center; }
.jh-actions__lang .jh-lang__current {
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
}
.jh-actions__lang .jh-lang__flag-img {
  width: 22px !important;
  height: 16px !important;
}

/* USER PANEL */
.jh-actions__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--jh-h-line);
  border-radius: 14px;
  box-shadow: var(--jh-shadow-up);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, visibility .15s, transform .15s ease;
  z-index: 30;
}
.jh-actions__group--open .jh-actions__panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.jh-user-panel__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--jh-h-muted);
  padding: 4px 6px 8px;
  font-weight: 600;
}
.jh-user-panel__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 11px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d8d8d8;
  color: #111;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.jh-user-panel__btn:last-of-type { margin-bottom: 0; }
.jh-user-panel__btn:hover { background: #fafafa; border-color: #aaa; transform: translateY(-1px); }
.jh-user-panel__btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}
.jh-user-panel__btn--primary:hover { background: #000; color: #fff; border-color: #000; }
.jh-user-panel__divider {
  height: 1px;
  background: var(--jh-h-line);
  margin: 8px -4px;
}
.jh-user-panel__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #444;
  text-decoration: none;
  border-radius: 8px;
  line-height: 1;
  transition: background .14s ease, color .14s ease, padding-left .14s ease;
}
.jh-user-panel__link svg {
  flex-shrink: 0;
  color: #888;
  transition: color .14s ease;
}
.jh-user-panel__link:hover {
  background: #f5f5f5;
  color: #111;
  padding-left: 14px;
}
.jh-user-panel__link:hover svg { color: #111; }
.jh-user-panel__link > span { display: inline-block; vertical-align: middle; }

/* Login / Registro inline */
.jh-user-panel__back {
  background: transparent;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  padding: 0 6px;
  margin-right: 4px;
  color: #444;
  border-radius: 6px;
  line-height: 1;
}
.jh-user-panel__back:hover { background: #f4f4f4; color: #111; }

/* Forms unificados — alta especificidad para no chocar con tema base */
.jh-user-panel .jh-form,
.jh-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.jh-user-panel .jh-form__subtitle,
.jh-form__subtitle {
  font-size: 12.5px !important;
  color: var(--jh-h-muted) !important;
  margin: -4px 2px 4px !important;
  line-height: 1.4 !important;
}
.jh-form__row {
  display: flex !important;
  gap: 8px !important;
}
.jh-form__row > .jh-form__field--half { flex: 1 !important; min-width: 0 !important; }

.jh-user-panel .jh-form__field,
.jh-form__field {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
.jh-user-panel .jh-form__icon,
.jh-form__icon {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #888 !important;
  display: inline-flex !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.jh-user-panel .jh-form input[type="text"],
.jh-user-panel .jh-form input[type="email"],
.jh-user-panel .jh-form input[type="password"],
.jh-form input[type="text"],
.jh-form input[type="email"],
.jh-form input[type="password"] {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 40px !important;
  padding: 0 12px 0 36px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  background: #fafafa !important;
  outline: none !important;
  color: #111 !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease !important;
  margin: 0 !important;
}
/* Campos sin icono (nombre/apellido en la fila de registro) */
.jh-form__row .jh-form input[type="text"],
.jh-form__row .jh-form input[type="email"],
.jh-form__row .jh-form input[type="password"],
.jh-form__row > .jh-form__field input[type="text"],
.jh-form__row > .jh-form__field input[type="email"],
.jh-form__row > .jh-form__field input[type="password"] {
  padding-left: 12px !important;
}
.jh-form__field input::placeholder { color: #aaa !important; opacity: 1 !important; }
.jh-form__field input:focus {
  background: #fff !important;
  border-color: #111 !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06) !important;
}
.jh-form__field:focus-within .jh-form__icon { color: #111 !important; }

.jh-form__check {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-size: 11.5px !important;
  color: var(--jh-h-muted) !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  padding: 2px !important;
  margin: 0 !important;
}
.jh-form__check input {
  margin: 2px 0 0 !important;
  accent-color: #111 !important;
  flex-shrink: 0 !important;
  width: auto !important;
  height: auto !important;
}
.jh-form__check a {
  color: #111 !important;
  text-decoration: underline !important;
}

.jh-form__msg {
  font-size: 12.5px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.jh-form__msg:empty { display: none !important; }
.jh-form__msg--err {
  color: #c0392b !important;
  background: #fff4f4 !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #ffd2d2 !important;
}
.jh-form__msg--ok {
  color: #1f8a4c !important;
  background: #f0fff4 !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #c7eed4 !important;
}

.jh-user-panel .jh-form__submit,
.jh-form__submit {
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  letter-spacing: .03em !important;
  margin-top: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-transform: none !important;
  height: auto !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease !important;
}
.jh-form__submit:hover:not(:disabled) {
  background: #000 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
}
.jh-form__submit:disabled { opacity: .7 !important; cursor: wait !important; }

.jh-form__bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  color: var(--jh-h-muted) !important;
  text-align: center !important;
}
.jh-user-panel .jh-form__link,
.jh-form__link {
  background: transparent !important;
  border: 0 !important;
  padding: 4px 6px !important;
  font: inherit !important;
  color: #111 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.4 !important;
}
.jh-form__link:hover { text-decoration: underline !important; color: #000 !important; }
.jh-form__sep { color: #ccc !important; }

.jh-user-panel__view[hidden] { display: none !important; }
.jh-user-panel__view { padding: 0; }
/* Hacer el panel un pelin mas ancho para el formulario */
.jh-user-panel { min-width: 320px; }

/* ===============================================================
   CART DRAWER — el sidebar mas premium
   =============================================================== */

.jh-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.jh-cart-overlay--visible { opacity: 1; visibility: visible; }

.jh-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: #fff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.34, 1.36, .54, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
}
.jh-cart--open { transform: translateX(0); }

.jh-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--jh-h-line);
  flex-shrink: 0;
}
.jh-cart__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  letter-spacing: -.01em;
}
.jh-cart__count {
  font-size: 12px;
  color: var(--jh-h-muted);
  margin-top: 2px;
}
.jh-cart__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background .15s ease;
}
.jh-cart__close:hover { background: #f4f4f4; }

.jh-cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* Empty state */
.jh-cart__empty {
  text-align: center;
  padding: 60px 24px 40px;
}
.jh-cart__empty-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}
.jh-cart__empty-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
  color: #111;
}
.jh-cart__empty-sub {
  font-size: 14px;
  color: var(--jh-h-muted);
  margin-bottom: 24px;
}
.jh-cart__empty-cta {
  display: inline-block;
  background: #111;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease;
}
.jh-cart__empty-cta:hover { background: #000; transform: translateY(-1px); }

/* Lista productos */
.jh-cart__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jh-cart__item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 24px;
  border-bottom: 1px solid #f4f4f4;
  transition: background .14s ease, opacity .2s ease;
}
.jh-cart__item:hover { background: #fafafa; }
.jh-cart__item-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  display: block;
  flex-shrink: 0;
}
.jh-cart__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jh-cart__item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.jh-cart__item-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.jh-cart__item-name:hover { color: #000; text-decoration: underline; }
.jh-cart__item-attrs {
  font-size: 12px;
  color: var(--jh-h-muted);
  margin-bottom: 8px;
}
.jh-cart__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.jh-cart__qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f4f4f4;
  border-radius: 999px;
  padding: 2px;
}
.jh-cart__qty-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: background .14s ease, color .14s ease;
}
.jh-cart__qty-btn:hover { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.jh-cart__qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 0 4px;
}
.jh-cart__item-price {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}
.jh-cart__remove {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  transition: background .14s ease, color .14s ease;
}
.jh-cart__remove:hover { background: #fff4f4; color: #c0392b; }

/* Footer */
.jh-cart__foot {
  padding: 18px 24px 20px;
  border-top: 1px solid var(--jh-h-line);
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 -8px 20px rgba(0,0,0,.04);
}
.jh-cart__line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  color: #333;
}
.jh-cart__line--muted { color: var(--jh-h-muted); font-size: 12.5px; }
.jh-cart__shipping-note { font-style: italic; }
.jh-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--jh-h-line);
}
.jh-cart__total span:first-child {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #444;
  font-weight: 600;
}
.jh-cart__total-val {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  letter-spacing: -.02em;
}
.jh-cart__checkout {
  display: block;
  width: 100%;
  margin-top: 16px;
  text-align: center;
  padding: 16px;
  background: #111;
  color: #fff !important;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}
.jh-cart__checkout:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.jh-cart__view-full {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--jh-h-muted);
  text-decoration: none;
}
.jh-cart__view-full:hover { color: #111; text-decoration: underline; }
.jh-cart__trust {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #ececec;
}
.jh-cart__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--jh-h-muted);
  letter-spacing: .02em;
}

@media (max-width: 540px) {
  .jh-cart { max-width: 100%; }
  .jh-cart__item { grid-template-columns: 64px 1fr auto; padding: 14px 16px; }
  .jh-cart__item-img { width: 64px; height: 64px; }
  .jh-cart__head { padding: 16px 18px; }
  .jh-cart__foot { padding: 14px 18px 16px; }
}

/* ========== NAV ========== */
.jh-nav {
  height: var(--jh-nav-h);
  border-bottom: 1px solid var(--jh-h-line);
  background: #fff;
  transition: height .25s ease, opacity .25s ease;
}
.jh-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  max-width: 1400px;
}
.jh-nav__item {
  position: relative;
  display: flex;
  align-items: stretch;
}
.jh-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  font-family: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--jh-h-fg);
  text-decoration: none;
  position: relative;
  transition: color .15s ease;
}
.jh-nav__link::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  background: var(--jh-h-accent);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.jh-nav__link:hover { color: #000; }
.jh-nav__link:hover::after { transform: scaleX(1); }

/* Compact (scroll) */
.jh-header--compact .jh-mainbar { height: 60px; }
.jh-header--compact .jh-nav { height: 0; overflow: hidden; opacity: 0; border: 0; }

/* ========== MOBILE ========== */
@media (max-width: 991px) {
  :root { --jh-topbar-h: 28px; --jh-mainbar-h: 68px; --jh-nav-h: 0px; }
  .jh-mainbar__burger { display: inline-flex; }
  .jh-mainbar__inner {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 8px;
    padding: 0 12px;
  }
  .jh-mainbar__inner > .jh-logo { justify-self: center; }
  .jh-search { display: none; }
  /* En movil ocultamos user/wishlist/lang del header (viven en el drawer) */
  .jh-actions > .jh-actions__group,
  .jh-actions > .jh-actions__btn[href*="wishlist"],
  .jh-actions > .jh-actions__lang { display: none; }
  .jh-actions__btn--mobile { display: inline-flex; }
  .jh-nav { display: none; }
  .jh-actions__btn { width: 42px; height: 42px; }
  .jh-logo__img { height: 50px; }
  .jh-header--compact .jh-logo__img { height: 40px; }
  .jh-topbar { font-size: 11px; }
  .jh-topbar__inner { gap: 10px; padding: 0 12px; }
}

/* ========== MOBILE DRAWER — PREMIUM ========== */
.jh-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 92%;
  max-width: 420px;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.34, 1.36, .54, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 16px 0 50px rgba(0,0,0,.15);
  -webkit-overflow-scrolling: touch;
}
.jh-drawer--open { transform: translateX(0); }

/* Head */
.jh-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--jh-h-line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}
.jh-drawer__brand {
  display: inline-flex;
  align-items: center;
}
.jh-drawer__logo {
  height: 44px;
  width: auto;
  display: block;
}
.jh-drawer__close {
  background: transparent; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: #333;
  transition: background .14s ease;
}
.jh-drawer__close:hover { background: #f4f4f4; }

/* Buscador inline */
.jh-drawer__search {
  position: relative;
  margin: 16px 18px 0;
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 0 12px;
  height: 44px;
  transition: background .14s ease, box-shadow .14s ease;
}
.jh-drawer__search:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px #111;
}
.jh-drawer__search-icon {
  color: #888;
  display: inline-flex;
  margin-right: 10px;
}
.jh-drawer__search-input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14.5px;
  font-family: inherit;
  color: #111;
}

/* Tarjeta cuenta */
.jh-drawer__account {
  margin: 16px 18px 0;
  background: linear-gradient(135deg, #fafafa 0%, #f4f4f4 100%);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #ececec;
}
.jh-drawer__account-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
}
.jh-drawer__account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jh-drawer__account-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.jh-drawer__account-body span {
  display: block;
  font-size: 12px;
  color: var(--jh-h-muted);
  margin-top: 2px;
  line-height: 1.3;
}
.jh-drawer__account-btn {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background .14s ease, transform .12s ease;
}
.jh-drawer__account-btn:hover { background: #000; transform: translateY(-1px); }

.jh-drawer__account-login-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.jh-drawer__account-back {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
}
.jh-drawer__account-back:hover { background: #eee; color: #111; }
.jh-drawer__account-login-head strong {
  font-size: 16px;
  font-weight: 700;
}
.jh-drawer__account-login .jh-form {
  background: transparent;
}
[data-jh-drawer-account-view][hidden] { display: none !important; }

/* Categorias */
.jh-drawer__nav {
  margin: 20px 0 8px;
  padding: 0 18px;
}
.jh-drawer__h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--jh-h-muted);
  margin: 0 0 8px;
  padding-left: 4px;
}
.jh-drawer__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.jh-drawer__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 12px;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background .14s ease, transform .14s ease;
}
.jh-drawer__cat:hover, .jh-drawer__cat:active {
  background: #f5f5f5;
  transform: translateX(2px);
}
.jh-drawer__cat-chev {
  color: #999;
  display: inline-flex;
  transform: rotate(-90deg);
}

/* Quick links iconitos */
.jh-drawer__quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--jh-h-line);
  border-bottom: 1px solid var(--jh-h-line);
}
.jh-drawer__quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 12px;
  text-decoration: none;
  color: #444;
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  transition: background .14s ease;
}
.jh-drawer__quick-item:hover { background: #fafafa; color: #111; }

/* Selector idioma compacto (toggle) */
.jh-drawer__lang-section {
  margin: 16px 18px 0;
}
.jh-drawer__lang-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  font: inherit;
  font-size: 13.5px;
  color: #111;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.jh-drawer__lang-toggle:hover { background: #f4f4f4; border-color: #ddd; }
.jh-drawer__lang-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.jh-drawer__lang-cur-name {
  font-size: 13.5px;
}
.jh-drawer__lang-chev {
  color: #888;
  display: inline-flex;
  transition: transform .2s ease;
}
.jh-drawer__lang-toggle--open .jh-drawer__lang-chev { transform: rotate(180deg); color: #111; }
.jh-drawer__lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  flex-shrink: 0;
  display: block;
}

/* Lista desplegada */
.jh-drawer__lang-list {
  margin-top: 4px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.jh-drawer__lang-list[hidden] { display: none; }
.jh-drawer__lang-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  text-decoration: none;
  color: #333;
  font-size: 13.5px;
  border-bottom: 1px solid #f4f4f4;
  transition: background .14s ease, padding-left .14s ease;
}
.jh-drawer__lang-row:last-child { border-bottom: 0; }
.jh-drawer__lang-row:hover {
  background: #fafafa;
  color: #111;
  padding-left: 18px;
}

/* Footer links */
.jh-drawer__foot-links {
  margin: 20px 18px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--jh-h-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jh-drawer__foot-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: background .14s ease;
}
.jh-drawer__foot-links a:hover { background: #fafafa; color: #111; }

.jh-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.jh-overlay--visible { opacity: 1; visibility: visible; }

body.jh-no-scroll { overflow: hidden; }

/* MOBILE SEARCH FULLSCREEN */
.jh-search-mobile {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
  display: flex;
  flex-direction: column;
}
.jh-search-mobile--open { opacity: 1; visibility: visible; }
.jh-search-mobile__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--jh-h-line);
}
.jh-search-mobile__form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f6f6;
  border-radius: 999px;
  padding: 0 14px;
  height: 44px;
}
.jh-search-mobile__icon {
  color: var(--jh-h-muted);
  display: inline-flex;
}
.jh-search-mobile__input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
}
.jh-search-mobile__close {
  background: transparent; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
}
.jh-search-mobile__close:hover { background: #f4f4f4; }
.jh-search-mobile__results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px 24px;
}

/* ===== Toast notification cuando se anyade al carrito ===== */
.jh-cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}
.jh-cart-toast--show {
  opacity: 1;
  transform: translateY(0);
}
.jh-cart-toast svg {
  flex-shrink: 0;
  stroke: #f6c34f;
}
.jh-cart-toast--error {
  background: #7f1d1d;
  border-left: 3px solid #fca5a5;
}
.jh-cart-toast--error svg {
  stroke: #fca5a5;
}
@media (max-width: 576px) {
  .jh-cart-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: center;
  }
}

/* ===== Aviso "sin stock" sutil en rojo bajo el boton add-to-cart ===== */
.jh-no-stock-msg {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  animation: jhNoStockFade .25s ease;
}
@keyframes jhNoStockFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PREEMPTIVE: ocultar header viejo y sidecart de stsitebuilder ===== */
/* Esto se aplica antes de que JS se ejecute, evitando el flicker donde el  */
/* usuario veia los iconos viejos durante 100-500ms y podia pulsarlos.      */
/* Nuestro v=22 tiene su propio toast feedback, asi que no necesitamos      */
/* el sidecart de stsb que antes hacia de "producto anyadido".              */
#stsb-header,
[data-elementor-type="sidecart"],
.stsb_side_panel_overlay {
  display: none !important;
}

/* Eliminar outline negro al hacer click en botones nuestros.
   Solo lo mostramos al navegar con teclado (Tab), via :focus-visible,
   para mantener accesibilidad sin que se vea el recuadro al usar mouse/touch. */
.jh-cart__qty-btn,
.jh-cart__remove,
.jh-cart__close,
.jh-cart__checkout,
.jh-cart__view-full,
.jh-cart__empty-cta,
.jh-actions__btn,
.jh-header button,
.jh-cart button,
.jh-user-panel button,
[data-jh-cart-toggle],
[data-jh-cart-close],
[data-jh-cart-qty],
[data-jh-cart-remove] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.jh-cart__qty-btn:focus-visible,
.jh-cart__remove:focus-visible,
.jh-cart__close:focus-visible,
.jh-cart__checkout:focus-visible,
.jh-actions__btn:focus-visible,
.jh-header button:focus-visible,
.jh-cart button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Boton + del drawer deshabilitado por stock max */
.jh-cart__qty-btn--disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: auto; /* permitimos click para mostrar el toast informativo */
}
.jh-cart__qty-btn--disabled:hover {
  background: transparent;
}

/* Mensaje "sin stock" sutil DENTRO de un item del cart drawer */
.jh-cart__item-error {
  display: block;
  margin-top: 6px;
  padding: 6px 10px;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  color: #b91c1c;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  animation: jhNoStockFade .25s ease;
}
