:root {
  /* Alineado con hv-website (globals.css) */
  --bg-primary: #fafaf8;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --gray-950: #030712;
  --red-700: #b91c1c;
  --border-hv: #e8e8e6;
  --shadow-header: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-input: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
  --hv-filter-sidebar-w: 18rem;
  /* Ancho del mini-carrito del catálogo (panel fijo al borde derecho en ≥1024px). */
  --hv-catalog-cart-rail-w: 22rem;
  /* Altura del bloque superior del sitio (barra gris solo ≥768px + navbar h-16 / sm:h-20) para paneles fixed bajo el header */
  --hv-site-chrome-top: 4rem;
}
@media (min-width: 640px) {
  :root {
    --hv-site-chrome-top: 5rem;
  }
}
@media (min-width: 768px) {
  :root {
    --hv-site-chrome-top: calc(1.75rem + 5rem);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg-primary); font-family: 'DM Sans', system-ui, sans-serif; color: var(--text-primary); -webkit-font-smoothing: antialiased; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.min-h-screen { min-height: 100vh; }
.min-h-\[60vh\] { min-height: 60vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.min-h-0 { min-height: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.hidden { display: none !important; }
.grid { display: grid; }
.w-full { width: 100%; }
.w-80 { width: 20rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.min-h-\[4\.5rem\] { min-height: 4.5rem; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }
.max-w-none { max-width: none; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.min-w-\[20px\] { min-width: 20px; }

/* Carrito vendedor: notas (izq.) + resumen (der.). Dos columnas por defecto; solo se apila en pantallas muy estrechas. */
.hv-seller-notes-summary-grid {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  gap: 1.25rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
}
/* Si el resumen está oculto (carrito vacío), no reservar columna vacía a la derecha */
.hv-seller-notes-summary-grid:has(#hv-seller-cart-summary.hidden) {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 520px) {
  .hv-seller-notes-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hv-seller-notes-summary-grid > .hv-seller-notes-col {
  min-width: 0;
}
.hv-seller-notes-summary-grid > aside#hv-seller-cart-summary {
  justify-self: stretch;
  width: 100%;
  max-width: 18rem;
}
@media (max-width: 520px) {
  .hv-seller-notes-summary-grid > aside#hv-seller-cart-summary {
    max-width: none;
  }
}
.hv-seller-order-notes-ta {
  width: 100%;
  max-width: 100%;
  min-height: 11rem;
  resize: vertical;
  display: block;
  box-sizing: border-box;
}
.max-w-\[85vw\] { max-width: 85vw; }
.max-w-\[148px\] { max-width: 148px; }
.max-w-\[200px\] { max-width: 200px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pb-20 { padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-10 { padding-top: 2.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aspect-square { aspect-ratio: 1 / 1; }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.bottom-24 { bottom: 6rem; }
.top-0 { top: 0; }
.-top-0\.5 { top: -0.125rem; }
.-right-0\.5 { right: -0.125rem; }
.z-50 { z-index: 50; }
.z-60 { z-index: 60; }
.right-0 { right: 0; }
.overflow-y-auto { overflow-y: auto; }
.touch-manipulation { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.leading-\[1\.1\] { line-height: 1.1; }
.leading-tight { line-height: 1.2; }
.leading-relaxed { line-height: 1.625; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-white { color: #fff; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-700 { color: var(--red-700); }
.text-red-800 { color: #991b1b; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-green-600 { color: #16a34a; }
.text-green-800 { color: #166534; }
.text-amber-800 { color: #92400e; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-950 { background-color: var(--gray-950); }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-700 { background-color: var(--red-700); }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-700 { background-color: #047857; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-gray-900 { background-color: #111827; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500 { background-color: #22c55e; }
.bg-green-600 { background-color: #16a34a; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-white\/95 { background-color: rgba(255,255,255,0.95); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/5:hover { background: rgba(255, 255, 255, 0.05); }
.border { border: 1px solid #e5e7eb; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-red-700 { border-color: var(--red-700); }
.border-emerald-600 { border-color: #059669; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-gray-900 { border-color: #111827; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.h-3\.5 { height: 0.875rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.cursor-default { cursor: default; }
.resize-none { resize: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-hidden { overflow-y: hidden; }
.flex-row { flex-direction: row; }
.pb-2 { padding-bottom: 0.5rem; }
.pl-10 { padding-left: 2.5rem; }
.pl-12 { padding-left: 3rem; }
.pr-12 { padding-right: 3rem; }
.whitespace-nowrap { white-space: nowrap; }
.pointer-events-none { pointer-events: none; }
.inset-0 { inset: 0; }
.max-h-0 { max-height: 0; }
.opacity-0 { opacity: 0; }
.max-h-96 { max-height: 24rem; }
.opacity-100 { opacity: 1; }
.border-gray-100\/80 { border-color: rgba(243, 244, 246, 0.8); }
.hover\:bg-emerald-800:hover { background: #065f46; }
.hover\:text-red-900:hover { color: #7f1d1d; }
.hover\:bg-red-50:hover { background: #fef2f2; }
.hover\:bg-gray-200:hover { background: #e5e7eb; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.rounded-sm { border-radius: 0.125rem; }
.w-10 { width: 2.5rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.text-\[10px\] { font-size: 10px; line-height: 1.2; }
.leading-snug { line-height: 1.375; }
.border-gray-300 { border-color: #d1d5db; }
.hover\:border-gray-400:hover { border-color: #9ca3af; }
.shadow-card-hv { box-shadow: var(--shadow-card); }
.hover\:shadow-card-hv:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); }
.hover\:border-gray-200:hover { border-color: #e5e7eb; }
.bg-\[\#FAFAF8\] { background-color: #fafaf8; }
@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
  .md\:flex { display: flex !important; }
  .md\:flex-wrap { flex-wrap: wrap !important; }
  .md\:contents { display: contents !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:pb-0 { padding-bottom: 0; }
  .md\:bottom-6 { bottom: 1.5rem; }
}
@media (min-width: 640px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:max-w-\[200px\] { max-width: 200px; }
  .sm\:max-w-none { max-width: none; }
  .sm\:mx-0 { margin-left: 0; margin-right: 0; }
  .sm\:w-auto { width: auto; }
  .sm\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:gap-5 { gap: 1.25rem; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:justify-between { justify-content: space-between !important; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:text-right { text-align: right !important; }
}
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
a { color: inherit; text-decoration: none; }
a.text-red-700:hover, .hover\:text-red-700:hover { color: #991b1b; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-gray-900:hover { color: var(--gray-900); }
.hover\:text-gray-700:hover { color: var(--gray-700); }
.hover\:border-gray-300:hover { border-color: #d1d5db; }
.hover\:bg-gray-50:hover { background: #f9fafb; }
.hover\:bg-gray-100:hover { background: #f3f4f6; }
.hover\:bg-red-800:hover { background: #991b1b; }
.hover\:bg-gray-800:hover { background: #1f2937; }
.hover\:bg-green-600:hover { background: #16a34a; }
.hover\:scale-110:hover { transform: scale(1.1); }
.transition { transition: color 0.2s, background 0.2s, transform 0.2s; }
button, input, textarea { font: inherit; }
input:focus, textarea:focus, button:focus { outline: 2px solid rgba(185,28,28,0.35); outline-offset: 1px; }
.card-lift { transition: transform 0.2s, box-shadow 0.2s; }
.card-lift:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 0.8s linear infinite; }

/* Estilos del loader del catálogo en home: views/partials/catalog-loader.css.php (inline en la página). */

/* Menú móvil: último nodo del body + capa fija real (evita bugs con body flex / overflow en iOS) */
.hv-nav-drawer {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100000;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  margin: 0;
  padding: 0;
  flex: none !important;
  isolation: isolate;
}
/* No usar utilidad .md:hidden en el HTML del drawer: con viewport ≥768px dejaba display:none !important aunque quitáramos .hidden */
@media (min-width: 768px) {
  #hv-nav-drawer.hv-nav-drawer {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
  }
}
.hv-nav-drawer-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
}
.hv-nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(20rem, 100%);
  max-width: 100%;
  box-sizing: border-box;
  height: 100%;
  max-height: 100dvh;
  max-height: -webkit-fill-available;
  background: #fff;
  border-left: 1px solid #f3f4f6;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hv-toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); font-size: 14px;
}
.hv-toast-out { opacity: 0; transition: opacity 0.3s; }
#hv-drawer { transition: transform 0.25s ease; }

/* CategoryBar: scroll horizontal (min-w-0 en main + wrapper evita que el flex “estire” el ancho) */
#hv-cat-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
#hv-cat-bar::-webkit-scrollbar {
  height: 8px;
}
#hv-cat-bar::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}
#hv-cat-bar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
#hv-cat-bar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
#hv-cat-bar .hv-cat-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.hv-cat-chip-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  min-width: 0;
}
.hv-cat-avatar {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e7eb;
}
.hv-cat-avatar-placeholder {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hv-drawer-pill-idle .hv-cat-avatar-placeholder {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.15);
}
.hv-drawer-pill-active .hv-cat-avatar-placeholder {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}
/* Categorías en barra horizontal: activo = rojo */
#hv-cat-bar .hv-cat-chip.is-active {
  background: var(--red-700);
  color: #fff;
}
#hv-cat-bar .hv-cat-chip:not(.is-active) {
  background: #f3f4f6;
  color: #1f2937;
}
#hv-cat-bar .hv-cat-chip:not(.is-active):hover {
  background: #e5e7eb;
}
/* Stock en la misma fila: todo inventario = negro, en stock = verde (como referencia) */
/* Drawer móvil: pastillas claras / activa negra (original) */
.hv-drawer-pill {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hv-drawer-pill-idle {
  background: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}
.hv-drawer-pill-idle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.hv-drawer-pill-active {
  background: #000;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* Carril categorías: flechas + recorte para que el scroll quede claro */
.hv-cat-scroll-clip {
  min-width: 0;
  flex: 1 1 0%;
}
.hv-cat-nudge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  padding: 0;
  z-index: 2;
  border: 2px solid #d1d5db;
  border-radius: 9999px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
  transition: background 0.15s, color 0.15s, opacity 0.15s, border-color 0.15s;
}
.hv-cat-nudge:hover:not(:disabled) {
  background: #f9fafb;
  color: #111827;
  border-color: #9ca3af;
}
.hv-cat-nudge:disabled {
  opacity: 0.3;
  cursor: default;
}

.hv-hero-search {
  box-shadow: var(--shadow-input);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hv-hero-search:focus {
  outline: none;
  border-color: var(--red-700);
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}
.hv-hero-search::placeholder {
  color: var(--gray-400);
}

.bg-gray-900\/75 { background: rgba(17, 24, 39, 0.75); }
.text-\[11px\] { font-size: 11px; line-height: 1.25; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.top-3 { top: 0.75rem; }
.right-3 { right: 0.75rem; }
.left-3 { left: 0.75rem; }

/* Loader global */
.hv-global-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 7, 18, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.hv-global-loader--on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hv-global-loader__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-card), 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-hv);
  max-width: min(20rem, 100%);
}
.hv-global-loader__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--border-hv);
  border-top-color: var(--red-700);
  border-radius: 50%;
  animation: hv-loader-spin 0.75s linear infinite;
}
.hv-global-loader__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  text-align: center;
}
@keyframes hv-loader-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-global-loader { transition: none; }
  .hv-global-loader__spinner { animation: none; border-top-color: var(--red-700); opacity: 0.85; }
}

/* Catálogo: espacio para barra fija (título + contenido no quedan bajo el panel) */
@media (min-width: 768px) {
  .hv-catalog-page:not(.hv-catalog-page--filters-collapsed) {
    padding-left: calc(var(--hv-filter-sidebar-w) + 1rem);
    transition: padding-left 0.24s ease;
  }
}

/* Catálogo: barra lateral de filtros (escritorio = columna fija altura viewport) */
.hv-catalog-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
  position: relative;
}
@media (min-width: 768px) {
  .hv-catalog-layout {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
}
.hv-catalog-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .hv-catalog-sidebar-backdrop {
    display: none !important;
  }
}
.hv-catalog-sidebar {
  flex-shrink: 0;
  width: 100%;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--border-hv);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  max-height: min(32rem, 70vh);
  overflow: hidden;
  z-index: 150;
}
@media (max-width: 767.98px) {
  .hv-catalog-sidebar {
    position: fixed;
    top: var(--hv-site-chrome-top);
    left: 0;
    bottom: 0;
    width: min(22rem, 100%);
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border-hv);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(-102%);
    transition: transform 0.28s ease;
    z-index: 150;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .hv-catalog-sidebar.hv-catalog-sidebar--open {
    transform: translateX(0);
  }
}
@media (min-width: 768px) {
  .hv-catalog-sidebar {
    position: fixed;
    left: 0;
    top: var(--hv-site-chrome-top);
    bottom: 0;
    width: var(--hv-filter-sidebar-w);
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-right: 1px solid var(--border-hv);
    z-index: 35;
    /* Permite que la tarjeta del logo "suba" sin recortarse (el body sigue scrolleando) */
    overflow: visible;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: transform 0.24s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .hv-catalog-sidebar.hv-catalog-sidebar--collapsed {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
/* ============== brand del navbar (sin imagen, tipográfico) ============== */
.hv-brand {
  text-decoration: none;
  align-items: center;
  line-height: 1;
}
.hv-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px -6px rgba(185, 28, 28, .55);
  flex-shrink: 0;
}
.hv-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  white-space: nowrap;
  margin-left: 0.5rem;
}
@media (min-width: 640px) {
  .hv-brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.85rem;
  }
  .hv-brand-name {
    font-size: 1.18rem;
  }
}
.hv-brand:hover .hv-brand-name { color: #991b1b; }

/* ============== logo elegante en la cabecera del sidebar ============== */
@keyframes hv-brand-fade-in {
  0%   { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0);    }
}

.hv-catalog-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  padding: 0.6rem 0.7rem;
  background: transparent;
  animation: hv-brand-fade-in .55s ease both;
}
/* Línea decorativa inferior muy sutil (acento rojo) */
.hv-catalog-sidebar-brand::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(185, 28, 28, .55) 50%, transparent 100%);
  transform: translateX(-50%) scaleX(.3);
  transform-origin: center;
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
  pointer-events: none;
}
.hv-catalog-sidebar-brand:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.hv-catalog-sidebar-brand a {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.hv-catalog-sidebar-brand a:hover { transform: translateY(-1px) scale(1.02); }
.hv-catalog-sidebar-brand a:active { transform: translateY(0) scale(.99); }

.hv-catalog-sidebar-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
  transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .3s ease;
}
.hv-catalog-sidebar-brand a:hover img {
  filter: drop-shadow(0 8px 18px rgba(185, 28, 28, .22));
}

@media (min-width: 768px) {
  /* Sidebar por encima del navbar (permite que la tarjeta del logo "respire" hacia arriba) */
  .hv-catalog-sidebar { z-index: 60; }

  /* Tarjeta sin marco visible: solo una sombra suave para dar profundidad */
  .hv-catalog-sidebar-brand {
    z-index: 61;
    margin: 0.6rem 0.75rem 0.85rem;
    padding: 0.55rem 0.7rem;
    background: transparent;
    border: 0;
    border-radius: 1.1rem;
    box-shadow: none;
    animation: hv-brand-fade-in .55s ease both;
  }
  .hv-catalog-sidebar-brand:hover {
    box-shadow: none;
  }
  .hv-catalog-sidebar-brand img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
  }

  /* Con filtros visibles, ocultar la marca tipográfica del navbar */
  body:has(.hv-catalog-page:not(.hv-catalog-page--filters-collapsed)) header .hv-brand {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-catalog-sidebar-brand,
  .hv-catalog-sidebar-brand a,
  .hv-catalog-sidebar-brand img,
  .hv-catalog-sidebar-brand::before,
  .hv-catalog-sidebar-brand::after { animation: none !important; transition: none !important; }
}

/* ============== secciones colapsables (price / stock) ============== */
.hv-filter-collapse {
  border: 1px solid var(--border-hv);
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hv-filter-collapse:hover { border-color: #d4d4d2; }
.hv-filter-collapse[open] {
  border-color: #d4d4d2;
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .06);
}
.hv-filter-collapse > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background .15s ease, color .15s ease;
}
.hv-filter-collapse > summary::-webkit-details-marker { display: none; }
.hv-filter-collapse > summary::marker { content: ""; }
.hv-filter-collapse > summary:hover {
  background: #fafaf8;
  color: var(--gray-900);
}
.hv-filter-collapse > summary:focus-visible {
  outline: none;
  background: #fff5f5;
  color: var(--red-700);
}
.hv-filter-collapse .hv-collapse-chev {
  width: 1rem;
  height: 1rem;
  color: var(--gray-500);
  transition: transform .2s ease, color .2s ease;
  flex-shrink: 0;
}
.hv-filter-collapse[open] .hv-collapse-chev {
  transform: rotate(180deg);
  color: var(--red-700);
}
.hv-filter-collapse[open] > summary {
  color: var(--gray-900);
  border-bottom: 1px solid var(--border-hv);
}
.hv-filter-collapse .hv-collapse-body {
  padding: 0.75rem 0.95rem 0.85rem;
  animation: hv-collapse-fade .22s ease both;
}
@keyframes hv-collapse-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Las collapse-sections no necesitan el margin-bottom 1.25rem extra de .hv-filter-section */
.hv-filter-section.hv-filter-collapse { margin-bottom: 0.65rem; }

.hv-catalog-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-hv);
  flex-shrink: 0;
  background: #fafaf8;
}
@media (min-width: 768px) {
  .hv-catalog-sidebar-header {
    padding-top: 0.875rem;
  }
}
.hv-catalog-sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hv-catalog-sidebar-body {
  padding: 0.75rem 1rem 1rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.hv-filter-section {
  margin-bottom: 1.25rem;
}
.hv-filter-section:last-of-type {
  margin-bottom: 0.5rem;
}
.hv-filter-section--categories {
  margin-top: 0.35rem;
}
.hv-filter-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hv-sidebar-cat-scroll {
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.25rem;
}
@media (max-width: 767.98px) {
  .hv-sidebar-cat-scroll {
    max-height: min(50vh, 20rem);
    overflow-y: auto;
  }
}
.hv-sidebar-cat-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.45rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-hv);
  background: #fff;
  font-size: 0.8125rem;
  color: var(--gray-900);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.hv-sidebar-cat-row:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.hv-sidebar-cat-row--active {
  border-color: var(--red-700);
  background: #fef2f2;
}
.hv-sidebar-cat-row--active .hv-sidebar-cat-label {
  color: var(--red-700);
  font-weight: 600;
}
.hv-sidebar-cat-thumb {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e7eb;
}
.hv-sidebar-cat-thumb.hv-cat-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
}
.hv-sidebar-cat-check {
  width: 1.125rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red-700);
  line-height: 1.2;
}
.hv-sidebar-cat-label,
.hv-cat-chip-label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  line-height: 1.25;
}
.hv-cat-chip-label {
  flex: 1 1 auto;
}
.hv-cat-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hv-cat-count {
  flex-shrink: 0;
  white-space: nowrap;
}
.hv-stock-segment {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hv-stock-segment button {
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-hv);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.hv-stock-segment button:hover {
  border-color: #d1d5db;
}
.hv-stock-segment button.hv-stock-seg--on {
  border-color: var(--gray-900);
  background: var(--gray-900);
  color: #fff;
}
.hv-stock-segment button.hv-stock-seg--on.hv-stock-seg--in {
  border-color: #059669;
  background: #059669;
}
.hv-stock-segment button.hv-stock-seg--on.hv-stock-seg--out {
  border-color: #6b7280;
  background: #4b5563;
}
.hv-sidebar-price-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.hv-sidebar-price-row input {
  width: 50%;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border-hv);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}
.hv-sidebar-price-row input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f3f4f6;
}
.hv-filter-apply-btn {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--gray-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.hv-filter-apply-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hv-filter-reset-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-hv);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
}
.hv-filter-reset-btn:hover {
  border-color: var(--red-700);
  color: var(--red-700);
  background: #fef2f2;
}
.hv-sidebar-reopen-tab {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.75rem 0.35rem;
  margin-top: 1rem;
  border: 1px solid var(--border-hv);
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06);
  align-self: flex-start;
  position: sticky;
  top: 1rem;
  z-index: 5;
}
.hv-sidebar-reopen-tab:not(.hidden) {
  display: flex;
}
@media (min-width: 768px) {
  .hv-sidebar-reopen-tab:not(.hidden) {
    position: fixed;
    left: 0;
    top: calc(var(--hv-site-chrome-top) + (100vh - var(--hv-site-chrome-top)) * 0.5);
    margin-top: 0;
    transform: translateY(-50%) rotate(180deg);
    z-index: 36;
    box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.1);
  }
}
@media (max-width: 767.98px) {
  .hv-sidebar-reopen-tab {
    display: none !important;
  }
}
.hv-catalog-main {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}
.hv-catalog-main-with-rail {
  width: 100%;
  min-width: 0;
}
/* Mini-carrito: en ≥1024px anclado al borde derecho del viewport; el contenedor crece en el ancho del rail
   para que la rejilla de productos conserve el mismo ancho útil que sin carrito (mismo tamaño de cards). */
@media (min-width: 1024px) {
  .hv-catalog-page--account-rail.hv-catalog-page--cart-rail-active {
    max-width: min(100vw, calc(80rem + var(--hv-catalog-cart-rail-w)));
    /* lg:px-8 derecho + hueco del panel (equivalente a ampliar max-w-7xl en el ancho del rail). */
    padding-right: calc(2rem + var(--hv-catalog-cart-rail-w));
  }
  .hv-catalog-page--account-rail.hv-catalog-page--cart-rail-active .hv-catalog-cart-rail {
    position: fixed;
    right: 0;
    top: calc(var(--hv-site-chrome-top) + 0.75rem);
    width: min(var(--hv-catalog-cart-rail-w), calc(100vw - 1rem));
    max-width: min(var(--hv-catalog-cart-rail-w), calc(100vw - 1rem));
    margin-top: 0;
    z-index: 28;
    max-height: calc(100vh - var(--hv-site-chrome-top) - 1.25rem);
    border-radius: 1rem 0 0 1rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  }
  .hv-catalog-page--account-rail.hv-catalog-page--cart-rail-active .hv-catalog-cart-rail__inner {
    max-height: calc(100vh - var(--hv-site-chrome-top) - 1.25rem);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}
.hv-catalog-page--account-rail .hv-catalog-cart-rail:not(.hidden) {
  display: block;
  margin-top: 1.25rem;
}
@media (min-width: 1024px) {
  .hv-catalog-page--account-rail .hv-catalog-cart-rail:not(.hidden) {
    margin-top: 0;
  }
}
.hv-catalog-cart-rail__inner {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-hv);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-height: inherit;
}
.hv-catalog-cart-rail__head {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-hv);
  background: #fafaf8;
}
.hv-catalog-cart-rail__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.hv-catalog-cart-rail__head-titles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.hv-catalog-cart-rail__heading {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hv-catalog-cart-rail__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: var(--red-700);
  line-height: 1;
}
.hv-catalog-cart-rail__badge--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.hv-catalog-cart-rail__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.25rem 0;
  border: none;
  background: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red-700);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hv-catalog-cart-rail__clear:hover {
  color: #991b1b;
}
.hv-catalog-cart-rail__clear-icon {
  flex-shrink: 0;
  color: var(--red-700);
}
.hv-catalog-cart-rail__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.02em;
}
.hv-catalog-cart-rail__body {
  padding: 0.65rem 0.75rem;
  max-height: min(22rem, 50vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--gray-900);
  min-height: 3.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
@media (min-width: 1024px) {
  .hv-catalog-page--account-rail.hv-catalog-page--cart-rail-active .hv-catalog-cart-rail__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }
}
.hv-catalog-cart-rail__empty {
  margin: 0;
  padding: 0.75rem 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gray-500);
}
.hv-catalog-cart-rail__card {
  position: relative;
  padding: 0.65rem 0.6rem 0.65rem 0.65rem;
  border: 1px solid #ecece8;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.hv-catalog-cart-rail__remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.35rem;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
}
.hv-catalog-cart-rail__remove:hover {
  color: var(--red-700);
  background: #fef2f2;
}
.hv-catalog-cart-rail__card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding-right: 1.5rem;
}
.hv-catalog-cart-rail__thumb {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  object-fit: contain;
  background: #fafaf8;
  border: 1px solid #eee;
}
.hv-catalog-cart-rail__card-main {
  min-width: 0;
  flex: 1 1 0%;
}
.hv-catalog-cart-rail__card-side {
  flex-shrink: 0;
  text-align: right;
  padding-top: 0.1rem;
}
.hv-catalog-cart-rail__name {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hv-catalog-cart-rail__sku {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  color: var(--gray-500);
  word-break: break-word;
}
.hv-catalog-cart-rail__unit-price {
  margin: 0 0 0.15rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red-700);
}
.hv-catalog-cart-rail__unit-suffix {
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--gray-600);
}
.hv-catalog-cart-rail__moq-line {
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  color: var(--gray-500);
}
.hv-catalog-cart-rail__qty-inline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 9rem;
}
.hv-catalog-cart-rail__qty-inline .hv-catalog-rail-qty-min,
.hv-catalog-cart-rail__qty-inline .hv-catalog-rail-qty-plus {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e5e0;
  border-radius: 0.45rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1;
  color: var(--gray-700);
  cursor: pointer;
}
.hv-catalog-cart-rail__qty-inline .hv-catalog-rail-qty-min:hover,
.hv-catalog-cart-rail__qty-inline .hv-catalog-rail-qty-plus:hover {
  border-color: #d1d5db;
  color: var(--gray-900);
}
.hv-catalog-cart-rail__qty-inline .hv-rail-qty-val {
  flex: 1 1 0%;
  min-width: 0;
  width: 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid #e5e5e0;
  border-radius: 0.45rem;
  padding: 0.2rem 0.15rem;
  color: var(--gray-900);
  background: #fafaf8;
}
.hv-catalog-cart-rail__qty-inline .hv-rail-qty-val:focus {
  outline: none;
  border-color: #fca5a5;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.12);
}
.hv-catalog-cart-rail__line-sum {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
}
.hv-catalog-cart-rail__moq-note {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--gray-500);
}
.hv-catalog-cart-rail__foot {
  flex-shrink: 0;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border-hv);
  background: #fafaf8;
}
.hv-catalog-cart-rail__total {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.hv-catalog-cart-rail__total-num {
  font-weight: 700;
  color: var(--gray-900);
}
.hv-catalog-cart-rail__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--red-700);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.hv-catalog-cart-rail__submit:hover {
  background: #991b1b;
  color: #fff;
}
.hv-catalog-cart-rail__submit--checkout {
  background: #166534;
  margin-top: 0.35rem;
}
.hv-catalog-cart-rail__submit--checkout:hover {
  background: #14532d;
  color: #fff;
}
.hv-mobile-filter-open {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-hv);
  background: #fff;
  color: var(--gray-700);
  box-shadow: var(--shadow-input);
  cursor: pointer;
}
.hv-mobile-filter-open:hover {
  border-color: #d1d5db;
  color: var(--gray-900);
}
@media (min-width: 768px) {
  .hv-mobile-filter-open {
    display: none !important;
  }
}
.hv-sidebar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
}
.hv-sidebar-icon-btn:hover {
  background: #f3f4f6;
  color: var(--gray-900);
}
.hv-sidebar-collapse-btn {
  display: none;
}
@media (min-width: 768px) {
  .hv-sidebar-collapse-btn {
    display: inline-flex;
  }
}
.hv-filter-price-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

