/* ═══════════════════════════════════════════════════════════════
   Gems Harbor — Product detail (premium marketplace)
   ═══════════════════════════════════════════════════════════════ */
.product-detail-page {
    --pd-brand: #045d48;
    --pd-brand-dark: #023d30;
    --pd-brand-mid: #0a7a5c;
    --pd-brand-light: #e8f5f1;
    --pd-brand-glow: rgba(4, 93, 72, 0.22);
    --pd-gold: #c9a227;
    --pd-surface: #ffffff;
    --pd-surface-elevated: #ffffff;
    --pd-surface-muted: #f0f4f8;
    --pd-border: #e2e8f0;
    --pd-text: #0f172a;
    --pd-text-muted: #64748b;
    --pd-radius: 16px;
    --pd-radius-sm: 10px;
    --pd-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --pd-shadow-lg: 0 12px 40px rgba(4, 93, 72, 0.12);
    --pd-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --pd-text-sm: 0.8125rem;
    --pd-text-base: 0.9375rem;
    --pd-text-lg: 1.0625rem;
    font-family: var(--pd-font);
    font-size: var(--pd-text-base);
    line-height: 1.55;
    color: var(--pd-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(4, 93, 72, 0.08), transparent),
        linear-gradient(180deg, #eef2f7 0%, #f8fafc 280px, #f1f5f9 100%);
    min-height: 60vh;
    padding-bottom: 3rem;
}

/* ─── Typography: one family site-wide on this page ─── */
.product-detail-page :where(
    p, span, a, li, label, button, input, textarea, select, option,
    td, th, dt, dd, small, strong, em, div, h1, h2, h3, h4, h5, h6,
    .breadcrumb, .accordion-button, .modal-text, .nunito, .nunito-regular,
    [class*='inter-'], .cards-heading, .anchor-button, .bids-top h3, .bids-bottom
) {
    font-family: var(--pd-font) !important;
}

.product-detail-page :where(.bi, [class^='bi-'], [class*=' bi-'])::before {
    font-family: bootstrap-icons !important;
}

.product-detail-page h1,
.product-detail-page .pd-buy-card__title {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-detail-page h2,
.product-detail-page .pd-related__title,
.product-detail-page .pd-store-info__section-title {
    font: 800 1.25rem / 1.3 var(--pd-font) !important;
    letter-spacing: -0.01em;
}

.product-detail-page .pd-table-label {
    font-weight: 600;
    font-size: var(--pd-text-sm) !important;
    color: var(--pd-text-muted);
    vertical-align: top;
}

.product-detail-page h3,
.product-detail-page .bids-top h3,
.product-detail-page .cards-heading {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}

.product-detail-page h6 {
    font-size: var(--pd-text-base);
    font-weight: 700;
}

.product-detail-page small,
.product-detail-page .small {
    font-size: var(--pd-text-sm);
}

.product-detail-page .bids-body,
.product-detail-page .bids-footer,
.product-detail-page .product-detail-description,
.product-detail-page table {
    font-size: var(--pd-text-base);
}

.product-detail-page .bids-bottom h2 {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

.product-detail-page .anchor-button {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.product-detail-page > .px-3 {
    max-width: 1320px;
    margin: 0 auto;
}

/* Breadcrumb */
.pd-breadcrumb {
    --bs-breadcrumb-divider: '›';
    margin-bottom: 1.25rem;
    padding: 0.65rem 1rem;
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 999px;
    box-shadow: var(--pd-shadow);
}

.pd-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
}

.pd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1;
}

.pd-breadcrumb .breadcrumb-item a {
    color: var(--pd-text-muted);
    text-decoration: none;
}

.pd-breadcrumb .breadcrumb-item a:hover {
    color: var(--pd-brand);
}

.pd-breadcrumb .breadcrumb-item.active {
    color: var(--pd-brand);
    font-weight: 700;
}

/* Layout */
.pd-layout {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
}

.pd-rail {
    position: sticky;
    top: 1.25rem;
    z-index: 2;
}

/* ─── Sidebar info cards (audit, shipping, overview) ─── */
.pd-rail-card {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-sm);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: 1.25rem 1.35rem;
}

.pd-rail-card__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--pd-text);
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}

