body.ams-fetes-archive {
    --ams-grenat: #572d3c;
    --ams-champagne: #e6d2b6;
    --ams-ivoire: #f4f0e9;
    --ams-anthracite: #383330;
    --ams-titres: "Belluga Slanted", "Belluga", Georgia, serif;
    --ams-texte: "Lato", Arial, sans-serif;
}

.ams-fetes-banner {
    padding: clamp(2.3rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
    margin: 0 0 clamp(1.4rem, 4vw, 2.7rem);
    color: var(--ams-ivoire);
    background: radial-gradient(ellipse at top right, #764458, transparent 72%), var(--ams-grenat);
    border: 1px solid var(--ams-champagne);
    text-align: center;
}

.ams-fetes-banner p {
    color: var(--ams-champagne);
    font: 700 0.8rem/1.4 var(--ams-texte);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 0.7rem;
}

.ams-fetes-archive .ams-fetes-banner h1 {
    font: 400 clamp(2rem, 6vw, 4.2rem)/1.08 var(--ams-titres);
    color: var(--ams-ivoire);
    margin: 0;
}

body.ams-fetes-root ul.products:has(> li.product-category) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    width: 100%;
    padding: 0;
    margin: 0 0 2rem;
}

body.ams-fetes-root ul.products:has(> li.product-category)::before,
body.ams-fetes-root ul.products:has(> li.product-category)::after {
    display: none;
}

body.ams-fetes-root ul.products > li.product-category,
body.ams-fetes-root ul.products > li.product-category > a {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ams-fetes-root ul.products > li.product-category > a {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) clamp(3rem, 7vw, 4.1rem);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--ams-ivoire);
    border: 1px solid var(--ams-champagne);
    border-radius: 0.25rem;
    text-decoration: none;
}

body.ams-fetes-root ul.products > li.product-category > a:is(:hover, :focus-visible) {
    outline: 2px solid var(--ams-grenat);
    outline-offset: 2px;
}

body.ams-fetes-root ul.products > li.product-category > a > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    margin: 0 !important;
}

body.ams-fetes-root ul.products > li.product-category > a > .woocommerce-loop-category__title {
    position: static !important;
    place-self: center stretch;
    width: auto !important;
    margin: 0 !important;
    padding: 0.25rem 0.45rem;
    background: transparent;
    color: var(--ams-grenat);
    font: 700 clamp(0.875rem, 1.8vw, 1.18rem)/1.15 var(--ams-texte) !important;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.ams-fetes-archive .ams-fetes-back a {
    color: var(--ams-grenat);
    font-family: var(--ams-texte);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 720px) {
    body.ams-fetes-root ul.products:has(> li.product-category) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
