/* Home content and WooCommerce content. The shared shell uses native WoodMart settings. */
body.home .main-page-wrapper:has(.np-home) { margin-top: 0; padding-top: 0; }
body.home .main-page-wrapper .container:has(.np-home) { max-width: none; padding-inline: 0; }
body.home .main-page-wrapper .entry-content:has(.np-home) { margin-block: 0; }
.np-home { --np-ink: #525758; --np-sage: #a2b0a5; --np-paper: #fafaf9; --np-wine: #8c292e; color: var(--np-ink); }
.np-home h1, .np-home h2 { margin: 0; color: inherit; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.02; letter-spacing: -.034em; }
.np-home h2 { font-size: clamp(2.35rem, 4.35vw, 4.65rem); }
.np-home p { margin: 0; line-height: 1.65; }
.np-home figure { margin: 0; }
.np-home .wp-block-button__link { border: 1px solid currentColor; border-radius: 0; color: inherit; background: transparent; font: italic 1.05rem Georgia, serif; min-height: 44px; display: inline-flex; align-items: center; padding: .55rem 1.35rem; text-decoration: none; }
.np-home .wp-block-button__link:hover { background: #46554a; border-color: #46554a; color: white; }
.np-home a:focus-visible, .np-home button:focus-visible, .np-home summary:focus-visible { outline: 2px solid #24583e; outline-offset: 4px; }
.np-hero { position: relative; height: min(47.8vw, 78svh); background: #fafafa; }
.np-hero > .np-slide { height: 100%; }
.np-hero > .np-slide:not(:first-child):not(.np-active), .np-hero > .np-slide[hidden] { display: none; }
.np-sale { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.np-sale figure, .np-slide-image figure, .np-slide-image figure a { display: block; height: 100%; overflow: hidden; }
.np-sale img, .np-slide-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.np-sale-copy { color: var(--np-wine); padding: clamp(20px, 5vw, 75px); display: grid; justify-items: center; align-content: center; gap: clamp(14px, 2vw, 30px); text-align: center; }
.np-sale h1 { font-size: clamp(2.15rem, 5vw, 5.25rem); max-width: 12ch; }
.np-home .np-kicker { text-transform: uppercase; letter-spacing: .17em; font-weight: 700; font-size: .82rem; }
.np-slide-image .np-mobile-media { display: none; }
.np-hero-controls { position: absolute; inset: auto 0 8px; display: flex; justify-content: center; align-items: center; gap: 5px; }
.np-hero-controls button, .np-product-controls button { min-width: 42px; min-height: 42px; padding: 0; color: #343b36; background: #fff; border: 1px solid #737d75; border-radius: 50%; box-shadow: 0 1px 2px #26262624; }
.np-hero-controls button[aria-current="true"] { color: #fff; background: #46554a; border-color: #46554a; }
.np-hero-controls button:focus-visible { outline-offset: 2px; }
.np-wellness { padding: clamp(2.5rem, 6vw, 5.5rem) clamp(15px, 5vw, 84px) 3rem; text-align: center; background: #fff; }
.np-wellness h2 { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.np-product-rail :is(.products, ul.products) { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); grid-template-columns: none; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; gap: 20px; scrollbar-width: none; margin: 0; padding: 4px 2px; }
.np-product-rail :is(.products, ul.products)::before, .np-product-rail :is(.products, ul.products)::after { display: none; }
.np-product-rail .products > .product-grid-item, .np-product-rail .products > .product { width: 100%; max-width: 100%; margin: 0; scroll-snap-align: start; text-align: left; border: 1px solid #e2e4df; padding: 12px; border-radius: 6px; }
.np-product-rail .product-image-link img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.np-product-controls { display: flex; justify-content: center; gap: 12px; margin-top: 17px; }
.np-product-controls button { font-size: 1.21rem; }
.np-product-controls button:disabled { color: #565e58; background: #e7ebe7; border-color: #9b9f9a; }
.np-brand-strip { background: var(--np-sage); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-evenly; padding: .7rem 1rem; gap: 1rem clamp(16px, 3vw, 52px); }
.np-brand-strip figure { flex: 0 1 135px; }
.np-brand-strip img { height: 42px; width: 100%; object-fit: contain; }
.np-dream { padding: clamp(2.7rem, 7vw, 7rem) clamp(14px, 2.4vw, 38px) 2rem; }
.np-section-title { text-align: center; margin-bottom: clamp(1.8rem, 5vw, 4.5rem); }
.np-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 70px); margin-bottom: 1.5rem; }
.np-feature figure { width: 100%; }
.np-feature img { width: 100%; display: block; aspect-ratio: 1.19; object-fit: cover; border-radius: 3px; }
.np-feature-copy { display: grid; gap: 1.15rem; padding: .8rem clamp(0px, 3vw, 42px); justify-items: start; }
.np-feature-copy h2 { font-size: clamp(2.25rem, 3.65vw, 4.15rem); }
.np-feature-reverse > figure { order: 1; }
.np-promise { background: var(--np-paper); text-align: center; padding: 3.6rem max(15px, 4vw); }
.np-promise h2 { margin-top: .8rem; }
.np-promise-grid { margin-block: 2.9rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.np-promise-item img { width: min(72px, 100%); height: 72px; object-fit: contain; margin: auto auto 12px; }
.np-promise-item p { text-transform: uppercase; letter-spacing: .045em; font: .85rem Georgia, serif; }
.np-promise .wp-block-buttons, .np-faq .wp-block-buttons { justify-content: center; }
.np-press { background: var(--np-sage); color: #29342c; text-align: center; padding: 1.5rem 0 .2rem; }
.np-press h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
.np-press .np-brand-strip figure { flex-basis: 100px; }
.np-faq { padding: clamp(2.75rem, 6vw, 5.8rem) clamp(19px, 9vw, 138px); background: var(--np-paper); text-align: center; }
.np-faq h2 { margin-bottom: 2rem; }
.np-faq details { text-align: left; border-bottom: 1px solid #c8ccc6; margin-bottom: 0; }
.np-faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 600; color: #424846; min-height: 58px; padding: 12px 0; }
.np-faq summary::after { content: '+'; font-size: 20px; color: #4e6054; }
.np-faq details[open] summary::after { content: '−'; }
.np-faq details p { margin-bottom: 1rem; padding-right: 1rem; }
.np-faq .wp-block-buttons { margin-top: 2rem; }
.np-story { display: grid; grid-template-columns: 1fr 1fr; place-items: end center; background: linear-gradient(#e5f3f8,#fbfcfb); padding: 2rem max(20px, 6vw) 0; }
.np-story-copy { align-self: center; display: grid; gap: .9rem; }
.np-story img { max-height: 480px; width: auto; object-fit: contain; }
body.woocommerce.archive .main-page-wrapper .wd-products :is(.product-image-link img, .hover-img img) { aspect-ratio: 1; object-fit: contain; }
body.woocommerce.archive .main-page-wrapper .wd-products .product-wrapper { border: 1px solid #e3e5e0; border-radius: 6px; padding: 9px; }
body.single-product .main-page-wrapper .entry-summary .product_title { font-family: Georgia, "Times New Roman", serif; color: #525758; font-weight: 400; letter-spacing: -.025em; }
body.single-product .main-page-wrapper .woocommerce-product-gallery img { border-radius: 4px; }
@media (max-width: 950px) {
    .np-product-rail :is(.products, ul.products) { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 650px) {
    .np-hero { height: min(144vw, 78svh); }
    .np-sale { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
    .np-sale img { object-position: center 43%; }
    .np-sale-copy { padding: 12px 14px 57px; gap: 7px; }
    .np-sale h1 { font-size: clamp(2.1rem, 8vw, 3.35rem); max-width: 16ch; }
    .np-sale-copy .wp-block-button__link { min-height: 37px; }
    .np-slide-image .np-desktop-media { display: none; }
    .np-slide-image .np-mobile-media { display: block; }
    .np-product-rail :is(.products, ul.products) { grid-auto-columns: 90%; gap: 12px; }
    .np-wellness { padding-bottom: 2rem; }
    .np-brand-strip figure { flex-basis: min(38%, 124px); }
    .np-brand-strip img { height: 29px; }
    .np-feature, .np-story { grid-template-columns: 1fr; }
    .np-feature { gap: 1rem; margin-bottom: 2rem; }
    .np-feature > figure { order: 1; }
    .np-feature-copy, .np-story-copy { justify-items: center; text-align: center; }
    .np-promise-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
    .np-story { gap: 1rem; }
    .np-story img { max-height: 390px; }
}

/* Keep the campaign flush with the existing header on this page. */
body.home .main-page-wrapper .wd-content-layout:has(.np-home) { padding-block: 0; }
body.home .np-home > .wp-block-group { margin-block: 0; }
body.home .np-home .wp-block-button__link {
    background: transparent !important;
    text-transform: none !important;
    color: inherit !important;
    border: 1px solid currentColor !important;
    border-radius: 0 !important;
    font: italic 1.05rem Georgia, serif !important;
}
body.home .np-home .wp-block-button__link:hover {
    background: #46554a !important;
    border-color: #46554a !important;
    color: #fff !important;
}
body.home .np-sale h1 { max-width: 15ch; font-size: clamp(2.15rem, 4.7vw, 4.7rem); }
.np-home .np-product-rail .price del,
body.woocommerce .main-page-wrapper .price del { color: #575d58; opacity: 1; }
.np-home .np-product-rail .price del .amount,
body.woocommerce .main-page-wrapper .price del .amount { color: inherit; opacity: 1; }
@media (max-width:650px) {
    body.home .np-sale h1 { max-width: 16ch; font-size: clamp(2.1rem, 8vw, 3.35rem); }
}

/* Nodpod's first campaign slide on the existing mobile carousel breakpoint. */
@media (max-width: 650px) {
    body.home .np-home > .np-hero > .np-sale:first-child {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        align-items: stretch;
        text-align: center;
        color: #fff;
        background: linear-gradient(#8b1d25 0%, #a22027 35%, #a22027 77%, #881a22 100%);
    }
    body.home .np-hero > .np-sale:first-child > .np-sale-copy {
        display: contents;
    }
    body.home .np-hero > .np-sale:first-child .np-kicker {
        grid-row: 1;
        margin: 0;
        padding: clamp(12px, 2vh, 20px) 14px 4px;
        color: #fff;
        font-size: clamp(.71rem, 3.1vw, .91rem);
        line-height: 1.25;
    }
    body.home .np-hero > .np-sale:first-child h1 {
        grid-row: 2;
        justify-self: center;
        margin: 0;
        padding: 0 12px 8px;
        max-width: 19ch;
        color: #fff;
        font-size: clamp(1.7rem, 8.3vw, 2.9rem);
        line-height: 1.02;
    }
    body.home .np-hero > .np-sale:first-child > figure {
        grid-row: 3;
        min-height: 0;
        margin: 0;
    }
    body.home .np-hero > .np-sale:first-child > figure img {
        width: auto;
        margin-inline: auto;
        clip-path: inset(0 2px 0 0);
        object-fit: contain;
        object-position: center bottom;
    }
    body.home .np-hero > .np-sale:first-child .wp-block-buttons {
        grid-row: 4;
        justify-content: center;
        margin: 0;
        padding: 7px 12px 56px;
    }
    body.home .np-hero > .np-sale:first-child .wp-block-button__link {
        min-height: 44px;
        background: #861b23 !important;
        color: #fff !important;
        border-color: #fff !important;
    }
    body.home .np-hero > .np-sale:first-child .wp-block-button__link:hover {
        background: #fff !important;
        color: #861b23 !important;
    }
    body.home .np-hero > .np-sale:first-child .wp-block-button__link:focus-visible {
        outline-color: #fff;
        outline-offset: 3px;
    }
}
