/* =========================================================
   Herrajes Dani — tema hijo de Hummingbird 2.0.0
   Referencia visual: design/ (Claude Design, entregas 1 y 2).
   Hummingbird tiene todo su CSS en @layer: estas reglas (sin layer) le ganan
   sin necesidad de subir especificidad. Ojo: sus !important en layers sí ganan.
   ========================================================= */

/* ---------- 0. Tipografías (servidas desde el tema, licencias en assets/fonts) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
}

/* ---------- 1. Tokens (design/Tokens.dc.html) ---------- */
:root {
  --hd-brand: #3a4a9f;
  --hd-brand-dark: #2b3878;
  --hd-brand-soft: #e6e9f5;
  --hd-ink: #1e2333;
  --hd-ink-muted: #565d73;
  --hd-bg: #eef0f4;
  --hd-surface: #ffffff;
  --hd-border: #d8dce6;
  --hd-divider: #eef0f4;
  --hd-accent: #c2410c;
  --hd-accent-soft: #fdede3;
  --hd-success: #1d7a4e;
  --hd-on-brand-muted: #d6dbf0;
  --hd-on-brand-soft: #c9d1f2;
  --hd-footer-text: #c9cfe8;
  --hd-whatsapp: #1faa59;

  --hd-font-display: "Archivo", "Arial Narrow", sans-serif;
  --hd-font-body: "Figtree", system-ui, sans-serif;

  --hd-space-1: 4px;  --hd-space-2: 8px;  --hd-space-3: 12px; --hd-space-4: 16px;
  --hd-space-5: 24px; --hd-space-6: 32px; --hd-space-7: 48px; --hd-space-8: 64px; --hd-space-9: 72px;

  --hd-radius-sm: 4px;
  --hd-radius-md: 8px;
  --hd-radius-lg: 12px;
  --hd-radius-pill: 999px;
  --hd-shadow-hover: 0 8px 24px rgba(30, 35, 51, .14);
  --hd-shadow-pop: 0 16px 40px rgba(30, 35, 51, .16);
  --hd-container: 1280px;
  --hd-tap: 44px;

  /* Bootstrap 5.3 */
  --bs-primary: var(--hd-brand);
  --bs-primary-rgb: 58, 74, 159;
  --bs-primary-text-emphasis: var(--hd-brand-dark);
  --bs-primary-bg-subtle: var(--hd-brand-soft);
  --bs-primary-border-subtle: #b9c0e2;
  --bs-link-color: var(--hd-brand);
  --bs-link-color-rgb: 58, 74, 159;
  --bs-link-hover-color: var(--hd-brand-dark);
  --bs-link-hover-color-rgb: 43, 56, 120;
  --bs-body-color: var(--hd-ink);
  --bs-body-color-rgb: 30, 35, 51;
  --bs-emphasis-color: var(--hd-ink);
  --bs-secondary-color: var(--hd-ink-muted);
  --bs-tertiary-color: var(--hd-ink-muted);
  --bs-body-bg: var(--hd-bg);
  --bs-tertiary-bg: var(--hd-surface);
  --bs-border-color: var(--hd-border);
  --bs-success: var(--hd-success);
  --bs-body-font-family: var(--hd-font-body);
  --bs-body-font-size: 1rem;
  --bs-border-radius: var(--hd-radius-sm);
  --bs-border-radius-sm: var(--hd-radius-sm);
  --bs-border-radius-lg: var(--hd-radius-md);
  --bs-border-radius-xl: var(--hd-radius-lg);
  --bs-focus-ring-color: rgba(58, 74, 159, .35);
  --bs-box-shadow-md: var(--hd-shadow-hover);
}

/* ---------- 2. Base ---------- */
body {
  background: var(--hd-bg);
  color: var(--hd-ink);
  font-family: var(--hd-font-body);
}

.container,
.container-md {
  --bs-gutter-x: 2rem; /* 16px por lado, como el diseño mobile */
}
@media (min-width: 1400px) {
  .container,
  .container-md {
    max-width: calc(var(--hd-container) + 2rem);
  }
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, .page-title-section h1 {
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  color: var(--hd-ink);
  letter-spacing: 0;
}
h1, .h1, .page-title-section h1 {
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
}

/* :where(:not(.btn)): sin layer, "a" le ganaría al color de los botones de Bootstrap (en layer); :where no suma especificidad */
a:where(:not(.btn)) { color: var(--hd-brand); }

/* --bs-body-bg es el gris de la página: los campos van en blanco */
.form-control,
.form-select { background-color: #fff; }
a:where(:not(.btn)):hover { color: var(--hd-brand-dark); }

.hd-icon { flex-shrink: 0; }

.hd-eyebrow {
  display: inline-block;
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hd-eyebrow--light { color: var(--hd-on-brand-soft); }
.hd-eyebrow--accent { color: var(--hd-accent); }
@media (min-width: 768px) {
  .hd-eyebrow { font-size: 14px; }
}

/* Botones (Bootstrap compila .btn-primary con valores fijos: se pisan las variables) */
.btn {
  --bs-btn-font-family: var(--hd-font-body);
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--hd-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hd-space-2);
}
.btn-primary {
  --bs-btn-bg: var(--hd-brand);
  --bs-btn-border-color: var(--hd-brand);
  --bs-btn-hover-bg: var(--hd-brand-dark);
  --bs-btn-hover-border-color: var(--hd-brand-dark);
  --bs-btn-active-bg: var(--hd-brand-dark);
  --bs-btn-active-border-color: var(--hd-brand-dark);
  --bs-btn-disabled-bg: var(--hd-brand);
  --bs-btn-disabled-border-color: var(--hd-brand);
  --bs-btn-focus-shadow-rgb: 58, 74, 159;
}
.btn-outline-primary {
  --bs-btn-color: var(--hd-brand);
  --bs-btn-border-color: var(--hd-brand);
  --bs-btn-hover-color: var(--hd-brand-dark);
  --bs-btn-hover-bg: var(--hd-brand-soft);
  --bs-btn-hover-border-color: var(--hd-brand);
  --bs-btn-active-color: var(--hd-brand-dark);
  --bs-btn-active-bg: var(--hd-brand-soft);
  --bs-btn-active-border-color: var(--hd-brand);
  --bs-btn-focus-shadow-rgb: 58, 74, 159;
  border-width: 1.5px;
}
.hd-btn-white {
  background: #fff;
  color: var(--hd-brand-dark);
  border: 0;
  height: 50px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 16px;
}
.hd-btn-white:hover,
.hd-btn-white:focus-visible { background: var(--hd-brand-soft); color: var(--hd-brand-dark); }
.hd-btn-ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .6);
  height: 50px;
  padding: 0 20px;
  font-size: 16px;
}
.hd-btn-ghost:hover,
.hd-btn-ghost:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); border-color: #fff; }

.hd-see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--hd-tap);
  font-weight: 600;
  font-size: 15px;
  color: var(--hd-brand);
  text-decoration: none;
  white-space: nowrap;
}
.hd-see-all:hover { color: var(--hd-brand-dark); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--hd-brand);
  outline-offset: 2px;
}

/* ---------- 3. Header ---------- */
.header {
  background: var(--hd-surface);
}

/* 3.1 Barra superior */
.hd-topbar {
  background: var(--hd-brand-dark);
  color: #fff;
  font-size: 13px;
}
.hd-topbar__row {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hd-space-5);
}
.hd-topbar__left,
.hd-topbar__right {
  flex: 1 1 0;
  align-items: center;
}
.hd-topbar__left { gap: 20px; }
.hd-topbar__right { justify-content: flex-end; gap: 4px; }
.hd-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
}
.hd-topbar__link:hover { color: #fff; text-decoration: underline; }
.hd-topbar__promo {
  display: inline-flex;
  align-items: center;
  gap: var(--hd-space-2);
  font-weight: 600;
  white-space: nowrap;
}
.hd-topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #f26b1d;
}
@media (min-width: 768px) {
  .hd-topbar__row { min-height: 38px; justify-content: space-between; }
}