.pd-rail-card__title-icon {
    color: var(--pd-brand);
    font-size: 1.15rem;
}

.pd-rail-card__section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pd-text);
    margin: 0 0 0.75rem;
}

.pd-rail-card__text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--pd-text-muted);
    margin: 0 0 1rem;
    text-align: left;
}

.pd-rail-card__muted {
    font-size: 0.85rem;
    color: var(--pd-text-muted);
    margin: 0;
}

.pd-rail-card__footnote {
    font-size: 0.75rem;
    color: var(--pd-text-muted);
    margin: 1rem 0 0;
}

.pd-rail-card__divider {
    border: 0;
    border-top: 1px solid var(--pd-border);
    margin: 1.1rem 0;
    opacity: 1;
}

.pd-rail-card__head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.pd-rail-card__body--flush {
    margin: 0 -0.35rem -0.35rem;
    padding-top: 0.15rem;
}

.pd-rail-card--bids {
    padding-bottom: 0.65rem;
}

.pd-rail-card--bids .bids-bottom {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
    border-radius: 8px !important;
    border: none !important;
    background: var(--pd-surface-muted) !important;
}

.pd-rail-card--bids .bids-bottom h2 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--pd-brand-dark) !important;
}

.pd-kv {
    margin: 0;
}

.pd-kv__row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 38%) 1fr;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    margin-bottom: 0.55rem;
}

.pd-kv__row:last-child {
    margin-bottom: 0;
}

.pd-kv dt {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--pd-text-muted);
    margin: 0;
}

.pd-kv dd {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--pd-text);
    margin: 0;
    text-align: left;
}

.pd-kv dd strong {
    font-weight: 800;
    color: var(--pd-text);
}

.pd-kv__muted {
    color: var(--pd-text-muted) !important;
    font-weight: 500 !important;
}

.pd-kv__ships-from {
    font-weight: 600 !important;
}

.pd-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    line-height: 1.3;
}

.pd-pill--premium {
    background: #ede9fe;
    color: #5b21b6;
}

.pd-pill--standard {
    background: var(--pd-surface-muted);
    color: var(--pd-text-muted);
}

.pd-rail-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.pd-rail-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.pd-rail-link--inline {
    display: inline;
}

.pd-rail-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-rail-contact__icon {
    font-size: 1.1rem;
    color: #2563eb;
}

.pd-rail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--pd-border);
    background: var(--pd-surface);
    color: var(--pd-text);
    cursor: pointer;
}

.pd-rail-btn--outline:hover {
    border-color: var(--pd-brand);
    color: var(--pd-brand);
}

.pd-payment-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.pd-payment-strip__logo {
    height: 28px;
    width: auto;
    max-width: 88px;
    object-fit: contain;
}

.pd-payment-strip__fallback {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pd-text-muted);
}

.pd-verify-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pd-verify-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: var(--pd-surface-muted);
    border: 1px solid var(--pd-border);
}

.pd-verify-list__label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--pd-text);
}

.pd-verify-list__badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.pd-verify--ok .pd-verify-list__badge {
    background: #dcfce7;
    color: #166534;
}

.pd-verify--no .pd-verify-list__badge {
    background: #fee2e2;
    color: #991b1b;
}

.pd-verify--pending .pd-verify-list__badge {
    background: #ffedd5;
    color: #9a3412;
}

.pd-qa__item {
    border: none !important;
    border-bottom: 1px solid var(--pd-border) !important;
    background: transparent !important;
}

.pd-qa__item .accordion-button {
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.75rem 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--pd-text) !important;
}

.pd-qa__item .accordion-button:not(.collapsed) {
    color: var(--pd-brand) !important;
}

