.product-detail-main {
    padding-top: 118px;
    overflow: hidden;
    background: var(--xz-white);
}

.product-detail-main h1,
.product-detail-main h2,
.product-detail-main h3,
.product-detail-main p,
.product-detail-main figure,
.product-detail-main dl,
.product-detail-main dd {
    margin-top: 0;
}

.product-detail-main figure {
    margin-left: 0;
    margin-right: 0;
}

.product-detail-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--xz-red);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.product-detail-eyebrow::before {
    content: "";
    width: 32px;
    height: 3px;
    background: currentColor;
}

.product-detail-hero {
    padding: 58px 0 76px;
    background: var(--xz-white);
}

.product-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
    gap: clamp(42px, 5vw, 76px);
    align-items: start;
}

.product-gallery__main {
    aspect-ratio: 4 / 3;
    margin: 0 0 14px;
    overflow: hidden;
    background: var(--xz-surface-soft);
    border: 1px solid var(--xz-line);
}

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

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

.product-gallery__thumbs button {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 0;
    background: var(--xz-surface-soft);
    cursor: pointer;
}

.product-gallery__thumbs button.is-active {
    border-color: var(--xz-red);
}

.product-gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 28px;
    color: var(--xz-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

.product-breadcrumb a {
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: var(--xz-red);
}

.product-summary__category {
    margin-bottom: 13px;
    color: var(--xz-red);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.product-summary h1 {
    margin-bottom: 21px;
    color: var(--xz-navy);
    font-family: var(--xz-font-display);
    font-size: var(--xz-type-section);
    font-weight: 800;
    line-height: 1.12;
}

.product-summary__description {
    margin-bottom: 26px;
    color: var(--xz-steel);
    font-size: 15px;
    line-height: 1.78;
}

.product-summary__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 28px;
    padding: 18px 0;
    border-top: 1px solid var(--xz-line);
    border-bottom: 1px solid var(--xz-line);
}

.product-summary__facts div {
    padding: 0 16px;
    border-right: 1px solid var(--xz-line);
}

.product-summary__facts div:first-child {
    padding-left: 0;
}

.product-summary__facts div:last-child {
    padding-right: 0;
    border-right: 0;
}

.product-summary__facts dt {
    margin-bottom: 7px;
    color: var(--xz-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.product-summary__facts dd {
    margin-bottom: 0;
    color: var(--xz-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.product-summary__block {
    margin-bottom: 24px;
}

.product-summary__block h2 {
    margin-bottom: 12px;
    color: var(--xz-navy);
    font-family: var(--xz-font-display);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.product-summary__block ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-summary__block li {
    position: relative;
    padding-left: 18px;
    color: var(--xz-steel);
    font-size: 13px;
    line-height: 1.55;
}

.product-summary__block li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--xz-red);
}

.product-summary__applications > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-summary__applications span,
.product-summary__applications a {
    padding: 8px 10px;
    border: 1px solid var(--xz-line);
    background: var(--xz-surface);
    color: var(--xz-steel);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.product-summary__applications a {
    border-color: var(--xz-red);
    color: var(--xz-red);
}

.product-summary__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 30px;
}

.product-summary__actions .xz-button svg {
    width: 18px;
    height: 18px;
}

.product-information {
    padding: 82px 0 88px;
    background: var(--xz-surface-soft);
    border-top: 1px solid var(--xz-line);
    border-bottom: 1px solid var(--xz-line);
}

.product-information__head {
    margin-bottom: 30px;
}

.product-information__head h2,
.related-products__head h2 {
    margin-bottom: 0;
    color: var(--xz-navy);
    font-family: var(--xz-font-display);
    font-size: var(--xz-type-section);
    font-weight: 800;
    line-height: 1.15;
}

.product-tabs__list {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--xz-line);
    scrollbar-width: thin;
}

.product-tabs__list button {
    flex: 0 0 auto;
    min-height: 54px;
    padding: 0 20px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--xz-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.product-tabs__list button:hover,
.product-tabs__list button.is-active {
    border-bottom-color: var(--xz-red);
    color: var(--xz-red);
}

.product-tabs__panel {
    padding-top: 42px;
}

.product-tabs__panel[hidden] {
    display: none;
}

.product-tabs__panel h3 {
    color: var(--xz-navy);
    font-family: var(--xz-font-display);
    font-weight: 800;
}

.product-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(42px, 6vw, 90px);
    align-items: center;
}

.product-overview-grid h3 {
    margin-bottom: 18px;
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.2;
}

.product-overview-grid p,
.product-specifications__intro p {
    color: var(--xz-steel);
    font-size: 15px;
    line-height: 1.8;
}

.product-overview-grid p:last-child {
    margin-bottom: 0;
}

.product-overview-description {
    max-width: 960px;
    margin-top: 42px;
    padding-top: 34px;
    border-top: 1px solid var(--xz-line);
}

.product-overview-description h3 {
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 1.25;
}

.product-overview-description p {
    margin-bottom: 16px;
    color: var(--xz-steel);
    font-size: 15px;
    line-height: 1.8;
}

.product-overview-description p:last-child {
    margin-bottom: 0;
}

.product-overview-grid figure {
    aspect-ratio: 16 / 10;
    margin-bottom: 0;
    overflow: hidden;
}

.product-overview-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-specifications__intro {
    max-width: 760px;
    margin-bottom: 26px;
}

.product-specifications__intro h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.product-specifications__intro p {
    margin-bottom: 0;
}

.product-specifications__table-wrap {
    overflow-x: auto;
    background: var(--xz-white);
    border: 1px solid var(--xz-line);
}

.product-specifications table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.product-specifications th,
.product-specifications td {
    padding: 17px 18px;
    border-right: 1px solid var(--xz-line);
    border-bottom: 1px solid var(--xz-line);
    color: var(--xz-steel);
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.product-specifications thead th {
    background: var(--xz-navy);
    color: var(--xz-white);
    font-weight: 800;
}

.product-specifications tbody th {
    background: #eef1f5;
    color: var(--xz-navy);
    font-weight: 800;
}

.product-specifications tr > *:last-child {
    border-right: 0;
}

.product-specifications tbody tr:last-child > * {
    border-bottom: 0;
}

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

.product-workflow article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    padding: 24px 0;
    border-top: 1px solid var(--xz-line);
}

.product-workflow article > span {
    color: var(--xz-red);
    font-family: var(--xz-font-display);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.product-workflow h3 {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.3;
}

.product-workflow p {
    margin-bottom: 0;
    color: var(--xz-steel);
    font-size: 13px;
    line-height: 1.65;
}

.product-faq {
    border-top: 1px solid var(--xz-line);
}

.product-faq details {
    border-bottom: 1px solid var(--xz-line);
}

.product-faq summary {
    position: relative;
    padding: 22px 48px 22px 0;
    color: var(--xz-navy);
    font-family: var(--xz-font-display);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.product-faq summary::-webkit-details-marker {
    display: none;
}

.product-faq summary::before,
.product-faq summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 16px;
    height: 2px;
    background: var(--xz-red);
    transform: translateY(-50%);
}

.product-faq summary::after {
    transform: translateY(-50%) rotate(90deg);
    transition: transform 0.2s ease;
}

.product-faq details[open] summary::after {
    transform: translateY(-50%) rotate(0deg);
}

.product-faq details p {
    max-width: 980px;
    margin: -2px 0 22px;
    color: var(--xz-steel);
    font-size: 14px;
    line-height: 1.75;
}

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

.finished-products-grid figure {
    margin-bottom: 0;
    background: var(--xz-white);
    border: 1px solid var(--xz-line);
}

.finished-products-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.finished-products-grid figcaption {
    padding: 16px;
    color: var(--xz-navy);
    font-family: var(--xz-font-display);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.related-products {
    padding: 82px 0 90px;
    background: var(--xz-white);
}

.related-products__head {
    margin-bottom: 34px;
    text-align: center;
}

.related-products__head .product-detail-eyebrow {
    justify-content: center;
}

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

.related-products__grid a {
    display: block;
    height: 100%;
    padding-bottom: 20px;
    border: 1px solid var(--xz-line);
    background: var(--xz-white);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.related-products__grid article:hover a,
.related-products__grid a:focus-visible {
    border-color: rgba(216, 65, 32, 0.42);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
    transform: translateY(-3px);
}

.related-products__grid figure {
    position: relative;
    aspect-ratio: 4 / 3;
    margin-bottom: 17px;
    overflow: hidden;
    background: var(--xz-surface-soft);
    border-bottom: 1px solid var(--xz-line);
}

.related-products__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-products__grid img.related-products__image--zoom {
    transform: scale(1.18);
}

.related-products__grid article:hover img {
    transform: scale(1.035);
}

.related-products__grid article:hover img.related-products__image--zoom {
    transform: scale(1.23);
}

.related-products__grid figure span {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 9px 12px;
    background: var(--xz-red);
    color: var(--xz-white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.related-products__grid h3 {
    margin-bottom: 0;
    padding: 0 14px;
    color: var(--xz-navy);
    font-family: var(--xz-font-display);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 1024px) {
    .product-detail-hero__grid {
        grid-template-columns: 1fr;
    }

    .product-summary {
        max-width: 780px;
    }

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

@media (max-width: 860px) {
    .product-detail-main {
        padding-top: 88px;
    }

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

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

@media (max-width: 640px) {
    .product-detail-main {
        padding-top: 72px;
    }

    .product-detail-hero,
    .product-information,
    .related-products {
        padding-top: 54px;
        padding-bottom: 58px;
    }

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

    .product-gallery__thumbs button:last-child {
        display: none;
    }

    .product-summary__facts {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .product-summary__facts div,
    .product-summary__facts div:first-child,
    .product-summary__facts div:last-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 13px 0;
        border-right: 0;
        border-bottom: 1px solid var(--xz-line);
    }

    .product-summary__facts div:last-child {
        border-bottom: 0;
    }

    .product-summary__block ul,
    .product-workflow,
    .finished-products-grid,
    .related-products__grid {
        grid-template-columns: 1fr;
    }

    .product-summary__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .product-summary__secondary {
        text-align: center;
    }

    .product-tabs__list button {
        padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-products__grid img {
        transition: none;
    }
}
