:root {
            --gp-v47-purple: #4b1684;
            --gp-v47-violet: #920ab6;
            --gp-v47-pink: #e10b79;
            --gp-v47-cyan: #0ba6b8;
            --gp-v47-lime: #d8f512;
            --gp-v47-red: #ef394e;
            --gp-v47-heart: #e10b45;
            --gp-v47-ink: #1f1630;
            --gp-v47-muted: rgba(31,22,48,.66);
            --gp-v47-soft: #f7f3fb;
            --gp-v47-card: rgba(255,255,255,.96);
            --gp-v47-border: rgba(75,22,132,.10);
            --gp-v47-shadow: 0 22px 58px rgba(74,18,107,.10);
        }

        .gp-product-page-v47 {
            direction: rtl;
            overflow: hidden;
        }

        .gp-product-progress {
            position: fixed;
            top: 0;
            right: 0;
            width: 0;
            height: 4px;
            z-index: 2147482900;
            background: linear-gradient(90deg, #d8f512, #920ab6, #e10b79);
            box-shadow: 0 6px 18px rgba(146,10,182,.22);
            transition: width .08s linear;
        }

        .gp-pdp-shell {
            display: grid;
            grid-template-columns: minmax(300px, 430px) minmax(0, 1fr) minmax(270px, 340px);
            gap: 18px;
            align-items: start;
            margin: 24px auto 22px;
        }

        .gp-pdp-card,
        .gp-pdp-buy-card,
        .gp-pdp-section-card {
            border-radius: 28px;
            background: var(--gp-v47-card);
            border: 1px solid var(--gp-v47-border);
            box-shadow: var(--gp-v47-shadow);
            backdrop-filter: blur(16px);
        }

        .gp-pdp-gallery-card {
            position: relative;
            padding: 18px;
            overflow: hidden;
        }

            .gp-pdp-gallery-card::before {
                content: "";
                position: absolute;
                inset: 0;
                background: radial-gradient(circle at 12% 8%, rgba(216,245,18,.14), transparent 24%), radial-gradient(circle at 92% 18%, rgba(146,10,182,.10), transparent 28%);
                pointer-events: none;
            }

        .gp-gallery-actions {
            position: absolute;
            top: 18px;
            right: 18px;
            z-index: 4;
            display: grid;
            gap: 9px;
        }

        .gp-gallery-action {
            width: 42px;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(75,22,132,.12);
            border-radius: 16px;
            background: rgba(255,255,255,.88);
            color: var(--gp-v47-purple) !important;
            font-size: 17px;
            font-weight: 1000;
            cursor: pointer;
            box-shadow: 0 12px 30px rgba(74,18,107,.08);
            transition: transform .18s ease, background .18s ease;
        }

            .gp-gallery-action:hover {
                transform: translateY(-2px);
                background: #fff;
            }

        .gp-heart-icon {
            color: var(--gp-v47-heart) !important;
            font-family: Tahoma, Arial, sans-serif !important;
            font-size: 19px !important;
            line-height: 1 !important;
        }

        .gp-main-product-image {
            position: relative;
            z-index: 2;
            min-height: 430px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 42px 18px 22px;
            border-radius: 24px;
            background: linear-gradient(135deg, #fff, #fbf8ff);
        }

            .gp-main-product-image img {
                width: 100%;
                max-height: 420px;
                object-fit: contain;
                display: block;
                transition: transform .28s ease;
                filter: drop-shadow(0 24px 34px rgba(31,22,48,.12));
            }

            .gp-main-product-image:hover img {
                transform: scale(1.035);
            }

        .gp-product-thumbs {
            position: relative;
            z-index: 3;
            display: flex;
            gap: 10px;
            margin-top: 14px;
            overflow-x: auto;
            padding: 3px 2px 6px;
            -webkit-overflow-scrolling: touch;
        }

        .gp-product-thumb {
            width: 76px;
            height: 76px;
            min-width: 76px;
            border: 2px solid transparent;
            border-radius: 19px;
            padding: 5px;
            background: #fff;
            cursor: pointer;
            box-shadow: 0 12px 30px rgba(74,18,107,.08);
            transition: border-color .18s ease, transform .18s ease;
        }

            .gp-product-thumb.is-active {
                border-color: var(--gp-v47-red);
                transform: translateY(-2px);
            }

            .gp-product-thumb img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                display: block;
                border-radius: 14px;
            }

        .gp-pdp-info-card {
            padding: 20px;
        }

        .gp-pdp-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            color: var(--gp-v47-muted) !important;
            font-size: 12px;
            font-weight: 900;
            margin-bottom: 12px;
        }

            .gp-pdp-breadcrumb a {
                color: var(--gp-v47-purple) !important;
                text-decoration: none !important;
                font-weight: 1000;
            }

        .gp-product-tag-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .gp-product-tag {
            min-height: 30px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0 10px;
            border-radius: 999px;
            background: rgba(146,10,182,.075);
            color: #6420a0 !important;
            font-size: 12px;
            font-weight: 1000;
        }

            .gp-product-tag.is-red {
                background: rgba(239,57,78,.09);
                color: #d9223b !important;
            }

        .gp-pdp-title {
            margin: 0;
            color: var(--gp-v47-ink) !important;
            font-size: clamp(22px, 3.1vw, 38px);
            font-weight: 1000;
            line-height: 1.55 !important;
            letter-spacing: -.02em;
        }

        .gp-pdp-english {
            margin: 8px 0 14px;
            color: var(--gp-v47-muted) !important;
            font-size: 14px;
            font-weight: 950;
            line-height: 1.8 !important;
            direction: ltr;
            text-align: right;
        }

        .gp-pdp-summary {
            margin: 0 0 18px;
            color: var(--gp-v47-muted) !important;
            font-size: 14px;
            font-weight: 850;
            line-height: 2.15;
        }

        .gp-color-choice {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin: 16px 0 18px;
            padding: 14px;
            border-radius: 22px;
            background: rgba(248,245,252,.78);
            border: 1px solid rgba(75,22,132,.08);
        }

            .gp-color-choice strong {
                color: var(--gp-v47-ink) !important;
                font-size: 14px;
                font-weight: 1000;
            }

        .gp-color-dot {
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            border: 2px solid rgba(31,22,48,.10);
            background: #111;
            box-shadow: inset 0 0 0 5px #fff;
        }

            .gp-color-dot::after {
                content: "✓";
                color: #fff;
                font-size: 13px;
                font-weight: 1000;
            }

        .gp-feature-mini-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0,1fr));
            gap: 10px;
            margin-top: 14px;
        }

        .gp-feature-mini {
            min-height: 92px;
            padding: 12px;
            border-radius: 20px;
            background: rgba(255,255,255,.72);
            border: 1px solid rgba(75,22,132,.08);
        }

            .gp-feature-mini span {
                display: block;
                color: var(--gp-v47-muted) !important;
                font-size: 11px;
                font-weight: 900;
                line-height: 1.8;
            }

            .gp-feature-mini strong {
                display: block;
                margin-top: 5px;
                color: var(--gp-v47-ink) !important;
                font-size: 13px;
                font-weight: 1000;
                line-height: 1.8;
            }

        .gp-pdp-buy-card {
            position: sticky;
            top: 18px;
            padding: 18px;
            overflow: hidden;
        }

            .gp-pdp-buy-card::before {
                content: "";
                position: absolute;
                inset: 0;
                background: radial-gradient(circle at 12% 0%, rgba(239,57,78,.10), transparent 26%), radial-gradient(circle at 100% 22%, rgba(216,245,18,.18), transparent 30%);
                pointer-events: none;
            }

        .gp-buy-inner {
            position: relative;
            z-index: 2;
        }

        .gp-special-label {
            min-height: 38px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 14px;
            padding: 0 12px;
            border-radius: 16px;
            background: rgba(239,57,78,.09);
            color: #d9223b !important;
            font-weight: 1000;
        }

            .gp-special-label small {
                direction: ltr;
                unicode-bidi: isolate;
                font-size: 12px;
                font-weight: 950;
            }

        .gp-seller-box {
            padding: 14px;
            border-radius: 20px;
            background: rgba(255,255,255,.76);
            border: 1px solid rgba(75,22,132,.08);
            margin-bottom: 12px;
        }

            .gp-seller-box strong {
                display: block;
                color: var(--gp-v47-ink) !important;
                font-size: 15px;
                font-weight: 1000;
                line-height: 1.8;
            }

            .gp-seller-box span {
                display: block;
                margin-top: 5px;
                color: var(--gp-v47-muted) !important;
                font-size: 12px;
                font-weight: 850;
                line-height: 1.9;
            }

        .gp-consult-note {
            padding: 12px;
            border-radius: 18px;
            background: rgba(146,10,182,.06);
            color: var(--gp-v47-muted) !important;
            font-size: 12px;
            font-weight: 900;
            line-height: 2;
            margin-bottom: 12px;
        }

        .gp-buy-actions {
            display: grid;
            gap: 9px;
        }

        .gp-buy-btn {
            min-height: 52px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border-radius: 18px;
            border: 0;
            text-decoration: none !important;
            font-weight: 1000;
            cursor: pointer;
        }

            .gp-buy-btn.primary {
                background: linear-gradient(135deg, var(--gp-v47-red), #ff6a7a);
                color: #fff !important;
                box-shadow: 0 18px 38px rgba(239,57,78,.22);
            }

            .gp-buy-btn.secondary {
                background: #fff;
                color: var(--gp-v47-purple) !important;
                border: 1px solid rgba(75,22,132,.12);
            }

        .gp-service-perks {
            display: grid;
            grid-template-columns: repeat(5, minmax(0,1fr));
            gap: 10px;
            margin: 0 auto 22px;
            padding: 16px;
            border-radius: 28px;
            background: var(--gp-v47-card);
            border: 1px solid var(--gp-v47-border);
            box-shadow: var(--gp-v47-shadow);
        }

        .gp-service-perk {
            min-height: 74px;
            display: grid;
            place-items: center;
            gap: 5px;
            text-align: center;
            color: var(--gp-v47-muted) !important;
            font-size: 12px;
            font-weight: 950;
        }

            .gp-service-perk i {
                width: 38px;
                height: 38px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border-radius: 15px;
                background: rgba(146,10,182,.08);
                color: var(--gp-v47-purple);
                font-style: normal;
                font-size: 18px;
            }

        .gp-sticky-tabs-wrap {
            position: sticky;
            top: 0;
            z-index: 90;
            margin-bottom: 18px;
            background: rgba(255,255,255,.76);
            backdrop-filter: blur(14px);
            border-bottom: 1px solid rgba(75,22,132,.08);
        }

        .gp-sticky-tabs {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 10px 2px;
            scrollbar-width: none;
        }

            .gp-sticky-tabs::-webkit-scrollbar {
                display: none;
            }

        .gp-tab-link {
            min-height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            padding: 0 16px;
            border-radius: 999px;
            color: var(--gp-v47-muted) !important;
            text-decoration: none !important;
            font-weight: 1000;
            border: 1px solid transparent;
        }

            .gp-tab-link.is-active,
            .gp-tab-link:hover {
                color: #d9223b !important;
                background: rgba(239,57,78,.08);
                border-color: rgba(239,57,78,.12);
            }

        .gp-pdp-section-card {
            padding: clamp(18px, 2.4vw, 30px);
            margin-bottom: 24px;
        }

        .gp-section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }

            .gp-section-title h2 {
                margin: 0;
                color: var(--gp-v47-ink) !important;
                font-size: clamp(21px, 2.5vw, 34px);
                font-weight: 1000;
                line-height: 1.6 !important;
            }

                .gp-section-title h2::after {
                    content: "";
                    width: 52px;
                    height: 4px;
                    display: block;
                    margin-top: 8px;
                    border-radius: 999px;
                    background: linear-gradient(90deg, var(--gp-v47-red), var(--gp-v47-violet));
                }

            .gp-section-title a {
                color: var(--gp-v47-purple) !important;
                text-decoration: none !important;
                font-size: 13px;
                font-weight: 1000;
            }

        .gp-product-reading-tools {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin: 0 auto 22px;
            max-width: 860px;
            padding: 12px;
            border-radius: 24px;
            background: rgba(146,10,182,.055);
            border: 1px solid rgba(75,22,132,.08);
        }

        .gp-product-tool-btn {
            min-height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0 13px;
            border: 0;
            border-radius: 999px;
            background: #fff;
            color: #6420a0 !important;
            font-size: 12px;
            font-weight: 1000;
            box-shadow: 0 12px 28px rgba(74,18,107,.07);
            cursor: pointer;
            text-decoration: none !important;
        }

        .gp-product-content-wrap {
            position: relative;
        }

        .gp-product-content {
            max-width: 900px;
            margin: 0 auto;
            color: var(--gp-v47-ink) !important;
            font-size: 16px;
            font-weight: 650;
            line-height: 2.25;
        }

            .gp-product-content * {
                max-width: 100%;
            }

            .gp-product-content.is-collapsed {
                max-height: 1150px;
                overflow: hidden;
            }

        .gp-product-content-wrap.is-collapsed::after {
            content: "";
            position: absolute;
            right: 0;
            left: 0;
            bottom: 0;
            height: 240px;
            pointer-events: none;
            background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.98) 74%);
            z-index: 4;
        }

        .gp-product-content p,
        .gp-product-content li {
            color: var(--gp-v47-muted) !important;
            line-height: 2.25 !important;
            font-size: 16px !important;
        }

        .gp-product-content > p {
            max-width: 780px;
            margin-right: auto !important;
            margin-left: auto !important;
            text-align: justify !important;
        }

        .gp-product-content h2,
        .gp-product-content h3,
        .gp-product-content h4 {
            color: var(--gp-v47-ink) !important;
            font-weight: 1000 !important;
            line-height: 1.7 !important;
            margin-top: 28px !important;
        }

        .gp-product-content > h2,
        .gp-product-content > h3 {
            max-width: 860px;
            margin-right: auto !important;
            margin-left: auto !important;
            padding: 16px 20px !important;
            border-radius: 26px;
            background: radial-gradient(circle at 12% 16%, rgba(216,245,18,.16), transparent 30%), linear-gradient(135deg, rgba(146,10,182,.085), rgba(255,255,255,.72));
            border: 1px solid rgba(75,22,132,.08);
            text-align: center !important;
        }

            .gp-product-content > h2::before,
            .gp-product-content > h3::before {
                content: "";
                width: 36px;
                height: 5px;
                display: block;
                margin: 0 auto 10px;
                border-radius: 999px;
                background: linear-gradient(90deg, #d8f512, #920ab6);
            }

        .gp-product-content img {
            border-radius: 24px;
            box-shadow: 0 16px 38px rgba(74,18,107,.10);
            height: auto !important;
        }

        .gp-product-content ul,
        .gp-product-content ol {
            max-width: 780px;
            margin: 18px auto !important;
            padding: 18px 42px 18px 18px !important;
            border-radius: 24px;
            background: rgba(146,10,182,.045);
            border: 1px solid rgba(75,22,132,.07);
        }

        .gp-product-content blockquote {
            position: relative;
            margin: 24px 0 !important;
            padding: 18px 22px !important;
            border: 0 !important;
            border-right: 5px solid #920ab6 !important;
            border-radius: 24px !important;
            background: linear-gradient(135deg, rgba(146,10,182,.08), rgba(225,11,121,.06)) !important;
            color: var(--gp-v47-ink) !important;
            font-weight: 850 !important;
            line-height: 2.1 !important;
        }

        .gp-product-content a {
            color: #7b16a4 !important;
            font-weight: 950 !important;
            text-decoration: none !important;
            border-bottom: 1px dashed rgba(146,10,182,.34);
        }

        .gp-product-content .gp-table-scroll {
            position: relative;
            width: 100%;
            max-width: 100%;
            margin: 28px 0 !important;
            padding: 42px 0 0 !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            border-radius: 28px !important;
            border: 1px solid rgba(75,22,132,.11) !important;
            background: radial-gradient(circle at 12% 0%, rgba(216,245,18,.12), transparent 26%), linear-gradient(135deg, rgba(255,255,255,.96), rgba(252,248,255,.90)) !important;
            box-shadow: 0 20px 54px rgba(74,18,107,.11) !important;
            -webkit-overflow-scrolling: touch !important;
        }

        .gp-product-content .gp-table-hint {
            position: absolute;
            top: 9px;
            right: 12px;
            left: 12px;
            min-height: 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 0 10px;
            border-radius: 999px;
            background: rgba(255,255,255,.70);
            border: 1px solid rgba(75,22,132,.08);
            color: rgba(32,20,45,.68) !important;
            font-size: 12px !important;
            font-weight: 950 !important;
            pointer-events: none;
            backdrop-filter: blur(12px);
            z-index: 3;
        }

            .gp-product-content .gp-table-hint::before {
                content: "جدول مشخصات";
                color: #4b1684;
                font-weight: 1000;
            }

            .gp-product-content .gp-table-hint::after {
                content: "برای مشاهده کامل، جدول را بکشید ←";
                color: rgba(32,20,45,.58);
                font-weight: 900;
            }

        .gp-product-content table {
            width: max-content !important;
            min-width: 100% !important;
            max-width: none !important;
            margin: 0 !important;
            border-collapse: separate !important;
            border-spacing: 0 !important;
            table-layout: auto !important;
            background: transparent !important;
            direction: rtl !important;
        }

            .gp-product-content table th,
            .gp-product-content table td {
                min-width: 210px !important;
                max-width: 360px !important;
                padding: 18px 18px !important;
                border: 0 !important;
                border-bottom: 1px solid rgba(75,22,132,.085) !important;
                border-left: 1px solid rgba(75,22,132,.065) !important;
                color: var(--gp-v47-ink) !important;
                font-size: 14.5px !important;
                font-weight: 850 !important;
                line-height: 2.15 !important;
                vertical-align: top !important;
                text-align: right !important;
                white-space: normal !important;
                overflow-wrap: break-word !important;
            }

            .gp-product-content table th,
            .gp-product-content table thead td {
                background: radial-gradient(circle at 12% 18%, rgba(216,245,18,.18), transparent 28%), linear-gradient(135deg, rgba(75,22,132,.14), rgba(146,10,182,.10)) !important;
                color: #4b1684 !important;
                font-weight: 1000 !important;
            }

            .gp-product-content table tbody tr:nth-child(odd) td {
                background: rgba(255,255,255,.76) !important;
            }

            .gp-product-content table tbody tr:nth-child(even) td,
            .gp-product-content table tr:nth-child(even) td {
                background: rgba(146,10,182,.045) !important;
            }

            .gp-product-content table tbody tr:hover td,
            .gp-product-content table tr:hover td {
                background: rgba(216,245,18,.16) !important;
            }

        .gp-read-more-box {
            display: none;
            position: relative;
            z-index: 5;
            margin: -90px auto 8px;
            width: min(520px, 100%);
            padding: 18px;
            border-radius: 28px;
            background: rgba(255,255,255,.84);
            border: 1px solid rgba(75,22,132,.10);
            box-shadow: 0 22px 60px rgba(74,18,107,.15);
            backdrop-filter: blur(16px);
            text-align: center;
        }

            .gp-read-more-box.is-visible {
                display: block;
            }

            .gp-read-more-box strong {
                display: block;
                color: var(--gp-v47-ink) !important;
                font-size: 16px;
                font-weight: 1000;
                line-height: 1.8;
                margin-bottom: 6px;
            }

            .gp-read-more-box span {
                display: block;
                color: var(--gp-v47-muted) !important;
                font-size: 13px;
                font-weight: 850;
                line-height: 2;
                margin-bottom: 12px;
            }

        .gp-read-more-btn {
            min-height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 220px;
            border: 0;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--gp-v47-purple), var(--gp-v47-violet), var(--gp-v47-pink));
            color: #fff !important;
            font-weight: 1000;
            box-shadow: 0 16px 34px rgba(146,10,182,.22);
            cursor: pointer;
        }

        .gp-related-scroll {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: minmax(190px, 230px);
            gap: 12px;
            overflow-x: auto;
            padding: 4px 2px 10px;
            scroll-snap-type: x proximity;
            -webkit-overflow-scrolling: touch;
        }

        .gp-related-product {
            scroll-snap-align: start;
            display: flex;
            flex-direction: column;
            min-height: 290px;
            padding: 12px;
            border-radius: 22px;
            background: rgba(255,255,255,.72);
            border: 1px solid rgba(75,22,132,.08);
            text-decoration: none !important;
            transition: transform .18s ease, box-shadow .18s ease;
        }

            .gp-related-product:hover {
                transform: translateY(-4px);
                box-shadow: 0 20px 48px rgba(74,18,107,.12);
            }

            .gp-related-product img {
                width: 100%;
                height: 150px;
                object-fit: contain;
                border-radius: 18px;
                background: #fff;
                margin-bottom: 8px;
            }

            .gp-related-product strong {
                color: var(--gp-v47-ink) !important;
                font-size: 13px;
                font-weight: 1000;
                line-height: 1.8;
            }

            .gp-related-product span {
                margin-top: auto;
                color: var(--gp-v47-red) !important;
                font-size: 12px;
                font-weight: 1000;
            }

        .gp-comment-list {
            display: grid;
            gap: 12px;
            margin-bottom: 22px;
        }

        .gp-comment-item {
            display: grid;
            grid-template-columns: 54px minmax(0,1fr);
            gap: 12px;
            padding: 14px;
            border-radius: 24px;
            background: rgba(255,255,255,.66);
            border: 1px solid rgba(75,22,132,.08);
        }

            .gp-comment-item img {
                width: 54px;
                height: 54px;
                border-radius: 18px;
                object-fit: cover;
            }

            .gp-comment-item strong {
                display: block;
                color: var(--gp-v47-ink) !important;
                font-weight: 1000;
                line-height: 1.7;
            }

            .gp-comment-item small {
                display: block;
                color: var(--gp-v47-muted) !important;
                font-weight: 800;
                margin-top: 2px;
            }

            .gp-comment-item p {
                margin: 7px 0 0;
                color: var(--gp-v47-muted) !important;
                font-weight: 850;
                line-height: 2;
            }

        .gp-comment-form {
            display: grid;
            gap: 10px;
        }

            .gp-comment-form input,
            .gp-comment-form textarea {
                width: 100%;
                border: 1px solid rgba(75,22,132,.12) !important;
                border-radius: 20px !important;
                background: rgba(255,255,255,.82) !important;
                color: var(--gp-v47-ink) !important;
                font-size: 14px !important;
                font-weight: 850 !important;
                outline: 0 !important;
                box-shadow: inset 0 1px 0 rgba(255,255,255,.70) !important;
            }

            .gp-comment-form input {
                height: 54px;
                padding: 0 16px !important;
            }

            .gp-comment-form textarea {
                min-height: 150px;
                padding: 16px !important;
                line-height: 2;
                resize: vertical;
            }

            .gp-comment-form button {
                min-height: 54px;
                border: 0;
                border-radius: 20px;
                background: linear-gradient(135deg, var(--gp-v47-purple), var(--gp-v47-violet), var(--gp-v47-pink));
                color: #fff !important;
                font-weight: 1000;
                box-shadow: 0 18px 42px rgba(146,10,182,.20);
            }

        .gp-product-toast {
            position: fixed;
            right: 18px;
            bottom: 92px;
            z-index: 9999;
            min-height: 48px;
            max-width: min(330px, calc(100vw - 36px));
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 18px;
            border-radius: 999px;
            background: rgba(29,20,48,.92);
            color: #fff;
            font-weight: 950;
            box-shadow: 0 18px 42px rgba(0,0,0,.22);
            transform: translateY(24px);
            opacity: 0;
            pointer-events: none;
            transition: transform .22s ease, opacity .22s ease;
        }

            .gp-product-toast.is-visible {
                opacity: 1;
                transform: translateY(0);
            }

        .gp-back-to-top {
            position: fixed;
            left: auto;
            right: 18px;
            bottom: 24px;
            z-index: 9998;
            width: 48px;
            height: 48px;
            display: none;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 18px;
            background: linear-gradient(135deg, var(--gp-v47-purple), var(--gp-v47-violet));
            color: #fff !important;
            font-size: 20px;
            font-weight: 1000;
            box-shadow: 0 18px 42px rgba(74,18,107,.22);
            cursor: pointer;
        }

            .gp-back-to-top.is-visible {
                display: inline-flex;
            }


        /* V49: Auto-moving related products showcase, seamless loop + safe mini copy */
        .gp-related-showcase {
            position: relative;
            overflow: hidden;
            padding: 8px 2px 14px;
            border-radius: 28px;
            isolation: isolate;
        }

            .gp-related-showcase::before,
            .gp-related-showcase::after {
                content: "";
                position: absolute;
                top: 0;
                bottom: 0;
                width: 90px;
                z-index: 5;
                pointer-events: none;
            }

            .gp-related-showcase::before {
                right: 0;
                background: linear-gradient(90deg, rgba(255,255,255,0), var(--gp-v47-card));
            }

            .gp-related-showcase::after {
                left: 0;
                background: linear-gradient(270deg, rgba(255,255,255,0), var(--gp-v47-card));
            }

        .gp-related-track {
            display: flex;
            gap: 18px;
            width: max-content;
            direction: ltr;
            animation: gpV48RelatedMove 58s linear infinite;
            will-change: transform;
        }

        .gp-related-showcase:hover .gp-related-track {
            animation-play-state: paused;
        }

        @@keyframes gpV48RelatedMove {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(-12.5%);
            }
        }


        .gp-related-track > * {
            flex-shrink: 0 !important;
        }


        .gp-marquee-product {
            position: relative;
            width: 260px;
            height: 315px;
            flex: 0 0 260px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            overflow: hidden;
            border: 1px solid rgba(75,22,132,.10);
            border-radius: 34px;
            background: radial-gradient(circle at 18% 18%, rgba(216,245,18,.16), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,245,252,.92));
            color: var(--gp-v47-ink) !important;
            text-decoration: none !important;
            box-shadow: 0 20px 52px rgba(74,18,107,.10);
            scroll-snap-align: start;
            direction: rtl;
            transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
        }

            .gp-marquee-product:nth-child(4n+1) {
                border-radius: 120px 34px 34px 120px;
            }

            .gp-marquee-product:nth-child(4n+2) {
                border-radius: 34px 120px 34px 120px;
                background: radial-gradient(circle at 82% 18%, rgba(239,57,78,.10), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.96), rgba(253,248,251,.94));
            }

            .gp-marquee-product:nth-child(4n+3) {
                border-radius: 36px;
                background: radial-gradient(circle at 25% 18%, rgba(11,166,184,.13), transparent 30%), linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,252,253,.94));
            }

            .gp-marquee-product:nth-child(4n+4) {
                border-radius: 34px 34px 120px 120px;
            }

            .gp-marquee-product:hover {
                transform: translateY(-8px) scale(1.025);
                box-shadow: 0 32px 78px rgba(74,18,107,.18);
                border-color: rgba(146,10,182,.20);
            }

        .gp-marquee-product-media {
            position: absolute;
            inset: 16px 16px 112px 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: inherit;
            overflow: hidden;
        }

            .gp-marquee-product-media img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                display: block;
                filter: drop-shadow(0 18px 24px rgba(31,22,48,.10));
                transition: transform .32s ease, filter .32s ease;
            }

        .gp-marquee-product:hover .gp-marquee-product-media img {
            transform: scale(1.08) rotate(-1deg);
            filter: drop-shadow(0 24px 30px rgba(31,22,48,.16));
        }

        .gp-marquee-product-body {
            position: relative;
            z-index: 2;
            min-height: 116px;
            padding: 16px;
            background: linear-gradient(180deg, rgba(255,255,255,.64), rgba(255,255,255,.95));
            backdrop-filter: blur(14px);
            border-top: 1px solid rgba(75,22,132,.08);
        }

        .gp-marquee-product-badge {
            position: absolute;
            top: -18px;
            right: 16px;
            min-height: 30px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 11px;
            border-radius: 999px;
            background: #fff;
            color: var(--gp-v47-red) !important;
            font-size: 11px;
            font-weight: 1000;
            box-shadow: 0 12px 28px rgba(239,57,78,.12);
        }

        .gp-marquee-product strong {
            display: block;
            color: var(--gp-v47-ink) !important;
            font-size: 14px;
            font-weight: 1000;
            line-height: 1.85;
            padding-top: 4px;
        }

        .gp-marquee-product-desc {
            position: absolute;
            inset: auto 12px 12px 12px;
            min-height: 74px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            border-radius: 22px;
            background: rgba(31,22,48,.88);
            color: #fff !important;
            font-size: 12px;
            font-weight: 850;
            line-height: 1.9;
            text-align: center;
            opacity: 0;
            transform: translateY(18px);
            pointer-events: none;
            transition: opacity .24s ease, transform .24s ease;
            z-index: 4;
        }

        .gp-marquee-product:hover .gp-marquee-product-desc {
            opacity: 1;
            transform: translateY(0);
        }

        .gp-related-mini-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 18px 0 10px;
            color: var(--gp-v47-muted) !important;
            font-size: 13px;
            font-weight: 1000;
        }

            .gp-related-mini-title::after {
                content: "";
                flex: 1;
                height: 1px;
                background: linear-gradient(90deg, rgba(75,22,132,.14), transparent);
            }

        .gp-gallery-action.is-mini-copied {
            background: rgba(11,166,111,.11) !important;
            color: #0ba66f !important;
            border-color: rgba(11,166,111,.18) !important;
            font-size: 18px !important;
        }

        @@media (prefers-reduced-motion: reduce) {
            .gp-related-track {
                animation: none !important;
            }
        }

        html.gp-dark-mode .gp-related-showcase::before {
            background: linear-gradient(90deg, rgba(24,24,40,0), var(--gp-v47-card));
        }

        html.gp-dark-mode .gp-related-showcase::after {
            background: linear-gradient(270deg, rgba(24,24,40,0), var(--gp-v47-card));
        }

        html.gp-dark-mode .gp-marquee-product {
            background: radial-gradient(circle at 18% 18%, rgba(216,245,18,.08), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.045)) !important;
            border-color: rgba(255,255,255,.10) !important;
        }

        html.gp-dark-mode .gp-marquee-product-body {
            background: linear-gradient(180deg, rgba(24,24,40,.58), rgba(24,24,40,.94)) !important;
            border-top-color: rgba(255,255,255,.10) !important;
        }

        html.gp-dark-mode .gp-marquee-product-badge {
            background: rgba(255,255,255,.10) !important;
            color: #ff8494 !important;
        }

        html.gp-dark-mode .gp-marquee-product-desc {
            background: rgba(8,8,18,.92) !important;
        }

        @@media(max-width: 768px) {
            .gp-related-showcase::before,
            .gp-related-showcase::after {
                width: 44px;
            }

            .gp-related-track {
                animation-duration: 42s;
                gap: 12px;
            }

            .gp-marquee-product {
                width: 220px;
                height: 285px;
                flex-basis: 220px;
            }

            .gp-marquee-product-media {
                inset: 14px 14px 104px 14px;
            }

            .gp-marquee-product-body {
                min-height: 106px;
                padding: 14px;
            }

            .gp-marquee-product strong {
                font-size: 13px;
            }
        }



        /* V50: stronger tables inside product description */
        .gp-product-content .gp-table-scroll {
            max-width: 100% !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            overscroll-behavior-inline: contain !important;
        }

        .gp-product-content table,
        .gp-product-content table[style],
        .gp-product-content table.MsoNormalTable {
            width: max-content !important;
            min-width: 100% !important;
            max-width: none !important;
            table-layout: auto !important;
            border-collapse: separate !important;
            border-spacing: 0 !important;
        }

            .gp-product-content table * {
                box-sizing: border-box !important;
            }

            .gp-product-content table th,
            .gp-product-content table td,
            .gp-product-content table th[style],
            .gp-product-content table td[style] {
                min-width: 210px !important;
                max-width: 370px !important;
                white-space: normal !important;
                word-break: normal !important;
                overflow-wrap: break-word !important;
                vertical-align: top !important;
            }

            .gp-product-content table p,
            .gp-product-content table span,
            .gp-product-content table div {
                color: inherit !important;
                font-family: inherit !important;
                font-size: inherit !important;
                line-height: inherit !important;
                margin: 0 !important;
                white-space: normal !important;
            }

            .gp-product-content table img {
                max-width: 180px !important;
                height: auto !important;
                object-fit: contain !important;
            }

        @@media(max-width: 768px) {
            .gp-product-content .gp-table-scroll {
                width: calc(100% + 24px) !important;
                max-width: calc(100% + 24px) !important;
            }

            .gp-product-content table th,
            .gp-product-content table td,
            .gp-product-content table th[style],
            .gp-product-content table td[style] {
                min-width: 225px !important;
                max-width: 285px !important;
            }
        }



        /* V51: RTL related showcase alignment fix */
        .gp-related-showcase {
            direction: rtl !important;
            width: 100% !important;
        }

        .gp-related-track {
            direction: rtl !important;
            margin-right: 0 !important;
            margin-left: auto !important;
            justify-content: flex-start !important;
            transform-origin: right center !important;
        }

            .gp-related-track > * {
                flex-shrink: 0 !important;
            }

        .gp-related-showcase::before {
            right: auto !important;
            left: 0 !important;
            background: linear-gradient(270deg, rgba(255,255,255,0), var(--gp-v47-card)) !important;
        }

        .gp-related-showcase::after {
            left: auto !important;
            right: 0 !important;
            background: linear-gradient(90deg, rgba(255,255,255,0), var(--gp-v47-card)) !important;
        }

        @@keyframes gpV48RelatedMove {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(12.5%);
            }
        }

        html.gp-dark-mode .gp-related-showcase::before {
            background: linear-gradient(270deg, rgba(24,24,40,0), var(--gp-v47-card)) !important;
        }

        html.gp-dark-mode .gp-related-showcase::after {
            background: linear-gradient(90deg, rgba(24,24,40,0), var(--gp-v47-card)) !important;
        }

        @@media(max-width: 768px) {
            .gp-related-track {
                margin-right: 0 !important;
                margin-left: auto !important;
            }
        }


        html.gp-dark-mode .gp-product-page-v47 {
            --gp-v47-ink: #f7f7fb;
            --gp-v47-muted: rgba(246,247,251,.72);
            --gp-v47-card: rgba(24,24,40,.90);
            --gp-v47-border: rgba(255,255,255,.10);
            --gp-v47-shadow: 0 24px 60px rgba(0,0,0,.20);
            --gp-v47-soft: rgba(255,255,255,.055);
        }

        html.gp-dark-mode .gp-pdp-card,
        html.gp-dark-mode .gp-pdp-buy-card,
        html.gp-dark-mode .gp-pdp-section-card {
            background: rgba(24,24,40,.90) !important;
            border-color: rgba(255,255,255,.10) !important;
        }

        html.gp-dark-mode .gp-main-product-image,
        html.gp-dark-mode .gp-main-product-image img,
        html.gp-dark-mode .gp-product-thumb,
        html.gp-dark-mode .gp-seller-box,
        html.gp-dark-mode .gp-feature-mini,
        html.gp-dark-mode .gp-related-product,
        html.gp-dark-mode .gp-comment-item,
        html.gp-dark-mode .gp-product-tool-btn,
        html.gp-dark-mode .gp-color-choice,
        html.gp-dark-mode .gp-consult-note,
        html.gp-dark-mode .gp-gallery-action {
            background: rgba(255,255,255,.075) !important;
            border-color: rgba(255,255,255,.10) !important;
            color: #fff !important;
        }

        html.gp-dark-mode .gp-sticky-tabs-wrap {
            background: rgba(15,15,28,.78) !important;
            border-bottom-color: rgba(255,255,255,.10) !important;
        }

        html.gp-dark-mode .gp-product-content-wrap.is-collapsed::after {
            background: linear-gradient(180deg, rgba(24,24,40,0), rgba(24,24,40,.98) 74%);
        }

        html.gp-dark-mode .gp-read-more-box {
            background: rgba(24,24,40,.86);
            border-color: rgba(255,255,255,.10);
            box-shadow: 0 22px 60px rgba(0,0,0,.25);
        }

        html.gp-dark-mode .gp-product-content > h2,
        html.gp-dark-mode .gp-product-content > h3,
        html.gp-dark-mode .gp-product-content ul,
        html.gp-dark-mode .gp-product-content ol {
            background: rgba(255,255,255,.055);
            border-color: rgba(255,255,255,.10);
        }

        html.gp-dark-mode .gp-product-content .gp-table-scroll {
            background: radial-gradient(circle at 12% 0%, rgba(216,245,18,.08), transparent 26%), linear-gradient(135deg, rgba(24,24,40,.94), rgba(20,20,34,.90)) !important;
            border-color: rgba(255,255,255,.11) !important;
            box-shadow: 0 20px 54px rgba(0,0,0,.25) !important;
        }

        html.gp-dark-mode .gp-product-content .gp-table-hint {
            background: rgba(255,255,255,.08) !important;
            border-color: rgba(255,255,255,.10) !important;
            color: rgba(246,247,251,.76) !important;
        }

            html.gp-dark-mode .gp-product-content .gp-table-hint::before {
                color: #fff !important;
            }

            html.gp-dark-mode .gp-product-content .gp-table-hint::after {
                color: rgba(246,247,251,.62) !important;
            }

        html.gp-dark-mode .gp-product-content table th,
        html.gp-dark-mode .gp-product-content table thead td {
            background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(146,10,182,.15)) !important;
            color: #fff !important;
        }

        html.gp-dark-mode .gp-product-content table tbody tr:nth-child(odd) td {
            background: rgba(255,255,255,.055) !important;
        }

        html.gp-dark-mode .gp-product-content table tbody tr:nth-child(even) td,
        html.gp-dark-mode .gp-product-content table tr:nth-child(even) td {
            background: rgba(255,255,255,.035) !important;
        }

        html.gp-dark-mode .gp-comment-form input,
        html.gp-dark-mode .gp-comment-form textarea {
            background: rgba(255,255,255,.07) !important;
            border-color: rgba(255,255,255,.12) !important;
            color: #fff !important;
        }

        @@media(max-width: 1200px) {
            .gp-pdp-shell {
                grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
            }

            .gp-pdp-buy-card {
                grid-column: 1 / -1;
                position: relative;
                top: auto;
            }
        }

        @@media(max-width: 992px) {
            .gp-pdp-shell {
                grid-template-columns: 1fr;
            }

            .gp-service-perks {
                grid-template-columns: repeat(2, minmax(0,1fr));
            }

            .gp-pdp-buy-card {
                order: 3;
            }
        }

        @@media(max-width: 768px) {
            .gp-pdp-shell {
                margin-top: 12px;
                gap: 14px;
            }

            .gp-pdp-card,
            .gp-pdp-buy-card,
            .gp-pdp-section-card {
                border-radius: 24px;
            }

            .gp-pdp-info-card,
            .gp-pdp-gallery-card,
            .gp-pdp-buy-card,
            .gp-pdp-section-card {
                padding: 14px;
            }

            .gp-main-product-image {
                min-height: 300px;
                padding: 38px 10px 16px;
            }

                .gp-main-product-image img {
                    max-height: 290px;
                }

            .gp-feature-mini-grid {
                grid-template-columns: 1fr;
            }

            .gp-service-perks {
                grid-template-columns: 1fr;
            }

            .gp-buy-actions {
                grid-template-columns: 1fr;
            }

            .gp-product-reading-tools {
                padding: 10px;
            }

            .gp-product-tool-btn {
                width: 100%;
            }

            .gp-product-content.is-collapsed {
                max-height: 950px;
            }

            .gp-product-content > p {
                text-align: right !important;
            }

            .gp-product-content p,
            .gp-product-content li {
                font-size: 14px !important;
            }

            .gp-product-content .gp-table-scroll {
                margin-right: -12px !important;
                margin-left: -12px !important;
                padding-top: 45px !important;
                border-radius: 22px !important;
            }

            .gp-product-content .gp-table-hint {
                justify-content: center !important;
                text-align: center !important;
                min-height: 32px !important;
            }

                .gp-product-content .gp-table-hint::before {
                    content: "جدول";
                }

                .gp-product-content .gp-table-hint::after {
                    content: "برای دیدن کامل، به طرفین بکشید";
                }

            .gp-product-content table th,
            .gp-product-content table td {
                min-width: 230px !important;
                max-width: 280px !important;
                padding: 15px 14px !important;
                font-size: 13.5px !important;
                line-height: 2.05 !important;
            }

            .gp-read-more-box {
                margin-top: -78px;
                border-radius: 24px;
            }

            .gp-comment-item {
                grid-template-columns: 1fr;
                text-align: center;
            }

                .gp-comment-item img {
                    margin: 0 auto;
                }

            .gp-product-toast {
                left: 14px;
                right: 14px;
                bottom: 86px;
            }

            .gp-back-to-top {
                left: 14px;
                right: auto;
                bottom: 86px;
            }
        }

        /* V51: legacy related grid/scroll right alignment fallback */
        .gp-related-scroll {
            direction: rtl !important;
            justify-content: flex-start !important;
            margin-right: 0 !important;
            margin-left: auto !important;
        }
    
