/* ==============================================================================
   AVRA EAS Shop — Design System (Clean White / Light Tech Executive)
   Enfocado 100% al Producto, Alta Legibilidad, Grilla Móvil de 2 Columnas y Buscador Sencillo
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Superficies Limpias (Luz y Claridad) */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-surface-hover: #e2e8f0;

  /* Bordes Suaves de Alta Definición */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-active: #0284c7;

  /* Tipografía y Contrastes */
  --text-primary: #0f172a;    /* Slate 900: Títulos y precios principales */
  --text-secondary: #334155;  /* Slate 700: Subtítulos y descripciones */
  --text-muted: #64748b;      /* Slate 500: Metadatos y SKUs */
  --text-white: #ffffff;

  /* Colores Corporativos de AVRA EAS */
  --color-brand-navy: #0f172a;
  --color-brand-cyan: #0284c7;
  --color-cyan-glow: #0ea5e9;
  --color-whatsapp: #16a34a;
  --color-whatsapp-light: #dcfce7;
  --color-whatsapp-border: #bbf7d0;

  /* Fuentes */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Sombras Sutiles */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Tokens de Movimiento & Físicas (Emil Kowalski / Apple HIG) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 140ms;
  --duration-normal: 240ms;
  --duration-slow: 350ms;
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 160ms ease;
}

.shell {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

/* -----------------------------------------------------------------------------
   BARRA SUPERIOR DE PREVIEW
   ----------------------------------------------------------------------------- */
.top-preview-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(2, 132, 199, 0.3);
}

.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

/* -----------------------------------------------------------------------------
   CABECERA & BUSCADOR SENCILLO (Fondo Blanco Limpio)
   ----------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo AVRA EAS */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo img {
  height: 38px;
  width: auto;
}

.logo-text-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.logo-avra {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-brand-navy);
}

.logo-eas {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  background: var(--color-brand-cyan);
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 4px;
}

/* Buscador Sencillo Central */
.header-search-wrap {
  flex: 1;
  max-width: 540px;
}

.header-search {
  position: relative;
  width: 100%;
}

.header-search input {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 9px 38px 9px 40px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  transition: all 180ms ease;
}

.header-search input:focus {
  background: #ffffff;
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navegación & Carrito */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  gap: 12px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--color-brand-cyan);
}

.nav-link.corporate-link {
  color: var(--color-brand-cyan);
  font-weight: 700;
}

