/* ==========================================================
   Shop Card Design — WooCommerce shop / category loop
   The <ul> also carries the card's own .ahpcN-section class
   (fonts + color variables); these rules turn it into the grid
   and neutralise theme / WooCommerce loop styles.
   ========================================================== */
ul.products.ahpc-shop-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--ahpc-shop-cols, 3), minmax(0, 1fr)) !important;
    gap: var(--ahpc-shop-gap, 24px) !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 0 2em !important;
    padding: 0 !important;
    list-style: none !important;
    background: none;
}
ul.products.ahpc-shop-grid::before,
ul.products.ahpc-shop-grid::after {
    content: none !important;
    display: none !important;
}

ul.products.ahpc-shop-grid > li.product {
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: inherit;
}
ul.products.ahpc-shop-grid > li.product > article {
    flex: 1 1 auto;
    width: 100%;
}

/* Card 11 is centred by design */
ul.products.ahpc-shop-grid.ahpc11-section > li.product { text-align: center; }

@media (max-width: 1024px) {
    ul.products.ahpc-shop-grid {
        grid-template-columns: repeat(var(--ahpc-shop-cols-t, 2), minmax(0, 1fr)) !important;
    }
}
@media (max-width: 600px) {
    ul.products.ahpc-shop-grid {
        grid-template-columns: repeat(var(--ahpc-shop-cols-m, 2), minmax(0, 1fr)) !important;
        gap: 14px 10px !important;
    }
}
