/**
 * Marisol FA — capa de marca sobre Hummingbird (PrestaShop 9.1).
 * Depende de marisolfa-tokens.css y del padre (Bootstrap 5).
 * Alcance: body.marisolfa-theme (inyectado en layout-both-columns.tpl + refuerzo en marisolfa.js).
 */

/* ——— Harmonización Bootstrap / variables del padre ——— */
body.marisolfa-theme {
  --bs-body-font-family: var(--marisolfa-font-serif);
  --bs-body-color: var(--ink);
  --bs-body-bg: transparent;
  /* Bootstrap deriva modal/dropdown de --bs-body-bg; forzar opaco. */
  --bs-modal-bg: #fff;
  --bs-dropdown-bg: #f9f6f1;
  --bs-link-color: var(--ink);
  --bs-link-hover-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--ink-soft);
  --bs-tertiary-bg: var(--panel);
  /* Botones: sustituyen el azul por defecto de Bootstrap */
  --bs-primary: #14283b;
  --bs-primary-rgb: 20, 40, 59;
  --bs-secondary: #738173;
  --bs-secondary-rgb: 115, 129, 115;
  --bs-focus-ring-color: rgba(20, 40, 59, 0.28);
}
body.marisolfa-theme .dropdown-menu {
  --bs-dropdown-bg: #fff !important;
  --bs-dropdown-link-hover-bg: #14283b !important;
  --bs-dropdown-link-hover-color: #fff !important;
}

body.marisolfa-theme {
  margin: 0;
  color: var(--ink);
  font-family: var(--marisolfa-font-serif);
  background: radial-gradient(circle at top left, rgba(115, 129, 115, 0.13), transparent 28%),
    linear-gradient(180deg, #f6f1ea 0%, #f0e9df 42%, #ece2d7 100%);
}

body.marisolfa-theme .skip-link,
body.marisolfa-theme .back-to-top-link {
  z-index: 1200;
}

body.marisolfa-theme button,
body.marisolfa-theme input,
body.marisolfa-theme select,
body.marisolfa-theme textarea {
  font: inherit;
}

body.marisolfa-theme #wrapper.wrapper {
  background: transparent;
  min-height: 40vh;
}

body.marisolfa-theme #header.header {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ——— Botones y CTA globales (Marisol FA: ink + serif “ghost” como plantilla estática) ——— */
body.marisolfa-theme #wrapper .btn,
body.marisolfa-theme #wrapper a.btn,
body.marisolfa-theme #wrapper button.btn,
body.marisolfa-theme #wrapper input.btn {
  box-shadow: none;
}

/* Primarios / envíos: relleno ink, tipografía UI en mayúsculas (alineado PDP y checkout) */
body.marisolfa-theme #wrapper .btn-primary,
body.marisolfa-theme #wrapper .btn-success:not(.btn-outline-success),
body.marisolfa-theme #wrapper .btn-warning:not(.btn-outline-warning),
body.marisolfa-theme #wrapper .btn-info:not(.btn-outline-info) {
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 5px;
  color: #f7f2ea !important;
  background-color: var(--ink) !important;
  border-color: var(--ink) !important;
}

body.marisolfa-theme #wrapper .btn-primary:hover,
body.marisolfa-theme #wrapper .btn-primary:focus-visible,
body.marisolfa-theme #wrapper .btn-success:not(.btn-outline-success):hover,
body.marisolfa-theme #wrapper .btn-success:not(.btn-outline-success):focus-visible,
body.marisolfa-theme #wrapper .btn-warning:not(.btn-outline-warning):hover,
body.marisolfa-theme #wrapper .btn-warning:not(.btn-outline-warning):focus-visible,
body.marisolfa-theme #wrapper .btn-info:not(.btn-outline-info):hover,
body.marisolfa-theme #wrapper .btn-info:not(.btn-outline-info):focus-visible {
  color: #f7f2ea !important;
  background-color: var(--dark) !important;
  border-color: var(--dark) !important;
}

body.marisolfa-theme #wrapper .btn-primary:active,
body.marisolfa-theme #wrapper .btn-success:not(.btn-outline-success):active,
body.marisolfa-theme #wrapper .btn-warning:not(.btn-outline-warning):active,
body.marisolfa-theme #wrapper .btn-info:not(.btn-outline-info):active {
  color: #f7f2ea !important;
  background-color: #0f1f2e !important;
  border-color: #0f1f2e !important;
}

/* Secundarios / contorno: serif, mayúsculas desactivadas, borde ink (referencia “Todos los productos…”) */
body.marisolfa-theme #wrapper .btn-secondary,
body.marisolfa-theme #wrapper .btn-outline-primary,
body.marisolfa-theme #wrapper .btn-outline-secondary,
body.marisolfa-theme #wrapper .btn-outline-success,
body.marisolfa-theme #wrapper .btn-outline-dark,
body.marisolfa-theme #wrapper .btn-light {
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.35;
  border-radius: 5px;
  color: var(--ink) !important;
  background-color: transparent !important;
  border: 1px solid var(--ink) !important;
}

body.marisolfa-theme #wrapper .btn-secondary:hover,
body.marisolfa-theme #wrapper .btn-secondary:focus-visible,
body.marisolfa-theme #wrapper .btn-outline-primary:hover,
body.marisolfa-theme #wrapper .btn-outline-primary:focus-visible,
body.marisolfa-theme #wrapper .btn-outline-secondary:hover,
body.marisolfa-theme #wrapper .btn-outline-secondary:focus-visible,
body.marisolfa-theme #wrapper .btn-outline-success:hover,
body.marisolfa-theme #wrapper .btn-outline-success:focus-visible,
body.marisolfa-theme #wrapper .btn-outline-dark:hover,
body.marisolfa-theme #wrapper .btn-outline-dark:focus-visible,
body.marisolfa-theme #wrapper .btn-light:hover,
body.marisolfa-theme #wrapper .btn-light:focus-visible {
  color: #f7f2ea !important;
  background-color: var(--ink) !important;
  border-color: var(--ink) !important;
}

body.marisolfa-theme #wrapper .btn-dark {
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 5px;
  color: #f7f2ea !important;
  background-color: var(--dark) !important;
  border-color: var(--dark) !important;
}

body.marisolfa-theme #wrapper .btn-dark:hover,
body.marisolfa-theme #wrapper .btn-dark:focus-visible {
  background-color: #0f1f2e !important;
  border-color: #0f1f2e !important;
  color: #f7f2ea !important;
}

/* Peligro: tono borgoña de marca, sin azul Bootstrap */
body.marisolfa-theme #wrapper .btn-danger,
body.marisolfa-theme #wrapper .btn-outline-danger {
  font-family: var(--marisolfa-font-serif);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: -0.01em;
  border-radius: 5px;
}

body.marisolfa-theme #wrapper .btn-danger {
  color: #f7f2ea !important;
  background-color: #7a2e2e !important;
  border-color: #7a2e2e !important;
}

body.marisolfa-theme #wrapper .btn-danger:hover,
body.marisolfa-theme #wrapper .btn-danger:focus-visible {
  background-color: #632626 !important;
  border-color: #632626 !important;
}

body.marisolfa-theme #wrapper .btn-outline-danger {
  color: #7a2e2e !important;
  background-color: transparent !important;
  border: 1px solid #7a2e2e !important;
}

body.marisolfa-theme #wrapper .btn-outline-danger:hover,
body.marisolfa-theme #wrapper .btn-outline-danger:focus-visible {
  color: #f7f2ea !important;
  background-color: #7a2e2e !important;
  border-color: #7a2e2e !important;
}

/* Enlace con apariencia de botón */
body.marisolfa-theme #wrapper .btn-link {
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.marisolfa-theme #wrapper .btn-link:hover,
body.marisolfa-theme #wrapper .btn-link:focus-visible {
  color: var(--dark) !important;
}

/* Controles outline Hummingbird (carousel, limpiar búsqueda, etc.) */
body.marisolfa-theme #wrapper .btn.outline,
body.marisolfa-theme #wrapper .outline.outline--rounded {
  color: var(--ink) !important;
  border-color: rgba(20, 40, 59, 0.35) !important;
  background-color: rgba(255, 255, 255, 0.35) !important;
}

body.marisolfa-theme #wrapper .btn.outline:hover,
body.marisolfa-theme #wrapper .btn.outline:focus-visible,
body.marisolfa-theme #wrapper .outline.outline--rounded:hover,
body.marisolfa-theme #wrapper .outline.outline--rounded:focus-visible {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  background-color: rgba(255, 255, 255, 0.65) !important;
}

body.marisolfa-theme .skip-link.btn-primary,
body.marisolfa-theme .back-to-top-link.btn-primary {
  border-radius: 4px;
}

body.marisolfa-theme #wrapper .cart-detailed__actions .btn,
body.marisolfa-theme #wrapper .cart-summary__actions .btn,
body.marisolfa-theme #wrapper .checkout .btn,
body.marisolfa-theme #wrapper .js-payment .btn,
body.marisolfa-theme #wrapper .js-checkout-step .btn {
  border-radius: 5px;
}

body.marisolfa-theme #wrapper .products .btn:not(.btn-primary):not(.btn-danger):not(.btn-success),
body.marisolfa-theme #wrapper .featured-products .btn:not(.btn-primary):not(.btn-danger):not(.btn-success) {
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink) !important;
  background: transparent !important;
  border: 1px solid var(--ink) !important;
}

body.marisolfa-theme #wrapper .products .btn:not(.btn-primary):not(.btn-danger):not(.btn-success):hover,
body.marisolfa-theme #wrapper .featured-products .btn:not(.btn-primary):not(.btn-danger):not(.btn-success):hover {
  color: #f7f2ea !important;
  background: var(--ink) !important;
}

/* Clase ghost reutilizable (misma lectura que looks / estático) */
body.marisolfa-theme #wrapper .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.35;
  border-radius: 5px;
  color: var(--ink) !important;
  background: transparent !important;
  border: 1px solid var(--ink) !important;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

body.marisolfa-theme #wrapper .btn-ghost:hover,
body.marisolfa-theme #wrapper .btn-ghost:focus-visible {
  color: #f7f2ea !important;
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  transform: translateY(-1px);
}

body.marisolfa-theme .page--full-width .columns-container.container,
body.marisolfa-theme .center-column.page--full-width {
  max-width: var(--max);
}

body.marisolfa-theme .columns-container.container {
  width: 100%;
}

/* ——— Utilidades alineadas al estático (mf-estatico) ——— */
body.marisolfa-theme .shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

body.marisolfa-theme .ui-label,
body.marisolfa-theme .caps,
body.marisolfa-theme .mini,
body.marisolfa-theme .marisolfa-caps {
  font-family: var(--marisolfa-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

body.marisolfa-theme .marisolfa-font-script {
  font-family: var(--marisolfa-font-script);
}

/* ——— Cabecera Marisol (header.tpl) ——— */
body.marisolfa-theme .marisolfa-header .topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(242, 236, 228, 0.84);
  border-bottom: 1px solid var(--line);
}

/*
 * backdrop-filter convierte a .topbar en bloque contenedor de sus hijos position:fixed,
 * lo que recorta paneles laterales (megamenú, carrito) a la altura de la barra.
 * Mientras el panel está abierto la barra queda tapada, así que el desenfoque no hace falta.
 */
body.ms-menu-open .marisolfa-header .topbar,
body.ms-cart-drawer-open .marisolfa-header .topbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.marisolfa-theme .marisolfa-header .topbar-inner,
body.marisolfa-theme .marisolfa-header .marisolfa-topbar-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 2.2vw, 28px);
  min-height: 68px;
}

/* Logo + megamenú: crece y mantiene enlaces a la izquierda; acciones van al extremo derecho */
body.marisolfa-theme .marisolfa-header .marisolfa-brand-and-mm {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 1vw, 28px);
  min-width: 0;
  flex: 1 1 auto;
}

/* ETS Megamenu incrustado en la barra crema (hook displayMegaMenu + customhook) */
body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
body.marisolfa-theme .mm_blocks_ul .ets_mm_block .ets_mm_block_content > a {
  display: block;
  height: 100%;
}

