body.single-product .newsletter {
    display: none;
}

.pdp {
    padding: 18px 0 48px;
}

.pdp-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: #8a7b6c;
    font-size: 13px;
    font-weight: 600;
}

.pdp-crumb svg {
    width: 14px;
    height: 14px;
    transform: scaleX(-1);
    opacity: .7;
}

.pdp-crumb strong {
    color: var(--ink);
}

.pdp-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 28px;
    align-items: start;
}

.pdp-gallery {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas: "thumbs stage";
    gap: 12px;
    align-items: start;
}

.pdp-thumbs {
    grid-area: thumbs;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(680px, 72vh);
    overflow: auto;
    padding: 2px;
}

.pdp-thumb {
    position: relative;
    width: 84px;
    min-height: 84px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    flex: 0 0 auto;
}

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

.pdp-thumb span {
    display: block;
    padding: 4px 6px 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.pdp-thumb.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 160, 106, .22);
}

.pdp-thumb.is-active span {
    color: var(--gold-dark);
}

.pdp-frame {
    grid-area: stage;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(180deg, #fff 0%, #f7f1e8 100%);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.pdp-frame-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: zoom-in;
}

.pdp-frame-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform .35s ease, opacity .25s ease;
}

.pdp-frame.is-zoom img {
    transform: scale(1.55);
}

.pdp-flag,
.pdp-zoom-btn,
.pdp-nav,
.pdp-count {
    position: absolute;
    z-index: 2;
}

.pdp-flag {
    top: 16px;
    inset-inline-start: 16px;
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
}

.pdp-flag-hot { background: var(--danger); }
.pdp-flag-new,
.pdp-flag-sale { background: var(--gold); }

.pdp-zoom-btn,
.pdp-nav,
.pdp-wish {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--gold-dark);
    box-shadow: 0 8px 18px rgba(80, 58, 32, 0.12);
    cursor: pointer;
    text-decoration: none;
}

.pdp-zoom-btn { top: 16px; inset-inline-end: 16px; }
.pdp-nav { top: 50%; transform: translateY(-50%); }
.pdp-nav svg { width: 18px; height: 18px; }
.pdp-nav-prev { inset-inline-start: 12px; transform: translateY(-50%) scaleX(-1); }
.pdp-nav-next { inset-inline-end: 12px; }
.pdp-count {
    inset-inline-end: 16px;
    bottom: 14px;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 700;
    unicode-bidi: isolate;
}

.pdp-zoom-hint {
    position: absolute;
    z-index: 2;
    inset-inline-start: 16px;
    bottom: 14px;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(23, 21, 19, .62);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}

.pdp-summary {
    background: #fff;
    border-radius: 28px;
    padding: 26px 24px 24px;
    box-shadow: var(--shadow);
}

.pdp-kicker {
    margin: 0 0 8px;
    color: var(--gold-dark);
    font-weight: 800;
    letter-spacing: .04em;
}

.pdp-summary h1 {
    margin: 0 0 12px;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.3;
}

.pdp-name-en,
.pdp-name-ar { display: block; }
.pdp-name-ar {
    margin-top: 4px;
    color: var(--muted);
    font-size: .72em;
    font-weight: 600;
}

.pdp-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pdp-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.pdp-stars svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

.pdp-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--featured);
    font-size: 13px;
    font-weight: 700;
}

.pdp-live em {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--featured);
    animation: pdpPulse 1.6s ease infinite;
}

.pdp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.pdp-price strong {
    color: var(--gold-dark);
    font-size: 30px;
}