/* Cuenta y carrito dentro de la barra superior (desktop) */
.hd-topbar .header-block__action-btn {
  color: #fff;
  font-size: 13px;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 0;
}
.hd-topbar .header-block__action-btn:hover,
.hd-topbar .header-block__action-btn:focus { color: #fff; text-decoration: underline; }
.hd-topbar .header-block__title { display: inline !important; }
.hd-topbar .dropdown-toggle::after { border-top-color: #fff; }
.hd-topbar .hd-cart {
  height: 28px;
  padding: 0 14px;
  border-radius: var(--hd-radius-pill);
  background: #fff;
  color: var(--hd-brand-dark);
  font-weight: 700;
  gap: var(--hd-space-2);
  margin-left: 4px;
}
.hd-topbar .hd-cart:hover,
.hd-topbar .hd-cart:focus { color: var(--hd-brand-dark); text-decoration: none; background: var(--hd-brand-soft); }
.hd-cart__badge,
.hd-main__action .header-block__badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--hd-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* 3.2 Fila principal */
.hd-main {
  background: var(--hd-surface);
  border-bottom: 0;
  padding: 0;
}
.hd-main__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--hd-space-2);
  row-gap: 0;
  padding-block: var(--hd-space-2) var(--hd-space-4);
}
.hd-main__menu-btn {
  width: var(--hd-tap);
  height: var(--hd-tap);
  padding: 0;
  margin-left: -10px;
  color: var(--hd-ink);
  border: 0;
}
.hd-main__logo { margin-right: auto; }
.header-bottom .hd-main__logo .navbar-brand .logo {
  max-height: 36px;
  max-width: 150px;
  width: auto;
  display: block;
}
.hd-main__search {
  order: 10;
  flex: 1 0 100%;
  margin-top: var(--hd-space-2);
}
.hd-main__action .header-block__action-btn {
  width: var(--hd-tap);
  height: var(--hd-tap);
  padding: 0;
  justify-content: center;
  color: var(--hd-ink);
}
/* En mobile, Hummingbird mueve la píldora del carrito acá: se muestra solo el ícono con contador */
.hd-main__action .hd-cart { background: none; height: var(--hd-tap); padding: 0; margin: 0; }
.hd-main__action .hd-cart__title,
.hd-main__action .header-block__title { display: none !important; }
.hd-main__action .hd-cart .hd-icon { width: 24px; height: 24px; }
.hd-main__action .hd-cart__badge,
.hd-main__action .header-block__badge {
  position: absolute;
  top: 4px;
  right: 2px;
}
.hd-main__action .ps-customersignin .hd-icon { width: 24px; height: 24px; }

@media (min-width: 768px) {
  .hd-main__row { flex-wrap: nowrap; column-gap: var(--hd-space-5); padding-block: var(--hd-space-5); }
  .hd-main__search { order: 0; flex: 1 1 auto; margin-top: 0; }
  .header-bottom .hd-main__logo .navbar-brand .logo { max-height: 52px; max-width: 200px; }
  .hd-main__logo { margin-right: 0; }
}
@media (min-width: 1200px) {
  .hd-main__row { min-height: 92px; column-gap: var(--hd-space-7); padding-block: 0; }
}

/* 3.3 Buscador */
.hd-search { margin: 0; min-width: 0; position: relative; }
.hd-search__form {
  display: flex;
  height: 48px;
  border: 2px solid var(--hd-brand);
  border-radius: var(--hd-radius-sm);
  overflow: hidden;
  background: #fff;
}
.hd-search__input.form-control {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0 16px;
  font-size: 15px;
  color: var(--hd-ink);
  background: transparent;
  box-shadow: none;
}
.hd-search__input::placeholder { color: var(--hd-ink-muted); opacity: 1; }
.hd-search__input::-webkit-search-cancel-button { display: none; }
.hd-search .ps-searchbar__clear {
  position: static;
  transform: none;
  align-self: center;
  margin-right: 4px;
  padding: 6px;
  color: var(--hd-ink-muted);
}
.hd-search__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hd-space-2);
  width: 52px;
  border: 0;
  background: var(--hd-brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.hd-search__submit:hover { background: var(--hd-brand-dark); }
.hd-search__submit-text { display: none; }
@media (min-width: 992px) {
  .hd-search__submit { width: auto; padding: 0 22px; }
  .hd-search__submit-text { display: inline; }
}
.hd-search .ps-searchbar__dropdown {
  left: 0;
  right: 0;
  max-width: none;
  top: calc(100% + 4px);
  z-index: 1070;
}

/* 3.4 Asesoramiento */
.hd-help {
  align-items: center;
  gap: var(--hd-space-3);
  flex-shrink: 0;
  color: var(--hd-ink);
  text-decoration: none;
}
.hd-help:hover { color: var(--hd-ink); }
.hd-help:hover strong { color: var(--hd-brand); }
.hd-help__icon {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--hd-brand-soft);
  color: var(--hd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-help__text { display: flex; flex-direction: column; line-height: 1.25; }
.hd-help__text strong { font-size: 14px; font-weight: 700; }
.hd-help__text span { font-size: 13px; color: var(--hd-ink-muted); }

/* 3.5 Menú principal */
.hd-nav { background: var(--hd-surface); }
.hd-nav > .container { position: relative; }
@media (min-width: 1200px) {
  .hd-nav { border-top: 1px solid var(--hd-border); border-bottom: 1px solid var(--hd-border); }
}
@media (max-width: 1199.98px) {
  .hd-nav { border-bottom: 1px solid var(--hd-border); }
}
.hd-nav .ps-mainmenu--desktop { display: block; order: 0; }
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree {
  gap: 30px;
  flex-wrap: nowrap;
}
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li { position: static; }
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-item-wrapper {
  height: 54px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  gap: 4px;
}
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link {
  padding: 0;
  color: var(--hd-ink);
  font-family: var(--hd-font-display);
  font-stretch: 90%;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle {
  padding: 0;
  color: var(--hd-ink);
}
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle::after { display: none; }
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle[aria-expanded=true] .hd-icon { transform: rotate(180deg); }
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li:hover .ps-mainmenu__tree-item-wrapper,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.current .ps-mainmenu__tree-item-wrapper,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li:has([aria-expanded=true]) .ps-mainmenu__tree-item-wrapper {
  border-bottom-color: var(--hd-brand);
}
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li:hover .ps-mainmenu__tree-link,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li:hover .ps-mainmenu__tree-dropdown-toggle,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.current .ps-mainmenu__tree-link,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li:has([aria-expanded=true]) .ps-mainmenu__tree-link,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li:has([aria-expanded=true]) .ps-mainmenu__tree-dropdown-toggle {
  color: var(--hd-brand);
}
/* "Ofertas" (.hd-menu-ofertas, ver modules/ps_mainmenu): a la derecha, en naranja óxido con el badge % */
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.hd-menu-ofertas { margin-left: auto; }
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.hd-menu-ofertas a,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.hd-menu-ofertas:hover a {
  color: var(--hd-accent);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hd-menu-ofertas > .ps-mainmenu__tree-item-wrapper > a::before,
.ps-mainmenu--mobile .hd-menu-ofertas a::before {
  content: "%";
  background: var(--hd-accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--hd-radius-sm);
  font-size: 12px;
  line-height: 1.2;
}
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li.hd-menu-ofertas:hover .ps-mainmenu__tree-item-wrapper { border-bottom-color: var(--hd-accent); }

/* 3.6 Megamenú */
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .submenu.hd-mega {
  left: 1rem;
  right: 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 1060;
}
.hd-mega__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: var(--hd-space-6);
  padding: var(--hd-space-6);
  background: #fff;
  border: 1px solid var(--hd-border);
  border-top: 3px solid var(--hd-brand);
  border-radius: 0 0 var(--hd-radius-md) var(--hd-radius-md);
  box-shadow: var(--hd-shadow-pop);
}
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__left.hd-mega__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--hd-space-6);
  row-gap: 4px;
  align-content: start;
  padding: 0;
  border: 0;
}
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__left-item,
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__left-item.active {
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--hd-divider);
  background: none;
  color: var(--hd-ink);
  font-size: 15px;
}
/* Los nombres vienen en MAYÚSCULAS del sistema: en el menú se muestran en tipo oración */
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__left-item { display: block; text-transform: lowercase; }
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__left-item::first-letter { text-transform: uppercase; }
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__left-item:hover,
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__left-item:focus { background: none; color: var(--hd-brand); }
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__right { grid-column: 1; padding: 0; }
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__right:empty,
.ps-mainmenu:is(.ps-mainmenu--desktop) .hd-mega .submenu__right:not(:has(.submenu__right-items)) { display: none; }
.hd-mega__card {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--hd-space-4);
  background: var(--hd-bg);
  border-radius: var(--hd-radius-md);
  color: var(--hd-ink);
  text-decoration: none;
  align-self: start;
}
.hd-mega__card-media {
  height: 150px;
  background: #fff;
  border-radius: var(--hd-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hd-brand-soft);
  overflow: hidden;
}
.hd-mega__card-media img { width: 100%; height: 100%; object-fit: contain; }
.hd-mega__card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--hd-brand);
}
.hd-mega__card:hover .hd-mega__card-link { text-decoration: underline; }

