/* Spanjewijn home page (CW-612, CW-621): every selector starts with #html-body plus a .sw-home-* row, which outranks Page Builder's inline #html-body [data-pb-style] rules; defaults shared by all rows sit in :where() so a row can override them */
#html-body div[class*="sw-home-"][data-element="inner"] {
    --sw-home-radius: 1rem;
    margin-bottom: 0;
    padding: 1.75rem 0;
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) > h2 {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto .75rem;
    font-size: 1.875rem;
    line-height: 2.5rem;
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) > [data-content-type="text"] {
    margin-bottom: 1.5rem;
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) :is([data-content-type="text"], .pagebuilder-poster-content, .sw-home-usps) {
    font-size: 1rem;
    line-height: 1.5rem;
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) [data-content-type="text"] p {
    margin: 0;
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) [data-content-type="text"] p + p {
    margin-top: 1.5rem;
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) :is(.pagebuilder-button-primary, .pagebuilder-button-secondary) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--sw-btn-height);
    border: 0;
    border-radius: var(--sw-btn-radius);
    box-shadow: none;
    font-size: 1rem;
    font-weight: 600;
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) .pagebuilder-button-primary {
    background-color: var(--sw-green);
    color: #fff;
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) .pagebuilder-button-primary:hover {
    background-color: var(--sw-green-dark);
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) .pagebuilder-button-secondary {
    background-color: #fff;
    box-shadow: inset 0 0 0 2px var(--sw-green);
    color: var(--sw-green-dark);
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) .pagebuilder-button-secondary:hover {
    background-color: var(--sw-green-tint);
}
#html-body :where(div[class*="sw-home-"][data-element="inner"]) :is(.pagebuilder-button-primary, .pagebuilder-button-secondary):focus-visible {
    outline: 2px solid var(--sw-red);
    outline-offset: 2px;
}

#html-body #maincontent {
    margin-bottom: 0;
}
#html-body #maincontent > .columns {
    row-gap: 0;
}
#html-body div:is(.sw-home-products, .sw-home-categories, .sw-home-hero, .sw-home-intro) {
    background-color: var(--sw-home-band);
    box-shadow: 0 0 0 100vmax var(--sw-home-band);
    clip-path: inset(0 -100vmax);
}
#html-body div:is(.sw-home-products, .sw-home-hero) {
    --sw-home-band: #fff;
}
#html-body div:is(.sw-home-categories, .sw-home-intro) {
    --sw-home-band: var(--sw-gold-tint);
}

#html-body div.sw-home-banners {
    --sw-home-banner-gap: 1rem;
    --sw-home-banner-pad: 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sw-home-banner-gap);
}
#html-body .sw-home-banners > [data-content-type="banner"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    aspect-ratio: 12 / 7;
    overflow: clip;
    border-radius: var(--sw-home-radius);
    background-color: var(--sw-brown);
}
#html-body .sw-home-banners > [data-content-type="banner"]:has(a:focus-visible) {
    outline: 2px solid var(--sw-red);
    outline-offset: 2px;
}
#html-body .sw-home-banners > [data-content-type="banner"] > [data-element$="link"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
#html-body .sw-home-banners > [data-content-type="banner"]:has(a:focus-visible) > a {
    outline: none;
}
#html-body .sw-home-banners .pagebuilder-banner-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
#html-body .sw-home-banners .pagebuilder-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: auto;
    padding: var(--sw-home-banner-pad);
}
#html-body .sw-home-banners .pagebuilder-overlay:has(.pagebuilder-poster-content :is(h1, h2, h3, h4, p, li, button):not(:empty)) {
    background-image: linear-gradient(to top, rgb(38 16 10 / .9), rgb(38 16 10 / .62) 45%, rgb(38 16 10 / 0) 85%);
}
#html-body .sw-home-banners .pagebuilder-poster-content {
    width: auto;
    max-width: 26rem;
    color: #fff;
    text-align: left;
    text-shadow: 0 1px 10px rgb(38 16 10 / .65);
}
#html-body .sw-home-banners .pagebuilder-poster-content > [data-element="content"] {
    min-height: 0;
    overflow: visible;
    overflow-wrap: anywhere;
}
#html-body .sw-home-banners .pagebuilder-poster-content :is(h1, h2, h3, h4) {
    margin: 0 0 .25rem;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.15;
}
#html-body .sw-home-banners .pagebuilder-poster-content p {
    margin: 0;
}
#html-body .sw-home-banners .pagebuilder-banner-button {
    min-height: var(--sw-btn-height-sm);
    margin: .75rem 0 0;
    padding: 0 1.25rem;
    font-size: .875rem;
    text-shadow: none;
}
#html-body .sw-home-banners a:hover .pagebuilder-banner-button {
    background-color: var(--sw-green-dark);
}

