:root {
    --pd-bg: #fff7f8;
    --pd-surface: #ffffff;
    --pd-surface-soft: #fff8f8;
    --pd-surface-alt: #fff1f3;

    --pd-text: #111827;
    --pd-text-soft: #6b7280;
    --pd-text-muted: #8b5a63;

    --pd-primary: #c1121f;
    --pd-primary-dark: #8f1020;
    --pd-primary-soft: rgba(193, 18, 31, 0.10);

    --pd-border: #edd5d9;
    --pd-border-strong: #deb7c0;

    --pd-shadow-sm: 0 14px 34px rgba(17, 24, 39, 0.05);
    --pd-shadow-md: 0 20px 52px rgba(17, 24, 39, 0.08);
    --pd-shadow-lg: 0 26px 64px rgba(193, 18, 31, 0.12);

    --pd-radius-xl: 28px;
    --pd-radius-lg: 22px;
    --pd-radius-md: 16px;
    --pd-radius-sm: 12px;
}

.product-detail-page {
    display: grid;
    gap: 28px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.78fr);
    gap: 28px;
    align-items: start;
}

.product-detail-main,
.sidebar-stack {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.product-hero,
.product-gallery-card,
.product-videos-card,
.product-pdf-accordion,
.product-detail-page .prose,
.sidebar-stack > .card,
.inquiry-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, #fffcfc 100%);
    box-shadow: var(--pd-shadow-sm);
}

.product-hero::before,
.product-gallery-card::before,
.product-videos-card::before,
.product-pdf-accordion::before,
.product-detail-page .prose::before,
.sidebar-stack > .card::before,
.inquiry-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--pd-primary-dark) 0%, var(--pd-primary) 58%, #ef4444 100%);
    z-index: 1;
}

.product-hero > *,
.product-gallery-card > *,
.product-videos-card > *,
.product-pdf-accordion > *,
.product-detail-page .prose > *,
.sidebar-stack > .card > *,
.inquiry-card > * {
    position: relative;
    z-index: 2;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    background:
        radial-gradient(circle at top left, rgba(193, 18, 31, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(143, 16, 32, 0.08), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fff8f8 52%, #fff1f3 100%);
}

.product-hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 26px;
    background:
        radial-gradient(circle at top left, rgba(193, 18, 31, 0.10), transparent 34%),
        linear-gradient(135deg, #fff8f8 0%, #fff1f3 100%);
    border-inline-end: 1px solid rgba(237, 213, 217, 0.82);
}

.product-main-image-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 740px;
    min-height: 430px;
    padding: 18px;
    border: 1px solid rgba(237, 213, 217, 0.95);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    cursor: zoom-in;
}

.product-main-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
    border-radius: 18px;
    background: #ffffff;
}

.product-hero__body {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 34px;
}

.product-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid rgba(193, 18, 31, 0.14);
    border-radius: 999px;
    background: linear-gradient(180deg, #fffdfd 0%, #fff1f3 100%);
    color: var(--pd-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-hero__eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ef4444 0%, var(--pd-primary) 100%);
    box-shadow: 0 0 0 5px rgba(193, 18, 31, 0.10);
    flex: 0 0 9px;
}

.product-hero h1 {
    margin: 0;
    color: var(--pd-text);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.product-hero__summary {
    margin: 0;
    color: var(--pd-text-soft);
    font-size: 16px;
    line-height: 1.86;
}

.product-hero__actions,
.product-pdf__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.product-detail-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(143, 16, 32, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pd-primary) 0%, #d71920 58%, var(--pd-primary-dark) 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(193, 18, 31, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.product-detail-page .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(193, 18, 31, 0.24);
    opacity: 0.98;
    filter: saturate(1.03);
}

.product-detail-page .btn.btn-light {
    background: linear-gradient(180deg, #ffffff 0%, #fff1f3 100%);
    color: var(--pd-primary);
    border-color: var(--pd-border-strong);
    box-shadow: none;
}

.section-head {
    padding: 24px 24px 0;
}

.section-head h2,
.product-detail-page .prose h2,
.sidebar-stack h3 {
    margin: 0;
    color: var(--pd-text);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.product-gallery-card .section-head h2,
.product-videos-card .section-head h2,
.product-detail-page .prose h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-gallery-card .section-head h2::before,
.product-videos-card .section-head h2::before,
.product-detail-page .prose h2::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ef4444 0%, var(--pd-primary) 100%);
    box-shadow: 0 0 0 5px rgba(193, 18, 31, 0.10);
    flex: 0 0 12px;
}

.gallery-slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 22px 24px 24px;
}

.gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, 140px);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.gallery-thumb {
    padding: 0;
    border: 1px solid var(--pd-border);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
    border-color: var(--pd-primary);
    box-shadow: 0 10px 24px rgba(193, 18, 31, 0.14);
    transform: translateY(-2px);
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 106px;
    object-fit: cover;
}

.gallery-nav {
    width: 46px;
    height: 46px;
    border: 1px solid var(--pd-border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--pd-primary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.05);
    transition: all 0.2s ease;
}

