 :root {
        --emerald: #038C65;
        --orange: #F27B13;
        --amber: #D95204;
        --maroon: #730909;

        --bg: #f6f6f4;
        --surface: #ffffff;
        --surface-soft: #fafafa;
        --border: #e8e5df;

        --text: #171717;
        --muted: #757575;
        --muted-2: #9a9a9a;

        --radius-xl: 28px;
        --radius-lg: 20px;
        --radius-md: 14px;

        --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.06);
        --shadow-card: 0 8px 28px rgba(17, 24, 39, 0.05);
    }

    body {
        font-family: 'Vazirmatn', sans-serif;
        background:
            radial-gradient(circle at top right, rgba(3, 140, 101, 0.06), transparent 360px),
            var(--bg);
        color: var(--text);
    }

    a {
        color: inherit;
    }

    .pd-page {
        padding-top: 28px;
        padding-bottom: 110px;
    }

    .pd-breadcrumb {
        font-size: 0.82rem;
        color: var(--muted);
    }

    .pd-breadcrumb a {
        text-decoration: none;
        color: var(--muted);
    }

    .pd-shell {
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid rgba(232, 229, 223, 0.9);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-soft);
        padding: 22px;
        overflow: hidden;
    }

    .pd-gallery {
        position: sticky;
        top: 24px;
    }

    .pd-main-image {
        position: relative;
        background: linear-gradient(180deg, #fff, #fafafa);
        border: 1px solid var(--border);
        border-radius: 24px;
        aspect-ratio: 1 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .pd-main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 18px;
        transition: transform 0.35s ease, opacity 0.25s ease;
    }

    .pd-main-image:hover img {
        transform: scale(1.035);
    }

    .pd-image-badge {
        position: absolute;
        top: 16px;
        right: 16px;
        background: rgba(3, 140, 101, 0.1);
        color: var(--emerald);
        border: 1px solid rgba(3, 140, 101, 0.16);
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 0.76rem;
        font-weight: 800;
    }

    .pd-thumbs {
        display: flex;
        gap: 10px;
        margin-top: 14px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .pd-thumbs::-webkit-scrollbar {
        display: none;
    }

    .pd-thumb {
        flex: 0 0 76px;
        aspect-ratio: 1 / 1;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: #fff;
        padding: 5px;
        cursor: pointer;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .pd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 12px;
    }

    .pd-thumb.active {
        border-color: var(--amber);
        box-shadow: 0 8px 22px rgba(217, 82, 4, 0.16);
    }

    .pd-thumb:hover {
        transform: translateY(-2px);
    }

    .pd-summary {
        padding: 8px 6px 4px;
    }

    .pd-brand {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: rgba(3, 140, 101, 0.08);
        color: var(--emerald);
        border: 1px solid rgba(3, 140, 101, 0.14);
        border-radius: 999px;
        padding: 8px 13px;
        font-size: 0.78rem;
        font-weight: 850;
    }

    .pd-title {
        margin: 18px 0 12px;
        color: var(--maroon);
        font-size: clamp(1.45rem, 3vw, 2.25rem);
        font-weight: 950;
        line-height: 1.55;
        letter-spacing: 0;
    }

    .pd-short-desc {
        color: #555;
        line-height: 2.05;
        font-size: 0.96rem;
        max-width: 720px;
    }

    .pd-meta-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 24px 0;
    }

    .pd-meta-item {
        background: var(--surface-soft);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 13px 12px;
        min-height: 76px;
    }

    .pd-meta-item i {
        color: var(--emerald);
        font-size: 1.1rem;
    }

    .pd-meta-title {
        display: block;
        margin-top: 7px;
        font-size: 0.78rem;
        font-weight: 850;
    }

    .pd-meta-text {
        display: block;
        margin-top: 3px;
        color: var(--muted);
        font-size: 0.72rem;
    }

    .pd-section-label {
        display: block;
        margin-bottom: 12px;
        font-size: 0.86rem;
        font-weight: 900;
    }

    .pd-variants {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .pd-variant input {
        display: none;
    }

    .pd-variant label {
        min-width: 86px;
        text-align: center;
        border: 1px solid var(--border);
        background: #fff;
        color: #333;
        border-radius: 999px;
        padding: 11px 16px;
        font-size: 0.88rem;
        font-weight: 850;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .pd-variant input:checked + label {
        background: var(--maroon);
        border-color: var(--maroon);
        color: #fff;
        box-shadow: 0 12px 24px rgba(115, 9, 9, 0.16);
    }

    .pd-buy-card {
        margin-top: 26px;
        background:
            linear-gradient(180deg, rgba(242, 123, 19, 0.035), transparent),
            #fff;
        border: 1px solid var(--border);
        border-radius: 22px;
        padding: 22px;
        box-shadow: var(--shadow-card);
    }

    .pd-price-label {
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 750;
    }

    .pd-price {
        display: flex;
        align-items: baseline;
        gap: 7px;
        margin-top: 4px;
    }

    .pd-price strong {
        color: var(--amber);
        font-size: clamp(1.85rem, 4vw, 2.45rem);
        font-weight: 950;
        line-height: 1.2;
    }

    .pd-price span {
        color: var(--muted);
        font-size: 0.86rem;
        font-weight: 800;
    }

    .pd-old-price {
        min-height: 22px;
        color: var(--muted-2);
        font-size: 0.84rem;
        text-decoration: line-through;
        margin-top: 6px;
    }

    .pd-buy-btn {
        width: 100%;
        border: 0;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--orange), var(--amber));
        color: #fff;
        padding: 15px 18px;
        font-weight: 950;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .pd-buy-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(217, 82, 4, 0.22);
    }

    .pd-content-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-card);
        padding: 24px;
    }

    .pd-tabs {
        display: flex;
        gap: 8px;
        border-bottom: 1px solid var(--border);
        padding-bottom: 12px;
        margin-bottom: 22px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pd-tabs::-webkit-scrollbar {
        display: none;
    }

    .pd-tabs .nav-link {
        white-space: nowrap;
        border: 0;
        border-radius: 999px;
        background: var(--surface-soft);
        color: #404040;
        padding: 10px 18px;
        font-size: 0.88rem;
        font-weight: 900;
    }

    .pd-tabs .nav-link.active {
        background: var(--emerald);
        color: #fff;
    }

    .pd-tab-body {
        color: #3f3f3f;
        line-height: 2.1;
        font-size: 0.95rem;
    }

    .pd-comment-form {
        background: var(--surface-soft);
        border: 1px solid var(--border);
        border-radius: 22px;
        padding: 18px;
        margin-bottom: 22px;
    }

    .pd-comment-form textarea {
        border: 1px solid var(--border);
        border-radius: 16px;
        resize: vertical;
        min-height: 110px;
        box-shadow: none !important;
    }

    .pd-comment-form textarea:focus {
        border-color: rgba(3, 140, 101, 0.45);
    }

    .pd-submit-comment {
        border: 0;
        background: var(--emerald);
        color: #fff;
        border-radius: 999px;
        padding: 9px 18px;
        font-size: 0.85rem;
        font-weight: 900;
    }

    .pd-comment {
        display: flex;
        gap: 13px;
        padding: 18px 0;
        border-bottom: 1px solid var(--border);
    }

    .pd-comment:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .pd-avatar {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        border-radius: 50%;
        background: rgba(115, 9, 9, 0.08);
        color: var(--maroon);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 950;
    }

    .pd-comment-name {
        font-size: 0.88rem;
        font-weight: 900;
    }

    .pd-comment-date {
        color: var(--muted-2);
        font-size: 0.76rem;
    }

    .pd-comment-text {
        margin-top: 8px;
        color: #555;
        line-height: 1.95;
        font-size: 0.88rem;
    }

    .pd-side-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 22px;
        box-shadow: var(--shadow-card);
        position: sticky;
        top: 24px;
    }

    .pd-service {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .pd-service:last-child {
        border-bottom: 0;
    }

    .pd-service i {
        color: var(--emerald);
        font-size: 1.35rem;
    }

    .pd-service strong {
        display: block;
        font-size: 0.86rem;
    }

    .pd-service span {
        color: var(--muted);
        font-size: 0.76rem;
    }

    /* استایل نوار ثابت موبایل در پایین صفحه */
    .pd-mobile-bar {
        display: none;
    }

    @media (max-width: 991.98px) {
        .pd-gallery {
            position: static;
        }

        .pd-meta-row {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 767.98px) {
        body {
            background: #fff;
        }

        .pd-page {
            padding-top: 0;
            padding-bottom: 96px;
        }

        .pd-shell {
            border: 0;
            box-shadow: none;
            border-radius: 0;
            padding: 0 0 18px;
            margin-left: -12px;
            margin-right: -12px;
        }

        .pd-main-image {
            border-radius: 0 0 28px 28px;
            border-left: 0;
            border-right: 0;
            border-top: 0;
            aspect-ratio: 1 / 1.02;
        }

        .pd-main-image img {
            padding: 14px;
        }

        .pd-image-badge {
            top: 14px;
            right: 14px;
        }

        .pd-thumbs {
            padding: 12px 12px 2px;
            margin-top: 0;
        }

        .pd-thumb {
            flex-basis: 68px;
            border-radius: 14px;
        }

        .pd-summary {
            padding: 18px 16px 0;
        }

        .pd-title {
            font-size: 1.35rem;
            line-height: 1.7;
            margin-top: 14px;
        }

        .pd-short-desc {
            font-size: 0.88rem;
            line-height: 2;
        }

        .pd-meta-row {
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin: 18px 0;
        }

        .pd-meta-item {
            min-height: 72px;
            padding: 10px 8px;
            border-radius: 14px;
        }

        .pd-meta-title {
            font-size: 0.7rem;
        }

        .pd-meta-text {
            font-size: 0.66rem;
        }

        .pd-variants {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            overflow: visible;
            padding-bottom: 0;
        }

        .pd-variants::-webkit-scrollbar {
            display: none;
        }

        .pd-variant {
            min-width: 0;
        }

        .pd-variant label {
            width: 100%;
            min-width: 0;
            min-height: 46px;
            padding: 10px 8px;
            font-size: 0.8rem;
            line-height: 1.6;
            white-space: normal;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border-radius: 14px;
        }

        .pd-buy-card {
            display: block;
            margin-top: 18px;
            padding: 16px;
            border-radius: 18px;
            box-shadow: none;
            background: #fff;
        }

        .pd-buy-card .row {
            gap: 14px;
        }

        .pd-buy-card .col-md-6 {
            width: 100%;
        }

        .pd-price-label {
            font-size: 0.74rem;
        }

        .pd-price strong {
            font-size: 1.55rem;
        }

        .pd-price span {
            font-size: 0.78rem;
        }

        .pd-buy-btn {
            min-height: 48px;
            border-radius: 14px;
            font-size: 0.9rem;
        }

        /* فعال‌سازی نوار خرید موبایل در عرض‌های پایین */
        .pd-mobile-bar {
            display: flex !important;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: #fff;
            box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
            border-top: 1px solid var(--border);
            padding: 12px 16px;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .pd-mobile-price-label {
            font-size: 0.7rem;
            color: var(--muted);
        }

        .pd-mobile-price {
            font-size: 1.3rem;
            font-weight: 900;
            color: var(--amber);
        }

        .pd-mobile-price-unit {
            font-size: 0.75rem;
            color: var(--muted);
        }
    }