/* El JS del megamenú pone margin-bottom inline en #header al activar scroll_heading; sin menú fixed sobra hueco. */
body.marisolfa-theme #header.header {
  margin-bottom: 0 !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .ybc-menu-toggle.ybc-menu-btn {
  /* Hamburguesa solo móvil: el módulo la muestra según breakpoint */
  margin-inline-end: 0;
}

/* Enlaces raíz del megamenú: sans mayúsculas como plantilla estática */
body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .mm_menus_ul {
  background: transparent !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .mm_menus_li > a,
body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .mm_menus_li > span.mm_menu_content_title {
  font-family: var(--marisolfa-font-ui) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px !important;
  color: var(--ink-soft) !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .layout_layout1 .mm_menus_li {
  border-color: transparent !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .layout_layout1 .mm_menus_li:nth-child(2) {
  border-left: none !important;
}


body.marisolfa-theme #header.header,
body.marisolfa-theme .marisolfa-header,
body.marisolfa-theme .marisolfa-header .topbar,
body.marisolfa-theme .marisolfa-header .topbar-inner,
body.marisolfa-theme .marisolfa-header .marisolfa-nav {
  overflow: visible;
}

body.marisolfa-theme .marisolfa-header a.brand,
body.marisolfa-theme .marisolfa-header a.brand:hover,
body.marisolfa-theme .marisolfa-header a.brand:focus {
  color: inherit;
  text-decoration: none;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body.marisolfa-theme .marisolfa-header a.brand:focus-visible {
  outline: 2px solid var(--ink-soft);
  outline-offset: 4px;
}

body.marisolfa-theme .marisolfa-header a.brand:focus:not(:focus-visible) {
  outline: none;
}

body.marisolfa-theme .marisolfa-header .nav.marisolfa-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Módulo ps_mainmenu (Hummingbird): quitar columnas Bootstrap dentro de la topbar */
body.marisolfa-theme .marisolfa-nav .ps-mainmenu.ps-mainmenu--desktop {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  order: 0;
}

body.marisolfa-theme .marisolfa-nav .ps-mainmenu.ps-mainmenu--desktop.col-xl,
body.marisolfa-theme .marisolfa-nav .ps-mainmenu.ps-mainmenu--desktop.col-auto {
  flex: 1 1 auto !important;
}

body.marisolfa-theme .marisolfa-nav .ps-mainmenu__desktop {
  width: 100%;
  display: flex !important;
  justify-content: center;
}

body.marisolfa-theme .marisolfa-nav .ps-mainmenu__tree {
  gap: 28px;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body.marisolfa-theme .marisolfa-nav .ps-mainmenu__tree::-webkit-scrollbar {
  display: none;
}

body.marisolfa-theme .marisolfa-nav .ps-mainmenu__tree-item {
  list-style: none;
}

body.marisolfa-theme .marisolfa-nav .ps-mainmenu__tree-item-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu--desktop .ps-mainmenu__tree > li a.ps-mainmenu__tree-link {
  font-family: var(--marisolfa-font-ui) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px !important;
  line-height: 1.2 !important;
  color: var(--ink-soft) !important;
  padding: 8px 0 !important;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
  border-radius: 0 !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu--desktop .ps-mainmenu__tree > li a.ps-mainmenu__tree-link:hover,
body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu--desktop .ps-mainmenu__tree > li.current a.ps-mainmenu__tree-link {
  color: var(--ink) !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav a.ps-mainmenu__tree-link:focus {
  outline: none !important;
  box-shadow: none !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav a.ps-mainmenu__tree-link:focus-visible {
  outline: 2px solid var(--ink-soft) !important;
  outline-offset: 3px !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav a.ps-mainmenu__tree-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav a.ps-mainmenu__tree-link:hover::after,
body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu__tree-item.current a.ps-mainmenu__tree-link::after {
  transform: scaleX(1);
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu--desktop .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle {
  padding: 8px 2px !important;
  color: var(--ink-soft) !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu__tree-dropdown-toggle::after {
  margin-inline-start: 0.15rem;
  vertical-align: 0.1em;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu__tree-dropdown-toggle:hover,
body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu__tree-dropdown-toggle:focus {
  color: var(--ink) !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu__tree-dropdown-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav .ps-mainmenu__tree-dropdown-toggle:focus-visible {
  outline: 2px solid var(--ink-soft) !important;
  outline-offset: 2px !important;
}

/* Submenú mega (desktop) */
body.marisolfa-theme .marisolfa-nav .submenu {
  background: rgba(248, 243, 236, 0.97);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 0 0 4px 4px;
  z-index: 1100;
}

body.marisolfa-theme .marisolfa-nav .submenu__left {
  border-right-color: var(--line);
}

body.marisolfa-theme .marisolfa-nav .submenu__left-item {
  font-family: var(--marisolfa-font-ui);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-nav .submenu__left-item:hover,
body.marisolfa-theme .marisolfa-nav .submenu__left-item:focus {
  background: var(--panel);
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-nav .menu-item {
  font-family: var(--marisolfa-font-ui);
  font-size: 13px;
  color: #3a5a78;
  text-decoration: none;
}

body.marisolfa-theme .marisolfa-nav .menu-item:hover {
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-nav .menu-item__group-main-item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Acciones cabecera (displayNav2): alineadas a la derecha; estilo fino tipo plantilla estática */
body.marisolfa-theme .marisolfa-header .marisolfa-actions {
  margin-left: auto;
  flex: 0 0 auto;
}

body.marisolfa-theme .marisolfa-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

body.marisolfa-theme .marisolfa-header .marisolfa-nav {
  flex: 0 1 auto;
  min-width: 0;
}

body.marisolfa-theme .marisolfa-actions .header-block {
  align-self: center;
}

body.marisolfa-theme .marisolfa-actions #_desktop_ps_languageselector {
  display: none !important;
}

body.marisolfa-theme .marisolfa-actions #_desktop_ps_currencyselector {
  display: none !important;
}

body.marisolfa-theme .marisolfa-actions #_desktop_marisolfa_wishlist {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  align-self: center;
  margin: 0 !important;
}

body.marisolfa-theme .marisolfa-actions #_desktop_ps_customersignin,
body.marisolfa-theme .marisolfa-actions #_desktop_ps_shoppingcart {
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
}

body.marisolfa-theme .marisolfa-actions .marisolfa-header-fa-btn.dropdown-toggle::after {
  display: none;
}

body.marisolfa-theme .marisolfa-actions .header-block__action-btn,
body.marisolfa-theme .marisolfa-actions .marisolfa-header-fa-btn {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  gap: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 40, 59, 0.14) !important;
  border-radius: 999px !important;
  color: var(--ink) !important;
  /* Sin !important: si no, el :hover no puede aclarar el fondo (mf-estatico .icon-btn:hover) */
  background-color: rgba(255, 255, 255, 0.28);
  box-shadow: none !important;
  line-height: 1 !important;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.25s ease, transform 0.25s ease;
}

body.marisolfa-theme .marisolfa-actions .header-block__action-btn .fa,
body.marisolfa-theme .marisolfa-actions .marisolfa-header-fa-btn .fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro" !important;
  -webkit-font-smoothing: antialiased;
}

body.marisolfa-theme .marisolfa-actions .header-block__icon.fa-fw,
body.marisolfa-theme .marisolfa-actions .fa-fw {
  font-size: 1.05rem;
  line-height: 1;
  vertical-align: 0;
}

/* Solo icono + badge (texto “Iniciar sesión” / “Carrito” oculto; queda aria-label en enlace) */
body.marisolfa-theme .marisolfa-actions .header-block__action-btn > .header-block__title,
body.marisolfa-theme .marisolfa-actions .header-block__action-btn > span.d-none,
body.marisolfa-theme .marisolfa-actions .header-block__action-btn > span.d-md-inline,
body.marisolfa-theme .marisolfa-actions .header-block__action-btn > span.d-md-flex {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.marisolfa-theme .marisolfa-actions .header-block__icon:not(.fa) {
  font-size: 14px !important;
  margin: 0 !important;
}

body.marisolfa-theme .marisolfa-actions .header-block__action-btn:hover,
body.marisolfa-theme .marisolfa-actions .header-block__action-btn:focus,
body.marisolfa-theme .marisolfa-actions .marisolfa-header-fa-btn:hover,
body.marisolfa-theme .marisolfa-actions .marisolfa-header-fa-btn:focus {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.46);
  border-color: rgba(20, 40, 59, 0.22) !important;
  color: var(--ink);
}

/* Contador como superíndice: burbuja sobre la esquina superior derecha del icono */
body.marisolfa-theme .marisolfa-actions .header-block__action-btn {
  position: relative;
}

body.marisolfa-theme .marisolfa-actions .header-block__badge {
  position: absolute !important;
  top: -3px;
  right: -3px;
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  font-family: var(--marisolfa-font-ui) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  background: var(--ink) !important;
  color: var(--light) !important;
  /* Aro del color de la barra: separa la burbuja del borde del botón */
  box-shadow: 0 0 0 2px #f2ece4;
  /* El clic siempre debe alcanzar al botón, nunca al contador */
  pointer-events: none;
}

/* ——— Preview carrito lateral (offcanvas derecha, plantilla estática) ——— */
body.marisolfa-theme .marisolfa-cart-drawer.offcanvas.offcanvas-end {
  --bs-offcanvas-width: min(40vw, 460px);
  width: min(70vw, 460px);
  max-width: calc(100vw - 1.25rem);
  background: #f9f6f1;
  color: var(--ink);
  border-left: 1px solid rgba(20, 40, 59, 0.12);
  box-shadow: -12px 0 40px rgba(15, 20, 25, 0.12);
}

body.marisolfa-theme .marisolfa-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: none;
}

body.marisolfa-theme .marisolfa-cart-drawer__title {
  margin: 0;
  font-family: var(--marisolfa-font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-cart-drawer__close-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 40, 59, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.marisolfa-theme .marisolfa-cart-drawer__close-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(20, 40, 59, 0.22);
}

body.marisolfa-theme .marisolfa-cart-drawer__body {
  padding: 0 1.25rem 1.25rem;
  gap: 1rem;
  min-height: 0;
}

body.marisolfa-theme .marisolfa-cart-drawer-inner {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  min-height: 0;
  flex: 1 1 auto;
}

body.marisolfa-theme .marisolfa-cart-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.marisolfa-theme .marisolfa-cart-drawer__item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(20, 40, 59, 0.1);
}

body.marisolfa-theme .marisolfa-cart-drawer__item:last-child {
  border-bottom: none;
}

body.marisolfa-theme .marisolfa-cart-drawer__row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

body.marisolfa-theme .marisolfa-cart-drawer__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(20, 40, 59, 0.06);
}

body.marisolfa-theme .marisolfa-cart-drawer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.marisolfa-theme .marisolfa-cart-drawer__meta {
  flex: 1;
  min-width: 0;
}

body.marisolfa-theme .marisolfa-cart-drawer__name {
  display: block;
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
}

body.marisolfa-theme .marisolfa-cart-drawer__name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.marisolfa-theme .marisolfa-cart-drawer__attr {
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

body.marisolfa-theme .marisolfa-cart-drawer__line-price {
  margin-top: 0.35rem;
  font-family: var(--marisolfa-font-ui);
  font-size: 12px;
  color: var(--ink-soft);
}

body.marisolfa-theme .marisolfa-cart-drawer__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-left: calc(72px + 0.85rem);
}

body.marisolfa-theme .marisolfa-cart-drawer__qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 5.5rem;
  padding: 0;
  font-family: var(--marisolfa-font-ui);
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(20, 40, 59, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  overflow: hidden;
}

body.marisolfa-theme .marisolfa-cart-drawer__qty-pill-part {
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  user-select: none;
  cursor: pointer;
  line-height: 1;
  appearance: none;
}

body.marisolfa-theme button.marisolfa-cart-drawer__qty-pill-part:hover {
  color: var(--ink);
  background: rgba(20, 40, 59, 0.06);
}

body.marisolfa-theme button.marisolfa-cart-drawer__qty-pill-part:disabled {
  opacity: 0.45;
  cursor: wait;
}

body.marisolfa-theme .marisolfa-cart-drawer__qty-pill-mid {
  flex: 1 1 auto;
  min-width: 1.5rem;
  text-align: center;
  padding: 0.4rem 0.25rem;
  border-left: 1px solid rgba(20, 40, 59, 0.1);
  border-right: 1px solid rgba(20, 40, 59, 0.1);
  font-weight: 600;
}

body.marisolfa-theme .marisolfa-cart-drawer__total {
  margin-left: auto;
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-cart-drawer__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
}

body.marisolfa-theme .marisolfa-cart-drawer__remove:hover {
  border-color: rgba(20, 40, 59, 0.14);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-cart-drawer__footer {
  border-top: 1px solid rgba(20, 40, 59, 0.12);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.marisolfa-theme .marisolfa-cart-drawer__subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

body.marisolfa-theme .marisolfa-cart-drawer__subtotal-label {
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

body.marisolfa-theme .marisolfa-cart-drawer__subtotal-value {
  font-family: var(--marisolfa-font-serif);
  font-size: 1.15rem;
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-cart-drawer__checkout {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 4px;
  background: #14283b;
  color: #f7f2ea !important;
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

body.marisolfa-theme .marisolfa-cart-drawer__checkout:hover {
  background: #0f1f2e;
  color: #f7f2ea !important;
}

body.marisolfa-theme .marisolfa-cart-drawer__cart-link {
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.marisolfa-theme .marisolfa-cart-drawer__cart-link:hover {
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-cart-drawer__empty {
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
}

/* Mobile menu toggle */
body.marisolfa-theme .marisolfa-nav .ps-mainmenu__mobile-toggle .menu-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 42px;
  min-height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}

body.marisolfa-theme .ps-mainmenu--mobile.offcanvas {
  background: var(--light);
  color: var(--ink);
}

body.marisolfa-theme .ps-mainmenu--mobile .menu__link,
body.marisolfa-theme .ps-mainmenu--mobile .menu__title {
  color: inherit;
}

/* Buscador en .marisolfa-actions: mismo eje y orden que iconos (sin order-2 del tpl padre) */
body.marisolfa-theme .marisolfa-actions .marisolfa-ps-searchbar-desktop,
body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  align-self: center;
  margin: 0 !important;
  order: 0;
  min-width: 40px;
  min-height: 40px;
  position: relative;
}

/* Lupa fija: Fancybox mueve #ps_searchbar; el stub permanece en el header. */
body.marisolfa-theme .marisolfa-actions .marisolfa-search-header-stub-wrap {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.marisolfa-theme .marisolfa-actions .marisolfa-search-header-stub {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
}

body.marisolfa-theme .marisolfa-actions .marisolfa-search-header-stub:focus-visible {
  outline: 2px solid var(--ink-soft);
  outline-offset: 2px;
}

body.marisolfa-theme .marisolfa-actions .marisolfa-search-header-stub__icon {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 40, 59, 0.14);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  font-size: 1.05rem !important;
  line-height: 1 !important;
  font-style: normal;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro" !important;
  font-weight: 900;
  pointer-events: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.25s ease;
}

body.marisolfa-theme .marisolfa-actions .marisolfa-search-header-stub-wrap:hover .marisolfa-search-header-stub__icon,
body.marisolfa-theme .marisolfa-actions .marisolfa-search-header-stub:focus-visible + .marisolfa-search-header-stub__icon {
  background-color: rgba(255, 255, 255, 0.46);
  border-color: rgba(20, 40, 59, 0.22);
}

/* Widget en el slot con el modal cerrado: detrás del stub (no doble lupa ni robo de clic). */
body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar > #ps_searchbar:not(.marisolfa-searchbar--in-fancybox) {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  margin-block: 0 !important;
  min-width: 0 !important;
}

body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar #ps_searchbar {
  display: flex;
  align-items: center;
  line-height: 0;
  /* Hummingbird _searchbar.scss fuerza min-width ~19rem: separa la lupa del resto de iconos */
  min-width: 0 !important;
  width: auto !important;
  margin-block: 0 !important;
  position: relative;
}

body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .ps-searchbar {
  min-width: 0 !important;
  margin-block: 0 !important;
}

body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .ps-searchbar__form,
body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .marisolfa-searchbar-toolbar-form {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
}

body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .ps-searchbar__field,
body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .ps-searchbar__input,
body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .ps-searchbar__clear,
body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .ps-searchbar__submit,
body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .ps-searchbar__dropdown {
  display: none !important;
}

/* Anular posición absoluta + translateY(-50%) del SCSS de Hummingbird: alineación estable con el resto de iconos */
body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .ps-searchbar__magnifier {
  position: static !important;
  top: auto !important;
  left: auto !important;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 40, 59, 0.14);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  font-size: 1.05rem !important;
  line-height: 1 !important;
  font-style: normal;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro" !important;
  font-weight: 900;
  transform: none !important;
  cursor: default;
  pointer-events: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.25s ease;
}

body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .marisolfa-searchbar-toolbar-form:hover .ps-searchbar__magnifier,
body.marisolfa-theme .marisolfa-actions #_desktop_ps_searchbar .marisolfa-searchbar-toolbar-form:focus-within .ps-searchbar__magnifier {
  transform: none !important;
  background-color: rgba(255, 255, 255, 0.46);
  border-color: rgba(20, 40, 59, 0.22);
}

/* Campo + submit: el submit solo se muestra dentro del Fancybox. */
body.marisolfa-theme .ps-searchbar__field {
  position: relative;
  min-width: 0;
}

body.marisolfa-theme .ps-searchbar__submit {
  display: none;
}

/* ——— Buscador en Fancybox: tarjeta recta, fondo plano (sin degradés ni radios) ——— */
body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox .fancybox__content {
  padding: 2.5rem;
  margin-top: 0;
  align-self: center;
  background: transparent;
}

/* Cierre tipo Bootstrap btn-close: X sola, sin círculo. */
body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox .fancybox__content > .f-button.is-close-btn,
body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox.is-compact .fancybox__content > .f-button.is-close-btn {
  --f-button-width: 1em;
  --f-button-height: 1em;
  --f-button-border-radius: 0.25rem;
  --f-button-color: #000;
  --f-button-hover-color: #000;
  --f-button-bg: transparent;
  --f-button-hover-bg: transparent;
  --f-button-active-bg: transparent;
  --f-button-svg-width: 1em;
  --f-button-svg-height: 1em;
  --f-button-svg-stroke-width: 1.5;
  --f-button-svg-filter: none;
  box-sizing: content-box;
  top: 8px;
  right: 8px;
  padding: 0.25em;
  border: 0;
  border-radius: 0.25rem;
  background: transparent !important;
  box-shadow: none;
  opacity: 0.5;
  font-size: 20px;
}

body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox .fancybox__content > .f-button.is-close-btn:hover,
body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox.is-compact .fancybox__content > .f-button.is-close-btn:hover,
body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox .fancybox__content > .f-button.is-close-btn:focus-visible {
  opacity: 0.75;
  background: transparent !important;
  outline: none;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox {
  --marisolfa-search-card-pad-x: 1.125rem;
  position: relative;
  width: min(100%, 26rem);
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: none;
  background: var(--light);
  overflow: visible;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__magnifier {
  display: none !important;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .marisolfa-searchbar-toolbar-form {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  height: auto;
  min-height: 0;
  justify-content: stretch;
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__field {
  display: block;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__input {
  display: block !important;
  width: 100% !important;
  padding: 0.72rem 2.85rem 0.72rem 1rem !important;
  margin: 0 !important;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--marisolfa-font-ui);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  outline: none !important;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__input::placeholder {
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: none;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__input:hover {
  border-color: rgba(20, 40, 59, 0.22);
  background: #fff;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: none;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.85rem;
  min-height: 2.85rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__submit:hover,
body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__submit:focus-visible {
  background: var(--accent, var(--ink));
  border-color: var(--accent, var(--ink));
  color: #fff;
  outline: none;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__submit i {
  font-size: 0.95rem;
  line-height: 1;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__clear {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  opacity: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__clear:hover,
body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__clear:focus-visible {
  background: rgba(20, 40, 59, 0.06);
  color: var(--ink);
  border-color: rgba(20, 40, 59, 0.2);
  outline: none;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__clear i {
  font-size: 0.75rem;
}

/* Por encima del megamenú (z-index ~1300) y offcanvas Bootstrap; refuerzo de viewport completo. */
body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox {
  --fancybox-zIndex: 1400;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
}

body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox .fancybox__slide {
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(0.75rem, 6vh, 4rem);
  padding-bottom: 1rem;
  overflow-y: auto;
}

body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox .fancybox__slide::before,
body.marisolfa-theme .fancybox__container.marisolfa-search-fancybox .fancybox__slide::after {
  content: none !important;
  display: none !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__dropdown {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  z-index: 20;
  max-height: min(55vh, 22rem);
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0.35rem 0 0.45rem;
  background: #fff;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__results {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem var(--marisolfa-search-card-pad-x) 0.5rem;
  max-height: none;
  background: transparent;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__result-link {
  gap: 0.75rem;
  padding: 0.45rem 0.5rem;
  text-decoration: none;
  border-radius: 0;
  color: var(--ink);
  transition: background-color 0.18s ease;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__result-link:hover,
body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__result-link:focus-visible {
  background: rgba(20, 40, 59, 0.04);
  outline: none;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__result-image {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
}

body.marisolfa-theme #ps_searchbar.marisolfa-searchbar--in-fancybox .ps-searchbar__result-name {
  padding: 0;
  margin: 0;
  font-family: var(--marisolfa-font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink);
  text-align: start;
}

body.marisolfa-theme .marisolfa-actions .marisolfa-ps-searchbar-mobile {
  flex-shrink: 0;
  align-items: center;
  margin: 0;
}

/* Búsqueda móvil (offcanvas): sugerencias rectas y planas */
body.marisolfa-theme #searchCanvas .ps-searchbar__dropdown:not(.d-none),
body.marisolfa-theme .ps-searchbar__offcanvas .ps-searchbar__dropdown:not(.d-none) {
  margin-top: 0.75rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
body.marisolfa-theme .ps-searchbar__offcanvas .offcanvas-header {
  background: #fff !important;
}
body.marisolfa-theme .ps-searchbar__container {
  display: flex;
  flex-direction: row-reverse;
  gap: 5px;
}

body.marisolfa-theme #searchCanvas .ps-searchbar__result-link,
body.marisolfa-theme .ps-searchbar__offcanvas .ps-searchbar__result-link {
  color: var(--ink);
  border-radius: 0;
}

body.marisolfa-theme #searchCanvas .ps-searchbar__result-name,
body.marisolfa-theme .ps-searchbar__offcanvas .ps-searchbar__result-name {
  color: var(--ink);
  font-weight: 500;
}

/* Franja displayNav1 */
body.marisolfa-theme .marisolfa-nav1-wrapper {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

body.marisolfa-theme .marisolfa-nav1-inner {
  padding: 8px 0;
  font-family: var(--marisolfa-font-ui);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ——— Migas y títulos de listado ——— */
body.marisolfa-theme .breadcrumb {
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  padding: 12px 0;
  margin-bottom: 0;
}

body.marisolfa-theme .breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

body.marisolfa-theme .breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.marisolfa-theme #js-product-list-header .page-title,
body.marisolfa-theme .page-title {
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* ——— Listados: rejilla tipo sitio estático (no aplicar al bloque destacados home) ——— */
body.marisolfa-theme #js-product-list .products,
body.marisolfa-theme #products:not(.marisolfa-featured) .products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

@media (max-width: 1180px) {
  body.marisolfa-theme #js-product-list .products,
  body.marisolfa-theme #products:not(.marisolfa-featured) .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.marisolfa-theme #js-product-list .products,
  body.marisolfa-theme #products:not(.marisolfa-featured) .products {
    grid-template-columns: 1fr;
  }

  body.marisolfa-theme .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  body.marisolfa-theme .marisolfa-header .topbar-inner,
  body.marisolfa-theme .marisolfa-header .marisolfa-topbar-inner {
    flex-wrap: nowrap;
    gap: 5px;
    padding-block: 12px;
  }

  body.marisolfa-theme .marisolfa-header .marisolfa-brand-and-mm {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: clamp(10px, 3vw, 18px);
    align-items: center;
  }

  body.marisolfa-theme .marisolfa-header .marisolfa-brand-and-mm .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  body.marisolfa-theme .marisolfa-header .marisolfa-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  body.marisolfa-theme .marisolfa-header .nav.marisolfa-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  body.marisolfa-theme .marisolfa-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
  }

  :root {
    --topbar-sticky-offset: calc(132px + env(safe-area-inset-top, 0px));
  }
}

/*
 * Móvil real (ETS megamenú: max-width 767px): colocar el toggle del menú a la
 * izquierda del logo y unificar estética con la barra crema / tipografía Marisol FA.
 */
@media (max-width: 1199px) {
  body.marisolfa-theme .marisolfa-header .marisolfa-brand-and-mm .marisolfa-mm-embed {
    order: -1;
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    min-width: 0;
  }

  body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .ybc-menu-toggle.ybc-menu-btn,
  body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .ybc-menu-toggle {
    width: auto !important;
    max-width: none !important;
    padding: 8px 14px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #f0ebe2 !important;
    box-shadow: none !important;
    color: var(--ink) !important;
    font-family: var(--marisolfa-font-serif) !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    line-height: 1.15 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    vertical-align: middle;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  body.ms-menu-open .marisolfa-header .marisolfa-brand-and-mm .marisolfa-mm-embed .ybc-menu-toggle {
    display: none !important;
  }

  /* body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .ybc-menu-toggle:hover {
    background: rgba(20, 40, 59, 0.06) !important;
    border-color: rgba(20, 40, 59, 0.22) !important;
    color: var(--ink) !important;
  } */

  body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .ybc-menu-toggle:focus-visible {
    background: rgba(20, 40, 59, 0.06) !important;
    border-color: rgba(20, 40, 59, 0.22) !important;
    color: var(--ink) !important;
    outline: 2px solid rgba(20, 40, 59, 0.35) !important;
    outline-offset: 2px !important;
  }

  body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .ybc-menu-toggle .icon-bar {
    background-color: var(--ink) !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    width: 18px !important;
    height: 2px !important;
    display: block !important;
  }

  body.marisolfa-theme .marisolfa-header .marisolfa-mm-embed .ybc-menu-toggle .ybc-menu-button-toggle_icon {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
    float: none !important;
    margin: 0 !important;
  }


  body.marisolfa-theme .marisolfa-header  .changestatus.transition_floating .ybc-menu-toggle.opened:before {
      background-color: rgba(0, 0, 0, 0.4);
      bottom: 0;
      content: "";
      height: 100%;
      left: 0;
      position: fixed;
      right: 0;
      top: 0;
      width: 100%;
      z-index: 10000;
  }

  body.marisolfa-theme .marisolfa-header  .changestatus.transition_floating .mm_menus_ul {
      bottom: 0;
      left: 0;
      max-width: 280px;
      overflow: auto;
      position: fixed;
      top: 0;
      z-index: 10000;
  }

  body.marisolfa-theme .marisolfa-header  .changestatus.transition_floating .close_menu {
      background-color: #000000;
      color: #FFFFFF;
      display: block !important;
      font-size: 14px;
      font-weight: bold;
      line-height: 14px;
      padding: 12px 5px;
      text-align: center;
      text-transform: uppercase;
      width: 100%;
      cursor: pointer;
  }
  body.marisolfa-theme .marisolfa-header  .changestatus.transition_floating .close_menu .pull-left {
    font-size: 17px;
  }
  body.marisolfa-theme .marisolfa-header  .changestatus.transition_floating .close_menu .pull-right {
    padding-top: 2px;
  }
  body.marisolfa-theme .marisolfa-header  .changestatus.transition_floating .mm_menus_ul {
      opacity: 0.6;
      transform: translatex(-100%);
      -webkit-transform: translatex(-100%);
      transition: all 0.35s ease 0s;
      -webkit-transition: all 0.35s ease 0s;
      visibility: hidden;
  }
  body.marisolfa-theme .marisolfa-header  .changestatus.transition_floating .mm_menus_ul.active {
      background-color: #f1ece3 !important; 
      opacity: 1;
      transform: translatex(0px);
      -webkit-transform: translatex(0px);
      visibility: visible;
  }
}

/* ——— Pie (Marisol FA — cuatro columnas, crema, títulos UI / enlaces serif) ——— */
body.marisolfa-theme #footer.footer {
  margin-top: clamp(40px, 6vw, 72px);
  color: var(--ink);
  background: var(--marisolfa-footer-bg);
}

body.marisolfa-theme #footer .footer__before,
body.marisolfa-theme #footer .footer__main {
  background: transparent;
  color: inherit;
}

body.marisolfa-theme #footer .footer__main {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 48px);
}

body.marisolfa-theme #footer .footer__main .container,
body.marisolfa-theme #footer .footer__before .container {
  max-width: var(--max);
}

body.marisolfa-theme #footer .footer__main-top,
body.marisolfa-theme #footer .footer__main-bottom {
  --bs-gutter-x: clamp(1.25rem, 3vw, 2.5rem);
  --bs-gutter-y: 1.5rem;
  row-gap: 0.5rem;
}

body.marisolfa-theme #footer .footer__main-bottom.row {
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  body.marisolfa-theme #footer .footer__main-top {
    row-gap: 1rem;
  }
}

body.marisolfa-theme #footer a {
  color: inherit;
}

body.marisolfa-theme #footer .footer-block {
  margin-block-end: 0;
}

@media (max-width: 767.98px) {
  body.marisolfa-theme #footer .footer-block {
    margin-block-end: 0.5rem;
  }
}

body.marisolfa-theme #footer .footer-block__title {
  position: relative;
  margin-block: 0 1rem;
  padding-block: 0;
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

body.marisolfa-theme #footer .footer-block__title a {
  color: inherit;
}

body.marisolfa-theme #footer .footer-block__title--toggle .stretched-link {
  color: var(--ink);
  opacity: 0.75;
}

body.marisolfa-theme #footer .footer-block__list {
  margin-block-end: 0;
  list-style: none;
  padding: 0;
}

body.marisolfa-theme #footer .footer-block__list li {
  margin: 0;
  padding: 0;
}

body.marisolfa-theme #footer .footer-block__list a {
  display: inline-block;
  font-family: var(--marisolfa-font-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  padding-block: 0.4rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

body.marisolfa-theme #footer .footer-block__list a:hover,
body.marisolfa-theme #footer .footer-block__list a:focus-visible {
  color: var(--ink);
  border-bottom-color: rgba(20, 40, 59, 0.28);
}

body.marisolfa-theme #footer .footer-block a {
  color: var(--ink);
}

body.marisolfa-theme #footer .footer-block a:hover {
  color: var(--ink);
}

body.marisolfa-theme #footer .ps-contactinfo__infos,
body.marisolfa-theme #footer .ps-contactinfo__phone,
body.marisolfa-theme #footer .ps-contactinfo__fax,
body.marisolfa-theme #footer .ps-contactinfo__email {
  font-family: var(--marisolfa-font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

body.marisolfa-theme #footer .ps-contactinfo__phone a,
body.marisolfa-theme #footer .ps-contactinfo__fax a,
body.marisolfa-theme #footer .ps-contactinfo__email a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

body.marisolfa-theme #footer .ps-contactinfo__phone a:hover,
body.marisolfa-theme #footer .ps-contactinfo__phone a:focus-visible,
body.marisolfa-theme #footer .ps-contactinfo__fax a:hover,
body.marisolfa-theme #footer .ps-contactinfo__email a:hover,
body.marisolfa-theme #footer .ps-contactinfo__email a:focus-visible {
  border-bottom-color: rgba(20, 40, 59, 0.28);
}

body.marisolfa-theme #footer .ps-contactinfo .material-icons {
  color: var(--ink-soft);
  font-size: 1.15rem;
  vertical-align: middle;
}

/* Pie estructurado — marca, texto y cuenta (footer.tpl + widgets) */
body.marisolfa-theme #footer .marisolfa-footer__top {
  margin-bottom: 0.25rem;
}

body.marisolfa-theme #footer .marisolfa-footer__logo {
  width: 150px;
  max-width: 100%;
  height: auto;
}

body.marisolfa-theme #footer .marisolfa-footer__logo-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

body.marisolfa-theme #footer .marisolfa-footer__customtext {
  margin-top: 1rem;
}

/* Texto libre bajo logo (ps_customtext) */
body.marisolfa-theme #footer .marisolfa-footer__customtext .ps-customtext,
body.marisolfa-theme #footer .footer__main-top .ps-customtext {
  margin-bottom: 0;
  background: transparent;
}

body.marisolfa-theme #footer .marisolfa-footer__customtext .ps-customtext .container,
body.marisolfa-theme #footer .footer__main-top .ps-customtext .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.marisolfa-theme #footer .marisolfa-footer__customtext .ps-customtext .container p,
body.marisolfa-theme #footer .marisolfa-footer__customtext .ps-customtext .container .markdown-body p,
body.marisolfa-theme #footer .footer__main-top .ps-customtext .container p,
body.marisolfa-theme #footer .footer__main-top .ps-customtext .container .markdown-body p {
  font-family: var(--marisolfa-font-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 0.7rem;
}

body.marisolfa-theme #footer .marisolfa-footer__customtext .ps-customtext .container p:last-child,
body.marisolfa-theme #footer .footer__main-top .ps-customtext .container p:last-child {
  margin-bottom: 0;
}

body.marisolfa-theme #footer .marisolfa-footer__customtext .ps-customtext img,
body.marisolfa-theme #footer .footer__main-top .ps-customtext img {
  max-width: min(220px, 72%);
  height: auto;
  margin: 0 0 1rem 0;
  display: block;
}

/* Bloque "Mi cuenta" (ps_customeraccountlinks) en columna del pie */
body.marisolfa-theme #footer .marisolfa-footer__account #block_myaccount_infos {
  margin: 0;
}

body.marisolfa-theme #footer .marisolfa-footer__account #block_myaccount_infos h4 {
  margin: 0 0 1rem;
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

body.marisolfa-theme #footer .marisolfa-footer__account #block_myaccount_infos h4 a {
  color: inherit;
  text-decoration: none;
}

body.marisolfa-theme #footer .marisolfa-footer__account #block_myaccount_infos ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.marisolfa-theme #footer .marisolfa-footer__account #block_myaccount_infos li a {
  display: inline-block;
  font-family: var(--marisolfa-font-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding-block: 0.35rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

body.marisolfa-theme #footer .marisolfa-footer__account #block_myaccount_infos li a:hover,
body.marisolfa-theme #footer .marisolfa-footer__account #block_myaccount_infos li a:focus-visible {
  border-bottom-color: rgba(20, 40, 59, 0.28);
}

body.marisolfa-theme #footer .marisolfa-footer__dynamic {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Redes sociales en el pie: cajas con borde fino */
body.marisolfa-theme #footer .ps-socialfollow {
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
}

