﻿/* ═══════════════════════════════════════════════════════════════════
   PRODUCT DETAILS — PREMIUM EDITION
   Matches V3 Light System | Full RTL | Responsive
   ═══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.pd-breadcrumb {
    background: var(--c-white);
    border-bottom: 1px solid var(--c-mist);
    padding: 14px 0;
}

.pd-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    font-family: var(--f-body);
    font-size: .8rem;
    font-weight: 500;
    color: var(--c-steel);
}

    .pd-breadcrumb__list.rtl {
        flex-direction: row-reverse;
    }

    .pd-breadcrumb__list a {
        color: var(--c-blue);
        text-decoration: none;
        transition: color .2s;
    }

        .pd-breadcrumb__list a:hover {
            color: var(--c-navy);
        }

.pd-breadcrumb__sep {
    color: var(--c-mist);
    font-size: .7rem;
}

.pd-breadcrumb__list.rtl .pd-breadcrumb__sep {
    transform: scaleX(-1);
}

.pd-breadcrumb__cat {
    color: var(--c-slate);
}

.pd-breadcrumb__active {
    color: var(--c-ink);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

/* ── Page wrapper ───────────────────────────────────────────────── */
.pd-page {
    background: var(--c-snow);
    padding: 52px 0 96px;
    min-height: 70vh;
}

/* ── Reveal ─────────────────────────────────────────────────────── */
.pd--reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

    .pd--reveal.pd--visible {
        opacity: 1;
        transform: none;
    }

/* ── Layout grid ────────────────────────────────────────────────── */
.pd-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 56px;
    align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════
   IMAGE COLUMN
═══════════════════════════════════════════════════════════════════ */
.pd-image-sticky {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Figure */
.pd-figure {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--c-white);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--c-mist);
    aspect-ratio: 4/3;
    cursor: zoom-in;
    outline: none;
}

    .pd-figure:focus-visible {
        box-shadow: 0 0 0 3px rgba(0,150,255,.3);
    }

.pd-figure__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease);
}

.pd-figure:hover .pd-figure__img {
    transform: scale(1.05);
}

.pd-figure__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,30,69,.18) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s;
}

.pd-figure:hover .pd-figure__overlay {
    opacity: 1;
}

.pd-figure__overlay i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-blue);
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* No image */
.pd-no-img {
    aspect-ratio: 4/3;
    border-radius: 20px;
    background: var(--c-fog);
    border: 2px dashed var(--c-mist);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--c-steel);
    font-family: var(--f-body);
    font-size: .9rem;
}

    .pd-no-img i {
        font-size: 3rem;
        color: var(--c-mist);
    }

/* Action buttons */
.pd-actions {
    display: flex;
    gap: 8px;
}

.pd-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--f-body);
    font-size: .76rem;
    font-weight: 600;
    color: var(--c-slate);
    background: var(--c-white);
    border: 1px solid var(--c-mist);
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s, border-color .2s, box-shadow .2s, transform .2s;
    white-space: nowrap;
}

    .pd-action-btn:hover {
        color: var(--c-blue);
        border-color: var(--c-blue-mid);
        box-shadow: var(--shadow-card);
        transform: translateY(-2px);
    }

/* Product code */
.pd-code-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--c-white);
    border: 1px solid var(--c-mist);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: var(--f-body);
}

.pd-code-badge__label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-steel);
}

.pd-code-badge__value {
    font-size: .82rem;
    font-weight: 700;
    color: var(--c-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    background: var(--c-blue-lt);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--c-blue-mid);
    color: var(--c-blue);
}

/* ═══════════════════════════════════════════════════════════════════
   INFO COLUMN
═══════════════════════════════════════════════════════════════════ */
.pd-info-col {
    padding-top: 4px;
    font-family: var(--f-body);
}

    .pd-info-col.rtl {
        text-align: right;
    }

/* Tags */
.pd-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pd-info-col.rtl .pd-tags {
    flex-direction: row-reverse;
}

.pd-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.pd-tag--cat {
    background: var(--c-blue);
    color: #fff;
}

.pd-tag--status {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.pd-tag--iso {
    background: var(--c-blue-lt);
    color: var(--c-blue);
    border: 1px solid var(--c-blue-mid);
}

.pd-pulse {
    width: 7px;
    height: 7px;
    background: #16a34a;
    border-radius: 50%;
    animation: pdPulse 2s ease-in-out infinite;
}

@keyframes pdPulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(22,163,74,.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(22,163,74,0);
    }
}

/* Title */
.pd-title {
    font-family: var(--f-display);
    font-size: clamp(1.7rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--c-ink);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 22px;
    word-wrap: break-word;
}