/* ——— Ficha de producto (PDP) ——— */
.hv-pdp {
  background: linear-gradient(180deg, #ffffff 0%, #fafaf8 38%, #f3f2ef 100%);
}
.hv-pdp-breadcrumb__sep {
  margin: 0 0.5rem;
  opacity: 0.45;
}
.hv-pdp-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .hv-pdp-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem 3rem;
  }
}
.hv-pdp-gallery {
  position: relative;
}
@media (min-width: 900px) {
  .hv-pdp-gallery {
    position: sticky;
    top: 5.5rem;
  }
}
.hv-pdp-main-photo {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid var(--border-hv);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(0, 0, 0, 0.04);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv-pdp-main-photo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem 1.5rem;
}
.hv-pdp-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.hv-thumb {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.2rem;
  border-radius: 0.65rem;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hv-thumb:hover {
  border-color: #e5e7eb;
}
.hv-thumb--active {
  border-color: var(--red-700);
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.15);
}
.hv-pdp-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hv-pdp-info {
  padding-top: 0.25rem;
}
.hv-pdp-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-700);
}
.hv-pdp-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
.hv-pdp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.hv-pdp-sku-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  box-sizing: border-box;
}
.hv-pdp-sku-badge__label {
  font-weight: 600;
  opacity: 0.88;
}
.hv-pdp-sku-badge__val {
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-word;
}
.hv-pdp-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.hv-pdp-stock-badge--in {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.hv-pdp-stock-badge--out {
  background: #f3f4f6;
  color: var(--gray-600);
  border: 1px solid #e5e7eb;
}
.hv-pdp-moq-badge {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
}
.hv-pdp-moq-badge .hv-pdp-stock-badge__qty {
  color: #92400e;
}
.hv-pdp-stock-badge__qty {
  font-weight: 700;
  opacity: 0.85;
}
.hv-pdp-price-block {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--border-hv);
  box-shadow: var(--shadow-card);
}
.hv-pdp-price-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}
.hv-pdp-price {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--red-700);
  letter-spacing: -0.02em;
}
.hv-pdp-pricing-gate {
  margin-bottom: 1.5rem;
  padding: 1.125rem 1.25rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e8e8e4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.hv-pdp-pricing-gate__text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--gray-600);
}
.hv-pdp-pricing-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--red-700);
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}
.hv-pdp-pricing-gate__btn:hover {
  background: #991b1b;
  color: #fff;
}
.hv-pdp-qty {
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border-hv);
  border-radius: 1rem;
}
.hv-pdp-qty__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.65rem;
}
.hv-pdp-qty__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hv-pdp-qty__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  border: 1px solid #e5e7eb;
  background: #fafaf8;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.hv-pdp-qty__btn:hover {
  background: #fff;
  border-color: #d1d5db;
  color: var(--gray-900);
}
.hv-pdp-qty__val {
  min-width: 2.25rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}
