.product-detail-page {
    background: #fff;
    min-height: 100vh;
    color: #26160f
}

.product-detail-shell {
    width: min(1180px,calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 90px
}

.product-breadcrumbs {
    margin-bottom: 28px;
    font-size: 13px;
    color: #8a7466
}

.product-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none
}

.product-breadcrumbs li + li::before {
    content: "›";
    margin-right: 6px;
    color: #c2b0a3
}

.product-breadcrumbs a {
    color: inherit;
    text-decoration: none
}

.product-breadcrumbs a:hover {
    color: #d9520c;
    text-decoration: underline
}

.product-breadcrumbs [aria-current] {
    color: #281b16;
    font-weight: 700
}

.product-detail-flash {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #eef9ed;
    color: #26713b;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px
}

.product-detail-main {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr);
    gap: 56px;
    align-items: start
}

.product-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}

.product-detail-image,.product-detail-thumb {
    border: 0;
    padding: 0;
    cursor: pointer;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background: #fff3e6;
    display: grid;
    place-items: center
}

.product-detail-image--primary {
    grid-column: 1/-1;
    aspect-ratio: 1;
    min-height: 22rem;
    background: #fff7ef
}

.product-detail-image img,.product-detail-thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    /* padding:7%; */
    box-sizing: border-box
}

.product-detail-thumb {
    outline: 2px solid transparent;
    outline-offset: 2px
}

.product-detail-thumb.is-active {
    outline-color: #ff6b20
}

.product-detail-copy {
    position: sticky;
    top: 24px;
    padding: 6px 0
}

.product-detail-kicker,.product-related-heading span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    color: #9a6651
}

.product-detail-copy h1 {
    font-family: 'Baloo 2',sans-serif;
    font-size: clamp(26px,2.7vw,34px);
    line-height: 1.15;
    letter-spacing: -.5px;
    margin: 12px 0 18px;
    color: #2b160c
}

.product-detail-description {
    font-size: 18px;
    line-height: 1.65;
    color: #544b46;
    margin: 0
}

.product-detail-size {
    color: #81756e;
    margin: 12px 0 12px
}

.product-detail-badge {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #29160b;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase
}

.product-detail-pricing {
    margin: 0 0 18px
}

.product-related-pricing {
    margin: 4px 0 12px
}

.product-detail-support {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff5ec;
    border-radius: 14px;
    padding: 13px 15px;
    margin: 20px 0
}

.product-detail-support i {
    color: #ff6b20
}

.product-detail-form fieldset {
    border: 0;
    padding: 0;
    margin: 28px 0 18px;
    display: grid;
    gap: 10px
}

.product-detail-form legend {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 13px
}

.product-detail-form label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ded8d4;
    border-radius: 12px;
    padding: 15px 16px;
    cursor: pointer;
    font-weight: 700
}

.product-detail-form label:has(input:checked) {
    border: 2px solid #ff6b20;
    padding: 14px 15px;
    background: #fff9f4
}

.product-detail-form label input {
    position: absolute;
    opacity: 0
}

.product-detail-form label strong {
    font-size: 15px
}

.product-detail-form>button {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #ff6b20;
    color: #fff;
    padding: 16px 22px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer
}

.product-detail-form>button:disabled {
    background: #c8c2be;
    cursor: not-allowed
}

.product-detail-form>button span {
    margin-left: 4px
}

.product-detail-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 14px 4px 10px;
    font-weight: 600;
    line-height: 1.45;
    font-size: 13px;
    color: #6f5b4d
}

.product-detail-note i {
    font-size: 14px;
    margin-top: 2px
}

.product-related {
    margin-top: 80px
}

.product-related-heading h2 {
    font-family: 'Baloo 2',sans-serif;
    font-size: 36px;
    margin: 4px 0 24px
}

.product-related-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    align-items: stretch
}

.product-related-grid article {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%
}

.product-related-image {
    display: block;
    aspect-ratio: 1;
    background: #fff1e4;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    flex: 0 0 auto
}

.product-related-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10%;
    box-sizing: border-box;
    transition: transform .25s ease
}

.product-related-image:hover img {
    transform: scale(1.05)
}

.product-related-grid article>small {
    font-size: 10px;
    font-weight: 900;
    color: #937265
}

.product-related-grid article>div {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0
}

.product-related-grid h3 {
    font-size: 17px;
    margin: 0
}