body.marisolfa-theme #footer .ps-socialfollow .container {
  max-width: none !important;
  width: 100%;
  margin: 0;
  padding: 0 !important;
}

body.marisolfa-theme #footer .ps-socialfollow ul.list-unstyled {
  justify-content: flex-start !important;
  column-gap: 10px !important;
  row-gap: 10px !important;
  margin: 1.15rem 0 0 !important;
}

body.marisolfa-theme #footer .ps-socialfollow a.p-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.marisolfa-theme #footer .ps-socialfollow a.p-2:hover,
body.marisolfa-theme #footer .ps-socialfollow a.p-2:focus-visible {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(20, 40, 59, 0.18);
  color: var(--ink);
}

body.marisolfa-theme #footer .ps-socialfollow svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Copyright */
body.marisolfa-theme #footer .copyright {
  margin-top: clamp(22px, 3vw, 36px);
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-family: var(--marisolfa-font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

body.marisolfa-theme #footer .copyright a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

body.marisolfa-theme #footer .copyright a:hover,
body.marisolfa-theme #footer .copyright a:focus-visible {
  color: var(--ink);
  border-bottom-color: rgba(20, 40, 59, 0.22);
}

/* ——— Newsletter (ps_emailsubscription — override tema marisolfa) ——— */
.marisolfa-newsletter.ps-emailsubscription {
  margin: 0;
  padding: 0;
  border: none;
  /* Banda oscura completa: gana a .bg-body-tertiary de Bootstrap o plantilla núcleo */
  background-color: var(--marisolfa-newsletter-bar-bg, #121e2a) !important;
  background-image: none !important;
  color: #fff;
}

.marisolfa-newsletter__bar {
  background: transparent !important;
  color: inherit;
  padding-block: clamp(28px, 4vw, 44px);
}

.marisolfa-newsletter__shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.marisolfa-newsletter__grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  align-items: end;
}