#html-body div.sw-home-products:not(:has(.widget-product-carousel)) {
    display: none;
}
#html-body .sw-home-products [data-role="glider-content"] {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    padding-bottom: .75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--sw-brown) 35%, transparent) transparent;
}
#html-body .sw-home-products [data-role="glider-content"] > * {
    scroll-snap-align: start;
}
#html-body .sw-home-products .glider-contain {
    position: relative;
}
#html-body .sw-home-products [data-page-builder-slider-nav] {
    display: none;
}

#html-body div.sw-home-categories {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    max-width: 1312px;
    margin-inline: auto;
}
#html-body .sw-home-categories > h2 {
    margin-bottom: -.25rem;
}
#html-body .sw-home-categories > [data-content-type="text"] {
    margin-bottom: .5rem;
}
#html-body .sw-home-categories > figure {
    position: relative;
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: .75rem;
    border-radius: var(--sw-home-radius);
    background-color: #fff;
    box-shadow:
        0 4px 3px color-mix(in srgb, var(--sw-brown) 7%, transparent),
        0 2px 2px color-mix(in srgb, var(--sw-brown) 6%, transparent);
}
#html-body .sw-home-categories > figure > a {
    display: block;
}
#html-body .sw-home-categories > figure > a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
#html-body .sw-home-categories > figure > a:focus-visible {
    outline: none;
}
#html-body .sw-home-categories > figure > a:focus-visible::after {
    outline: 2px solid var(--sw-red);
    outline-offset: 2px;
}
#html-body .sw-home-categories > figure picture {
    display: contents;
}
#html-body .sw-home-categories > figure img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: .25rem;
    background-color: #fff;
    object-fit: contain;
}
#html-body .sw-home-categories > figure > figcaption {
    font-family: var(--sw-font-serif);
    font-size: 1.5rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

#html-body .sw-home-brands .featured-brands picture {
    display: contents;
}

#html-body div.sw-home-brands:not(:has(.featured-brands)) {
    display: none;
}
#html-body .sw-home-brands > [data-content-type="text"] {
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
}
#html-body .sw-home-brands > [data-content-type="html"] {
    width: 100%;
    margin-bottom: 2rem;
}
#html-body .sw-home-brands .featured-brands {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
#html-body .sw-home-brands .featured-brands__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    height: 100%;
    min-height: 10rem;
    padding: 1.25rem 1rem 1rem;
    border-radius: var(--sw-home-radius);
    background-color: #fff;
    box-shadow:
        0 4px 3px color-mix(in srgb, var(--sw-brown) 7%, transparent),
        0 2px 2px color-mix(in srgb, var(--sw-brown) 6%, transparent);
    color: var(--sw-brown);
    text-align: center;
}
#html-body .sw-home-brands .featured-brands__logo {
    width: 100%;
    max-width: 10rem;
    height: 4.5rem;
    margin-bottom: .5rem;
    object-fit: contain;
}
#html-body .sw-home-brands .featured-brands__name {
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
#html-body .sw-home-brands .featured-brands__link:not(:has(.featured-brands__logo)) .featured-brands__name {
    font-family: var(--sw-font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}
