/*
 * Page produit "dossier d'enquête vintage moderne".
 * Active via la classe `.product-modern` posée sur les sections principales.
 * Esprit : ambre / parchemin / sceaux / chapitrage éditorial.
 */

/* ========== Hygiène responsive ========== */
.product-modern,
.product-modern *,
.product-modern *::before,
.product-modern *::after {
    box-sizing: border-box;
    min-width: 0;
}

.product-modern img,
.product-modern svg,
.product-modern video {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-modern code {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ========== HERO — shell éditorial plein largeur ========== */
.product-modern .product-hero-shell {
    position: relative;
    overflow: hidden;
    border-radius: clamp(14px, 2.5vw, 28px);
    padding: clamp(1.25rem, 4vw, 2.75rem);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(243, 201, 138, 0.18), transparent 60%),
        radial-gradient(120% 90% at 100% 100%, rgba(163, 32, 32, 0.10), transparent 55%),
        linear-gradient(135deg, rgba(31, 24, 19, 0.96), rgba(15, 10, 6, 0.98));
    box-shadow: 0 24px 56px rgba(15, 10, 6, 0.4);
    isolation: isolate;
    border: 1px solid rgba(208, 169, 109, 0.18);
}

/* Texture parchemin */
.product-modern .product-hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.82  0 0 0 0 0.55  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
    opacity: 0.18;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* Coins ornés en filigrane */
.product-modern .product-hero-shell::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(216, 161, 90, 0.15);
    border-radius: clamp(10px, 2vw, 22px);
    pointer-events: none;
    z-index: 0;
}

.product-modern .product-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(1rem, 3vw, 1.75rem);
    grid-template-columns: 1fr;
    grid-template-areas:
        "media"
        "intro"
        "purchase"
        "actions";
}

@media (min-width: 820px) {
    .product-modern .product-hero-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
        grid-template-areas:
            "media intro"
            "media purchase"
            "actions actions";
        align-items: start;
    }
}

@media (min-width: 1180px) {
    .product-modern .product-hero-layout {
        grid-template-columns: minmax(0, 1.3fr) minmax(380px, 1fr);
        gap: 2.5rem;
    }
}

.product-modern .product-media-column { grid-area: media; display: grid; gap: 0.85rem; align-content: start; min-width: 0; }
.product-modern .product-hero-intro { grid-area: intro; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.product-modern .product-hero-purchase { grid-area: purchase; min-width: 0; align-self: start; }
.product-modern .product-hero-actions { grid-area: actions; }

@media (min-width: 820px) {
    .product-modern .product-hero-purchase {
        position: sticky;
        top: calc(var(--header-offset, 88px) + 1rem);
    }
}

/* ========== HERO — galerie éditoriale ========== */
.product-modern .product-media-column .product-hero-media {
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(216, 161, 90, 0.25);
    aspect-ratio: 1 / 1;
    min-height: 0;
    transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
}

.product-modern .product-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 10, 6, 0.35));
    pointer-events: none;
}

.product-modern .product-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 820px) {
    .product-modern .product-hero-media { aspect-ratio: 4 / 5; }
}

@media (min-width: 1180px) {
    .product-modern .product-hero-media { aspect-ratio: 3 / 4; }
}

@media (hover: hover) {
    .product-modern .product-hero-media:hover { transform: translateY(-3px); }
}

.product-modern .product-gallery-carousel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-modern .product-gallery-viewport { flex: 1; overflow: hidden; }

.product-modern .product-gallery-strip {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem;
}

.product-modern .product-gallery-strip::-webkit-scrollbar { display: none; }

.product-modern .product-gallery-thumb {
    flex: 0 0 clamp(64px, 18vw, 96px);
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-modern .product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-modern .product-gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 22, 15, 0.3);
}

.product-modern .product-gallery-thumb.is-active {
    border-color: var(--em-amber-500);
    box-shadow: 0 0 22px rgba(243, 201, 138, 0.4);
}

.product-modern .product-gallery-control {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(208, 169, 109, 0.3);
    background: rgba(31, 24, 19, 0.7);
    color: var(--em-amber-200);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    transition: background 160ms ease;
}

.product-modern .product-gallery-control:hover { background: rgba(216, 161, 90, 0.2); }

@media (max-width: 480px) {
    .product-modern .product-gallery-control { display: none; }
}

/* ========== HERO — copy éditorial avec sceau ========== */
.product-modern .product-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--em-ink-100);
    opacity: 0.75;
    letter-spacing: 0.04em;
}

.product-modern .product-breadcrumbs a:hover { color: var(--em-amber-200); }

.product-modern .product-title-stack {
    display: grid;
    gap: 0.55rem;
    position: relative;
}

