/*
 * Patirtys ir idejos — shared public-page design system.
 * Page templates provide content only; layout, spacing and colour live here.
 */
:root {
    --pi-site-max-width: 1600px;
    --pi-page-max: 1600px;
    --pi-page-gutter: 20px;
    --pi-content-inset: 20px;
    --pi-section-space: 60px;
    --pi-radius-large: 24px;
    --pi-surface: #fff;
    --pi-canvas: #eef3ec;
    --pi-ivory: #faf8f2;
    --pi-sage: #e7efe2;
    --pi-ink: #1d2b22;
    --pi-muted: #4b5c50;
    --pi-green: #4f7b3c;
    --pi-line: rgba(63, 96, 53, .14);
}

/* One shared shell for every internal public page. */
body.pi-layout-system #wrapper {
    padding-bottom: var(--pi-section-space);
    background: var(--pi-canvas);
}

body.pi-layout-system #wrapper > .container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

body.pi-layout-system #wrapper > .container > .breadcrumb {
    display: flex;
    width: min(100%, var(--pi-page-max));
    max-width: var(--pi-page-max) !important;
    min-height: 48px !important;
    margin: 0 auto !important;
    padding: 0 var(--pi-page-gutter) !important;
    align-items: center;
    color: var(--pi-muted);
    font-size: 12px;
}

body.pi-layout-system #wrapper > .container > .breadcrumb > .row {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    align-items: center;
}

body.pi-layout-system #inner-wrapper {
    box-sizing: border-box;
    width: min(100%, var(--pi-page-max)) !important;
    max-width: var(--pi-page-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--pi-page-gutter) !important;
    padding-left: var(--pi-page-gutter) !important;
}

body.pi-layout-system #inner-wrapper > .row {
    margin-right: 0;
    margin-left: 0;
}

body.pi-layout-system.pi-has-page-hero #content-wrapper > .page-header,
body.pi-layout-system.pi-has-page-hero #main > .page-header {
    display: none !important;
}

body.pi-layout-system#category #content-wrapper {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin-bottom: var(--pi-section-space) !important;
}

body.pi-layout-system#category #left-column,
body.pi-layout-system#category #right-column {
    display: none !important;
}

body.pi-layout-system#category.pi-has-page-hero #js-product-list-header {
    margin-bottom: 0 !important;
}

/* Shared hero: category and CMS pages use exactly the same geometry and palette. */
.pi-page-hero {
    position: relative !important;
    box-sizing: border-box;
    display: grid !important;
    min-height: 420px !important;
    margin: var(--pi-content-inset) var(--pi-content-inset) var(--pi-section-space) !important;
    padding: clamp(48px, 5.5vw, 88px) !important;
    overflow: hidden;
    align-items: center;
    border: 1px solid var(--pi-line) !important;
    border-radius: var(--pi-radius-large) !important;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, .86), transparent 29%),
        linear-gradient(135deg, var(--pi-ivory) 0%, var(--pi-sage) 100%) !important;
    color: var(--pi-ink) !important;
}

.pi-page-hero::after {
    position: absolute !important;
    right: -72px !important;
    bottom: -112px !important;
    box-sizing: border-box;
    width: 310px !important;
    height: 310px !important;
    border: 1px solid rgba(71, 111, 59, .12) !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: inset 0 0 0 42px rgba(83, 125, 69, .035) !important;
    color: transparent !important;
    content: '' !important;
    pointer-events: none;
}

.pi-page-hero > * {
    position: relative;
    z-index: 1;
}

.pi-page-hero__eyebrow,
.pi-page-hero > [class$="__eyebrow"],
.pi-page-hero > span,
.pi-page-hero__content > span {
    display: block;
    margin-bottom: 14px;
    color: var(--pi-green) !important;
    font-family: 'Satoshi', sans-serif;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.pi-page-hero h1,
.pi-page-hero .page-title {
    max-width: 900px !important;
    margin: 0 0 20px !important;
    color: var(--pi-ink) !important;
    font-family: 'Satoshi', sans-serif !important;
    font-size: clamp(44px, 5vw, 72px) !important;
    font-weight: 650 !important;
    letter-spacing: -.05em !important;
    line-height: 1 !important;
}

.pi-page-hero h1::after,
.pi-page-hero .page-title::after {
    display: none !important;
}

.pi-page-hero p {
    max-width: 760px !important;
    margin: 0 !important;
    color: var(--pi-muted) !important;
    font-family: 'Satoshi', sans-serif !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
}

.pi-page-hero .pi-supervision-hero__content {
    max-width: 900px;
}

.pi-page-hero .pi-supervision-hero__mark {
    display: none !important;
}

.pi-page-hero .pi-supervision-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.pi-page-hero .pi-supervision-hero__actions a {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 123, 60, .38);
    border-radius: 999px;
    color: #36552f !important;
    font-weight: 750;
    text-decoration: none;
}