/* Cantidad editable (catálogo / PDP): quitar flechas del input number */
input.hv-qty-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input.hv-qty-input[type="number"]::-webkit-outer-spin-button,
input.hv-qty-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input.hv-pdp-qty__val.hv-qty-input {
  width: 3.25rem;
  max-width: 4.75rem;
  margin: 0;
  padding: 0.15rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  box-sizing: border-box;
}
input.hv-pdp-qty__val.hv-qty-input:focus {
  outline: none;
  border-color: #fecaca;
  box-shadow: 0 0 0 2px rgba(254, 202, 202, 0.45);
}
.hv-pdp-moq-line {
  margin: 0.5rem 0 0;
}
.hv-pdp-moq-line .hv-pdp-stock-badge {
  margin: 0;
}
.hv-pdp-desc {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hv);
}
.hv-pdp-desc__title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.hv-pdp-desc__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-600);
}
.hv-pdp-tags {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-hv);
}
.hv-pdp-tags__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}
.hv-pdp-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.hv-pdp-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--border-hv);
  color: var(--gray-600);
}

/* Carrusel horizontal “misma categoría” (fila única, scroll-x, fotos normalizadas) */
.hv-related-section {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
@media (min-width: 768px) {
  .hv-related-section {
    margin-top: 2.75rem;
    padding-top: 2.25rem;
  }
}
.hv-related-section__head {
  margin-bottom: 1rem;
}
.hv-related-section__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.hv-related-section__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
@media (min-width: 640px) {
  .hv-related-section__title {
    font-size: 1.25rem;
  }
}
/* Badges de inventario en tarjetas del catálogo (JS en home.php — clases reales en CSS, no solo Tailwind) */
.hv-catalog-stock-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  max-width: calc(100% - 1.5rem);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hv-catalog-stock-badge--in {
  background: #047857;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.hv-catalog-stock-badge--out {
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
}
/* SKU en cuerpo de tarjeta (misma píldora oscura que el antiguo badge agotado) */
.hv-catalog-sku-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  box-sizing: border-box;
}
.hv-catalog-sku-badge__label {
  font-weight: 600;
  opacity: 0.88;
}
.hv-catalog-sku-badge__val {
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-word;
}
/* Bloque SKU + MOQ: gap real (no depender de utilidades Tailwind que falten en app.css) */
.hv-catalog-card-sku-moq-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.hv-catalog-card-sku-moq-stack .hv-catalog-card-moq {
  margin-top: 0;
}
/* MOQ en cuerpo de tarjeta (misma píldora que stock «in», variante warning) */
.hv-catalog-moq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  box-sizing: border-box;
}
.hv-catalog-moq-badge--warning {
  background: #d97706;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.hv-catalog-moq-badge__qty {
  font-weight: 700;
  opacity: 0.95;
}
/* Fila: [◀] [ pista scroll ▶▶▶ ] [▶] — min-width:0 evita que flex rompa el scroll horizontal */
.hv-related-viewport {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}
.hv-related-track-shell {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}
.hv-related-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  touch-action: pan-x;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0 0.4rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.hv-related-track:focus-visible {
  outline: 2px solid var(--red-700);
  outline-offset: 2px;
}
.hv-related-edge-btn {
  display: none;
  flex-shrink: 0;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--gray-600);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
