/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

/*
 * Before Footer Styles
 * Contenu affiché avant le footer principal
 * Basé sur la maquette before_footer.png avec éléments de réassurance
 * Fond blanc, icônes orange, disposition en 3 colonnes
 */
.foxbow-before-footer {
    background-color: #ffffff;
    padding: 30px 0;
    margin-top: 0;
}

/* Grille des éléments de réassurance */
.foxbow-reassurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}

.foxbow-reassurance-item {
    text-align: center;
    color: #212529;
}

.foxbow-reassurance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 3px solid #e05917;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.foxbow-reassurance-item:hover .foxbow-reassurance-icon {
    background-color: #e05917;
    transform: scale(1.05);
}

.foxbow-reassurance-icon i {
    font-size: 2rem;
    color: #e05917;
    transition: color 0.3s ease;
}

.foxbow-reassurance-item:hover .foxbow-reassurance-icon i {
    color: #ffffff;
}

.foxbow-reassurance-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.2;
}

.foxbow-reassurance-content h3 strong {
    font-weight: 700;
    color: #212529;
}

.foxbow-reassurance-content .text-green {
    color: #71b02c;
    font-weight: 700;
}

.foxbow-reassurance-content p {
    font-family: 'Scada', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #484848;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .foxbow-reassurance-grid {
        gap: 30px;
    }

    .foxbow-reassurance-icon {
        width: 70px;
        height: 70px;
    }

    .foxbow-reassurance-icon i {
        font-size: 1.75rem;
    }

    .foxbow-reassurance-content h3 {
        font-size: 1.125rem;
    }

    .foxbow-reassurance-content p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .foxbow-before-footer {
        padding: 30px 0;
        margin-top: 0;
    }

    .foxbow-reassurance-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
        margin: 0 auto;
    }

    .foxbow-reassurance-item {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .foxbow-reassurance-icon {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        margin-bottom: 0;
    }

    .foxbow-reassurance-icon i {
        font-size: 1.5rem;
    }

    .foxbow-reassurance-content h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .foxbow-reassurance-content p {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .foxbow-before-footer {
        padding: 30px 0;
        margin-top: 0;
    }

    .foxbow-reassurance-grid {
        gap: 25px;
    }

    .foxbow-reassurance-icon {
        width: 50px;
        height: 50px;
    }

    .foxbow-reassurance-icon i {
        font-size: 1.25rem;
    }

    .foxbow-reassurance-content h3 {
        font-size: 0.9375rem;
    }

    .foxbow-reassurance-content p {
        font-size: 10px;
    }
}

/*
 * Image + Text Block - Responsive Styles
 * Bloc Image + Texte
 */

/* Tablette et Mobile - Image avant texte en colonne */
@media (max-width: 1024px) {
    .image-text-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .image-text-img {
        max-width: 100% !important;
        order: -1; /* Force l'image en premier */
    }

    .image-text-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .image-text-container {
        gap: 20px !important;
    }

    .image-text-img {
        max-width: 100% !important;
    }
}

/*
 * Three Images Grid - Responsive Styles
 * Bloc 3 images avec liens
 */

/* Tablette - 2 colonnes */
@media (max-width: 1024px) {
    .three-images-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .three-images-title {
        font-size: 1.25rem;
    }

    .three-images-subtitle {
        font-size: 0.9rem;
    }
}

/* Mobile - 1 colonne */
@media (max-width: 768px) {
    .three-images-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .three-images-content-wrapper {
        top: 15px !important;
        left: 15px !important;
        right: 15px !important;
        bottom: 15px !important;
    }

    .three-images-title {
        font-size: 1.1rem;
    }

    .three-images-subtitle {
        font-size: 0.85rem;
    }

    .three-images-button-wrapper {
        margin-top: 15px !important;
    }

    .three-images-button {
        font-size: 0.875rem;
        padding: 8px 16px;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .three-images-content-wrapper {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
    }

    .three-images-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .three-images-subtitle {
        font-size: 0.8rem;
    }

    .three-images-button-wrapper {
        margin-top: 10px !important;
    }

    .three-images-button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/*
 * Product Gallery Block - Colonne gauche avec image d'arrière-plan + colonne droite avec produits
 * Basé sur les maquettes module-livraison-offerte_1.jpg et isolation-pour-la-construction-2.jpg
 */

.foxbow-product-gallery {
    display: flex;
    flex-wrap: nowrap;
    background: #ffffff;
    overflow: hidden;
    margin: 20px 0;
}

/* Colonne gauche avec image de fond */
.foxbow-product-gallery-left {
    flex: 0 0 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.foxbow-product-gallery-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.foxbow-product-gallery-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

.foxbow-product-gallery-left-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.foxbow-product-gallery-left-text {
    font-family: 'Scada', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ffffff;
}

.foxbow-product-gallery-btn {
    padding: 10px 10px;
    background-color: transparent;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    display: block;
}

.foxbow-product-gallery-btn:hover {
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
}

/* Colonne droite avec les produits */
.foxbow-product-gallery-right {
    flex: 0 0 calc(100% - 315px);
    padding: 40px 30px;
    background: #ffffff;
}

.foxbow-product-gallery-right-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
}

.foxbow-product-gallery-right-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    display: block;
    width: 30px;
    height: 1px;
    left: 0px;
    right: 0px;
    margin: 0px auto 0 0;
    border-bottom: 3px solid rgb(236, 106, 51);
}

.foxbow-product-gallery-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .foxbow-product-gallery-left {
        flex: 0 0 250px;
    }

    .foxbow-product-gallery-right {
        flex: 0 0 calc(100% - 315px);
    }
}

@media (max-width: 992px) {
    .foxbow-product-gallery {
        flex-wrap: wrap;
    }

    .foxbow-product-gallery-left,
    .foxbow-product-gallery-right {
        flex: 0 0 100%;
    }

    .foxbow-product-gallery-left {
        min-height: 350px;
        padding: 30px 25px;
    }

    .foxbow-product-gallery-right {
        padding: 30px 25px;
    }

    .foxbow-product-gallery-left-title {
        font-size: 1.75rem;
    }

    .foxbow-product-gallery-right-title {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }

    .foxbow-product-gallery-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .foxbow-product-gallery-left {
        min-height: 300px;
        padding: 25px 20px;
    }

    .foxbow-product-gallery-right {
        padding: 25px 20px;
    }

    .foxbow-product-gallery-left-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .foxbow-product-gallery-left-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .foxbow-product-gallery-right-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .foxbow-product-gallery-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .foxbow-product-gallery-btn {
        padding: 10px 25px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 576px) {
    .foxbow-product-gallery-left {
        min-height: 250px;
        padding: 20px 15px;
    }

    .foxbow-product-gallery-right {
        padding: 20px 15px;
    }

    .foxbow-product-gallery-left-title {
        font-size: 1.25rem;
    }

    .foxbow-product-gallery-left-text {
        font-size: 0.9375rem;
    }

    .foxbow-product-gallery-right-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    .foxbow-product-gallery-products {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .foxbow-product-gallery-btn {
        padding: 8px 20px;
        font-size: 0.875rem;
    }
}

/*
 * Product Miniature Styles - Foxbow Custom
 * Miniatures de produits personnalisées basées sur maquette_miniatures_produits.png
 * Badge de réduction, image centrée, prix TTC et HT selon la charte graphique
 */

/* Container principal de la miniature */
.foxbow-product-miniature .thumbnail-container {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 0;
    transition: border-color 0.3s ease;
}

.foxbow-product-miniature .thumbnail-container:hover {
    border-color: #71b02c;
}

/* Drapeaux produit (réduction, nouveau, etc.) */
.foxbow-product-miniature .product-flags {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Sélecteur plus spécifique pour override sans !important */
.foxbow-product-miniature .product-flags li.product-flag {
    display: inline-block;
    padding: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    margin-top: 0;
    margin-bottom: 5px;
    min-height: 0;
    background-color: #71b02c;
    color: #ffffff;
}

/* Badge de réduction - Exception en rouge */
.foxbow-product-miniature .product-flags li.product-flag.discount,
.foxbow-product-miniature .product-flags li.product-flag.discount-amount,
.foxbow-product-miniature .product-flags li.product-flag.discount-percentage,
.foxbow-product-miniature .product-flags li.product-flag.on-sale {
    background-color: #fe410b;
}

/* Badge rupture de stock - Masqué car utilisation de "sur devis" */
.foxbow-product-miniature .product-flags li.product-flag.out_of_stock {
    display: none !important;
}

/* Zone de l'image */
.foxbow-product-miniature .thumbnail-top {
    padding: 0;
    text-align: center;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.foxbow-product-miniature .product-thumbnail {
    display: block;
    margin: 0 auto;
}

.foxbow-product-miniature .product-thumbnail img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Overlay pour aperçu rapide */
.foxbow-product-miniature .foxbow-quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
}

.foxbow-product-miniature .thumbnail-container:hover .foxbow-quick-view-overlay {
    opacity: 1;
    visibility: visible;
}

.foxbow-product-miniature .thumbnail-container:hover .product-thumbnail img {
    transform: scale(1.05);
}

/* Bouton aperçu rapide */
.foxbow-product-miniature .foxbow-quick-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #71b02c;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 0;
    transition: all 0.3s ease;
    font-family: 'Scada', -apple-system, BlinkMacSystemFont, sans-serif;
}

.foxbow-product-miniature .foxbow-quick-view:hover {
    background-color: #5a8e23;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.foxbow-product-miniature .foxbow-quick-view i {
    font-size: 1rem;
}

.foxbow-product-miniature .foxbow-quick-view span {
    display: inline-block;
}

/* Description du produit (titre + prix) */
.foxbow-product-miniature .product-description {
    padding: 15px 20px 20px;
    text-align: center;
}

/* Titre du produit */
.foxbow-product-miniature .product-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #212529;
    margin: 0 0 15px 0;
    line-height: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.foxbow-product-miniature .product-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.foxbow-product-miniature .product-title a:hover {
    color: #71b02c;
}

/* Prix personnalisés Foxbow - ORDRE INVERSÉ : HT en premier (gros, orange), TTC en second (petit, gris) */
.foxbow-product-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

/* Ligne du prix HT - EN PREMIER, GROS ET ORANGE */
.foxbow-product-prices .price-line-ht {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: 'Scada', -apple-system, BlinkMacSystemFont, sans-serif;
    order: 1; /* Apparaît en premier */
}

.foxbow-product-prices .price-ht {
    font-size: 18px;
    font-weight: 700;
    color: #EA591F;
}

.foxbow-product-prices .price-label-ht {
    font-size: 0.875rem;
    font-weight: 700;
    color: #EA591F;
}

/* Ligne du prix TTC - EN SECOND, PLUS PETIT ET GRIS */
.foxbow-product-prices .price-line-ttc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    order: 2; /* Apparaît en second */
}

.foxbow-product-prices .price-ttc {
    font-family: 'Scada', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #484848;
}

.foxbow-product-prices .price-label-ttc {
    font-size: 0.75rem;
    font-weight: 400;
    color: #484848;
}

/* Prix barré si promotion */
.foxbow-product-prices .striked-price {
    font-family: 'Scada', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #acaaa6;
    text-decoration: line-through;
}

/* Responsive Design pour les miniatures */
@media (max-width: 768px) {
    .foxbow-product-miniature .product-description {
        padding: 10px 15px 15px;
    }

    .foxbow-product-miniature .product-title {
        font-size: 0.875rem;
    }

    /* HT reste gros et orange */
    .foxbow-product-prices .price-ht {
        font-size: 16px;
    }

    .foxbow-product-prices .price-label-ht {
        font-size: 0.8125rem;
    }

    /* TTC reste plus petit et gris */
    .foxbow-product-prices .price-ttc,
    .foxbow-product-prices .striked-price {
        font-size: 0.75rem;
    }

    .foxbow-product-prices .price-label-ttc {
        font-size: 0.7rem;
    }

    /* Quick view responsive */
    .foxbow-product-miniature .foxbow-quick-view {
        padding: 10px 16px;
        font-size: 0.8125rem;
        gap: 6px;
    }

    .foxbow-product-miniature .foxbow-quick-view i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .foxbow-product-miniature .product-description {
        padding: 8px 10px 12px;
    }

    .foxbow-product-miniature .product-title {
        font-size: 0.8125rem;
        margin-bottom: 10px;
    }

    /* HT reste gros et orange */
    .foxbow-product-prices .price-ht {
        font-size: 15px;
    }

    .foxbow-product-prices .price-label-ht {
        font-size: 0.75rem;
    }

    /* TTC reste plus petit et gris */
    .foxbow-product-prices .price-ttc,
    .foxbow-product-prices .striked-price {
        font-size: 0.7rem;
    }

    .foxbow-product-prices .price-label-ttc {
        font-size: 0.65rem;
    }

    /* Quick view - icône uniquement sur petit mobile */
    .foxbow-product-miniature .foxbow-quick-view {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .foxbow-product-miniature .foxbow-quick-view span {
        display: none;
    }

    .foxbow-product-miniature .foxbow-quick-view i {
        font-size: 1.25rem;
    }
}

/*
 * Override des couleurs bleues par le vert Foxbow
 * Remplace #24b9d7 (bleu) par #71b02c (vert Foxbow)
 */
.carousel .carousel-control .icon-next:hover i,
.carousel .carousel-control .icon-prev:hover i,
.dropdown:hover .expand-more,
.page-my-account #content .links a:hover i,
.search-widget form button[type=submit] .search:hover,
.top-menu .sub-menu a:hover {
    color: #71b02c;
}

/*
 * Badge rupture de stock - Masqué globalement car utilisation de "sur devis"
 */
.product-flag.out_of_stock {
    display: none !important;
}