.gallery-nav:hover {
    background: var(--pd-surface-alt);
    border-color: var(--pd-primary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    padding: 22px 24px 24px;
}

.video-card {
    overflow: hidden;
    border: 1px solid var(--pd-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    border-color: var(--pd-border-strong);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.08);
}

.video-frame {
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.video-frame video,
.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-frame--fallback {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 20px;
    background: linear-gradient(135deg, #fff8f8 0%, #ffeef1 100%);
}

.accordion-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
    color: var(--pd-text);
    font-size: 18px;
    font-weight: 850;
}

.accordion-card__summary::-webkit-details-marker {
    display: none;
}

.accordion-card__summary span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.accordion-card__summary span:first-child::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ef4444 0%, var(--pd-primary) 100%);
    box-shadow: 0 0 0 5px rgba(193, 18, 31, 0.10);
    flex: 0 0 11px;
}

.accordion-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff8f8 0%, #fff1f3 100%);
    color: var(--pd-primary);
    border: 1px solid rgba(237, 213, 217, 0.92);
    font-size: 20px;
    font-weight: 900;
    transition: transform 0.2s ease;
}

details[open] .accordion-card__icon {
    transform: rotate(45deg);
}

.accordion-card__body {
    padding: 0 24px 24px;
}

.product-pdf {
    display: grid;
    gap: 18px;
}

.pdf-frame {
    width: 100%;
    min-height: 560px;
    border: 1px solid var(--pd-border);
    border-radius: 18px;
    background: #ffffff;
}

.product-detail-page .prose {
    padding: 28px;
}

.prose-block + .prose-block {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #f1d9de;
}

.product-detail-page .prose p,
.product-detail-page .prose li,
.info-list li {
    color: #4b5563;
    line-height: 1.85;
}

.sidebar-stack {
    gap: 22px;
}

@media (min-width: 1201px) {
    .sidebar-stack {
        position: sticky;
        top: 24px;
        align-self: start;
    }
}

.sidebar-stack > .card,
.inquiry-card {
    padding: 20px;
}

.sidebar-stack > .card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(237, 213, 217, 0.86);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.sidebar-stack > .card h3::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ef4444 0%, var(--pd-primary) 100%);
    box-shadow: 0 0 0 6px rgba(193, 18, 31, 0.10);
    flex: 0 0 14px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: grid;
    grid-template-columns: clamp(96px, 28%, 150px) minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid rgba(237, 213, 217, 0.92);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-list li,
.info-list li > * {
    min-width: 0;
}

.info-list strong {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--pd-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: 0;
}

.info-list strong::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-top: 4px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ef4444 0%, var(--pd-primary) 100%);
    box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.09);
}

.map-embed {
    margin-top: 14px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--pd-border);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.map-embed iframe {
    display: block;
    width: 100%;
    min-height: 240px;
    border: 0;
}

.product-form {
    display: grid;
    gap: 12px;
}

.product-form input,
.product-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--pd-border);
    border-radius: 16px;
    background: #fffdfd;
    color: var(--pd-text);
    padding: 14px 16px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-form textarea {
    min-height: 140px;
    resize: vertical;
}

.product-form input:focus,
.product-form textarea:focus {
    outline: none;
    border-color: rgba(193, 18, 31, 0.45);
    box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.10);
    background: #ffffff;
}

.product-form input::placeholder,
.product-form textarea::placeholder {
    color: #9ca3af;
}

.product-form button.btn {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(4px);
}

.product-lightbox__stage {
    display: grid;
    place-items: center;
    min-width: 0;
}

.product-lightbox__image {
    display: block;
    max-width: min(1200px, 100%);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.product-lightbox__close,
.product-lightbox__nav {
    border: 0;
    cursor: pointer;
}

.product-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
}

.product-lightbox__nav {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
}

.product-lightbox__close:hover,
.product-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1200px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-stack {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-page {
        gap: 22px;
    }

    .product-hero {
        grid-template-columns: 1fr;
    }

    .product-hero__media {
        padding: 16px;
        border-inline-end: 0;
        border-bottom: 1px solid rgba(237, 213, 217, 0.82);
    }

    .product-main-image-button {
        min-height: 280px;
        padding: 12px;
        border-radius: 22px;
    }

    .product-main-image {
        max-height: 280px;
    }

    .product-hero__body,
    .section-head,
    .gallery-slider,
    .video-grid,
    .accordion-card__body,
    .product-detail-page .prose {
        padding-left: 18px;
        padding-right: 18px;
    }

    .product-hero__body {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .gallery-slider {
        grid-template-columns: 1fr;
    }

    .gallery-nav {
        display: none;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 18px;
    }

    .sidebar-stack > .card,
    .inquiry-card {
        padding: 16px;
    }

    .sidebar-stack > .card h3 {
        font-size: 20px;
        padding-bottom: 10px;
    }

    .info-list {
        gap: 8px;
        margin-top: 12px;
    }

    .info-list li {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px;
        border-radius: 14px;
    }

    .map-embed iframe {
        min-height: 210px;
    }

    .pdf-frame {
        min-height: 360px;
    }

    .product-lightbox {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .product-lightbox__nav {
        display: none;
    }

    .product-lightbox__close {
        top: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
    }
}

html[dir="rtl"] .product-detail-page,
html[dir="rtl"] .product-detail-page .prose,
html[dir="rtl"] .info-list li,
html[dir="rtl"] .accordion-card__summary,
html[dir="rtl"] .product-form input,
html[dir="rtl"] .product-form textarea,
html[dir="rtl"] .sidebar-stack > .card h3 {
    text-align: right;
}

html[dir="rtl"] .product-lightbox__close {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    html[dir="rtl"] .product-lightbox__close {
        left: 12px;
    }
}