.pi-page-hero .pi-supervision-hero__actions a:first-child {
    border-color: var(--pi-green);
    background: var(--pi-green);
    color: #fff !important;
}

/* Shared section rhythm and surface. */
.pi-page-section {
    box-sizing: border-box;
    margin: 0 0 var(--pi-section-space) !important;
    padding: clamp(34px, 4vw, 60px) !important;
    border: 1px solid var(--pi-line) !important;
    border-radius: var(--pi-radius-large) !important;
    background: var(--pi-surface) !important;
}

/* Consistent breathing room around every non-carousel product grid. */
.products-grid:not(.swiper):not(.swiper-container):not(.slick-products-carousel) {
    box-sizing: border-box;
    padding: var(--pi-content-inset) !important;
}

/* Shared customer authentication component. */
body.page-authentication #main {
    width: min(100%, 620px);
    margin: 0 auto var(--pi-section-space);
}

body.page-authentication #main .page-header {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
}

body.page-authentication #main .page-title {
    margin: 0;
    color: var(--pi-ink) !important;
    font-family: 'Satoshi', sans-serif !important;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.1;
}

body.page-authentication #main .page-title::after {
    display: none;
}

body.page-authentication #content.page-content {
    box-sizing: border-box;
    margin: 0;
    padding: clamp(30px, 5vw, 48px);
    border: 1px solid var(--pi-line);
    border-radius: var(--pi-radius-large);
    background: var(--pi-surface);
    box-shadow: 0 18px 50px rgba(31, 55, 39, .08);
}

body.page-authentication .login-form {
    margin: 0;
}

body.page-authentication #login-form .form-group {
    display: block;
    margin: 0 0 20px;
}

body.page-authentication #login-form .form-group > label {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 8px;
    padding: 0;
    color: var(--pi-ink);
    font-size: 14px;
    font-weight: 700;
}

body.page-authentication #login-form .js-input-column {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.page-authentication #login-form .form-group > .form-control-comment {
    display: none;
}

body.page-authentication #login-form .form-control {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid rgba(63, 96, 53, .2);
    border-radius: 12px;
    background: #f8faf7;
    color: var(--pi-ink);
    font-size: 16px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.page-authentication #login-form .form-control:focus {
    border-color: var(--pi-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 123, 60, .1);
    outline: 0;
}

body.page-authentication #login-form .form-control:-webkit-autofill,
body.page-authentication #login-form .form-control:-webkit-autofill:hover,
body.page-authentication #login-form .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--pi-ink);
    box-shadow: 0 0 0 1000px #f8faf7 inset !important;
    caret-color: var(--pi-ink);
}

body.page-authentication #login-form .input-group {
    align-items: stretch;
}

body.page-authentication #login-form .input-group .form-control {
    border-radius: 12px 0 0 12px;
}

body.page-authentication #login-form .input-group-append {
    display: flex;
}

body.page-authentication #login-form [data-action="show-password"] {
    width: 56px;
    min-width: 56px;
    padding: 0;
    border: 1px solid rgba(63, 96, 53, .2);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: #eef3ec;
    color: var(--pi-green);
}

body.page-authentication #login-form .forgot-password {
    margin: 4px 0 0;
    padding: 0;
    text-align: right;
}

body.page-authentication #login-form .forgot-password a,
body.page-authentication .no-account a {
    color: var(--pi-green) !important;
    font-weight: 650;
    text-decoration: none;
}

body.page-authentication #login-form .form-footer {
    margin-top: 26px;
}

body.page-authentication #submit-login {
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--pi-green);
    color: #fff !important;
    font-size: 15px;
    font-weight: 750;
    box-shadow: 0 12px 24px rgba(62, 103, 50, .18);
}

body.page-authentication #content.page-content > hr {
    margin: 30px 0 24px;
    border-color: var(--pi-line);
}