@media (min-width: 640px) {
  .hv-related-edge-btn {
    display: inline-flex;
  }
}
.hv-related-edge-btn:hover {
  color: var(--red-700);
  border-color: #fecaca;
  background: #fef2f2;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.12);
}
/* Misma “card” que el catálogo: ancho fijo + aspect-square; un poco más ancho para título + +/- */
.hv-related-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto !important;
  width: 12.5rem;
  max-width: min(12.5rem, calc(100vw - 5.5rem));
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  .hv-related-card {
    width: 14rem;
    max-width: 14rem;
  }
}
.hv-related-card__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: inherit;
}
/* Misma jerarquía visual que tarjeta del catálogo (título + SKU + precio + MOQ) */
.hv-related-card__inner > .p-4 {
  min-height: 6.5rem;
}
.hv-related-card__inner .text-xs.text-gray-500 {
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.hv-related-card__inner p {
  margin: 0;
}

/* Mensajería: hilo a pantalla completa + panel “Chats” a la derecha (drawer) */
.hv-msg-shell {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 11rem);
}
.hv-msg-panel-thread {
  display: flex;
  flex-direction: column;
  min-height: min(420px, 55vh);
  width: 100%;
}
@media (min-width: 768px) {
  .hv-msg-panel-thread {
    min-height: calc(100vh - 11rem);
    max-height: calc(100vh - 9rem);
  }
}
.hv-msg-sidebar-backdrop {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(15, 23, 42, 0.4);
  border-radius: inherit;
}
.hv-msg-shell.hv-msg-sidebar-open .hv-msg-sidebar-backdrop {
  display: block;
}
@media (min-width: 768px) {
  .hv-msg-shell.hv-msg-sidebar-open .hv-msg-sidebar-backdrop {
    display: block;
  }
}
.hv-msg-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 100%);
  max-width: 320px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid rgb(229 231 235);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.15);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow: hidden;
}
.hv-msg-shell.hv-msg-sidebar-open .hv-msg-sidebar {
  transform: translateX(0);
}
.hv-msg-sidebar-header {
  flex-shrink: 0;
}
.hv-msg-conv-list-inner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Panel global de mensajes: cerrado = display:none para no afectar flex del body/catálogo */
.hv-global-msg-root:not(.hv-global-msg-open) {
  display: none !important;
}
.hv-global-msg-root.hv-global-msg-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100%;
  pointer-events: none;
}
.hv-global-msg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.hv-global-msg-root.hv-global-msg-open .hv-global-msg-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.hv-global-msg-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(20rem, 100vw);
  max-width: 20rem;
  height: 100dvh;
  min-height: 100%;
  background: #fff;
  border-left: 1px solid rgba(3, 105, 161, 0.25);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.2);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  pointer-events: none;
}
.hv-global-msg-root.hv-global-msg-open .hv-global-msg-panel {
  transform: translateX(0);
  pointer-events: auto;
}