.product-related-grid h3 a {
    color: #2b160c;
    text-decoration: none
}

.product-related-grid p {
    color: #766b65;
    font-size: 14px;
    line-height: 1.5;
    flex: 1 1 auto;
    margin: 0 0 16px
}

.product-related-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    background: #2b160c;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px;
    font-weight: 800;
    margin-top: auto
}

.product-related-link:hover {
    background: #ff6b20
}

.shop-grid-title a,.storefront-product-body h3 a {
    color: inherit;
    text-decoration: none
}

.shop-grid-title a:hover,.storefront-product-body h3 a:hover {
    color: #ff6b20
}

@media(max-width: 900px) {
    .product-detail-main {
        grid-template-columns:1fr
    }

    .product-detail-copy {
        position: static
    }

    .product-related-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width: 560px) {
    .product-detail-shell {
        width:min(100% - 24px,1180px);
        padding-top: 24px
    }

    .product-detail-gallery {
        gap: 8px
    }

    .product-detail-image {
        border-radius: 12px
    }

    .product-detail-main {
        gap: 32px
    }

    .product-related {
        margin-top: 55px
    }

    .product-related-grid {
        grid-template-columns: 1fr
    }

    .product-detail-copy h1 {
        font-size: 28px
    }
}


/* Product accordions (ingredients, size & serving, shipping) */
.product-accordions {
    border-top: 1px solid #f0e2d4
}

.product-accordion {
    border-bottom: 1px solid #f0e2d4;
    font-size: 13px;
    color: #6f5b4d
}

.product-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: #3b2416
}

.product-accordion summary::-webkit-details-marker {
    display: none
}

.product-accordion summary::after {
    content: "+";
    font-size: 16px;
    font-weight: 700;
    transition: transform .2s ease
}

.product-accordion[open] summary::after {
    transform: rotate(45deg)
}

.product-accordion p,.product-accordion dl {
    margin: 0 4px 14px;
    line-height: 1.55
}

.product-accordion dl div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 8px
}

.product-accordion dt {
    font-weight: 700
}

.product-accordion dd {
    margin: 0
}

.product-accordion a {
    color: inherit;
    text-decoration: underline
}

/* Swipeable gallery */
.product-detail-gallery {
    display: block;
    min-width: 0
}

.product-gallery-viewport {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff7ef
}

.product-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    outline: none
}

.product-gallery-track::-webkit-scrollbar {
    display: none
}

.product-gallery-track:focus-visible {
    box-shadow: inset 0 0 0 3px #ff6b2066
}

.product-gallery-slide {
    flex: 0 0 100%;
    aspect-ratio: 1;
    min-height: 22rem;
    padding: 0;
    border: 0;
    background: transparent;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: grid;
    place-items: center;
    cursor: zoom-in
}

.product-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.product-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #ffffffeb;
    color: #3b2416;
    box-shadow: 0 6px 18px #28170c26;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity .2s ease
}

.product-gallery-arrow--prev {
    left: 12px
}

.product-gallery-arrow--next {
    right: 12px
}

.product-gallery-arrow:disabled {
    opacity: 0;
    pointer-events: none
}

.product-gallery-count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    padding: 3px 8px;
    border-radius: 99px;
    background: #28170cb3;
    color: #fff;
    font-size: 11px;
    font-weight: 700
}

.product-gallery-thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px
}

.product-gallery-thumbs .product-detail-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    opacity: .7;
    transition: opacity .2s ease
}

.product-gallery-thumbs .product-detail-thumb.is-active,.product-gallery-thumbs .product-detail-thumb:hover {
    opacity: 1
}

/* On touch screens people swipe, so hide the arrows */
@media (hover: none) {
    .product-gallery-viewport > .product-gallery-arrow {
        display: none
    }
}

@media (max-width: 560px) {
    .product-gallery-slide {
        min-height: 0
    }

    .product-gallery-thumbs .product-detail-thumb {
        width: 48px;
        height: 48px
    }
}

/* Full-screen photo view */
.product-gallery-lightbox {
    width: min(92vw, 900px);
    margin: auto;
    position: fixed;
    inset: 0;
    height: fit-content;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden
}

.product-gallery-lightbox::backdrop {
    background: #150b05d9
}

.product-gallery-lightbox img {
    display: block;
    width: 100%;
    max-height: 88vh;
    object-fit: contain
}

.product-gallery-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #28170cb3;
    color: #fff;
    cursor: pointer
}
