.products-index {
    padding: clamp(30px, 3vw, 60px) 0;
}

.products-index__title {
    margin: 0 0 clamp(20px, 1.5vw, 35px);
    color: var(--site-primary);
    font-family: var(--site-font-family);
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    letter-spacing: -.045em;
    line-height: 1;
    text-align: center;
}

.product-categories {
    display: flex;
    margin: 0 0 clamp(25px, 2vw, 50px);
    padding: 4px 0 14px;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.product-category-chip {
    flex: 0 0 auto;
    padding: 13px 22px;
    border: 1px solid #ded7ca;
    border-radius: 999px;
    color: var(--site-ink);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.product-category-chip:hover,
.product-category-chip:focus-visible,
.product-category-chip.is-active {
    border-color: var(--site-primary);
    background: var(--site-primary);
    color: var(--site-white);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(14px, 2vw, 28px);
}

.product-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #ded7ca;
    border-radius: 22px;
    background: var(--site-white);
    color: var(--site-ink);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-card:hover,
.product-card:focus-visible {
    border-color: var(--site-primary);
    box-shadow: 0 18px 42px rgba(3, 40, 30, .12);
    transform: translateY(-4px);
}

.product-card__media {
    display: grid;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    place-items: center;
    background: #fff;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.035);
}

.product-card__placeholder {
    display: grid;
    width: 58%;
    aspect-ratio: 3 / 4;
    place-items: center;
    border-radius: 22px;
    background: var(--site-ink);
    box-shadow: 0 22px 36px rgba(3, 40, 30, .18);
    color: var(--site-white);
    font-family: var(--site-font-family);
    font-size: clamp(.75rem, 2vw, 1.15rem);
    font-weight: 700;
    text-align: center;
}

.product-card__body {
    display: flex;
    min-height: 190px;
    padding: clamp(15px, 2.2vw, 25px);
    flex: 1;
    flex-direction: column;
}

.product-card__category {
    margin-bottom: 12px;
    color: #68766f;
    font-size: clamp(.7rem, 1.1vw, .9rem);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.product-card__title {
    color: var(--site-primary);
    font-family: var(--site-font-family);
    font-size: clamp(1.15rem, 2.2vw, 1.85rem);
    line-height: 1.15;
}

.product-card__link {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    border: 2px solid var(--site-primary);
    border-radius: 15px;
    background: var(--site-primary);
    color: var(--site-white);
    font-size: clamp(.82rem, 1.3vw, 1rem);
    font-weight: 800;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}

.product-card:hover .product-card__link,
.product-card:focus-visible .product-card__link {
    background: transparent;
    color: var(--site-primary);
}

.products-pagination {
    display: flex;
    margin-top: clamp(30px, 3vw, 60px);
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.products-pagination__pages {
    display: flex;
    gap: 8px;
}

.products-pagination__direction,
.products-pagination__page,
.products-pagination__ellipsis {
    display: inline-grid;
    min-width: 35px;
    min-height: 35px;
    place-items: center;
    border: 1px solid #ded7ca;
    border-radius: 50%;
    color: var(--site-ink);
    font-weight: 700;
    text-decoration: none;
}

.products-pagination__ellipsis {
    border-color: transparent;
    color: #68766f;
}

.products-pagination__direction {
    width: 35px;
    padding: 0;
    border-radius: 50%;
}

.products-pagination__page:hover,
.products-pagination__page:focus-visible,
.products-pagination__page.is-active {
    border-color: var(--site-primary);
    background: var(--site-primary);
    color: var(--site-white);
}

.products-pagination .is-disabled {
    cursor: default;
    opacity: .42;
}

.products-empty {
    padding: 72px 24px;
    border-radius: 22px;
    background: #f5f0e7;
    color: #68766f;
    font-size: 1.15rem;
    text-align: center;
}

.products-empty p {
    margin: 0;
}

.product-detail {
    overflow: hidden;
}

.product-detail__summary {
    display: grid;
    padding-top: clamp(30px, 3vw, 60px);
    padding-bottom: clamp(30px, 3vw, 60px);
    gap: clamp(42px, 7vw, 96px);
}

.product-gallery {
    display: grid;
    min-width: 0;
    aspect-ratio: 10 / 11;
    padding: clamp(16px, 2.2vw, 28px);
    grid-template-rows: minmax(0, 1fr) auto;
    border: 2px solid var(--site-primary);
    border-radius: 15px;
    background: transparent;
}

.product-gallery__main {
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    place-items: center;
}

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

.product-gallery__placeholder {
    display: grid;
    width: min(58%, 330px);
    aspect-ratio: 3 / 4;
    place-items: center;
    border-radius: 28px;
    background: var(--site-ink);
    box-shadow: 0 24px 44px rgba(3, 40, 30, .16);
    color: var(--site-white);
    font-family: var(--site-font-family);
    font-size: clamp(1.2rem, 3vw, 2.1rem);
    font-weight: 700;
}

.product-gallery__controls {
    display: grid;
    min-width: 0;
    padding-top: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.product-gallery__thumbnails {
    display: flex;
    min-width: 0;
    padding: 2px;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.product-gallery__thumbnails::-webkit-scrollbar {
    display: none;
}

.product-gallery__thumbnail {
    width: clamp(64px, 7vw, 86px);
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: var(--site-white);
    cursor: pointer;
    transition: border-color .2s ease, opacity .2s ease;
}

.product-gallery__thumbnail[aria-current="true"],
.product-gallery__thumbnail:hover,
.product-gallery__thumbnail:focus-visible {
    border-color: var(--site-primary);
}

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

.product-gallery__direction {
    display: inline-grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--site-primary);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.product-gallery__direction:hover,
.product-gallery__direction:focus-visible {
    background: var(--site-primary);
    color: var(--site-white);
}

.product-gallery__direction svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.product-summary__category {
    margin: 0 0 14px;
    color: var(--site-primary);
    font-size: .83rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.product-summary h1 {
    margin: 0;
    color: var(--site-primary);
    font-family: var(--site-font-family);
    font-size: clamp(2.4rem, 3.5vw, 4.5rem);
    letter-spacing: -.045em;
    line-height: .98;
}

.product-summary__short-description {
    margin: 26px 0 0;
    color: #68766f;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.7;
}

.product-highlights {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.product-highlight {
    display: inline-flex;
    min-height: 50px;
    padding: 12px 18px;
    align-items: center;
    border-radius: 14px;
    background: #f5f0e7;
    color: var(--site-ink);
    font-weight: 800;
    gap: 7px;
}

.product-highlight__icon {
    font-size: 1.1em;
}

.product-specifications {
    margin-top: 30px;
    margin-bottom: 0;
    padding: 25px 0 0;
    border-top: 1px solid #ded7ca;
}

.product-specifications__row {
    display: grid;
    padding: 11px 0;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 18px;
}

.product-specifications dt,
.product-specifications dd {
    margin: 0;
}

.product-specifications dt {
    color: var(--site-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.product-specifications dd span {
    display: inline-block;
    padding: 7px 11px;
    background: var(--site-primary);
    color: var(--site-white);
    font-weight: 700;
}

.product-summary__cta {
    display: inline-flex;
    margin-top: 30px;
    padding: 16px 24px;
    align-items: center;
    border-radius: 999px;
    background: var(--site-primary);
    color: var(--site-white);
    font-weight: 800;
    gap: 12px;
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
}

.product-summary__cta:hover,
.product-summary__cta:focus-visible {
    box-shadow: 0 14px 28px rgba(242, 106, 33, .28);
    transform: translateY(-2px);
}

.product-description {
    padding: clamp(30px, 3vw, 65px) 0;
    background: #fff;
}

.product-description__content {
    width: min(var(--site-max-width), calc(100% - 80px));
    padding-block: clamp(24px, 3vw, 48px);
    padding-inline-end: clamp(24px, 3vw, 48px);
    padding-inline-start: calc(clamp(16px, 2.2vw, 28px) + 56px);
    border: 1px solid var(--site-primary);
    border-radius: clamp(14px, 2vw, 24px);
    color: var(--site-ink);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.8;
}

.product-description__content > :first-child {
    margin-top: 0;
}

.product-description__content > :last-child {
    margin-bottom: 0;
}

.product-recipes-suggest {
    padding-top: clamp(30px, 3vw, 65px);
    padding-bottom: clamp(30px, 3vw, 65px);
}

.product-recipes-suggest > h2 {
    margin: 0 0 clamp(20px, 2vw, 35px);
    color: var(--site-primary);
    font-family: var(--site-font-family);
    font-size: clamp(2.2rem, 3.2vw, 4.2rem);
    letter-spacing: -.045em;
    line-height: 1;
}

@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .product-categories {
        justify-content: center;
    }

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

    .product-detail__summary {
        grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
        align-items: start;
    }

}

@media (max-width: 575px) {
    .product-category-chip {
        padding: 10px 16px;
        font-size: .82rem;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-card__body {
        min-height: 140px;
        padding: 14px;
    }

    .products-pagination {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .products-pagination__pages {
        min-width: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-gallery {
        aspect-ratio: 1 / 1.08;
        padding: 12px;
    }

    .product-gallery__controls {
        padding-top: 10px;
        gap: 5px;
    }

    .product-gallery__thumbnail {
        width: 60px;
    }

    .product-description__content {
        width: calc(100% - 36px);
        padding: 22px 18px;
    }

    .product-description__content img {
        width: 100%;
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card__media img,
    .product-category-chip,
    .product-gallery__direction,
    .product-gallery__thumbnail {
        transition: none;
    }

    .product-gallery__thumbnails {
        scroll-behavior: auto;
    }
}