/* Cabecera del drawer de mensajes: gris oscuro, texto claro (sin depender de Tailwind) */
.hv-global-msg-header-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.875rem 0.75rem;
  background-color: #1f2937;
  color: #f9fafb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.hv-global-msg-header-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #f9fafb;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  touch-action: manipulation;
}
.hv-global-msg-header-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}
.hv-global-msg-header-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hv-global-msg-header-main.hidden {
  display: none !important;
}
.hv-global-msg-header-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #f9fafb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hv-global-msg-header-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.hv-global-msg-header-badge.hv-global-msg-header-badge--visible {
  display: inline-flex;
}
.hv-global-msg-header-thread {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 0.25rem;
}
.hv-global-msg-header-thread.hidden {
  display: none !important;
}
.hv-global-msg-header-thread-text {
  min-width: 0;
  max-width: 13rem;
  text-align: left;
}
.hv-global-msg-thread-peer-name {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  color: #f9fafb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hv-global-msg-thread-peer-sub {
  font-size: 0.75rem;
  line-height: 1.2;
  color: rgba(249, 250, 251, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hv-global-msg-thread-peer-sub.hidden {
  display: none !important;
}

.hv-global-msg-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.hv-global-msg-list {
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: #fff;
}
.hv-global-msg-back-btn {
  line-height: 1;
  margin-right: 0.125rem;
}
.hv-msg-drawer-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}

/* Hilo de conversación dentro del drawer global */
.hv-global-msg-thread-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #ece7df;
}
.hv-global-msg-thread-wrap.hv-global-msg-thread-wrap--open {
  display: flex;
}
.hv-global-msg-thread-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.5rem 0.25rem;
}
.hv-global-msg-composer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.5rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.hv-global-msg-icon-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  padding: 0;
}
.hv-global-msg-icon-btn:hover {
  background: #f9fafb;
}
.hv-global-msg-icon-svg {
  width: 1.15rem;
  height: 1.15rem;
}
.hv-global-msg-input {
  flex: 1 1 8rem;
  min-width: 0;
  max-height: 5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  resize: vertical;
}
.hv-global-msg-send-btn {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  border: none;
  background: #059669;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.hv-global-msg-send-btn:hover {
  background: #047857;
}
.hv-drawer-msg-row {
  display: flex;
  margin-bottom: 0.5rem;
}
.hv-drawer-msg-row--mine {
  justify-content: flex-end;
}
.hv-drawer-msg-bubble {
  max-width: 88%;
  border-radius: 1rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.hv-drawer-msg-bubble--mine {
  background: #d1fae5;
  color: #111827;
  border-bottom-right-radius: 0.35rem;
}
.hv-drawer-msg-bubble--them {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 0.35rem;
}
.hv-drawer-msg-time {
  font-size: 0.625rem;
  color: #6b7280;
  margin-top: 0.2rem;
  text-align: right;
}
.hv-drawer-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.25rem;
  flex-wrap: nowrap;
}
.hv-drawer-msg-meta--them {
  justify-content: flex-start;
}
.hv-drawer-msg-meta .hv-drawer-msg-time-inline {
  font-size: 0.625rem;
  color: #6b7280;
  line-height: 1;
}
.hv-drawer-msg-bubble--mine .hv-drawer-msg-meta .hv-drawer-msg-time-inline {
  color: rgba(17, 24, 39, 0.55);
}
.hv-drawer-msg-checks {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  color: #8696a0;
}
.hv-drawer-msg-checks--read {
  color: #53bdeb;
}
.hv-drawer-msg-checks svg {
  width: 1.05rem;
  height: 0.75rem;
  display: block;
}
.hv-drawer-msg-checks-svg2 {
  margin-left: -0.45rem;
}
.hv-drawer-msg-bubble img,
.hv-drawer-msg-bubble video {
  max-width: 100%;
  border-radius: 0.5rem;
  max-height: 10rem;
}
.hv-drawer-msg-bubble audio {
  width: 100%;
  max-width: 12rem;
}

