/**
 * BG Studio — Shop pages styling.
 * Targets le widget wc-categories sur les pages single product pour le rendre
 * cohérent avec les cards Loop Item (coins arrondis, hover, titre intégré).
 */

/* === WC Categories widget en cards === */
.elementor-widget-wc-categories ul.products {
    gap: 20px !important;
}

.elementor-widget-wc-categories ul.products li.product-category {
    background: #FFFFFF;
    border: 1px solid #E4DED7;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0 !important;
    padding: 0 !important;
    list-style: none;
}
.elementor-widget-wc-categories ul.products li.product-category:hover {
    border-color: #AF9D95;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(34, 28, 25, 0.08);
}
.elementor-widget-wc-categories ul.products li.product-category > a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.elementor-widget-wc-categories ul.products li.product-category > a:hover {
    text-decoration: none;
}

/* Image full bleed top, square ratio */
.elementor-widget-wc-categories ul.products li.product-category img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Title centered in card, inside a footer band */
.elementor-widget-wc-categories ul.products li.product-category h2,
.elementor-widget-wc-categories ul.products li.product-category .woocommerce-loop-category__title {
    margin: 0 !important;
    padding: 16px 18px 18px 18px !important;
    font-family: 'Gentium Book Plus', Georgia, serif !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    color: #221C19 !important;
    text-transform: none !important;
    text-align: center;
    letter-spacing: 0 !important;
    font-weight: 400;
}

/* Count discret */
.elementor-widget-wc-categories ul.products li.product-category .count {
    display: inline-block;
    margin-left: 6px;
    color: #7C675E;
    font-size: 13px;
    font-family: Archivo, Arial, sans-serif;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 400;
}
