/**
 * طرح صفحه محصول — نسخهٔ تبدیل (پیش‌نمایش)
 * تا تأیید نهایی روی product.php وصل نشود.
 */

.pdp-preview-banner {
    position: sticky;
    top: 0;
    z-index: 1400;
    background: #c9a962;
    color: #1a1a1a;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    letter-spacing: 0;
}

.pdp-preview-banner span {
    font-weight: 500;
    opacity: 0.85;
}

.pdp-preview-header.header {
    position: sticky;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #2d2d2d;
    color: #fff;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body:has(.pdp-preview-banner) .main-content {
    padding-top: 1.25rem;
}

.pdp-preview-header .navbar {
    height: 64px;
    justify-content: space-between;
}

.pdp-preview-header .logo-img {
    height: 36px;
    width: auto;
}

.pdp-preview-header .nav-ghost {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.pdp-v2 {
    padding: 1.5rem 0 4rem;
}

.pdp-v2 .breadcrumb {
    margin-bottom: 1.25rem;
}

.pdp-v2 .product-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.pdp-gallery {
    position: sticky;
    top: 120px;
}

.pdp-main-image {
    position: relative;
    background: #f3f3f3;
    border-radius: 20px;
    overflow: hidden;
    cursor: zoom-in;
}

.pdp-main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.pdp-main-image.is-zoom img {
    transform: scale(1.45);
}

.pdp-photo-job {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(26, 26, 26, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

.pdp-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.pdp-thumb {
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.pdp-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.pdp-thumb span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.55rem 0.3rem 0.3rem;
    text-align: center;
}

.pdp-thumb.active {
    border-color: #1a1a1a;
}

.pdp-buy {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 520px;
}

.pdp-kicker {
    font-size: 0.8125rem;
    color: #c9a962;
    font-weight: 600;
}

.pdp-kicker a {
    color: inherit;
}

.pdp-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0;
}

.pdp-oneliner {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.pdp-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #c9a962;
    width: fit-content;
}

.pdp-more-link:hover {
    text-decoration: underline;
}

.pdp-sku {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.02em;
}

.pdp-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pdp-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
}

.pdp-price-old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.pdp-price-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.pdp-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f8a4c;
}

.pdp-stock svg {
    flex-shrink: 0;
}

.pdp-bullets {
    margin: 0.15rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.pdp-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.pdp-bullets li::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: #c9a962;
    flex-shrink: 0;
}

.pdp-opt {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pdp-opt-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
}

.pdp-opt-label em {
    font-style: normal;
    font-weight: 500;
    color: #666;
    margin-right: 0.35rem;
}

.pdp-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pdp-swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.7rem 0.28rem 0.35rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.pdp-swatch i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: block;
}

.pdp-swatch.active {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 1px #1a1a1a;
}

.pdp-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pdp-size {
    min-width: 48px;
    height: 44px;
    padding: 0 0.85rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    color: #1a1a1a;
}

.pdp-size:hover:not(:disabled) {
    border-color: #1a1a1a;
}

.pdp-size.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.pdp-size.is-oos:not(.active) {
    opacity: 0.45;
    text-decoration: line-through;
    border-style: dashed;
}

.pdp-stock.is-oos,
.pdp-price.is-oos {
    color: #ef4444;
}

.pdp-fit {
    font-size: 0.8125rem;
    color: #555;
    line-height: 1.6;
    background: #f7f4ec;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
}

.pdp-sg {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: right;
    border: 1px solid #ead9a8;
    background: #fffdf6;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
}

.pdp-sg strong {
    display: block;
    font-size: 0.875rem;
}

.pdp-sg span {
    display: block;
    font-size: 0.75rem;
    color: #666;
}

.pdp-sg-cta {
    margin-right: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: #c9a962;
    white-space: nowrap;
}

.pdp-cta-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

.pdp-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
}

.pdp-qty button {
    width: 40px;
    height: 48px;
    font-size: 1.15rem;
    color: #1a1a1a;
}

.pdp-qty input {
    width: 36px;
    border: 0;
    text-align: center;
    font-weight: 700;
    background: transparent;
}

.pdp-atc {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pdp-atc:disabled {
    background: #cfcfcf;
    color: #777;
    cursor: not-allowed;
}

.pdp-atc:not(:disabled):hover {
    background: #000;
}

.pdp-trust {
    display: grid;
    gap: 0.65rem;
    padding-top: 0.35rem;
    border-top: 1px solid #eee;
}

.pdp-trust li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.55rem;
    align-items: start;
}

