.product-page .site-header {
    height: 76px;
}

.page-heading {
    padding: 88px 24px 72px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9f6 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
}

.page-heading-inner {
    max-width: 720px;
    margin: 0 auto;
}

.page-heading h1 {
    margin-bottom: 12px;
    color: #171b15;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.2;
}

.page-heading-inner > p:last-child {
    color: var(--muted);
    font-size: 18px;
}

.catalog-section {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    padding: 88px 0 108px;
}

.catalog-head {
    margin-bottom: 42px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
}

.catalog-head h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.2;
}

.product-filters {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.product-filters button {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 0 12px;
    color: #4f554b;
    border: 0;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
    transition: color 180ms ease;
}

.product-filters button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.product-filters button:hover,
.product-filters button.active {
    color: var(--green-dark);
}

.product-filters button.active::after {
    transform: scaleX(1);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-card {
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--white);
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.catalog-card-wide {
    grid-column: span 2;
}

.catalog-grid.filtered .catalog-card-wide {
    grid-column: auto;
}

.catalog-card.is-hidden {
    display: none;
}

.catalog-card:hover,
.catalog-card:focus-within {
    border-color: #b7c3ad;
    box-shadow: 0 18px 46px rgba(30, 39, 24, 0.08);
    transform: translateY(-3px);
}

.catalog-card a {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.catalog-image {
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.catalog-card:hover .catalog-image img,
.catalog-card:focus-within .catalog-image img {
    transform: scale(1.035);
}

.catalog-copy {
    position: relative;
    min-height: 122px;
    padding: 22px 24px 25px;
    border-top: 1px solid #eceee9;
}

.catalog-copy p {
    margin-bottom: 3px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.catalog-copy h3 {
    padding-right: 86px;
    font-size: 21px;
    font-weight: 600;
}

.catalog-copy span {
    position: absolute;
    right: 24px;
    bottom: 27px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #737a6e;
    font-size: 13px;
}

.catalog-copy b {
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 400;
    transition: transform 180ms ease;
}

.catalog-card:hover .catalog-copy b,
.catalog-card:focus-within .catalog-copy b {
    transform: translateX(4px);
}

.empty-state {
    padding: 70px 20px;
    color: var(--muted);
    text-align: center;
    border: 1px solid var(--line);
}

.product-contact {
    padding: 70px max(24px, calc((100% - var(--max-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    color: var(--white);
    background: #20251d;
}

.product-contact .eyebrow {
    color: #96c866;
}

.product-contact h2 {
    margin-bottom: 9px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.25;
}

.product-contact p:last-child {
    color: #adb5a9;
}

.product-contact > a {
    flex: 0 0 auto;
    min-width: 150px;
    height: 50px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    border: 1px solid #718a5a;
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.product-contact > a:hover {
    color: #172112;
    border-color: #9bca70;
    background: #9bca70;
}

@media (max-width: 960px) {
    .catalog-head {
        align-items: start;
        flex-direction: column;
    }

    .product-filters {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .product-page .site-header {
        height: 68px;
    }

    .page-heading {
        padding: 72px 16px 58px;
    }

    .catalog-section {
        width: min(calc(100% - 32px), var(--max-width));
        padding: 66px 0 80px;
    }

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

    .catalog-card-wide {
        grid-column: span 2;
    }

    .catalog-grid.filtered .catalog-card-wide {
        grid-column: auto;
    }

    .product-contact {
        padding: 60px 24px;
    }
}

@media (max-width: 560px) {
    .page-heading {
        padding-top: 72px;
        padding-bottom: 58px;
    }

    .page-heading h1 {
        margin-bottom: 10px;
    }

    .page-heading-inner > p:last-child {
        font-size: 16px;
    }

    .catalog-section {
        padding-top: 54px;
        padding-bottom: 64px;
    }

    .catalog-head {
        margin-bottom: 30px;
        gap: 24px;
    }

    .product-filters {
        gap: 24px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .catalog-card-wide,
    .catalog-grid.filtered .catalog-card-wide {
        grid-column: auto;
    }

    .catalog-image {
        height: 285px;
    }

    .catalog-copy {
        min-height: 112px;
        padding: 20px;
    }

    .catalog-copy span {
        right: 20px;
        bottom: 24px;
    }

    .product-contact {
        padding: 52px 16px;
        align-items: start;
        flex-direction: column;
        gap: 28px;
    }
}