/* Sceau ornemental devant l'eyebrow */
.product-modern .product-title-stack .eyebrow {
    color: var(--em-amber-200);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.product-modern .product-title-stack .eyebrow::before {
    content: "❖";
    color: var(--em-amber-500);
    font-size: 0.85rem;
    transform: translateY(-1px);
}

/* Titre éditorial : police plus dense, espacement large */
.product-modern .product-title-stack h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: 0;
    color: var(--em-text);
    margin: 0.2rem 0 0.4rem;
    overflow-wrap: anywhere;
    hyphens: auto;
    font-weight: 400;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* Filet doré sous le titre */
.product-modern .product-title-stack h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin-top: 0.85rem;
    background: linear-gradient(90deg, var(--em-amber-500), transparent);
}

.product-modern .hero-copy {
    color: var(--em-ink-100);
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    line-height: 1.6;
    max-width: 52ch;
    margin: 0;
    font-style: italic;
    opacity: 0.92;
}

.product-modern .product-status-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--em-amber-500), var(--em-amber-700));
    color: var(--em-ink-900);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 0 22px rgba(243, 201, 138, 0.35);
    align-self: start;
}

.product-modern .product-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-modern .product-hero-meta .stock-pill {
    background: rgba(255, 252, 246, 0.05);
    border: 1px solid rgba(208, 169, 109, 0.3);
    color: var(--em-text);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    white-space: normal;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.03em;
}

/* ========== HERO — carte achat papier vieilli ========== */
.product-modern .product-hero-purchase {
    background:
        radial-gradient(ellipse at top, rgba(243, 201, 138, 0.18), transparent 70%),
        var(--em-paper-50);
    color: var(--em-ink-700);
    border-radius: 14px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow:
        0 12px 28px rgba(15, 10, 6, 0.35),
        inset 0 0 0 1px rgba(154, 90, 0, 0.15);
    border: 1px solid rgba(90, 66, 40, 0.18);
    display: grid;
    gap: 1.1rem;
    position: relative;
}

/* Coin orné en haut à droite */
.product-modern .product-hero-purchase::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-top: 2px solid var(--em-amber-700);
    border-right: 2px solid var(--em-amber-700);
    opacity: 0.5;
    border-radius: 0 6px 0 0;
}

.product-modern .product-hero-purchase::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-bottom: 2px solid var(--em-amber-700);
    border-left: 2px solid var(--em-amber-700);
    opacity: 0.5;
    border-radius: 0 0 0 6px;
}

.product-modern .product-purchase-head {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(154, 90, 0, 0.3);
}

.product-modern .product-purchase-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--em-ink-700);
    margin: 0;
    line-height: 1.25;
    font-weight: 400;
}

.product-modern .product-purchase-price {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--em-amber-700);
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.product-modern .product-order-note {
    color: var(--em-ink-300);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    font-style: italic;
}

.product-modern .detail-buy-box { display: grid; gap: 0.6rem; }

.product-modern .detail-buy-box label {
    font-size: 0.78rem;
    color: var(--em-ink-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.product-modern .quantity-input {
    width: 100%;
    max-width: 120px;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(90, 66, 40, 0.25);
    background: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.product-modern .quantity-help {
    font-size: 0.78rem;
    color: var(--em-ink-300);
    margin: 0;
    font-style: italic;
}

.product-modern .product-hero-purchase .button-primary {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--em-amber-500), var(--em-amber-700));
    color: var(--em-ink-900);
    border: none;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
    box-shadow: 0 6px 16px rgba(154, 90, 0, 0.3);
}

@media (hover: hover) {
    .product-modern .product-hero-purchase .button-primary:hover:not([disabled]) {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(154, 90, 0, 0.4);
        filter: brightness(1.06);
    }
}

.product-modern .product-hero-purchase .button-primary[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.product-modern .product-trust-list {
    list-style: none;
    margin: 0;
    padding: 0.85rem 0 0;
    border-top: 1px dashed rgba(154, 90, 0, 0.3);
    display: grid;
    gap: 0.5rem;
    color: var(--em-ink-300);
    font-size: 0.85rem;
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .product-modern .product-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.product-modern .product-trust-list li {
    padding-left: 1.4rem;
    position: relative;
}

.product-modern .product-trust-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--em-forest-700);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Actions */
.product-modern .product-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(208, 169, 109, 0.15);
    margin-top: 0.5rem;
}

.product-modern .product-hero-actions .button-secondary {
    display: inline-flex;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(208, 169, 109, 0.4);
    color: var(--em-amber-200);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    transition: background 160ms ease, border-color 160ms ease;
}

.product-modern .product-hero-actions .button-secondary:hover {
    background: rgba(216, 161, 90, 0.12);
    border-color: rgba(216, 161, 90, 0.7);
}

/* ========== Barre d'ancres "chapitres" ========== */
.product-modern .product-chapter-nav {
    position: relative;
    z-index: 1;
    margin-top: clamp(1.25rem, 3vw, 2rem);
    padding: 0.85rem clamp(0.9rem, 2vw, 1.4rem);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    border-top: 1px solid rgba(208, 169, 109, 0.25);
    border-bottom: 1px solid rgba(208, 169, 109, 0.25);
    background: rgba(15, 10, 6, 0.35);
    border-radius: 10px;
}

.product-modern .product-chapter-nav__label {
    color: var(--em-amber-200);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-right: 0.25rem;
}

.product-modern .product-chapter-nav a {
    color: var(--em-ink-100);
    font-size: 0.86rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
    white-space: nowrap;
}

.product-modern .product-chapter-nav a:hover {
    color: var(--em-ink-900);
    background: var(--em-amber-200);
    border-color: var(--em-amber-200);
}

.product-modern .product-chapter-nav__hint {
    margin-left: auto;
    color: var(--em-amber-200);
    font-size: 1.15rem;
    animation: em-hint-bounce 1.8s ease-in-out infinite;
}

@keyframes em-hint-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(5px); opacity: 1; }
}