/* =========================================================
   V101 - modern product detail (gppd-*) — overrides all above
   ========================================================= */
.gppd {
    padding-bottom: 20px;
}

.gppd-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 850;
    color: rgba(46,22,70,.55);
}

    .gppd-crumb a {
        color: #7a0799 !important;
        text-decoration: none !important;
    }

        .gppd-crumb a:hover {
            color: #c60069 !important;
        }

    .gppd-crumb > span:last-of-type {
        color: #33003f;
    }

/* split top */
.gppd-top {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(16px, 2.4vw, 28px);
    align-items: start;
    margin-bottom: clamp(20px, 3vw, 32px);
}

.gppd-media {
    position: relative;
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #faf7fd;
    border: 1px solid rgba(146,10,182,.10);
    box-shadow: 0 22px 54px rgba(74,18,107,.12);
}

    .gppd-media img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

.gppd-off-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #c60069, #920ab6);
    color: #fff;
    line-height: 1.2;
    box-shadow: 0 12px 26px rgba(146,10,182,.40);
}

    .gppd-off-badge small {
        font-size: 9.5px;
        font-weight: 900;
    }

/* info panel */
.gppd-info {
    background: linear-gradient(150deg, rgba(255,255,255,.97), rgba(250,244,255,.94));
    border: 1px solid rgba(146,10,182,.12);
    border-radius: 28px;
    padding: clamp(20px, 2.6vw, 30px);
    box-shadow: 0 18px 44px rgba(74,18,107,.09);
}

