/* Variables globales */
:root {
    --couleur-primaire: #2563eb;
    --couleur-secondaire: #3b82f6;
    --couleur-accent: #f43f5e;
    --couleur-texte: #1e293b;
    --couleur-texte-leger: #64748b;
    --couleur-fond: #f8fafc;
    --couleur-blanc: #ffffff;
    --ombre-carte: 0 10px 20px rgba(0, 0, 0, 0.08);
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-standard: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* Amélioration des animations avec des transitions plus fluides */
@keyframes titleAnimation {
    0% { 
        color: #002395; 
        transform: scale(1);
        letter-spacing: normal;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    }
    25% { 
        color: #0055A4;
        transform: scale(1.02);
        letter-spacing: 0.5px;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    }
    50% { 
        color: #00247D;
        transform: scale(1);
        letter-spacing: normal;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    }
    75% { 
        color: #003399;
        transform: scale(1.02);
        letter-spacing: 0.5px;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    }
    100% { 
        color: #002395;
        transform: scale(1);
        letter-spacing: normal;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    }
}

@keyframes subtitleAnimation {
    0% { 
        color: #ED2939;
        opacity: 0.9;
        transform: translateY(0);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    }
    25% { 
        color: #DD0000;
        opacity: 1;
        transform: translateY(-2px);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% { 
        color: #CF142B;
        opacity: 0.9;
        transform: translateY(0);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    }
    75% { 
        color: #FF0000;
        opacity: 1;
        transform: translateY(-2px);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }
    100% { 
        color: #ED2939;
        opacity: 0.9;
        transform: translateY(0);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
    }
}

@keyframes lineAnimation {
    0% {
        width: 50px;
        background: linear-gradient(90deg, #002395, #0055A4);
        transform: scaleX(1);
        opacity: 0.9;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    }
    25% {
        width: 100px;
        background: linear-gradient(90deg, #0055A4, #00247D);
        transform: scaleX(1.1);
        opacity: 1;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    }
    50% {
        width: 150px;
        background: linear-gradient(90deg, #00247D, #003399);
        transform: scaleX(1);
        opacity: 0.9;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    }
    75% {
        width: 100px;
        background: linear-gradient(90deg, #003399, #002395);
        transform: scaleX(1.1);
        opacity: 1;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    }
    100% {
        width: 50px;
        background: linear-gradient(90deg, #002395, #0055A4);
        transform: scaleX(1);
        opacity: 0.9;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    }
}

/* Amélioration de l'effet pulse pour les boutons */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Animation pour les étoiles */
@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.produits-populaires {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    overflow: hidden;
}

.conteneur {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.en-tete-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 2;
    padding: var(--spacing-lg);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ajout d'effets de transition au survol */
.titre-principal {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: titleAnimation 15s infinite ease-in-out;
    transition: var(--transition-standard);
    letter-spacing: -0.5px;
}

.titre-principal:hover {
    transform: scale(1.05);
    cursor: default;
}

.sous-titre {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: subtitleAnimation 15s infinite ease-in-out;
    transition: var(--transition-standard);
    max-width: 600px;
}

.sous-titre:hover {
    transform: translateY(-3px);
    cursor: default;
}

.ligne-decorative {
    height: 4px;
    margin: var(--spacing-md) auto;
    border-radius: 4px;
    animation: lineAnimation 15s infinite ease-in-out;
    transition: var(--transition-standard);
    position: relative;
}

/* Ajout d'un effet de brillance */
.ligne-decorative::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    bottom: -1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: slide 2s infinite;
    filter: blur(1px);
    pointer-events: none;
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Amélioration de l'effet de flou */
.produits-populaires::before {
    display: none;
}

/* Carousel */
.carrousel-conteneur {
    position: relative;
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 55px;
}

/* Boutons de navigation du carrousel */
.bouton-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

.bouton-navigation i {
    font-size: 1.15rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bouton-navigation.precedent {
    left: 2px;
}

.bouton-navigation.suivant {
    right: 2px;
}

.bouton-navigation:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.45), 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-50%) scale(1.12);
}

.bouton-navigation.precedent:hover i {
    transform: translateX(-3px);
}

.bouton-navigation.suivant:hover i {
    transform: translateX(3px);
}

.bouton-navigation:active {
    transform: translateY(-50%) scale(0.94);
}

@media (max-width: 768px) {
    .carrousel-conteneur {
        padding: 0 20px;
    }
    .bouton-navigation {
        width: 38px;
        height: 38px;
    }
    .bouton-navigation i {
        font-size: 0.95rem;
    }
    .bouton-navigation.precedent {
        left: -4px;
    }
    .bouton-navigation.suivant {
        right: -4px;
    }
}

.carrousel-produits {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: var(--spacing-md) 0;
    
    /* Masquer la scrollbar de manière cross-browser */
    -ms-overflow-style: none;
    scrollbar-width: none;
    
    /* Scroll snap */
    scroll-snap-type: x mandatory;
}

.carrousel-produits::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Carte produit */
.carte-produit {
    flex: 0 0 280px;
    position: relative;
    background: var(--couleur-blanc);
    border-radius: var(--border-radius-standard);
    box-shadow: var(--ombre-carte);
    transition: var(--transition-standard);
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.carte-produit:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Image */
.carte-produit__image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.carte-produit__image img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--spacing-md);
    margin: auto;
}

.carte-produit:hover .carte-produit__image img {
    transform: scale(1.08);
}

/* Réduction */
.reduction {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 2;
    background: linear-gradient(135deg, var(--couleur-accent), #ff0844);
    color: var(--couleur-blanc);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(244, 63, 94, 0.3);
    transform: rotate(3deg);
    transition: var(--transition-standard);
}

.carte-produit:hover .reduction {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 6px 12px rgba(244, 63, 94, 0.4);
}

/* Actions */
.carte-produit__actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.carte-produit:hover .carte-produit__actions {
    bottom: 0;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--couleur-texte);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    position: relative;
    outline: none;
}

.action-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: translateY(-1px) scale(0.95);
}

/* Bouton 1 : Voir (Bleu cyan) */
.action-btn.voir:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.4);
}

/* Bouton 2 : Acheter / Panier (Vert émeraude / Bleu électrique) */
.action-btn.acheter:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
}

/* Bouton 3 : Favoris (Rose / Rouge Amour) */
.action-btn.favoris:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(225, 29, 72, 0.4);
}