.product-modern [id^="chapter-"] {
    scroll-margin-top: calc(var(--header-offset, 88px) + 1rem);
}

/* ========== DOSSIER — sections rythmées ========== */
.product-modern .product-story-shell {
    padding-block: clamp(2rem, 6vw, 4rem);
    position: relative;
}

.product-modern .dossier-grid {
    display: grid;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .product-modern .dossier-grid {
        grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    }
}

.product-modern .dossier-main,
.product-modern .dossier-side {
    display: grid;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    align-content: start;
}

/* Carte article style fiche d'archive */
.product-modern .product-story-card {
    background:
        radial-gradient(ellipse at top right, rgba(243, 201, 138, 0.12), transparent 65%),
        var(--em-paper-100);
    color: var(--em-ink-700);
    border-radius: 14px;
    padding: clamp(1.25rem, 3.5vw, 2rem);
    border: 1px solid rgba(90, 66, 40, 0.15);
    box-shadow: 0 4px 14px rgba(15, 10, 6, 0.1);
    transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
}

/* Filet supérieur ambré sur chaque fiche */
.product-modern .product-story-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--em-amber-500) 30%, var(--em-amber-700) 70%, transparent);
}

/* Numérotation auto des chapitres principaux */
.product-modern .dossier-main {
    counter-reset: chapter;
}

.product-modern .dossier-main .product-story-card { counter-increment: chapter; }

.product-modern .dossier-main .product-story-card .eyebrow::before {
    content: "Chapitre " counter(chapter, upper-roman) " · ";
    color: var(--em-amber-500);
    font-weight: 700;
}

@media (hover: hover) {
    .product-modern .product-story-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(31, 22, 15, 0.18);
    }
}

.product-modern .product-story-card .eyebrow {
    color: var(--em-amber-700);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-bottom: 0.5rem;
    display: block;
}

.product-modern .product-story-card h2,
.product-modern .product-story-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--em-ink-700);
    margin: 0.4rem 0 0.6rem;
    line-height: 1.2;
    font-weight: 400;
}

.product-modern .product-story-card h2 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    letter-spacing: -0.01em;
}

.product-modern .product-story-card h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 0.7rem;
    background: linear-gradient(90deg, var(--em-amber-700), transparent);
}

.product-modern .product-story-card h3 {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    color: var(--em-ink-500);
}

.product-modern .product-story-card p {
    color: var(--em-ink-300);
    line-height: 1.65;
    margin: 0 0 0.7rem;
}

.product-modern .product-story-card p:last-child { margin-bottom: 0; }

.product-modern .dossier-lead {
    font-size: clamp(1.05rem, 2.3vw, 1.18rem);
    color: var(--em-ink-700) !important;
    font-style: italic;
    line-height: 1.6 !important;
    padding-left: 1rem;
    border-left: 3px solid var(--em-amber-500);
}

.product-modern .product-feature-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin-top: 1.1rem;
}

@media (min-width: 640px) {
    .product-modern .product-feature-columns { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.product-modern .product-feature-columns > div {
    padding: 0.85rem 1rem;
    background: rgba(243, 201, 138, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--em-amber-500);
}

.product-modern .product-feature-columns h3 {
    margin-top: 0;
    font-size: 1.05rem !important;
}

.product-modern .product-feature-columns p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Side : fiches plus compactes */
.product-modern .fact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    color: var(--em-ink-300);
    font-size: 0.94rem;
}

.product-modern .fact-list li {
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed rgba(154, 90, 0, 0.2);
}

.product-modern .fact-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-modern .fact-list strong {
    color: var(--em-ink-700);
    font-weight: 700;
    margin-right: 0.4rem;
}

/* Niveaux : barres plus contemporaines */
.product-modern .dossier-level-list {
    display: grid;
    gap: 1rem;
    margin-top: 0.8rem;
}

.product-modern .dossier-level-row { display: grid; gap: 0.4rem; }

.product-modern .dossier-level-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.88rem;
}

