
/* ==========================================
   Layout Boutique
========================================== */

.woocommerce-shop .site-main,
.post-type-archive-product .site-main,
.tax-product_cat .site-main {
    margin: 0 !important;
}

/* Reset layout boutique + catégories WooCommerce */

.woocommerce-shop .site-content,
.post-type-archive-product .site-content,
.tax-product_cat .site-content {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-shop .content-area,
.post-type-archive-product .content-area,
.tax-product_cat .content-area {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.woocommerce-shop .inside-article,
.post-type-archive-product .inside-article,
.tax-product_cat .inside-article {
    padding: 0 !important;
}

.woocommerce-shop .widget-area,
.post-type-archive-product .widget-area,
.tax-product_cat .widget-area {
    display: none !important;
}

.woocommerce-shop .site-main,
.post-type-archive-product .site-main,
.tax-product_cat .site-main {
    margin: 0 !important;
}

/* Boutique WooCommerce */

.shop-hero {
    min-height: 320px;
    background-image: url('../images/hero-boutique.webp');
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;

}

.shop-hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    color: #fff;
}

.shop-hero h1 {
    color: #fff;
    font-size: 52px;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.shop-hero p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.shop-hero-line {
    display: block;
    width: 60px;
    height: 3px;
    background: #C46B1A;
    margin-top: 20px;
}

/* BANDEAU LIVRAISON */

.shop-delivery-banner {
    width: 100%;
    max-width: var(--container-width);

    margin: 36px auto 24px;
    padding: 0 30px;
}

.shop-delivery-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;

    padding: 18px 24px;

    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);

    text-align: center;
}

.shop-delivery-banner-icon {
    color: var(--color-primary);
    font-size: 20px;
}

.shop-delivery-banner-content p {
    margin: 0;

    color: var(--color-text);
    font-size: 15px;
    line-height: 1.6;
}

.shop-delivery-banner-content a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.shop-delivery-banner-content a:hover {
    opacity: 0.75;
}

.shop-category-nav {
    max-width: 1100px;
    margin: -22px auto 35px;
    padding: 18px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    display: flex;
    justify-content: space-between;
    gap: 22px;
    position: relative;
    z-index: 3;
}

.shop-category-nav a {
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-category-nav a:hover,
.shop-category-nav a.is-active {
    color: #C46B1A;
}

.shop-category-nav a.is-active::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: #C46B1A;
    margin: 8px auto 0;
}

.escales-shop-category-section {
    margin: 0 0 70px;
}

.escales-shop-category-title {
    margin: 0 0 28px;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
}

.escales-shop-category-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin-top: 12px;
    background: var(--color-primary);
}

.shop-products-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    margin: 0;
    list-style: none;
}

.shop-reassurance {
    max-width: 1200px;
    margin: 25px auto 15px;
    padding: 25px 30px;
    background: #F8F6F2;
    border: 1px solid #E8E2DC;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.shop-reassurance-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    color: #111;
}

/* ---------- Grille produits ---------- */

.shop-products-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    width: 100% !important;
    margin: 0;
    padding: 0;
    justify-content: start;
    justify-items: stretch;
}

.woocommerce ul.products li.product {
    margin: 0;
    list-style: none;
}

.woocommerce ul.products li.product.shop-product-card {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
    clear: none !important;
}

.woocommerce ul.products li.product:nth-child(n) {
    clear: none !important;
}

*/* ---------- Bouton Ajouter au panier ---------- */

.shop-product-card__button,
.shop-product-card__button:visited {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 48px;

    margin-top: auto;

    background: #C46B1A;
    color: #FFFFFF !important;

    border: none;
    border-radius: 6px;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    transition: all .25s ease;
}

.shop-product-card__button:hover,
.shop-product-card__button:focus {

    background: #A85A15;
    color: #FFFFFF !important;

    transform: translateY(-2px);

    box-shadow: 0 6px 18px rgba(196,107,26,.25);
}

/* ---------- Carte produit ---------- */

.shop-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #FFFFFF;
    border: 1px solid #E8E2DC;
    border-radius: 12px;
    overflow: hidden;
    transition: .25s;
}

.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.shop-product-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.75;
    height: 230px;
    overflow: hidden;
    background: #F8F6F2;
}

.shop-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
    border-radius:12px 12px 0 0;
}

.shop-product-card:hover img {
    transform: scale(1.05);
}

.shop-product-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    color: white;
    font-size:42px;
    font-weight: 700;
    opacity: 0;
    transition: .3s;
}

.shop-product-card:hover .shop-product-card__overlay {
    opacity: 1;
}

.shop-product-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.shop-product-card__title {
    margin: 0;
    min-height: 56px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom:16px;
}

.shop-product-card__title a{
    color:#111;
    text-decoration:none;
}

.shop-product-card__category {
    color: #C46B1A;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.shop-product-card__category a {
    color: #C46B1A;
    text-decoration: none;
}

.shop-product-card__desc {
    min-height: 38px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 10px 0 18px;
}

.shop-product-card__button {
    width: 100%;
    text-align: center;
    margin-top: 0;
}

.shop-product-card__price {
    margin-top: auto;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.shop-product-card__actions{
    margin-top:auto;
}

.shop-product-card__actions .button{
    width:100%;
}

.shop-product-card .added_to_cart {
    display: none !important;
}

/* Tablette */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .shop-delivery-banner-content {
        gap: 12px;
        padding: 16px 20px;
    }

    .shop-hero {
        min-height: 220px;
    }

    .shop-hero h1 {
        font-size: 38px;
    }

    .shop-category-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        justify-content: flex-start;
        gap: 22px;

        max-width: calc(100% - 24px);
        margin: -24px 12px 28px;
        padding: 14px 18px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .shop-category-nav::-webkit-scrollbar {
        display: none;
    }

    .shop-category-nav a {
        flex: 0 0 auto;
        font-size: 11px;
    }    

    .shop-reassurance {
        grid-template-columns: 1fr;
        margin-left: 18px;
        margin-right: 18px;
    }
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-delivery-banner {
        padding: 0 20px;
    }
}