.pd-qa__item .accordion-body {
    padding: 0 0 0.85rem;
    font-size: 0.85rem;
}

.pd-qa__answer {
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid var(--pd-border);
}

.pd-qa__answer:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 991.98px) {
    .pd-rail {
        position: static;
        order: -1;
    }

    .pd-main {
        order: 1;
    }
}

/* ─── Buy card (sticky purchase box) ─── */
.pd-buy-card {
    background: var(--pd-surface-elevated);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow-lg);
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

.pd-buy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pd-brand-dark), var(--pd-brand), var(--pd-brand-mid));
}

.pd-buy-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
}

.pd-badge--id {
    background: var(--pd-surface-muted);
    color: var(--pd-text-muted);
}

.pd-badge--auction {
    background: var(--pd-brand-light);
    color: var(--pd-brand);
}

.pd-badge--catalog {
    background: #eff6ff;
    color: #1d4ed8;
}

.pd-badge--premium {
    background: linear-gradient(135deg, #fef9e7, #fde68a);
    color: #92400e;
}

.pd-buy-card .pd-store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pd-brand);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.pd-buy-card .pd-store-link:hover {
    color: var(--pd-brand-dark);
}

.pd-buy-card__title {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 800;
    color: var(--pd-text);
    line-height: 1.3;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.pd-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--pd-radius-sm);
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.pd-alert--info {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.pd-alert--success {
    background: var(--pd-brand-light);
    color: var(--pd-brand-dark);
    border: 1px solid rgba(4, 93, 72, 0.2);
}

.pd-alert--warn {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Meta row under title */
.pd-buy-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--pd-text-muted);
}

.pd-buy-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.pd-buy-meta__item i {
    color: var(--pd-brand);
}

.pd-buy-meta__live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    border: 1px solid #fecaca;
}

.pd-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    animation: pd-pulse 1.4s ease-in-out infinite;
}

@keyframes pd-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Stats row */
.pd-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.pd-stats--auction {
    margin-bottom: 0.85rem;
}

.pd-stat--lead {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--pd-brand-light) 0%, #fff 100%);
    border-color: rgba(4, 93, 72, 0.25);
}

.pd-stat--lead .pd-stat__value {
    font-size: 1.45rem;
}

@media (max-width: 575.98px) {
    .pd-stats {
        grid-template-columns: 1fr;
    }

    .pd-stat--lead {
        grid-column: auto;
    }
}

/* Countdown strip */
.pd-countdown {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(145deg, var(--pd-brand-dark) 0%, var(--pd-brand) 55%, var(--pd-brand-mid) 100%);
    border-radius: var(--pd-radius-sm);
    color: #fff;
    box-shadow: 0 8px 24px var(--pd-brand-glow);
}

.pd-countdown--urgent {
    animation: pd-countdown-glow 2s ease-in-out infinite;
}

@keyframes pd-countdown-glow {
    0%, 100% { box-shadow: 0 8px 24px var(--pd-brand-glow); }
    50% { box-shadow: 0 8px 32px rgba(220, 38, 38, 0.35); }
}

.pd-countdown--ended {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--pd-surface-muted);
    color: var(--pd-text-muted);
    font-weight: 700;
    box-shadow: none;
}

.pd-countdown--ended i {
    font-size: 1.25rem;
    color: #dc2626;
}

.pd-countdown__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.92;
}

.pd-countdown__units {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.pd-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.25rem;
    padding: 0.5rem 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.pd-countdown__num {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.pd-countdown__unit small {
    margin-top: 0.25rem;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.pd-countdown__sep {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.6;
    padding-bottom: 1rem;
}

.pd-countdown__hint {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.88;
}

.pd-live-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
}

.pd-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 0.75rem;
    background: var(--pd-surface-muted);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-stat:hover {
    border-color: rgba(4, 93, 72, 0.35);
    box-shadow: 0 2px 12px var(--pd-brand-glow);
}

.pd-stat__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--pd-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.pd-stat__value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pd-brand);
    margin: 0;
    line-height: 1.2;
}