#html-body .sw-home-brands .featured-brands__count {
    color: var(--sw-muted);
    font-size: .8125rem;
}
#html-body .sw-home-brands .featured-brands__link:hover .featured-brands__name {
    text-decoration: underline;
    text-underline-offset: .2em;
}
#html-body .sw-home-brands .featured-brands__link:focus-visible {
    outline: 2px solid var(--sw-red);
    outline-offset: 2px;
}
#html-body .sw-home-brands [data-content-type="buttons"] {
    display: flex;
    justify-content: center;
}
#html-body .sw-home-brands [data-content-type="button-item"] {
    display: flex;
    margin: 0;
}

#html-body .sw-home-hero .pagebuilder-column-line {
    flex-direction: column;
    gap: 2rem;
}
#html-body .sw-home-hero .pagebuilder-column {
    position: relative;
    flex: 1 1 0;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    width: auto;
    min-width: 0;
}
#html-body .sw-home-hero .pagebuilder-column > * {
    max-width: 100%;
}
#html-body .sw-home-hero h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1;
}
#html-body .sw-home-hero [data-content-type="buttons"] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
}
#html-body .sw-home-hero [data-content-type="button-item"] {
    display: flex;
    margin: 0;
}
#html-body .sw-home-hero [data-content-type="button-item"] > [data-element$="link"] {
    flex: 1 1 auto;
}
#html-body .sw-home-hero [data-content-type="html"] {
    width: 100%;
}
#html-body .sw-home-hero .sw-home-usps {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
#html-body .sw-home-hero .sw-home-usp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    max-width: 8rem;
    text-align: center;
}
#html-body .sw-home-hero :is(.sw-home-usp--delivery, .sw-home-usp--range, .sw-home-usp--rating)::before {
    content: '';
    width: 2rem;
    height: 2rem;
    background-color: var(--sw-red);
    -webkit-mask: var(--sw-home-usp-icon) center / contain no-repeat;
    mask: var(--sw-home-usp-icon) center / contain no-repeat;
}
#html-body .sw-home-hero .sw-home-usp--delivery {
    --sw-home-usp-icon: url('../images/home/usp-delivery.svg');
}
#html-body .sw-home-hero .sw-home-usp--range {
    --sw-home-usp-icon: url('../images/home/usp-range.svg');
}
#html-body .sw-home-hero .sw-home-usp--rating {
    --sw-home-usp-icon: url('../images/home/usp-rating.svg');
}
#html-body .sw-home-hero .pagebuilder-column > figure {
    margin: 0;
}
#html-body .sw-home-hero .pagebuilder-column > figure:first-of-type {
    position: relative;
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 20rem;
}
#html-body .sw-home-hero .pagebuilder-column > figure:not(:first-of-type) {
    position: absolute;
    inset: 0;
    opacity: 0;
}
#html-body .sw-home-hero .pagebuilder-column > figure picture {
    display: contents;
}
#html-body .sw-home-hero .pagebuilder-column > figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--sw-home-radius);
    object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
    #html-body .sw-home-hero .pagebuilder-column > figure:not(:first-of-type) {
        animation: sw-home-fade 4s linear infinite alternate;
    }
    #html-body .sw-home-hero .pagebuilder-column > figure:nth-of-type(2) {
        animation-delay: 2s;
    }
}
@keyframes sw-home-fade {
    0%, 45% {
        opacity: 0;
    }
    50%, 100% {
        opacity: 1;
    }
}

#html-body .sw-home-intro .pagebuilder-column-line {
    flex-direction: column;
    gap: 1.5rem;
}
#html-body .sw-home-intro .pagebuilder-column {
    flex: 1 1 0;
    justify-content: center;
    width: auto;
    min-width: 0;
}
#html-body .sw-home-intro h2 {
    margin: 0 0 .75rem;
    font-size: 1.875rem;
    line-height: 2.5rem;
}
#html-body .sw-home-intro [data-content-type="text"] strong {
    font-weight: 600;
}
#html-body .sw-home-intro figure {
    margin: 0;
}
#html-body .sw-home-intro figure picture {
    display: contents;
}
#html-body .sw-home-intro figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--sw-home-radius);
    object-fit: cover;
}

