.products-page {
    background: #ffffff;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

/* Hero headline — same LCD board photo as Services */
.products-page > .page-header--hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(120px, 16vh, 180px);
    padding: 1.5rem 2rem;
    text-align: center;
    background: #0a0d12 url('/images/services-hero.png') center center / cover no-repeat;
    overflow: hidden;
}

.products-page > .page-header--hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.52);
    z-index: 0;
}

.products-page > .page-header--hero h1,
.products-page > .page-header--hero .gold-line {
    position: relative;
    z-index: 1;
}

.products-page > .page-header--hero h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.products-page > .page-header--hero .gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.products-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 2rem 4.5rem;
    flex: 1 1 auto;
    width: 100%;
    background: #ffffff;
}

.product-row {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    padding: 2.75rem 0;
    border-bottom: 1px solid #e8e8e8;
}

/* Product photo — thin border frame like reference */
.product-row__media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #dadada;
    padding: 1.5rem 1.25rem;
    min-height: 0;
    max-width: 440px;
}

.product-row__media .product-gallery {
    width: 100%;
}

.product-row__media .product-gallery__main {
    position: relative;
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-row__media .product-gallery__slide {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: none;
    object-fit: contain;
    object-position: center;
}

.product-row__media .product-gallery__slide.is-active {
    display: block;
}

.product-row__media .product-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 1px solid #dadada;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
}

.product-row__media .product-gallery__nav--prev { left: 6px; }
.product-row__media .product-gallery__nav--next { right: 6px; }

.product-row__media .product-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-start;
}

.product-row__media .product-gallery__thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid #dadada;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.product-row__media .product-gallery__thumb.is-active {
    border-color: #c49029;
}

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

.product-row__media-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f3f3;
    border: none;
}

.product-row:first-child {
    padding-top: 0.5rem;
}

.products-catalog .product-row:last-child {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
    padding-bottom: 2.75rem;
}

.product-row__copy {
    padding: 0.25rem 0;
}

.product-row__title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    line-height: 1.2;
    color: #111319;
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}

.product-row__description {
    font-size: 1rem;
    line-height: 1.65;
    color: #30343b;
    margin: 0 0 1rem;
    max-width: 34rem;
}

.product-row__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111319;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.product-row__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid #c49029;
    border-radius: 2px;
    color: #c49029;
    background: #ffffff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.product-row__btn:hover {
    color: #111319;
    background: rgba(196, 144, 41, 0.08);
    border-color: #9a7b2e;
}

.products-empty {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    padding: 3rem 1rem;
}

.products-catalog {
    margin-bottom: 0;
}

.block-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e0e0e0;
}

.block-section:first-of-type {
    margin-top: 2.5rem;
}

.block-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.empty-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1.25rem 0;
    line-height: 1.6;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.list-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.list-item-body {
    color: black;
    font-size: 1rem;
    line-height: 1.7;
}

.list-item-body p {
    margin-bottom: 0.65rem;
    color: black;
    font-size: 1rem;
}

.list-item-body p:last-child {
    margin-bottom: 0;
    color: black;
    font-size: 1rem;
}

.pictures-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Same thin frame as product catalog — title, image, and caption inside */
.picture-block {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #dadada;
    padding: 1.5rem 1.25rem;
}

.picture-block__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
}

.picture-block__media {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    min-height: 0;
}

.picture-block__media img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    cursor: default;
}

.picture-block__placeholder {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    font-size: 0.88rem;
}

.picture-block__meta {
    margin: 0;
    padding: 0;
}

.picture-block__caption {
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.6;
    white-space: pre-wrap;
}

.picture-block__caption p:last-child {
    margin-bottom: 0;
}

.picture-block__credit {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-style: italic;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox img {
    max-width: min(92vw, 1300px);
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    cursor: zoom-out;
}

/* Safety: disable legacy product lightbox overlay if stale markup exists */
body:has(.products-page) .image-lightbox,
body:has(.products-page) #imageLightbox {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 900px) {
    .products-page > .page-header--hero {
        min-height: 120px;
        padding: 1.25rem 1rem;
    }

    .products-page > .page-header--hero h1 {
        font-size: 2rem;
    }

    .products-wrap {
        padding: 2rem 1.25rem 3rem;
    }

    .product-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .product-row__media {
        max-width: 100%;
    }

    .picture-block__title {
        font-size: 1.65rem;
    }

    .picture-block__media img {
        max-height: 360px;
    }
}