/* 3.7 Menú mobile (offcanvas de Hummingbird) */
.ps-mainmenu--mobile.offcanvas { background: var(--hd-surface); }
.ps-mainmenu--mobile .menu--child .menu__link { display: block; text-transform: lowercase; }
.ps-mainmenu--mobile .menu--child .menu__link::first-letter { text-transform: uppercase; }
.ps-mainmenu--mobile .menu__link {
  font-family: var(--hd-font-display);
  font-stretch: 90%;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--hd-ink);
}
.ps-mainmenu--mobile .menu--child .menu__link {
  font-family: var(--hd-font-body);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
}
.ps-mainmenu--mobile .menu__title {
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  text-transform: uppercase;
}
.ps-mainmenu--mobile .hd-menu-ofertas a { color: var(--hd-accent); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- 4. Secciones de productos ---------- */
.hd-products { padding-bottom: var(--hd-space-7); }
.hd-products .module-products.container { padding-inline: calc(var(--bs-gutter-x) * .5); }
.hd-products__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hd-space-4);
  margin-bottom: var(--hd-space-4);
}
.section-title {
  display: flex;
  align-items: center;
  gap: var(--hd-space-3);
  margin: 0;
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--hd-ink);
}
.section-title .hd-icon--aro { color: var(--hd-brand); width: 18px; height: 18px; }
.hd-products__head .hd-see-all { font-size: 14px; }
.hd-products__head .hd-carousel-nav + .hd-see-all { margin-left: 0; }
.hd-carousel-nav { gap: var(--hd-space-2); margin-left: auto; }
.hd-carousel-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--hd-border);
  background: #fff;
  color: var(--hd-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-carousel-nav__btn:hover { border-color: var(--hd-brand); color: var(--hd-brand); }
.hd-carousel-nav__btn:disabled { opacity: .4; }
.hd-products__all {
  width: 100%;
  height: 48px;
  margin-top: var(--hd-space-4);
  background: #fff;
}
@media (min-width: 768px) {
  .hd-products { padding-bottom: var(--hd-space-9); }
  .hd-products__head { margin-bottom: var(--hd-space-5); }
  .section-title { font-size: 32px; }
  .section-title .hd-icon--aro { width: 22px; height: 22px; }
  .hd-products__head .hd-see-all { font-size: 15px; }
}

/* Grilla */
.products {
  gap: var(--hd-space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .products { gap: var(--hd-space-5); }
}
@media (min-width: 992px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  #index .products,
  .hd-products .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Destacados: en mobile se muestran 4 y el botón "Ver todos los destacados" (diseño) */
@media (max-width: 767.98px) {
  .ps-featuredproducts .products > .product-miniature:nth-child(n+5) { display: none; }
}

/* Sección deslizable (Novedades) */
.hd-products--carousel .products {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-inline: -16px;
  padding-inline: 16px;
  scroll-padding-inline: 16px;
}
.hd-products--carousel .products::-webkit-scrollbar { display: none; }
.hd-products--carousel .products > .product-miniature {
  flex: 0 0 calc((100% - var(--hd-space-3)) / 2.15);
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .hd-products--carousel .products > .product-miniature { flex-basis: calc((100% - 2 * var(--hd-space-5)) / 3); }
}
@media (min-width: 992px) {
  .hd-products--carousel .products { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .hd-products--carousel .products > .product-miniature { flex-basis: calc((100% - 4 * var(--hd-space-5)) / 5); }
}
.hd-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--hd-space-4);
}
.hd-dots span { width: 8px; height: 6px; border-radius: 3px; background: var(--hd-border); transition: width .2s; }
.hd-dots span.is-active { width: 28px; background: var(--hd-brand); }

/* ---------- 5. Tarjeta de producto ---------- */
.product-miniature__inner {
  background: var(--hd-surface);
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.product-miniature__inner:hover,
.product-miniature__inner:has(:focus-visible) {
  border-color: var(--hd-brand);
  box-shadow: var(--hd-shadow-hover);
}
.product-miniature__top {
  position: relative;
  border-radius: 0;
  background: #fff;
  border-bottom: 1px solid var(--hd-divider);
}
.product-miniature__image-link { display: block; aspect-ratio: 1 / 1; }
.product-miniature__image-link picture { display: block; width: 100%; height: 100%; }
.product-miniature__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform .25s;
}
.product-miniature__inner:hover .product-miniature__image { transform: scale(1.04); }

.hd-flags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.hd-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: var(--hd-radius-sm);
  background: var(--hd-brand);
  color: #fff;
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hd-badge--accent { background: var(--hd-accent); }
.hd-badge--dark { background: var(--hd-ink); }

.product-miniature__bottom {
  padding: 10px;
  gap: var(--hd-space-2);
}
.product-miniature__infos { gap: var(--hd-space-2); }
.product-miniature__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: calc(3 * 1.35em);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--hd-ink);
  text-decoration: none;
}
.product-miniature__inner:hover .product-miniature__title { color: var(--hd-brand); }
.product-miniature__prices {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin-top: 2px;
}
.product-miniature__discount-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 16px;
  font-size: 12px;
  line-height: 16px;
}
.product-miniature__regular-price { color: var(--hd-ink-muted); text-decoration: line-through; }
.product-miniature__off { color: var(--hd-accent); font-weight: 700; }
.product-miniature__price {
  font-family: var(--hd-font-display);
  font-stretch: 88%;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  color: var(--hd-ink);
  font-variant-numeric: tabular-nums;
}
.product-miniature__note {
  min-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 16px;
  color: var(--hd-ink-muted);
}
.product-miniature__actions { margin-top: 6px; }
.product-miniature__form { display: block; }
.product-miniature__add,
.product-miniature__details {
  width: 100%;
  height: var(--hd-tap);
  font-size: 15px;
}
.product-miniature__details { font-size: 14px; background: #fff; }

/* Textos largos o cortos según el ancho de la tarjeta */
.product-miniature .hd-short { display: none; }
@container product-miniature (width < 13.5rem) {
  .product-miniature .hd-long { display: none; }
  .product-miniature .hd-short { display: inline; }
}
@container product-miniature (width >= 13.5rem) {
  .product-miniature__bottom { padding: var(--hd-space-4); }
  .product-miniature__title { font-size: 14px; }
  .product-miniature__price { font-size: 24px; }
  .product-miniature__discount-price { font-size: 13px; }
  .product-miniature__image { padding: 18px; }
  .hd-flags { top: 12px; left: 12px; }
}

/* Sin stock */
.product-miniature--sin-stock .product-miniature__image { opacity: .45; filter: grayscale(1); }
.product-miniature--sin-stock .product-miniature__price { color: var(--hd-ink-muted); }

/* Estrellas de reseñas en listados: el diseño no las muestra */
.product-miniature .product-list-review { display: none !important; }

/* ---------- 6. Home ---------- */
#index .page-content--home { padding-top: var(--hd-space-4); gap: 0; } /* Hummingbird: grid con gap 2.5rem */
@media (min-width: 768px) {
  #index .page-content--home { padding-top: var(--hd-space-5); }
}

/* 6.1 Hero */
.hd-hero__carousel {
  position: relative;
  background: var(--hd-brand-dark);
  border-radius: var(--hd-radius-lg);
  overflow: hidden;
  color: #fff;
}
.hd-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--hd-space-3);
  padding: var(--hd-space-5) 20px 56px;
}
.hd-hero__title {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: .98;
  text-transform: uppercase;
}
.hd-hero__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--hd-on-brand-muted);
}
.hd-hero__media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hd-space-2);
  margin-top: var(--hd-space-2);
}
.hd-hero__img {
  background: #fff;
  border-radius: var(--hd-radius-md);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hd-hero__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.hd-hero__img:nth-child(4) { display: none; }
.hd-hero__actions { display: flex; gap: var(--hd-space-3); margin-top: var(--hd-space-2); }
.hd-hero__actions .hd-btn-white { flex: 1 1 auto; }
.hd-hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.hd-hero__controls > * { pointer-events: auto; }
.hd-hero__dots { display: flex; align-items: center; gap: var(--hd-space-2); }
.hd-hero__dots button {
  width: 8px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .4);
  transition: width .2s;
}
.hd-hero__dots button.active { width: 28px; background: #fff; }
.hd-hero__count { font-size: 13px; color: var(--hd-on-brand-muted); margin-left: var(--hd-space-2); }
.hd-hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-hero__arrow:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

@media (min-width: 992px) {
  /* Alto mínimo 440 (diseño) que crece si el texto no entra; las fotos acompañan ese alto */
  .hd-hero__content {
    min-height: 440px;
    display: grid;
    grid-template-columns: minmax(0, 564px) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 56px;
    row-gap: 20px;
    align-content: start;
    padding: 56px 32px 48px 56px;
  }
  .hd-hero__content > .hd-eyebrow { grid-column: 1; align-self: start; justify-self: start; }
  .hd-hero__title { grid-column: 1; font-size: 60px; }
  .hd-hero__text { grid-column: 1; font-size: 18px; max-width: 460px; }
  .hd-hero__actions { grid-column: 1; grid-row: 4; align-self: end; margin-top: 8px; }
  .hd-hero__actions .hd-btn-white { flex: 0 0 auto; }
  .hd-hero__media {
    grid-column: 2;
    grid-row: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--hd-space-3);
    margin: -24px 0 -16px;
    align-self: stretch;
  }
  /* Las fotos no aportan alto propio: la grilla se estira a lo que ocupe el texto */
  .hd-hero__img { aspect-ratio: auto; position: relative; min-height: 0; }
  .hd-hero__img img { position: absolute; inset: 0; padding: 10px; }
  .hd-hero__img:nth-child(4) { display: flex; }
  /* En desktop quedan las flechas junto a los botones (el diseño no muestra los puntos) */
  .hd-hero__controls { left: 520px; right: auto; bottom: 51px; } /* centradas con los botones (50 px, a 48 px del borde) */
  .hd-hero__dots { display: none; }
  .hd-hero__arrows { gap: var(--hd-space-2); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Ancho intermedio: columnas proporcionales y puntos en vez de flechas */
  .hd-hero__content { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 40px; padding: 48px 32px 64px 48px; }
  .hd-hero__media { margin: -16px 0 -32px; }
  .hd-hero__title { font-size: 48px; }
  .hd-hero__controls { left: 48px; bottom: 26px; }
  .hd-hero__dots { display: flex; }
  .hd-hero__arrow { display: none; } /* .hd-hero__arrows lleva d-md-flex (!important en layer): se ocultan los botones */
}
@media (min-width: 1400px) {
  .hd-hero__content { grid-template-columns: 564px minmax(0, 1fr); }
}

/* 6.2 Empresa + accesos */
.hd-intro {
  padding-block: 40px var(--hd-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--hd-space-5);
}
.hd-intro__grid { display: grid; gap: var(--hd-space-3); }
.hd-intro__head { display: flex; flex-direction: column; gap: var(--hd-space-3); }
.hd-intro__title {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}
.hd-intro__body p { margin: 0; font-size: 16px; line-height: 1.55; }
.hd-intro__body p + p { margin-top: var(--hd-space-3); }
.hd-accesos { display: flex; flex-direction: column; border-top: 1px solid var(--hd-border); }
.hd-acceso {
  display: flex;
  align-items: center;
  gap: var(--hd-space-4);
  padding: var(--hd-space-4) 0;
  border-bottom: 1px solid var(--hd-border);
  color: var(--hd-ink);
  text-decoration: none;
}
.hd-acceso .hd-icon--aro { color: var(--hd-brand); width: 20px; height: 20px; }
.hd-acceso__text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.hd-acceso__title {
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}
.hd-acceso__desc { font-size: 14px; color: var(--hd-ink-muted); line-height: 1.45; }
.hd-acceso__arrow { color: var(--hd-brand); }
.hd-acceso:hover { color: var(--hd-ink); }
.hd-acceso:hover .hd-acceso__title { color: var(--hd-brand); }
@media (min-width: 768px) {
  .hd-intro { padding-block: var(--hd-space-9); gap: 40px; }
  .hd-intro__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hd-space-8); align-items: start; }
  .hd-intro__head { gap: 14px; }
  .hd-intro__title { font-size: 44px; }
  .hd-intro__body { padding-top: 30px; }
  .hd-intro__body p { font-size: 18px; line-height: 1.6; }
  .hd-accesos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hd-space-5); border: 0; }
  .hd-acceso {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-md);
    padding: 20px 22px;
    transition: border-color .15s, box-shadow .15s;
  }
  .hd-acceso:hover { border-color: var(--hd-brand); box-shadow: var(--hd-shadow-hover); }
  .hd-acceso .hd-icon--aro { width: 26px; height: 26px; }
  .hd-acceso__title { font-size: 20px; }
  .hd-acceso__desc { font-size: 15px; }
}