#html-body .sw-home-newsletter > h2,
#html-body .sw-home-newsletter > [data-content-type="text"],
#html-body .sw-home-newsletter > [data-content-type="html"] {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
}
#html-body .sw-home-newsletter .sw-home-newsletter__row {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
#html-body .sw-home-newsletter .sw-home-newsletter__field {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--sw-btn-height);
    padding: 0 1rem;
    border: 1px solid var(--sw-field-border);
    border-radius: var(--sw-btn-radius);
    background-color: #fff;
    color: var(--sw-brown);
    font-size: 1rem;
    line-height: 1.5rem;
}
#html-body .sw-home-newsletter .sw-home-newsletter__field::placeholder {
    color: var(--sw-brown);
    opacity: .75;
}
#html-body .sw-home-newsletter .sw-home-newsletter__button {
    min-height: var(--sw-btn-height);
    padding: 0 1.75rem;
    border: 0;
    border-radius: var(--sw-btn-radius);
    background-color: var(--sw-green);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25rem;
    cursor: pointer;
}
#html-body .sw-home-newsletter .sw-home-newsletter__button:hover {
    background-color: var(--sw-green-dark);
}
#html-body .sw-home-newsletter .sw-home-newsletter__field:focus-visible,
#html-body .sw-home-newsletter .sw-home-newsletter__button:focus-visible {
    outline: 2px solid var(--sw-red);
    outline-offset: 2px;
}
#html-body .sw-home-newsletter .sw-home-newsletter__error {
    margin: .5rem 0 0;
    color: var(--sw-red);
    font-weight: 500;
    text-align: left;
}
#html-body .sw-home-newsletter .sw-home-newsletter__terms {
    margin: 1rem 0 0;
    font-size: .75rem;
    line-height: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    #html-body .sw-home-products [data-role="glider-content"] {
        grid-auto-columns: 42%;
    }
}

