body.product-page {
    background: var(--color-smoke);
    color: var(--color-text);
}

.product-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 140px 20px 90px;
    background: linear-gradient(135deg, var(--color-charcoal-900), var(--color-charcoal));
    overflow: hidden;
}

.product-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
    transition: transform 0.6s ease;
}

.product-hero:hover .product-hero__media {
    transform: scale(1.02);
}

.product-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(91, 127, 105, 0.28), transparent 65%),
                linear-gradient(180deg, rgba(22, 31, 35, 0.75), rgba(22, 31, 35, 0.3));
    pointer-events: none;
}

.product-hero__content {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    color: #fefefe;
}

.product-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.product-hero__back:visited,
.product-hero__back:hover,
.product-hero__back:focus {
    color: #fff;
}

.product-hero__back:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    opacity: 0.95;
}

.product-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 54px);
}

.product-hero__meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.product-hero__meta li {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.product-section {
    padding: 80px 20px;
}

.product-section--summary {
    background: #fdfdfd;
}

.product-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
}

.product-summary__body > h2 {
    margin: 0 0 20px;
    font-size: clamp(26px, 3vw, 34px);
    color: var(--color-slate);
}

.product-summary__body {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    line-height: 1.7;
    color: var(--color-muted);
}

.product-summary__body p {
    margin-top: 0;
}

.product-summary__body p + p {
    margin-top: 16px;
}

.product-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-aside__card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-aside__card h3 {
    margin: 0;
    color: var(--color-slate);
}

.product-aside__card a {
    color: var(--color-accent);
    font-weight: 600;
}

.product-section--gallery {
    background: linear-gradient(180deg, #eef0f1 0%, #f9fafa 100%);
}

.product-gallery {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.product-gallery__item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #fff;
}

.product-gallery__button {
    background: none;
    border: none;
    padding: 0;
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.product-gallery__button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-section--cta {
    margin-top: -40px;
}

.product-section--cta .cta-card {
    margin-top: 0;
}

.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 28, 0.82);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
}

.lightbox__content {
    position: relative;
    max-width: min(90vw, 900px);
    max-height: min(86vh, 720px);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #fefefe;
}

.lightbox__content img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    background: #111;
}

.lightbox__caption,
[data-lightbox-caption] {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
}

.lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.lightbox__close:hover {
    background: rgba(0, 0, 0, 0.65);
}

.lightbox__controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox__nav {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.lightbox__nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

.lightbox__nav--prev {
    margin-left: -60px;
}

.lightbox__nav--next {
    margin-right: -60px;
}

@media (max-width: 960px) {
    .product-hero {
        min-height: 50vh;
        padding-bottom: 70px;
    }

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

    .product-aside {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .product-aside__card {
        flex: 1 1 220px;
    }
}

@media (max-width: 640px) {
    .product-hero {
        padding: 110px 20px 60px;
    }

    .product-hero__meta {
        gap: 10px;
    }

    .product-section {
        padding: 60px 20px;
    }

    .product-aside {
        flex-direction: column;
    }

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

    .product-gallery__item {
        border-radius: 0;
    }

    .lightbox__content {
        max-width: 92vw;
        max-height: 80vh;
    }

    .lightbox__content img {
        max-height: 60vh;
    }

    .lightbox__close {
        top: -44px;
    }

    .lightbox__nav--prev {
        margin-left: -30px;
    }

    .lightbox__nav--next {
        margin-right: -30px;
    }
}
