body.page-template-product-template .xyl-header:not(.is-scrolled) .xyl-nav a {
    color: var(--button-green)
}

.product-page {
    background: #fff;
    color: var(--muted)
}

.product-browse {
    display: flex;
    align-items: center;
    height: clamp(430px,38vw,610px);
    overflow: hidden
}

.product-browse__grid {
    height: calc(100% - 80px);
    display: grid;
    grid-template-columns: minmax(230px, .27fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: center
}

.product-browse__copy h1 {
    margin: 0 0 18px;
    font-size: var(--font-h2);
    font-weight: 500;
    line-height: 1.25
}

.product-browse__copy p {
    max-width: 20ch;
    margin: 0 0 24px;
    color: #111;
    font-size: var(--font-h6);
    line-height: 1.7
}

.product-browse__copy a {
    display: inline-flex;
    gap: 10px;
    color: #111;
    font-size: var(--font-h6);
    text-decoration: none
}

.product-browse__copy a:before {
    content: '→';
    color: var(--button-green)
}

.product-browse__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(260px, 19.5vw, 360px);
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab
}

.product-browse__track::-webkit-scrollbar {
    display: none
}

.product-browse__track.is-dragging {
    cursor: grabbing
}

.product-browse__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 4/5;
    padding: clamp(20px, 2vw, 30px);
    overflow: hidden;
    color: #fff;
    text-decoration: none
}

.product-browse__card:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .68))
}

.product-browse__card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s
}

.product-browse__card:hover img {
    transform: scale(1.06)
}

.product-browse__card strong,
.product-browse__card span {
    position: relative;
    z-index: 1
}

.product-browse__card strong {
    margin-bottom: 12px;
    font-size: var(--font-h4);
    font-weight: 500
}

.product-browse__card span {
    font-size: var(--font-body)
}

.product-browse__card span:after {
    content: '→ ';
    color: var(--button-yellow);
    padding-left: 5%;
}

.product-mobile-hero {
    display: none
}

.product-toolbar {
    position: relative;
    /* margin-top: clamp(28px, 3vw, 48px); */
    padding: 34px 0 50px
}

.product-trackbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: #d8d8d8
}

.product-trackbar span {
    display: block;
    width: 46%;
    height: 100%;
    background: #3d7a5e;
    transform: translateX(0)
}

.product-filter-toggle {
    display: none
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    gap: clamp(48px, 5.5vw, 90px);
    padding-bottom: clamp(90px, 9vw, 140px)
}

.product-sidebar {
    position: sticky;
    top: 108px;
    align-self: start
}

.product-sidebar h2 {
    margin: 0 0 18px;
    padding-bottom: 22px;
    font-size: var(--font-h4);
    font-weight: 500
}

.product-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.product-sidebar li {
    border-bottom: 1px solid rgba(17, 17, 17, .14)
}

.product-sidebar a {
    display: block;
    padding: 20px 0;
    color: #111;
    font-size: var(--font-h6);
    text-decoration: none
}

.product-sidebar a:hover,
.product-sidebar a.is-active {
    color: #3d7a5e
}

.product-category {
    scroll-margin-top: 110px;
    margin-bottom: clamp(72px, 7vw, 112px)
}

.product-category>header {
    margin-bottom: clamp(24px, 3vw, 46px)
}

.product-category>header h2 {
    margin: 0;
    font-size: var(--font-h4);
    font-weight: 500;
    line-height: 1.25
}

.product-category>header p {
    max-width: 68ch;
    margin: 13px 0 0;
    font-size: var(--font-h6);
    line-height: 1.7
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.5vw, 26px)
}

.product-card a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1.24;
    overflow: hidden;
    background: #f7f7f7
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .35s
}

.product-card:hover img {
    transform: scale(1.025)
}

.product-card__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 5px 9px;
    background: #050505;
    color: #fff;
    font-size: var(--font-body);
    line-height: 1.7
}

.product-card__favorite {
    position: absolute;
    top: 15px;
    right: 18px;
    z-index: 2;
    color: #111;
    font-size: var(--font-h4);
    line-height: 1.25
}

.product-category__action {
    margin-top: 32px;
    text-align: right
}

.product-category__action a {
    display: inline-flex;
    padding-bottom: 6px;
    border-bottom: 1px solid;
    color: var(--muted);
    font-size: var(--font-body);
    text-decoration: none
}

.product-category__action a:after {
    content: '→';
    margin-left: 10px;
     color: var(--button-yellow);
}