.gppd-chip {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(146,10,182,.10), rgba(198,0,105,.08));
    color: #7a0799 !important;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none !important;
}

.gppd-info h1 {
    margin: 13px 0 14px;
    color: #33003f;
    font-size: clamp(21px, 2.8vw, 32px);
    font-weight: 990;
    line-height: 1.6;
}

.gppd-brand-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
}

.gppd-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(146,10,182,.09), rgba(198,0,105,.07));
    color: #6d0592 !important;
    font-size: 12px;
    font-weight: 930;
}

    .gppd-brand i {
        font-style: normal;
        color: #d1a90a;
    }

.gppd-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 930;
}

.gppd-stock.in {
    background: rgba(46, 184, 114, .12);
    color: #0d7a4f !important;
}

.gppd-stock.out {
    background: rgba(214, 51, 108, .10);
    color: #b3125c !important;
}

/* price box */
.gppd-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(209,244,17,.15), rgba(255,138,196,.08));
    border: 1px solid rgba(146,10,182,.16);
    margin-bottom: 18px;
}

    .gppd-price del {
        color: rgba(46,22,70,.45);
        font-size: 13px;
        font-weight: 850;
    }

    .gppd-price b {
        color: #33003f;
        font-size: clamp(20px, 2.4vw, 28px);
        font-weight: 990;
    }

        .gppd-price b small {
            font-size: 12px;
            font-weight: 850;
        }