.pd-stat__label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--pd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.pd-stat__value.text-danger {
    color: #dc2626 !important;
}

/* CTAs */
.pd-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--pd-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.pd-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--pd-brand-glow);
}

.pd-btn--primary,
.pd-actions .anchor-button,
.pd-actions .btn-success {
    background: linear-gradient(135deg, var(--pd-brand-dark), var(--pd-brand)) !important;
    color: #fff !important;
    border: none !important;
}

.pd-btn--secondary,
.pd-actions .btn-primary {
    background: #fff !important;
    color: var(--pd-brand) !important;
    border: 2px solid var(--pd-brand) !important;
}

.pd-btn--ghost {
    background: var(--pd-surface-muted) !important;
    color: var(--pd-text) !important;
    border: 1px solid var(--pd-border) !important;
}

.pd-user-bid-note {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--pd-brand-light), #fff);
    border: 1px solid rgba(4, 93, 72, 0.2);
    border-radius: var(--pd-radius-sm);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pd-user-bid-note i {
    color: var(--pd-brand);
}

.pd-user-bid-note small {
    color: var(--pd-text-muted);
    font-size: 0.72rem;
}

/* ─── Sidebar panels ─── */
.pd-panel,
.product-detail-page .pd-sidebar-card.bids {
    background: var(--pd-surface) !important;
    border: 1px solid var(--pd-border) !important;
    border-radius: var(--pd-radius) !important;
    box-shadow: var(--pd-shadow) !important;
    overflow: hidden;
}

.product-detail-page .pd-sidebar-card .bids-top.bg-gradient,
.pd-panel__head {
    background: linear-gradient(135deg, var(--pd-brand-dark) 0%, var(--pd-brand) 50%, var(--pd-brand-mid) 100%) !important;
    border: none;
    padding: 0.9rem 1.15rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-detail-page .pd-sidebar-card .bids-top h3,
.pd-panel__head {
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: 0.02em;
}

.pd-panel__body {
    padding: 1.15rem;
}

.pd-panel__body--center {
    display: flex;
    justify-content: center;
}

.pd-panel--seller .pd-panel__head {
    justify-content: flex-start;
}

/* Bid history rows */
.product-detail-page .pd-sidebar-card .bids-bottom {
    padding: 0.65rem 1rem;
    margin: 0.35rem 0.5rem !important;
    background: var(--pd-surface-muted);
    border-radius: var(--pd-radius-sm);
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.product-detail-page .pd-sidebar-card .bids-bottom:hover {
    background: var(--pd-brand-light);
    border-color: rgba(4, 93, 72, 0.15);
}

.product-detail-page .pd-sidebar-card .bids-bottom hr {
    display: none;
}

.product-detail-page .pd-sidebar-card .bids-bottom p {
    font-weight: 600;
    color: var(--pd-text);
    margin: 0;
    font-size: 0.88rem;
}

.product-detail-page .pd-sidebar-card .bids-bottom h2 {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--pd-brand) !important;
    margin: 0 !important;
}

#product-detail-bids-list {
    padding: 0.5rem 0;
    overflow: visible;
    max-height: none;
}

/* Store card inside sidebar */
.product-detail-page .pd-sidebar-card .card.shadow {
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 1.15rem 1.15rem !important;
    background: transparent;
}

.pd-store-avatar {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--pd-brand-light);
    box-shadow: 0 4px 12px var(--pd-brand-glow);
}

.pd-store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-message-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--pd-brand-dark), var(--pd-brand)) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--pd-radius-sm);
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s;
}

.pd-message-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--pd-brand-glow);
}

/* Audit verification chips */
.product-detail-page .bids-footer .d-flex.border {
    border: 1px solid var(--pd-border) !important;
    border-radius: var(--pd-radius-sm) !important;
    margin-bottom: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    background: var(--pd-surface-muted);
}

/* Gallery */
.product-detail-gallery {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow-lg);
    overflow: hidden;
}

