.pd-page {
    --pd-teal: #0f4c4f;
    --pd-teal-d: #0b2f31;
    --pd-gold: #c9a227;
    --pd-mint: #f0f9f8;
    --pd-red: #dc2626;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 4rem;
    box-sizing: border-box;
    direction: rtl;
}
.pd-page *, .pd-page *::before, .pd-page *::after { box-sizing: border-box; }

/* انیمیشن ظاهر شدن */
.pd-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.pd-reveal.is-in { opacity: 1; transform: none; }

/* مسیر صفحه */
.pd-crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    font-size: .88rem; color: #64748b; margin-bottom: 1.25rem;
}
.pd-crumbs a { color: var(--pd-teal); text-decoration: none; }
.pd-crumbs a:hover { text-decoration: underline; }
.pd-crumbs strong { color: #1e293b; font-weight: 700; }

/* بخش اصلی */
.pd-main { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }

.pd-zoom {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: var(--pd-mint);
    box-shadow: 0 20px 50px rgba(11, 47, 49, .15);
    cursor: zoom-in;
}
.pd-zoom img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .35s ease;
}

.pd-badge {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: linear-gradient(135deg, #ef4444, var(--pd-red));
    color: #fff; font-weight: 800; font-size: .9rem;
    padding: .4rem .9rem; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(220, 38, 38, .4);
    animation: pdPulse 2.4s ease-in-out infinite;
}
.pd-badge-sm { top: 8px; right: 8px; font-size: .75rem; padding: .25rem .6rem; }
@keyframes pdPulse { 50% { transform: scale(1.07); } }

/* اطلاعات */
.pd-state {
    display: inline-block; background: var(--pd-mint); color: var(--pd-teal);
    border: 1px solid #cfe9e6; font-weight: 700; font-size: .82rem;
    padding: .3rem .9rem; border-radius: 999px;
}
.pd-title {
    margin: .8rem 0 1.2rem;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.5; color: var(--pd-teal-d); font-weight: 900;
}
.pd-specs {
    list-style: none; margin: 0 0 1.5rem; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem;
}
.pd-specs li {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: .8rem 1rem; display: flex; flex-direction: column; gap: .2rem;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.pd-specs li:hover { transform: translateY(-3px); border-color: var(--pd-gold); box-shadow: 0 8px 20px rgba(0, 0, 0, .06); }
.pd-specs span { font-size: .78rem; color: #64748b; }
.pd-specs b { color: var(--pd-teal-d); }

/* کادر خرید */
.pd-buy {
    background: linear-gradient(160deg, var(--pd-teal-d), var(--pd-teal));
    color: #fff; border-radius: 22px; padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(11, 47, 49, .3);
}
.pd-old { display: block; color: rgba(255, 255, 255, .6); font-size: .95rem; margin-bottom: .2rem; }
.pd-new { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 900; color: #ffe08a; }
.pd-new small { font-size: .9rem; color: #fff; font-weight: 600; }

.pd-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0; }
.pd-btn {
    flex: 1 1 150px; text-align: center; text-decoration: none;
    padding: .9rem 1.2rem; border-radius: 14px; font-weight: 800;
    transition: transform .25s, box-shadow .25s, background .25s;
}
.pd-btn:hover { transform: translateY(-3px); }
.pd-btn-primary { background: var(--pd-gold); color: #1a1a1a; box-shadow: 0 8px 20px rgba(201, 162, 39, .4); }
.pd-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.pd-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.pd-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.pd-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .88rem; color: #d7efec; }

/* توضیحات */
.pd-desc {
    margin-top: 3rem; padding: 1.5rem; background: var(--pd-mint);
    border-radius: 20px; border: 1px solid #d8eeeb;
}
.pd-desc h2, .pd-related h2 {
    margin: 0 0 1rem; font-size: 1.35rem; color: var(--pd-teal-d);
    position: relative; padding-right: 1rem;
}
.pd-desc h2::before, .pd-related h2::before {
    content: ""; position: absolute; right: 0; top: 15%; bottom: 15%;
    width: 4px; border-radius: 4px; background: var(--pd-gold);
}
.pd-desc p { margin: 0; line-height: 2; color: #334155; }

/* پیشنهادی‌ها */
.pd-related { margin-top: 3.5rem; }
.pd-rgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.pd-rcard {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.pd-rcard:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(11, 47, 49, .15); }
.pd-rmedia { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--pd-mint); }
.pd-rmedia img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.pd-rcard:hover .pd-rmedia img { transform: scale(1.08); }
.pd-rbody { padding: .8rem; }
.pd-rbody h3 {
    margin: 0 0 .5rem; font-size: .95rem; line-height: 1.6; color: var(--pd-teal-d);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-rprice { display: flex; flex-direction: column; gap: .1rem; }
.pd-rprice del { color: #94a3b8; font-size: .8rem; }
.pd-rprice b { color: var(--pd-teal); font-size: .95rem; }

/* واکنش‌گرا */
@media (min-width: 640px) { .pd-rgrid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
@media (min-width: 992px) {
    .pd-main { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
    .pd-gallery { position: sticky; top: 90px; }
    .pd-rgrid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .pd-reveal { opacity: 1; transform: none; transition: none; }
    .pd-badge { animation: none; }
    .pd-page * { transition: none !important; }
}

.pd-gallery-wrap {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: .75rem;
    align-items: stretch;
}
.pd-thumbs {
    display: flex; flex-direction: column; gap: .6rem;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 4px 4px 4px 0;
}
.pd-thumb {
    position: relative; flex: 0 0 auto;
    width: 100%; aspect-ratio: 1 / 1;
    padding: 0; border: 0; background: var(--pd-mint);
    border-radius: 14px; overflow: hidden; cursor: pointer;
    opacity: .6;
    box-shadow: 0 0 0 1px #e2e8f0;
    transition: opacity .25s, box-shadow .25s, transform .25s;
}
.pd-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}
.pd-thumb:hover { opacity: 1; transform: translateX(-3px); }
.pd-thumb:hover img { transform: scale(1.08); }
.pd-thumb.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--pd-gold), 0 8px 18px rgba(201, 162, 39, .35);
}
.pd-thumb:focus-visible { outline: 3px solid var(--pd-teal); outline-offset: 2px; }

.pd-gallery-wrap .pd-zoom { min-width: 0; }

@media (min-width: 992px) {
    .pd-gallery-wrap { grid-template-columns: 88px 1fr; }
    .pd-thumb { border-radius: 16px; }
}