/* 6.3 Banner herramientas */
.hd-banner-wrap { padding-bottom: var(--hd-space-7); }
.hd-banner {
  position: relative;
  overflow: hidden;
  background: var(--hd-brand);
  border-radius: var(--hd-radius-lg);
  color: #fff;
  padding: var(--hd-space-5) 20px;
}
.hd-banner__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hd-banner__ring--big { width: 420px; height: 420px; right: -220px; top: -80px; border: 46px solid rgba(255, 255, 255, .08); }
.hd-banner__ring--small { display: none; }
.hd-banner__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hd-banner__title {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}
.hd-banner__media {
  background: #fff;
  border-radius: var(--hd-radius-md);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hd-banner__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.hd-banner .hd-btn-white { height: 48px; font-size: 15px; color: var(--hd-brand); }
.hd-banner__note { font-size: 14px; color: var(--hd-on-brand-muted); }
@media (min-width: 768px) {
  .hd-banner-wrap { padding-bottom: var(--hd-space-9); }
  .hd-banner { height: 290px; padding: 0 56px; display: flex; align-items: center; }
  .hd-banner__ring--big { left: calc(760px - 56px); right: auto; }
  .hd-banner__ring--small { display: block; width: 200px; height: 200px; left: calc(1120px - 56px); top: 120px; border: 22px solid rgba(255, 255, 255, .1); }
  .hd-banner__content {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 300px);
    justify-content: space-between;
    column-gap: var(--hd-space-7);
    row-gap: 14px;
  }
  .hd-banner__content > * { grid-column: 1; }
  .hd-banner__content > .hd-eyebrow { justify-self: start; }
  .hd-banner__title { font-size: 44px; }
  .hd-banner__media { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 300px; height: 196px; }
  .hd-banner .hd-btn-white { justify-self: start; margin-top: 6px; padding: 0 22px; }
}

/* 6.4 Catálogos */
.hd-catalogos-wrap { padding-bottom: var(--hd-space-7); }
.hd-catalogos {
  background: var(--hd-surface);
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-lg);
  padding: var(--hd-space-5) 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hd-space-4);
}
.hd-catalogos__icon {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: var(--hd-brand-soft);
  color: var(--hd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hd-catalogos__text { display: flex; flex-direction: column; gap: var(--hd-space-2); }
.hd-catalogos__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
}
.hd-catalogos__desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--hd-ink-muted); }
.hd-catalogos__btn { height: 48px; padding: 0 22px; font-weight: 700; width: 100%; }
@media (min-width: 768px) {
  .hd-catalogos-wrap { padding-bottom: var(--hd-space-9); }
  .hd-catalogos { flex-direction: row; align-items: center; gap: var(--hd-space-5); padding: var(--hd-space-6) 40px; }
  .hd-catalogos__icon { width: 72px; height: 72px; border-radius: 36px; }
  .hd-catalogos__text { flex: 1 1 auto; }
  .hd-catalogos__title { font-size: 32px; }
  .hd-catalogos__desc { font-size: 16px; }
  .hd-catalogos__btn { width: auto; flex-shrink: 0; }
}