.product-modern .dossier-level-label {
    color: var(--em-ink-300);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.product-modern .dossier-level-value {
    color: var(--em-amber-700);
    font-weight: 700;
    font-family: Georgia, serif;
    font-size: 0.95rem;
}

.product-modern .dossier-level-bars {
    display: flex;
    gap: 0.3rem;
    width: 100%;
}

.product-modern .dossier-level-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(90, 66, 40, 0.12);
    min-width: 0;
    transition: background 240ms ease;
}

.product-modern .dossier-level-bar.is-active {
    background: linear-gradient(90deg, var(--em-amber-500), var(--em-amber-700));
    box-shadow: 0 1px 3px rgba(154, 90, 0, 0.25);
}

/* ========== CTA final ========== */
.product-modern .product-cta-panel {
    border-radius: clamp(14px, 2.5vw, 24px);
    padding: clamp(1.5rem, 5vw, 3rem);
    display: grid;
    gap: 1.25rem;
    box-shadow: 0 24px 56px rgba(15, 10, 6, 0.3);
    background:
        radial-gradient(ellipse at center top, rgba(243, 201, 138, 0.18), transparent 60%),
        linear-gradient(135deg, rgba(31, 24, 19, 0.96), rgba(15, 10, 6, 0.98));
    border: 1px solid rgba(208, 169, 109, 0.2);
    text-align: center;
}

.product-modern .product-cta-copy { display: grid; gap: 0.6rem; }

.product-modern .product-cta-copy .eyebrow {
    color: var(--em-amber-200) !important;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.product-modern .product-cta-panel h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 3.5vw, 2.1rem);
    color: var(--em-text);
    margin: 0;
    line-height: 1.25;
    font-weight: 400;
    max-width: 38ch;
    margin-inline: auto;
}

.product-modern .product-cta-panel p {
    color: var(--em-ink-100);
    margin: 0;
    max-width: 50ch;
    margin-inline: auto;
}

.product-modern .product-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.product-modern .product-cta-actions > a {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

@media (min-width: 640px) {
    .product-modern .product-cta-actions > a { flex: 0 1 auto; }
}

/* ========== Microanimations ========== */
.product-modern [data-em-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modern [data-em-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .product-modern [data-em-reveal] { opacity: 1; transform: none; transition: none; }
    .product-modern .product-chapter-nav__hint { animation: none; }
}

/* ========== Sticky CTA mobile ========== */
.product-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: none;
    padding: 0.75rem clamp(0.75rem, 3vw, 1.25rem);
    background: rgba(21, 17, 14, 0.97);
    border-top: 1px solid rgba(208, 169, 109, 0.3);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.product-sticky-cta__price {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--em-amber-200);
    font-weight: 700;
}

.product-sticky-cta .button-primary {
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--em-amber-500), var(--em-amber-700));
    color: var(--em-ink-900);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 0.88rem;
}

@media (max-width: 720px) {
    .product-modern .product-hero-shell {
        padding: clamp(1rem, 4vw, 1.35rem);
        border-radius: 16px;
    }

    .product-modern .product-hero-layout {
        gap: 1rem;
    }

    .product-modern .product-title-stack h1 {
        font-size: clamp(2rem, 10.5vw, 2.9rem);
        line-height: 1.04;
        max-width: 100%;
    }

    .product-modern .hero-copy {
        font-size: 1rem;
        line-height: 1.55;
        overflow-wrap: break-word;
        text-wrap: pretty;
    }

    .product-modern .product-hero-purchase,
    .product-modern .product-hero-actions {
        width: 100%;
        max-width: 100%;
    }

    .product-modern .product-hero-meta .stock-pill {
        max-width: 100%;
    }

    .product-sticky-cta {
        display: flex;
        padding: 0.65rem 0.75rem max(0.65rem, env(safe-area-inset-bottom));
        gap: 0.6rem;
    }

    .product-sticky-cta__price {
        flex: 0 0 auto;
        font-size: 1.05rem;
    }

    .product-sticky-cta .button-primary {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0.72rem 0.85rem;
        font-size: clamp(0.72rem, 3.2vw, 0.82rem);
        line-height: 1.1;
        text-align: center;
        white-space: normal;
    }

    .site-main { padding-bottom: 5rem; }
}