body.page-authentication .no-account {
    text-align: center;
    font-size: 15px;
}

/* Shared customer-account shell and dashboard. */
body.page-customer-account #main {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto var(--pi-section-space);
}

body.page-customer-account #main > .page-header {
    position: relative;
    box-sizing: border-box;
    min-height: 190px;
    margin: 0 0 28px;
    padding: 44px 48px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--pi-line);
    border-radius: var(--pi-radius-large);
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .9), transparent 30%),
        linear-gradient(135deg, var(--pi-ivory), var(--pi-sage));
}

body.page-customer-account #main > .page-header::after {
    position: absolute;
    right: -44px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(71, 111, 59, .12);
    border-radius: 50%;
    box-shadow: inset 0 0 0 38px rgba(83, 125, 69, .035);
    content: '';
}

body.page-customer-account #main > .page-header .page-title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--pi-ink) !important;
    font-family: 'Satoshi', sans-serif !important;
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 680;
    letter-spacing: -.05em;
    line-height: 1;
}

body.page-customer-account #main > .page-header .page-title::after {
    display: none;
}

body.page-customer-account .my-account-page-content-wrapper {
    box-sizing: border-box;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--pi-line);
    border-radius: var(--pi-radius-large);
    background: var(--pi-surface);
    box-shadow: 0 18px 50px rgba(31, 55, 39, .06);
}

body.page-customer-account .my-account-page-content-wrapper > .row {
    display: grid;
    margin: 0;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 32px;
}

body.page-customer-account .my-account-side-links,
body.page-customer-account .my-account-page-content {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.page-customer-account .my-account-side-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 0;
}

body.page-customer-account .my-account-side-links > a {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 54px;
    padding: 12px 14px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f6f9f4;
    color: #36552f !important;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

body.page-customer-account .my-account-side-links > a:hover {
    transform: translateY(-1px);
    border-color: var(--pi-line);
    background: #eef4ea;
}

body.page-customer-account .my-account-side-links .link-item {
    color: inherit !important;
}

body.page-customer-account .my-account-side-links .fa {
    width: 26px;
    margin-right: 8px;
    color: var(--pi-green);
    font-size: 17px;
    text-align: center;
}

body.page-customer-account .my-account-page-content {
    min-height: 300px;
    padding: 30px;
    border: 1px solid var(--pi-line);
    border-radius: 18px;
    background: #fbfcfa;
}

body#my-account.page-customer-account .my-account-page-content-wrapper > .row {
    grid-template-areas:
        'intro'
        'navigation';
    grid-template-columns: 1fr;
    gap: 26px;
}

body#my-account.page-customer-account .my-account-page-content {
    min-height: 0;
    padding: 0;
    grid-area: intro;
    border: 0;
    background: transparent;
}

body#my-account.page-customer-account .my-account-side-links {
    display: grid;
    grid-area: navigation;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body#my-account.page-customer-account .my-account-side-links > a {
    min-height: 96px;
    padding: 20px;
    align-items: flex-start;
    justify-content: center;
    border-color: var(--pi-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 55, 39, .045);
}

body#my-account.page-customer-account .my-account-side-links .link-item {
    display: flex;
    width: 100%;
    align-items: center;
}

body#my-account.page-customer-account .pi-account-dashboard-intro {
    padding: 8px 4px 2px;
}

body#my-account.page-customer-account .pi-account-dashboard-intro > span {
    display: block;
    margin-bottom: 8px;
    color: var(--pi-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

body#my-account.page-customer-account .pi-account-dashboard-intro h2 {
    margin: 0 0 10px;
    color: var(--pi-ink) !important;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -.04em;
}

body#my-account.page-customer-account .pi-account-dashboard-intro p {
    max-width: 680px;
    margin: 0;
    color: var(--pi-muted) !important;
    font-size: 16px;
    line-height: 1.6;
}

/* Product long-form content uses the real sections template selector. */
body#product .product-description-section .rte-content {
    color: var(--pi-ink) !important;
    font-family: 'Satoshi', sans-serif !important;
    font-size: 18px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

body#product .product-description-section .rte-content p,
body#product .product-description-section .rte-content li {
    color: inherit !important;
    font: inherit;
}

body#product .product-description-section .rte-content img,
body#product .product-description-section .rte-content iframe,
body#product .product-description-section .rte-content video {
    max-width: 100%;
    height: auto;
}

