/* Only enhanced archive cards; don't override Breakdance typography or basket buttons. */
ul.products li.product.ba-card-ready { display:flex; flex-direction:column; min-width:0; }
ul.products li.product.ba-card-ready > a.woocommerce-loop-product__link { flex:1 1 auto; width:100%; }
.ba-catalogue-media { position:relative; flex:0 0 auto; width:100%; margin-bottom:14px; }
ul.products .ba-catalogue-media .ba-catalogue-image-link { display:block; width:100%; aspect-ratio:1; position:relative; }
ul.products .ba-catalogue-media .bde-woo-product-image { position:relative; width:100%; height:100%!important; margin:0!important; background:transparent; }
ul.products .ba-catalogue-media .ba-catalogue-image-link img.ba-catalogue-main { display:block!important; position:absolute; inset:0; opacity:1!important; visibility:visible!important; transform:none!important; width:100%!important; height:100%!important; max-height:100%; object-fit:contain!important; object-position:center; margin:0!important; }
ul.products .ba-catalogue-image-link img:not(.ba-catalogue-main) { display:none!important; }
ul.products .ba-catalogue-media .ba-catalogue-save { position:absolute; right:8px; top:8px; z-index:3; display:flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; padding:10px; border:1px solid #ddd; border-radius:50%; background:#fff; color:#222; cursor:pointer; line-height:1; }
.ba-catalogue-save svg { display:block; width:22px; height:22px; }
.ba-catalogue-save path { fill:none; stroke:currentColor; stroke-width:1.7; }
ul.products .ba-catalogue-save[aria-pressed="true"] { color:#ac3333; }
.ba-catalogue-save[aria-pressed="true"] path { fill:currentColor; }
ul.products .ba-catalogue-previews { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:8px; margin-top:9px; }
ul.products .ba-catalogue-previews button { box-sizing:border-box; width:100%; height:auto; aspect-ratio:1 / 1; min-width:0; min-height:0; padding:3px; margin:0; border:1px solid #d9d7d3; border-radius:2px; background:transparent; cursor:pointer; }
ul.products .ba-catalogue-previews button[aria-pressed="true"] { border:2px solid #252525; padding:2px; }
ul.products .ba-catalogue-previews button img { display:block; width:100%!important; height:100%!important; margin:0!important; object-fit:contain!important; box-shadow:none!important; filter:none!important; }
.ba-catalogue-media button:focus-visible,.ba-catalogue-image-link:focus-visible { outline:2px solid #252525; outline-offset:3px; }
.ba-catalogue-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:600px) { ul.products .ba-catalogue-previews {gap:5px} ul.products .ba-catalogue-media .ba-catalogue-save {top:4px;right:4px} }

/* Shared card hierarchy; legacy Giclee class names retained. Product data is unchanged. */
ul.products li.product.ba-giclee-card > a.woocommerce-loop-product__link,
ul.products li.product.ba-giclee-card > a.woocommerce-LoopProduct-link { flex: 0 0 auto; }
ul.products li.product.ba-giclee-card .woocommerce-loop-product__title {
    font-family: "Spectral", Georgia, serif; font-weight: 400;
    font-size: 20px; line-height: 1.3; color: #171717;
    margin: 0 0 7px; padding: 0; overflow-wrap: anywhere;
}
ul.products li.product.ba-giclee-card .ba-giclee-details {
    display: flex; flex-direction: column; gap: 5px; flex: 1 0 auto;
    min-width: 0; font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 14px; line-height: 1.5; font-weight: 500; color: #514e48;
}
ul.products li.product.ba-giclee-card .ba-giclee-artist {
    color: #55514b; text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: #c6c1b7; align-self: flex-start;
}
ul.products li.product.ba-giclee-card a.ba-giclee-artist:hover { text-decoration-color: currentColor; }
ul.products li.product.ba-giclee-card a.ba-giclee-artist:focus-visible { outline: 2px solid #59564d; outline-offset: 3px; }
ul.products li.product.ba-giclee-card .ba-giclee-details > .price {
    display: block; color: #000; margin: auto 0 0; padding-top: 9px;
    font-size: 18px; font-weight: 500;
}
ul.products li.product.ba-giclee-card .ba-card-from { font-size: 14px; }

/* Remove duplicated category/artist labels on enhanced cards. */
ul.products li.product.ba-giclee-card .bde-woo-categories-list { display: none; }
ul.products li.product.ba-giclee-card .ba-giclee-sizes { margin-top: 4px; font-size: 13px; line-height: 1.55; }
ul.products li.product.ba-giclee-card .ba-giclee-edition { font-size: 13px; color: #625e57; }
ul.products li.product.ba-giclee-card .ba-giclee-details > .price,
ul.products li.product.ba-giclee-card .ba-giclee-details > .price * { color: #000; }
ul.products li.product.ba-giclee-card .bde-woo-product-footer { margin-top: 16px; }
@media (max-width: 600px) {
  ul.products li.product.ba-giclee-card .woocommerce-loop-product__title { font-size: 18px; }
}

ul.products li.product.ba-giclee-card .ba-card-product-type { font-size: 13px; color: #625e57; }


/* Greeting cards use the shared compact square previews, with all four in one row. */
ul.products li.product.ba-card-ready.product_cat-greeting-cards .ba-catalogue-previews {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 9px;
}
ul.products li.product.ba-card-ready.product_cat-greeting-cards .ba-catalogue-previews button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 1 60px;
    width: 60px;
    min-width: 44px;
    height: auto;
    min-height: 60px;
    aspect-ratio: auto;
    padding: 3px;
    line-height: 1.25;
}
ul.products li.product.ba-card-ready.product_cat-greeting-cards .ba-catalogue-previews button[aria-pressed="true"] {
    padding: 2px;
}
ul.products li.product.ba-card-ready.product_cat-greeting-cards .ba-catalogue-previews .bacb-preview-image {
    display: block;
    width: 100%;
    max-width: 52px;
    height: auto;
    aspect-ratio: 1;
    flex: 0 0 auto;
}
ul.products li.product.ba-card-ready.product_cat-greeting-cards .ba-catalogue-previews .bacb-preview-label {
    display: block;
    min-height: 2.5em;
    font: 300 11px/1.25 "Manrope", sans-serif;
    color: #35332f;
    text-align: center;
}
@media (max-width: 767px) {
    ul.products li.product.ba-card-ready.product_cat-greeting-cards .ba-catalogue-previews {
        gap: clamp(0px, calc((100% - 176px) / 3), 4px);
    }
    ul.products li.product.ba-card-ready.product_cat-greeting-cards .ba-catalogue-previews button {
        flex-basis: 54px;
        width: 54px;
        min-height: 54px;
    }
    ul.products li.product.ba-card-ready.product_cat-greeting-cards .ba-catalogue-previews .bacb-preview-image {
        max-width: 46px;
    }
}
