/* NH Personalización */

/* --- Aviso de cookies ----------------------------------------------------- */
.nhr-consent [hidden], .nhr-save [hidden] { display: none !important; }
.nhr-consent {
	position: fixed; z-index: 9993; left: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px)); box-sizing: border-box;
	display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: #fff; color: var(--nh-ink, #0F1E33);
	border: 1px solid var(--nh-line, #E2E8F0); box-shadow: 0 30px 60px -20px rgba(15, 30, 51, .4);
	opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s;
}
.nhr-consent[hidden] { display: none; }
.nhr-consent.is-on { opacity: 1; transform: none; }
.nhr-consent--bar { left: 16px; right: 16px; width: auto; grid-template-columns: minmax(0, 1fr) auto; align-items: center; max-width: 1280px; margin: 0 auto; }
.nhr-consent__title { margin: 0 0 4px; font-family: var(--nh-font-display, inherit); font-weight: 700; font-size: 18px; }
.nhr-consent__text { margin: 0; font-size: 14px; color: var(--nh-muted, #5B6878); line-height: 1.5; }
.nhr-consent__text a { color: var(--nh-blue, #0054A6); font-weight: 600; }
.nhr-consent__prefs { display: grid; gap: 8px; margin-top: 12px; font-size: 13.5px; }
.nhr-consent__prefs label { display: flex; gap: 8px; align-items: flex-start; }
.nhr-consent__prefs input { margin-top: 2px; accent-color: var(--nh-blue, #0054A6); }
.nhr-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nhr-consent__actions .nh-btn { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.nhr-consent__more { border: 0; background: none; color: var(--nh-blue, #0054A6); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.nhr-cookie-link { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.nh-toast a { color: #fff; font-weight: 700; white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .14); text-decoration: none; }

/* --- Corazones ------------------------------------------------------------ */
.nhr-heart {
	width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	display: grid; place-items: center; background: #fff; color: var(--nh-ink, #0F1E33);
	box-shadow: 0 6px 16px -6px rgba(15, 30, 51, .35); transition: transform .15s, color .15s;
}
.nhr-heart svg path, .nhr-save__btn svg path, .nhr-hdr svg path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.nhr-heart:hover { transform: scale(1.08); color: #E0245E; }
.nhr-heart.is-on, .nhr-save__btn.is-on { color: #E0245E; }
.nhr-heart.is-on svg path, .nhr-save__btn.is-on svg path { fill: currentColor; }
.nhr-heart.is-on { animation: nhr-pop .3s ease; }
@keyframes nhr-pop { 50% { transform: scale(1.25); } }
.nhr-heart.is-busy { opacity: .5; }
.woocommerce ul.products li.product .nhr-heart--card { position: absolute; z-index: 3; top: 12px; right: 12px; }

.nhr-save { position: relative; display: inline-flex; margin-top: 14px; border: 1.5px solid var(--nh-line, #E2E8F0); border-radius: 999px; }
.nhr-save__btn { display: inline-flex; gap: 8px; align-items: center; border: 0; background: none; padding: 10px 16px; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--nh-ink, #0F1E33); cursor: pointer; border-radius: 999px; }
.nhr-save__btn:hover { color: #E0245E; }
.nhr-save__more { border: 0; border-left: 1.5px solid var(--nh-line, #E2E8F0); background: none; padding: 0 12px; cursor: pointer; color: var(--nh-muted, #5B6878); }
.nhr-save__menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 260px; display: grid; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--nh-line, #E2E8F0); border-radius: 16px; box-shadow: 0 20px 40px -16px rgba(15, 30, 51, .35); }
.nhr-save__menu[hidden] { display: none; }
.nhr-save__menu label { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; }
.nhr-save__menu label:hover { background: var(--nh-mist, #F3F5F8); }
.nhr-save__menu small { margin-left: auto; color: var(--nh-muted, #5B6878); }
.nhr-save__new { border: 0; border-top: 1px solid var(--nh-line, #E2E8F0); background: none; padding: 10px; margin-top: 4px; text-align: left; font: inherit; font-weight: 700; color: var(--nh-blue, #0054A6); cursor: pointer; }

.nhr-hdr { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--nh-ink, #0F1E33); }
.nhr-hdr:hover { background: var(--nh-mist, #F3F5F8); color: #E0245E; }
.nhr-hdr i { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #E0245E; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.nhr-hdr i[hidden] { display: none; }

/* --- Comprados juntos ----------------------------------------------------- */

/* Secciones (carrusel); sin el plugin de módulos se ven como cuadrícula */
.nhr-section { margin: 48px 0; }
.nh-block .nhr-section { margin: 0; }
.nhr-section:not(.nhm) ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

/* --- Sugerencias en el carrito lateral ------------------------------------ */
.nhr-mini { padding: 16px 24px 20px; border-top: 1px solid var(--nh-line, #E2E8F0); background: var(--nh-mist, #F3F5F8); }
.nhr-mini__title { margin: 0 0 12px; font-weight: 700; font-size: 15px; }
.nhr-mini__list { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.nhr-mini__item { position: relative; scroll-snap-align: start; display: grid; gap: 4px; padding: 10px; background: #fff; border-radius: 14px; }
.nhr-mini__img img { width: 100%; height: 92px; object-fit: contain; display: block; }
.nhr-mini__name { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--nh-ink, #0F1E33); text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nhr-mini__price { font-size: 13px; font-weight: 800; }
.nhr-mini__price del { display: none; }
.nhr-mini__price ins { text-decoration: none; }
.nhr-mini__add { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--nh-blue, #0054A6); color: #fff !important; font-size: 18px; font-weight: 700; text-decoration: none; line-height: 1; }
.nhr-mini__add.loading { opacity: .5; }
.nhr-mini__add.added::after { display: none; }
.nhr-mini .added_to_cart { display: none; }

/* --- Página "Mis listas" ------------------------------------------------- */
.nhr-lists { display: grid; gap: 18px; }
.nhr-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.nhr-tabs__tab, .nhr-tabs__new { display: inline-flex; gap: 6px; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--nh-line, #E2E8F0); background: #fff; color: var(--nh-ink, #0F1E33); font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.nhr-tabs__tab small { color: var(--nh-muted, #5B6878); font-weight: 600; }
.nhr-tabs__tab.is-active { background: var(--nh-ink, #0F1E33); border-color: var(--nh-ink, #0F1E33); color: #fff; }
.nhr-tabs__tab.is-active small { color: rgba(255, 255, 255, .7); }
.nhr-tabs__new { border-style: dashed; color: var(--nh-blue, #0054A6); }
.nhr-lists__head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 22px 24px; border-radius: 22px; background: var(--nh-sky, #E6F2FC); }
.nhr-lists__head h2 { margin: 0; font-size: 26px; }
.nhr-lists__eyebrow { margin: 0 0 4px; font-weight: 700; color: var(--nh-blue, #0054A6); font-size: 13px; }
.nhr-lists__note { margin: 4px 0 0; color: var(--nh-muted, #5B6878); font-size: 14px; max-width: 560px; }
.nhr-lists__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nhr-link { border: 0; background: none; padding: 6px; font: inherit; font-weight: 700; font-size: 14px; color: var(--nh-blue, #0054A6); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nhr-link--danger { color: #B42318; }
.nhr-lists__empty { padding: 40px 20px; text-align: center; color: var(--nh-muted, #5B6878); border: 1.5px dashed var(--nh-line, #E2E8F0); border-radius: 20px; margin: 0; }
.nhr-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nhr-items__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--nh-line, #E2E8F0); border-radius: 18px; background: #fff; transition: opacity .25s, transform .25s; }
.nhr-items__row.is-leaving { opacity: 0; transform: translateX(30px); }
.nhr-items__img img { width: 96px; height: 96px; object-fit: contain; background: var(--nh-mist, #F3F5F8); border-radius: 14px; padding: 6px; box-sizing: border-box; display: block; }
.nhr-items__info { display: grid; gap: 4px; min-width: 0; }
.nhr-items__name { font-weight: 700; font-size: 15.5px; color: var(--nh-ink, #0F1E33); text-decoration: none; }
.nhr-items__price { font-family: var(--nh-font-display, inherit); font-weight: 700; font-size: 18px; }
.nhr-items__price del { font-family: inherit; font-weight: 400; font-size: 13px; color: var(--nh-muted, #5B6878); }
.nhr-items__price ins { text-decoration: none; }
.nhr-items__stock { font-size: 12.5px; font-weight: 700; }
.nhr-items__stock.is-in { color: var(--nh-green, #1B8A5A); }
.nhr-items__stock.is-out { color: #B42318; }
.nhr-items__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.nhr-items__remove { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; color: var(--nh-muted, #5B6878); text-decoration: underline; cursor: pointer; }
.nhr-items__move select { border: 1px solid var(--nh-line, #E2E8F0); border-radius: 10px; padding: 4px 8px; font: inherit; font-size: 13px; }
.nhr-items__cta .nh-btn { white-space: nowrap; min-height: 44px; padding: 10px 18px; font-size: 14px; }
.nhr-items .added_to_cart { display: none; }

@media (max-width: 767px) {
	.nhr-consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
	.nhr-consent--bar { grid-template-columns: 1fr; }
	.nhr-consent__actions .nh-btn { flex: 1; }
	.nhr-mini { padding: 14px 18px 18px; }
	.nhr-items__row { grid-template-columns: 72px minmax(0, 1fr); }
	.nhr-items__img img { width: 72px; height: 72px; }
	.nhr-items__cta { grid-column: 1 / -1; }
	.nhr-items__cta .nh-btn { width: 100%; box-sizing: border-box; }
	.nhr-hdr { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.nhr-consent, .nhr-items__row { transition: none; }
	.nhr-heart.is-on { animation: none; }
}

/* "Arma tu combo" / "Comprados juntos frecuentemente" */
.nhr-fbt { clear: both; margin: 40px 0; padding: 26px 0 8px; border-top: 1px solid var(--nh-line, #E2E8F0); background: transparent; }
.nhr-fbt__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.nhr-fbt__title { margin: 0; font-size: clamp(21px, 2.2vw, 26px); }
.nhr-fbt__save { padding: 6px 14px; border-radius: 999px; background: var(--nh-green-soft, #E7F5EE); color: var(--nh-green, #1B8A5A); font-weight: 700; font-size: 14px; }
.nhr-fbt__body { display: grid; grid-template-columns: minmax(0, max-content) minmax(240px, 290px); justify-content: start; gap: 36px; align-items: start; }
.nhr-fbt__items { list-style: none; margin: 0; padding: 0 0 4px; display: flex; align-items: flex-start; overflow-x: auto; scrollbar-width: thin; }
.nhr-fbt__item { position: relative; flex: 0 0 216px; display: flex; flex-direction: column; gap: 8px; transition: opacity .2s ease; }
.nhr-fbt__item + .nhr-fbt__item { margin-left: 40px; }
.nhr-fbt__item + .nhr-fbt__item::before { content: "+"; position: absolute; left: -29px; top: 92px; width: 18px; text-align: center; font-size: 24px; font-weight: 600; color: var(--nh-muted, #5B6878); }
.nhr-fbt__item.is-off { opacity: .4; }
.nhr-fbt__pic { position: relative; aspect-ratio: 1 / 0.82; border-radius: 14px; background: var(--nh-mist, #F3F5F8); overflow: hidden; }
.nhr-fbt__pic img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; display: block; mix-blend-mode: multiply; }
.nhr-fbt__check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 5px; background: var(--nh-blue, #0054A6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nhr-fbt__check svg { width: 14px; height: 14px; }
.nhr-fbt__check input { position: absolute; inset: -6px; margin: 0; opacity: 0; cursor: pointer; }
.nhr-fbt__check:has(input:not(:checked)) { background: #fff; color: transparent; box-shadow: inset 0 0 0 2px #94A3B8; }
.nhr-fbt__check:has(input:focus-visible) { outline: 3px solid var(--nh-orange, #F26822); outline-offset: 2px; }
.nhr-fbt__name { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--nh-ink, #0F1E33); }
.nhr-fbt__name b { font-weight: 800; }
.nhr-fbt__name a { color: var(--nh-blue, #0054A6); text-decoration: none; }
.nhr-fbt__name a:hover { color: var(--nh-orange-dark, #C9520F); text-decoration: underline; }
.nhr-fbt__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.nhr-fbt__price del { font-size: 13px; color: var(--nh-muted, #5B6878); }
.nhr-px { display: inline-flex; align-items: flex-start; color: var(--nh-ink, #0F1E33); line-height: 1; white-space: nowrap; }
.nhr-px b { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.nhr-px sup { font-size: 12px; font-weight: 600; top: 0; line-height: 1.3; margin: 0 1px; }
.nhr-fbt__side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 18px 0 18px 32px; border-left: 1px solid var(--nh-line, #E2E8F0); text-align: left; }
.nhr-fbt__total { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 4px 8px; font-size: 16px; }
.nhr-fbt__label { color: var(--nh-ink, #0F1E33); }
.nhr-fbt__total b { font-family: var(--nh-font-display, inherit); font-size: 22px; font-weight: 800; color: var(--nh-ink, #0F1E33); }
.nhr-fbt__deal { margin: -4px 0 0; display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.nhr-fbt__deal[hidden] { display: none; }
.nhr-fbt__deal del { color: var(--nh-muted, #5B6878); }
.nhr-fbt__saving { color: var(--nh-green, #1B8A5A); font-weight: 700; }
.nhr-fbt__add { width: 100%; min-height: 46px; justify-content: center; }
.nhr-fbt__add.loading { opacity: .7; }
.nhr-fbt__note { margin: 6px 0 0; display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13.5px; line-height: 1.4; color: var(--nh-ink, #0F1E33); }
.nhr-fbt__note span { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--nh-blue, #0054A6); color: #fff; font: italic 700 13px/20px Georgia, serif; text-align: center; margin-top: 1px; }
@media (max-width: 1100px) {
	.nhr-fbt__body { grid-template-columns: minmax(0, 1fr); }
	.nhr-fbt__side { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; margin-top: 0; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--nh-line, #E2E8F0); }
	.nhr-fbt__add { width: auto; padding-left: 28px; padding-right: 28px; }
	.nhr-fbt__note { flex-basis: 100%; }
}
@media (max-width: 767px) {
	.nhr-fbt__item { flex-basis: 150px; }
	.nhr-fbt__item + .nhr-fbt__item { margin-left: 28px; }
	.nhr-fbt__item + .nhr-fbt__item::before { left: -22px; top: 56px; font-size: 20px; }
	.nhr-fbt__name { font-size: 14px; }
	.nhr-px b { font-size: 20px; }
	.nhr-fbt__side { flex-direction: column; align-items: stretch; text-align: center; }
	.nhr-fbt__total { justify-content: center; }
	.nhr-fbt__add { width: 100%; }
}
