/*
Theme Name:   Cover Shop
Theme URI:    https://cover-shop.fr
Description:  Housse de prestige pour voiture & moto
Author:       Cover-shop
Author URI:   https://cover-shop.fr
Template:     blocksy
Version:      2.0.75
*/

#block-26 {
    margin: 0 !important;
    padding: 0 !important;
}
#block-26 p {
    margin: 0 !important;
    padding: 0 !important;
}

.cart_totals h2, .cart_totals label {
    letter-spacing: normal;
}

.contact-widget {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.contact-widget p {
    margin: 0;
    padding: 0;
}
.cover-shop-back {
    margin-bottom: 16px;
    text-align: left;
}

.cover-shop-back a {
    text-decoration: none;
    font-weight: 500;
}

.cover-shop-back a:hover {
    text-decoration: underline;
}

.cover-shop-brand-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap; /* par défaut sur desktop */
}

.cover-shop-brand-form select,
.cover-shop-brand-form button {
    padding: 5px 10px;
    font-size: 14px;
}

.cover-shop-products-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
     gap: 24px;
     margin-top: 32px;
 }

.cover-shop-product-card {
    display: flex;
    flex-direction: column; /* empile image et contenu verticalement */
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cover-shop-product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* carré parfait */
    overflow: hidden;
}

.cover-shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* recadre et remplit le bloc */
    display: block;
}

.cover-shop-product-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    text-align: center;
    flex-grow: 1; /* prend tout l’espace disponible */
}

.cover-shop-product-title {
    font-size: 1rem;
    margin: 0 0 8px;
}

.cover-shop-product-price {
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.cover-shop-product-button {
    margin-top: auto; /* pousse le bouton en bas */
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: #53b11a;
    color: #fff;
    text-decoration: none;
    width: 100%;
}

.reinsurance {
    background: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 40px 20px;
}

.reinsurance-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.reinsurance-item {
    font-size: 0.95rem;
    color: #333;
}

.reinsurance-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.reinsurance-item strong {
    font-weight: 600;
}

.woocommerce {
    letter-spacing: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .reinsurance-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .reinsurance-container {
        grid-template-columns: 1fr;
    }
}

/* Sur les écrans plus petits (mobile), passer en wrap */
@media (max-width: 600px) {
    .cover-shop-brand-form {
        flex-wrap: wrap;
    }

    .cover-shop-brand-form select,
    .cover-shop-brand-form button {
        flex: 1 1 100%; /* chaque élément prend toute la largeur */
    }
}