.pdp {
    --pdp-tint: #e7edf3;
    --pdp-accent: #2d5d8a;
    --pdp-ease: cubic-bezier(0.22, 0.75, 0.2, 1);
    width: min(100% - 1.5rem, calc(var(--max) + 6rem));
    margin-inline: auto;
    padding: 1rem 0 0.5rem;
}

.pdp[data-tone="ember"] { --pdp-tint: #fde6d7; --pdp-accent: var(--orange); }
.pdp[data-tone="sand"] { --pdp-tint: #f4ebdc; --pdp-accent: #b4782a; }
.pdp[data-tone="tide"] { --pdp-tint: #ddefec; --pdp-accent: #1d7a72; }

.pdp .crumbs { margin-bottom: 0.9rem; }

.pdp .crumbs a { text-decoration: none; }

.pdp .crumbs a:hover,
.pdp .crumbs a:focus-visible { color: var(--orange); }

.pdp .trust {
    width: auto;
    margin-inline: 0;
}

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

.pdp-stage {
    display: grid;
    gap: 0.7rem;
}

.pdp-frame {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1.6rem;
    background:
        radial-gradient(closest-side at 50% 58%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 72%),
        var(--pdp-tint);
    box-shadow: 0 28px 60px -36px rgba(20, 39, 58, 0.55);
}

.pdp-badge {
    position: absolute;
    z-index: 2;
    inset-block-start: 0.85rem;
    inset-inline-start: 0.85rem;
    margin: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--pdp-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.pdp-photo {
    position: relative;
    z-index: 1;
    width: 86%;
    height: 86%;
    object-fit: contain;
    mix-blend-mode: multiply;
    -webkit-mask-image:
        linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent),
        linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent),
        linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
    mask-composite: intersect;
    transition: opacity 0.18s linear;
}

.pdp-photo.is-fading { opacity: 0; }

.pdp-photo-empty {
    width: 42%;
    height: auto;
    mix-blend-mode: normal;
    -webkit-mask-image: none;
    mask-image: none;
}

.pdp-thumbs {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0.15rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pdp-thumbs::-webkit-scrollbar { display: none; }

.pdp-thumb,
.pdp-step,
.pdp-angle {
    border: 0;
    cursor: pointer;
}

.pdp-thumb {
    flex: none;
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    padding: 0.3rem;
    border: 2px solid transparent;
    border-radius: 1rem;
    background: var(--pdp-tint);
    scroll-snap-align: start;
    transition: border-color 0.3s ease, transform 0.35s var(--pdp-ease);
}

.pdp-thumb.is-active { border-color: var(--navy); }

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.pdp-copy {
    display: grid;
    align-content: start;
    gap: 0.7rem;
}

.pdp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-self: start;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 8px 20px -14px rgba(20, 39, 58, 0.6);
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pdp-kicker::before {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--pdp-accent);
    content: "";
}

.pdp-kicker a { color: inherit; text-decoration: none; }

.pdp-kicker a:hover,
.pdp-kicker a:focus-visible { color: var(--orange); }

.pdp-title {
    margin: 0;
    font-size: clamp(1.85rem, 1rem + 3.4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-wrap: balance;
}

.pdp-lead {
    max-width: 38rem;
    margin: 0;
    color: #3e4d5d;
    font-size: 1rem;
}

.pdp-offer {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.2rem;
    padding: 1rem;
    border-radius: 1.35rem;
    background: var(--white);
    box-shadow: 0 22px 50px -32px rgba(20, 39, 58, 0.55);
}

.pdp-price {
    margin: 0;
    font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.pdp-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.pdp-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.2rem;
    border: 1px solid var(--mist);
    border-radius: 999px;
    background: var(--paper);
}

.pdp-step {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pdp-step:hover:not(:disabled),
.pdp-step:focus-visible { background: var(--navy); color: var(--white); }

.pdp-step:disabled { opacity: 0.35; cursor: not-allowed; }

.pdp-qty input {
    width: 2.2rem;
    min-height: 2.75rem;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-weight: 700;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.pdp-qty input::-webkit-outer-spin-button,
.pdp-qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

.pdp-cta {
    width: 100%;
    min-height: 3.15rem;
    border-radius: 999px;
    transition: background-color 0.35s ease, transform 0.35s var(--pdp-ease);
}

.pdp-cta svg { transition: translate 0.35s var(--pdp-ease); }

.pdp-cta:hover,
.pdp-cta:focus-visible { background: var(--orange); }

.pdp-cta:hover svg,
.pdp-cta:focus-visible svg { translate: 3px 0; }

.pdp-secure,
.pdp-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.pdp-secure {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.pdp-secure svg {
    flex: none;
    margin-top: 0.15rem;
    color: var(--navy);
}

.pdp-note a { color: var(--navy); }

.pdp-dock {
    position: fixed;
    z-index: 30;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(20, 39, 58, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -16px 40px -28px rgba(20, 39, 58, 0.6);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
}

.pdp-dock[hidden] { display: none; }

.pdp-dock-price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.pdp-dock .pdp-cta { width: 100%; }

.pdp-band,
.pdp-story,
.pdp-angles-wrap,
.pdp-more {
    margin-top: 2.25rem;
    scroll-margin-top: 5.5rem;
}

.pdp-heading {
    margin: 0 0 0.85rem;
    font-size: clamp(1.45rem, 1rem + 1.8vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.pdp-benefits {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdp-benefit {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    margin: 0;
    padding: 1rem;
    border-radius: 1.2rem;
    background: var(--white);
    box-shadow: 0 16px 40px -32px rgba(20, 39, 58, 0.7);
    transition: translate 0.45s var(--pdp-ease), box-shadow 0.45s var(--pdp-ease);
}

.pdp-benefit p { margin: 0; }

.pdp-benefit-index {
    color: var(--pdp-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pdp-story {
    padding: 1.25rem 1.1rem;
    border-radius: 1.4rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.55), transparent 42%),
        var(--pdp-tint);
}

.pdp-story .pdp-heading { max-width: 16ch; }

.pdp-story-text {
    max-width: 42rem;
    margin: 0;
    color: #243444;
    font-size: 1.02rem;
}

.pdp-angles-intro {
    max-width: 32rem;
    margin: -0.35rem 0 0.9rem;
    color: var(--muted);
}

.pdp-angles {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 20rem);
    gap: 0.7rem;
    margin-inline: -0.15rem;
    padding: 0.15rem 0.15rem 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.15rem;
}

.pdp-angle {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 0.6rem;
    border: 2px solid transparent;
    border-radius: 1.35rem;
    background: var(--pdp-tint);
    scroll-snap-align: start;
    transition: border-color 0.3s ease, translate 0.45s var(--pdp-ease);
}

.pdp-angle.is-active { border-color: var(--navy); }

.pdp-angle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.pdp-more {
    width: min(100% - 1.5rem, calc(var(--max) + 6rem));
}

.pdp-related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdp-related > li { display: flex; }

.pdp-thumb:focus-visible,
.pdp-step:focus-visible,
.pdp-cta:focus-visible,
.pdp-angle:focus-visible,
.pdp-kicker a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

html[lang="ar"] .pdp-badge,
html[lang="ar"] .pdp-kicker,
html[lang="ar"] .pdp-title,
html[lang="ar"] .pdp-heading,
html[lang="ar"] .pdp-cta { letter-spacing: 0; }

html[dir="rtl"] .pdp-cta svg { scale: -1 1; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .pdp-benefit:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 40px -28px rgba(20, 39, 58, 0.45);
    }

    .pdp-thumb:hover { transform: translateY(-2px); }

    .pdp-angle:hover { transform: translateY(-4px); }
}

@media (max-width: 899px) {
    body:has(.pdp) { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 639px) {
    body:has(.pdp-dock:not([hidden])) .toast-stack {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 700px) {
    .pdp-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .pdp-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .pdp-hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
        gap: 2.25rem;
        align-items: start;
    }

    .pdp-stage {
        position: sticky;
        top: 6.25rem;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .pdp-thumbs {
        flex-direction: column;
        order: -1;
        max-height: 34rem;
        overflow: auto;
    }

    .pdp-copy { padding-top: 0.35rem; }

    .pdp-frame { border-radius: 2rem; }

    .pdp-angles {
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
        overflow: visible;
    }

    .pdp-dock { display: none; }

    .pdp-story { padding: 2rem 2.2rem; }
}

@media (min-width: 1100px) {
    .pdp-related { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
    .pdp-frame { animation: pdp-rise 0.7s var(--pdp-ease) both; }

    .pdp-photo { animation: pdp-float 7s ease-in-out 0.85s infinite; }

    .pdp-copy > * { animation: pdp-rise 0.65s var(--pdp-ease) both; }

    .pdp-copy > *:nth-child(2) { animation-delay: 0.05s; }
    .pdp-copy > *:nth-child(3) { animation-delay: 0.1s; }
    .pdp-copy > *:nth-child(4) { animation-delay: 0.14s; }
    .pdp-copy > *:nth-child(5) { animation-delay: 0.18s; }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .pdp-benefit,
        .pdp-story,
        .pdp-angle {
            animation: pdp-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 42%;
        }
    }
}

@keyframes pdp-rise {
    from { opacity: 0; translate: 0 1.15rem; }
    to { opacity: 1; translate: none; }
}

@keyframes pdp-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pdp-photo,
    .pdp-thumb,
    .pdp-step,
    .pdp-cta,
    .pdp-cta svg,
    .pdp-benefit,
    .pdp-angle { transition: none; }

    .pdp-photo,
    .pdp-frame,
    .pdp-copy > *,
    .pdp-benefit,
    .pdp-story,
    .pdp-angle { animation: none; }
}