.gppd-save {
    color: #0d7a4f;
    font-size: 12px;
    font-weight: 900;
}

/* actions */
.gppd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.gppd-call {
    flex: 1 1 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, #920ab6, #c60069);
    color: #fff !important;
    font-weight: 980;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 14px 32px rgba(146,10,182,.32);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .gppd-call:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 42px rgba(146,10,182,.40);
    }

.gppd-wa {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 16px;
    background: rgba(37, 211, 102, .12);
    border: 1.5px solid rgba(37, 211, 102, .45);
    color: #0d7a4f !important;
    font-weight: 950;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

    .gppd-wa:hover {
        background: #25d366;
        color: #fff !important;
        transform: translateY(-2px);
    }

.gppd-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

    .gppd-share > span {
        color: rgba(46,22,70,.55);
        font-size: 12px;
        font-weight: 900;
        margin-left: 3px;
    }

    .gppd-share a,
    .gppd-share .gppd-copy {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(146,10,182,.08);
        border: 1px solid rgba(146,10,182,.16);
        color: #920ab6 !important;
        font-size: 15px;
        text-decoration: none !important;
        cursor: pointer;
        transition: background .16s ease, color .16s ease, transform .16s ease;
    }

        .gppd-share a:hover,
        .gppd-share .gppd-copy:hover {
            background: linear-gradient(135deg, #920ab6, #c60069);
            color: #fff !important;
            transform: translateY(-2px);
        }

/* specs */
.gppd-specs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(146,10,182,.12);
    border-radius: 16px;
    overflow: hidden;
}

    .gppd-specs > div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 15px;
        background: rgba(250, 246, 255, .55);
    }

        .gppd-specs > div:nth-child(even) {
            background: rgba(255,255,255,.6);
        }

        .gppd-specs dt {
            color: rgba(46,22,70,.55);
            font-size: 12px;
            font-weight: 850;
        }

        .gppd-specs dd {
            margin: 0;
            color: #33003f;
            font-size: 12.5px;
            font-weight: 930;
            text-align: left;
        }

