/**
 * Quick Coupon - Styles CSS
 * Design inspiré de sites modernes comme novoo.com
 */
/* Container principal */
.quick-coupon-container {
    margin: 10px 0;
}
/* Badge du coupon */
.quick-coupon-badge {
    background: linear-gradient(135deg, #00a290, 0%, #5dd85d 100%);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-coupon-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Variante pour coupon fidélité */
.quick-coupon-badge.loyalty,#coupon-effect.loyalty {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

/* Variante pour coupon découverte */
.quick-coupon-badge.discovery,#coupon-effect.discovery {
    /*background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    */
    background: linear-gradient(135deg, #00e4cb 0%, #00a290 100%);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}


.quick-coupon-badge.loyalty:hover {
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.4);
}

.quick-coupon-badge.discovery:hover {
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

/* Contenu du coupon */
.quick-coupon-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Icône du coupon */
.coupon-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.coupon-icon-rotate {
    transform: rotate(60deg);
}

.coupon-icon svg {
    color: #ffffff;
   animation: pointRight 1.3s ease-in-out infinite;
}
@keyframes pointRight {
    0%, 100% {
        transform: scaleY(120%) scaleX(120%);
    }
    50% {
        transform: scaleY(100%) scaleX(100%);
    }
}
.applied .coupon-icon svg {
  animation: none;
}
/* Détails du coupon */
.coupon-details {
    flex: 1;
    color: #ffffff;
}

.coupon-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.coupon-amount {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.coupon-subtitle {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

/* Bouton d'application */
.quick-coupon-btn {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    color: #667eea;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.quick-coupon-badge.loyalty .quick-coupon-btn {
    color: #f5576c;
}
.quick-coupon-badge.discovery .quick-coupon-btn {
    color: #00a290;
}

.quick-coupon-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: #efefef;
}

.quick-coupon-btn .btn-text {
    flex: 1;
    text-align: left;
}

/* État de chargement */
.quick-coupon-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* État désactivé (coupon déjà appliqué) */
.quick-coupon-btn.disabled,
.quick-coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.quick-coupon-badge.applied {
    opacity: 0.8;
}

.quick-coupon-badge.applied .coupon-badge {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.quick-coupon-btn.loading .btn-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Message de confirmation/erreur */
.quick-coupon-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.quick-coupon-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quick-coupon-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quick-coupon-message .message-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-coupon-message .message-content::before {
    content: '✓';
    font-weight: bold;
    font-size: 18px;
}

.quick-coupon-message.error .message-content::before {
    content: '✕';
}

/* État appliqué */
.quick-coupon-badge.applied {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.quick-coupon-badge.applied .quick-coupon-btn {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    pointer-events: none;
}

.quick-coupon-badge.applied .quick-coupon-btn .btn-text::before {
    content: '✓ ';
    font-weight: bold;
}


#coupon-effect {
padding: 0px 4px 6px 4px;
  
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-top: -434px;
  position: absolute;
  margin-left: 200px;
    animation:pointRight 1.3s ease-in-out infinite;
    line-height: 14px;
}

small.ptit {
  font-size: 50%;
  font-weight: bold;

}
#coupon-effect.decalage-haut {
    margin-top: -544px;
}
@media screen and (max-width: 1200px){
    #coupon-effect {
        margin-top: -496px;
        margin-left: 160px;
    }
    #coupon-effect.decalage-haut {
    margin-top: -586px;
    }
}
@media screen and (max-width: 991px){
    #coupon-effect {
        margin-top: -357px;
        margin-left: 535px;
    }
     #coupon-effect.decalage-haut {
    margin-top: -467px;
    }
}

@media screen and (max-width: 767px){
    #coupon-effect {
        margin-top: -411px;
        margin-left: 380px;
    }
     #coupon-effect.decalage-haut {
    margin-top: -523px;
    }
}
@media screen and (max-width: 590px){
    #coupon-effect {
        margin-top: -411px;
        margin-left: 300px;
    }
     #coupon-effect.decalage-haut {
    margin-top: -523px;
    }
}
.btn-text.ajout-coupon {
  font-size: 1.1rem;
}

/* Badge réduction sur les miniatures (catégories et sliders) */
.js-product-miniature .pro_first_box {
    position: relative;
}

.qc-miniature-badge {
    position: absolute;
    z-index: 20;
    color: #fff;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.qc-miniature-badge.animated {
    animation: pointRight 1.3s ease-in-out infinite;
}

.qc-badge-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.88;
    line-height: 1;
}

.qc-badge-value {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* Positions */
.qc-miniature-badge.pos-top-left {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 6px;
}

.qc-miniature-badge.pos-top-right {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 6px;
}

.qc-miniature-badge.pos-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 0 0 4px 4px;
    opacity: 0.88;
}

.qc-miniature-badge.pos-bottom .qc-badge-label {
    font-size: 10px;
}

.qc-miniature-badge.pos-bottom .qc-badge-value {
    font-size: 11px;
}

/* Couleurs */
.qc-miniature-badge.discovery {
    background: linear-gradient(135deg, #00e4cb 0%, #00a290 100%);
}

.qc-miniature-badge.loyalty {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}