/* Botón de Carrito */
.cart-trigger {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 160ms ease;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.cart-trigger:hover {
  border-color: var(--color-brand-cyan);
  background: var(--bg-surface-subtle);
}

.cart-count {
  background: var(--color-brand-cyan);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  line-height: 1;
}

/* Buscador dedicado para Móvil */
.mobile-search-row {
  display: none;
  padding-top: 10px;
}

/* -----------------------------------------------------------------------------
   MENÚ FLOTANTE PREDICTIVO / AUTOCOMPLETE (DESKTOP Y MÓVIL)
   ----------------------------------------------------------------------------- */
.search-autocomplete-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  z-index: 1000;
  padding: 14px;
  animation: searchDropFade 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes searchDropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.autocomplete-trending {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.trending-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.trending-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-chip {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 140ms ease;
}

.quick-chip:hover {
  background: #e2e8f0;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.autocomplete-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 120ms ease;
}

.search-result-item:hover {
  background: #f8fafc;
}

.search-result-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  flex-shrink: 0;
}

.search-result-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.search-result-details {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.search-result-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.search-result-price {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--color-brand-cyan);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.search-no-match {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 10px;
  text-align: center;
}

/* -----------------------------------------------------------------------------
   EXECUTIVE HERO STRIP (AUTORIDAD CORPORATIVA B2B)
   ----------------------------------------------------------------------------- */
.executive-hero-strip {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0 24px;
}

.hero-strip-inner {
  display: flex;
  flex-direction: column;
  max-width: 980px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 12px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.hero-headline {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-subheadline {
  font-size: clamp(13px, 1.4vw, 14.5px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 16px;
}

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.trust-chip svg {
  color: var(--color-brand-cyan);
}

/* -----------------------------------------------------------------------------
   NAVEGACIÓN POR CATEGORÍAS & SUBCATEGORÍAS JERÁRQUICAS
   ----------------------------------------------------------------------------- */
.catalog-filter-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0 16px;
}

.category-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.catalog-section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.catalog-live-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-brand-cyan);
}

/* Píldoras de Categorías Principales (Nivel 1) */
.category-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-pills-row::-webkit-scrollbar {
  display: none;
}

.pill-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 160ms ease;
  flex-shrink: 0;
}

.pill-filter:hover {
  background: #e2e8f0;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.pill-filter.active {
  background: var(--color-brand-navy);
  color: #ffffff;
  border-color: var(--color-brand-navy);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.pill-icon {
  font-size: 14px;
}

/* Barra de Subcategorías Dinámicas (Nivel 2) */
.subcategory-pills-wrapper {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.subcat-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.subcat-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.subcat-filter {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
  white-space: nowrap;
}

.subcat-filter:hover {
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-cyan);
}

.subcat-filter.active {
  background: var(--color-brand-cyan);
  color: #ffffff;
  border-color: var(--color-brand-cyan);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* -----------------------------------------------------------------------------
   CATÁLOGO DE PRODUCTOS (GRILLA BLANCA DE ALTO CONTRASTE)
   ----------------------------------------------------------------------------- */
.catalog-main {
  padding-top: 24px;
  padding-bottom: 50px;
}

/* Grilla Responsiva: 2 Columnas en Móvil, 3 en Tablet, 4 en Desktop */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Tarjeta Limpia de Producto */
.avra-clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms ease;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .avra-clean-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
  }
}

.avra-clean-card:active {
  transform: scale(0.985);
  transition: transform 120ms var(--ease-out);
}

/* Cascada Fluida al Filtrar o Buscar (Stagger Animation de Emil Kowalski) */
@keyframes card-stagger-fade {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-entering {
  animation: card-stagger-fade 240ms var(--ease-out) both;
}

/* Marco de Imagen de Estudio (Fondo Blanco/Neutro Limpio con Iluminación Pedestal) */
.card-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 65%, rgba(2, 132, 199, 0.035) 0%, rgba(248, 250, 252, 0.95) 70%, #ffffff 100%);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 8px;
}

.card-thumb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.card-thumb-container img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 220ms ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.07));
}

.avra-clean-card:hover .card-thumb-container img {
  transform: scale(1.05);
}

/* Badges sobre la Foto */
.clean-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge-dot {
  display: inline-block;
  font-size: 8px;
  line-height: 1;
  margin-right: 3px;
  vertical-align: middle;
}

