.fif-category-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:18px 0 30px;width:100%}
.fif-category-card{display:flex;flex-direction:column;min-width:0;text-align:center;text-decoration:none!important;background:#000;border:0;border-radius:10px;overflow:hidden;color:#fff!important}
.fif-category-card img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;object-position:center;background:#000;padding:8px;box-sizing:border-box}
.fif-category-card span{padding:10px 6px;font-weight:700;color:#fff;background:#080808}
.fif-has-subcategories .wp-block-woocommerce-product-collection,.fif-has-subcategories .wp-block-woocommerce-product-results-count,.fif-has-subcategories .wp-block-woocommerce-catalog-sorting{display:none!important}

/* Product archives: keep variation swatches off the listing cards. Customers choose on the product page. */
body.tax-product_cat, body.post-type-archive-product ul.products li.product .variations,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .variations_form,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .variations_form.cart,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .wvs-archive-variation-wrapper,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .wvs-archive-variation-attribute,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .woo-variation-swatches,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .variable-items-wrapper,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .variations_button,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .reset_variations,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .cfvsw-swatches-container,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .cfvsw-swatches-wrapper,
body.tax-product_cat, body.post-type-archive-product ul.products li.product .fif-archive-swatches,
body.tax-product_cat, body.post-type-archive-product .wc-block-components-product-card .variable-items-wrapper,
body.tax-product_cat, body.post-type-archive-product .wc-block-components-product-card .wvs-archive-variation-wrapper,
body.tax-product_cat, body.post-type-archive-product .wc-block-components-product-card .cfvsw-swatches-container,
body.tax-product_cat, body.post-type-archive-product .wc-block-components-product-card .variations,
body.tax-product_cat, body.post-type-archive-product .wc-block-components-product-card .variations_form{display:none!important}

/* Make the price the clear next item after the product name. */
body.tax-product_cat, body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat, body.post-type-archive-product .wc-block-components-product-price,
body.tax-product_cat, body.post-type-archive-product .wc-block-grid__product-price{
  display:block!important;font-size:1.18rem!important;line-height:1.35!important;
  font-weight:800!important;color:#fff!important;margin:9px 0 12px!important;
}
body.tax-product_cat, body.post-type-archive-product ul.products li.product .price *,
body.tax-product_cat, body.post-type-archive-product .wc-block-components-product-price *{font-weight:800!important;color:#fff!important}

@media(max-width:900px){.fif-category-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){
 .fif-category-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:12px 0 22px}
 .fif-category-card img{padding:4px}
 .fif-category-card span{padding:8px 4px;font-size:14px}
 body.tax-product_cat, body.post-type-archive-product ul.products li.product .price,
 body.tax-product_cat, body.post-type-archive-product .wc-block-components-product-price{font-size:1.12rem!important;margin:7px 0 10px!important}
}

/* Final archive-only safeguard: no size/colour selector UI inside product cards. */
body.tax-product_cat, body.post-type-archive-product .product .woo-variation-swatches,
body.tax-product_cat, body.post-type-archive-product .product .wvs-archive-variation-wrapper,
body.tax-product_cat, body.post-type-archive-product .product .variations_form,
body.tax-product_cat, body.post-type-archive-product .product .variations,
body.tax-product_cat, body.post-type-archive-product .product .variable-items-wrapper,
body.tax-product_cat, body.post-type-archive-product .product .wvs-archive-variation-attribute{display:none!important}


/* v1.0.4 FIX: Hide variation selectors on product archive cards only. Keep selectors on single product pages. */
body.tax-product_cat ul.products li.product .variations,
body.tax-product_cat ul.products li.product .variations_form,
body.tax-product_cat ul.products li.product .variations_form.cart,
body.tax-product_cat ul.products li.product .wvs-archive-variation-wrapper,
body.tax-product_cat ul.products li.product .wvs-archive-variation-attribute,
body.tax-product_cat ul.products li.product .woo-variation-swatches,
body.tax-product_cat ul.products li.product .variable-items-wrapper,
body.tax-product_cat ul.products li.product .variations_button,
body.tax-product_cat ul.products li.product .reset_variations,
body.tax-product_cat ul.products li.product .cfvsw-swatches-container,
body.tax-product_cat ul.products li.product .cfvsw-swatches-wrapper,
body.post-type-archive-product ul.products li.product .variations,
body.post-type-archive-product ul.products li.product .variations_form,
body.post-type-archive-product ul.products li.product .variations_form.cart,
body.post-type-archive-product ul.products li.product .wvs-archive-variation-wrapper,
body.post-type-archive-product ul.products li.product .wvs-archive-variation-attribute,
body.post-type-archive-product ul.products li.product .woo-variation-swatches,
body.post-type-archive-product ul.products li.product .variable-items-wrapper,
body.post-type-archive-product ul.products li.product .variations_button,
body.post-type-archive-product ul.products li.product .reset_variations,
body.post-type-archive-product ul.products li.product .cfvsw-swatches-container,
body.post-type-archive-product ul.products li.product .cfvsw-swatches-wrapper,
body.woocommerce ul.products li.product .variations_form,
body.woocommerce ul.products li.product .wvs-archive-variation-wrapper,
body.woocommerce ul.products li.product .cfvsw-swatches-container {
    display: none !important;
}


/* v1.0.5: archive-only hard stop for variation controls in classic and block product cards.
   Deliberately scoped to shop/category archives; single product selectors remain untouched. */
body.tax-product_cat ul.products li.product .variations,
body.tax-product_cat ul.products li.product .variations_form,
body.tax-product_cat ul.products li.product form.variations_form,
body.tax-product_cat ul.products li.product .woo-variation-swatches,
body.tax-product_cat ul.products li.product .variable-items-wrapper,
body.tax-product_cat ul.products li.product .variable-item,
body.tax-product_cat ul.products li.product .wvs-archive-variation-wrapper,
body.tax-product_cat ul.products li.product .wvs-archive-variation-attribute,
body.tax-product_cat ul.products li.product .cfvsw-swatches-container,
body.tax-product_cat ul.products li.product .cfvsw-swatches-wrapper,
body.tax-product_cat ul.products li.product .cfvsw-swatches-option,
body.tax-product_cat ul.products li.product .fif-archive-swatches,
body.tax-product_cat ul.products li.product .fif-product-archive-options,
body.tax-product_cat ul.products li.product .fif-color-swatches,
body.tax-product_cat ul.products li.product .fif-size-swatches,
body.tax-product_cat ul.products li.product [class*="swatch"],
body.tax-product_cat ul.products li.product [class*="variable-item"],
body.post-type-archive-product ul.products li.product .variations,
body.post-type-archive-product ul.products li.product .variations_form,
body.post-type-archive-product ul.products li.product form.variations_form,
body.post-type-archive-product ul.products li.product .woo-variation-swatches,
body.post-type-archive-product ul.products li.product .variable-items-wrapper,
body.post-type-archive-product ul.products li.product .variable-item,
body.post-type-archive-product ul.products li.product .wvs-archive-variation-wrapper,
body.post-type-archive-product ul.products li.product .wvs-archive-variation-attribute,
body.post-type-archive-product ul.products li.product .cfvsw-swatches-container,
body.post-type-archive-product ul.products li.product .cfvsw-swatches-wrapper,
body.post-type-archive-product ul.products li.product .cfvsw-swatches-option,
body.post-type-archive-product ul.products li.product .fif-archive-swatches,
body.post-type-archive-product ul.products li.product .fif-product-archive-options,
body.post-type-archive-product ul.products li.product .fif-color-swatches,
body.post-type-archive-product ul.products li.product .fif-size-swatches,
body.post-type-archive-product ul.products li.product [class*="swatch"],
body.post-type-archive-product ul.products li.product [class*="variable-item"],
body.tax-product_cat .wc-block-components-product-card .variations,
body.tax-product_cat .wc-block-components-product-card .variations_form,
body.tax-product_cat .wc-block-components-product-card .woo-variation-swatches,
body.tax-product_cat .wc-block-components-product-card .variable-items-wrapper,
body.tax-product_cat .wc-block-components-product-card [class*="swatch"],
body.tax-product_cat .wc-block-components-product-card [class*="variable-item"],
body.post-type-archive-product .wc-block-components-product-card .variations,
body.post-type-archive-product .wc-block-components-product-card .variations_form,
body.post-type-archive-product .wc-block-components-product-card .woo-variation-swatches,
body.post-type-archive-product .wc-block-components-product-card .variable-items-wrapper,
body.post-type-archive-product .wc-block-components-product-card [class*="swatch"],
body.post-type-archive-product .wc-block-components-product-card [class*="variable-item"] {
    display: none !important;
}


/* v1.0.6: Correctly scoped archive selectors. The earlier rules accidentally
   grouped body.tax-product_cat alone with descendants of body.post-type-archive-product. */
body.tax-product_cat ul.products li.product .variations,
body.tax-product_cat ul.products li.product .variations_form,
body.tax-product_cat ul.products li.product form.variations_form,
body.tax-product_cat ul.products li.product .cfvsw-swatches-container,
body.tax-product_cat ul.products li.product .cfvsw-swatches-wrapper,
body.tax-product_cat ul.products li.product .cfvsw-swatches-option,
body.tax-product_cat ul.products li.product .variable-items-wrapper,
body.tax-product_cat ul.products li.product .variable-item,
body.tax-product_cat ul.products li.product .wvs-archive-variation-wrapper,
body.tax-product_cat ul.products li.product .woo-variation-swatches,
body.tax-product_cat ul.products li.product .fif-archive-swatches,
body.tax-product_cat ul.products li.product .fif-product-archive-options,
body.tax-product_cat ul.products li.product .fif-color-swatches,
body.tax-product_cat ul.products li.product .fif-size-swatches,
body.post-type-archive-product ul.products li.product .variations,
body.post-type-archive-product ul.products li.product .variations_form,
body.post-type-archive-product ul.products li.product form.variations_form,
body.post-type-archive-product ul.products li.product .cfvsw-swatches-container,
body.post-type-archive-product ul.products li.product .cfvsw-swatches-wrapper,
body.post-type-archive-product ul.products li.product .cfvsw-swatches-option,
body.post-type-archive-product ul.products li.product .variable-items-wrapper,
body.post-type-archive-product ul.products li.product .variable-item,
body.post-type-archive-product ul.products li.product .wvs-archive-variation-wrapper,
body.post-type-archive-product ul.products li.product .woo-variation-swatches,
body.post-type-archive-product ul.products li.product .fif-archive-swatches,
body.post-type-archive-product ul.products li.product .fif-product-archive-options,
body.post-type-archive-product ul.products li.product .fif-color-swatches,
body.post-type-archive-product ul.products li.product .fif-size-swatches {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* WooCommerce classic variation tables sometimes render a form wrapper with
   plugin-specific inner elements; hide the whole card-level variation form. */
body.tax-product_cat ul.products li.product form.cart,
body.post-type-archive-product ul.products li.product form.cart {
  display: none !important;
}