.pdp-price s { color: #c3b7ab; }
.pdp-price b {
    color: var(--danger);
    font-size: 14px;
    animation: pdpPop .9s ease infinite alternate;
}

.pdp-excerpt {
    margin: 0 0 16px;
    color: var(--muted);
}

.pdp-benefits {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.pdp-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.pdp-benefits svg {
    width: 18px;
    height: 18px;
    color: var(--featured);
    flex: 0 0 auto;
}

.pdp-urgency {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--gold-soft);
    font-size: 13px;
    font-weight: 700;
}

.pdp-urgency span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-urgency svg {
    width: 18px;
    height: 18px;
    color: var(--gold-dark);
}

.pdp-stock {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: rgba(184, 144, 85, .18);
    overflow: hidden;
}

.pdp-stock::after {
    content: "";
    display: block;
    width: var(--p, 40%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c45c4a, #b89055);
    animation: pdpFill 1.2s ease;
}

.pdp-cart {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 16px;
}

.pdp-qty {
    display: flex;
    align-items: center;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--cream-2);
    overflow: hidden;
}

.pdp-qty button {
    width: 42px;
    height: 52px;
    border: 0;
    background: transparent;
    color: var(--gold-dark);
    cursor: pointer;
}

.pdp-qty input {
    width: 42px;
    height: 52px;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 800;
    -moz-appearance: textfield;
}
.pdp-qty input::-webkit-outer-spin-button,
.pdp-qty input::-webkit-inner-spin-button {
    appearance: none;
}

.pdp-add {
    position: relative;
    overflow: hidden;
    min-height: 52px;
    width: 100%;
    gap: 8px;
    animation: pdpShine 2.8s ease infinite;
}

.pdp-add::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,.38) 50%, transparent 64%);
    transform: translateX(120%);
    animation: pdpSweep 2.6s ease infinite;
    pointer-events: none;
}

.pdp-add > * {
    position: relative;
    z-index: 1;
}

.pdp-add.is-busy {
    pointer-events: none;
    opacity: .72;
}

.pdp-add.is-done {
    background: linear-gradient(180deg, #5aa67a, #2f7a52);
    box-shadow: 0 8px 20px rgba(47, 122, 82, .28);
}

.pdp-wish.is-active {
    color: var(--danger);
}
.pdp-wish.is-active svg {
    fill: currentColor;
}

.pdp-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}

.pdp-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdp-trust svg {
    width: 16px;
    height: 16px;
    color: var(--gold-dark);
}

.pdp-info {
    margin-top: 28px;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pdp-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--cream-2);
}

.pdp-tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 88px;
    padding: 10px 8px;
    border: 0;
    box-shadow: inset -1px 0 0 var(--line);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.pdp-tabs button span:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.pdp-tabs button:hover:not(.is-active) {
    background: rgba(255, 255, 255, .7);
    color: var(--ink);
}

.pdp-tabs button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    z-index: 1;
}

.pdp-tabs button.is-active {
    background: #fff;
    color: var(--gold-dark);
    box-shadow: inset 0 -3px 0 var(--gold);
}

.pdp-tab-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    flex: 0 0 34px;
}

.pdp-tabs button.is-active .pdp-tab-icon {
    background: var(--gold);
    color: #fff;
}

.pdp-tab-icon svg {
    width: 18px;
    height: 18px;
}

.pdp-panels {
    padding: 22px 24px 26px;
}

.pdp-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.pdp-panel-head h2 {
    margin: 0;
    font-size: 22px;
}

.pdp-panel p {
    margin: 0;
    color: var(--ink);
    line-height: 1.9;
    font-weight: 600;
}

.pdp-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.pdp-info-list li {
    position: relative;
    padding: 12px 14px;
    padding-inline-start: 42px;
    border-radius: 16px;
    background: var(--cream-2);
    font-weight: 700;
}

.pdp-info-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold-soft);
    box-shadow: inset 0 0 0 5px var(--gold);
    transform: translateY(-50%);
}

.pdp-review-score {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.pdp-review-score svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

.pdp-review-empty {
    color: var(--muted);
}

.pdp-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pdp-review {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: var(--cream-2);
}

.pdp-review-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--gold-dark);
}

.pdp-review header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.pdp-review header span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.pdp-review header svg {
    width: 13px;
    height: 13px;
}

.pdp-review-stars {
    display: flex;
    gap: 2px;
    margin: 6px 0;
    color: var(--line);
}

.pdp-review-stars .is-on {
    color: var(--gold);
}

.pdp-review-stars svg { width: 14px; height: 14px; }

.pdp-review p:last-child {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}

.pdp-related { margin-top: 36px; }
.pdp-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pdp-buybar { display: none; }

body.pdp-lightbox-open .pdp-buybar,
body.pdp-lightbox-open .app-tabbar,
body.pdp-lightbox-open .tabbar {
    visibility: hidden;
}

.pdp-lightbox[hidden] {
    display: none !important;
}

.pdp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    background: rgba(23, 21, 19, .9);
}

.pdp-lightbox img {
    max-width: min(920px, 86vw);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 18px;
}

.pdp-lightbox-close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

.pdp-lightbox .pdp-nav { background: #fff; }

@keyframes pdpPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: .55; }
}