.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.pd-gallery__stage {
    position: relative;
    width: 100%;
}

.product-detail-gallery .carousel-inner {
    height: min(520px, 62vw) !important;
    min-height: 300px;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
}

.product-detail-gallery .carousel-item img {
    height: min(520px, 62vw) !important;
    min-height: 300px;
}

.product-detail-gallery .pd-gallery__media,
.product-detail-gallery mux-player.pd-gallery__media {
    display: block;
    width: 100%;
    height: min(520px, 62vw) !important;
    min-height: 300px;
    background: #000;
    --media-object-fit: cover;
    --controls-backdrop-color: rgba(0, 0, 0, 0.45);
}

.pd-gallery__thumb-btn--video {
    position: relative;
}

.pd-gallery__thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 93, 72, 0.45);
    color: #fff;
    font-size: 1.35rem;
    pointer-events: none;
}

.pd-gallery__thumb-play i {
    line-height: 1;
}

.pd-gallery__nav,
.product-detail-page .pd-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
    padding: 0;
    background: rgba(4, 93, 72, 0.92) !important;
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pd-gallery__nav:hover {
    background: var(--pd-brand-dark) !important;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(4, 93, 72, 0.35);
}

#product-detail-gallery-carousel .prev,
#product-detail-gallery-carousel .pd-gallery__nav.prev {
    left: 0.85rem;
}

#product-detail-gallery-carousel .next,
#product-detail-gallery-carousel .pd-gallery__nav.next {
    right: 0.85rem;
}

.pd-gallery__nav i,
.pd-gallery__nav .bi,
.pd-gallery__nav .bi::before {
    color: #fff !important;
    font-size: 1.35rem;
    line-height: 1;
}

.pd-gallery__thumbs-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--pd-brand) transparent;
    padding: 0.15rem 0.25rem 0.35rem;
}

.pd-gallery__thumbs-wrap::-webkit-scrollbar {
    height: 6px;
}

.pd-gallery__thumbs-wrap::-webkit-scrollbar-thumb {
    background: var(--pd-brand);
    border-radius: 999px;
}

.product-detail-thumbs.pd-gallery__thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: min-content;
}

@media (min-width: 576px) {
    .product-detail-thumbs.pd-gallery__thumbs {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.product-detail-thumbs .gallery-item {
    position: relative;
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    border: 2px solid var(--pd-border);
    background: var(--pd-surface-muted);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-detail-thumbs .gallery-item.is-active {
    border-color: var(--pd-brand);
    box-shadow: 0 0 0 3px var(--pd-brand-glow);
    transform: translateY(-2px);
}

.product-detail-thumbs .gallery-item:hover {
    border-color: var(--pd-brand-mid);
}

.pd-gallery__thumb-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}

.pd-gallery__thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-gallery__thumb-zoom {
    position: absolute;
    right: 4px;
    bottom: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.55);
    color: #fff !important;
    font-size: 0.65rem;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-detail-thumbs .gallery-item:hover .pd-gallery__thumb-zoom,
.product-detail-thumbs .gallery-item.is-active .pd-gallery__thumb-zoom {
    opacity: 1;
}

.pd-gallery__thumb-zoom:hover {
    background: var(--pd-brand);
}

.pd-gallery__see-all {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(4, 93, 72, 0.78);
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.product-detail-thumbs .seeAllPhotos::before {
    border-radius: 10px;
}

.pd-gallery__thumbs-empty {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--pd-text-muted);
}

.product-detail-page .watch-count {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 0 0 0 12px;
    background: rgba(4, 93, 72, 0.92);
    backdrop-filter: blur(6px);
    color: #fff !important;
}

.product-detail-page .watch-count i,
.product-detail-page .watch-count .bi,
.product-detail-page .watch-count .bi::before {
    color: #fff !important;
}


/* Accordions */
.product-detail-accordions .accordion-item {
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-sm) !important;
    margin-bottom: 0.85rem;
    box-shadow: var(--pd-shadow);
    overflow: hidden;
}

.product-detail-accordions .accordion-button {
    font-weight: 700;
    font-size: 1rem;
    color: var(--pd-text);
    padding: 1rem 3rem 1rem 1.25rem;
    background: var(--pd-surface);
}

.product-detail-accordions .accordion-button:not(.collapsed) {
    color: var(--pd-brand);
    background: var(--pd-brand-light);
}

/* Item details (specs + description) */
.pd-item-details {
    margin-bottom: 0.85rem;
}

.pd-item-details__card {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 1.35rem 1.5rem;
}

.pd-item-details__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pd-text);
    margin: 0 0 1.15rem;
    letter-spacing: -0.01em;
}