.action-btn.favoris.active {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.45);
}

.action-btn.favoris.active i {
    color: #ffffff;
    transform: scale(1.1);
}

/* Bouton 4 : Alerte Prix (Ambre / Or) */
.action-btn.alerte:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.4);
}

/* Animations de boutons */
@keyframes pulseHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.pulse-heart {
    animation: pulseHeart 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceCart {
    0%, 100% { transform: scale(1); }
    30% { transform: translateY(-8px) scale(1.15); }
    60% { transform: translateY(2px) scale(0.95); }
}

.bounce {
    animation: bounceCart 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile : boutons d'action toujours visibles et confortables */
@media (max-width: 768px) {
    .carte-produit__actions {
        bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1) 70%, transparent);
        padding: var(--spacing-sm);
        gap: 8px;
    }
    .action-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

/* Infos produit */
.carte-produit__infos {
    padding: 0.9rem 0.8rem;
    text-align: center;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.carte-produit__titre {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--couleur-texte);
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    transition: var(--transition-standard);
}

.carte-produit:hover .carte-produit__titre {
    color: var(--couleur-primaire);
}

/* Évaluation (Ligne 100% indépendante) */
.carte-produit__evaluation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.etoile {
    font-size: 0.92rem;
    line-height: 1;
    color: #ffc107;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-standard);
}

.carte-produit:hover .etoile {
    animation: starTwinkle 1.5s infinite;
    animation-delay: calc(0.1s * var(--i, 0));
}

.etoile:nth-child(1) { --i: 1; }
.etoile:nth-child(2) { --i: 2; }
.etoile:nth-child(3) { --i: 3; }
.etoile:nth-child(4) { --i: 4; }
.etoile:nth-child(5) { --i: 5; }

.etoile.pleine::before {
    content: "★";
}

.etoile.demie::before {
    content: "★";
    display: inline-block;
    position: relative;
    width: 0.5em;
    overflow: hidden;
}

.etoile.vide::before {
    content: "☆";
}

.nombre-avis {
    font-size: 0.8rem;
    line-height: 1;
    color: var(--couleur-texte-leger);
    margin-left: 4px;
    font-weight: 500;
    transition: var(--transition-standard);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

.carte-produit:hover .nombre-avis {
    color: var(--couleur-primaire);
}

/* Prix (Ligne 100% distincte sous l'évaluation) */
.carte-produit__prix {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding-top: 2px !important;
    flex-wrap: wrap !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

.prix-actuel {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--couleur-primaire);
    transition: var(--transition-standard);
    white-space: nowrap;
}

.carte-produit:hover .prix-actuel {
    transform: scale(1.05);
}

.prix-original {
    font-size: 0.92rem;
    color: var(--couleur-texte-leger);
    text-decoration: line-through;
    transition: var(--transition-standard);
    white-space: nowrap;
}

/* Boutons de navigation */
.bouton-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--couleur-blanc);
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    color: var(--couleur-texte);
    will-change: transform;
    font-size: 0;
}