.pdp-trust strong {
    display: block;
    font-size: 0.84rem;
    color: #1a1a1a;
}

.pdp-trust span {
    display: block;
    font-size: 0.75rem;
    color: #777;
    line-height: 1.5;
}

.pdp-trust svg {
    margin-top: 2px;
    color: #c9a962;
}

.pdp-below {
    display: grid;
    gap: 1.25rem;
}

.pdp-acc {
    border: 1px solid #ececec;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.pdp-acc summary {
    list-style: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    padding: 1rem 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdp-acc summary::-webkit-details-marker {
    display: none;
}

.pdp-acc summary::after {
    content: "+";
    font-weight: 400;
    color: #999;
    font-size: 1.25rem;
}

.pdp-acc[open] summary::after {
    content: "−";
}

.pdp-acc-body {
    padding: 0 1.15rem 1.15rem;
    color: #444;
    line-height: 1.8;
    font-size: 0.92rem;
}

html {
    scroll-behavior: smooth;
}

.pdp-story {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 1.5rem 1.6rem 1.7rem;
    scroll-margin-top: 130px;
}

.pdp-story h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.pdp-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
    gap: 1.75rem;
    align-items: start;
}

.pdp-story-copy p {
    margin: 0 0 0.95rem;
    color: #444;
    line-height: 1.9;
    font-size: 0.95rem;
}

.pdp-story-copy p:last-child {
    margin-bottom: 0;
}

.pdp-story-copy h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 1.15rem 0 0.45rem;
    color: #1a1a1a;
}

.pdp-story-side {
    background: #f7f4ec;
    border-radius: 14px;
    overflow: hidden;
}

.pdp-story-side img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.pdp-story-side figcaption {
    padding: 0.7rem 0.85rem 0.9rem;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .pdp-story-grid {
        grid-template-columns: 1fr;
    }

    .pdp-story {
        padding: 1.15rem 1rem 1.25rem;
    }
}

.pdp-specs {
    width: 100%;
    border-collapse: collapse;
}

.pdp-specs th,
.pdp-specs td {
    text-align: right;
    padding: 0.65rem 0.2rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.pdp-specs th {
    width: 34%;
    color: #777;
    font-weight: 600;
}

.pdp-faq + .pdp-faq {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.85rem;
    margin-top: 0.85rem;
}

.pdp-faq strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.pdp-fbt h2,
.pdp-related h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.pdp-fbt-grid,
.pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pdp-mini {
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.pdp-mini img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f3f3f3;
}

.pdp-mini-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.pdp-mini h3 {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.45;
}

.pdp-mini .price {
    font-weight: 800;
    font-size: 0.9rem;
}

.pdp-mini button {
    margin-top: auto;
    height: 36px;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.pdp-sticky {
    display: none;
}

/* نوار چسبان موبایل — بالای منوی پایین سایت */
@media (max-width: 768px) {
    .pdp-sticky {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        z-index: 900;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 0.65rem 1rem;
        gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
    }

    .pdp-v2 {
        padding-bottom: 7rem;
    }

    .pdp-cta-row .wishlist-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid #e5e5e5;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }
}

.pdp-toast {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%) translateY(12px);
    background: #1a1a1a;
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 1500;
    white-space: nowrap;
}

.pdp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pdp-sg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.pdp-sg-overlay.open {
    display: flex;
}

.pdp-sg-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 1.25rem 1.35rem 1.5rem;
}

