﻿/* =========================================================
   PRODUCT DETAILS – compact, professional, fully responsive (prefix: pd-)
   Tokens site.css se (--c-*), fallback ke saath.
   Breakpoints: 480 / 640 / 768 / 992 / 1200 / 1536
   ========================================================= */
.pd {
    --p: var(--c-primary, #ff6a00);
    --p-d: var(--c-primary-d, #e65e00);
    --p-soft: var(--c-primary-soft, #fff3e8);
    --dark: var(--c-dark, #111827);
    --text: var(--c-text, #374151);
    --muted: var(--c-muted, #6b7280);
    --line: var(--c-line, #e5e7eb);
    --bg: var(--c-bg, #f6f7fb);
    --ok: var(--c-success, #16a34a);
    --bad: var(--c-danger, #e53935);
    --r: 10px;
    --r-lg: 14px;
    --sh: 0 1px 4px rgba(17,24,39,.06);
    --sh-lg: 0 10px 26px rgba(17,24,39,.14);
    --g: clamp(8px, 1.4vw, 16px);
    --sec: clamp(8px, 1.4vw, 16px);
    background: var(--bg);
    color: var(--text);
    min-height: 60vh;
    overflow-x: hidden;
}

    .pd *, .pd *::before, .pd *::after {
        box-sizing: border-box;
    }

    .pd img {
        max-width: 100%;
        display: block;
    }

    .pd a {
        text-decoration: none;
        color: inherit;
    }

    .pd ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .pd h1, .pd h2, .pd h3, .pd h4, .pd p, .pd dl, .pd dd {
        margin: 0;
    }

    .pd button {
        font-family: inherit;
    }

.pd-wrap {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: clamp(8px, 2vw, 20px);
}

.pd-sec {
    padding-top: var(--sec);
}

.pd > .pd-sec:last-of-type, .pd-related {
    padding-bottom: clamp(14px, 2.4vw, 28px);
}

/* ---------- common ---------- */
.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--p);
    color: #fff !important;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

    .pd-btn:hover {
        background: var(--p-d);
    }

    .pd-btn:disabled {
        background: #cfd3da;
        cursor: not-allowed;
    }

    .pd-btn.is-busy {
        opacity: .7;
        pointer-events: none;
    }

.pd-btn-lg {
    padding: 12px 22px;
    font-size: .95rem;
    flex: 1;
}

.pd-icon-btn {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--dark);
    font-size: 1rem;
    cursor: pointer;
    transition: .2s;
}

    .pd-icon-btn:hover, .pd-icon-btn.is-active {
        background: var(--bad);
        border-color: var(--bad);
        color: #fff;
    }

.pd-select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 28px 8px 10px;
    font-size: .88rem;
    color: var(--dark);
    background-color: #fff;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
}

    .pd-select:focus, .pd-qty input:focus {
        outline: 2px solid var(--p);
        outline-offset: 1px;
    }

.pd-stars {
    color: #f5a623;
    font-size: .78rem;
    display: inline-flex;
    gap: 1px;
}

.pd-more {
    font-size: .84rem;
    font-weight: 600;
    color: var(--p);
    white-space: nowrap;
}

.pd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: clamp(8px, 1.4vw, 12px);
}

    .pd-head h2 {
        font-size: clamp(1.05rem, 2.2vw, 1.4rem);
        font-weight: 700;
        color: var(--dark);
    }

.pd-head-r {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-empty {
    text-align: center;
    padding: clamp(20px, 5vw, 44px) 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

    .pd-empty i {
        font-size: 2rem;
        color: #cbd5e1;
    }

.pd-none {
    padding: 14px;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}

/* ---------- breadcrumb ---------- */
.pd-top {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding-block: 8px;
}

.pd-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--muted);
}

    .pd-crumb a:hover {
        color: var(--p);
    }

    .pd-crumb i {
        font-size: .65rem;
    }

    .pd-crumb span {
        color: var(--dark);
        font-weight: 600;
        display: inline-block;
        max-width: 60vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }

/* ---------- main grid ---------- */
.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--g);
    align-items: start;
}

/* gallery */
.pd-gal {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.pd-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: zoom-in;
    touch-action: pan-y;
}

    .pd-stage img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
        transition: transform .25s ease;
        transform-origin: var(--zx, 50%) var(--zy, 50%);
        user-select: none;
        -webkit-user-drag: none;
    }

    .pd-stage.is-zoom img {
        transform: scale(2);
        transition: transform .12s ease-out;
    }

.pd-off {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: var(--bad);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 99px;
}

.pd-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.pd-thumb {
    flex: none;
    width: 56px;
    height: 56px;
    padding: 2px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s;
    scroll-snap-align: start;
}

    .pd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .pd-thumb:hover {
        border-color: #94a3b8;
    }

    .pd-thumb.is-active {
        border-color: var(--p);
    }

/* info */
.pd-info {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(10px, 1.8vw, 18px);
    box-shadow: var(--sh);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-brand {
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--p);
    background: var(--p-soft);
    padding: 3px 10px;
    border-radius: 99px;
}

.pd-title {
    font-size: clamp(1.15rem, 2.6vw, 1.7rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark);
    letter-spacing: -.01em;
}

.pd-rate-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.pd-rate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pd-rate-text {
    font-size: .8rem;
    color: var(--muted);
}

.pd-rate:hover .pd-rate-text {
    color: var(--p);
}

.pd-stock {
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .pd-stock i {
        font-size: .5rem;
    }

    .pd-stock.in {
        color: var(--ok);
    }

    .pd-stock.out {
        color: var(--bad);
    }

.pd-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
}

    .pd-price .amount {
        font-size: clamp(1.35rem, 3vw, 1.9rem);
        font-weight: 800;
        color: var(--dark);
    }

    .pd-price del {
        color: #9ca3af;
        font-size: .95rem;
    }

    .pd-price em {
        font-style: normal;
        font-size: .74rem;
        font-weight: 700;
        color: var(--ok);
        background: #e8f7ee;
        padding: 2px 8px;
        border-radius: 99px;
    }

.pd-short {
    font-size: .9rem;
    line-height: 1.55;
    color: var(--text);
}

/* options */
.pd-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding-block: 8px;
    border-block: 1px dashed var(--line);
}

.pd-opt {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

    .pd-opt > label {
        font-size: .76rem;
        font-weight: 700;
        color: var(--dark);
        text-transform: uppercase;
        letter-spacing: .04em;
        margin: 0;
    }

    .pd-opt .pd-select {
        width: 100%;
    }

    .pd-opt.shop-single-color {
        grid-column: 1 / -1;
    }

.pd-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .pd-colors .form-check {
        position: relative;
        padding: 0;
        margin: 0;
        min-height: 0;
    }

    .pd-colors .form-check-input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
        z-index: 1;
    }

    .pd-colors .form-check-label {
        display: block;
        margin: 0;
        cursor: pointer;
    }

        .pd-colors .form-check-label span {
            display: block;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 2px solid #fff;
            box-shadow: 0 0 0 1px #cbd5e1;
            transition: .15s;
        }

    .pd-colors .form-check-input:checked + .form-check-label span {
        box-shadow: 0 0 0 2px var(--p);
        transform: scale(1.08);
    }

    .pd-colors .form-check-input:focus-visible + .form-check-label span {
        outline: 2px solid var(--p);
        outline-offset: 2px;
    }

.pd-qty {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 3px;
    align-self: flex-start;
}

    .pd-qty button {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 8px;
        background: #fff;
        color: var(--dark);
        cursor: pointer;
        box-shadow: var(--sh);
        transition: .15s;
        font-size: .8rem;
    }

        .pd-qty button:hover {
            background: var(--p);
            color: #fff;
        }

    .pd-qty input {
        width: 48px;
        height: 34px;
        border: 0;
        background: transparent;
        text-align: center;
        font-weight: 700;
        font-size: .95rem;
        color: var(--dark);
        -moz-appearance: textfield;
        appearance: textfield;
    }

        .pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

.pd-cta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

/* meta / trust / share */
.pd-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    font-size: .8rem;
}

    .pd-meta div {
        display: flex;
        gap: 6px;
        min-width: 0;
    }

    .pd-meta dt {
        color: var(--muted);
        font-weight: 500;
        flex: none;
    }

        .pd-meta dt::after {
            content: ":";
        }

    .pd-meta dd {
        color: var(--dark);
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.pd-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: var(--r);
    font-size: .78rem;
    font-weight: 600;
    color: var(--dark);
}

    .pd-trust i {
        color: var(--p);
        margin-right: 4px;
    }

.pd-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--dark);
}

    .pd-share a, .pd-share button {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: #f3f4f6;
        color: var(--dark);
        font-size: .8rem;
        cursor: pointer;
        transition: .2s;
    }

        .pd-share a:hover, .pd-share button:hover {
            background: var(--p);
            color: #fff;
        }