.badge-stock {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-tech {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-warranty {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.badge-fiscal {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-rugged {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fde047;
}

/* Cuerpo de la Tarjeta */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.card-sku-code {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 10.5px;
}

.card-product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.card-product-title a:hover {
  color: var(--color-brand-cyan);
}

.card-short-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bloque de Precios en Guaraníes */
.card-price-block {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.price-amount-display {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.price-amount-display .woocommerce-Price-currencySymbol {
  color: var(--color-brand-cyan);
  font-size: 16px;
  margin-right: 2px;
}

.price-tax-caption {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-whatsapp);
  margin-top: 1px;
}

/* Fila de Botones */
.card-action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 160ms ease;
  text-decoration: none;
}

.btn-whatsapp-quote {
  background: var(--color-whatsapp-light);
  color: var(--color-whatsapp);
  border: 1px solid var(--color-whatsapp-border);
  padding: 8px 10px;
}

.btn-whatsapp-quote:hover {
  background: var(--color-whatsapp);
  color: #ffffff;
}

.btn-navy-clean {
  background: var(--color-brand-navy);
  color: #ffffff;
  padding: 8px 14px;
}

.btn-navy-clean:hover {
  background: var(--color-brand-cyan);
}

.btn-secondary-clean {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 8px 16px;
}

.btn-secondary-clean:hover {
  background: #e2e8f0;
}

/* Caja de Búsqueda sin Resultados */
.no-results-box {
  background: #ffffff;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  max-width: 500px;
  margin: 40px auto;
}

.no-results-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.no-results-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.no-results-box p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}

/* -----------------------------------------------------------------------------
   BARRA DE CONFIANZA / BENEFICIOS B2B
   ----------------------------------------------------------------------------- */
.business-trust-bar {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 36px 0;
  margin-top: auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: var(--color-brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.trust-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* -----------------------------------------------------------------------------
   SLIDE-OVER MINI CART (PANEL LATERAL LIMPIO)
   ----------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 260ms ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border-light);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* Barra de Progreso de Envío Bonificado */
.cart-shipping-bar-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}

.shipping-bar-header {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.shipping-bar-header strong {
  color: var(--text-primary);
}

.shipping-achieved {
  color: #16a34a;
  font-weight: 700;
}

.shipping-bar-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.shipping-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #16a34a 100%);
  border-radius: 999px;
  transition: width 350ms var(--ease-out);
}

/* Lista de Items en Mini-Cart */
.drawer-cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.cart-item-thumb {
  width: 58px;
  height: 58px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-title a:hover {
  color: var(--color-brand-cyan);
}

.cart-item-price-unit {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-brand-cyan);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.cart-item-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.drawer-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  overflow: hidden;
}

.drawer-qty-btn {
  width: 26px;
  height: 26px;
  background: #f8fafc;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease;
}

.drawer-qty-btn:hover {
  background: #e2e8f0;
}

.drawer-qty-btn:active {
  background: #cbd5e1;
}

.drawer-qty-val {
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.drawer-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 120ms ease;
}

.drawer-remove-btn:hover {
  background: #fee2e2;
}

.cart-drawer-perk {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.cart-drawer-empty-state {
  text-align: center;
  padding: 40px 16px;
}

.empty-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.cart-drawer-empty-state h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cart-drawer-empty-state p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
}

/* -----------------------------------------------------------------------------
   PIE DE PÁGINA LIMPIO
   ----------------------------------------------------------------------------- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 30px 0 20px;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* -----------------------------------------------------------------------------
   RESPONSIVIDAD Y OPTIMIZACIÓN MÓVIL
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* En tablets y móviles, ocultar buscador en la fila principal y usar la fila dedicada */
  .header-search-wrap {
    display: none;
  }
  
  .mobile-search-row {
    display: block;
  }

  .header-nav {
    display: none; /* En móvil dejamos solo logo y carrito para no saturar */
  }

  .cart-label {
    display: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* VISTA MÓVIL EN TELÉFONOS SMARTPHONE (< 640px) */
@media (max-width: 640px) {
  /* ¡¡¡ GRILLA DE 2 COLUMNAS PARA VER VARIOS PRODUCTOS EN LA PANTALLA !!! */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .catalog-main {
    padding-top: 14px;
    padding-bottom: 30px;
  }

  .catalog-filter-section {
    padding: 10px 0 12px;
  }

  .avra-clean-card {
    padding: 10px;
    border-radius: 8px;
  }

  .card-thumb-container {
    aspect-ratio: 1 / 1;
    margin-bottom: 8px;
    padding: 6px;
  }

  .clean-badge {
    font-size: 8.5px;
    padding: 2px 6px;
    top: 5px;
    left: 5px;
  }

  .card-category-meta {
    font-size: 9.5px;
  }

  .card-sku-code {
    display: none; /* Ahorrar espacio en móvil */
  }

  .card-product-title {
    font-size: 13px;
    min-height: 34px;
    margin-bottom: 4px;
  }

  .card-short-desc {
    display: none; /* Ocultar párrafo largo en móvil para que las tarjetas sean compactas y se vean muchas */
  }

  .card-price-block {
    padding-top: 6px;
    margin-bottom: 8px;
  }

  .price-amount-display {
    font-size: 15px;
  }

  .price-amount-display .woocommerce-Price-currencySymbol {
    font-size: 13px;
  }

  .price-tax-caption {
    font-size: 9.5px;
  }

  .card-action-row {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .btn {
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 4px;
  }
}

/* -----------------------------------------------------------------------------
   PÁGINA DE DETALLE DE PRODUCTO INDIVIDUAL (SINGLE PRODUCT)
   ----------------------------------------------------------------------------- */
.single-product-page {
  padding-top: 16px;
  padding-bottom: 60px;
  background: var(--bg-page);
}

/* Barra Superior / Breadcrumb */
.single-breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.btn-back-catalog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 160ms ease;
  flex-shrink: 0;
}

.btn-back-catalog:hover {
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-cyan);
  background: var(--bg-surface-subtle);
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumb-trail a:hover {
  color: var(--color-brand-cyan);
}

.bc-sep {
  color: var(--border-medium);
}

.bc-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Layout Principal de 2 Columnas */
.single-product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

/* Columna Izquierda: Galería */
.single-gallery-column {
  position: relative;
}

.single-image-box {
  background: radial-gradient(circle at 50% 65%, rgba(2, 132, 199, 0.05) 0%, rgba(248, 250, 252, 0.92) 65%, #ffffff 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-card);
  min-height: 380px;
  overflow: hidden;
  cursor: crosshair;
}

.single-product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.single-main-img {
  max-width: 92%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
  transition: transform 260ms ease;
}

.single-image-box:hover .single-main-img {
  transform: scale(1.02);
}

.single-image-caption {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Columna Derecha: Información */
.single-info-column {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.single-meta-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.chip-category {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.chip-sku {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.single-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}

/* Caja de Precios */
.single-price-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
}

.single-price-amount {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.single-price-amount .woocommerce-Price-currencySymbol {
  color: var(--color-brand-cyan);
  font-size: 22px;
  margin-right: 2px;
}

.single-price-notes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.note-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.note-pill.green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.note-pill.blue {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.note-pill.gray {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.single-summary-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.single-summary-text p {
  margin-bottom: 8px;
}

/* Acciones de Compra & Cotización */
.single-actions-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-whatsapp-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #16a34a;
  color: #ffffff;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
  transition: all 160ms ease;
  width: 100%;
}

.btn-whatsapp-hero:hover {
  background: #15803d;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
}

.cart-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.quantity-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  height: 44px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  background: #f8fafc;
  border: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-input {
  width: 48px;
  height: 100%;
  border: none;
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  -moz-appearance: textfield;
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-cart-navy {
  flex: 1;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-brand-navy);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
}

.btn-add-cart-navy:hover {
  background: var(--color-brand-cyan);
}

/* Perks B2B */
.single-perks-list {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perk-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.perk-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perk-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.perk-text strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-primary);
  font-weight: 700;
}

.perk-text span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Ficha Técnica & Especificaciones */
.single-specs-section {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
}

.specs-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.specs-tab-pill {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.specs-content-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.specs-content-body ul {
  margin: 12px 0 16px 24px;
}

.specs-content-body li {
  margin-bottom: 8px;
}

.specs-content-body p {
  margin-bottom: 12px;
}

/* Productos Relacionados */
.single-related-section {
  margin-top: 30px;
}

.related-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.related-section-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.see-all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-brand-cyan);
}

/* RESPONSIVIDAD PARA EL DETALLE EN MÓVIL (< 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 8px 0 10px;
  }
  .header-main-row {
    gap: 12px;
  }
  .site-logo img {
    height: 32px;
  }
  .logo-avra {
    font-size: 19px;
  }
  .header-search-wrap {
    display: none;
  }
  .mobile-search-row {
    display: block;
    padding-top: 8px;
  }
  .header-search input {
    padding: 8px 34px 8px 36px;
    font-size: 12.5px;
  }
  .header-nav {
    display: none;
  }
  .cart-label {
    display: none;
  }
  .cart-trigger {
    padding: 6px 10px;
  }

  .single-product-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .single-image-box {
    padding: 16px;
    min-height: 240px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }

  .single-info-column {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .single-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .single-price-amount {
    font-size: 24px;
  }

  .btn-whatsapp-hero {
    font-size: 13.5px;
    padding: 12px 14px;
  }

  .single-specs-section {
    padding: 16px;
    border-radius: var(--radius-md);
  }
}

/* -----------------------------------------------------------------------------
   MICRO-ANIMACIONES & FÍSICAS TÁCTILES (Emil Kowalski / Apple HIG)
   ----------------------------------------------------------------------------- */
.btn:active,
.btn-navy-clean:active,
.btn-whatsapp-quote:active,
.btn-secondary-clean:active,
.pill-filter:active,
.subcat-filter:active,
.cart-trigger:active,
.qty-btn:active,
.btn-add-cart-navy:active,
.btn-whatsapp-hero:active {
  transform: scale(0.965);
  transition: transform var(--duration-fast) var(--ease-out);
}

/* Animación elástica en el contador numérico del carrito */
@keyframes cart-bounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.42); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.cart-badge-bounce {
  animation: cart-bounce 360ms var(--ease-spring);
}

/* Números tabulares para precios (Vercel Web Guidelines - Previene saltos) */
.price-amount-display,
.single-price-amount,
.dock-price,
.card-price-block,
#drawer-cart-subtotal {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* -----------------------------------------------------------------------------
   SISTEMA DE TOAST NOTIFICATIONS FLOTANTES (Sonner Style / Apple HIG)
   ----------------------------------------------------------------------------- */
.avra-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.avra-toast {
  pointer-events: auto;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 310px;
  max-width: 420px;
  animation: toast-in 240ms var(--ease-out) both;
  transform-origin: bottom right;
}

.avra-toast.toast-leaving {
  animation: toast-out 200ms var(--ease-out) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

.toast-icon-wrap {
  width: 32px;
  height: 32px;
  background: #ecfdf5;
  color: #059669;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.toast-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.toast-cta-btn {
  background: var(--color-brand-cyan);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, transform 120ms var(--ease-out);
}

.toast-cta-btn:hover {
  background: #0284c7;
}

.toast-cta-btn:active {
  transform: scale(0.95);
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

@media (max-width: 640px) {
  .avra-toast-container {
    left: 12px;
    right: 12px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .avra-toast {
    min-width: auto;
    width: 100%;
    transform-origin: bottom center;
  }
}

/* -----------------------------------------------------------------------------
   DISPARADOR DE ZOOM HD & MODAL LIGHTBOX DE ESTUDIO
   ----------------------------------------------------------------------------- */
.btn-studio-zoom-trigger {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
  transition: all 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-studio-zoom-trigger:hover,
.btn-studio-zoom-trigger:active {
  background: #ffffff;
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-cyan);
  transform: scale(1.04);
}

.btn-studio-zoom-trigger svg {
  color: var(--color-brand-cyan);
}

.studio-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.studio-lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 94%;
  max-width: 860px;
  max-height: 92vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  overflow: hidden;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 140ms ease;
}

.lightbox-close-btn:hover,
.lightbox-close-btn:active {
  background: #e2e8f0;
}

.lightbox-image-wrap {
  width: 100%;
  height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  user-select: none;
  touch-action: pan-x pan-y pinch-zoom;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.lightbox-img.zoomed {
  transform: scale(2.2);
  cursor: zoom-out;
}

.lightbox-caption {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* -----------------------------------------------------------------------------
   DOCK FLOTANTE ERGONÓMICO EN MÓVILES (Apple / Linear PDP Style)
   ----------------------------------------------------------------------------- */
.mobile-sticky-dock {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-dock {
    display: block;
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    right: 10px;
    max-width: 480px;
    margin: 0 auto;
    z-index: 9990;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.16);
    padding: 8px 12px;
    transform: translateY(180%);
    opacity: 0;
    transition: transform 260ms var(--ease-drawer), opacity 220ms ease;
    pointer-events: none;
  }

  .mobile-sticky-dock.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .dock-inner {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dock-thumb {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .dock-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .dock-info {
    flex: 1;
    min-width: 0;
  }

  .dock-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .dock-price {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-brand-cyan);
    font-variant-numeric: tabular-nums;
  }

  .dock-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .dock-btn-wa {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-whatsapp-light);
    color: var(--color-whatsapp);
    border: 1px solid var(--color-whatsapp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms var(--ease-out);
  }

  .dock-btn-add {
    height: 36px;
    padding: 0 14px;
    background: var(--color-brand-navy);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms var(--ease-out), background 140ms ease;
  }

  .dock-btn-add:active,
  .dock-btn-wa:active {
    transform: scale(0.95);
  }
}

/* -----------------------------------------------------------------------------
   BARRA DE NAVEGACIÓN INFERIOR MÓVIL (BOTTOM TAB BAR TIER-1 APP-LIKE)
   ----------------------------------------------------------------------------- */
.mobile-bottom-tab-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-bottom-tab-bar {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--border-light) !important;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
    padding: 6px 4px max(8px, env(safe-area-inset-bottom, 0px)) !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 8px;
    min-width: 60px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 150ms ease, transform 120ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .tab-item:active {
    transform: scale(0.92);
  }

  .tab-item.active {
    color: var(--color-brand-cyan);
    font-weight: 700;
  }

  .tab-item-wa {
    color: var(--color-whatsapp);
  }

  .tab-cart-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .tab-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--color-brand-cyan);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  }
}

/* Accesibilidad: Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