/* 6.5 Beneficios */
.hd-reassurance {
  background: var(--hd-surface);
  border-top: 1px solid var(--hd-border);
  border-bottom: 1px solid var(--hd-border);
  margin-bottom: var(--hd-space-8);
}
.hd-reassurance__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hd-space-5) var(--hd-space-4);
  padding-block: var(--hd-space-5);
}
.hd-reassurance__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hd-space-3);
}
.hd-reassurance__icon {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--hd-brand-soft);
  color: var(--hd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hd-reassurance__item > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.hd-reassurance__item strong {
  font-family: var(--hd-font-display);
  font-stretch: 90%;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hd-reassurance__item strong + span { font-size: 13px; color: var(--hd-ink-muted); }
@media (min-width: 992px) {
  .hd-reassurance__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: var(--hd-space-6); }
  .hd-reassurance__item { flex-direction: row; align-items: center; gap: var(--hd-space-4); }
  .hd-reassurance__icon { width: 52px; height: 52px; border-radius: 26px; }
  .hd-reassurance__item strong { font-size: 18px; }
  .hd-reassurance__item strong + span { font-size: 14px; }
}

/* ---------- 7. Newsletter, footer y botón de WhatsApp ---------- */
.footer { background: var(--hd-brand-dark); color: #fff; margin-top: 0; }
.hd-newsletter { background: var(--hd-brand); color: #fff; }
.hd-newsletter__row {
  display: flex;
  flex-direction: column;
  gap: var(--hd-space-4);
  padding-block: var(--hd-space-6);
}
.hd-newsletter__text { display: flex; flex-direction: column; gap: 4px; }
.hd-newsletter__title {
  margin: 0;
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}
.hd-newsletter__lead { margin: 0; font-size: 14px; color: var(--hd-on-brand-muted); }
.hd-newsletter__form { display: flex; flex-direction: column; gap: var(--hd-space-2); flex-grow: 1; }
.hd-newsletter__label { font-size: 13px; color: var(--hd-on-brand-muted); }
.hd-newsletter__fields { display: flex; flex-direction: column; gap: var(--hd-space-2); }
.hd-newsletter__fields .form-control { height: 48px; border: 0; border-radius: var(--hd-radius-sm); padding: 0 16px; font-size: 15px; }
.hd-newsletter__submit {
  height: 48px;
  padding: 0 24px;
  border: 0;
  background: #fff;
  color: var(--hd-brand-dark);
  font-weight: 700;
  font-size: 15px;
}
.hd-newsletter__submit:hover { background: var(--hd-brand-soft); color: var(--hd-brand-dark); }
.hd-newsletter__consent { font-size: 12px; color: var(--hd-on-brand-muted); }
.hd-newsletter__consent a { color: #fff; }
@media (min-width: 768px) {
  .hd-newsletter__row { flex-direction: row; align-items: center; gap: var(--hd-space-7); padding-block: 36px; }
  .hd-newsletter__text { width: 420px; flex-shrink: 0; }
  .hd-newsletter__title { font-size: 28px; }
  .hd-newsletter__lead { font-size: 15px; }
  .hd-newsletter__fields { flex-direction: row; }
  .hd-newsletter__fields .form-control { flex-grow: 1; }
}

.hd-footer { background: var(--hd-brand-dark); color: #fff; padding: 0; }
.hd-footer__grid {
  display: flex;
  flex-direction: column;
  padding-block: var(--hd-space-2) var(--hd-space-6);
}
.hd-footer__brand { order: 10; display: flex; flex-direction: column; gap: 20px; padding-top: var(--hd-space-5); }
.hd-footer__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.hd-footer__desc { margin: 0; color: var(--hd-footer-text); font-size: 15px; line-height: 1.5; }
.hd-footer__social { display: flex; gap: 10px; }
.hd-footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-footer__social a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.hd-footer .footer-block { position: relative; padding: 0; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.hd-footer .footer-block__title {
  position: relative;
  margin: 0;
  padding: 18px 0;
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.hd-footer .footer-block__title a { color: #fff; text-decoration: none; }
.hd-footer .footer-block__title button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: none;
  border: 0;
  color: #fff;
}
.hd-footer .footer-block__title button[aria-expanded=true] .hd-icon { transform: rotate(45deg); }
.hd-footer .footer-block__list { margin: 0 0 var(--hd-space-4); padding: 0; list-style: none; }
.hd-footer .footer-block__list a {
  display: inline-block;
  padding: 5px 0;
  color: var(--hd-footer-text);
  font-size: 15px;
  text-decoration: none;
}
.hd-footer .footer-block__list a:hover { color: #fff; text-decoration: underline; }
.hd-footer__contact { border-bottom: 0 !important; }
.hd-footer__contact .footer-block__title { padding-bottom: 6px; }
.hd-footer__contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hd-footer__contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--hd-footer-text); font-size: 15px; line-height: 1.45; }
.hd-footer__contact-list .hd-icon { margin-top: 2px; }
.hd-footer__contact-list a { color: var(--hd-footer-text); }
.hd-footer__contact-list a:hover { color: #fff; }
.hd-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.hd-footer__bottom-row {
  display: flex;
  justify-content: space-between;
  gap: var(--hd-space-4);
  padding-block: 18px;
  font-size: 13px;
  color: #aeb6db;
}
@media (min-width: 768px) {
  .hd-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-block: 56px 48px;
  }
  .hd-footer__brand { order: 0; padding-top: 0; }
  .hd-footer__logo img { height: 48px; }
  .hd-footer .footer-block { border: 0; }
  .hd-footer .footer-block__title { padding: 0 0 10px; }
  .hd-footer .footer-block__title button { display: none; }
  .hd-footer .footer-block__content.collapse { display: block; }
  .hd-footer .footer-block__list { margin: 0; }
  .hd-footer__contact .footer-block__title { padding-bottom: 6px; }
}
@media (max-width: 991.98px) and (min-width: 768px) {
  .hd-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.hd-whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1030;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hd-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.hd-whatsapp-fab:hover { color: #fff; background: #178a48; }
@media (min-width: 768px) {
  .hd-whatsapp-fab { right: 32px; bottom: 32px; width: 60px; height: 60px; }
}

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb__wrapper { background: transparent; margin-bottom: var(--hd-space-3); }
.breadcrumb {
  --bs-breadcrumb-padding-y: 14px;
  --bs-breadcrumb-font-size: 13px;
  --bs-breadcrumb-item-padding-x: 8px;
  --bs-breadcrumb-divider-color: var(--hd-ink-muted);
  --bs-breadcrumb-item-active-color: var(--hd-ink);
  gap: 8px;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--hd-ink-muted);
  display: inline-block;
  vertical-align: middle;
}
.breadcrumb-item { display: inline-flex; align-items: center; }
.breadcrumb-item a { color: var(--hd-brand); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
/* Los nombres del sistema vienen en MAYÚSCULAS: en la miga de pan, tipo oración */
.breadcrumb-item > span { color: var(--hd-ink); }
.breadcrumb-item a span,
.breadcrumb-item > span { display: inline-block; text-transform: lowercase; }
.breadcrumb-item a span::first-letter,
.breadcrumb-item > span::first-letter { text-transform: uppercase; }
@media (min-width: 768px) {
  .breadcrumb { --bs-breadcrumb-font-size: 14px; --bs-breadcrumb-padding-y: 18px; }
  .breadcrumb__wrapper { margin-bottom: var(--hd-space-2); }
}

/* ---------- 9. Ficha de producto ---------- */
.hd-product.product__container {
  display: flex;
  flex-direction: column;
  gap: var(--hd-space-4);
}
@media (min-width: 992px) {
  .hd-product.product__container {
    display: grid;
    grid-template-columns: minmax(0, 641fr) minmax(0, 584fr);
    gap: 55px;
    align-items: start;
  }
}

/* 9.1 Galería */
.hd-product .product__images { margin: 0; }
.hd-product .product__carousel,
.hd-product .product__no-image {
  position: relative;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
}
.hd-product .product__carousel .carousel-item { aspect-ratio: 1 / 1; }
.hd-product .product__carousel .carousel-item picture { display: block; width: 100%; height: 100%; }
.hd-product .product__carousel .carousel-item img { width: 100%; height: 100%; object-fit: contain; padding: var(--hd-space-5); }
.hd-product .hd-flags { top: 16px; left: 16px; }
.hd-product .carousel-control-prev,
.hd-product .carousel-control-next { display: none; }
.hd-product .product__zoom {
  display: flex !important;
  top: 12px;
  right: 12px;
  bottom: auto;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--hd-border);
  box-shadow: none;
  color: var(--hd-ink);
  align-items: center;
  justify-content: center;
}
.hd-product .product__zoom:hover { border-color: var(--hd-brand); color: var(--hd-brand); }
.hd-product .product__thumbnails { margin: var(--hd-space-3) 0 0; }
.hd-product .product__thumbnails-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hd-space-3);
  padding: 0;
}
.hd-product .product__thumbnail {
  width: 70px;
  height: 70px;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
  padding: 6px;
  overflow: hidden;
}
.hd-product .product__thumbnail.active { border: 2px solid var(--hd-brand); padding: 5px; }
.hd-product .product__thumbnail .product__thumbnail-image { outline: 0 !important; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 768px) {
  .hd-product .product__thumbnail { width: 96px; height: 96px; }
  .hd-product .product__thumbnails { margin-top: var(--hd-space-4); }
}

/* 9.2 Columna de compra */
.hd-product .product__right { display: flex; flex-direction: column; gap: var(--hd-space-4); }
.hd-product .product__right > * { margin: 0; }
.hd-product__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--hd-space-2) var(--hd-space-4);
  font-size: 13px;
  color: var(--hd-ink-muted);
}
@media (min-width: 992px) { .hd-product__meta { justify-content: flex-start; } }
.hd-product__meta .product-comments-additional-info { display: flex; margin: 0; }
.hd-review-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hd-brand);
  font-size: 13px;
  text-decoration: none;
}
.hd-review-link:hover { text-decoration: underline; }
.hd-stars { display: inline-flex; gap: 1px; color: #a3a9bd; }
.hd-product .product__name {
  font-size: 32px;
  line-height: 1;
  margin: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 992px) {
  .hd-product .product__name { font-size: 48px; margin-top: -4px; }
}

.hd-product .product__prices { font-size: inherit; line-height: normal; }
.hd-product .product__prices-block { gap: var(--hd-space-3); }
.hd-price { display: flex; align-items: center; flex-wrap: wrap; gap: var(--hd-space-3); }
.hd-product .product__price {
  font-family: var(--hd-font-display);
  font-stretch: 88%;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--hd-ink);
  font-variant-numeric: tabular-nums;
}
.hd-price .hd-badge { font-size: 14px; padding: 4px 8px; }
.hd-price__sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: -4px;
  font-size: 14px;
  color: var(--hd-ink-muted);
}
.hd-price__sub .product__regular-price { color: var(--hd-ink-muted); }
.hd-price__save { color: var(--hd-accent); font-weight: 700; }
.hd-product .product__tax-label { color: var(--hd-ink-muted); }
.hd-cuotas {
  display: flex;
  align-items: flex-start;
  gap: var(--hd-space-3);
  padding: 12px 16px;
  border-radius: var(--hd-radius-md);
  background: var(--hd-brand-soft);
  color: var(--hd-brand);
}
.hd-cuotas .hd-icon { margin-top: 1px; }
.hd-cuotas > span { display: flex; flex-direction: column; gap: 2px; }
.hd-cuotas strong { color: var(--hd-brand-dark); font-weight: 600; font-size: 15px; }
.hd-cuotas a { font-size: 13px; color: var(--hd-brand-dark); text-decoration: underline; align-self: flex-start; }
/* Precio con transferencia (módulo hdopciones): mismo recuadro que las cuotas, en verde */
.hd-cuotas--transf { background: #e8f4ee; color: var(--hd-success); }
.hd-cuotas--transf strong { color: var(--hd-success); }
.hd-cuotas small { font-size: 13px; color: var(--hd-ink-muted); }
.hd-cuotas--transf + .hd-cuotas { margin-top: 8px; }
.product-miniature__note .hd-note-transf { color: var(--hd-success); font-weight: 600; }
@media (min-width: 992px) {
  .hd-product .product__price { font-size: 48px; }
}
.hd-product .product__description-short { font-size: 16px; line-height: 1.5; }
.hd-product .product__description-short p:last-child { margin-bottom: 0; }
.hd-product__divider { border: 0; border-top: 1px solid var(--hd-border); opacity: 1; }

.hd-product .product__actions,
.hd-product .product__add-to-cart-container,
.hd-product .product__availability,
.hd-product #add-to-cart-or-refresh { display: flex; flex-direction: column; gap: var(--hd-space-4); margin: 0; }
.hd-stock { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.hd-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.hd-stock--ok { color: var(--hd-success); }
.hd-stock--warn { color: #9a5b00; }
.hd-stock--no { color: var(--hd-accent); }
.hd-product .product__delivery-infos { font-size: 13px; color: var(--hd-ink-muted); }

.hd-buy.product__actions-qty-add { flex-wrap: nowrap; gap: var(--hd-space-3); }
.hd-buy .product__quantity { flex-shrink: 0; width: auto; }
.quantity-button .quantity-button__group {
  height: 52px;
  border: 1px solid #80879b;
  border-radius: var(--hd-radius-sm);
  background: #fff;
  flex-wrap: nowrap;
}
.quantity-button .quantity-button__group .btn {
  width: 42px;
  border: 0;
  background: transparent;
  color: var(--hd-ink);
}
.quantity-button .quantity-button__group .btn:hover { opacity: 1; color: var(--hd-brand); }
.quantity-button .quantity-button__group input.form-control {
  width: 44px;
  max-width: 44px;
  border: 0;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  padding: 0;
  background: transparent;
}
.hd-buy .product__add-to-cart-button {
  height: 52px;
  font-size: 17px;
  font-weight: 700;
}
.hd-product__whatsapp { height: 48px; font-size: 16px; background: #fff; }

.hd-benefits {
  list-style: none;
  margin: 0;
  padding: 4px 20px;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
}
.hd-benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.hd-benefits li + li { border-top: 1px solid var(--hd-divider); }
.hd-benefits__icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--hd-brand-soft);
  color: var(--hd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hd-benefits li > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.hd-benefits strong { font-weight: 600; font-size: 15px; }
.hd-benefits strong + span { font-size: 13px; color: var(--hd-ink-muted); }

/* Aviso de stock (ps_emailalerts) */
.hd-product .js-mailalert { display: flex; flex-direction: column; gap: var(--hd-space-2); }

/* 9.3 Pestañas (acordeón en mobile) */
.hd-tabs.accordion {
  --bs-accordion-bg: #fff;
  --bs-accordion-border-color: var(--hd-divider);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: #fff;
  --bs-accordion-active-color: var(--hd-ink);
  margin-top: var(--hd-space-6);
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
}
.hd-tabs .accordion-item { border-left: 0; border-right: 0; }
.hd-tabs .accordion-item:first-child { border-top: 0; }
.hd-tabs .accordion-button {
  padding: 18px 16px;
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--hd-ink);
  box-shadow: none;
}
.hd-tabs .accordion-body { padding: 0 16px 20px; font-size: 16px; line-height: 1.6; }
.hd-tabs__contents { display: contents; }
.hd-details__title { font-weight: 700; margin-bottom: var(--hd-space-2); }
.hd-details {
  width: 100%;
  max-width: 760px;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 15px;
}
.hd-details th,
.hd-details td { padding: 10px 16px; vertical-align: top; }
.hd-details th { width: 200px; font-weight: 600; }
.hd-details tr:nth-child(odd) { background: #f6f7fa; }
.hd-attachments { display: flex; flex-direction: column; gap: var(--hd-space-3); max-width: 594px; }
.hd-attachment {
  display: flex;
  align-items: center;
  gap: var(--hd-space-4);
  padding: var(--hd-space-4);
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
}
.hd-attachment__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--hd-radius-md);
  background: var(--hd-brand-soft);
  color: var(--hd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hd-attachment__text { display: flex; flex-direction: column; flex-grow: 1; font-size: 13px; color: var(--hd-ink-muted); }
.hd-attachment__text strong { font-size: 15px; font-weight: 600; color: var(--hd-ink); }

/* Desktop: los encabezados del acordeón forman una fila de pestañas (misma estructura HTML) */
@media (min-width: 768px) {
  .hd-tabs.accordion {
    display: grid;
    grid-template-columns: repeat(6, max-content) minmax(0, 1fr);
    column-gap: var(--hd-space-6);
    padding-inline: var(--hd-space-6);
    margin-top: var(--hd-space-7);
  }
  .hd-tabs .accordion-item { display: contents; }
  .hd-tabs .accordion-header { grid-row: 1; }
  .hd-tabs .accordion-button {
    padding: 20px 0 17px;
    border-bottom: 3px solid transparent;
    font-size: 18px;
    color: var(--hd-ink-muted);
    background: none;
  }
  .hd-tabs .accordion-button::after { display: none; }
  .hd-tabs .accordion-button:not(.collapsed) { color: var(--hd-brand); border-bottom-color: var(--hd-brand); }
  .hd-tabs .accordion-button:hover { color: var(--hd-brand); }
  /* La línea bajo las pestañas es el borde superior del panel (ocupa todo el ancho de la tarjeta) */
  .hd-tabs .accordion-collapse {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-inline: calc(-1 * var(--hd-space-6));
    padding-inline: var(--hd-space-6);
    border-top: 1px solid var(--hd-border);
  }
  .hd-tabs .accordion-button { margin-bottom: -1px; position: relative; z-index: 1; }
  .hd-tabs .accordion-body { padding: var(--hd-space-6) 0; min-height: 240px; }
}

/* 9.4 Opiniones */
.hd-reviews {
  margin-top: var(--hd-space-5);
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
}
.hd-reviews__head {
  display: flex;
  flex-direction: column;
  gap: var(--hd-space-4);
}
.hd-reviews__title { display: flex; flex-direction: column; gap: 8px; }
.hd-reviews .section-title { font-size: 24px; }
.hd-reviews__empty { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 15px; color: var(--hd-ink-muted); }
.hd-reviews__empty .hd-stars { color: #a3a9bd; }
.hd-reviews__head .btn { height: 44px; background: #fff; width: 100%; }
.hd-reviews #product-comments-list:empty { display: none; }
@media (min-width: 768px) {
  .hd-reviews { margin-top: var(--hd-space-7); padding: 24px 32px; }
  .hd-reviews__head { flex-direction: row; align-items: center; justify-content: space-between; }
  .hd-reviews__head .btn { padding-inline: 20px; width: auto; }
}
#product .hd-products { padding-top: var(--hd-space-7); padding-bottom: var(--hd-space-5); }
@media (min-width: 992px) {
  #product .hd-products .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 10. Aviso "Producto agregado" ---------- */
.hd-cart-modal .modal-content {
  border: 0;
  border-radius: var(--hd-radius-lg);
  box-shadow: 0 24px 60px rgba(30, 35, 51, .3);
  overflow: hidden;
}
.hd-cart-modal .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--hd-border);
  gap: var(--hd-space-3);
}
.hd-cart-modal .blockcart-modal__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--hd-ink);
}
.hd-cart-modal__check {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--hd-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hd-cart-modal__close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--hd-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-cart-modal .modal-body { padding: 0; }
.hd-cart-modal__grid { display: flex; flex-direction: column; }
.hd-cart-modal__product { display: flex; gap: 18px; padding: 24px; }
.hd-cart-modal__image {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
  background: #fff;
}
.hd-cart-modal__image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.hd-cart-modal__info { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--hd-ink-muted); }
.hd-cart-modal .blockcart-modal__name { font-weight: 600; font-size: 15px; color: var(--hd-ink); line-height: 1.35; }
.hd-cart-modal__line-total {
  margin-top: 4px;
  font-family: var(--hd-font-display);
  font-stretch: 88%;
  font-weight: 700;
  font-size: 24px;
  color: var(--hd-ink);
}
.hd-cart-modal__summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--hd-border);
  font-size: 15px;
}
.hd-cart-modal .blockcart-modal__nb-products { margin: 0; font-weight: 600; color: var(--hd-ink); }
.hd-cart-modal .blockcart-modal__total { display: flex; justify-content: space-between; gap: var(--hd-space-4); color: var(--hd-ink-muted); }
.hd-cart-modal .blockcart-modal__total .value { color: var(--hd-ink); }
.hd-cart-modal__total {
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--hd-border);
}
.hd-cart-modal__total .label { font-weight: 700; color: var(--hd-ink); }
.hd-cart-modal__total .value {
  font-family: var(--hd-font-display);
  font-stretch: 88%;
  font-weight: 800;
  font-size: 26px;
}
.hd-cart-modal__actions { display: flex; flex-direction: column-reverse; gap: var(--hd-space-3); margin-top: var(--hd-space-2); }
.hd-cart-modal__actions .btn { height: 48px; flex: 1 1 0; }
.hd-cart-modal__actions .btn-outline-primary { background: #fff; }
@media (min-width: 992px) {
  .hd-cart-modal .modal-lg { --bs-modal-width: 860px; }
  .hd-cart-modal .blockcart-modal__title { font-size: 24px; }
  .hd-cart-modal__grid { flex-direction: row; }
  .hd-cart-modal__product { flex: 0 0 50%; }
  .hd-cart-modal__image { width: 120px; height: 120px; }
  .hd-cart-modal__summary { flex: 1 1 auto; border-top: 0; border-left: 1px solid var(--hd-border); padding: 24px; }
  .hd-cart-modal__actions { flex-direction: row; }
}

/* ---------- 11. Carrito ---------- */
.hd-muted { color: var(--hd-ink-muted); }
.hd-cart { padding-bottom: var(--hd-space-8); }
.hd-cart__heading { display: flex; align-items: baseline; gap: 10px; margin-bottom: var(--hd-space-4); }
.hd-cart__heading h1 { margin: 0; }
.hd-cart__count { font-size: 15px; color: var(--hd-ink-muted); }
.hd-cart__grid { display: flex; flex-direction: column; gap: var(--hd-space-4); }
.hd-cart__aside { display: flex; flex-direction: column; gap: var(--hd-space-4); }
.hd-cart__continue { justify-content: center; }
@media (min-width: 992px) {
  .hd-cart__heading { margin-bottom: var(--hd-space-5); }
  .hd-cart__grid { display: grid; grid-template-columns: minmax(0, 848fr) minmax(0, 400fr); gap: var(--hd-space-6); align-items: start; }
  .hd-cart__aside { gap: 20px; }
}

.hd-cart-card { display: flex; flex-direction: column; gap: var(--hd-space-3); }
.hd-cart-card .cart__list { display: flex; flex-direction: column; gap: var(--hd-space-3); }
.hd-cart__empty { margin: 0; padding: var(--hd-space-6); background: #fff; border: 1px solid var(--hd-border); border-radius: var(--hd-radius-md); }
@media (min-width: 768px) {
  .hd-cart-card {
    gap: 0;
    background: #fff;
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-md);
  }
  .hd-cart-card .cart__list { gap: 0; }
  .hd-cart-card .cart__item + .cart__item { border-top: 1px solid var(--hd-divider); }
  .hd-cart__empty { border: 0; }
  .hd-cart-card__footer { padding: 12px 24px; border-top: 1px solid var(--hd-divider); }
}

/* Línea de producto: tarjeta en mobile, fila de tabla en desktop */
.hd-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 36px;
  grid-template-areas:
    "img info remove"
    "img price remove"
    "qty qty total";
  column-gap: var(--hd-space-3);
  row-gap: 6px;
  align-items: start;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
}
.hd-line__img {
  grid-area: img;
  width: 84px;
  height: 84px;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
  overflow: hidden;
  background: #fff;
}
.hd-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hd-line__info { grid-area: info; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hd-line__name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: var(--hd-ink);
  text-decoration: none;
  text-transform: uppercase;
}
.hd-line__name:hover { color: var(--hd-brand); }
.hd-line__attr { font-size: 13px; color: var(--hd-ink-muted); }
.hd-line__price { grid-area: price; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hd-line__old { font-size: 12px; color: var(--hd-ink-muted); }
.hd-line__off { color: var(--hd-accent); font-weight: 700; }
.hd-line__unit { font-weight: 600; }
.hd-line__qty { grid-area: qty; align-self: center; margin-top: 8px; }
.hd-line__qty .quantity-button__group { height: 46px; width: 130px; }
.hd-line__total {
  grid-area: total;
  align-self: center;
  justify-self: end;
  margin-top: 8px;
  font-family: var(--hd-font-display);
  font-stretch: 88%;
  font-weight: 700;
  font-size: 22px;
  color: var(--hd-ink);
  white-space: nowrap;
}
.hd-line__remove { grid-area: remove; justify-self: end; }
.hd-line__remove a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hd-ink-muted);
  border-radius: var(--hd-radius-sm);
}
.hd-line__remove a:hover { color: var(--hd-accent); background: var(--hd-accent-soft); }
@media (min-width: 768px) {
  .hd-line {
    grid-template-columns: 96px minmax(0, 1fr) 150px 170px 120px 40px;
    grid-template-areas: "img info price qty total remove";
    column-gap: var(--hd-space-4);
    align-items: center;
    padding: 20px 24px;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .hd-line__img { width: 96px; height: 96px; }
  .hd-line__qty,
  .hd-line__total { margin-top: 0; }
  .hd-line__qty .quantity-button__group { width: 150px; }
  .hd-line__total { font-size: 24px; }
  .hd-line__remove { justify-self: center; }
  .hd-line--head {
    padding-block: 14px;
    border-bottom: 1px solid var(--hd-divider);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hd-ink-muted);
  }
  .hd-line--head .hd-line__h-product { grid-column: img / info; }
  .hd-line--head > * { font: inherit; }
  .hd-line--head .hd-line__total { justify-self: end; }
}

