/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.products-hero {
    display: grid;
    place-items: center;
    padding: 80px 24px;
    color: #fff;
    background: #0a0a09;
    text-align: center;
}

.products-hero__inner {
    display: grid;
    justify-items: center;
}

.products-hero__inner > span {
    margin-bottom: 22px;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.products-hero h1 {
    margin: 0;
    font-size: clamp(26px, 1vw, 30px);
    font-weight: 520;
    letter-spacing: -.08em;
    line-height: .8;
}

.products-hero p {
    max-width: 620px;
    margin: 36px 0 0;
    color: rgb(255 255 255 / 60%);
    font-size: 14px;
    line-height: 1.75;
}

/*
|--------------------------------------------------------------------------
| Page
|--------------------------------------------------------------------------
*/

.products-page {

    color: #191917;

}

.products-type-navigation,
.products-listing {
    width: min(calc(100% - 48px), 1660px);
    margin-inline: auto;
}

.products-type-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgb(20 20 18 / 23%);
    border-bottom: 1px solid rgb(20 20 18 / 23%);
}

.products-type-navigation a {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    min-height: 92px;
    padding: 20px 28px;
    color: rgb(20 20 18 / 48%);
    text-decoration: none;
    transition:
        color 200ms ease,
        background-color 200ms ease;
}

.products-type-navigation a:first-child {
    border-right: 1px solid rgb(20 20 18 / 23%);
}

.products-type-navigation a::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: -1px;
    left: 28px;
    height: 2px;
    background: #191917;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms ease;
}

.products-type-navigation a.is-active {
    color: #191917;
}

.products-type-navigation a.is-active::after {
    transform: scaleX(1);
}

.products-type-navigation a:hover {
    color: #191917;
    background: rgb(20 20 18 / 2%);
}

.products-type-navigation span {
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 570;
    letter-spacing: -.04em;
}

.products-type-navigation small {
    font-size: 10px;
}

/*
|--------------------------------------------------------------------------
| Filters
|--------------------------------------------------------------------------
*/

.products-listing {
    margin-top: clamp(15px, 1vw, 30px);
}

.products-listing__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(20 20 18 / 25%);
}

.products-listing__header > div {
    display: grid;
    gap: 7px;
}

