/* Style pour les cartes produits inspiré de also-viewed */

.product__thumb {
    /* Cadre responsive et homogène */
    width: 100%;
    aspect-ratio: 1 / 1; /* carré, s'adapte automatiquement à la largeur de la colonne */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
}

.product__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; /* l'image s'adapte sans être rognée */
    display: block;
}

.out-of-stock-wrapper .out-of-stock-badge {
    letter-spacing: 0.5px;
    border-color: #f8d7da !important;
    color: #842029;
    background-color: #f8d7da;
}
.product__thumb a.w-img {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Red Stock Progress Bar Animation */
.product-stock-progress .progress-bar.bg-danger {
    background-color: #ef4444 !important;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important;
}

/* Estimated Gain Pill */
.estimated-gain-pill {
    display: inline-flex;
    align-items: center;
    background-color: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(234, 88, 12, 0.1);
}

.estimated-gain-pill.is-subscriber {
    background-color: #f0fdf4;
    color: #16a34a;
    border-color: #dcfce7;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.1);
}

.estimated-gain-pill i {
    font-size: 10px;
}

.product-stock-progress .progress {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.product__item:hover {
    box-shadow: 0 5px 16px rgba(0,0,0,0.07);
    border-color: #f1f1f1;
}
/* Masquer légèrement l’action flottante jusqu’au hover pour accentuer l’effet */
.product__item .product__action {
    opacity: 0;
    transition: opacity .25s ease;
}
.product__item:hover .product__action {
    opacity: 1;
}

/* --- Styles spécifiques aux grilles et carrousels de la page d'accueil --- */

/* Uniformisation des hauteurs des blocs (Deals + Produits en avant) */
.deal__area .product__deal-item .product__item{ min-height: 280px; height:100%; }
.deal__area .product__electronic-item .product__item{ min-height: 280px; height:100%; }

/* Tronquer les noms trop longs avec des points de suspension (max 1 ligne) */
.deal__area .product-name,
.deal__area .product-name .product-item-link,
.deal__area .product__deal-name,
.deal__area .product__deal-name .product-item-link {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 14px;
    max-height: 14px;
}



/* Titre Créatif */
.section__title.creative-title h3 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #111827;
    position: relative;
    padding-left: 20px;
}
.section__title.creative-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
}
.section__title.creative-title h3 span {
    color: #10b981;
    background: linear-gradient(90deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Amélioration du défilement souple sur mobile */
@media (max-width: 991px) {
    .owl-carousel .owl-stage {
        transition-timing-function: cubic-bezier(0, 0, 0, 1) !important;
    }
}

/* Bouton "Voir tout" moderne */
.btn-view-all-modern {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-view-all-modern:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Flèches de Navigation Premium */
.premium-arrows { display:flex; gap:15px; }
.arrow-btn { width:44px; height:44px; border-radius:50%; border:1px solid #e5e7eb; background:#fff; color:#374151; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .3s ease; box-shadow:0 2px 8px rgba(0,0,0,.05); z-index:10; }
.arrow-btn:hover { background:#111827; border-color:#111827; color:#fff; transform:scale(1.1); box-shadow:0 8px 15px rgba(0,0,0,.1); }
.arrow-btn:active { transform:scale(0.95); }

/* Slider Adjustments */
.featured-slider .owl-stage-outer, .subscription-slider .owl-stage-outer, .onsale-slider .owl-stage-outer {
    padding: 20px 0;
    margin: -20px 0;
}
.featured-slider .owl-item, .subscription-slider .owl-item, .onsale-slider .owl-item {
    transition: none;
    transform: scale(0.95);
    opacity: 0.8;
}
.featured-slider .owl-item.active, .subscription-slider .owl-item.active, .onsale-slider .owl-item.active {
    transform: scale(1);
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 575px) {
    .featured-slider .modern-card .product__thumb, .subscription-slider .modern-card .product__thumb, .onsale-slider .modern-card .product__thumb {
        height: 150px !important;
    }
    .featured-slider .modern-card .product__content, .subscription-slider .modern-card .product__content, .onsale-slider .modern-card .product__content {
        padding: 5px !important;
    }
    .premium-arrows {
        display: flex !important;
        gap: 8px;
    }
    .arrow-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* --- Styles spécifiques à mobile-ads.blade.php --- */
.mobile-ads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (max-width: 575px) {
    .mobile-ads-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 5px;
    }
    .mobile-ad-item {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }
}
.mobile-ad-item .modern-card .product__thumb {
    height: 150px !important;
}
.mobile-ad-item .modern-card .product-name a {
    font-size: 13px;
    height: 34px;
}
.mobile-ad-item .modern-card .main-price {
    font-size: 13px;
}
@media (min-width: 768px) {
    .mobile-ads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.mobile-ads-area {
    background: #f8fafc;
    border-radius: 20px;
    margin: 10px;
}
@media (min-width: 1200px) {
    .mobile-ads-area {
        display: none !important;
    }
}


/* Style esthétique du bouton */
.tp-btn-2 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(16,185,129,0.25);
}
.tp-btn-2:hover {
    filter: brightness(1.03);
    box-shadow: 0 8px 18px rgba(16,185,129,0.35);
}
.tp-btn-2[disabled] {
    background: #94a3b8;
    box-shadow: none;
}
.product-name a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 14px;
    height: 14px;
    margin-bottom: 2px;
}

.subscriber-price-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    padding: 1px 6px;
    border-radius: 9999px;
    margin-top: 8px;
}
.subscriber-price-info .sub-amount {
    color: #065f46;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
}
.subscriber-price-info .sub-label {
    font-size: 9px;
    color: #047857;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}
.product__thumb {
    position: relative;
}
.product__content {
    padding: 3px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    line-height: 13px;
}
.product__offer-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    background: linear-gradient(135deg, #ff5f6d, #ff3c3c);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(255, 60, 60, 0.3);
    pointer-events: none;
    line-height: 1;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.product__action {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
}
.product__action ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product__action ul li a {
    width: 35px;
    height: 35px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #1f2937;
    transition: all 0.3s;
}
.product__action ul li a:hover {
    background: #10b981;
    color: #fff;
}
.product__action ul li a.wished {
    color: #ef4444;
}
.rating ul li i {
    font-size: 11px;
    color: #fbbf24;
}
.rating {
    margin-top: 4px;
    margin-bottom: 2px;
}
.price {
    font-weight: 700;
    margin-top: 10px !important;
    color: #111827;
    font-size: 15px;
}
.price del {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 5px;
    font-weight: 400;
}
