/* ========================================
   PAGE PRODUIT — Design moderne
   ======================================== */

/* Breadcrumb principal (fil d'Ariane) */
.product-breadcrumb {
    margin-top: 76px;
    padding: 0.9rem 0;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.product-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
}
.product-breadcrumb li {
    display: inline-flex;
    align-items: center;
}
.product-breadcrumb li + li::before {
    content: '\f105'; /* fa-chevron-right → utilise le solid */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #cbd5e1 !important;
    margin-right: 0.5rem;
    font-size: 0.7rem;
}
.product-breadcrumb a {
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.product-breadcrumb a:hover {
    color: #00C853 !important;
    background: rgba(0, 200, 83, 0.08);
}
.product-breadcrumb a i { color: inherit !important; }
.product-breadcrumb [aria-current="page"] {
    color: #1a1a1a !important;
    font-weight: 700;
    padding: 2px 6px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Breadcrumb meta (marque + catégorie) */
.product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.product-meta .meta-brand {
    color: #1a1a1a !important;
    font-weight: 700;
}
.product-meta .meta-separator {
    color: #cbd5e1 !important;
}
.product-meta .meta-category {
    color: #64748b !important;
}

/* Frame de l'image principale */
.product-image-frame {
    position: relative;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.product-image-main-new {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-image-frame:hover .product-image-main-new {
    transform: scale(1.03);
}

/* Badges sur l'image */
.product-badge {
    position: absolute;
    top: 18px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: white !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.badge-nouveau-product {
    left: 18px;
    background: linear-gradient(135deg, #00C853, #00E676);
}
.badge-promo-product {
    right: 18px;
    background: linear-gradient(135deg, #ff4757, #c82333);
}

/* Titre produit */
.product-name {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 0.75rem !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Bloc prix + stock */
.product-price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1.75rem;
}
.product-price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}
.product-price-main {
    font-size: 2rem;
    font-weight: 800;
    color: #00C853 !important;
    letter-spacing: -0.5px;
}
.product-price-old {
    font-size: 1.1rem;
    color: #94a3b8 !important;
    text-decoration: line-through;
    font-weight: 500;
}
.product-discount {
    background: #ff4757;
    color: white !important;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Pill stock */
.product-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.product-stock-pill.in-stock {
    background: rgba(0, 200, 83, 0.12);
    color: #00A042 !important;
}
.product-stock-pill.in-stock i { color: #00A042 !important; }
.product-stock-pill.out-of-stock {
    background: #fef2f2;
    color: #dc2626 !important;
}
.product-stock-pill.out-of-stock i { color: #dc2626 !important; }

/* Sections (description, caractéristiques, etc.) */
.product-section { margin-bottom: 1.75rem; }
.product-section-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.85rem !important;
    position: relative;
    padding-bottom: 0.5rem;
}
.product-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #00C853, #00E676);
    border-radius: 2px;
}
.product-description {
    color: #475569 !important;
    line-height: 1.65;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Caractéristiques en grille */
.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.spec-item i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00C853, #00E676);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.spec-label {
    font-size: 0.72rem;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: auto;
    font-weight: 600;
}
.spec-value {
    font-weight: 700;
    color: #1a1a1a !important;
    font-size: 0.92rem;
}

/* Notes olfactives */
.olfactive-notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.note-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border-left: 3px solid;
}
.note-row.note-tete { background: #fef9e7; border-color: #f59e0b; }
.note-row.note-coeur { background: #fce7f3; border-color: #ec4899; }
.note-row.note-fond { background: #ecfdf5; border-color: #10b981; }
.note-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    min-width: 50px;
}
.note-row.note-tete .note-label { color: #d97706 !important; }
.note-row.note-coeur .note-label { color: #db2777 !important; }
.note-row.note-fond .note-label { color: #059669 !important; }
.note-value {
    color: #1a1a1a !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Zone d'achat */
.product-buy-box {
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1rem;
}
.buy-box-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 1rem;
}

/* Stepper quantité */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 46px;
    border: none;
    background: transparent;
    color: #1a1a1a !important;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.qty-btn:hover { background: rgba(0, 200, 83, 0.1); color: #00C853 !important; }
.qty-stepper input {
    width: 44px;
    height: 46px;
    text-align: center;
    border: none;
    outline: none !important;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a !important;
    padding: 0 !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Bouton principal achat */
.btn-buy-now {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    width: 100%;
}
.btn-buy-now:not(:disabled) {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: white !important;
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
}
.btn-buy-now:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 200, 83, 0.45);
}
.btn-buy-now:not(:disabled):active { transform: translateY(0); }
.btn-buy-now:disabled {
    background: #f1f3f5;
    color: #868e96 !important;
    cursor: not-allowed;
    opacity: 1;
}
.btn-buy-now:disabled i { color: #adb5bd !important; }
.btn-buy-now i { color: inherit !important; }

/* Trust indicators sous le bouton */
.buy-box-trust {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #64748b !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.buy-box-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b !important;
}
.buy-box-trust i {
    color: #00C853 !important;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .product-name { font-size: 1.6rem !important; }
    .product-price-main { font-size: 1.5rem; }
    .buy-box-row { flex-direction: column; align-items: stretch; }
    .qty-stepper { justify-content: center; align-self: center; }
}