body#product .product-description-section .rte-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    :root {
        --pi-page-gutter: 14px;
        --pi-section-space: 36px;
        --pi-radius-large: 18px;
    }

    body.pi-layout-system #wrapper > .container > .breadcrumb {
        min-height: 44px !important;
    }

    .pi-page-hero {
        min-height: auto !important;
        padding: 38px 24px !important;
    }

    .pi-page-hero::after {
        right: -110px !important;
        bottom: -150px !important;
    }

    .pi-page-hero h1,
    .pi-page-hero .page-title {
        font-size: clamp(36px, 11vw, 48px) !important;
    }

    .pi-page-hero p {
        font-size: 15px !important;
    }

    .pi-page-section {
        padding: 28px 22px !important;
    }

    body.page-authentication #main {
        width: 100%;
    }

    body.page-authentication #main .page-header {
        margin-bottom: 20px;
    }

    body.page-authentication #content.page-content {
        padding: 26px 20px;
    }

    body.page-customer-account #main > .page-header {
        min-height: 150px;
        padding: 32px 24px;
    }

    body.page-customer-account .my-account-page-content-wrapper {
        padding: 18px;
    }

    body.page-customer-account .my-account-page-content-wrapper > .row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.page-customer-account .my-account-page-content {
        min-height: 0;
        padding: 22px 18px;
    }

    body#my-account.page-customer-account .my-account-side-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body#my-account.page-customer-account .my-account-side-links > a {
        min-height: 64px;
        padding: 15px 16px;
    }

    body#product .product-sections.pi-mobile-accordion-ready {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible;
        border-radius: var(--pi-radius-large);
        background: transparent !important;
    }

    body#product .product-sections.pi-mobile-accordion-ready > .block-section.pi-mobile-collapsible {
        margin: 0 0 12px !important;
        padding: 0 !important;
        overflow: hidden;
        border: 1px solid var(--pi-line) !important;
        border-radius: 16px !important;
        background: #fff !important;
    }

    body#product .product-sections.pi-mobile-accordion-ready .pi-mobile-section-toggle {
        position: relative;
        display: flex;
        min-height: 58px;
        margin: 0 !important;
        padding: 16px 52px 16px 18px !important;
        align-items: center;
        cursor: pointer;
        color: var(--pi-ink) !important;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
        user-select: none;
    }

    body#product .product-sections.pi-mobile-accordion-ready .pi-mobile-section-toggle::after {
        position: absolute;
        top: 50%;
        right: 20px;
        bottom: auto !important;
        left: auto !important;
        display: block !important;
        width: 10px;
        height: 10px;
        transform: translateY(-65%) rotate(45deg);
        border-right: 2px solid var(--pi-green);
        border-bottom: 2px solid var(--pi-green);
        content: '';
        transition: transform .2s ease;
    }

    body#product .product-sections.pi-mobile-accordion-ready > .block-section.is-open > .pi-mobile-section-toggle::after {
        transform: translateY(-35%) rotate(225deg);
    }

    body#product .product-sections.pi-mobile-accordion-ready > .block-section.pi-mobile-collapsible > .section-content {
        display: none;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 0 18px 22px !important;
        overflow: hidden;
    }

    body#product .product-sections.pi-mobile-accordion-ready > .block-section.pi-mobile-collapsible.is-open > .section-content {
        display: block;
    }

    body#product .product-description-section .rte-content {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    /* The selected cover can be a later lazy slide. Render it as a stable
       mobile primary image instead of leaving an empty Swiper canvas. */
    body#product #product-images-large,
    body#product #product-images-large .swiper-wrapper,
    body#product .images-container .product-cover {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body#product #product-images-large .swiper-wrapper {
        display: block !important;
        transform: none !important;
    }

    body#product #product-images-large .product-lmage-large {
        display: none !important;
    }

    body#product #product-images-large .product-lmage-large.pi-mobile-primary-image {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    body#product #product-images-large .pi-mobile-primary-image picture,
    body#product #product-images-large .pi-mobile-primary-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
        border-radius: 14px;
        object-fit: cover !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body#product #product-images-large .swiper-button-arrow {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    body#my-account.page-customer-account .my-account-side-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Mini cart: one shared treatment for desktop and mobile drawers. */
body #desktop-header #_desktop_blockcart-content,
body #_mobile_blockcart-content {
    overflow: hidden !important;
    border-radius: 20px !important;
}