/* ---------- tabs ---------- */
.pd-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh);
    overflow: hidden;
}

.pd-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    padding-inline: clamp(6px, 1.4vw, 14px);
    scrollbar-width: none;
}

    .pd-tabs::-webkit-scrollbar {
        display: none;
    }

.pd-tab {
    flex: none;
    padding: 11px 14px;
    border: 0;
    background: none;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: .2s;
    white-space: nowrap;
}

    .pd-tab:hover {
        color: var(--dark);
    }

    .pd-tab.is-active {
        color: var(--p);
        border-bottom-color: var(--p);
    }

    .pd-tab:focus-visible {
        outline: 2px solid var(--p);
        outline-offset: -2px;
        border-radius: 6px;
    }

.pd-panel {
    padding: clamp(10px, 1.8vw, 18px);
    animation: pdFade .25s ease;
}

    .pd-panel[hidden] {
        display: none;
    }

@keyframes pdFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.pd-long {
    font-size: .92rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.pd-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--g);
}

.pd-card {
    background: var(--bg);
    border-radius: var(--r);
    padding: 10px 12px;
    min-width: 0;
}

.pd-panel > .pd-card {
    margin-top: 4px;
}

.pd-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.pd-kv li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: .86rem;
    border-bottom: 1px dashed var(--line);
}

    .pd-kv li:last-child {
        border-bottom: 0;
    }

