/* ========== PRODUCT PAGE — Design System Pompe ========== */
/* Single product + archive pages for /pieces-or/ */

/* ---------- VARIABLES ---------- */
:root {
    --pompe-product-hero-height: 480px;
    --pompe-product-card-radius: 16px;
    --pompe-product-coin-size: 280px;
}

/* ========== PRODUCT HERO ========== */

.pompe-product-hero {
    background-color: var(--pompe-fond-dark);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.pompe-product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(74, 155, 168, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.pompe-product-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pompe-product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pompe-font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pompe-product-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.pompe-product-breadcrumb a:hover {
    color: var(--pompe-cyan-accent);
}

.pompe-product-breadcrumb .sep {
    font-size: 0.7rem;
    opacity: 0.4;
}

.pompe-product-badge {
    display: inline-block;
    font-family: var(--pompe-font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.15), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(191, 149, 63, 0.3);
    color: var(--pompe-gold-light);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.pompe-product-title {
    font-family: var(--pompe-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 8px;
}

.pompe-product-subtitle {
    font-family: var(--pompe-font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px;
    font-style: italic;
}

.pompe-product-hero-price {
    margin-bottom: 28px;
}

.pompe-product-price-label {
    display: block;
    font-family: var(--pompe-font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.pompe-product-price-value {
    font-family: var(--pompe-font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    background: var(--pompe-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.pompe-product-price-update {
    display: block;
    font-family: var(--pompe-font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.pompe-product-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pompe-font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 8px;
    background: var(--pompe-gold-gradient);
    color: #1a1a2e;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pompe-product-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(191, 149, 63, 0.3);
}

.pompe-product-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pompe-product-hero-image img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}

/* ========== PRICE CARDS ========== */

.pompe-product-prices {
    background-color: var(--pompe-fond-medium);
    padding: 48px 0;
}

.pompe-product-prices-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.pompe-product-prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.pompe-product-price-card {
    background-color: var(--pompe-fond-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--pompe-product-card-radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.pompe-product-price-card:hover {
    transform: translateY(-3px);
}

.pompe-product-price-card--buy {
    border-color: rgba(191, 149, 63, 0.3);
    background: linear-gradient(180deg, rgba(191, 149, 63, 0.08) 0%, var(--pompe-fond-card) 100%);
}

.pompe-product-price-card--buy:hover {
    border-color: rgba(191, 149, 63, 0.5);
}

.pompe-product-price-card h3 {
    font-family: var(--pompe-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

.pompe-product-price-card .pompe-price-big {
    display: block;
    font-family: var(--pompe-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.pompe-product-price-card--buy .pompe-price-big {
    background: var(--pompe-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pompe-product-price-card .pompe-price-currency {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
}

/* ========== SPECIFICATIONS TABLE ========== */

.pompe-product-specs {
    margin-top: 8px;
}

.pompe-product-specs-title {
    font-family: var(--pompe-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    text-align: center;
}

.pompe-product-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.pompe-product-spec {
    background-color: var(--pompe-fond-card);
    padding: 16px 20px;
    text-align: center;
}

.pompe-product-spec-label {
    display: block;
    font-family: var(--pompe-font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.pompe-product-spec-value {
    display: block;
    font-family: var(--pompe-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== COIN GALLERY (FLIP) ========== */

.pompe-product-gallery {
    background-color: var(--pompe-fond-dark);
    padding: 48px 0;
}

.pompe-product-gallery-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.pompe-product-gallery-title {
    font-family: var(--pompe-font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.pompe-product-gallery-hint {
    font-family: var(--pompe-font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 32px;
}

.pompe-product-coin {
    width: var(--pompe-product-coin-size);
    height: var(--pompe-product-coin-size);
    margin: 0 auto;
    perspective: 1000px;
    cursor: pointer;
}

.pompe-product-coin-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.pompe-product-coin.flipped .pompe-product-coin-inner {
    transform: rotateY(180deg);
}

.pompe-product-coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pompe-fond-card);
}

.pompe-product-coin-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pompe-product-coin-reverse {
    transform: rotateY(180deg);
}

.pompe-product-coin-labels {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

.pompe-product-coin-label {
    font-family: var(--pompe-font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.pompe-product-coin-label.active {
    color: var(--pompe-gold-light);
    border-color: rgba(191, 149, 63, 0.4);
    background: rgba(191, 149, 63, 0.08);
}

/* No reverse image fallback */
.pompe-product-coin--no-reverse {
    cursor: default;
}

.pompe-product-coin--no-reverse .pompe-product-coin-inner {
    transition: none;
}

/* ========== EDITORIAL CONTENT ========== */

.pompe-product-content {
    padding: 56px 0;
}

.pompe-product-content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.pompe-product-section {
    margin-bottom: 48px;
}

.pompe-product-section:last-child {
    margin-bottom: 0;
}

.pompe-product-section-tag {
    display: inline-block;
    font-family: var(--pompe-font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* On dark bg */
.pompe-bg-dark .pompe-product-section-tag,
.pompe-bg-medium .pompe-product-section-tag {
    color: var(--pompe-cyan-accent);
}

/* On light bg */
.pompe-bg-white .pompe-product-section-tag,
.pompe-bg-ecrin .pompe-product-section-tag {
    color: var(--pompe-cyan-on-light);
}

.pompe-product-section h2 {
    font-family: var(--pompe-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.pompe-bg-dark .pompe-product-section h2,
.pompe-bg-medium .pompe-product-section h2 {
    color: rgba(255, 255, 255, 0.95);
}

.pompe-bg-white .pompe-product-section h2,
.pompe-bg-ecrin .pompe-product-section h2 {
    color: var(--pompe-text-dark);
}

.pompe-product-section p {
    font-family: var(--pompe-font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.pompe-bg-dark .pompe-product-section p,
.pompe-bg-medium .pompe-product-section p {
    color: rgba(255, 255, 255, 0.7);
}

.pompe-bg-white .pompe-product-section p,
.pompe-bg-ecrin .pompe-product-section p {
    color: var(--pompe-text-dark-secondary);
}

.pompe-product-section p strong {
    font-weight: 600;
}

.pompe-bg-dark .pompe-product-section p strong,
.pompe-bg-medium .pompe-product-section p strong {
    color: rgba(255, 255, 255, 0.95);
}

.pompe-bg-white .pompe-product-section p strong,
.pompe-bg-ecrin .pompe-product-section p strong {
    color: var(--pompe-text-dark);
}

/* Anecdotes */
.pompe-product-anecdotes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.pompe-product-anecdote {
    padding: 20px 24px;
    border-radius: 12px;
    font-family: var(--pompe-font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    padding-left: 48px;
}

.pompe-bg-dark .pompe-product-anecdote,
.pompe-bg-medium .pompe-product-anecdote {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
}

.pompe-bg-white .pompe-product-anecdote,
.pompe-bg-ecrin .pompe-product-anecdote {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--pompe-text-dark-secondary);
}

.pompe-product-anecdote::before {
    content: '💡';
    position: absolute;
    left: 16px;
    top: 20px;
    font-size: 1.1rem;
}

/* Investment list */
.pompe-product-invest-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pompe-product-invest-list li {
    font-family: var(--pompe-font-body);
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 28px;
    position: relative;
}

.pompe-product-invest-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.pompe-bg-dark .pompe-product-invest-list li,
.pompe-bg-medium .pompe-product-invest-list li {
    color: rgba(255, 255, 255, 0.7);
}

.pompe-bg-dark .pompe-product-invest-list li::before,
.pompe-bg-medium .pompe-product-invest-list li::before {
    color: var(--pompe-gold-light);
}

.pompe-bg-white .pompe-product-invest-list li,
.pompe-bg-ecrin .pompe-product-invest-list li {
    color: var(--pompe-text-dark-secondary);
}

.pompe-bg-white .pompe-product-invest-list li::before,
.pompe-bg-ecrin .pompe-product-invest-list li::before {
    color: var(--pompe-gold-on-light);
}

/* ========== RELATED PRODUCTS ========== */

.pompe-product-related {
    background-color: var(--pompe-fond-medium);
    padding: 56px 0;
}

.pompe-product-related-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.pompe-product-related-title {
    font-family: var(--pompe-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 32px;
}

.pompe-product-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pompe-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--pompe-fond-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--pompe-product-card-radius);
    padding: 24px 16px 20px;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pompe-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(191, 149, 63, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.pompe-product-card-image {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pompe-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pompe-product-card-name {
    font-family: var(--pompe-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pompe-product-card-weight {
    font-family: var(--pompe-font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.pompe-product-card-price {
    font-family: var(--pompe-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--pompe-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== FAQ ========== */

.pompe-product-faq {
    background-color: var(--pompe-fond-dark);
    padding: 56px 0;
}

.pompe-product-faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.pompe-product-faq-title {
    font-family: var(--pompe-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 32px;
}

/* Reuse existing pompe-faq-item styles from theme-pompe.css */

/* ========== CTA SECTION ========== */

.pompe-product-cta {
    background-color: var(--pompe-fond-medium);
    padding: 56px 0;
    text-align: center;
}

.pompe-product-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.pompe-product-cta h2 {
    font-family: var(--pompe-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
}

.pompe-product-cta p {
    font-family: var(--pompe-font-body);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
}

.pompe-product-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== ARCHIVE PAGE ========== */

.pompe-products-archive-hero {
    background-color: var(--pompe-fond-dark);
    padding: 56px 0 40px;
    text-align: center;
}

.pompe-products-archive-hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.pompe-products-archive-hero h1 {
    font-family: var(--pompe-font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.pompe-products-archive-hero p {
    font-family: var(--pompe-font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 24px;
}

.pompe-products-archive-spot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(191, 149, 63, 0.08);
    border: 1px solid rgba(191, 149, 63, 0.25);
    border-radius: 100px;
    padding: 10px 24px;
    font-family: var(--pompe-font-display);
}

.pompe-products-archive-spot-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.pompe-products-archive-spot-price {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--pompe-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pompe-products-archive-grid-section {
    background-color: var(--pompe-fond-medium);
    padding: 48px 0 56px;
}

.pompe-products-archive-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Filter tabs */
.pompe-products-filter {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.pompe-products-filter-btn {
    font-family: var(--pompe-font-display);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}

.pompe-products-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.pompe-products-filter-btn.active {
    background: var(--pompe-gold-gradient);
    border-color: transparent;
    color: #1a1a2e;
}

/* Archive grid */
.pompe-products-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ========== CALLBACK REQUEST SECTION ========== */

.pompe-product-callback {
    background: linear-gradient(135deg, rgba(74, 155, 168, 0.08), rgba(61, 107, 122, 0.05));
    border: 1px solid rgba(74, 155, 168, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
}

.pompe-product-callback h3 {
    font-family: var(--pompe-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
}

.pompe-product-callback p {
    font-family: var(--pompe-font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.pompe-product-callback-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1023px) {
    .pompe-product-hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .pompe-product-hero-image {
        order: -1;
    }

    .pompe-product-hero-image img {
        width: 200px;
        height: 200px;
    }

    .pompe-product-breadcrumb {
        justify-content: center;
    }

    .pompe-product-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .pompe-product-hero {
        padding: 40px 0 32px;
    }

    .pompe-product-prices-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pompe-product-price-card {
        padding: 20px 16px;
    }

    .pompe-product-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    :root {
        --pompe-product-coin-size: 200px;
    }

    .pompe-product-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .pompe-product-card {
        padding: 16px 12px 16px;
    }

    .pompe-product-card-image {
        width: 80px;
        height: 80px;
    }

    .pompe-products-archive-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .pompe-product-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pompe-product-anecdote {
        padding-left: 40px;
    }
}

@media (max-width: 479px) {
    .pompe-product-specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pompe-product-related-grid {
        grid-template-columns: 1fr;
    }

    .pompe-products-archive-grid {
        grid-template-columns: 1fr;
    }

    .pompe-product-coin-labels {
        gap: 16px;
    }
}

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
    .pompe-product-coin-inner {
        transition: none;
    }

    .pompe-product-price-card,
    .pompe-product-card,
    .pompe-product-hero-cta {
        transition: none;
    }
}
