/* ============================================
   FICHE PRODUIT - Product Detail Card
   Design moderne avec glassmorphisme
   ============================================ */

/* Conteneur principal */
.product-detail-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 0;
    align-items: start;
}

/* Zone Gauche (Media + Desc + Banners) */
.product-detail-card__left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

/* Zone Info / Pricing (Sticky) */
.product-detail-card__info {
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Zone Média (images) */
.product-detail-card__media {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Zone Description */
.product-description {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Pricing Card Styling */
.product-pricing-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-pricing-card__header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.product-pricing-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.product-pricing-card__price-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-pricing-card__price {
    font-size: 2rem;
    font-weight: 700;
    color: #295491;
    line-height: 1;
}

.product-pricing-card__price-suffix {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.product-pricing-card__vat {
    font-size: 0.9rem;
    color: #888;
}

.product-pricing-card__stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.stock-badge--instock {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stock-badge--low {
    background-color: #fff3e0;
    color: #ef6c00;
}

.stock-badge--out {
    background-color: #ffebee;
    color: #c62828;
}

.product-pricing-card__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 8px;
    width: fit-content;
}

.quantity-selector input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quantity-selector--lot {
    width: 100%;
    max-width: 220px;
    justify-content: center;
}

.quantity-selector__btn {
    min-width: 36px;
    min-height: 36px;
    font-size: 1.2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.quantity-selector__input {
    width: 60px;
    font-size: 1.1rem;
}

.quantity-selector__lot-info {
    font-size: 0.9rem;
    color: #4c4c4c;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quantity-selector__lot-info strong {
    font-size: 0.95rem;
    color: #1e88a9;
}

.quantity-selector__lot-total {
    font-size: 0.85rem;
    color: #666;
}

.btn-add-cart {
    background: linear-gradient(135deg, #21bdd0 0%, #1ca8b9 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(33, 189, 208, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #26d0e5 0%, #1fbccf 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 189, 208, 0.4);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-express {
    background: white;
    color: #21bdd0;
    border: 2px solid #21bdd0;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-express:hover {
    background: #f0fdff;
    border-color: #1ca8b9;
    color: #1ca8b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 189, 208, 0.15);
}

.btn-express:active {
    transform: translateY(0);
}

/* Icône éclair pour achat express (optionnel via CSS pseudo-element) */
.btn-express::before {
    content: "⚡";
    font-size: 1.1em;
}

.product-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.product-specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-specs-list li:last-child {
    border-bottom: none;
}

.product-specs-list strong {
    color: #333;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .product-detail-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "pricing"
            "desc";
    }

    .product-detail-card__info {
        position: static;
    }
}

.product-detail-card__media-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    /* Performance & Layout Stability */
    aspect-ratio: 1/1;
    max-height: 400px;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
}

.product-detail-card__media .imgNormal {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-card__media .imgNormal img {
    width: auto;
    max-width: 100%;
    max-height: 350px;
    /* Limite la hauteur pour éviter le débordement */
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-detail-card__media .imgNormal img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Images de la galerie (classe commune) */
.product-gallery-image {
    cursor: pointer !important;
    transition: transform 0.3s ease;
}

.product-gallery-image:hover {
    transform: scale(1.02);
}

/* Bande de miniatures */
.product-detail-card__thumbnail-strip {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.product-detail-card__thumbnail-strip .thumbnail {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-detail-card__thumbnail-strip .thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Badges (zoom, stock, etc.) */
.product-detail-card__badge {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #21bdd0;
}

.product-detail-card__badge img,
.product-detail-card__badge image {
    display: block;
    margin: 0 auto !important;
    max-width: 100% !important;
    max-height: 180px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.product-detail-card__secondary-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-detail-card__secondary-image img:hover {
    transform: scale(1.05);
}

.product-detail-card__media {
    position: relative;
}

.product-detail-card__media-main {
    position: static;
}

/* Zone informations */
.product-detail-card__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-detail-card__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

/* Tableau d'informations modernisé */
.product-detail-card__info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
}

.product-detail-card__info-table tr {
    border-bottom: 1px solid rgba(96, 112, 137, 0.1);
    transition: background 0.2s ease;
}

.product-detail-card__info-table tr:hover {
    background: rgba(255, 255, 255, 0.4);
}

.product-detail-card__info-table tr:last-child {
    border-bottom: none;
}

.product-detail-card__info-table td {
    padding: 0.875rem 1.25rem;
    vertical-align: middle;
    line-height: 1.5;
}

.product-detail-card__info-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    width: 42%;
    font-size: 0.9375rem;
    letter-spacing: 0.2px;
}

.product-detail-card__info-table td:last-child {
    color: #607089;
    font-size: 0.9375rem;
    font-weight: 500;
}

.product-detail-card__info-table td[colspan] {
    text-align: center;
    font-weight: 600;
}

/* Ligne de prix */
.product-detail-card__price-row td:last-child {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-detail-card__price-suffix {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #607089;
    margin-left: 0.375rem;
}

.product-detail-card__price-note {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    color: #607089;
    font-weight: 400;
}

/* Stack de boutons */
.product-detail-card__button-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.product-detail-card__button-stack button,
.product-detail-card__button-stack .add_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Bouton "Ajouter au panier" avec icône */
.product-detail-card__button-stack .add_to_cart[name="addpanier"] {
    background: var(--primary-color);
    color: white;
    padding-right: 3.5rem;
    background-image: url('/images/cart.png');
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: right 1.5rem center;
}

.product-detail-card__button-stack .add_to_cart[name="addpanier"]:hover {
    background-color: var(--primary-dark);
    background-image: url('/images/cart.png');
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: right 1.5rem center;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 189, 208, 0.3);
}

/* Bouton "Achat Express" sans icône */
.product-detail-card__button-stack .add_to_cart[name="addpanierexpress"] {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.product-detail-card__button-stack .add_to_cart[name="addpanierexpress"]:hover {
    background: rgba(33, 189, 208, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(33, 189, 208, 0.2);
}

/* Autres boutons */
.product-detail-card__button-stack .add_to_cart:not([name]):hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 189, 208, 0.3);
}

.product-detail-card__button-stack .add_to_cart:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

/* Input quantité modernisé */
.product-detail-card__info-table input[type="text"],
.product-detail-card__info-table input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid rgba(96, 112, 137, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s ease;
}

.product-detail-card__info-table input[type="text"]:focus,
.product-detail-card__info-table input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 189, 208, 0.1);
}

/* Bouton + pour augmenter quantité */
.product-detail-card__info-table .add_to_cart {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-detail-card__info-table .add_to_cart:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Responsive - Tablettes */
@media (max-width: 1024px) {
    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-card__media-main {
        min-height: 350px;
    }

    .product-detail-card__info-table td {
        padding: 0.875rem 1.125rem;
    }

    .product-detail-card__info-table td:first-child {
        width: 45%;
        font-size: 0.9rem;
    }

    .product-detail-card__info-table td:last-child {
        font-size: 0.9rem;
    }

    .product-detail-card__price-row td:last-child {
        font-size: 1.5rem;
    }
}

/* Responsive - Petites tablettes */
@media (max-width: 900px) and (min-width: 769px) {
    .product-detail-card__info-table td:first-child {
        width: 46%;
    }

    .product-detail-card__price-row td:last-child {
        font-size: 1.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .product-detail-card {
        gap: 1.5rem;
        margin: 1rem 0;
    }

    .product-detail-card__media-main {
        min-height: 280px;
        padding: 1rem;
    }

    .product-detail-card__info-table td {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .product-detail-card__info-table td:first-child {
        width: 48%;
        font-size: 0.875rem;
        letter-spacing: 0.1px;
    }

    .product-detail-card__info-table td:last-child {
        font-size: 0.875rem;
    }

    .product-detail-card__price-row td:last-child {
        font-size: 1.375rem;
        line-height: 1.2;
    }

    .product-detail-card__price-suffix {
        font-size: 0.875rem;
        margin-left: 0.25rem;
    }

    .product-detail-card__price-note {
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }

    .product-detail-card__button-stack button,
    .product-detail-card__button-stack .add_to_cart {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        font-weight: 600;
    }
}

/* Responsive - Très petits écrans */
@media (max-width: 480px) {
    .product-detail-card__info-table td {
        padding: 0.625rem 0.75rem;
    }

    .product-detail-card__info-table td:first-child {
        width: 50%;
    }

    .product-detail-card__price-row td:last-child {
        font-size: 1.25rem;
    }

    .product-detail-card__button-stack button,
    .product-detail-card__button-stack .add_to_cart {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail-card {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   IMAGES SECONDAIRES + BADGES (alignement horizontal)
   ============================================ */
.product-detail-card__secondary-images-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem auto 0;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    overflow: visible;
}

.product-detail-card__secondary-image,
.product-detail-card__badge {
    flex: 0 1 calc(33.333% - 0.75rem);
    min-width: 130px;
    max-width: 160px;
    min-height: 130px;
}

.product-detail-card__secondary-image {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #295491;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-card__secondary-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(41, 84, 145, 0.15);
    background: rgba(255, 255, 255, 0.5);
    border-color: #1e3a5f;
}

.product-detail-card__secondary-image img {
    max-width: 100%;
    max-height: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

/* Responsive - Images secondaires + badges */
@media (max-width: 1024px) {
    .product-detail-card__secondary-images-wrapper {
        flex-wrap: wrap;
    }

    .product-detail-card__secondary-image,
    .product-detail-card__badge {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: none;
    }

    .product-detail-card__secondary-image {
        padding: 0.75rem;
    }

    .product-detail-card__secondary-image img {
        max-height: 150px;
    }
}

@media (max-width: 720px) {
    .product-detail-card__secondary-images-wrapper {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .product-detail-card__secondary-image,
    .product-detail-card__badge {
        flex: 1 1 100%;
        max-width: none;
    }

    .product-detail-card__secondary-image {
        padding: 0.75rem;
    }

    .product-detail-card__secondary-image img {
        max-height: 200px;
    }
}

/* ============================================
   BANNIÈRE PROFESSIONNELLE EVOLIS
   Affichage sur produits Evolis uniquement
   ============================================ */

.evolis-professional-banner {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #203648;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
}

.evolis-professional-banner__form {
    margin: 0;
}

.evolis-professional-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.evolis-professional-banner__text h3 {
    margin: 0 0 8px 0;
    color: #203648;
    font-size: 16px;
    font-weight: 600;
}

.evolis-professional-banner__text p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.evolis-professional-banner__text strong {
    color: #d23e43;
}

.evolis-professional-banner__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d23e43;
    color: #fff;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.evolis-professional-banner__button:hover {
    background: #b8343a;
}

.evolis-professional-banner__button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .evolis-professional-banner__content {
        flex-direction: column;
        align-items: stretch;
    }

    .evolis-professional-banner__button {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile Sticky Actions */
.mobile-sticky-actions {
    display: none;
    /* Hidden by default */
}

@media (max-width: 768px) {
    .mobile-sticky-actions {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 16px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
    }

    .mobile-sticky-actions.is-visible {
        transform: translateY(0);
    }

    .mobile-sticky-price {
        font-size: 1.25rem;
        font-weight: 700;
        color: #295491;
        display: flex;
        flex-direction: column;
        line-height: 1;
        min-width: 20%;
    }

    .mobile-sticky-price small {
        font-size: 0.75rem;
        color: #666;
        font-weight: 400;
        margin-top: 2px;
    }

    .btn-sticky-mobile {
        width: auto;
        flex: 1;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 12px 16px;
        font-size: 0.9rem;
        box-shadow: 0 4px 12px rgba(33, 189, 208, 0.25);
        border-radius: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    /* Prevent content from being hidden behind the bar */
    body {
        padding-bottom: 80px;
    }
}

/* ============================================
   SECTION VARIANTES / OPTIONS
   ============================================ */
.product-variants-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #eee;
}

.product-variants-section h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.variant-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    color: #555 !important;
    position: relative;
}

.variant-card:hover {
    border-color: #21bdd0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 189, 208, 0.15);
    color: #333 !important;
}

.variant-card.active {
    border: 2px solid #21bdd0;
    background: #f0fdff;
    color: #203648 !important;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.variant-card.active::after {
    content: "✔";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #21bdd0;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.variant-card__name {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    padding-right: 10px;
}

.variant-card__price {
    font-weight: 700;
    color: #295491;
    white-space: nowrap;
    font-size: 1rem;
}

/* ============================================
   SECTION PRODUITS COMPATIBLES
   ============================================ */
.compatible-products-section {
    margin: 3rem 0;
}

.compatible-products-section h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.compatible-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.compatible-product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    height: 100%;
    position: relative;
}

.compatible-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #21bdd0;
}

.compatible-product-card__image-wrapper {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.compatible-product-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.compatible-product-card:hover .compatible-product-card__image {
    transform: scale(1.05);
}

.compatible-product-card__title {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.compatible-product-card__price {
    font-weight: 700;
    color: #295491;
    font-size: 1.1rem;
    margin-top: auto;
}

.compatible-product-card__admin-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* ============================================
   ALERTS & RESSOURCES
   ============================================ */
.product-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
    border: 1px solid rgba(230, 81, 0, 0.2);
    border-left: 4px solid #e65100;
    color: #bf360c;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.product-alert::before {
    content: '↪';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e65100 0%, #ff6d00 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3);
}

.product-alert strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #e65100;
    font-size: 0.95rem;
}

.product-alert a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0d47a1;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-alert a:hover {
    background: #e3f2fd;
    border-color: #90caf9;
    transform: translateX(4px);
    text-decoration: none;
}

.product-alert a::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.product-alert a:hover::after {
    transform: translateX(4px);
}

.product-promo-banner {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffe082;
    color: #ff6f00;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    line-height: 1.4;
}

.product-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-actions-row {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(240px, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
    margin-top: 20px;
    border: 1px solid #e8eaef;
    border-radius: 18px;
    background: #fdfdfd;
    box-shadow: 0 6px 18px rgba(19, 41, 104, 0.06);
    align-items: center;
}

.product-actions-row__primary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.product-actions-row__resources {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #e0e3eb;
    background: linear-gradient(145deg, #ffffff, #f4f6fb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0.4rem 0;
    border-radius: 6px;
    text-decoration: none !important;
    color: #295491 !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.resource-link:hover {
    color: #21bdd0 !important;
    transform: translateX(4px);
}

.resource-link span {
    font-size: 1.2rem;
}

/* Mobile Layout Fix */
@media (max-width: 991px) {
    .product-layout-wrapper {
        display: flex;
        flex-direction: column;
    }

    .product-actions-row {
        grid-template-columns: 1fr;
    }

    .product-actions-row__resources {
        width: 100%;
    }

    .product-detail-card {
        order: 1 !important;
    }

    .product-detail-card__info {
        order: 2 !important;
    }

    .product-variants-section {
        order: 3 !important;
    }

    .product-description-full {
        order: 4 !important;
    }
}