/* Decorative rule */
.pd-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.pd-info-col.rtl .pd-rule {
    flex-direction: row-reverse;
}

.pd-rule__line {
    width: 48px;
    height: 2px;
    background: var(--c-accent);
    border-radius: 2px;
}

.pd-rule__dot {
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
}

.pd-rule__line--thin {
    width: 24px;
    background: var(--c-blue-mid);
}

/* Description */
.pd-desc-wrap {
    margin-bottom: 36px;
}

.pd-desc {
    font-size: clamp(.9rem, 1.3vw, 1rem);
    color: var(--c-slate);
    line-height: 1.85;
    margin: 0;
}

/* ── Section title ──────────────────────────────────────────────── */
.pd-section-title {
    font-family: var(--f-body);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pd-section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--c-mist);
    }

.pd-info-col.rtl .pd-section-title {
    flex-direction: row-reverse;
}

    .pd-info-col.rtl .pd-section-title::after {
        display: none;
    }

    .pd-info-col.rtl .pd-section-title::before {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--c-mist);
    }

/* ── Features ───────────────────────────────────────────────────── */
.pd-features-section {
    margin-bottom: 36px;
}

.pd-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pd-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--c-white);
    border: 1px solid var(--c-mist);
    border-radius: 14px;
    padding: 16px;
    transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}

    .pd-feature:hover {
        border-color: var(--c-blue-mid);
        box-shadow: var(--shadow-card);
        transform: translateY(-3px);
    }

.pd-info-col.rtl .pd-feature {
    flex-direction: row-reverse;
}

.pd-feature__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.pd-feature__icon--blue {
    background: #EAF4FF;
    color: #0057B8;
}

.pd-feature__icon--green {
    background: #DCFCE7;
    color: #15803D;
}

.pd-feature__icon--orange {
    background: #FFF7ED;
    color: #C2410C;
}

.pd-feature__icon--red {
    background: #FEF2F2;
    color: #DC2626;
}

.pd-feature__body strong {
    display: block;
    font-size: .83rem;
    font-weight: 700;
    color: var(--c-ink);
    margin-bottom: 3px;
}

.pd-feature__body p {
    font-size: .75rem;
    color: var(--c-steel);
    margin: 0;
    line-height: 1.5;
}

/* ── Standards ──────────────────────────────────────────────────── */
.pd-standards {
    margin-bottom: 36px;
}

.pd-standards__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pd-standard {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-white);
    border: 1px solid var(--c-mist);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color .2s, box-shadow .2s;
}

    .pd-standard:hover {
        border-color: var(--c-blue-mid);
        box-shadow: var(--shadow-card);
    }

.pd-info-col.rtl .pd-standard {
    flex-direction: row-reverse;
}

.pd-standard__badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--c-navy);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    flex-shrink: 0;
}

.pd-standard__text {
    min-width: 0;
}

    .pd-standard__text strong {
        display: block;
        font-size: .82rem;
        font-weight: 700;
        color: var(--c-ink);
        margin-bottom: 2px;
    }

    .pd-standard__text span {
        font-size: .72rem;
        color: var(--c-steel);
    }

/* ── CTA ────────────────────────────────────────────────────────── */
.pd-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.pd-info-col.rtl .pd-cta {
    flex-direction: row-reverse;
}

.pd-cta__primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--f-body);
    font-size: .86rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    background: var(--c-blue);
    color: #fff;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 16px rgba(0,87,184,.28);
    transition: background .25s, box-shadow .25s, transform .25s var(--ease);
    white-space: nowrap;
}

    .pd-cta__primary:hover {
        background: var(--c-navy);
        box-shadow: 0 8px 24px rgba(0,30,69,.32);
        transform: translateY(-3px);
        color: #fff;
    }

.pd-cta__secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--f-body);
    font-size: .86rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 10px;
    background: var(--c-white);
    color: var(--c-ink);
    text-decoration: none;
    border: 1.5px solid var(--c-mist);
    transition: border-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
    white-space: nowrap;
}

    .pd-cta__secondary:hover {
        border-color: var(--c-blue);
        color: var(--c-blue);
        box-shadow: var(--shadow-card);
        transform: translateY(-3px);
    }

/* ── Contact strip ──────────────────────────────────────────────── */
.pd-contact {
    display: flex;
    background: var(--c-white);
    border: 1px solid var(--c-mist);
    border-radius: 14px;
    overflow: hidden;
}

.pd-info-col.rtl .pd-contact {
    flex-direction: row-reverse;
}

.pd-contact__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: background .2s;
    min-width: 0;
}

    .pd-contact__item:hover {
        background: var(--c-blue-lt);
    }

.pd-info-col.rtl .pd-contact__item {
    flex-direction: row-reverse;
}