@media (min-width: 992px) {
  .marisolfa-newsletter__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: end;
  }
}

.marisolfa-newsletter__intro {
  margin: 0;
  padding: 0;
}

.marisolfa-newsletter__brand {
  margin: 0 0 10px;
  font-family: var(--marisolfa-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.92);
}

.marisolfa-newsletter__heading {
  margin: 0;
  font-family: var(--marisolfa-font-serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.marisolfa-newsletter__form {
  margin: 0;
}

.marisolfa-newsletter__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.15rem 1.35rem;
}

.marisolfa-newsletter__field {
  flex: 1 1 140px;
  min-width: min(100%, 160px);
}

.marisolfa-newsletter__submit-wrap {
  flex: 1 1 100%;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .marisolfa-newsletter__submit-wrap {
    flex: 0 0 auto;
    margin-top: 0;
    margin-left: auto;
  }

  .marisolfa-newsletter__controls {
    flex-wrap: nowrap;
    gap: 1.25rem 1.5rem;
  }
}

.marisolfa-newsletter__label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--marisolfa-font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--marisolfa-newsletter-muted);
}

.marisolfa-newsletter__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 2px 10px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0;
  background: transparent;
  font-family: var(--marisolfa-font-serif);
  font-size: 15px;
  color: #f3f6fa;
  outline: none;
  transition: border-color 0.2s ease;
}