@media(max-width:1180px) {
    .product-browse__track {
        grid-auto-columns: clamp(250px, 34vw, 340px)
    }

    .product-layout {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 32px
    }

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

@media(max-width:768px) {
    body.page-template-product-template .xyl-header:not(.is-scrolled) .xyl-nav a {
        color: #fff
    }

    .product-browse {
        display: none
    }

    .product-mobile-hero {
        display: flex;
        align-items: center;
        min-height: clamp(280px, 72vw, 390px);
        padding: 110px 0 50px;
        background: linear-gradient(rgba(8, 24, 19, .32), rgba(8, 24, 19, .4)), var(--product-mobile-hero) center/cover;
        color: #fff
    }

    .product-mobile-hero h1 {
        margin: 0 0 14px;
        color: #fff;
        font-size: var(--font-h2);
        font-weight: 500
    }

    .product-mobile-hero p {
        margin: 0;
        color: rgba(255, 255, 255, .88);
        font-size: var(--font-h6)
    }

    .product-toolbar {
        padding: 20px 0 0
    }

    .product-trackbar {
        display: none
    }

    .product-filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 48px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #111;
        font-size: var(--font-h5);
        font-weight: 600
    }

    .product-layout {
        display: block;
        padding: 22px 0 70px
    }

    .product-sidebar {
        position: static;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s, padding .25s
    }

    .product-page.is-filter-open .product-sidebar {
        max-height: 70vh;
        padding: 12px 0 24px
    }

    .product-sidebar h2 {
        font-size: var(--font-h6)
    }

    .product-sidebar a {
        padding: 12px 0
    }

    .product-category {
        margin-bottom: 72px
    }

    .product-grid {
        gap: 24px 8px
    }

    .product-card a {
        aspect-ratio: 1/1.08
    }

    .product-card__badge {
        top: 10px;
        left: 10px
    }

    .product-card__favorite {
        top: 9px;
        right: 10px
    }
}

.product-category-archive {
    padding-top: 80px
}

.product-category-archive__hero {
    display: flex;
    align-items: flex-end;
    min-height: 360px;
    padding: 70px 0;
    background: linear-gradient(90deg, rgba(5, 22, 18, .76), rgba(5, 22, 18, .16)), var(--category-image) center/cover;
    color: #fff
}

.product-category-archive__hero nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px
}

.product-category-archive__hero a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none
}

.product-category-archive__hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: var(--font-h2);
    font-weight: 500
}

.product-category-archive__hero p {
    max-width: 58ch;
    margin: 0;
    color: rgba(255, 255, 255, .86)
}

.product-category-archive__body {
    padding-top: 80px;
    padding-bottom: 110px
}

.product-category-archive .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.product-category-archive .product-card h2 {
    margin: 14px 0 0;
    font-size: var(--font-h5);
    font-weight: 500
}

.product-category-archive .product-card h2 a {
    aspect-ratio: auto;
    display: inline;
    background: none;
    color: #111;
    text-decoration: none
}

@media(max-width:1000px) {
    .product-category-archive .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:768px) {
    .product-category-archive {
        padding-top: 72px
    }

    .product-category-archive__hero {
        min-height: 300px;
        padding: 48px 0
    }

    .product-category-archive__body {
        padding-top: 56px
    }

    .product-category-archive .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

/* Product browse is a free-mode Swiper. Its scrollbar is also the visible control. */
.product-browse__track.swiper {
    display: block;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    cursor: grab
}

.product-browse__track.swiper:active {
    cursor: grabbing
}

.product-browse__track .product-browse__card.swiper-slide {
    width: clamp(260px, 19.5vw, 360px)
}

.product-trackbar {
    height: 5px;
    cursor: pointer;
    touch-action: none
}

.product-trackbar .swiper-scrollbar-drag {
    display: block;
    height: 100%;
    border-radius: 0;
    background: #3d7a5e;
    cursor: grab
}

.product-trackbar .swiper-scrollbar-drag:active {
    cursor: grabbing
}

.product-trackbar:focus-visible {
    outline: 2px solid var(--button-green);
    outline-offset: 6px
}

body.tax-product_category .xyl-header:not(.is-scrolled) {
    background: #fff
}

body.tax-product_category .xyl-header:not(.is-scrolled) .xyl-nav a {
    color: var(--button-green)
}

@media(max-width:1180px) {
    .product-browse__track .product-browse__card.swiper-slide {
        width: clamp(250px, 34vw, 340px)
    }
}