.pd-kv strong {
    color: var(--dark);
    font-weight: 600;
}

.pd-kv span {
    color: var(--muted);
    text-align: right;
}

/* reviews */
.pd-rsum {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.pd-rscore {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

    .pd-rscore b {
        font-size: 2.2rem;
        line-height: 1;
        font-weight: 800;
        color: var(--dark);
    }

    .pd-rscore small {
        color: var(--muted);
        font-size: .78rem;
    }

.pd-bars {
    display: grid;
    gap: 5px;
}

.pd-bar-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
}

    .pd-bar-row small {
        font-size: .76rem;
        color: var(--muted);
    }

        .pd-bar-row small:first-child .fa-star {
            color: #f5a623;
            font-size: .66rem;
        }

        .pd-bar-row small:last-child {
            text-align: right;
        }

.pd-bar-track {
    height: 7px;
    background: #eef0f4;
    border-radius: 99px;
    overflow: hidden;
}

.pd-bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 99px;
}

.pd-rhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-block: 12px 4px;
}

    .pd-rhead h3 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--dark);
    }

.pd-rlist {
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.pd-review {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

    .pd-review:last-child {
        border-bottom: 0;
    }

    .pd-review > img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid var(--line);
        flex: none;
    }

.pd-review-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pd-review-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

    .pd-review-top h4 {
        font-size: .9rem;
        font-weight: 700;
        color: var(--dark);
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .pd-review-top small {
        color: var(--muted);
        font-size: .74rem;
    }

.pd-verified {
    font-size: .68rem;
    font-weight: 700;
    color: var(--ok);
    background: #e8f7ee;
    padding: 2px 8px;
    border-radius: 99px;
}

.pd-review-title {
    font-size: .88rem;
    color: var(--dark);
}

.pd-review-body p {
    font-size: .86rem;
    line-height: 1.55;
    color: var(--text);
}

.pd-review-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

.pd-chip {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 99px;
    padding: 3px 12px;
    font-size: .76rem;
    cursor: pointer;
    transition: .2s;
}

    .pd-chip:hover {
        background: var(--p-soft);
        border-color: var(--p);
        color: var(--p);
    }

.pd-link {
    border: 0;
    background: none;
    font-size: .76rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
}

    .pd-link:hover {
        color: var(--bad);
    }

/* sellers */
.pd-sellers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--g);
}

.pd-seller {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 8px;
    text-align: center;
    box-shadow: var(--sh);
    transition: transform .2s;
}

    .pd-seller:hover {
        transform: translateY(-3px);
    }

    .pd-seller img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    .pd-seller span {
        display: block;
        margin-top: 4px;
        font-size: .8rem;
        font-weight: 600;
        color: var(--dark);
    }

/* related carousel */
.pd-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--g)) / 2);
    gap: var(--g);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
}

    .pd-track::-webkit-scrollbar {
        display: none;
    }

    .pd-track > * {
        scroll-snap-align: start;
        min-width: 0;
    }

.pd-arrows {
    display: none;
    gap: 6px;
}

    .pd-arrows button {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--dark);
        font-size: .72rem;
        cursor: pointer;
        transition: .2s;
    }

        .pd-arrows button:hover {
            background: var(--p);
            border-color: var(--p);
            color: #fff;
        }

.pd-pcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

    .pd-pcard:hover {
        transform: translateY(-3px);
        box-shadow: var(--sh-lg);
    }