.marisolfa-newsletter__input::placeholder {
  color: rgba(180, 196, 214, 0.75);
  font-family: var(--marisolfa-font-serif);
}

.marisolfa-newsletter__input:hover,
.marisolfa-newsletter__input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.marisolfa-newsletter__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  margin: 0;
  border: none;
  border-radius: 2px;
  background: var(--marisolfa-newsletter-button-bg);
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--marisolfa-newsletter-bar-bg);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.marisolfa-newsletter__submit:hover,
.marisolfa-newsletter__submit:focus-visible {
  background: #fff;
  color: var(--marisolfa-newsletter-bar-bg);
}

.marisolfa-newsletter__submit--block {
  width: 100%;
}

.marisolfa-newsletter__alert {
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

.marisolfa-newsletter__alert.alert-success {
  border-color: rgba(115, 129, 115, 0.55) !important;
}

.marisolfa-newsletter__alert.alert-danger {
  border-color: rgba(220, 120, 120, 0.55) !important;
}

.marisolfa-newsletter__alert .btn-close {
  filter: invert(1);
  opacity: 0.7;
}

.marisolfa-newsletter__gdpr {
  flex-basis: 100%;
  margin-top: 1rem;
  font-family: var(--marisolfa-font-ui);
  font-size: 12px;
  line-height: 1.45;
  color: var(--marisolfa-newsletter-muted);
}

.marisolfa-newsletter__gdpr a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.marisolfa-newsletter__gdpr .form-check,
.marisolfa-newsletter__gdpr .custom-checkbox label,
.marisolfa-newsletter__gdpr label {
  color: var(--marisolfa-newsletter-muted);
}

.marisolfa-newsletter__gdpr .form-check-input {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.08);
}

.marisolfa-newsletter__gdpr .form-check-input:checked {
  background-color: var(--marisolfa-newsletter-button-bg);
  border-color: var(--marisolfa-newsletter-button-bg);
}

.marisolfa-newsletter__legal {
  margin: 1rem 0 0;
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  line-height: 1.45;
  color: var(--marisolfa-newsletter-muted);
}

/* Variante columna (sidebar / pie en grid) */
.marisolfa-newsletter--column {
  padding: 1.25rem 1.1rem;
  background: var(--marisolfa-newsletter-bar-bg) !important;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.marisolfa-newsletter--column .marisolfa-newsletter__col-title,
.marisolfa-newsletter--column .left-block__title {
  font-family: var(--marisolfa-font-serif) !important;
  font-size: 1.05rem !important;
  font-weight: 500;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #fff !important;
  margin-bottom: 1rem !important;
}

.marisolfa-newsletter--column .marisolfa-newsletter__form--stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/*
 * Fallback: plantilla Hummingbird / núcleo (solo .ps-emailsubscription + .bg-body-tertiary),
 * por caché de Smarty o módulo sin override del tema hijo.
 */
#footer .footer__before > .ps-emailsubscription:not(.marisolfa-newsletter),
#wrapper #content-wrapper .ps-emailsubscription.bg-body-tertiary:not(.marisolfa-newsletter),
.ps-emailsubscription.bg-body-tertiary:not(.marisolfa-newsletter) {
  background-color: #121e2a !important;
  background-image: none !important;
  color: #fff !important;
}

#footer .footer__before .ps-emailsubscription:not(.marisolfa-newsletter) .h3,
#footer .footer__before .ps-emailsubscription:not(.marisolfa-newsletter) .row .h3,
#wrapper .ps-emailsubscription:not(.marisolfa-newsletter) .h3 {
  color: #fff !important;
  font-family: var(--marisolfa-font-serif, "Iowan Old Style", Georgia, serif);
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  font-weight: 400;
}

#footer .footer__before .ps-emailsubscription:not(.marisolfa-newsletter) .form-control,
#wrapper .ps-emailsubscription:not(.marisolfa-newsletter) .form-control {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

#footer .footer__before .ps-emailsubscription:not(.marisolfa-newsletter) .form-control::placeholder,
#wrapper .ps-emailsubscription:not(.marisolfa-newsletter) .form-control::placeholder {
  color: rgba(200, 210, 224, 0.85);
}

#footer .footer__before .ps-emailsubscription:not(.marisolfa-newsletter) .btn-primary,
#wrapper .ps-emailsubscription:not(.marisolfa-newsletter) .btn-primary {
  background-color: var(--marisolfa-newsletter-button-bg, #f5f0e6) !important;
  border: none !important;
  color: #121e2a !important;
  font-family: var(--marisolfa-font-ui, Arial, Helvetica, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 12px 22px;
  border-radius: 2px;
}

#footer .footer__before .ps-emailsubscription:not(.marisolfa-newsletter) .text-body-secondary,
#wrapper .ps-emailsubscription:not(.marisolfa-newsletter) .text-body-secondary {
  color: rgba(255, 255, 255, 0.58) !important;
}

/* ——— Logo cabecera (alineado a mf-estatico: sin recuadro) ——— */
body.marisolfa-theme .marisolfa-header .brand-mark {
  display: inline-block;
  width: 300px;
  max-width: 32vw;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 767.98px) {
  body.marisolfa-theme .marisolfa-header .brand-mark {
    width: 180px;
  }
}

body.marisolfa-theme .marisolfa-header .brand-mark__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.marisolfa-product-card .product-media {
  position: relative;
  aspect-ratio: 0.84;
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
}

.marisolfa-product-card .product-media__hit {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.marisolfa-product-card .product-media img.primary,
.marisolfa-product-card .product-media img.secondary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marisolfa-product-card .product-media img.secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.marisolfa-product-card:hover .product-media img.secondary {
  opacity: 1;
  transform: scale(1.02);
}

.marisolfa-product-card:hover .product-media img.primary {
  transform: scale(1.02);
}

.marisolfa-product-card .product-media img.primary {
  transition: transform 0.45s ease;
}

.marisolfa-product-card .price--regular {
  text-decoration: line-through;
  opacity: 0.72;
  margin-right: 0.35em;
}

.marisolfa-product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.marisolfa-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(20, 40, 59, 0.18);
}

.marisolfa-product-card .product-info {
  padding: 16px 16px 18px;
  display: grid;
  gap: 10px;
}

.marisolfa-product-card .product-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.marisolfa-product-card .product-name {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 400;
}

.marisolfa-product-card .product-name a {
  color: inherit;
  text-decoration: none;
}

.marisolfa-product-card .product-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.marisolfa-product-card .product-sub {
  color: var(--marisolfa-ink-soft);
  font-size: 13px;
  font-family: var(--marisolfa-font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 6px 0 0;
}

.marisolfa-product-card .price {
  font-family: var(--marisolfa-font-ui);
  font-size: 14px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.marisolfa-product-card .product-price {
  margin-top: 8px;
}

.marisolfa-product-card .quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.marisolfa-product-card .mini-btn {
  flex: 1;
  border: 1px solid var(--line);
  background: transparent;
  padding: 11px 12px;
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  display: block;
  color: inherit;
  box-sizing: border-box;
}

.marisolfa-product-card .mini-btn:hover {
  opacity: 0.92;
}

/* ——— Hero (módulo marisolfahero en displayBanner) ——— */
body.marisolfa-theme .marisolfa-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: clamp(500px, 50vh, 720px);
  margin: 0;
  width: 100%;
}

body.marisolfa-theme .marisolfa-hero .hero-main {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
}

body.marisolfa-theme .marisolfa-hero .hero-bg-carousel,
body.marisolfa-theme .marisolfa-hero .hero-overlay {
  position: absolute;
  inset: 0;
}

body.marisolfa-theme .marisolfa-hero .hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

body.marisolfa-theme .marisolfa-hero .hero-bg-slide.is-active {
  opacity: 1;
}

body.marisolfa-theme .marisolfa-hero .hero-bg-slide--panorama.is-active {
  object-position: 52% 38%;
  transform: scale(1.04);
  transform-origin: 52% 38%;
  animation: heroKen 32s ease-in-out infinite alternate;
}

body.marisolfa-theme .marisolfa-hero .hero-bg-slide--fullfigure.is-active {
  object-fit: contain;
  object-position: center bottom;
  background: linear-gradient(180deg, rgba(20, 37, 52, 0.98), rgba(20, 37, 52, 0.86));
  animation: heroKenContain 30s ease-in-out infinite alternate;
}

@keyframes heroKen {
  0% { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.12) translate(1.2%, -0.6%); }
}

@keyframes heroKenContain {
  0% { transform: scale(1.01) translate(0, 0); }
  100% { transform: scale(1.06) translate(0.6%, -0.4%); }
}

body.marisolfa-theme .marisolfa-hero .hero-overlay {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3.5vw, 42px);
  color: #f7f2ea;
  background: linear-gradient(105deg, rgba(8, 15, 22, 0.75) 0%, rgba(8, 15, 22, 0.28) 48%, rgba(8, 15, 22, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 15, 22, 0.88) 0%, rgba(8, 15, 22, 0.2) 42%, rgba(8, 15, 22, 0.05) 100%);
}

body.marisolfa-theme .marisolfa-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.2em;
  color: rgba(247, 242, 234, 0.82);
}

body.marisolfa-theme .marisolfa-hero .hero-eyebrow-sep {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(247, 242, 234, 0.55), rgba(247, 242, 234, 0.08));
}

body.marisolfa-theme .marisolfa-hero .hero-block {
  position: relative;
  display: grid;
  gap: clamp(10px, 1.5vw, 16px);
  max-width: min(100%, 52rem);
}