.bouton-navigation .material-icons {
    display: inline-block !important;
    font-size: 24px !important;
    visibility: visible !important;
}

.bouton-navigation:hover {
    background: var(--couleur-primaire);
    color: var(--couleur-blanc);
    /* Fix: Remove any transform that causes position change */
    transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    /* Fix: Remove pulse animation that causes movement */
}

.precedent {
    left: 5px;
}

.suivant {
    right: 5px;
}

/* Media Queries */
@media (max-width: 992px) {
    .carte-produit {
        flex: 0 0 250px;
    }
    
    .titre-principal {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .conteneur {
        padding: 0 16px;
    }
    
    .carrousel-conteneur {
        padding: 0 36px;
    }
    
    .carte-produit {
        flex: 0 0 220px;
    }
    
    .carte-produit__infos {
        padding: 0.75rem 0.6rem !important;
        gap: 6px !important;
    }
    
    .carte-produit__titre {
        font-size: 0.88rem;
        min-height: 2.5em;
    }
    
    .etoile {
        font-size: 0.85rem;
    }
    
    .nombre-avis {
        font-size: 0.76rem;
    }
    
    .prix-actuel {
        font-size: 1.15rem;
    }
    
    .prix-original {
        font-size: 0.85rem;
    }
    
    .bouton-navigation {
        width: 38px;
        height: 38px;
    }
    
    .titre-principal {
        font-size: 1.7rem;
    }
    
    .sous-titre {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .carte-produit {
        flex: 0 0 195px;
    }
    
    .titre-principal {
        font-size: 1.35rem;
        line-height: 1.3;
        word-break: break-word;
    }
    
    .sous-titre {
        font-size: 0.92rem;
    }
    
    .carrousel-conteneur {
        padding: 0 28px;
    }
    
    .carte-produit__infos {
        padding: 0.65rem 0.5rem !important;
        gap: 5px !important;
    }
    
    .carte-produit__titre {
        font-size: 0.82rem;
        min-height: 2.4em;
    }
    
    .etoile {
        font-size: 0.78rem;
    }
    
    .nombre-avis {
        font-size: 0.72rem;
    }
    
    .carte-produit__prix {
        gap: 6px !important;
    }
    
    .prix-actuel {
        font-size: 1.05rem;
    }
    
    .prix-original {
        font-size: 0.80rem;
    }
    
    .bouton-navigation {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 360px) {
    .carte-produit {
        flex: 0 0 170px;
    }
    
    .carrousel-conteneur {
        padding: 0 20px;
    }
    
    .titre-principal {
        font-size: 1.2rem;
    }
    
    .sous-titre {
        font-size: 0.85rem;
    }
    
    .carte-produit__infos {
        padding: 0.55rem 0.4rem !important;
        gap: 4px !important;
    }
    
    .carte-produit__titre {
        font-size: 0.76rem;
        min-height: 2.3em;
    }
    
    .etoile {
        font-size: 0.72rem;
    }
    
    .nombre-avis {
        font-size: 0.68rem;
        margin-left: 2px;
    }
    
    .carte-produit__prix {
        gap: 4px !important;
    }
    
    .prix-actuel {
        font-size: 0.96rem;
    }
    
    .prix-original {
        font-size: 0.75rem;
    }
    
    .bouton-navigation {
        width: 30px;
        height: 30px;
    }
}

/* Support du scroll snap pour Safari */
@supports (-webkit-overflow-scrolling: touch) {
    .carrousel-produits {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .carte-produit {
        -webkit-scroll-snap-align: start;
        scroll-snap-align: start;
    }
}

/* Support des transitions pour Safari */
@supports (-webkit-touch-callout: none) {
    .carte-produit,
    .action-btn,
    .bouton-navigation {
        -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Styles pour un effet de chargement progressif */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.carrousel-produits > .carte-produit {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.carrousel-produits > .carte-produit:nth-child(1) { animation-delay: 0.1s; }
.carrousel-produits > .carte-produit:nth-child(2) { animation-delay: 0.2s; }
.carrousel-produits > .carte-produit:nth-child(3) { animation-delay: 0.3s; }
.carrousel-produits > .carte-produit:nth-child(4) { animation-delay: 0.4s; }
.carrousel-produits > .carte-produit:nth-child(5) { animation-delay: 0.5s; }
.carrousel-produits > .carte-produit:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM (Glassmorphism)
   ========================================================================== */
.aurora-popular-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.aurora-popular-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(15, 23, 42, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: #f8fafc;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.aurora-popular-toast.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.aurora-popular-toast.hiding {
    transform: translateY(-20px) scale(0.9);
    opacity: 0;
}

.aurora-toast-icon-wrapper {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.toast-cart .aurora-toast-icon-wrapper {
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.toast-wishlist .aurora-toast-icon-wrapper {
    background: rgba(225, 29, 72, 0.25);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.toast-alert .aurora-toast-icon-wrapper {
    background: rgba(217, 119, 6, 0.25);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.toast-success .aurora-toast-icon-wrapper {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast-error .aurora-toast-icon-wrapper {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.aurora-toast-content {
    flex: 1;
    min-width: 0;
}

.aurora-toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 3px;
}

.aurora-toast-message {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
    word-break: break-word;
}

.aurora-toast-action-link {
    display: inline-block;
    margin-top: 6px;
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aurora-toast-action-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.aurora-toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px 0 0;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.aurora-toast-close:hover {
    color: #ffffff;
}

.aurora-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #ec4899);
    animation: toastProgress 4.5s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ==========================================================================
   PRICE ALERT MODAL (Dark Luxury Glassmorphism)
   ========================================================================== */
.aurora-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aurora-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.aurora-modal-card {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 480px;
    width: 100%;
    padding: 28px;
    color: #f8fafc;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aurora-modal-overlay.active .aurora-modal-card {
    transform: scale(1) translateY(0);
}

.aurora-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.aurora-modal-header-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.4));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.aurora-modal-header-text h3 {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.aurora-modal-header-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.aurora-modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: all 0.2s ease;
}

.aurora-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.aurora-modal-product-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
}

.aurora-modal-product-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
}

.aurora-modal-product-details {
    flex: 1;
    min-width: 0;
}

.aurora-modal-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aurora-modal-current-price {
    font-size: 0.85rem;
    color: #94a3b8;
}

.aurora-modal-current-price .price-val {
    color: #38bdf8;
    font-weight: 700;
}

.aurora-form-group {
    margin-bottom: 16px;
}

.aurora-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.aurora-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.aurora-input-with-icon i {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
}

.aurora-input-with-icon input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px 12px 40px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.aurora-input-with-icon input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.aurora-price-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.aurora-price-presets .preset-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.aurora-preset-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aurora-preset-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.aurora-preset-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
}

.aurora-modal-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.5);
    transition: all 0.25s ease;
}

.aurora-modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px -5px rgba(217, 119, 6, 0.6);
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.aurora-modal-submit-btn:active {
    transform: translateY(0);
}