.products-listing__header span {
    color: rgb(20 20 18 / 46%);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.products-listing__header strong {
    font-size: 13px;
    font-weight: 620;
}

.products-filter-toggle {
    appearance: none;
    display: none;
    align-items: center;
    gap: 9px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.products-filter-toggle svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.products-filters {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        220px
        auto
        240px
        auto
        auto;
    gap: 18px;
    align-items: end;
    padding: 22px 0;
    border-bottom: 1px solid rgb(20 20 18 / 14%);
}

.products-filter-search {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border-bottom: 1px solid rgb(20 20 18 / 32%);
}

.products-filter-search svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.products-filter-search input {
    width: 100%;
    padding: 10px 0;
    color: inherit;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 12px;
}

.products-filter-field {
    display: grid;
    gap: 6px;
}

.products-filter-field label {
    color: rgb(20 20 18 / 44%);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.products-filter-field select {
    appearance: none;
    min-height: 44px;
    padding: 8px 27px 8px 0;
    color: inherit;
    background:
        linear-gradient(
            45deg,
            transparent 50%,
            currentColor 50%
        )
        calc(100% - 9px)
        19px / 5px 5px
        no-repeat,
        linear-gradient(
            135deg,
            currentColor 50%,
            transparent 50%
        )
        calc(100% - 5px)
        19px / 5px 5px
        no-repeat;
    border: 0;
    border-bottom: 1px solid rgb(20 20 18 / 32%);
    border-radius: 0;
    outline: 0;
    font: inherit;
    font-size: 11px;
}

.products-filter-stock {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    font-size: 10px;
    cursor: pointer;
}

.products-filter-stock input {
    position: absolute;
    opacity: 0;
}

.products-filter-stock > span {
    position: relative;
    width: 34px;
    height: 19px;
    background: #d7d5cf;
    border-radius: 999px;
    transition: background-color 180ms ease;
}

.products-filter-stock > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    background: #fff;
    border-radius: 50%;
    transition: transform 180ms ease;
}

.products-filter-stock input:checked + span {
    background: #191917;
}

.products-filter-stock input:checked + span::after {
    transform: translateX(15px);
}

.products-filter-submit {
    appearance: none;
    min-height: 44px;
    padding: 0 18px;
    color: #fff;
    background: #191917;
    border: 1px solid #191917;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.products-filter-clear {
    display: grid;
    place-items: center;
    min-height: 44px;
    color: rgb(20 20 18 / 58%);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| Product grid
|--------------------------------------------------------------------------
*/

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap:
        clamp(65px, 8vw, 120px)
        clamp(20px, 2.5vw, 40px);
}

.product-card {
    min-width: 0;
}

.product-card__media {
    position: relative;
    overflow: hidden;

    aspect-ratio: 4 / 5;
}

.product-card__images,
.product-card__images picture {
    position: absolute;
    inset: 0;
}

.product-card__images picture {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 350ms ease,
        visibility 350ms ease;
}

.product-card__images picture.is-active {
    visibility: visible;
    opacity: 1;
}

.product-card__images img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 7%;
    object-fit: contain;
    transition: transform 600ms cubic-bezier(.2, .72, .2, 1);
}

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

.product-card__badges {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.product-card__badges span {
    padding: 7px 9px;
    color: #191917;
    background: rgb(255 255 255 / 92%);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-card__badges .is-sale {
    color: #fff;
    background: var(--color-primary);
}

.product-card__badges .is-stock {
    color: #fff;
    background: #191917;
}

.product-card__image-tabs {
    position: absolute;
    z-index: 4;
    right: 18px;
    bottom: 17px;
    left: 18px;
    display: flex;
    gap: 7px;
}

.product-card__image-tabs button {
    appearance: none;
    flex: 1;
    height: 16px;
    padding: 7px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.product-card__image-tabs button span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgb(20 20 18 / 18%);
    transition:
        height 180ms ease,
        background-color 180ms ease;
}

.product-card__image-tabs button:hover span,
.product-card__image-tabs button.is-active span {
    height: 3px;
    background: #191917;
}

.product-card__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: rgb(20 20 18 / 26%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.product-card__content {
    padding-top: 22px;
}

.product-card__category {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgb(20 20 18 / 17%);
}

.product-card__category span,
.product-card__category small {
    color: rgb(20 20 18 / 47%);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.product-card h2 {
    margin: 24px 0 0;
    font-size: clamp(26px, 2.4vw, 40px);
    font-weight: 560;
    letter-spacing: -.05em;
    line-height: 1.05;
}

.product-card__content > p {
    display: -webkit-box;
    margin: 18px 0 0;
    overflow: hidden;
    color: rgb(20 20 18 / 58%);
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgb(20 20 18 / 14%);
}

.product-card__price {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.product-card__price del {
    color: rgb(20 20 18 / 35%);
    font-size: 11px;
}

.product-card__price strong {
    font-size: 17px;
    font-weight: 680;
}

.product-card__availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(20 20 18 / 48%);
    font-size: 9px;
}

.product-card__availability > span {
    width: 6px;
    height: 6px;
    background: #a9a8a2;
    border-radius: 50%;
}

.product-card__availability > span.is-available {
    background: #4d8258;
}

.product-card__detail {
    appearance: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 24px;
    padding: 15px 0;
    color: #191917;
    background: transparent;
    border: 0;
    border-top: 1px solid rgb(20 20 18 / 18%);
    font: inherit;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
cursor: pointer;
}

.product-card__detail svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

/*
|--------------------------------------------------------------------------
| Single product showcase
|--------------------------------------------------------------------------
*/

.products-page--showcase .products-grid {
    grid-template-columns: 1fr;
}

.products-page--showcase .product-card {
    display: grid;
    grid-template-columns:
        minmax(480px, 1.12fr)
        minmax(400px, .88fr);
    min-height: 720px;

}

.products-page--showcase .product-card__media {
    min-height: 720px;
    aspect-ratio: auto;
}

.products-page--showcase
.product-card__images img {
    padding: 6%;
}

.products-page--showcase .product-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 6vw, 95px);
}

.products-page--showcase .product-card h2 {
    font-size: clamp(22px, 1vw, 36px);
    line-height: .9;
}

.products-page--showcase
.product-card__content > p {
    max-width: 600px;
    margin-top: 30px;
    font-size: 15px;
    -webkit-line-clamp: 5;
}

.products-page--showcase .product-card__footer {
    margin-top: 48px;
}

.products-page--showcase .product-card__price strong {
    font-size: 24px;
}

/*
|--------------------------------------------------------------------------
| Empty
|--------------------------------------------------------------------------
*/

.products-empty {
    display: grid;
    justify-items: center;
    padding: 110px 24px;
    text-align: center;
}

.products-empty > span {
    width: 50px;
    height: 1px;
    margin-bottom: 25px;
    background: #191917;
}

.products-empty strong {
    margin-bottom: 8px;
    font-size: 18px;
}

.products-empty p {
    margin: 0 0 24px;
    color: rgb(20 20 18 / 53%);
    font-size: 12px;
}

.products-empty a {
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    text-underline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Benefits
|--------------------------------------------------------------------------
*/

.products-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    color: #fff;
    background: #11110f;
}

.products-benefits article {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 25px;
    min-height: 340px;
    padding: clamp(35px, 5vw, 75px);
    border-right: 1px solid rgb(255 255 255 / 15%);
}

.products-benefits article:last-child {
    border-right: 0;
}

.products-benefits__number {
    position: absolute;
    top: 25px;
    right: 28px;
    color: rgb(255 255 255 / 28%);
    font-size: 9px;
    font-weight: 700;
}

.products-benefits article > svg {
    width: 38px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.3;
}

.products-benefits article > div {
    align-self: end;
}

.products-benefits strong {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(22px, 2vw, 31px);
    font-weight: 540;
    letter-spacing: -.045em;
}

.products-benefits p {
    max-width: 410px;
    margin: 0;
    color: rgb(255 255 255 / 53%);
    font-size: 12px;
    line-height: 1.75;
}

.products-benefits a {
    display: inline-block;
    margin-top: 12px;
    color: #fff;
    font-size: 11px;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 4px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1150px) {
    .products-filters {
        grid-template-columns:
            1fr 200px 220px;
    }

    .products-filter-stock,
    .products-filter-submit,
    .products-filter-clear {
        justify-self: start;
    }

    .products-page--showcase .product-card {
        grid-template-columns: 1fr;
    }

    .products-page--showcase .product-card__media {
        min-height: auto;
        aspect-ratio: 16 / 11;
    }

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

@media (max-width: 800px) {
    .products-benefits {
        grid-template-columns: 1fr;
    }

    .products-benefits article {
        min-height: 280px;
        border-right: 0;
        border-bottom: 1px solid rgb(255 255 255 / 15%);
    }
}

@media (max-width: 700px) {
    .products-type-navigation,
    .products-listing {
        width: calc(100% - 28px);
    }

    .products-type-navigation {
        grid-template-columns: 1fr;
    }

    .products-type-navigation a:first-child {
        border-right: 0;
        border-bottom: 1px solid rgb(20 20 18 / 18%);
    }

    .products-type-navigation a {
        min-height: 72px;
        padding: 16px 4px;
    }

    .products-type-navigation a::after {
        right: 4px;
        left: 4px;
    }

    .products-filter-toggle {
        display: inline-flex;
    }

    .products-filters {
        display: none;
        grid-template-columns: 1fr;
        padding: 22px 0;
    }

    .products-filters.is-open {
        display: grid;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-page--showcase .product-card {
        margin-inline: -14px;
    }

    .products-page--showcase .product-card__media {
        aspect-ratio: 1 / 1.18;
    }

    .products-page--showcase .product-card__content {
        padding: 38px 20px;
    }

    .products-page--showcase .product-card h2 {
        font-size: clamp(18px, 1vw, 26px);
    }

    .product-card__media {
        aspect-ratio: 1 / 1.12;
    }

    .product-card__image-tabs {
        right: 12px;
        left: 12px;
    }
}