body.marisolfa-theme .marisolfa-hero .hero-season-mark {
  position: absolute;
  right: -2%;
  top: -8%;
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 7rem);
  line-height: 0.75;
  letter-spacing: -0.06em;
  color: rgba(247, 242, 234, 0.07);
  pointer-events: none;
}

body.marisolfa-theme .marisolfa-hero .hero-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 300;
}

body.marisolfa-theme .marisolfa-hero .hero-title-line {
  display: block;
}

body.marisolfa-theme .marisolfa-hero .hero-title-line.accent {
  color: rgba(247, 242, 234, 0.98);
}

body.marisolfa-theme .marisolfa-hero .hero-title-year {
  font-size: 0.42em;
  vertical-align: super;
  margin-left: 0.12em;
  color: rgba(201, 212, 198, 0.95);
}

body.marisolfa-theme .marisolfa-hero .hero-lede {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.5;
  color: rgba(247, 242, 234, 0.78);
}

body.marisolfa-theme .marisolfa-hero .hero-meta .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

body.marisolfa-theme .marisolfa-hero .btn.fill,
body.marisolfa-theme .marisolfa-hero .btn.fill.caps {
  /* Misma lectura que mf-estatico: rectángulo sin redondeo, crema + texto ink */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.95rem 1.85rem;
  font-family: var(--marisolfa-font-ui) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  background: #f5f0e6 !important;
  color: var(--ink) !important;
}

body.marisolfa-theme .marisolfa-hero .btn.fill:hover,
body.marisolfa-theme .marisolfa-hero .btn.fill:focus,
body.marisolfa-theme .marisolfa-hero .btn.fill:focus-visible {
  background: #ebe4d9 !important;
  color: var(--ink) !important;
  border: none !important;
  box-shadow: none !important;
}

body.marisolfa-theme .marisolfa-hero .hero-side-shell {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  pointer-events: none;
  padding-bottom: 20px;
}

body.marisolfa-theme .marisolfa-hero .hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}

body.marisolfa-theme .marisolfa-hero .hero-card {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  width: min(100%, calc(520px * 2 / 3));
  aspect-ratio: 2.5 / 1;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: #f7f2ea;
  text-decoration: none;
}

body.marisolfa-theme .marisolfa-hero .hero-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s ease;
}

body.marisolfa-theme .marisolfa-hero .hero-card:hover .hero-card-media {
  transform: scale(1.06);
}

body.marisolfa-theme .marisolfa-hero .hero-card .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 17px 19px 20px;
  background: linear-gradient(180deg, rgba(20, 40, 59, 0.1) 0%, rgba(8, 15, 22, 0.62) 100%);
}

@media (prefers-reduced-motion: reduce) {
  body.marisolfa-theme .marisolfa-hero .hero-bg-slide {
    transition: opacity 0.4s ease;
  }

  body.marisolfa-theme .marisolfa-hero .hero-bg-slide.is-active {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 1180px) {
  body.marisolfa-theme .marisolfa-hero {
    display: block;
  }

  body.marisolfa-theme .marisolfa-hero .hero-main {
    min-height: clamp(500px, 50vh, 640px);
  }

  body.marisolfa-theme .marisolfa-hero .hero-side-shell {
    margin-top: 16px;
    padding-bottom: 0;
  }

  body.marisolfa-theme .marisolfa-hero .hero-side {
    align-items: stretch;
  }

  body.marisolfa-theme .marisolfa-hero .hero-card {
    width: 100%;
    aspect-ratio: 2.35 / 1;
  }
}

/* ——— Marquesina bajo hero (mf-estatico .ticker) ——— */
@keyframes marisolfa-ticker-glide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

body.marisolfa-theme .marisolfa-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
  background: rgba(255, 255, 255, 0.26);
  overflow: hidden;
  white-space: nowrap;
}

body.marisolfa-theme .marisolfa-ticker__track {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 34px;
  padding: 14px 0;
  will-change: transform;
  animation: marisolfa-ticker-glide var(--marisolfa-marquee-duration, 20s) linear infinite;
}

body.marisolfa-theme .marisolfa-ticker__item {
  font-family: var(--marisolfa-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--ink-soft);
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  body.marisolfa-theme .marisolfa-ticker__track {
    animation: none !important;
    transform: none !important;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 8px;
  }
}

/* ——— Looks (mf-estatico #looks) ——— */
body.marisolfa-theme .marisolfa-looks.section {
  padding-top: 42px;
}

body.marisolfa-theme .marisolfa-looks .section-head.section-head--looks {
  display: block;
  /* mf-estatico: .section-head { margin-bottom: 22px } — aire entre cabecera y grilla */
  margin-bottom: 22px;
}

body.marisolfa-theme .marisolfa-looks .section-head--looks .section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  width: 100%;
}

body.marisolfa-theme .marisolfa-looks .section-head--looks .section-head-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 2.5vw, 28px);
  flex-wrap: wrap;
  flex: 0 1 auto;
  min-width: 0;
}

body.marisolfa-theme .marisolfa-looks .section-head--looks .section-head-top h2,
body.marisolfa-theme .marisolfa-looks__title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-looks .section-head--looks .section-head-row > p,
body.marisolfa-theme .marisolfa-looks__subtitle {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
  text-align: right;
  flex: 0 1 auto;
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  line-height: 1.4;
}

body.marisolfa-theme .marisolfa-looks .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.35;
  border-radius: 5px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

body.marisolfa-theme .marisolfa-looks .btn-ghost:hover {
  background: var(--ink);
  color: #f7f2ea;
  border-color: var(--ink);
  transform: translateY(-1px);
}

body.marisolfa-theme .marisolfa-looks__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

body.marisolfa-theme .marisolfa-looks__grid--mosaic-only {
  grid-template-columns: 1fr;
}

body.marisolfa-theme .marisolfa-looks .feature-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 480px;
}

body.marisolfa-theme .marisolfa-looks .feature-panel.look-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--dark);
  min-height: 480px;
  color: inherit;
  text-decoration: none;
}

body.marisolfa-theme .marisolfa-looks .feature-panel.look-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s ease;
  transform: scale(1);
  transform-origin: center center;
}

body.marisolfa-theme .marisolfa-looks .feature-panel.look-photo:hover img {
  transform: scale(1.06);
}

body.marisolfa-theme .marisolfa-looks .feature-panel.look-photo .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: linear-gradient(180deg, rgba(8, 15, 22, 0.06), rgba(8, 15, 22, 0.56));
  color: #f7f2ea;
  pointer-events: none;
}

body.marisolfa-theme
  .marisolfa-looks
  .feature-panel.look-photo
  .overlay
  .marisolfa-looks__panel-title,
body.marisolfa-theme .marisolfa-looks .feature-panel.look-photo .overlay h3 {
  margin: 0;
  font-family: var(--marisolfa-font-serif);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
  max-width: 8ch;
}

body.marisolfa-theme .marisolfa-looks .feature-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

body.marisolfa-theme .marisolfa-looks .mosaic-card {
  min-height: 480px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ddd;
  color: inherit;
  text-decoration: none;
}

body.marisolfa-theme .marisolfa-looks .mosaic-card.tall {
  min-height: 620px;
}

body.marisolfa-theme .marisolfa-looks .mosaic-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s ease;
  transform: scale(1);
  transform-origin: center center;
}

body.marisolfa-theme .marisolfa-looks .mosaic-card:hover > img {
  transform: scale(1.06);
}

body.marisolfa-theme .marisolfa-looks .mosaic-card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(180deg, rgba(20, 40, 59, 0), rgba(20, 40, 59, 0.62));
  color: #f7f2ea;
  pointer-events: none;
}