.pd-pimg {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f3f4f8;
    overflow: hidden;
}

    .pd-pimg > a {
        display: block;
        height: 100%;
    }

    .pd-pimg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s;
    }

.pd-pcard:hover .pd-pimg img {
    transform: scale(1.06);
}

.pd-badges {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pd-badge {
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    color: #fff;
    text-transform: uppercase;
}

    .pd-badge.hot {
        background: #ef4444;
    }

    .pd-badge.new {
        background: #10b981;
    }

    .pd-badge.discount {
        background: #f59e0b;
    }

    .pd-badge.offer {
        background: #6366f1;
    }

.pd-pactions {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .pd-pactions a {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        background: #fff;
        border-radius: 50%;
        color: var(--dark);
        font-size: .8rem;
        box-shadow: var(--sh);
        transition: .2s;
    }

        .pd-pactions a:hover, .pd-pactions a.is-active {
            background: var(--p);
            color: #fff;
        }

.pd-pbody {
    padding: 8px 10px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pd-ptitle {
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

    .pd-ptitle a:hover {
        color: var(--p);
    }

.pd-pprice {
    font-weight: 800;
    color: var(--p);
    font-size: .95rem;
}

/* mobile sticky bar */
.pd-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px clamp(8px, 2vw, 16px) calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 14px rgba(17,24,39,.08);
    transform: translateY(110%);
    transition: transform .25s ease;
}

    .pd-bar.is-show {
        transform: none;
    }

.pd-bar-price small {
    display: block;
    font-size: .68rem;
    color: var(--muted);
    line-height: 1;
}

.pd-bar-price b {
    font-size: 1.05rem;
    color: var(--dark);
}

.pd-bar .pd-btn {
    flex: 1;
    max-width: 260px;
}

@media (max-width: 767.98px) {
    .pd {
        padding-bottom: 64px;
    }
}

/* toast */
.pd-toast {
    position: fixed;
    left: 50%;
    bottom: 76px;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark);
    color: #fff;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: .85rem;
    opacity: 0;
    transition: .3s;
    z-index: 99999;
    pointer-events: none;
    max-width: 92vw;
}

    .pd-toast.show {
        opacity: 1;
        transform: translateX(-50%);
    }

    .pd-toast.err {
        background: var(--bad);
    }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 480px) {
    .pd-track {
        grid-auto-columns: calc((100% - 2 * var(--g)) / 3);
    }

    .pd-sellers {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pd-thumb {
        width: 62px;
        height: 62px;
    }

    .pd-options {
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        gap: 8px 20px;
    }

    .pd-opt.shop-single-color {
        grid-column: auto;
    }
}

@media (min-width: 640px) {
    .pd-rsum {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 20px;
    }

    .pd-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pd-meta {
        grid-template-columns: repeat(4, auto);
        justify-content: start;
        gap: 4px 18px;
    }
}

@media (min-width: 768px) {
    .pd-arrows {
        display: flex;
    }

    .pd-track {
        grid-auto-columns: calc((100% - 3 * var(--g)) / 4);
    }

    .pd-sellers {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 8px;
    }

    .pd-bar {
        display: none;
    }

    .pd-tab {
        padding: 12px 18px;
    }

    .pd-pactions {
        opacity: 0;
        transform: translateX(8px);
        transition: .25s;
    }

    .pd-pcard:hover .pd-pactions {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 992px) {
    .pd-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }

    .pd-gal {
        grid-template-columns: 70px minmax(0, 1fr);
        align-items: start;
        position: sticky;
        top: 12px;
    }

        .pd-gal:not(:has(.pd-thumbs)) {
            grid-template-columns: minmax(0, 1fr);
        }

    .pd-thumbs {
        order: -1;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: min(560px, 46vw);
        padding: 0 2px 0 0;
        scroll-snap-type: y proximity;
    }

    .pd-thumb {
        width: 62px;
        height: 62px;
    }

    .pd-track {
        grid-auto-columns: calc((100% - 4 * var(--g)) / 5);
    }
}

@media (min-width: 1200px) {
    .pd-track {
        grid-auto-columns: calc((100% - 5 * var(--g)) / 6);
    }

    .pd-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

@media (min-width: 1536px) {
    .pd-wrap {
        max-width: 1560px;
    }
}

@media (hover: none) {
    .pd-pactions {
        opacity: 1 !important;
        transform: none !important;
    }

    .pd-stage {
        cursor: default;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-panel, .pd-stage img, .pd-bar {
        animation: none;
        transition: none;
    }
}