body #desktop-header #blockcart-content,
body #_mobile_blockcart-content #blockcart-content {
    overflow: hidden;
    border-radius: inherit;
}

body #desktop-header #blockcart-content .pi-mini-cart-checkout,
body #_mobile_blockcart-content #blockcart-content .pi-mini-cart-checkout {
    border-color: #c65308 !important;
    border-radius: 12px !important;
    background: #c65308 !important;
    color: #fff !important;
}

body #desktop-header #blockcart-content .pi-mini-cart-checkout:hover,
body #desktop-header #blockcart-content .pi-mini-cart-checkout:focus,
body #_mobile_blockcart-content #blockcart-content .pi-mini-cart-checkout:hover,
body #_mobile_blockcart-content #blockcart-content .pi-mini-cart-checkout:focus {
    border-color: #a84206 !important;
    background: #a84206 !important;
}

/* Give the homepage contact area its own calm visual zone. */
body#index .pi-contact-section {
    border-top: 0;
    border-bottom: 0;
    background: #e1eadb !important;
}

/* Supervision page: consistent outer gutter and section/card padding. */
body.cms-id-13 .pi-supervision-page {
    box-sizing: border-box;
    width: 100%;
    padding: 0 var(--pi-content-inset) var(--pi-section-space) !important;
}

body.cms-id-13 .pi-supervision-page > .pi-supervision-hero {
    margin: var(--pi-content-inset) 0 var(--pi-section-space) !important;
}

body.cms-id-13 .pi-supervision-page > .pi-page-section {
    padding: clamp(40px, 4vw, 64px) !important;
}

body.cms-id-13 .pi-supervision-format-grid article,
body.cms-id-13 .pi-supervision-choice-grid article {
    padding: 28px 24px !important;
}

/* Main framed surfaces use the same 20px inset as page heroes. */
body#product .product-info-row {
    gap: var(--pi-content-inset) !important;
    padding: var(--pi-content-inset) !important;
}

/* Let the main product image fill its column without a second inner mat. */
body#product .col-product-image .images-container,
body#product .images-container .product-cover,
body#product #product-images-large,
body#product #product-images-large .swiper-wrapper,
body#product #product-images-large .product-lmage-large,
body#product #product-images-large picture {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body#product #product-images-large .product-lmage-large img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    object-fit: cover !important;
}

/* Match the media height to the adjacent product card on desktop. */
@media (min-width: 992px) {
    body#product .product-info-row {
        align-items: stretch !important;
    }

    body#product .col-product-image,
    body#product .col-product-image .images-container,
    body#product .images-container .product-cover,
    body#product #product-images-large,
    body#product #product-images-large .swiper-wrapper,
    body#product #product-images-large .product-lmage-large,
    body#product #product-images-large picture {
        height: 100% !important;
    }

    body#product .images-container .product-cover {
        background: transparent !important;
    }

    body#product #product-images-large .product-lmage-large img {
        height: 100% !important;
        aspect-ratio: auto;
    }
}

/* Keep review stars visible even when the page typography is overridden. */
body#product #iqitreviews-rating-product .iqitreviews-rating {
    display: inline-flex !important;
    gap: 4px;
    align-items: center;
}

body#product #iqitreviews-rating-product .iqit-review-star {
    display: inline-block !important;
    color: #e1c72b !important;
    font-family: FontAwesome !important;
    font-size: 20px !important;
    font-style: normal;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 575.98px) {
    body.cms-id-13 .pi-supervision-page {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.cms-id-13 .pi-supervision-page > .pi-supervision-hero {
        margin-top: var(--pi-content-inset) !important;
    }

    body.cms-id-13 .pi-supervision-page > .pi-page-section {
        padding: 26px 20px !important;
    }

    body.cms-id-13 .pi-supervision-format-grid article,
    body.cms-id-13 .pi-supervision-choice-grid article {
        padding: 22px 20px !important;
    }

    body#product .product-info-row {
        padding: var(--pi-content-inset) !important;
    }
}

/* The bounded homepage content must reveal the shared canvas, not legacy ivory. */
html body#index section#wrapper {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

