/* =========================================
   ADAPTACCESSOIRES — WOOCOMMERCE PRODUCT CARDS
   ========================================= */

/* =========================================
   CARTE PRODUIT
   ========================================= */

.top-store-site div.thunk-product {
    position: relative;
    overflow: hidden;

    background: var(--aa-white);

    border: 1px solid var(--aa-border);
    border-radius: var(--aa-radius-lg);

    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.045);

    transition:
        transform var(--aa-transition),
        box-shadow var(--aa-transition),
        border-color var(--aa-transition);
}


/* =========================================
   LIGNE DÉCORATIVE
   ========================================= */

.top-store-site div.thunk-product::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--aa-primary),
            var(--aa-secondary)
        );

    transform: scaleX(0);
    transform-origin: center;

    transition:
        transform var(--aa-transition);
}


/* =========================================
   HOVER CARTE
   ========================================= */

.top-store-site div.thunk-product:hover {
    transform: translateY(-7px);

    border-color:
        rgba(37, 150, 190, 0.20);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.10);
}


.top-store-site div.thunk-product:hover::after {
    transform: scaleX(1);
}


/* =========================================
   IMAGE PRODUIT
   ========================================= */

.top-store-site div.thunk-product img {
    display: block;

    width: 100%;

    transition:
        transform var(--aa-transition-slow);
}


.top-store-site div.thunk-product:hover img {
    transform: scale(1.035);
}


/* =========================================
   CONTENEUR IMAGE
   ========================================= */

.top-store-site div.thunk-product .thunk-product-image {
    position: relative;
    overflow: hidden;

    background: var(--aa-surface-soft);
}


/* =========================================
   NOM DU PRODUIT
   ========================================= */

.top-store-site div.thunk-product
h2.woocommerce-loop-product__title {
    margin: 0;

    padding: 18px 20px 8px;

    color: var(--aa-dark);

    font-family: var(--aa-font-heading);

    font-size: 21px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -0.015em;

    transition:
        color var(--aa-transition),
        transform var(--aa-transition);
}


.top-store-site div.thunk-product:hover
h2.woocommerce-loop-product__title {
    color: var(--aa-primary);

    transform: translateX(2px);
}


/* =========================================
   PRIX
   ========================================= */

.top-store-site div.thunk-product
span.woocommerce-Price-amount > bdi {
    display: inline-block;

    color: var(--aa-secondary);

    font-size: 17px;
    font-weight: 700;

    line-height: 1.3;

    transition:
        color var(--aa-transition);
}


.top-store-site div.thunk-product:hover
span.woocommerce-Price-amount > bdi {
    color: var(--aa-primary);
}


.top-store-site div.thunk-product .price {
    display: block;

    margin: 0;

    padding: 0 20px 21px;
}


/* =========================================
   ANCIEN / NOUVEAU PRIX
   ========================================= */

.top-store-site div.thunk-product .price del {
    margin-right: 6px;

    color: var(--aa-text-muted);

    font-size: 12px;
    font-weight: 400;
}


.top-store-site div.thunk-product .price ins {
    color: var(--aa-secondary);

    text-decoration: none;
}


/* =========================================
   LIENS
   ========================================= */

.top-store-site div.thunk-product a {
    text-decoration: none;
}


/* =========================================
   BADGE PROMOTION
   ========================================= */

.top-store-site div.thunk-product .onsale {
    top: 15px;
    left: 15px;

    z-index: 5;

    min-height: 27px;

    padding: 6px 11px;

    border: 0;
    border-radius: var(--aa-radius-pill);

    background: var(--aa-secondary);

    color: var(--aa-white);

    font-size: 10px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.07em;

    text-transform: uppercase;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.10);
}


/* =========================================
   BOUTONS PRODUITS
   ========================================= */

/*
 * Bouton :
 * "Choix des options"
 *
 * WooCommerce :
 * product_type_variable
 * add_to_cart_button
 *
 * Bouton :
 * "Lire la suite"
 *
 * WooCommerce :
 * product_type_simple
 *
 * Le texte original est conservé.
 * Il reste donc compatible avec le traducteur.
 */

.top-store-site div.thunk-product
a.button.product_type_variable.add_to_cart_button,

.top-store-site div.thunk-product
a.button.product_type_simple {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin: 0 20px 20px;

    padding: 0;

    border: 1px solid var(--aa-secondary);

    border-radius: 50%;

    background: var(--aa-secondary);

    color: var(--aa-white);

    /*
     * Masque visuellement le texte WooCommerce
     * sans le supprimer du HTML.
     */
    font-size: 0;

    line-height: 1;

    text-decoration: none;

    box-shadow:
        0 6px 18px rgba(255, 105, 0, 0.16);

    transition:
        background-color var(--aa-transition),
        border-color var(--aa-transition),
        color var(--aa-transition),
        transform var(--aa-transition),
        box-shadow var(--aa-transition);
}