/* Resumen */
.hd-summary {
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
}
.hd-summary__title {
  margin: 0 0 var(--hd-space-3);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}
.hd-summary .cart-summary__totals { display: flex; flex-direction: column; gap: 12px; }
.hd-summary .cart-summary__subtotals { display: flex; flex-direction: column; gap: 10px; }
.hd-summary .cart-summary__line { display: flex; justify-content: space-between; gap: var(--hd-space-3); font-size: 15px; margin: 0; padding: 0; }
.hd-summary .cart-summary__value { text-align: right; }
.hd-summary .cart-summary__total { padding-top: 14px; border-top: 1px solid var(--hd-border); display: flex; flex-direction: column; gap: 2px; }
.hd-total { align-items: baseline; }
.hd-total .cart-summary__label { font-weight: 700; font-size: 16px; }
.hd-total .cart-summary__value {
  font-family: var(--hd-font-display);
  font-stretch: 88%;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}
@media (min-width: 992px) { .hd-total .cart-summary__value { font-size: 32px; } }
.hd-summary .hd-total__tax { font-size: 13px; color: var(--hd-ink-muted); font-weight: 400; }
.hd-cuotas--compact { padding: 10px 14px; align-items: center; }
.hd-cuotas--compact strong { font-size: 14px; }
.hd-summary .cart-voucher { border-top: 1px solid var(--hd-divider); margin: 0; padding: 0; }
.hd-summary .cart-voucher__accordion-button {
  gap: 8px;
  padding: 14px 0;
  background: none;
  color: var(--hd-brand);
  font-weight: 600;
  font-size: 15px;
  box-shadow: none;
}
.hd-summary .cart-voucher__accordion-item { background: none; border: 0; }
.hd-summary .cart-voucher .accordion-body { padding: 0 0 12px; }
.hd-summary .cart-voucher__form { display: flex; gap: 8px; }
.hd-summary .cart-voucher__form .form-control { height: 44px; }
.hd-summary .cart-summary__actions { margin-top: 4px; }
.hd-summary .cart-summary__actions .btn { height: 54px; font-size: 17px; font-weight: 700; }
@media (min-width: 992px) {
  .hd-summary { padding: 24px; }
}