body.marisolfa-theme .marisolfa-looks .marisolfa-looks__mosaic-title,
body.marisolfa-theme .marisolfa-looks .mosaic-card .overlay h4 {
  margin: 0;
  font-family: var(--marisolfa-font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body.marisolfa-theme .marisolfa-looks .feature-panel.look-photo .overlay .ui-label,
body.marisolfa-theme .marisolfa-looks .mosaic-card .overlay .ui-label {
  color: rgba(247, 242, 234, 0.95);
}

@media (max-width: 1180px) {
  body.marisolfa-theme .marisolfa-looks__grid {
    grid-template-columns: 1fr;
  }

  body.marisolfa-theme .marisolfa-looks .feature-mosaic {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.marisolfa-theme .marisolfa-looks .section-head--looks .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  body.marisolfa-theme .marisolfa-looks .section-head--looks .section-head-row > p,
  body.marisolfa-theme .marisolfa-looks__subtitle {
    text-align: left;
    width: 100%;
    max-width: 48ch;
  }

  body.marisolfa-theme .marisolfa-looks .feature-panel,
  body.marisolfa-theme .marisolfa-looks .mosaic-card,
  body.marisolfa-theme .marisolfa-looks .mosaic-card.tall {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.marisolfa-theme .marisolfa-looks .feature-panel.look-photo img,
  body.marisolfa-theme .marisolfa-looks .mosaic-card > img {
    transition: none;
  }

  body.marisolfa-theme .marisolfa-looks .feature-panel.look-photo:hover img,
  body.marisolfa-theme .marisolfa-looks .mosaic-card:hover > img {
    transform: none;
  }
}

/* Etiqueta "Ver look" que sigue al cursor (home looks + lookbook) */
body.marisolfa-theme .marisolfa-look-cursor-tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  /* Anclado al cursor, ligeramente arriba-derecha (no centrado bajo el puntero) */
  transform: translate(14px, calc(-100% - 10px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  white-space: nowrap;
  font-family: var(--marisolfa-font-sans, system-ui, -apple-system, 'Segoe UI', sans-serif);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f7f2ea;
  background: #0a1016;
  border: 1px solid rgba(247, 242, 234, 0.38);
  padding: 0.65rem 1.15rem;
  box-sizing: border-box;
}

body.marisolfa-theme .marisolfa-look-cursor-tag.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Lookbook índice — portadas a tamaño completo (anula img { max-width:100%; height:auto } del tema) */
body.marisolfa-theme .marisfa-lookbook-page .marisfa-lookbook-cell__img,
body.marisolfa-theme .marisfa-lookbook-page .marisfa-lookbook-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

body.marisolfa-theme .marisfa-look-page .marisfa-look-visual__img,
body.marisolfa-theme .marisfa-look-page .marisfa-look-visual img {
  max-width: none;
  max-height: none;
}

/* ——— Destacados home (#marisolfa-featured / mf-estatico #coleccion) ——— */
body.marisolfa-theme .marisolfa-featured.section {
  padding-top: 84px;
  background: transparent;
}

body.marisolfa-theme .marisolfa-featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

body.marisolfa-theme .marisolfa-featured__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ink);
  font-family: var(--marisolfa-font-serif);
}

body.marisolfa-theme .marisolfa-featured__lede {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
  font-family: var(--marisolfa-font-ui);
  font-size: 14px;
  line-height: 1.4;
}

body.marisolfa-theme .marisolfa-featured__layout.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

body.marisolfa-theme .marisolfa-featured .filter-card {
  position: static;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  display: grid;
  gap: 22px;
}

body.marisolfa-theme .marisolfa-featured .field-block {
  display: grid;
  gap: 12px;
}

body.marisolfa-theme .marisolfa-featured .field-block h3,
body.marisolfa-theme .marisolfa-featured__filter-heading {
  margin: 0;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--marisolfa-font-ui);
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-featured .chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.marisolfa-theme .marisolfa-featured .chip-row--stack {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}

body.marisolfa-theme .marisolfa-featured .chip-row--stack .chip {
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

body.marisolfa-theme .marisolfa-featured .chip {
  padding: 11px 14px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  transition: all 0.25s ease;
  font-family: var(--marisolfa-font-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

body.marisolfa-theme .marisolfa-featured .chip.active,
body.marisolfa-theme .marisolfa-featured .chip:hover {
  background: var(--ink);
  color: #f5f0e8;
  border-color: var(--ink);
}

body.marisolfa-theme .marisolfa-featured__cell,
body.marisolfa-theme .marisolfa-featured__item {
  position: relative;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(20, 40, 59, 0.16);
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: block;
  padding: 20px 16px 14px;
  color: #f7f2ea;
  background: rgba(8, 15, 22, 0.82);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid:hover .product-info,
body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid:focus-within .product-info {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-sub,
body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .quick-actions,
body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-flags {
  display: none !important;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-line {
  display: block;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-name {
  color: inherit;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-name a:hover {
  text-decoration-color: rgba(247, 242, 234, 0.75);
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-price {
  margin-top: 8px;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .price {
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
}

body.marisolfa-theme .marisolfa-featured__main {
  min-width: 0;
}

body.marisolfa-theme .marisolfa-featured__viewport {
  position: relative;
}

body.marisolfa-theme .marisolfa-featured__viewport--carousel {
  padding: 0 44px;
}

body.marisolfa-theme #marisolfa-featured .marisolfa-featured__product-grid.products {
  margin: 0;
  list-style: none;
  padding: 0;
}

body.marisolfa-theme #marisolfa-featured .marisolfa-featured__track--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.marisolfa-theme #marisolfa-featured .marisolfa-featured__viewport--carousel .marisolfa-featured__track--carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.marisolfa-theme #marisolfa-featured .marisolfa-featured__viewport--carousel .marisolfa-featured__track--carousel::-webkit-scrollbar {
  display: none;
}

body.marisolfa-theme #marisolfa-featured .marisolfa-featured__viewport--carousel .marisolfa-featured__item {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 200px;
  scroll-snap-align: start;
}

body.marisolfa-theme .marisolfa-featured__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

body.marisolfa-theme .marisolfa-featured__nav--prev {
  left: 0;
}

body.marisolfa-theme .marisolfa-featured__nav--next {
  right: 0;
}

body.marisolfa-theme .marisolfa-featured__item {
  position: relative;
  min-width: 0;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid {
  height: 100%;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid {
  background: #0f1419;
  border: 1px solid var(--line);
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #e8e4dc;
  min-height: 220px;
}

body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-media img.primary,
body.marisolfa-theme .marisolfa-featured .marisolfa-product-card--featured-grid .product-media img.secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

@media (max-width: 1180px) {
  body.marisolfa-theme #marisolfa-featured .marisolfa-featured__track--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.marisolfa-theme #marisolfa-featured .marisolfa-featured__viewport--carousel .marisolfa-featured__item {
    flex: 0 0 calc((100% - 18px) / 2);
  }

  body.marisolfa-theme .marisolfa-featured__layout.shop-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.marisolfa-theme #marisolfa-featured .marisolfa-featured__track--grid {
    grid-template-columns: 1fr;
  }

  body.marisolfa-theme .marisolfa-featured__viewport--carousel {
    padding: 0 36px;
  }

  body.marisolfa-theme #marisolfa-featured .marisolfa-featured__viewport--carousel .marisolfa-featured__item {
    flex: 0 0 78%;
    min-width: 0;
  }
}

/* ——— Aviso producto no disponible (redirect 301 a categoría) ——— */
body.marisolfa-theme .marisolfa-product-unavailable-notice {
  margin: 0 0 20px;
  border-radius: 0;
  border: 1px solid rgba(20, 40, 59, 0.2);
  background: #f7f2ea;
  color: var(--ink, #14283b);
  font-size: 14px;
  line-height: 1.45;
}

/* ——— Mega menú (marisolfamegamenu + override ps_mainmenu) ——— */
body.marisolfa-theme .submenu.submenu--marisolfa-showcase {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-block: 12px;
}

body.marisolfa-theme .submenu.submenu--marisolfa-showcase > .container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(28, 36, 52, 0.12);
  padding: 28px 32px 32px;
  max-width: min(1180px, calc(100% - 32px));
}

body.marisolfa-theme .marisolfa-mega__categories-label {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
}

body.marisolfa-theme .marisolfa-mega__category-link {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  font-family: var(--marisolfa-font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.marisolfa-theme .marisolfa-mega__category-link:hover,
body.marisolfa-theme .marisolfa-mega__category-link:focus-visible {
  color: var(--ink);
  border-bottom-color: rgba(28, 36, 52, 0.35);
}

body.marisolfa-theme .marisolfa-mega__spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

body.marisolfa-theme .marisolfa-mega__spotlight {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  text-decoration: none;
  color: #fff;
  background: #1c2434;
}

body.marisolfa-theme .marisolfa-mega__spotlight-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.marisolfa-theme .marisolfa-mega__spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.marisolfa-theme .marisolfa-mega__spotlight-caption {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(12, 16, 24, 0.75));
  font-family: var(--marisolfa-font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

body.marisolfa-theme .marisolfa-mega__spotlight-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.95;
}

@media (max-width: 1399px) {
  body.marisolfa-theme .marisolfa-mega__spotlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.marisolfa-theme .marisolfa-mega__spotlight {
    min-height: 190px;
  }
}

/* ——— Exclusivos tienda online (marisolfaexclusivoonline) — mf-estatico: rectángulos, sin redondeos ——— */
body.marisolfa-theme .marisolfa-exclusive.section {
  padding-top: 84px;
  padding-bottom: clamp(48px, 7vw, 96px);
}

body.marisolfa-theme .marisolfa-exclusive__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  /* mf-estatico / #coleccion: mismo aire bajo cabecera de sección */
  margin-bottom: 22px;
}

body.marisolfa-theme .marisolfa-exclusive__title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--marisolfa-font-serif);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-exclusive__tagline {
  margin: 0;
  flex: 1 1 220px;
  max-width: 42ch;
  margin-left: auto;
  text-align: right;
  font-family: var(--marisolfa-font-ui);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

body.marisolfa-theme .marisolfa-exclusive__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 340px);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

body.marisolfa-theme .marisolfa-exclusive__stage-wrap {
  position: relative;
}

body.marisolfa-theme .marisolfa-exclusive__stage {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: clamp(280px, 48vw, 520px);
  background: #1a2230;
  border: 1px solid rgba(250, 248, 244, 0.12);
}

body.marisolfa-theme .marisolfa-exclusive__slide {
  position: relative;
  height: 100%;
  min-height: clamp(280px, 48vw, 520px);
}

body.marisolfa-theme .marisolfa-exclusive__slide[hidden] {
  display: none !important;
}

body.marisolfa-theme .marisolfa-exclusive__slide-media {
  position: absolute;
  inset: 0;
}

body.marisolfa-theme .marisolfa-exclusive__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.marisolfa-theme .marisolfa-exclusive__slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
  background: linear-gradient(180deg, transparent 35%, rgba(12, 16, 24, 0.78));
  pointer-events: none;
}

body.marisolfa-theme .marisolfa-exclusive__slide-name {
  margin: 0;
  font-family: var(--marisolfa-font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: #faf8f4;
}

body.marisolfa-theme .marisolfa-exclusive__slide-price {
  margin: 0;
  font-family: var(--marisolfa-font-ui);
  font-size: 14px;
  font-weight: 600;
  color: rgba(250, 248, 244, 0.92);
}

body.marisolfa-theme .marisolfa-exclusive__cta {
  pointer-events: auto;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: #f5f0e6;
  color: var(--ink);
  border-radius: 0;
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

body.marisolfa-theme .marisolfa-exclusive__cta:hover,
body.marisolfa-theme .marisolfa-exclusive__cta:focus-visible {
  background: #ebe4d9;
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-exclusive__arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

body.marisolfa-theme .marisolfa-exclusive__arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 1px solid rgba(250, 248, 244, 0.4);
  background: rgba(12, 16, 24, 0.55);
  color: #faf8f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.marisolfa-theme .marisolfa-exclusive__arrow:hover,
body.marisolfa-theme .marisolfa-exclusive__arrow:focus-visible {
  background: rgba(12, 16, 24, 0.78);
  border-color: rgba(250, 248, 244, 0.6);
}

body.marisolfa-theme .marisolfa-exclusive__arrow .material-icons {
  font-size: 22px;
}

body.marisolfa-theme .marisolfa-exclusive__side {
  /* Misma lectura que .marisolfa-featured .filter-card / mf-estatico */
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.marisolfa-theme .marisolfa-exclusive__eyebrow {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

body.marisolfa-theme .marisolfa-exclusive__heading {
  margin: 0;
  font-family: var(--marisolfa-font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

body.marisolfa-theme .marisolfa-exclusive__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

body.marisolfa-theme .marisolfa-exclusive__list-item {
  border-top: 1px solid rgba(28, 36, 52, 0.08);
}

body.marisolfa-theme .marisolfa-exclusive__list-item:last-child {
  border-bottom: 1px solid rgba(28, 36, 52, 0.08);
}

body.marisolfa-theme .marisolfa-exclusive__list-btn {
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  margin: 0;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--marisolfa-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-radius: 0;
}

body.marisolfa-theme .marisolfa-exclusive__list-btn:hover,
body.marisolfa-theme .marisolfa-exclusive__list-btn:focus-visible {
  background: rgba(255, 255, 255, 0.55);
}

body.marisolfa-theme .marisolfa-exclusive__list-btn.is-active {
  background: #fff;
  border-color: var(--line);
}

@media (max-width: 991px) {
  body.marisolfa-theme .marisolfa-exclusive__grid {
    grid-template-columns: 1fr;
  }

  body.marisolfa-theme .marisolfa-exclusive__tagline {
    text-align: left;
    margin-left: 0;
  }

  body.marisolfa-theme .marisolfa-exclusive__side {
    order: 2;
  }

  body.marisolfa-theme .marisolfa-exclusive__stage-wrap {
    order: 1;
  }
}

/* ——— Ficha de producto (PDP) — alineada a mf-estatico/product.css ——— */
body.marisolfa-theme#product .marisolfa-product-page {
  padding: 28px 0 56px;
}

body.marisolfa-theme#product .marisolfa-product-shell {
  width: min(calc(100% - 28px), var(--max));
  margin-inline: auto;
}

body.marisolfa-theme#product .marisolfa-product-detail-card {
  background: #f8f3ec;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.marisolfa-theme#product .marisolfa-product-detail-grid.product__container {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: start;
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.marisolfa-theme#product .marisolfa-product-detail-media.product__left {
  position: relative;
  align-self: start;
  width: 100%;
  min-height: min(72vh, 720px);
  background: #ddd;
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__images {
  position: relative;
  height: 100%;
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__carousel {
  position: relative;
  height: 100%;
}

body.marisolfa-theme#product .marisolfa-product-detail-media .carousel-inner,
body.marisolfa-theme#product .marisolfa-product-detail-media .carousel-item {
  min-height: min(72vh, 720px);
}

body.marisolfa-theme#product .marisolfa-product-detail-media .carousel-item picture,
body.marisolfa-theme#product .marisolfa-product-detail-media .carousel-item img {
  display: block;
  width: 100%;
  /* height:100% con padres sin altura definida puede dejar la imagen sin pintar en algunos navegadores */
  height: auto;
  min-height: min(72vh, 720px);
  object-fit: cover;
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__no-image {
  position: relative;
  min-height: min(72vh, 720px);
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__no-image img {
  width: 100%;
  min-height: min(72vh, 720px);
  object-fit: cover;
}

body#product .marisolfa-product-detail-media .product-flags,
body.marisolfa-theme#product .marisolfa-product-detail-media .product-flags {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  max-width: calc(100% - 40px);
  padding: 0;
  margin: 0;
  list-style: none;
  pointer-events: none;
}

body#product .marisolfa-product-detail-media .product-flags .badge,
body#product .marisolfa-product-detail-media .product-flags .marisolfa-product-tag,
body.marisolfa-theme#product .marisolfa-product-detail-media .product-flags .badge,
body.marisolfa-theme#product .marisolfa-product-detail-media .product-flags .marisolfa-product-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid rgba(20, 40, 59, 0.08);
  border-radius: 999px;
  background: rgba(247, 242, 234, 0.94) !important;
  background-color: rgba(247, 242, 234, 0.94) !important;
  box-shadow: 0 1px 8px rgba(16, 25, 35, 0.08);
  color: var(--ink) !important;
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.marisolfa-theme#product .marisolfa-pdp-wish {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.marisolfa-theme#product .marisolfa-pdp-wish:empty {
  display: none;
}

body.marisolfa-theme#product .marisolfa-pdp-wish .wishlist-button-add,
body.marisolfa-theme#product .marisolfa-pdp-wish a,
body.marisolfa-theme#product .marisolfa-pdp-wish button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(247, 242, 234, 0.92);
  border: 1px solid rgba(20, 40, 59, 0.12);
  box-shadow: 0 1px 8px rgba(16, 25, 35, 0.08);
  color: var(--ink);
  text-decoration: none;
}

body.marisolfa-theme#product .marisolfa-pdp-wish .wishlist-button-add:hover,
body.marisolfa-theme#product .marisolfa-pdp-wish a:hover {
  background: rgba(255, 255, 255, 0.95);
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__zoom {
  position: absolute;
  bottom: 120px;
  right: 16px;
  top: auto;
  z-index: 4;
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin: 0;
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid var(--line);
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__thumbnails-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__thumbnail {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  width: 72px;
  height: 96px;
  flex-shrink: 0;
  background: none;
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__thumbnail.active,
body.marisolfa-theme#product .marisolfa-product-detail-media .product__thumbnail[aria-current="true"] {
  border-color: var(--ink);
}

body.marisolfa-theme#product .marisolfa-product-detail-media .product__thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

body.marisolfa-theme#product .marisolfa-product-detail-info.product__right {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
  background: transparent;
}

body.marisolfa-theme#product .marisolfa-pdp-kicker {
  margin: 0 0 6px;
}

body.marisolfa-theme#product .marisolfa-pdp-kicker-link {
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}

body.marisolfa-theme#product .marisolfa-pdp-kicker-link:hover {
  color: var(--ink);
}

body.marisolfa-theme#product .product__name {
  margin: 0;
  font-family: var(--marisolfa-font-serif);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ink);
}

body.marisolfa-theme#product .product__manufacturer {
  font-family: var(--marisolfa-font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
}

body.marisolfa-theme#product .product__manufacturer a {
  color: var(--ink-soft);
  text-decoration: none;
}

body.marisolfa-theme#product .product__manufacturer a:hover {
  color: var(--ink);
}

body.marisolfa-theme#product .product__prices {
  margin: 0;
}

body.marisolfa-theme#product .product__price {
  font-family: var(--marisolfa-font-ui);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
}

body.marisolfa-theme#product .product__regular-price {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 0.95em;
}

body.marisolfa-theme#product .product__discount-percentage,
body.marisolfa-theme#product .product__discount-amount {
  color: var(--ink);
  font-family: var(--marisolfa-font-ui);
  font-size: 12px;
}

