:root {
    --product-line: rgba(26, 22, 18, .14);
    --product-muted: #756b5d;
}

.product-hero {
    position: relative;
    padding: 170px 0 92px;
    background:
        linear-gradient(90deg, rgba(23, 21, 18, .9), rgba(23, 21, 18, .58)),
        url('../assets/product-hero-logo.jpg') center / cover;
    color: var(--ivory);
}

.product-hero .wrap {
    position: relative;
    z-index: 1;
}

.product-hero .eyebrow {
    color: var(--sand);
}

.product-hero h1 {
    max-width: 820px;
    margin-top: 18px;
    color: var(--ivory);
    font-size: clamp(54px, 8vw, 116px);
    line-height: .9;
}

.product-hero p {
    max-width: 620px;
    margin-top: 28px;
    color: rgba(250, 246, 238, .72);
    font-size: 18px;
    line-height: 1.7;
}

.product-hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 44px;
}

.product-hero-nav a {
    border: 1px solid rgba(250, 246, 238, .28);
    padding: 11px 15px;
    color: var(--ivory);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.product-hero-nav a:hover {
    border-color: var(--gold);
    color: var(--sand);
}

.product-category {
    padding: 100px 0;
    border-bottom: 1px solid var(--product-line);
}

.product-category:nth-of-type(odd) {
    background: var(--cream);
}

.product-category:nth-of-type(even) {
    background: var(--ivory);
}

.product-category--reverse .product-category-grid {
    direction: rtl;
}

.product-category--reverse .product-category-copy {
    direction: ltr;
}

.product-category-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(36px, 7vw, 100px);
    align-items: center;
}

.product-category-media {
    min-height: 520px;
    overflow: hidden;
    background: var(--bone);
}

.product-category-media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
    transition: transform 700ms var(--ease-out);
}

.product-category-media:hover img {
    transform: scale(1.035);
}

.product-category-copy {
    max-width: 520px;
}

.product-category-copy h2 {
    margin-top: 16px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: .94;
}

.product-category-copy p {
    margin-top: 24px;
    color: var(--product-muted);
    font-size: 16px;
    line-height: 1.8;
}

.product-category-copy .btn {
    margin-top: 32px;
}

.product-detail-hero {
    padding: 160px 0 80px;
    background: var(--cream);
}

.product-detail-hero h1 {
    max-width: 900px;
    margin-top: 18px;
    font-size: clamp(50px, 8vw, 108px);
    line-height: .9;
}

.product-detail-hero p {
    max-width: 650px;
    margin-top: 26px;
    color: var(--product-muted);
    font-size: 18px;
    line-height: 1.75;
}

.product-detail-copy {
    padding: 90px 0 52px;
}

.product-detail-copy-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 60px;
}

.product-detail-copy h2 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: .98;
}

.product-detail-copy p {
    margin-top: 18px;
    color: var(--product-muted);
    font-size: 16px;
    line-height: 1.85;
}

.product-detail-copy p:first-child {
    margin-top: 0;
}

.product-gallery-section {
    padding: 52px 0 100px;
    background: var(--ivory);
}

.product-gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.product-gallery-heading h2 {
    margin-top: 12px;
    font-size: clamp(32px, 4vw, 54px);
}

.product-gallery-subfilter {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.product-gallery-subfilter button {
    padding: 9px 16px;
    border: 1px solid var(--product-line);
    background: transparent;
    color: var(--product-muted);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 220ms var(--ease-out);
}

.product-gallery-subfilter button:hover {
    border-color: var(--gold);
    color: var(--ink);
}

.product-gallery-subfilter button.is-active {
    border-color: var(--gold);
    background: var(--gold);
    color: #fffdf8;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 105px;
    gap: 12px;
}

.product-gallery-card {
    position: relative;
    grid-column: span 4;
    grid-row: span 3;
    min-height: 0;
    overflow: hidden;
    background: var(--bone);
}

.product-gallery-card:nth-child(3n + 1) {
    grid-column: span 5;
    grid-row: span 4;
}

.product-gallery-card:nth-child(5n) {
    grid-column: span 3;
    grid-row: span 3;
}

.product-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms var(--ease-out);
}

.product-gallery-card:hover img {
    transform: scale(1.04);
}