html body#index #content-wrapper {
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Compact global mobile header: logo and actions share one calm row. */
@media (max-width: 991.98px) {
    body #mobile-header,
    body #mobile-header-sticky,
    body #mobile-header-sticky .mobile-buttons-bar {
        min-height: 68px;
        background: #fffdf8 !important;
    }

    body #mobile-header {
        border-bottom: 1px solid #e1e7dc;
    }

    body #mobile-header-sticky .container {
        width: 100%;
        max-width: 100%;
        padding-right: 12px;
        padding-left: 14px;
    }

    body #mobile-header-sticky .row-mobile-buttons {
        display: flex;
        min-height: 68px;
        margin-right: 0;
        margin-left: 0;
        align-items: center;
        flex-wrap: nowrap;
        gap: 2px;
    }

    body #mobile-header-sticky .col-mobile-logo {
        display: flex;
        min-width: 0;
        min-height: 0;
        padding: 0 8px 0 0;
        align-items: center;
        flex: 1 1 auto;
    }

    body #mobile-header-sticky .col-mobile-logo a {
        display: inline-flex;
        min-width: 0;
        align-items: center;
    }

    body #mobile-header-sticky .pi-mobile-logo {
        display: block;
        width: 190px;
        max-width: min(48vw, 190px);
        height: auto;
    }

    body #mobile-header-sticky .col-mobile-btn {
        width: 44px;
        max-width: 44px;
        padding: 0;
        flex: 0 0 44px;
    }

    body #mobile-header-sticky .m-nav-btn,
    body #mobile-header.mobile-header-style-3 #mobile-header-sticky .m-nav-btn {
        display: flex;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0 !important;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        color: #35552f !important;
        font-size: 0;
        line-height: 1;
    }

    body #mobile-header-sticky .m-nav-btn:hover,
    body #mobile-header-sticky .m-nav-btn:focus-visible {
        background: #edf3e9 !important;
        color: #284525 !important;
    }

    body #mobile-header-sticky .m-nav-btn > span:not(.pi-mobile-icon-wrap) {
        display: none !important;
    }

    body #mobile-header-sticky .pi-mobile-outline-icon,
    body #mobile-header-sticky .pi-mobile-icon-wrap {
        display: block;
        width: 24px;
        height: 24px;
        margin: 0;
        flex: 0 0 24px;
    }

    body #mobile-header-sticky .pi-mobile-outline-icon {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body #mobile-header-sticky .pi-mobile-icon-wrap {
        position: relative;
    }

    body #mobile-header-sticky .cart-products-count-btn {
        position: absolute;
        top: -7px;
        right: -8px;
        display: flex !important;
        width: 18px;
        min-width: 18px;
        height: 18px;
        margin: 0;
        padding: 0 4px;
        align-items: center;
        justify-content: center;
        border: 2px solid #fffdf8;
        border-radius: 999px;
        background: #d96119 !important;
        color: #fff !important;
        font-size: 10px;
        font-weight: 700;
        line-height: 14px;
    }

    body #mobile-header-sticky.stuck-down {
        box-shadow: 0 8px 24px rgba(35, 57, 31, .1);
    }
}

@media (max-width: 374.98px) {
    body #mobile-header-sticky .container {
        padding-right: 8px;
        padding-left: 10px;
    }

    body #mobile-header-sticky .pi-mobile-logo {
        width: 168px;
        max-width: 45vw;
    }

    body #mobile-header-sticky .col-mobile-btn,
    body #mobile-header-sticky .m-nav-btn,
    body #mobile-header.mobile-header-style-3 #mobile-header-sticky .m-nav-btn {
        width: 42px;
        max-width: 42px;
        flex-basis: 42px;
    }
}

/* Global desktop spacing belongs to the header, not to individual banners. */
@media (min-width: 992px) {
    body #header {
        margin-bottom: 20px !important;
    }
}

/* Keep the mobile mini-cart and checkout action inside narrow viewports. */
@media (max-width: 767.98px) {
    body #_mobile_blockcart-content #blockcart-content,
    body #mobile-header .ps-shoppingcart #blockcart-content {
        right: 12px !important;
        left: auto !important;
        width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        max-width: 340px !important;
        box-sizing: border-box;
    }

    body #_mobile_blockcart-content #blockcart-content .cart-buttons,
    body #mobile-header .ps-shoppingcart #blockcart-content .cart-buttons {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }

    body #_mobile_blockcart-content #blockcart-content .pi-mini-cart-checkout,
    body #mobile-header .ps-shoppingcart #blockcart-content .pi-mini-cart-checkout {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 54px;
        margin: 0 !important;
        padding: 12px 16px !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }
}