/* description prose */
.gppd-desc {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(146,10,182,.10);
    border-radius: 26px;
    padding: clamp(20px, 2.8vw, 34px);
    box-shadow: 0 16px 40px rgba(74,18,107,.07);
    margin-bottom: 26px;
}

    .gppd-desc > h2 {
        margin: 0 0 16px;
    }

        .gppd-desc > h2 span {
            display: inline-flex;
            padding: 7px 15px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(146,10,182,.10), rgba(198,0,105,.08));
            color: #7a0799 !important;
            font-size: 14px;
            font-weight: 990;
        }

.gppd-desc-body p {
    color: rgba(40, 22, 62, .88);
    font-size: 14.5px;
    font-weight: 750;
    line-height: 2.3;
    margin: 0 0 16px;
}

.gppd-desc-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* related */
.gppd-related {
    margin-bottom: 24px;
}

    .gppd-related h2 {
        margin: 0 0 16px;
    }

        .gppd-related h2 span {
            display: inline-flex;
            padding: 7px 15px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(146,10,182,.10), rgba(198,0,105,.08));
            color: #7a0799 !important;
            font-size: 14px;
            font-weight: 990;
        }

.gppd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.gppd-rel-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(146,10,182,.10);
    box-shadow: 0 12px 30px rgba(74,18,107,.08);
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .gppd-rel-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 46px rgba(74,18,107,.15);
    }

    .gppd-rel-card img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        background: #faf7fd;
    }

    .gppd-rel-card b {
        padding: 12px 14px;
        color: #2f1247;
        font-size: 12.5px;
        font-weight: 920;
        line-height: 1.85;
    }

