/* ==========================================================================
   destock-ardoise.css — Styles spécifiques Destock Ardoise
   ========================================================================== */

@media (max-width: 992px){
    main > .wp-block-spacer{
        display: none;
    }
}

/* ==========================================================================
   Pré-footer — 3 blocs en grille 3 colonnes
   ========================================================================== */

.pre-footer-blocks {
    padding: 75px 0;
    background-color: rgba(112, 111, 111, 0.08);
}

.pre-footer-blocks .row {
    row-gap: 30px;
}

.pre-footer-blocks [class*="col-"] {
    display: flex;
}

.pre-footer-blocks [class*="col-"] > * {
    width: 100%;
}

@media (max-width: 767px) {
    .pre-footer-blocks {
        padding: 50px 0;
    }
}
/* Masquer le conteneur de notifications WooCommerce */
.woocommerce-notices-wrapper {
    display: none !important;
}

/* ==========================================================================
   Header — Logo
   ========================================================================== */

header .header-logo {
    width: min(260px, 100%) !important;
    max-width: 260px !important;
}

header .header-logo img {
    max-height: 95px !important;
    transition: transform 0.3s ease;
}

header .header-logo:hover img,
header .header-logo:focus img {
    transform: scale(1.05);
}

@media (min-width: 1150px) and (max-width: 1530px) {
    header .header-logo {
        width: min(230px, 100%) !important;
        max-width: 230px !important;
    }
}

@media (max-width: 1149px) {
    header .header-logo {
        width: min(170px, 100%) !important;
        max-width: 170px !important;
    }

    header .header-logo img {
        max-height: 80px !important;
    }
}


/* ==========================================================================
   Désactivation des éléments d'ajout au panier (Boutique catalogue)
   ========================================================================== */
.single-product form.cart,
.single-product .quantity,
.single-product .single_add_to_cart_button,
.single-product .add_to_cart_button {
    display: none !important;
}


/* ==========================================================================
   Page Catalogue / Boutique — Grille et Barre d'outils
   ========================================================================== */

.archive-product-section {
    padding: 50px 0 !important;
}

.archive-product-section .woocommerce-products-header__title {
    font-family: 'Momo Trust Sans', sans-serif;
    font-weight: 800;
    font-size: 35px;
    line-height: 42px;
    color: var(--color-secondary, #2d2d2d);
    margin: 0 0 30px 0;
}

/* Barre d'outils (Compteur de résultats & Tri) */
.woocommerce-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.woocommerce-shop-toolbar .woocommerce-result-count,
.woocommerce-shop-toolbar .woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
}

.woocommerce-shop-toolbar .woocommerce-result-count {
    font-family: inherit;
    font-size: 15px;
    line-height: 22px;
    color: #706f6f;
}

.woocommerce-shop-toolbar .woocommerce-ordering select {
    padding: 8px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: #2d2d2d;
    background-color: #ffffff;
    cursor: pointer;
}

/* Grille de produits */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .product-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .product-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Pagination WooCommerce */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #2d2d2d;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul.page-numbers li a:hover {
    background: #e0e0e0;
}

.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--color-primary, #ea5b0c);
    color: #ffffff;
}


/* Sécurisation du style des cartes produits dans la grille boutique */
.product-card-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-grid .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-card-grid .product-card__image {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.product-card-grid .product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-grid .product-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    flex: 1;
}


/* Bouton Commander sur les cartes produit */
.product-card__btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: var(--color-primary, #ea5b0c);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    border-radius: 60px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 91, 12, 0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.product-card__btn-order:hover,
.product-card__btn-order:focus {
    background-color: #d04f09;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(208, 79, 9, 0.35);
    transform: translateY(-1px);
}