body.marisolfa-theme#product .product-variant__label {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0;
}

body.marisolfa-theme#product .marisolfa-pdp-field-label,
body.marisolfa-theme#product .marisolfa-pdp-field-label-row .product-variant__legend,
body.marisolfa-theme#product .product-variant__label .product-variant__selected {
  font-family: var(--marisolfa-font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  vertical-align: baseline;
}

body.marisolfa-theme#product .marisolfa-pdp-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

body.marisolfa-theme#product .product-chart-link {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--marisolfa-font-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.marisolfa-theme#product .product-chart-link:hover {
  opacity: 0.85;
}

body.marisolfa-theme#product .marisolfa-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.marisolfa-theme#product .marisolfa-color-pill-wrap .input-color__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 3;
}

body.marisolfa-theme#product .marisolfa-color-pill-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: top;
}

body.marisolfa-theme#product .marisolfa-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 2px;
  margin: 0;
}

body.marisolfa-theme#product .marisolfa-color-pill--active,
body.marisolfa-theme#product .input-color__input:checked + .marisolfa-color-pill {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f2ea;
}

body.marisolfa-theme#product .marisolfa-color-pill__swatch {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(20, 40, 59, 0.2);
  flex-shrink: 0;
}

body.marisolfa-theme#product .marisolfa-color-pill--active .marisolfa-color-pill__swatch,
body.marisolfa-theme#product .input-color__input:checked + .marisolfa-color-pill .marisolfa-color-pill__swatch {
  border-color: rgba(255, 255, 255, 0.45);
}

body.marisolfa-theme#product .marisolfa-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.marisolfa-theme#product .marisolfa-size-pill-wrap {
  position: relative;
  display: inline-grid;
  place-items: stretch;
}

body.marisolfa-theme#product .marisolfa-size-pill-input {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

body.marisolfa-theme#product .marisolfa-size-pill-label {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--marisolfa-font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
  pointer-events: none;
}

body.marisolfa-theme#product .marisolfa-size-pill-input:checked + .marisolfa-size-pill-label,
body.marisolfa-theme#product .marisolfa-size-pill-input:focus-visible + .marisolfa-size-pill-label {
  background: var(--ink);
  color: #f7f2ea;
}

body.marisolfa-theme#product .marisolfa-size-pill-input:focus-visible + .marisolfa-size-pill-label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.marisolfa-theme#product .product__actions {
  margin-top: 4px;
}

body.marisolfa-theme#product .product__actions-qty-add {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

body.marisolfa-theme#product .product__quantity .quantity-button__group {
  max-width: 200px;
}

body.marisolfa-theme#product .product__add-to-cart {
  width: 100%;
}

body.marisolfa-theme#product .marisolfa-pdp-buy.product__add-to-cart-button {
  width: 100%;
  padding: 15px 18px;
  border-radius: 2px;
  font-family: var(--marisolfa-font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f2ea;
}

body.marisolfa-theme#product .marisolfa-pdp-buy.product__add-to-cart-button:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #f7f2ea;
}

body.marisolfa-theme#product .marisolfa-pdp-buy .material-icons {
  display: none;
}

body.marisolfa-theme#product .marisolfa-pdp-meta {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

body.marisolfa-theme#product .marisolfa-pdp-meta p {
  margin: 0 0 0.5em;
}

body.marisolfa-theme#product .marisolfa-pdp-meta p:last-child {
  margin-bottom: 0;
}

body.marisolfa-theme#product .product__bottom {
  width: min(calc(100% - 28px), var(--max));
  margin-inline: auto;
  padding-top: 32px;
}

/* Descripción PDP: siempre visible, sin acordeón ni flecha */
body.marisolfa-theme#product .marisolfa-pdp-description {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

body.marisolfa-theme#product .marisolfa-pdp-description__title {
  margin: 0;
  padding: 1rem 0;
  font-family: var(--marisolfa-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  border: none;
  background: transparent;
}

body.marisolfa-theme#product .marisolfa-pdp-description__body {
  padding: 0 0 1.25rem;
  color: var(--ink);
  font-family: var(--marisolfa-font-serif);
  font-size: 1rem;
  line-height: 1.55;
}

body.marisolfa-theme#product .marisolfa-pdp-description__body p:last-child {
  margin-bottom: 0;
}

/* ——— PDP: productos de la misma categoría (ps_categoryproducts) ——— */
body.marisolfa-theme#product .marisolfa-categoryproducts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

body.marisolfa-theme#product .marisolfa-categoryproducts__inner {
  max-width: var(--marisolfa-content-max, 1280px);
  margin: 0 auto;
  padding: 0 var(--marisolfa-gutter, 24px);
}

body.marisolfa-theme#product .marisolfa-categoryproducts__title {
  margin: 0 0 24px;
  font-family: var(--marisolfa-font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

body.marisolfa-theme#product .marisolfa-categoryproducts__viewport {
  position: relative;
}

body.marisolfa-theme#product .marisolfa-categoryproducts__viewport--carousel {
  padding: 0 44px;
}

body.marisolfa-theme#product .marisolfa-categoryproducts__track--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.marisolfa-theme#product .marisolfa-categoryproducts__viewport--carousel .marisolfa-categoryproducts__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.marisolfa-theme#product .marisolfa-categoryproducts__viewport--carousel .marisolfa-categoryproducts__track::-webkit-scrollbar {
  display: none;
}

body.marisolfa-theme#product .marisolfa-categoryproducts__viewport--carousel .marisolfa-categoryproducts__item {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 200px;
  scroll-snap-align: start;
}

body.marisolfa-theme#product .marisolfa-categoryproducts__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

body.marisolfa-theme#product .marisolfa-categoryproducts__nav--prev {
  left: 0;
}

body.marisolfa-theme#product .marisolfa-categoryproducts__nav--next {
  right: 0;
}

body.marisolfa-theme#product .marisolfa-categoryproducts .marisolfa-product-card--category-related {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border-color: rgba(20, 40, 59, 0.12);
}

body.marisolfa-theme#product .marisolfa-categoryproducts .marisolfa-product-card--category-related:hover {
  transform: none;
  box-shadow: none;
}

body.marisolfa-theme#product .marisolfa-categoryproducts .marisolfa-product-card--category-related .product-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 20px 16px 14px;
  color: #f7f2ea;
  background: rgba(8, 15, 22, 0.82);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.marisolfa-theme#product .marisolfa-categoryproducts .marisolfa-product-card--category-related:hover .product-info,
body.marisolfa-theme#product .marisolfa-categoryproducts .marisolfa-product-card--category-related:focus-within .product-info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.marisolfa-theme#product .marisolfa-categoryproducts .marisolfa-product-card--category-related .product-name {
  color: inherit;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.15;
}

body.marisolfa-theme#product .marisolfa-categoryproducts .marisolfa-product-card--category-related .product-name a:hover {
  text-decoration-color: rgba(247, 242, 234, 0.75);
}

body.marisolfa-theme#product .marisolfa-categoryproducts .marisolfa-product-card--category-related .product-price {
  margin-top: 6px;
}

body.marisolfa-theme#product .marisolfa-categoryproducts .marisolfa-product-card--category-related .price {
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (max-width: 1180px) {
  body.marisolfa-theme#product .marisolfa-categoryproducts__track--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.marisolfa-theme#product .marisolfa-categoryproducts__viewport--carousel .marisolfa-categoryproducts__item {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}

@media (max-width: 760px) {
  body.marisolfa-theme#product .marisolfa-categoryproducts {
    margin-top: 32px;
    padding-top: 24px;
  }

  body.marisolfa-theme#product .marisolfa-categoryproducts__viewport--carousel {
    padding: 0 36px;
  }

  body.marisolfa-theme#product .marisolfa-categoryproducts__track--grid {
    grid-template-columns: 1fr;
  }

  body.marisolfa-theme#product .marisolfa-categoryproducts__viewport--carousel .marisolfa-categoryproducts__item {
    flex: 0 0 78%;
    min-width: 0;
  }
}

body.marisolfa-theme#product .product__variants {
  gap: 20px;
}

body.marisolfa-theme#product .marisolfa-product-variant.product-variant {
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  body.marisolfa-theme#product .marisolfa-product-detail-grid.product__container {
    grid-template-columns: 1fr;
  }

  body.marisolfa-theme#product .marisolfa-product-detail-media.product__left {
    min-height: 480px;
  }

  body.marisolfa-theme#product .marisolfa-product-detail-media .carousel-inner,
  body.marisolfa-theme#product .marisolfa-product-detail-media .carousel-item,
  body.marisolfa-theme#product .marisolfa-product-detail-media .carousel-item img {
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  body.marisolfa-theme#product .marisolfa-product-page {
    padding: 16px 0 40px;
  }

  body.marisolfa-theme#product .marisolfa-product-detail-info.product__right {
    padding: 22px 18px;
  }
}


/**
 * Marisolfa Modal
 * Fondo opaco: --bs-body-bg es transparent en el tema y Bootstrap
 * hereda ese valor en .modal-content si no se redefine --bs-modal-bg.
 */
body.marisolfa-theme .modal-content {
  background-color: #fff;
}

.ms-modal .modal-title {
  margin: auto;
  text-transform: uppercase;
}

.ms-modal .modal-header .btn-close {
  position: absolute;
  right: 20px;
}