.pd-item-details__title .bi {
    color: var(--pd-brand);
    font-size: 1.15rem;
}

.pd-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pd-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.7rem 0.85rem;
    background: var(--pd-surface-muted);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-sm);
    min-width: 0;
}

.pd-spec-item--wide {
    grid-column: 1 / -1;
}

.pd-spec-item__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pd-text-muted);
}

.pd-spec-item__value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pd-text);
    line-height: 1.35;
    word-break: break-word;
}

.pd-spec-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--pd-surface);
    color: var(--pd-text-muted);
    border: 1px solid var(--pd-border);
}

.pd-spec-badge--yes {
    background: var(--pd-brand-light);
    color: var(--pd-brand-dark);
    border-color: transparent;
}

.pd-spec-tags {
    margin-top: 1rem;
}

.pd-spec-tags__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pd-text-muted);
    margin-bottom: 0.45rem;
}

.pd-spec-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pd-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pd-brand-dark);
    background: var(--pd-brand-light);
    border-radius: 999px;
    line-height: 1.2;
}

.pd-color-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.pd-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.pd-color-chip__swatch {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.pd-item-details__about {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pd-border);
}

.pd-item-details__subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pd-text);
    margin: 0 0 0.65rem;
}

.pd-item-details__description {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--pd-text-muted);
}

.pd-item-details__description p:last-child {
    margin-bottom: 0;
}

@media (min-width: 576px) {
    .pd-spec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pd-spec-item--wide {
        grid-column: span 3;
    }
}

.pd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pd-reviews-list .product-detail-feedback-card {
    padding: 1rem 1.1rem;
    background: var(--pd-surface-muted);
}

.pd-rail-card__head-row .pd-live-pill {
    background: var(--pd-brand-light);
    color: var(--pd-brand);
    border: 1px solid rgba(4, 93, 72, 0.18);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-detail-feedback-card {
    border-radius: var(--pd-radius-sm);
    border: 1px solid var(--pd-border);
    transition: box-shadow 0.2s;
}

.product-detail-feedback-card:hover {
    box-shadow: var(--pd-shadow);
}

/* Related */
.pd-related {
    margin-top: 3rem;
    padding: 2rem 0 0;
    border-top: 2px solid var(--pd-border);
}

.pd-related__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pd-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-related__title::before {
    content: '';
    width: 4px;
    height: 1.4em;
    background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-mid));
    border-radius: 2px;
}

.pd-related__subtitle {
    margin: -0.75rem 0 1.5rem;
    font-size: 0.9rem;
}

/* ─── Store info banner (below product details) ─── */
.pd-store-info {
    margin: 0 0 2.5rem;
    width: 100%;
}

.pd-store-info__section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pd-text);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-store-info__section-title::before {
    content: '';
    width: 4px;
    height: 1.1em;
    background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-mid));
    border-radius: 2px;
}

.pd-store-info__card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem 1.5rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow-lg);
}

.pd-store-info__avatar {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--pd-brand-light);
    box-shadow: 0 4px 16px var(--pd-brand-glow);
    flex-shrink: 0;
}

.pd-store-info__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-store-info__body {
    min-width: 0;
}

.pd-store-info__name {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pd-text);
    text-decoration: none;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}

