.product-detail-page {
    background: #fff;
}

.product-banner {
    position: relative;
    height: clamp(240px, 32vw, 420px);
    overflow: hidden;
    background: #1a1a1a;
}

.product-banner__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.product-banner::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.16) 46%, rgba(0, 0, 0, 0.08) 100%);
    content: "";
    pointer-events: none;
}

.product-detail {
    padding: 28px 0 64px;
}

.product-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: start;
}

.product-gallery__stage {
    overflow: hidden;
    background: #f3f3f1;
}

.product-gallery__stage img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.product-gallery__thumb {
    padding: 0;
    border: 1px solid transparent;
    background: #f3f3f1;
    cursor: pointer;
}

.product-gallery__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:focus-visible {
    border-color: var(--ink);
}

.product-summary__crumb {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-summary__crumb a:hover {
    color: var(--accent);
}

.product-summary h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4vw, 64px);
    font-weight: 400;
    line-height: 1;
}

.product-summary__code {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.product-summary__lead {
    max-width: 560px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.product-spec-table {
    width: 100%;
    margin-top: 28px;
    border-collapse: collapse;
}

.product-spec-table th,
.product-spec-table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 15px;
    line-height: 1.55;
}

.product-spec-table th {
    width: 34%;
    padding-right: 18px;
    color: var(--ink);
    font-weight: 700;
}

.product-spec-table td {
    color: #3d3d3d;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.product-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-meta dd {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
}

.product-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.product-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 16px 24px;
    background: #293735;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.product-inquiry:hover {
    color: #fff;
    background: #1c2826;
}

.product-inquiry--ghost {
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
}

.product-inquiry--ghost:hover {
    background: var(--ink);
    color: #fff;
}

.product-detail-tabs {
    padding: 20px 0 72px;
    background: #f6f6f4;
}

.product-detail-tabs__nav {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
}

.product-detail-tabs__nav button {
    position: relative;
    padding: 16px 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
    background: transparent;
}

.product-detail-tabs__nav button[aria-selected="true"] {
    color: var(--ink);
}

.product-detail-tabs__nav button[aria-selected="true"]::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--ink);
    content: "";
}

.product-detail-tabs__panel {
    max-width: 980px;
    padding-top: 36px;
}

.product-detail-tabs__panel h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 400;
}

.product-detail-tabs__panel > p {
    max-width: 760px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.product-spec-table--wide th {
    width: 28%;
}

.product-assurance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.product-assurance h3 {
    font-size: 20px;
    font-weight: 700;
}

.product-assurance p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.product-related {
    padding: 72px 0;
}

.product-related__heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 3vw, 52px);
    font-weight: 400;
}

.product-related__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.product-related__row .swatch-card {
    display: block;
    min-width: 0;
    color: inherit;
}

.product-related .swatch-card span,
.product-related .swatch-card small {
    display: block;
}

.product-related .swatch-card span {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
}

.product-related .swatch-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.product-related .swatch-card img {
    display: block;
    width: 100%;
    height: 280px;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform 220ms ease;
}

.product-related .swatch-card:hover img {
    transform: scale(1.03);
}

@media (max-width: 991.98px) {
    .product-banner {
        height: 280px;
    }

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

    .product-detail__layout,
    .product-assurance {
        grid-template-columns: 1fr;
    }

    .product-related .swatch-card img {
        height: 220px;
    }

    .product-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .product-banner {
        height: 220px;
    }

    .product-related__row {
        grid-template-columns: 1fr;
    }

    .product-related .swatch-card img {
        height: 240px;
    }

    .product-gallery__thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .product-spec-table th,
    .product-spec-table td {
        display: block;
        width: 100%;
    }

    .product-spec-table th {
        padding-bottom: 0;
        border-bottom: 0;
    }

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