@keyframes pdpPop {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

@keyframes pdpShine {
    0%, 70%, 100% { box-shadow: 0 8px 20px rgba(196, 160, 106, .25); }
    40% { box-shadow: 0 10px 28px rgba(196, 160, 106, .55); }
}

@keyframes pdpSweep {
    0%, 55% { transform: translateX(120%); }
    80%, 100% { transform: translateX(-120%); }
}

@keyframes pdpFill {
    from { width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pdp-live em,
    .pdp-price b,
    .pdp-add,
    .pdp-add::after,
    .pdp-stock::after { animation: none; }
}

@media (max-width: 1279px) {
    .pdp-stage { gap: 22px; }
}

@media (max-width: 1100px) {
    .pdp-stage { grid-template-columns: 1fr 1fr; gap: 18px; }
    .pdp-review-grid { grid-template-columns: 1fr 1fr; }
    .pdp-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pdp-gallery { grid-template-columns: 78px minmax(0, 1fr); }
    .pdp-thumb,
    .pdp-thumb img { width: 70px; }
    .pdp-thumb img { height: 70px; }
    .pdp-tabs button { min-height: 84px; font-size: 12px; }
}

@media (max-width: 899px) {
    .pdp-stage { grid-template-columns: 1fr; }
    .pdp-gallery {
        grid-template-columns: 1fr;
        grid-template-areas: "stage" "thumbs";
    }
    .pdp-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }
    .pdp-thumb {
        width: 76px;
        min-height: 0;
    }
    .pdp-thumb img {
        width: 76px;
        height: 62px;
    }
    .pdp-info { border-radius: 22px; }
    .pdp-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow: visible;
    }

    .pdp-tabs button {
        min-width: 0;
        gap: 4px;
        min-height: 76px;
        font-size: 12px;
        padding: 8px 10px;
        box-shadow: inset 0 -1px 0 var(--line), inset -1px 0 0 var(--line);
    }

    .pdp-tab-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .pdp-tab-icon svg { width: 16px; height: 16px; }
    .pdp-panels { padding: 16px 14px 20px; }
    .pdp-panel-head h2 { font-size: 18px; }
    .pdp-review-grid { grid-template-columns: 1fr; }
    .pdp-info-list li { padding: 11px 12px; padding-inline-start: 40px; }
}

@media (max-width: 820px) {
    .pdp { padding-bottom: 24px; }
    .pdp-frame { border-radius: 22px; }
    .pdp-summary { padding: 18px 16px; border-radius: 22px; }
    .pdp-cart {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .pdp-qty {
        grid-column: 1 / -1;
        width: max-content;
    }
    .pdp-add { grid-column: 1; }
    .pdp-wish { grid-column: 2; }
    .pdp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .pdp-buybar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: fixed;
        inset-inline: 0;
        bottom: calc(var(--tabbar-height) + var(--safe-bottom));
        z-index: 45;
        padding: 10px 14px calc(8px);
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(16px);
        box-shadow: 0 -10px 24px rgba(80, 58, 32, 0.08);
        transform: translateY(110%);
        transition: transform .25s ease;
    }
    .pdp-buybar.is-visible { transform: none; }
    .pdp-buybar strong { display: block; font-size: 13px; }
    .pdp-buybar span { color: var(--gold-dark); font-weight: 800; }
    .pdp-buybar .btn-gold {
        min-height: 44px;
        padding: 0 16px;
        gap: 6px;
        font-size: 13px;
    }
    body.single-product {
        padding-bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 64px);
    }
}

@media (max-width: 480px) {
    .pdp-price strong { font-size: 24px; }
    .pdp-nav { width: 36px; height: 36px; }
    .pdp-trust { font-size: 12px; }
    .pdp-summary h1 { font-size: 1.28rem; }
    .pdp-thumb,
    .pdp-thumb img { width: 64px; }
    .pdp-thumb img { height: 54px; }
    .pdp-info { border-radius: 18px; }
    .pdp-tabs button { min-width: 0; min-height: 70px; font-size: 12px; }
    .pdp-review-avatar { width: 36px; height: 36px; }
}

@media (max-width: 360px) {
    .pdp-trust { grid-template-columns: 1fr; }
    .pdp-proof { gap: 8px; }
    .pdp-tabs button { min-width: 0; padding: 8px 6px; font-size: 11px; }
}