.pd-contact__icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--c-blue-lt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-blue);
    font-size: 14px;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.pd-contact__item:hover .pd-contact__icon {
    background: var(--c-blue);
    color: #fff;
}

.pd-contact__text small {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-steel);
    margin-bottom: 2px;
}

.pd-contact__text strong {
    display: block;
    font-size: .84rem;
    font-weight: 700;
    color: var(--c-ink);
}

.pd-contact__div {
    width: 1px;
    background: var(--c-mist);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SHARE MODAL
═══════════════════════════════════════════════════════════════════ */
.pd-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    font-family: var(--f-body);
}

.pd-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 0;
}

    .pd-modal__head h5 {
        font-family: var(--f-display);
        font-size: 1.2rem;
        font-weight: 400;
        color: var(--c-ink);
        margin: 0;
    }

.pd-modal__close {
    width: 32px;
    height: 32px;
    background: var(--c-fog);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-slate);
    cursor: pointer;
    transition: background .2s;
}

    .pd-modal__close:hover {
        background: var(--c-mist);
    }

.pd-modal__body {
    padding: 18px 24px 24px;
}

.pd-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.pd-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff !important;
    transition: opacity .2s, transform .2s;
}

    .pd-share-btn:hover {
        opacity: .88;
        transform: translateY(-2px);
    }

.pd-share-btn--fb {
    background: #1877F2;
}

.pd-share-btn--li {
    background: #0A66C2;
}

.pd-share-btn--wa {
    background: #25D366;
}

.pd-share-btn--tw {
    background: #111;
}

.pd-copy {
    display: flex;
    gap: 6px;
}

.pd-copy__input {
    flex: 1;
    min-width: 0;
    font-family: var(--f-body);
    font-size: .8rem;
    color: var(--c-slate);
    background: var(--c-fog);
    border: 1.5px solid var(--c-mist);
    border-radius: 8px;
    padding: 9px 12px;
    outline: none;
}

.pd-copy__btn {
    width: 38px;
    height: 38px;
    background: var(--c-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}

    .pd-copy__btn:hover {
        background: var(--c-navy);
    }

/* ═══════════════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════════════ */
.pd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5,10,20,.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

    .pd-lightbox:not([hidden]) {
        opacity: 0;
        visibility: visible;
    }

    .pd-lightbox.active {
        opacity: 1;
    }

.pd-lightbox__img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0,0,0,.6);
    transform: scale(.96);
    transition: transform .4s var(--ease);
}

.pd-lightbox.active .pd-lightbox__img {
    transform: scale(1);
}

.pd-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

    .pd-lightbox__close:hover {
        background: rgba(255,255,255,.22);
        transform: rotate(90deg);
    }

[dir="rtl"] .pd-lightbox__close {
    right: auto;
    left: 20px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .pd-layout {
        grid-template-columns: 420px 1fr;
        gap: 44px;
    }
}

@media (max-width: 1024px) {
    .pd-layout {
        grid-template-columns: 360px 1fr;
        gap: 36px;
    }

    .pd-image-sticky {
        top: 80px;
    }
}

@media (max-width: 860px) {
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pd-image-sticky {
        position: static;
    }

    .pd-page {
        padding: 40px 0 72px;
    }
}

@media (max-width: 640px) {
    .pd-features, .pd-standards__grid {
        grid-template-columns: 1fr;
    }

    .pd-cta {
        flex-direction: column;
    }

    .pd-cta__primary, .pd-cta__secondary {
        justify-content: center;
    }

    .pd-contact {
        flex-direction: column;
    }

    .pd-contact__div {
        width: 100%;
        height: 1px;
    }

    .pd-share-grid {
        grid-template-columns: 1fr;
    }

    .pd-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }

    .pd-page {
        padding: 28px 0 60px;
    }
}

@media (max-width: 400px) {
    .pd-feature {
        padding: 12px;
    }

    .pd-standard {
        padding: 12px 14px;
    }

    .pd-actions {
        flex-wrap: wrap;
    }

    .pd-action-btn {
        flex: 1 1 40%;
    }
}

/* ── Print ──────────────────────────────────────────────────────── */
@media print {
    .pd-breadcrumb {
        padding: 8px 0;
    }

    .pd-actions, .pd-cta, .pd-contact, .pd-lightbox {
        display: none !important;
    }

    .pd-layout {
        grid-template-columns: 1fr 1fr;
    }

    .pd-feature, .pd-standard {
        box-shadow: none;
        border: 1px solid var(--c-mist);
    }
}

/* ── Accessibility ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}

@media (prefers-contrast: high) {
    .pd-feature, .pd-standard, .pd-contact {
        border: 2px solid currentColor;
    }
}