.pdp-sg-modal h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.pdp-sg-modal p {
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.pdp-sg-modal table {
    width: 100%;
    border-collapse: collapse;
}

.pdp-sg-modal th,
.pdp-sg-modal td {
    border-bottom: 1px solid #eee;
    padding: 0.55rem 0.25rem;
    text-align: center;
    font-size: 0.85rem;
}

.pdp-sg-close {
    float: left;
    font-size: 1.4rem;
    color: #888;
}

.pdp-preview-footer {
    background: #2d2d2d;
    color: rgba(255, 255, 255, 0.75);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .pdp-v2 .product-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pdp-gallery {
        position: relative;
        top: 0;
    }

    .pdp-buy {
        max-width: none;
    }

    .pdp-fbt-grid,
    .pdp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pdp-preview-header.header {
        top: 40px;
    }

    .pdp-title {
        font-size: 1.35rem;
    }

    .pdp-thumbs {
        grid-template-columns: repeat(4, minmax(64px, 1fr));
        overflow-x: auto;
    }

    .pdp-sticky {
        display: flex;
        position: fixed;
        right: 0;
        left: 0;
        bottom: 72px;
        z-index: 1190;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
        gap: 0.65rem;
        align-items: center;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    }

    .pdp-sticky .pdp-price {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .pdp-sticky .pdp-atc {
        height: 44px;
        font-size: 0.85rem;
    }

    .pdp-v2 {
        padding-bottom: 7.5rem;
    }

    .pdp-photo-job,
    .pdp-thumb span {
        display: none;
    }
}

/* نظرات مشتری‌ها */
.pdp-reviews h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.pdp-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pdp-review-cta { border: 1.5px solid #1a1a1a; background: #fff; color: #1a1a1a; border-radius: 10px; height: 38px; padding: 0 1rem; font-size: 0.8125rem; font-weight: 700; cursor: pointer; }
.pdp-review-cta:hover { background: #1a1a1a; color: #fff; }
.pdp-reviews-summary { display: grid; grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr) minmax(150px, 0.8fr); gap: 1.5rem; align-items: center; background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 1.25rem 1.35rem; margin-bottom: 1rem; }
.pdp-rating-big { display: grid; justify-items: center; gap: 0.2rem; text-align: center; }
.pdp-rating-big strong { font-size: 2.4rem; font-weight: 800; line-height: 1; color: #1a1a1a; }
.pdp-rating-big span { font-size: 0.75rem; color: #888; }
.pdp-stars { color: #c9a962; font-size: 1rem; letter-spacing: 0.12em; direction: ltr; }
.pdp-stars.sm { font-size: 0.85rem; }
.pdp-rating-bars { display: grid; gap: 0.35rem; }
.pdp-bar { display: grid; grid-template-columns: 14px 1fr 26px; align-items: center; gap: 0.55rem; font-size: 0.75rem; color: #777; }
.pdp-bar i { display: block; height: 7px; border-radius: 999px; background: #f0f0f0; overflow: hidden; }
.pdp-bar b { display: block; height: 100%; border-radius: 999px; background: #c9a962; }
.pdp-bar em { font-style: normal; text-align: left; }
.pdp-rating-facts { display: grid; gap: 0.55rem; border-right: 1px solid #f0f0f0; padding-right: 1.25rem; }
.pdp-rating-facts li { display: flex; align-items: baseline; gap: 0.45rem; }
.pdp-rating-facts strong { font-size: 0.95rem; font-weight: 800; color: #1a1a1a; }
.pdp-rating-facts span { font-size: 0.78rem; color: #777; }
.pdp-review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pdp-review { border: 1px solid #eee; border-radius: 16px; background: #fff; padding: 1rem 1.1rem 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pdp-review-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.pdp-review-top strong { font-size: 0.9rem; font-weight: 700; color: #1a1a1a; margin-left: 0.45rem; }
.pdp-review-verified { font-size: 0.68rem; font-weight: 700; color: #1f8a4c; background: #eaf7ef; border-radius: 999px; padding: 0.15rem 0.45rem; white-space: nowrap; }
.pdp-review-meta { font-size: 0.72rem; color: #999; }
.pdp-review p { margin: 0; font-size: 0.88rem; line-height: 1.8; color: #444; text-wrap: pretty; }
.pdp-review-date { margin-top: auto; padding-top: 0.35rem; font-size: 0.7rem; color: #aaa; }
.pdp-review-more { margin-top: 1rem; width: 100%; height: 44px; border: 1px solid #e0e0e0; border-radius: 12px; background: #fff; font-size: 0.85rem; font-weight: 700; color: #1a1a1a; cursor: pointer; }
.pdp-review-more:hover { border-color: #1a1a1a; }
@media (max-width: 1024px) {
    .pdp-reviews-summary { grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr); }
    .pdp-rating-facts { grid-column: 1 / -1; grid-auto-flow: column; border-right: 0; padding-right: 0; border-top: 1px solid #f0f0f0; padding-top: 0.85rem; }
    .pdp-review-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .pdp-reviews-summary { grid-template-columns: 1fr; padding: 1rem; }
    .pdp-rating-facts { grid-auto-flow: row; }
}

/* بهبود پنل خرید */
.pdp-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: -0.2rem; }
.pdp-rating-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: #555; }
.pdp-rating-link strong { color: #1a1a1a; font-weight: 800; }
.pdp-rating-link span:last-child { text-decoration: underline; text-underline-offset: 3px; color: #888; }
.pdp-rating-link:hover span:last-child { color: #1a1a1a; }
.pdp-meta-row .pdp-sku { position: relative; padding-right: 1rem; }
.pdp-meta-row .pdp-sku::before { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: #e2e2e2; }
.pdp-meta-row .pdp-more-link { margin-right: auto; }
.pdp-price-card { background: #faf8f2; border: 1px solid #f0e8d4; border-radius: 14px; padding: 0.9rem 1rem; display: grid; gap: 0.4rem; }
.pdp-price-card .pdp-price-row { margin: 0; }
.pdp-price-note { font-size: 0.75rem; color: #8a7a52; }
.pdp-bullets { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 0.85rem 1rem; }

/* توضیحات محصول — نمایش بخشی + دکمه بیشتر */
.pdp-story .pdp-story-grid { position: relative; max-height: 170px; overflow: hidden; transition: max-height 0.35s ease; }
.pdp-story .pdp-story-grid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.pdp-story.is-open .pdp-story-grid { max-height: 2600px; }
.pdp-story.is-open .pdp-story-grid::after { opacity: 0; }
.pdp-story-toggle { margin-top: 1rem; height: 42px; padding: 0 1.4rem; border: 1px solid #e0e0e0; border-radius: 12px; background: #fff; font-size: 0.85rem; font-weight: 700; color: #1a1a1a; cursor: pointer; }
.pdp-story-toggle:hover { border-color: #1a1a1a; }

/* ============ ریسپانسیو دسکتاپ و نمایشگرهای بزرگ ============ */

/* لپ‌تاپ کوچک ۱۰۲۴–۱۲۸۰ */
@media (min-width: 1025px) and (max-width: 1280px) {
    .pdp-v2 .product-main { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr); gap: 2rem; }
    .pdp-title { font-size: 1.5rem; }
    .pdp-price { font-size: 1.6rem; }
    .pdp-fbt-grid, .pdp-related-grid { grid-template-columns: repeat(4, 1fr); }
}

/* دسکتاپ استاندارد ۱۲۸۱+ */
@media (min-width: 1281px) {
    .pdp-v2 .container { max-width: 1320px; }
    .pdp-v2 .product-main { grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr); gap: 3rem; }
    .pdp-buy { max-width: 560px; gap: 1rem; }
    .pdp-title { font-size: 1.85rem; }
    .pdp-price { font-size: 1.9rem; }
}

/* نمایشگر بزرگ ۱۵۳۶+ */
@media (min-width: 1536px) {
    .pdp-v2 .container { max-width: 1480px; }
    .pdp-v2 .product-main { grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr); gap: 3.5rem; }
    .pdp-buy { max-width: 600px; }
    .pdp-title { font-size: 2rem; }
    .pdp-oneliner { font-size: 1.05rem; }
    .pdp-price { font-size: 2.1rem; }
    .pdp-bullets li { font-size: 0.95rem; }
    .pdp-thumbs { grid-template-columns: repeat(5, 1fr); }
    .pdp-below { gap: 1.5rem; }
    .pdp-story h2, .pdp-fbt h2, .pdp-related h2, .pdp-reviews h2 { font-size: 1.3rem; }
    .pdp-story-copy p { font-size: 1rem; }
    .pdp-story .pdp-story-grid { max-height: 200px; }
}

/* نمایشگر خیلی بزرگ ۱۹۲۰+ */
@media (min-width: 1920px) {
    .pdp-v2 .container { max-width: 1640px; }
    .pdp-v2 .product-main { gap: 4rem; }
    .pdp-fbt-grid, .pdp-related-grid { grid-template-columns: repeat(5, 1fr); }
    .pdp-mini h3 { font-size: 0.9rem; }
    .pdp-mini .price { font-size: 0.98rem; }
}

/* ارتفاع کوتاه: گالری چسبان بیش از حد بالا نرود */
@media (min-width: 1025px) and (max-height: 820px) {
    .pdp-gallery { position: relative; top: 0; }
}

.pdp-story, .pdp-story .pdp-story-copy, .pdp-story-grid { overflow-anchor: none; }
