/* 
==================================================
CSS Correction Minimale - Template EDO
Garde la structure Bootstrap existante
==================================================
*/

/* Corrections de base pour garder Bootstrap intact */
.container {
    max-width: 1200px;
}

/* Correction du carousel sans le casser */
.products.kt-owl-carousel.fcarou {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.products.kt-owl-carousel.fcarou .product {
    flex: 0 0 calc(33.333% - 20px);
    margin: 10px;
    max-width: calc(33.333% - 20px);
}

/* Amélioration des cards produits - garde la structure */
.product-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.product-thumb {
    text-align: center;
    margin-bottom: 15px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    position: relative;
}

.product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    margin-bottom: 10px;
    min-height: 40px;
}

.product-name a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
}

.product-name a:hover {
    color: #007bff;
}

.product-price {
    color: #dc3545;
    font-weight: 600;
    font-size: 16px;
}

.button-radius {
    background: #007bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    transition: background 0.3s ease;
}

.button-radius:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* Cache les éléments Owl qui posent problème mais garde la structure */
.owl-stage-outer,
.owl-nav,
.owl-dots {
    display: none;
}

/* Responsive Bootstrap compatible */
@media (max-width: 991px) {
    .products.kt-owl-carousel.fcarou .product {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 767px) {
    .products.kt-owl-carousel.fcarou .product {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}

/* Amélioration subtile des sections ajoutées */
.site-stats,
.popular-merchants,
.latest-offers {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin: 25px 0;
}

.stats-title,
.merchants-title,
.offers-title {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    flex: 1;
    min-width: 120px;
}

.stat-icon {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.merchants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.merchant-item {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.merchant-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.merchant-count {
    font-size: 11px;
    color: #666;
}

.offers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.offer-item {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.offer-image {
    height: 150px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.offer-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.offer-content {
    padding: 12px;
}

.offer-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    font-size: 13px;
}

.offer-price {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 4px;
}

.offer-merchant {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.offer-link {
    background: #007bff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    display: inline-block;
}

.offer-link:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* Responsive pour les nouvelles sections */
@media (max-width: 767px) {
    .stats-grid {
        flex-direction: column;
    }
    
    .merchants-list,
    .offers-grid {
        flex-direction: column;
    }
    
    .site-stats,
    .popular-merchants,
    .latest-offers {
        padding: 15px;
    }
}

/* 
==================================================
CSS Correction pour le bloc block-offers
Cible spécifiquement le carousel des produits
==================================================
*/

/* Correction spécifique du bloc des offres */
.block-offers {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: visible;
}

.block-offers .block-head {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.block-offers .block-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.block-offers .block-title-text.text-lg {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.block-offers .block-inner {
    padding: 20px;
}

/* Correction du carousel Owl dans ce bloc */
.block-offers .products.kt-owl-carousel.fcarou {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.block-offers .products.kt-owl-carousel.fcarou .product {
    flex: 0 0 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
    margin: 0;
}

/* Style des cards produits dans ce bloc */
.block-offers .product-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.block-offers .product-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Layout des produits avec product-left et product-right */
.block-offers .product-left {
    margin-bottom: 15px;
}

.block-offers .product-thumb {
    text-align: center;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    position: relative;
    margin-bottom: 10px;
}

.block-offers .product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.block-offers .btn-quick-view {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,123,255,0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.block-offers .product-thumb:hover .btn-quick-view {
    opacity: 1;
}

.block-offers .product-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.block-offers .product-name {
    margin-bottom: 10px;
    flex-grow: 1;
}

.block-offers .product-name a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    display: block;
}

.block-offers .product-name a:hover {
    color: #007bff;
}

.block-offers .price-box {
    margin-bottom: 15px;
}

.block-offers .product-price {
    color: #dc3545;
    font-weight: 600;
    font-size: 16px;
}

.block-offers .product-button {
    text-align: center;
    margin-top: auto;
}

.block-offers .button-radius {
    background: #007bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    transition: background 0.3s ease;
    width: 100%;
    text-align: center;
}

.block-offers .button-radius:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* Cache les éléments Owl problématiques */
.block-offers .owl-stage-outer,
.block-offers .owl-nav,
.block-offers .owl-dots {
    display: none !important;
}

/* Responsive pour ce bloc */
@media (max-width: 991px) {
    .block-offers .products.kt-owl-carousel.fcarou .product {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .block-offers .products.kt-owl-carousel.fcarou .product {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .block-offers .block-inner {
        padding: 15px;
    }
} 