/* Catálogo Horizont. Solo se carga con el interruptor. */
body.om-hz #omeds-main.om-hz-shop { --hz-pad: max(28px, calc((100% - 1180px) / 2)); display: flow-root; min-height: 70vh; padding: 0; background: linear-gradient(var(--hz-sky) 240px, #f9f7f3 720px) !important; color: #1c1b18; font-size: 16px; }
.om-hz-shop .screen-reader-text { left: 0; }
.om-hz-top { padding: 30px calc(var(--hz-pad) + 110px) 0 var(--hz-pad); }
body.om-hz #omeds-main .om-hz-top h1 { margin: 0; font-size: 56px; line-height: 1.02; letter-spacing: -.028em; }
.om-hz-top p { max-width: 60ch; margin: 10px 0 0; font-size: 18px; }

/* Filtros: una barra; al abrirla, el panel empuja el contenido. */
.om-hz-tools { position: relative; z-index: 5; padding: 16px var(--hz-pad) 0; }
.om-hz-shop .om-hz-views a, .om-hz-more summary { display: inline-flex; align-items: center; min-height: 44px; min-width: 24px; color: #5d594f !important; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.om-hz-shop .om-hz-views a:hover { color: #1c1b18 !important; }

/* Interruptor: regal o lista. */
.om-hz-views { position: absolute; right: var(--hz-pad); bottom: calc(100% + 5px); display: flex; width: 94px; height: 48px; border: 1px solid rgba(60, 54, 42, .4); border-radius: 24px; background: #e6dfd1; }
.om-hz-views svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.om-hz-views span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.om-hz-shop .om-hz-views a { position: relative; z-index: 0; flex: 1; justify-content: center; height: 46px; padding: 3px; border-radius: 23px; background-clip: content-box !important; box-sizing: border-box; }
.om-hz-shop .om-hz-views a[aria-current] { background-color: #1c1b18; color: #fff !important; text-decoration: none; }
.om-hz-more { border-block: 1px solid rgba(60, 54, 42, .22); }
.om-hz-more summary { display: flex; gap: 10px; min-height: 50px; color: #1c1b18 !important; font-size: 15px; font-weight: 500; list-style: none; }
.om-hz-more summary::-webkit-details-marker { display: none; }
.om-hz-more summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.om-hz-more__n { margin-left: auto; color: #5d594f; font-size: 14px; font-weight: 400; }
.om-hz-more form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; margin: 0; padding: 14px 0 20px; border-top: 1px solid rgba(60, 54, 42, .13); }
body.om-hz #omeds-main .om-hz-more fieldset { display: flex; flex-wrap: wrap; gap: 0 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
body.om-hz #omeds-main .om-hz-more legend { float: left; width: 100%; margin: 0; padding: 0; color: #5d594f; font-size: 13px; font-weight: 400; line-height: 1.5; }
body.om-hz #omeds-main .om-hz-more label { position: relative; display: inline-flex; align-items: center; width: auto; min-width: 44px; min-height: 44px; margin: 0; padding: 0; cursor: pointer; }
body.om-hz #omeds-main .om-hz-more input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; font: inherit; opacity: 0; cursor: pointer; }
.om-hz-more label span { flex: 1; padding: 6px 13px; border: 1px solid rgba(60, 54, 42, .3); border-radius: 17px; color: #1c1b18; font-size: 14px; line-height: 20px; text-align: center; white-space: nowrap; }
.om-hz-more label:hover span { border-color: #1c1b18; }
.om-hz-more input:checked + span { border-color: #1c1b18; background: #1c1b18; color: #f6f2e9; }
.om-hz-more input:focus-visible + span { outline: 2px solid #7a5c30; outline-offset: 2px; }
.om-hz-more__act { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; }
body.om-hz #omeds-main :is(.om-hz-more button, .om-hz-btn, .omeds-product-card__button, .added_to_cart) { display: inline-flex !important; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid #1c1b18 !important; border-radius: 0 !important; background: #1c1b18 !important; color: #f6f2e9 !important; font-size: 16px; font-weight: 450; letter-spacing: 0; text-align: center; text-decoration: none; text-transform: none; }
body.om-hz #omeds-main :is(.om-hz-more button, .om-hz-btn, .omeds-product-card__button):hover { border-color: #7a5c30 !important; background: #7a5c30 !important; color: #fff !important; }
body.om-hz #omeds-main .omeds-product-card__button:not(.add_to_cart_button):not(:hover) { background: none !important; color: #1c1b18 !important; }
.om-hz-shop .om-hz-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: #1c1b18; text-underline-offset: 5px; }
.om-hz-applied { padding: 0 var(--hz-pad); }
.om-hz-shop .omux-applied-filters { background: none !important; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; }
.om-hz-shop .omux-applied-filters a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none !important; color: #1c1b18; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.om-hz-none { padding: 70px 24px 90px; text-align: center; }
body.om-hz #omeds-main .om-hz-none h2 { font-size: 26px; }

/* Estanterías */
.om-hz-scene { padding: 0 var(--hz-pad) 14px; }
.om-hz-shelf { --k: .62; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 0; margin: 0; padding: 0 0 16px; overflow-x: clip; list-style: none; }
.om-hz-shelf.is-many { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.om-hz-b { position: relative; display: flex; align-items: end; justify-content: center; min-width: 0; margin: 0; padding: 18px 0 22px; list-style: none; }
/* La primera botella de cada balda dibuja la balda entera. */
.om-hz-b::before, .om-hz-b::after { position: absolute; right: -100vw; left: 0; pointer-events: none; }
.om-hz-b::before { bottom: 22px; height: 100px; background: linear-gradient(rgba(60, 54, 42, 0), rgba(60, 54, 42, .1)); }
.om-hz-b::after { bottom: -14px; height: 36px; background: linear-gradient(#b3a78f 0 1px, #e2dac9 1px 8px, #c9c0ae 8px 22px, rgba(60, 54, 42, .22) 22px, rgba(60, 54, 42, 0)); }
.om-hz-b > a { position: relative; z-index: 1; display: grid; justify-items: center; align-items: end; min-width: 44px; max-width: 100%; color: #1c1b18; text-decoration: none; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.3, 1.35, .4, 1); }
.om-hz-b__glass { position: relative; display: block; height: calc(var(--h) * var(--k) * 1px); max-width: 92%; aspect-ratio: var(--ar); }
.om-hz-slot { grid-column: 1 / -1; min-width: 0; margin: 0; list-style: none; }
.om-hz-slot[hidden] { display: none; }
.om-hz-b__glass svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #1c1b18; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; transition: opacity .4s; }
.om-hz-b__glass img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 100%;
    --liq: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 220' preserveAspectRatio='none'%3E%3Cpath d='M0 110C17 104 33 104 50 110S83 116 100 110 133 104 150 110 183 116 200 110V220H0Z'/%3E%3C/svg%3E");
    -webkit-mask: var(--liq) 0 100% / 200% 220% no-repeat; mask: var(--liq) 0 100% / 200% 220% no-repeat;
    transition: -webkit-mask-position 1.25s cubic-bezier(.35, .05, .2, 1), mask-position 1.25s cubic-bezier(.35, .05, .2, 1); }
/* Lleno: disponible. A medias: a consulta. Vacío: agotado. */
.om-hz-b.is-inquiry img { -webkit-mask-position: 50% 57%; mask-position: 50% 57%; }
.om-hz-b.is-soldout img, .is-picked .om-hz-b a:not([aria-current]) img { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.om-hz-b.is-available svg { opacity: 0; }
.is-picked .om-hz-b a:not([aria-current]) svg { opacity: 1; }
.om-hz-b a[aria-current] img { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
.om-hz-b a[aria-current] svg { opacity: 0; }
.om-hz-b__name { position: absolute; top: 67%; left: 50%; width: max-content; max-width: 96%; padding: 0 1px; color: #5d594f; font-size: 13px; line-height: 1.25; text-align: center; transform: translate(-50%, -50%); transition: opacity .3s; }
.om-hz-b__name span { display: block; white-space: nowrap; }
.om-hz-b:not(.is-soldout) .om-hz-b__name, .om-hz-b a[aria-current] .om-hz-b__name { opacity: 0; }
.is-picked .om-hz-b a:not([aria-current]) .om-hz-b__name { opacity: 1; }
.om-hz-b__cap { max-width: 190px; padding: 0 4px 8px; color: #5d594f; font-size: 13px; line-height: 1.35; text-align: center; transition: opacity .3s; }
.om-hz-b__cap b { display: block; color: #1c1b18; font-weight: 550; }
.om-hz-shop .om-hz-price :is(.amount, small, del, ins) { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; text-decoration: none; }
.om-hz-shop .om-hz-price del { text-decoration: line-through; }
.om-hz-shop .om-hz-price > * { font-variant-numeric: tabular-nums; }
.om-hz-shop .om-hz-price :is(.oma17f-unit-price, .omux-mhd) { display: block; font-size: 13px; line-height: 1.35; }
.om-hz-shop .om-hz-price .oma17f-unit-price .amount { font-size: inherit; }
.om-hz-shop .om-hz-price .omux-mhd { color: #1c1b18; font-weight: 550; }
.is-picked .om-hz-b a .om-hz-b__cap { opacity: 0; }
.om-hz-shop .om-hz-b a:focus-visible { outline: 2px solid #1c1b18; outline-offset: 6px; }
@media (hover: hover) {
    .om-hz-b > a:hover { transform: translateY(-6px); }
    .om-hz-b a:hover img { -webkit-mask-position: 0 100% !important; mask-position: 0 100% !important; }
    .om-hz-b a:hover .om-hz-b__name { opacity: 0 !important; }
}

body.om-hz #omeds-main.om-hz-shop > .om-hz-sea { position: relative; z-index: 2; height: 60px; margin: 0 0 -1px; pointer-events: none; }
.om-hz-under { position: relative; z-index: 2; padding: 4px var(--hz-pad) 60px; background: linear-gradient(#c9c0ae, #b8ad97); }
.om-hz-hint { margin: 0; padding: 6px 0 0; color: #5d594f; font-size: 15px; }
.om-hz-say { display: grid; grid-template-columns: 1.5fr 1.2fr auto; align-items: center; gap: 14px 40px; padding: 20px 24px; border: 1px solid rgba(60, 54, 42, .45); background: #f9f7f3; scroll-margin: 90px 0 24px; }
.om-hz-say[hidden], .om-hz-hint[hidden] { display: none; }
.om-hz-say p { margin: 0; color: #3f3b32; }
.om-hz-say b { display: block; color: #1c1b18; font-size: 26px; font-weight: 450; line-height: 1.2; letter-spacing: -.015em; }
.om-hz-say b span { color: #3f3b32; font-weight: 400; }
.om-hz-say__price .om-hz-price { font-size: 26px; letter-spacing: -.015em; }
.om-hz-say__price .om-hz-price small { letter-spacing: 0; }
.om-hz-say__act { display: grid; gap: 4px; min-width: 220px; }
.om-hz-law { padding: 16px 0 0; color: #3f3b32; font-size: 13px; }
.om-hz-law .omux-price-notices { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 0; }
body.om-hz #omeds-main .om-hz-law :is(p, a) { margin: 0; color: #3f3b32; font-size: 13px; }

:is(.om-hz-b__name, .om-hz-b__cap) { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (min-width: 981px) {
    .is-narrow .om-hz-b__name { max-width: none; hyphens: none; white-space: nowrap; writing-mode: vertical-rl; transform: translate(-50%, -50%) rotate(180deg); }
    .is-narrow .om-hz-b__name span { display: inline; }
}

/* Muchos aceites: por formato. */
.om-hz-group header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; padding-top: 24px; }
body.om-hz #omeds-main .om-hz-group h2 { margin: 0; font-size: 26px; }
.om-hz-group header p { margin: 0; color: #5d594f; font-size: 13px; }
@media (min-width: 1100px) { .is-many > :nth-child(7n + 1 of .om-hz-b)::before, .is-many > :nth-child(7n + 1 of .om-hz-b)::after { content: ""; } }
@media (min-width: 700px) { .om-hz-shelf:not(.is-many) > :nth-child(5n + 1 of .om-hz-b)::before, .om-hz-shelf:not(.is-many) > :nth-child(5n + 1 of .om-hz-b)::after { content: ""; } }
@media (min-width: 700px) and (max-width: 1099px) { .is-many > :nth-child(5n + 1 of .om-hz-b)::before, .is-many > :nth-child(5n + 1 of .om-hz-b)::after { content: ""; } }
@media (max-width: 699px) { .om-hz-shelf > :nth-child(3n + 1 of .om-hz-b)::before, .om-hz-shelf > :nth-child(3n + 1 of .om-hz-b)::after { content: ""; } }
@media (max-width: 1099px) {
    .om-hz-shelf { --k: .54; }
    .om-hz-shelf.is-many { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
    .om-hz-shelf, .om-hz-shelf.is-many { --k: .4; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Lista */
.om-hz-body { padding: 22px var(--hz-pad) 96px; }
.om-hz-list { margin: 0; padding: 0; border-block: 1px solid rgba(60, 54, 42, .3); list-style: none; }
.om-hz-list li { display: grid; grid-template-columns: 70px minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) 200px; align-items: center; gap: 0 24px; margin: 0; padding: 12px 0; }
.om-hz-list li + li { border-top: 1px solid rgba(60, 54, 42, .13); }
.om-hz-list__img { display: grid; place-items: end center; height: 92px; mix-blend-mode: multiply; }
.om-hz-list__img img { width: auto; max-width: 100%; height: auto; max-height: 92px; object-fit: contain; }
body.om-hz #omeds-main .om-hz-list h2 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.om-hz-list h2 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.om-hz-list h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.om-hz-list p { margin: 0; color: #5d594f; font-size: 13px; }
.om-hz-list__price { font-size: 18px; }


@media (max-width: 1240px) and (min-width: 981px) {
    .om-hz-list li { grid-template-columns: 60px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) 170px; gap: 0 16px; }
}

@media (max-width: 980px) {
    body.om-hz #omeds-main.om-hz-shop { --hz-pad: 16px; }
    .om-hz-top { padding-top: 20px; }
    body.om-hz #omeds-main .om-hz-top h1 { font-size: 40px; overflow-wrap: anywhere; }
    .om-hz-tools { padding-top: 14px; }
    .om-hz-views { bottom: calc(100% - 3px); }
    .om-hz-more form { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 0 0; }
    /* El botón queda a mano mientras se eligen filtros. */
    .om-hz-more__act { position: sticky; bottom: var(--omeds-mobile-dock-height, 72px); z-index: 2; padding: 10px 0; background: #f5f2ed; }
    body.om-hz #omeds-main .om-hz-more__act button { flex: 1; }
    /* El nombre del agotado va encima: la silueta es pequeña. */
    .om-hz-b.is-soldout > a { padding-top: 40px; }
    .om-hz-b__name { top: auto; bottom: calc(100% + 5px); width: max-content; max-width: min(130px, 30vw); padding: 0; background: none; line-height: 1.2; transform: translateX(-50%); }
    .om-hz-b__cap { padding-inline: 0; }
    body.om-hz #omeds-main.om-hz-shop > .om-hz-sea { height: 46px; }
    .om-hz-under { padding: 4px 16px 40px; }
    .om-hz-say { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
    .om-hz-say { scroll-margin-bottom: calc(var(--omeds-mobile-dock-height, 72px) + 16px); }
    .om-hz-say__act { grid-template-columns: 1fr auto; gap: 16px; }
    .om-hz-say :is(b, .om-hz-price) { font-size: 18px; }

    .om-hz-list li { grid-template-columns: 60px minmax(0, 1fr); gap: 2px 16px; padding: 14px 0; }
    .om-hz-list__img { grid-row: 1 / 5; align-self: center; }
    .om-hz-list li > :is(.omeds-product-card__button, .added_to_cart) { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .om-hz-b, .om-hz-b * { transition: none !important; }
}