/* =========================================
   ICÔNE PANIER
   ========================================= */

.top-store-site div.thunk-product
a.button.product_type_variable.add_to_cart_button::after,

.top-store-site div.thunk-product
a.button.product_type_simple::after {
    content: "";

    display: block;

    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    background-color: currentColor;

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2ZM1 2v2h2l3.6 7.59-1.35 2.45C5.09 14.32 5 14.65 5 15c0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03L20.88 5H5.21l-.94-2H1Zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 1.99-.9 1.99-2-.89-2-1.99-2Z'/%3E%3C/svg%3E")
        center / contain no-repeat;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2ZM1 2v2h2l3.6 7.59-1.35 2.45C5.09 14.32 5 14.65 5 15c0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03L20.88 5H5.21l-.94-2H1Zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 1.99-.9 1.99-2-.89-2-1.99-2Z'/%3E%3C/svg%3E")
        center / contain no-repeat;

    transition:
        transform var(--aa-transition);
}


/* =========================================
   HOVER BOUTON
   ========================================= */

.top-store-site div.thunk-product
a.button.product_type_variable.add_to_cart_button:hover,

.top-store-site div.thunk-product
a.button.product_type_simple:hover {
    background: var(--aa-primary);

    border-color: var(--aa-primary);

    color: var(--aa-white);

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(37, 150, 190, 0.22);
}


.top-store-site div.thunk-product
a.button.product_type_variable.add_to_cart_button:hover::after,

.top-store-site div.thunk-product
a.button.product_type_simple:hover::after {
    transform: scale(1.12);
}


/* =========================================
   FOCUS ACCESSIBILITÉ
   ========================================= */

.top-store-site div.thunk-product
a.button.product_type_variable.add_to_cart_button:focus-visible,

.top-store-site div.thunk-product
a.button.product_type_simple:focus-visible {
    outline: 3px solid rgba(255, 105, 0, 0.30);

    outline-offset: 3px;
}


/* =========================================
   TABLETTE
   ========================================= */

@media (max-width: 1024px) {

    .top-store-site div.thunk-product
    h2.woocommerce-loop-product__title {
        font-size: 19px;

        padding-inline: 17px;
    }


    .top-store-site div.thunk-product .price {
        padding-inline: 17px;
    }


    .top-store-site div.thunk-product
    a.button.product_type_variable.add_to_cart_button,

    .top-store-site div.thunk-product
    a.button.product_type_simple {
        margin-inline: 17px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .top-store-site div.thunk-product {
        border-radius: var(--aa-radius-md);
    }


    .top-store-site div.thunk-product
    h2.woocommerce-loop-product__title {
        padding: 14px 13px 6px;

        font-size: 16px;

        line-height: 1.2;
    }


    .top-store-site div.thunk-product .price {
        padding: 0 13px 16px;
    }


    .top-store-site div.thunk-product
    span.woocommerce-Price-amount > bdi {
        font-size: 14px;
    }


    .top-store-site div.thunk-product .onsale {
        top: 10px;
        left: 10px;

        min-height: 23px;

        padding: 5px 8px;

        font-size: 8px;
    }


    .top-store-site div.thunk-product
    a.button.product_type_variable.add_to_cart_button,

    .top-store-site div.thunk-product
    a.button.product_type_simple {
        width: 40px;
        height: 40px;

        margin: 0 13px 15px;
    }


    .top-store-site div.thunk-product
    a.button.product_type_variable.add_to_cart_button::after,

    .top-store-site div.thunk-product
    a.button.product_type_simple::after {
        width: 16px;
        height: 16px;

        flex-basis: 16px;
    }
}


/* =========================================
   PETITS ÉCRANS
   ========================================= */

@media (max-width: 480px) {

    .top-store-site div.thunk-product
    h2.woocommerce-loop-product__title {
        font-size: 15px;
    }


    .top-store-site div.thunk-product
    span.woocommerce-Price-amount > bdi {
        font-size: 13px;
    }
}


/* =========================================
   RÉDUCTION DES ANIMATIONS
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .top-store-site div.thunk-product,

    .top-store-site div.thunk-product::after,

    .top-store-site div.thunk-product img,

    .top-store-site div.thunk-product
    h2.woocommerce-loop-product__title,

    .top-store-site div.thunk-product
    span.woocommerce-Price-amount > bdi,

    .top-store-site div.thunk-product
    a.button.product_type_variable.add_to_cart_button,

    .top-store-site div.thunk-product
    a.button.product_type_simple,

    .top-store-site div.thunk-product
    a.button.product_type_variable.add_to_cart_button::after,

    .top-store-site div.thunk-product
    a.button.product_type_simple::after {
        transition: none;
    }
}