.product-gallery-card figcaption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 9px 11px;
    background: rgba(26, 22, 18, .72);
    color: var(--ivory);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-gallery-empty {
    grid-column: 1 / -1;
    padding: 80px 20px;
    border: 1px dashed var(--product-line);
    color: var(--product-muted);
    text-align: center;
}

.interior-catalogs {
    padding: 90px 0 110px;
    background: var(--cream);
}

.interior-catalogs-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.interior-catalogs-heading h2 {
    margin-top: 12px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: .95;
}

.interior-catalogs-heading p {
    max-width: 300px;
    color: var(--product-muted);
    line-height: 1.7;
}

.interior-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.interior-catalog-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--product-line);
    background: var(--ivory);
    color: var(--ink);
    transition: transform 300ms var(--ease-out), border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.interior-catalog-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 18px 38px rgba(26, 22, 18, .12);
}

.interior-catalog-logo {
    min-height: 92px;
    align-items: center;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    line-height: .9;
    letter-spacing: .02em;
}

.interior-catalog-logo-main {
    display: inline;
}

.interior-catalog-logo-suffix {
    display: inline-block;
    margin-left: 3px;
    color: var(--gold-deep);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
    vertical-align: middle;
}

.interior-catalog-card:nth-child(3) .interior-catalog-logo-main {
    max-width: 135px;
    display: inline-block;
    line-height: .82;
}

.interior-catalog-card:nth-child(3) .interior-catalog-logo-suffix {
    margin-left: 12px;
}

.interior-catalog-logo small {
    color: var(--gold-deep);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1;
    text-transform: uppercase;
}

.interior-catalog-name {
    max-width: 180px;
    font-size: 15px;
    line-height: 1.35;
}

.interior-catalog-action {
    margin-top: 24px;
    color: var(--gold-deep);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.product-install {
    padding: 82px 0 100px;
    background: var(--ink);
    color: var(--ivory);
}

.product-install h2 {
    color: var(--ivory);
    font-size: clamp(34px, 4vw, 54px);
}

.product-install-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 60px;
}

.product-install-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 30px;
    margin-top: 30px;
}

.product-install-list li {
    padding: 15px 0;
    border-top: 1px solid rgba(250, 246, 238, .2);
    color: rgba(250, 246, 238, .72);
    list-style: none;
}

.product-install-list li::before {
    content: '0' counter(item);
    counter-increment: item;
    display: inline-block;
    width: 34px;
    color: var(--gold);
    font: 12px var(--font-mono);
}

.product-install-list {
    counter-reset: item;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.vendor-card {
    padding: 30px;
    border: 1px solid var(--product-line);
    background: var(--cream);
}

.vendor-card h3 {
    font-size: 28px;
}

.vendor-card p {
    margin-top: 14px;
    color: var(--product-muted);
    font-size: 14px;
    line-height: 1.65;
}

.vendor-card a {
    display: inline-block;
    margin-top: 24px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.product-vendor-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.product-vendor-link {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-left: 2px solid var(--gold);
    background: rgba(242, 234, 217, .65);
    color: var(--ink);
}

.product-vendor-link:hover {
    background: var(--cream);
}

.product-vendor-link strong {
    font-size: 14px;
}

.product-vendor-link span {
    color: var(--product-muted);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 800px) {
    .product-hero {
        padding-top: 125px;
    }

    .product-category {
        padding: 70px 0;
    }

    .product-category-grid,
    .product-detail-copy-grid,
    .product-install-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-category--reverse .product-category-grid {
        direction: ltr;
    }

    .product-category-media,
    .product-category-media img {
        min-height: 360px;
    }

    .product-detail-hero {
        padding-top: 120px;
    }

    .interior-catalogs {
        padding: 64px 0 76px;
    }

    .interior-catalogs-heading {
        display: block;
    }

    .interior-catalogs-heading p {
        margin-top: 18px;
    }

    .interior-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .product-gallery-card,
    .product-gallery-card:nth-child(3n + 1),
    .product-gallery-card:nth-child(5n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .product-gallery-card:nth-child(4n + 1) {
        grid-row: span 2;
    }

    .product-install-list,
    .vendor-grid {
        grid-template-columns: 1fr;
    }
}