.gppd-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(146,10,182,.09), rgba(198,0,105,.07));
    border: 1px solid rgba(146,10,182,.18);
    color: #7a0799 !important;
    font-weight: 950;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease;
}

    .gppd-back a:hover {
        background: linear-gradient(135deg, #920ab6, #c60069);
        color: #fff !important;
    }

/* dark mode */
html.gp-dark-mode .gppd-media,
html.gp-dark-mode .gppd-info,
html.gp-dark-mode .gppd-desc,
html.gp-dark-mode .gppd-rel-card {
    background: linear-gradient(150deg, rgba(26,24,43,.95), rgba(18,20,33,.92)) !important;
    border-color: rgba(255,255,255,.10) !important;
}

html.gp-dark-mode .gppd-info h1,
html.gp-dark-mode .gppd-desc > h2 span,
html.gp-dark-mode .gppd-related h2 span {
    color: #f8f1ff !important;
}

html.gp-dark-mode .gppd-desc-body p {
    color: rgba(255,255,255,.78) !important;
}

html.gp-dark-mode .gppd-price {
    background: linear-gradient(135deg, rgba(209,244,17,.10), rgba(255,138,196,.06)) !important;
}

html.gp-dark-mode .gppd-price b {
    color: #d1f411 !important;
}

html.gp-dark-mode .gppd-specs > div {
    background: rgba(255,255,255,.04);
}

html.gp-dark-mode .gppd-specs dd {
    color: #f2e7fb !important;
}

/* responsive */
@media (max-width: 900px) {
    .gppd-top {
        grid-template-columns: 1fr;
    }
}

/* V101b - brand badge + features */
/* V101b - brand badge on media + features box */
.gppd-brand-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 28px rgba(24, 6, 40, .30);
}
    .gppd-brand-badge i { color: #b7870a; font-style: normal; font-size: 15px; }
    .gppd-brand-badge span { color: #33003f; font-size: 13px; font-weight: 970; }

html.gp-dark-mode .gppd-brand-badge { background: rgba(23, 19, 42, .94); }
html.gp-dark-mode .gppd-brand-badge i { color: #d1f411; }
html.gp-dark-mode .gppd-brand-badge span { color: #f2e7fb; }

.gppd-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
    .gppd-features > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3px;
        padding: 14px 10px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(146,10,182,.07), rgba(198,0,105,.05));
        border: 1px solid rgba(146,10,182,.14);
    }
    .gppd-features > div i { font-style: normal; font-size: 19px; margin-bottom: 4px; }
    .gppd-features > div b { color: #33003f; font-size: 12px; font-weight: 950; }
    .gppd-features > div small { color: rgba(46,22,70,.58); font-size: 10.5px; font-weight: 800; }

html.gp-dark-mode .gppd-features > div { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
html.gp-dark-mode .gppd-features > div b { color: #f2e7fb; }
html.gp-dark-mode .gppd-features > div small { color: rgba(255,255,255,.55); }

@media (max-width: 640px) {
    .gppd-features { grid-template-columns: 1fr; }
    .gppd-features > div { flex-direction: row; text-align: right; align-items: center; }
    .gppd-features > div i { margin-bottom: 0; }
}

/* =========================================================
   V102 - product gallery: pretty frame, thumbnails, zoom
   (overrides V101 media rules)
   ========================================================= */
.gppd-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 20%, rgba(146,10,182,.06), transparent 50%),
        linear-gradient(160deg, #fdfbff 0%, #f3ecfb 60%, #eef7fb 100%);
    border: 1px solid rgba(146,10,182,.12);
    box-shadow: 0 22px 54px rgba(74,18,107,.12);
    cursor: zoom-in;
    position: relative;
    min-height: 320px;
}

.gppd-media > img#gppdMainImage {
    max-width: 100%;
    max-height: 430px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

.gppd-media:hover > img#gppdMainImage {
    transform: scale(1.045);
}

.gppd-zoom-hint {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    color: #7a0799;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(24,6,40,.22);
    opacity: 0;
    transform: scale(.75);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.gppd-media:hover .gppd-zoom-hint {
    opacity: 1;
    transform: scale(1);
}

.gppd-brand-badge {
    z-index: 2;
}

/* thumbnails */
.gppd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -10px 0 8px;
}

.gppd-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(146,10,182,.14);
    background: #faf7fd;
    cursor: pointer;
    opacity: .68;
    transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.gppd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gppd-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gppd-thumb.is-active {
    opacity: 1;
    border-color: #920ab6;
    box-shadow: 0 8px 20px rgba(146,10,182,.24);
}

html.gp-dark-mode .gppd-media {
    background:
        radial-gradient(circle at 30% 20%, rgba(146,10,182,.10), transparent 50%),
        linear-gradient(160deg, rgba(26,24,43,.95), rgba(18,20,33,.92)) !important;
    border-color: rgba(255,255,255,.10);
}

html.gp-dark-mode .gppd-thumb {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
}

html.gp-dark-mode .gppd-thumb.is-active {
    border-color: #d1f411;
}

@media (max-width: 640px) {
    .gppd-media {
        min-height: 240px;
        padding: 16px;
    }

    .gppd-media > img#gppdMainImage {
        max-height: 300px;
    }

    .gppd-thumb {
        width: 58px;
        height: 58px;
    }
}

/* V103b - brand badge + features (compact editor overrides) */
.gppd-brand-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 28px rgba(24, 6, 40, .30);
}

    .gppd-brand-badge i { color: #b7870a; font-style: normal; font-size: 15px; }
    .gppd-brand-badge span { color: #33003f; font-size: 13px; font-weight: 970; }

html.gp-dark-mode .gppd-brand-badge { background: rgba(23, 19, 42, .94); }
html.gp-dark-mode .gppd-brand-badge i { color: #d1f411; }
html.gp-dark-mode .gppd-brand-badge span { color: #f2e7fb; }

.gppd-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

    .gppd-features > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3px;
        padding: 14px 10px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(146,10,182,.07), rgba(198,0,105,.05));
        border: 1px solid rgba(146,10,182,.14);
    }

    .gppd-features > div i { font-style: normal; font-size: 19px; margin-bottom: 4px; }
    .gppd-features > div b { color: #33003f; font-size: 12px; font-weight: 950; }
    .gppd-features > div small { color: rgba(46,22,70,.58); font-size: 10.5px; font-weight: 800; }

html.gp-dark-mode .gppd-features > div { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
html.gp-dark-mode .gppd-features > div b { color: #f2e7fb; }
html.gp-dark-mode .gppd-features > div small { color: rgba(255,255,255,.55); }

@media (max-width: 640px) {
    .gppd-features { grid-template-columns: 1fr; }
    .gppd-features > div { flex-direction: row; text-align: right; align-items: center; }
    .gppd-features > div i { margin-bottom: 0; }
}
/* =========================================================
   V110 - full-width 3-zone layout: thumb rail | media | sticky info
   ========================================================= */
.gppd .container { max-width: 1320px; }

.gppd-top {
    grid-template-columns: 64px minmax(0, 1fr) minmax(330px, 440px);
    gap: 16px;
    align-items: start;
}
.gppd-top.no-thumbs { grid-template-columns: minmax(0, 1fr) minmax(330px, 440px); }

/* vertical thumbnail rail */
.gppd-thumbs {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    padding: 2px;
    position: sticky;
    top: 92px;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.gppd-thumbs::-webkit-scrollbar { width: 4px; }
.gppd-thumbs::-webkit-scrollbar-thumb { background: rgba(146,10,182,.25); border-radius: 4px; }
.gppd-thumb { width: 60px; height: 60px; border-radius: 14px; }

/* media stage */
.gppd-media {
    grid-column: 2;
    grid-row: 1;
    min-height: 460px;
    border-radius: 30px;
    padding: 34px;
    cursor: zoom-in;
}
.gppd-media > img#gppdMainImage { max-height: 500px; }

/* sticky info panel */
.gppd-info {
    grid-column: 3;
    grid-row: 1;
    position: sticky;
    top: 84px;
}

@media (max-width: 1100px) {
    .gppd-top { grid-template-columns: 58px minmax(0, 1fr) minmax(300px, 1fr); gap: 12px; }
    .gppd-thumb { width: 50px; height: 50px; border-radius: 12px; }
    .gppd-media { min-height: 380px; padding: 22px; }
    .gppd-media > img#gppdMainImage { max-height: 400px; }
}

@media (max-width: 860px) {
    .gppd-top, .gppd-top.no-thumbs { grid-template-columns: minmax(0, 1fr); }
    .gppd-media { grid-column: 1; grid-row: 1; min-height: 260px; padding: 16px; border-radius: 22px; }
    .gppd-media > img#gppdMainImage { max-height: 320px; }
    .gppd-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; position: static; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
    .gppd-thumb { width: 58px; height: 58px; flex: 0 0 auto; }
    .gppd-info { grid-column: 1; grid-row: 3; position: static; }
}