/* ---------- 12. Formularios y "Crear cuenta" ---------- */
.form-label,
.psiva-field-container label { font-weight: 600; font-size: 14px; color: var(--hd-ink); margin-bottom: 6px; }
.form-label.required::after,
.psiva-field-container label.required span::after { content: " *"; color: var(--hd-accent); }
.form-control,
.form-select {
  min-height: 48px;
  border-color: #80879b;
  border-radius: var(--hd-radius-sm);
  font-size: 16px;
}
.form-control:focus,
.form-select:focus { border-color: var(--hd-brand); box-shadow: 0 0 0 3px rgba(58, 74, 159, .2); }
.form-check-input { width: 20px; height: 20px; border-color: #80879b; margin-top: 2px; }
.form-check-input:checked { background-color: var(--hd-brand); border-color: var(--hd-brand); }
.form-check-label { font-size: 15px; }
.form-text { font-size: 13px; color: var(--hd-ink-muted); }
.password-field .btn { border-color: #80879b; background: #fff; color: var(--hd-ink); }
.hd-form-footer { display: flex; justify-content: flex-start; margin-top: var(--hd-space-5); }
.hd-form-footer .btn { height: 54px; min-width: 260px; font-size: 17px; font-weight: 700; }

.page-header .page-title-section { margin-bottom: var(--hd-space-4); }

.hd-register { display: flex; flex-direction: column; gap: var(--hd-space-4); padding-bottom: var(--hd-space-8); }
.hd-register__card {
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
}
.hd-register__title { margin: 0; font-size: 28px; text-transform: uppercase; line-height: 1; }
.hd-register__required { margin: 6px 0 var(--hd-space-5); font-size: 13px; color: var(--hd-ink-muted); }
.hd-register__required span { color: var(--hd-accent); }
.hd-register__aside { display: flex; flex-direction: column; gap: 20px; }
.hd-register__box {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
}
.hd-register__box-title { margin: 0 0 8px; font-size: 24px; text-transform: uppercase; line-height: 1.05; }
.hd-register__box p { margin: 0 0 16px; color: var(--hd-ink-muted); font-size: 15px; }
.hd-register__box .btn { width: 100%; height: 48px; background: #fff; }
.hd-register__perks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hd-register__perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.hd-register__perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--hd-brand-soft);
  color: var(--hd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Grilla del formulario: nombre/apellido y (nacimiento, IVA) en dos columnas; el resto a lo ancho.
   El campo de psiva lo inyecta su JS después del email: se ubica con "order". */
#customer-form > section { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--hd-space-5); }
#customer-form > section > * { order: 20; margin-bottom: 20px; }
#customer-form .hd-field--id_gender { order: 1; }
#customer-form .hd-field--firstname { order: 2; }
#customer-form .hd-field--lastname { order: 3; }
#customer-form .hd-field--email { order: 4; }
#customer-form [data-ps-ref="password-field"],
#customer-form .hd-field--password,
#customer-form .hd-field--new_password { order: 5; }
#customer-form .hd-field--birthday { order: 6; }
#customer-form .psiva-field-container { order: 7; }
#customer-form > section > [data-ps-ref="password-field"] { margin-bottom: 0; } /* el campo interno ya trae .mb-3 */
#customer-form .hd-field--type-checkbox { margin-bottom: 14px; }
#customer-form .hd-field--type-checkbox:not(.hd-field--type-checkbox ~ .hd-field--type-checkbox) {
  margin-top: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--hd-divider);
}
#customer-form .hd-field--firstname .form-text,
#customer-form .hd-field--lastname .form-text { display: none; }
@media (min-width: 768px) {
  #customer-form > section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #customer-form > section > * { grid-column: 1 / -1; }
  #customer-form .hd-field--firstname,
  #customer-form .hd-field--lastname,
  #customer-form .hd-field--birthday,
  #customer-form .psiva-field-container { grid-column: auto; }
}

/* Campo "Situación IVA" (módulo psiva: markup de Classic) */
.psiva-field-container.form-group.row { display: flex; flex-direction: column; margin: 0 0 20px; padding: 0; }
.psiva-field-container > [class*="col-"] { width: 100%; max-width: none; flex: none; padding: 0; }
.psiva-field-container select.form-control {
  -webkit-appearance: none;
          appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}

@media (min-width: 992px) {
  .hd-register { display: grid; grid-template-columns: minmax(0, 848fr) minmax(0, 400fr); gap: var(--hd-space-6); align-items: start; }
  .hd-register__card { padding: 40px; }
  .hd-register__title { font-size: 32px; }
}

/* ---------- 13. Listados (categoría, búsqueda, ofertas) ---------- */
/* En mobile la columna lateral se oculta: los filtros se abren con el botón "Filtro" (offcanvas) */
@media (max-width: 767.98px) {
  body.layout-left-column #left-column { display: none; }
}
#left-column .left-block,
#left-column #search_filters_wrapper,
#left-column .ps-facetedsearch {
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
#left-column hr { display: none; }
.left-block__title,
#left-column .search-filters__header,
#left-column .search-filters__title,
#left-column .ps-facetedsearch .h4,
#left-column .ps-facetedsearch .h3 {
  margin: 0 0 10px;
  font-family: var(--hd-font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--hd-ink);
}
.left-block__title-link { color: var(--hd-ink); text-decoration: none; }
.category-tree__item-link {
  display: inline-block;
  color: var(--hd-ink);
  font-size: 15px;
  text-decoration: none;
  text-transform: lowercase;
}
.category-tree__item-link::first-letter { text-transform: uppercase; }
.category-tree__item-link:hover,
.category-tree__item.active > .category-tree__item-header .category-tree__item-link { color: var(--hd-brand); }
.category-tree__list[data-depth="1"] .category-tree__item-link { font-size: 14px; color: var(--hd-ink-muted); padding: 5px 0; }
.category-tree .accordion-button { background: none; box-shadow: none; }
#left-column .accordion-item { background: none; }
#left-column .accordion-button { font-weight: 600; color: var(--hd-ink); background: none; box-shadow: none; }

/* Encabezado de la categoría */
#category .page-title-section,
#category .category__title { margin-bottom: 8px; }
.category__description { color: var(--hd-ink-muted); font-size: 15px; margin-bottom: var(--hd-space-4); }
.subcategory__list { display: flex; flex-wrap: wrap; gap: 8px; }
.subcategory__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-pill);
  color: var(--hd-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.subcategory__link:hover { border-color: var(--hd-brand); color: var(--hd-brand); }
.subcategory__name { display: inline-block; text-transform: lowercase; }
.subcategory__name::first-letter { text-transform: uppercase; }
@media (max-width: 767.98px) {
  /* Hummingbird ya deja la fila deslizable a sangre (.subcategory con margen negativo) */
  .subcategory__list { flex-wrap: nowrap; padding-inline: calc(var(--bs-gutter-x) * .5); scrollbar-width: none; }
  .subcategory__link { flex-shrink: 0; }
}
.category-tree__item-header { padding: 0; }
.category-tree__item-link { padding: 6px 0; }
.products__sort-dropdown-button {
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--hd-border);
  color: var(--hd-ink);
  font-weight: 600;
}

/* ---------- 14. Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  .product-miniature__image,
  .hd-hero__dots button,
  .hd-dots span { transition: none; }
}
