/* ==========================================================================
   Craft Egypt — Studio Collector Product Detail Page
   ========================================================================== */

.pd-wrap {
    max-width: 1380px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 34px) clamp(16px, 4vw, 48px) 64px;
}

.pd-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 12.5px;
    color: var(--muted);
}

.pd-breadcrumbs a {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .66);
    border: 1px solid var(--line);
    color: var(--charcoal);
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}

.pd-breadcrumbs a:hover {
    background: var(--charcoal);
    color: var(--ivory);
}

.pd-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .95fr);
    gap: clamp(24px, 3.5vw, 44px);
    align-items: start;
}

@media (max-width: 980px) {
    .pd-stage {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pd-gallery-card {
    position: sticky;
    top: 88px;
    background: var(--glass-bg-strong);
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: var(--radius-2xl);
    padding: 14px;
    box-shadow: var(--glass-shadow);
}

@media (max-width: 980px) {
    .pd-gallery-card {
        position: static;
    }
}

.main-photo {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: var(--sand);
}

.main-photo img {
    display: block;
    width: 100%;
    height: clamp(320px, 48vw, 540px);
    object-fit: cover;
    transition: transform .75s cubic-bezier(.22, 1, .36, 1);
}

.main-photo:hover img {
    transform: scale(1.03);
}

.pd-photo-badges {
    position: absolute;
    top: 16px;
    inset-inline: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.pd-floating-tools {
    position: absolute;
    bottom: 16px;
    inset-inline-end: 16px;
    display: flex;
    gap: 8px;
}

.pd-tool-orb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .85);
    background: rgba(245, 241, 232, .88);
    backdrop-filter: blur(12px);
    color: var(--charcoal);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.pd-tool-orb:hover {
    background: var(--charcoal);
    color: var(--ivory);
    transform: translateY(-2px);
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 2px;
}

.thumb {
    flex: 0 0 82px;
    width: 82px;
    height: 68px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--sand);
    cursor: pointer;
    opacity: .68;
    transition: opacity .22s ease, border-color .22s ease, transform .22s ease;
}

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

.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: var(--terracotta);
    transform: translateY(-2px);
}

/* Collector Info Panel */
.pd-collector-panel {
    background: var(--glass-bg-strong);
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: var(--radius-2xl);
    padding: clamp(22px, 3vw, 36px);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(184, 154, 98, .18);
    color: var(--clay);
    font-size: 12px;
    font-weight: 700;
}

.pd-stock-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--terracotta);
}

.pd-stock-pill.is-out {
    background: rgba(33, 28, 24, .08);
    color: var(--muted);
}

.item-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.2;
    color: var(--charcoal);
    overflow-wrap: anywhere;
}

.item-short {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.pd-price-banner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 20%, rgba(184, 154, 98, .25), transparent 65%),
        var(--ivory);
    border: 1px solid var(--line);
}

.pd-price-banner__main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-variant-numeric: tabular-nums;
}

.pd-price-banner__now {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3vw, 34px);
    color: var(--charcoal);
    font-weight: 800;
}

.pd-price-banner__old {
    font-size: 15px;
    color: var(--muted);
    text-decoration: line-through;
}

.pd-price-banner__save {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--terracotta);
    color: var(--ivory);
    font-size: 11.5px;
    font-weight: 700;
}

/* Modular Bento Spec Grid */
.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 560px) {
    .meta-list {
        grid-template-columns: 1fr;
    }
}

.meta-list li {
    padding: 12px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.meta-list li.span-full {
    grid-column: 1 / -1;
}

.meta-key {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--terracotta);
}

.meta-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    overflow-wrap: anywhere;
}

.pd-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.copy-btn {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--ivory);
    color: var(--charcoal);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.copy-btn:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--ivory);
}

.pd-cta-stack {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
}

@media (max-width: 520px) {
    .pd-cta-stack {
        grid-template-columns: 1fr;
    }
}

.pd-trust-notes {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(233, 225, 210, .55);
    border: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.85;
    color: var(--muted);
}

/* Below-the-fold Dossier Bento */
.pd-dossier-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.pd-dossier-card {
    grid-column: span 6;
    background: var(--glass-bg-strong);
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 3vw, 34px);
    box-shadow: var(--shadow-sm);
}

.pd-dossier-card--full {
    grid-column: span 12;
}

@media (max-width: 860px) {
    .pd-dossier-card {
        grid-column: span 12;
    }
}

.pd-dossier-card h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 8px 0 14px;
}

.pd-dossier-card .lead {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.95;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.gallery img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
    transition: transform .4s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.prod-card {
    background: var(--glass-bg-strong);
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 26px;
    padding: 12px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    transition: transform .32s ease, box-shadow .32s ease;
}

.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.prod-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 18px;
    background: var(--sand);
}

.prod-body {
    padding: 16px 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.prod-body h3 {
    font-size: 18px;
}

.prod-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--charcoal);
    color: var(--ivory);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .22s ease;
}

.prod-link:hover {
    background: var(--terracotta);
}

@media print {
    .site-header-shell,
    .footer-ecosystem,
    .pd-cta-stack,
    .pd-floating-tools,
    .thumbs {
        display: none !important;
    }
}