@media (min-width: 768px) {
    #html-body div[class*="sw-home-"][data-element="inner"] {
        padding: 3.5rem 0;
    }

    #html-body div.sw-home-banners {
        --sw-home-banner-gap: 1.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #html-body .sw-home-banners > [data-content-type="banner"]:first-child:nth-last-child(odd) {
        grid-column: 1 / -1;
        --sw-home-banner-pad: 2rem;
    }
    #html-body .sw-home-banners > [data-content-type="banner"]:first-child:nth-last-child(odd) :is(h1, h2, h3, h4) {
        margin-bottom: .5rem;
        font-size: 2.25rem;
        line-height: 1.1;
    }
    #html-body .sw-home-banners > [data-content-type="banner"]:first-child:nth-last-child(odd) .pagebuilder-banner-button {
        min-height: var(--sw-btn-height);
        margin-top: 1.25rem;
        padding: 0 1.75rem;
        font-size: 1rem;
    }

    #html-body .sw-home-brands .featured-brands {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }

    #html-body .sw-home-products [data-role="glider-content"] {
        grid-auto-columns: calc((100% - 2rem) / 3);
    }
    #html-body .sw-home-products [data-page-builder-slider-nav]:has(button:not(:disabled)) {
        position: absolute;
        inset: 5rem -1.5rem auto;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        pointer-events: none;
    }
    #html-body .sw-home-products [data-page-builder-slider-nav] .snap-pager {
        display: none;
    }
    #html-body .sw-home-products [data-page-builder-slider-nav] button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: var(--sw-btn-radius);
        background-color: var(--sw-green);
        box-shadow: 0 6px 16px color-mix(in srgb, var(--sw-brown) 28%, transparent);
        color: #fff;
        cursor: pointer;
        pointer-events: auto;
    }
    #html-body .sw-home-products [data-page-builder-slider-nav] button:hover {
        background-color: var(--sw-green-dark);
    }
    #html-body .sw-home-products [data-page-builder-slider-nav] button:focus-visible {
        outline: 2px solid var(--sw-red);
        outline-offset: 2px;
    }
    #html-body .sw-home-products [data-page-builder-slider-nav] button:disabled {
        visibility: hidden;
    }
    #html-body .sw-home-products [data-page-builder-slider-nav] svg {
        width: 1.25rem;
        height: 1.25rem;
        stroke-width: 2;
    }

    #html-body div.sw-home-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }
    #html-body .sw-home-categories > :not(figure) {
        grid-column: 1 / -1;
    }
    #html-body .sw-home-categories > h2 {
        margin-bottom: -1.75rem;
    }
    #html-body .sw-home-categories > [data-content-type="text"] {
        margin-bottom: -.5rem;
    }
    #html-body .sw-home-categories > figure {
        grid-template-columns: 7rem minmax(0, 1fr);
    }
    #html-body .sw-home-categories > figure > figcaption {
        font-size: 1.875rem;
    }

    #html-body .sw-home-intro .pagebuilder-column-line {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    #html-body div.sw-home-hero {
        background-image: url('../images/home/spain-outline.png');
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
    }
    #html-body .sw-home-hero .pagebuilder-column-line {
        flex-direction: row;
    }
    #html-body .sw-home-hero h1 {
        font-size: 3.75rem;
    }
    #html-body .sw-home-hero [data-content-type="buttons"] {
        flex-direction: row;
    }
    #html-body .sw-home-hero [data-content-type="button-item"] > [data-element$="link"] {
        flex: 0 1 auto;
    }
    #html-body .sw-home-hero .sw-home-usps {
        justify-content: flex-start;
    }

    #html-body .sw-home-newsletter .sw-home-newsletter__row {
        flex-direction: row;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    #html-body :where(div[class*="sw-home-"][data-element="inner"]) > h2 {
        font-size: 2.25rem;
    }
    #html-body .sw-home-intro h2 {
        font-size: 2.25rem;
    }
    #html-body :where(div[class*="sw-home-"][data-element="inner"]) > [data-content-type="text"] {
        margin-bottom: 2rem;
    }

    #html-body div.sw-home-banners {
        --sw-home-banner-gap: 1.75rem;
    }
    #html-body div.sw-home-banners:has(> [data-content-type="banner"]:nth-child(3):last-child) {
        grid-template-columns: minmax(0, 1fr) calc((100% - var(--sw-home-banner-gap) * 19 / 7) / 3);
    }
    #html-body div.sw-home-banners:has(> [data-content-type="banner"]:nth-child(3):last-child) > [data-content-type="banner"]:first-child {
        grid-column: auto;
        grid-row: span 2;
        --sw-home-banner-pad: 2.5rem;
    }
    #html-body .sw-home-banners > [data-content-type="banner"]:first-child:nth-last-child(odd) :is(h1, h2, h3, h4) {
        font-size: 3rem;
        line-height: 1;
    }
    #html-body div.sw-home-banners:has(> [data-content-type="banner"]:nth-child(3):last-child) > [data-content-type="banner"]:not(:first-child) p {
        display: none;
    }

    #html-body .sw-home-products [data-role="glider-content"] {
        grid-auto-columns: calc((100% - 3rem) / 4);
    }

    #html-body div.sw-home-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #html-body .sw-home-categories > figure > figcaption {
        font-size: 1.5rem;
    }

    #html-body .sw-home-hero [data-content-type="buttons"] {
        gap: 1.5rem;
    }
    #html-body .sw-home-hero .sw-home-usps {
        gap: 4rem;
    }
}

@media (min-width: 1280px) {
    #html-body div.sw-home-banners:has(> [data-content-type="banner"]:nth-child(3):last-child) > [data-content-type="banner"]:not(:first-child) p {
        display: block;
    }

    #html-body .sw-home-categories > figure > figcaption {
        font-size: 1.875rem;
    }

    #html-body .sw-home-hero .pagebuilder-column-line {
        gap: 3rem;
    }
}

@media (min-width: 1536px) {
    #html-body .sw-home-hero h1 {
        font-size: 4.5rem;
    }
}