/* Mobile product cards: keep the two-column grid, but never squeeze price and CTA together. */
@media (max-width: 767.98px) {
    body#index .products-grid .product-miniature .product-description,
    body .products-grid .product-miniature .product-description {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
    }

    body#index .products-grid .product-miniature .product-category-name,
    body#index .products-grid .product-miniature .product-title,
    body#index .products-grid .product-miniature .product-description-short,
    body#index .products-grid .product-miniature .product-price-and-shipping,
    body#index .products-grid .product-miniature .product-add-cart,
    body .products-grid .product-miniature .product-category-name,
    body .products-grid .product-miniature .product-title,
    body .products-grid .product-miniature .product-description-short,
    body .products-grid .product-miniature .product-price-and-shipping,
    body .products-grid .product-miniature .product-add-cart {
        grid-column: 1 !important;
        grid-row: auto !important;
        min-width: 0;
    }

    body#index .products-grid .product-miniature .product-price-and-shipping,
    body .products-grid .product-miniature .product-price-and-shipping {
        width: 100%;
        overflow: visible;
        white-space: nowrap;
    }

    body#index .products-grid .product-miniature .product-price,
    body .products-grid .product-miniature .product-price {
        font-size: 20px !important;
    }

    body#index .products-grid .product-miniature .product-add-cart,
    body .products-grid .product-miniature .product-add-cart {
        width: 100% !important;
        margin: 12px 0 0 !important;
        justify-self: stretch !important;
    }

    body#index .products-grid .product-miniature .product-add-cart form,
    body#index .products-grid .product-miniature .input-group-add-cart,
    body#index .products-grid .product-miniature .btn-product-list,
    body .products-grid .product-miniature .product-add-cart form,
    body .products-grid .product-miniature .input-group-add-cart,
    body .products-grid .product-miniature .btn-product-list {
        width: 100% !important;
        max-width: none !important;
    }

    body#index .products-grid .product-miniature .btn-product-list,
    body .products-grid .product-miniature .btn-product-list {
        border-radius: 9px !important;
    }
}

/* One consent system only; the Partner1 dialog replaces the legacy Warehouse notice. */
#iqitcookielaw {
    display: none !important;
}

.pi-map-placeholder {
    align-items: center;
    background: #edf3e9;
    border: 1px solid #cbd8c5;
    color: #27492c;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    gap: 6px;
    justify-content: center;
    padding: 24px;
    width: 100%;
}

.pi-map-placeholder span {
    font-size: 18px;
    font-weight: 700;
}

.pi-map-placeholder small {
    color: #536653;
}

body#index .product-category-name,
body#index .product-miniature .product-category-name.text-muted {
    color: #1f4819 !important;
}

/* WCAG AA contrast for compact product labels. */
body .products-grid .product-miniature .product-category-name {
    color: #426632 !important;
}

/* Product option radios as a clear segmented selector. */
body#product .product-variants .product-variants-item {
    margin: 24px 0 !important;
}

body#product .product-variants .product-variants-item > .form-control-label {
    display: block;
    margin: 0 0 10px;
    color: var(--pi-ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

body#product .product-variants .product-variants-item > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body#product .product-variants .product-variants-item li.input-container {
    position: relative;
    float: none !important;
    margin: 0 !important;
}

body#product .product-variants .input-radio {
    position: absolute !important;
    z-index: 2;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0;
    cursor: pointer;
}

body#product .product-variants .radio-label {
    display: inline-flex;
    min-height: 44px;
    padding: 9px 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccd8c7;
    border-radius: 10px;
    background: #fff;
    color: #29402f;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body#product .product-variants li:hover .radio-label {
    border-color: #78966c;
    background: #f2f6ef;
}

body#product .product-variants .input-radio:checked + .radio-label {
    border-color: var(--pi-green);
    background: var(--pi-green);
    color: #fff;
    box-shadow: 0 7px 18px rgba(79, 123, 60, .18);
}

body#product .product-variants .input-radio:focus-visible + .radio-label {
    outline: 3px solid rgba(79, 123, 60, .25);
    outline-offset: 2px;
}

body#product .product-variants .attribute-not-in-stock .radio-label {
    opacity: .48;
}

@media (max-width: 575.98px) {
    body#product .product-variants .product-variants-item > ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body#product .product-variants .radio-label {
        width: 100%;
        min-height: 46px;
        padding: 8px 10px;
        text-align: center;
    }
}
