/* Offers reveal the body pattern; traditional banners retain their theme background. */
.storefront-home-intro:has(.nv-home-offers),
.storefront-home-intro:has(.nv-home-offers) .product-categories { background: transparent; }
.nv-home-offers { padding: 20px 0 24px; background: transparent; }
.nv-offers-grid { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: 16px; align-items: stretch; }
.nv-offers-fixed { aspect-ratio: 480 / 650; min-width: 0; }
.nv-offers-carousel { position: relative; min-width: 0; min-height: 0; }
.nv-offers-track { position: absolute; inset: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: manipulation; }
.nv-offers-track::-webkit-scrollbar { display: none; }
.nv-offers-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
@media (hover: hover) and (pointer: fine) {
    .nv-offers-track, .nv-offers-track .nv-offers-art { cursor: default; }
    .nv-offers-track a.nv-offers-art[href] { cursor: pointer; }
    .nv-offers-track.is-holding, .nv-offers-track.is-holding .nv-offers-art { cursor: grabbing; }
}
.nv-offers-slide { flex: 0 0 calc((100% - 24px) / 3); min-width: 0; scroll-snap-align: start; }
.nv-offers-art, .nv-offers-art picture { display: block; width: 100%; height: 100%; }
.nv-offers-art { border-radius: 18px; overflow: hidden; background: transparent; }
.nv-offers-art picture { display: flex; align-items: center; justify-content: center; }
.nv-offers-art img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 18px; }
.nv-offers-arrows { position: absolute; inset: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.nv-offers-arrows button { position: absolute; display: grid; place-items: center; padding: 0; pointer-events: auto; width: 44px; height: 44px; border: 0; background: rgb(255 255 255 / 18%); color: #6f1b0b; border-radius: 50%; touch-action: manipulation; }
.nv-offers-arrows button:hover { background: rgb(255 255 255 / 35%); }
.nv-offers-arrows svg { display: block; }
.nv-offers-arrows:dir(ltr) svg { transform: rotate(180deg); }
.nv-home-offers :focus-visible { outline: 3px solid #8b2510; outline-offset: -3px; }
.nv-offers-arrows[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
    .nv-offers-arrows { opacity: 0; }
    .nv-offers-arrows button { pointer-events: none; }
    .nv-offers-carousel:hover .nv-offers-arrows,
    .nv-offers-carousel:focus-within .nv-offers-arrows { opacity: 1; }
    .nv-offers-carousel:hover .nv-offers-arrows button,
    .nv-offers-carousel:focus-within .nv-offers-arrows button { pointer-events: auto; }
}
@media (prefers-reduced-motion: no-preference) {
    .nv-offers-track { scroll-behavior: smooth; }
    .nv-offers-arrows { transition: opacity 200ms ease-in-out; }
}
@media (max-width: 991px) {
    .nv-offers-grid { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
    .nv-offers-slide { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 767px) {
    .nv-home-offers { padding-top: 16px; padding-bottom: 24px; }
    /* Size the mobile frames independently of grid tracks and percentage-height artwork. */
    .nv-offers-grid { display: block; }
    .nv-offers-fixed { position: relative; width: 100%; aspect-ratio: 650 / 400; }
    .nv-offers-fixed > .nv-offers-art { position: absolute; inset: 0; }
    .nv-offers-carousel { width: 100%; height: auto; margin-top: 16px; aspect-ratio: 650 / 800; }
    .nv-offers-slide { flex-basis: 100%; }
    .nv-offers-art, .nv-offers-art img { border-radius: 14px; }
    .nv-offers-fixed img { object-fit: contain; }
}

.nv-offers-arrows [data-offers-prev] { inset-inline-start: 0; }
.nv-offers-arrows [data-offers-next] { inset-inline-end: 0; }