.hv-msg-drawer-row:hover {
  background-color: rgba(224 242 254 / 0.65);
}
.hv-msg-drawer-avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(15, 23, 42, 0.12);
}
.hv-msg-drawer-avatar--seller {
  background-color: #0284c7;
  color: #fff;
}
.hv-msg-drawer-avatar--customer {
  background-color: #059669;
  color: #fff;
}
.hv-msg-drawer-avatar--other {
  background-color: #475569;
  color: #fff;
}
.hv-msg-drawer-avatar--compact {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.65rem;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 1px 3px rgba(15, 23, 42, 0.15);
}
.hv-msg-drawer-list-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.hv-msg-drawer-last-at {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: #9ca3af;
  line-height: 1.2;
  white-space: nowrap;
}
.hv-msg-drawer-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9375rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}
.hv-msg-drawer-name--row {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

/* Footer: iconos RRSS (utilidades Tailwind arbitrarias no existen en este app.css) */
.hv-footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hv-footer-social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.hv-footer-social__link:hover {
  color: #fff;
}
.hv-footer-social__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hv-footer-social__link:hover .hv-footer-social__icon {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
}
.hv-footer-social__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  /* Los fills vienen del propio SVG (marcas en color) */
}

/* Panel admin (rolId 1 / 2) */
.hv-admin-tab {
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hv-admin-tab--active {
  background: #fff;
  color: #991b1b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.hv-admin-card {
  background: #fff;
  border: 1px solid var(--border-hv, #e5e7eb);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
}
.hv-admin-card-title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hv-admin-stat {
  background: #fff;
  border: 1px solid var(--border-hv, #e5e7eb);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}
.hv-admin-stat-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}
.hv-admin-stat-value {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.hv-admin-table {
  border-collapse: collapse;
}
.hv-admin-table th,
.hv-admin-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  vertical-align: top;
}
.hv-admin-table th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
}
.hv-admin-table tbody tr:hover {
  background: #f9fafb;
}
.hv-admin-pager-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.8125rem;
  cursor: pointer;
}
.hv-admin-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hv-admin-bars-inner {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 120px;
  padding-top: 0.5rem;
}
.hv-admin-bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  height: 120px;
  justify-content: flex-end;
}
.hv-admin-bar {
  width: 100%;
  max-width: 2.5rem;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border-radius: 0.25rem 0.25rem 0 0;
  min-height: 4px;
}
.hv-admin-bar-label {
  font-size: 0.65rem;
  color: #9ca3af;
}
.hv-admin-bar-val {
  font-size: 0.7rem;
  font-weight: 600;
  color: #374151;
}