.pd-store-info__name:hover {
    color: var(--pd-brand);
}

.pd-store-info__meta {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.pd-store-info__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--pd-text-muted);
}

.pd-store-info__meta li i {
    color: var(--pd-brand);
    font-size: 1rem;
}

.pd-store-info__meta strong {
    color: var(--pd-text);
    font-weight: 700;
}

.pd-store-info__rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
}

.pd-store-info__stars {
    display: inline-flex;
    gap: 0.1rem;
    color: #f59e0b;
    font-size: 0.95rem;
}

.pd-store-info__rating-value {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--pd-text);
}

.pd-store-info__reviews {
    font-size: 0.85rem;
    color: var(--pd-text-muted);
}

.pd-store-info__no-reviews {
    font-size: 0.85rem;
    margin-bottom: 0.35rem !important;
}

.pd-store-info__location {
    font-size: 0.82rem;
    color: var(--pd-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pd-store-info__location i {
    color: var(--pd-brand);
}

.pd-store-info__actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 160px;
}

.pd-store-info__actions .pd-btn {
    width: 100%;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .pd-store-info__card {
        grid-template-columns: auto 1fr;
    }

    .pd-store-info__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .pd-store-info__actions .pd-btn {
        flex: 1;
        min-width: 140px;
    }
}

.pd-store-info__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pd-store-info__block {
    padding: 1.15rem 1.25rem;
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-sm);
    box-shadow: var(--pd-shadow);
}

.pd-store-info__block-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pd-text);
    margin: 0 0 0.65rem;
}

.pd-store-info__block-title i {
    color: var(--pd-brand);
}

.pd-store-info__block-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--pd-text-muted);
    margin: 0;
    word-break: break-word;
}

/* Payment methods panel */
.pd-payment__intro {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pd-text);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.pd-payment__list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pd-payment__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--pd-surface-muted);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-payment__item:hover {
    border-color: rgba(4, 93, 72, 0.3);
    box-shadow: 0 2px 10px var(--pd-brand-glow);
}

.pd-payment__logo {
    width: 56px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--pd-border);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
}

.pd-payment__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-payment__logo-fallback,
.pd-payment__logo--generic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.35rem;
    color: var(--pd-brand);
}

.pd-payment__copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.pd-payment__copy strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--pd-text);
}

.pd-payment__copy span {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--pd-text-muted);
}

.pd-payment__note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--pd-brand-dark);
    background: var(--pd-brand-light);
    border-radius: 8px;
    border: 1px solid rgba(4, 93, 72, 0.15);
}

.pd-payment__note i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pd-payment__empty {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--pd-text-muted);
}

.pd-payment__empty i {
    color: var(--pd-brand);
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .pd-store-info__card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pd-store-info__avatar {
        margin: 0 auto;
    }

    .pd-store-info__meta {
        justify-content: center;
    }

    .pd-store-info__rating {
        justify-content: center;
    }

    .pd-store-info__location {
        justify-content: center;
    }

    .pd-store-info__actions {
        flex-direction: column;
    }
}

.product-detail-page .watch-count::after {
    content: ' watching';
    color: #fff;
}

/* Misc */
.product-detail-page .w-90 {
    width: 90%;
}

.product-detail-page .seeAllPhotos::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 93, 72, 0.55);
    z-index: 1;
}

.product-detail-page .tooltip .tooltip-inner {
    background: var(--pd-brand) !important;
}

.product-detail-page .automatic-bid-icon {
    color: var(--pd-brand);
    background: var(--pd-brand-light);
    padding: 2px 6px;
    border-radius: 6px;
}

.product-detail-main {
    min-width: 0;
}

.product-detail-page .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23045d48' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2'/%3E%3C/svg%3E");
}

.product-detail-page .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23045d48' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8'/%3E%3C/svg%3E");
}

.product-detail-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--pd-text-muted);
}

@media (max-width: 575.98px) {
    .product-detail-feedback-card .feedback-meta {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
}
