/* =========================================================================
   Fiche œuvre — layout V2 muséal (partagé thèmes 1–7)
   ========================================================================= */

.ad-pd-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 4vw, 4rem) clamp(3rem, 7vw, 5.5rem);
    color: inherit;
}

.ad-pd-bread {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 clamp(1.5rem, 3vw, 2.75rem);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, currentColor 55%, transparent);
}

.ad-pd-bread a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.ad-pd-bread a:hover {
    color: var(--ad-pd-accent, var(--museum-gold, #c9a86a));
}

.ad-pd-bread [aria-current="page"] {
    color: inherit;
    opacity: 1;
}

.ad-pd-bread .ad-pd-sep {
    opacity: 0.35;
    user-select: none;
}

.ad-pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.ad-pd-gallery {
    position: sticky;
    top: calc(var(--nav-height, 72px) + 20px);
}

.ad-pd-hero {
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, currentColor 4%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.ad-pd-hero img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
}

.ad-pd-hero:hover img {
    transform: scale(1.02);
}

.ad-pd-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 12px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: #0a0a0a;
    color: #fff;
}

.ad-pd-badge.is-low {
    background: #fef3c7;
    color: #92400e;
}

.ad-pd-badge.is-out {
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: inherit;
}

.ad-pd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ad-pd-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    background: color-mix(in srgb, currentColor 4%, transparent);
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s;
    overflow: hidden;
}

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

.ad-pd-thumb.is-active,
.ad-pd-thumb:hover {
    opacity: 1;
    border-color: var(--ad-pd-accent, var(--museum-gold, #c9a86a));
}

.ad-pd-info {
    padding-top: 4px;
}

.ad-pd-eyebrow {
    margin: 0 0 10px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ad-pd-accent, var(--museum-gold, #c9a86a));
}

.ad-pd-title {
    margin: 0 0 12px;
    font-family: var(--font-display, var(--t4-serif, Georgia, serif));
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    font-weight: 400;
    line-height: 1.08;
}

.ad-pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 1.5rem;
    font-size: 0.8rem;
    color: color-mix(in srgb, currentColor 62%, transparent);
}

.ad-pd-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ad-pd-price {
    margin: 0 0 1.5rem;
    font-family: var(--font-display, var(--t4-serif, Georgia, serif));
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1;
}

.ad-pd-price-note {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, currentColor 55%, transparent);
}

.ad-pd-desc {
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.85;
    color: color-mix(in srgb, currentColor 78%, transparent);
    max-width: 52ch;
}

.ad-pd-specs {
    margin: 0 0 1.5rem;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.ad-pd-spec {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    font-size: 0.85rem;
}

.ad-pd-spec dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, currentColor 55%, transparent);
}

.ad-pd-spec dd {
    margin: 0;
    text-align: right;
}

.ad-pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1.5rem;
}

.ad-pd-tag {
    padding: 5px 12px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

.ad-pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 1.25rem;
    align-items: stretch;
}

.ad-pd-qty {
    display: flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.ad-pd-qty button {
    width: 40px;
    height: 48px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.ad-pd-qty button:hover {
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.ad-pd-qty input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: inherit;
}

.ad-pd-btn-primary {
    flex: 1;
    min-width: 180px;
    height: 48px;
    padding: 0 20px;
    border: none;
    background: #0a0a0a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.25s, opacity 0.2s;
}

.ad-pd-btn-primary:hover {
    background: var(--ad-pd-accent, var(--museum-gold, #c9a86a));
    color: #0a0a0a;
}

.ad-pd-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ad-pd-btn-ghost,
.ad-pd-btn-fav {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.ad-pd-btn-fav:hover,
.ad-pd-btn-ghost:hover {
    border-color: var(--ad-pd-accent, var(--museum-gold, #c9a86a));
}

.ad-pd-sold {
    padding: 14px 16px;
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    color: color-mix(in srgb, currentColor 70%, transparent);
}

.ad-pd-trust {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.ad-pd-trust li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    font-size: 0.8rem;
    color: color-mix(in srgb, currentColor 65%, transparent);
    border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.ad-pd-trust li:last-child {
    border-bottom: none;
}

.ad-pd-trust i {
    margin-top: 2px;
    width: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.ad-pd-trust a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ad-pd-faq {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 2rem;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    max-width: 640px;
}

.ad-pd-faq h2 {
    margin: 0 0 1.25rem;
    font-family: var(--font-display, var(--t4-serif, Georgia, serif));
    font-size: 1.35rem;
    font-weight: 400;
}

.ad-pd-faq details {
    border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.ad-pd-faq summary {
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.ad-pd-faq summary::-webkit-details-marker {
    display: none;
}

.ad-pd-faq p {
    margin: 0 0 14px;
    padding-left: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: color-mix(in srgb, currentColor 72%, transparent);
}

.ad-pd-related {
    margin-top: clamp(3rem, 7vw, 5rem);
    padding-top: 2.5rem;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.ad-pd-related-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 1.75rem;
}

.ad-pd-related-head h2 {
    margin: 0;
    font-family: var(--font-display, var(--t4-serif, Georgia, serif));
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 400;
}

.ad-pd-related-link {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, currentColor 55%, transparent);
    text-decoration: none;
}

.ad-pd-related-link:hover {
    color: var(--ad-pd-accent, var(--museum-gold, #c9a86a));
}

.ad-pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.ad-pd-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    transition: border-color 0.25s;
}

.ad-pd-card:hover {
    border-color: var(--ad-pd-accent, var(--museum-gold, #c9a86a));
}

.ad-pd-card-img {
    overflow: hidden;
    background: color-mix(in srgb, currentColor 5%, transparent);
}

.ad-pd-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-pd-card:hover img {
    transform: scale(1.04);
}

.ad-pd-card-body {
    padding: 12px 14px 14px;
}

.ad-pd-card h3 {
    margin: 0 0 4px;
    font-family: var(--font-display, var(--t4-serif, Georgia, serif));
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.25;
}

.ad-pd-card-price {
    font-size: 0.8rem;
    color: color-mix(in srgb, currentColor 60%, transparent);
}

@media (max-width: 960px) {
    .ad-pd-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ad-pd-gallery {
        position: static;
    }

    .ad-pd-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .ad-pd-actions {
        flex-direction: column;
    }

    .ad-pd-btn-primary {
        width: 100%;
    }

    .ad-pd-related-grid {
        grid-template-columns: 1fr;
    }
}

.ad-pd-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(70vh, 520px);
    font-size: 4rem;
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.ad-pd-seller-line {
    margin: -0.35rem 0 1.1rem;
    font-size: 0.92rem;
}

.ad-pd-cart-form {
    flex: 1;
    min-width: 0;
}

.ad-pd-cart-form .ad-pd-btn-primary {
    width: 100%;
    border: none;
    cursor: pointer;
}
