/* ============================================================
   assets/css/product.css
   Page détail produit MAKE
   ------------------------------------------------------------
   Direction :
   - plus éditoriale
   - plus respirante
   - plus stable visuellement
   - moins "fiche technique brute"
   ============================================================ */

/* ============================================================
   1. PAGE
   ============================================================ */
.product-page {
    padding-bottom: 5rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
}

/* ============================================================
   2. FIL D’ARIANE
   ============================================================ */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    color: var(--color-text-muted, #8f8f95);
    font-size: 0.9rem;
}

.product-breadcrumb__link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb__link:hover {
    color: var(--color-text, #ffffff);
}

.product-breadcrumb__sep {
    opacity: 0.45;
}

.product-breadcrumb__current {
    color: var(--color-text, #ffffff);
}

/* ============================================================
   3. HERO LAYOUT
   ============================================================ */
.product-hero {
    padding-top: 1rem;
}

.product-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 3rem;
    align-items: start;
}

/* ============================================================
   4. GALERIE
   ============================================================ */
.product-media {
    position: sticky;
    top: 7rem;
}

.product-media__frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    min-height: 42rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.product-media__main {
    width: 100%;
    height: 100%;
    min-height: 42rem;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}

.product-media__placeholder {
    min-height: 42rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted, #8f8f95);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.product-media__thumbs {
    display: flex;
    gap: 0.85rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.product-media__thumb {
    flex: 0 0 5.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
    opacity: 0.65;
    transform: translateY(0);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.product-media__thumb:hover,
.product-media__thumb:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
}

.product-media__thumb.is-active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.36);
}

.product-media__thumb img {
    width: 100%;
    height: 5.5rem;
    object-fit: cover;
    display: block;
}

/* ============================================================
   5. COLONNE TEXTE
   ============================================================ */
.product-content {
    padding-top: 1.2rem;
}

.product-content__eyebrow {
    margin: 0 0 1rem;
    color: var(--color-text-muted, #8f8f95);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
}

.product-content__title {
    margin: 0;
    font-family: var(--font-display, inherit);
    font-size: clamp(2.8rem, 5vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    max-width: 8ch;
}

.product-content__meta {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-meta-item {
    margin: 0;
    display: grid;
    gap: 0.15rem;
}

.product-meta-item__label {
    color: var(--color-text-muted, #8f8f95);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.product-meta-item__value {
    color: var(--color-text, #ffffff);
    font-size: 1rem;
}

.product-content__hook {
    margin: 0 0 2rem;
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
    line-height: 1.7;
    color: var(--color-text, #ffffff);
}

/* ============================================================
   6. DESCRIPTION
   ============================================================ */
.product-story {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-story__label {
    margin: 0 0 0.9rem;
    color: var(--color-text-muted, #8f8f95);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.product-story__text {
    max-width: 38rem;
    color: var(--color-text, #ffffff);
    line-height: 1.85;
    font-size: 1rem;
}

/* ============================================================
   7. SPECS
   ============================================================ */
.product-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 2rem;
}

.product-specs__item {
    padding: 1rem 1rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
}

.product-specs__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-text-muted, #8f8f95);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.product-specs__value {
    display: block;
    color: var(--color-text, #ffffff);
    font-size: 1rem;
}

/* ============================================================
   8. COMMANDE
   ============================================================ */
.product-order {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-order__label {
    margin: 0 0 0.75rem;
    color: var(--color-text-muted, #8f8f95);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
}

.product-order__intro {
    margin: 0 0 1.25rem;
    max-width: 32rem;
    color: var(--color-text-muted, #c2c2c8);
    line-height: 1.7;
}

.product-order__links {
    display: grid;
    gap: 0.65rem;
}

.product-order__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text, #ffffff);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.product-order__link::after {
    content: "→";
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-order__link:hover,
.product-order__link:focus-visible {
    color: #d7ff64;
    padding-left: 0.35rem;
}

.product-order__link:hover::after,
.product-order__link:focus-visible::after {
    opacity: 1;
    transform: translateX(4px);
}

/* ============================================================
   9. RETOUR
   ============================================================ */
.product-back {
    margin-top: 2rem;
}

.product-back__link {
    color: var(--color-text-muted, #8f8f95);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-back__link:hover,
.product-back__link:focus-visible {
    color: var(--color-text, #ffffff);
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .product-hero__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-media {
        position: relative;
        top: auto;
    }

    .product-media__frame,
    .product-media__main,
    .product-media__placeholder {
        min-height: 34rem;
    }

    .product-content__title {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .product-breadcrumb {
        padding-top: 1.25rem;
        padding-bottom: 1rem;
        gap: 0.5rem;
        font-size: 0.82rem;
    }

    .product-hero {
        padding-top: 0.25rem;
    }

    .product-media__frame,
    .product-media__main,
    .product-media__placeholder {
        min-height: 24rem;
        border-radius: 1rem;
    }

    .product-content {
        padding-top: 0;
    }

    .product-content__title {
        font-size: clamp(2.2rem, 12vw, 4rem);
    }

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

    .product-order__link {
        padding: 0.9rem 0;
    }
}