/* NEW 2: reusable Best Sellers CTA alignment & larger pack renders.
   Presentation only: native WC selectors, radio tiles and checkout untouched. */

/* Every item occupies the full grid row height; purchase actions share the
   same baseline regardless of whether the product is simple or variable. */
.f1-home .f1-bestsellers .f1-products{
 align-items:stretch!important;
}
.f1-home .f1-bestsellers .f1-products > .anp-product{
 height:100%!important;min-height:0!important;
 display:flex!important;flex-direction:column!important;
}
.f1-home .f1-bestsellers .f1-products .anp-product-info{
 flex:1 1 auto!important;
 display:flex!important;flex-direction:column!important;
 justify-content:flex-start!important;min-height:0!important;
}
.f1-home .f1-bestsellers .f1-products .anp-product-info > .anp-card-cart,
.f1-home .f1-bestsellers .f1-products .anp-product-info > .anp-card-variation{
 margin-top:auto!important;
 align-self:stretch!important;
 flex:0 0 auto!important;
}

/* Uniform small cart icon + large Buy Now: BOTH product types.
   Previous card rules used flex and overrode one another. */
.f1-home .f1-bestsellers .f1-products .anp-card-buttons,
.f1-home .f1-bestsellers .f1-products .anp-card-variation .variations_form .woocommerce-variation-add-to-cart{
 display:grid!important;
 grid-template-columns:38px minmax(0,1fr)!important;
 grid-template-rows:40px!important;
 align-items:stretch!important;
 justify-items:stretch!important;
 gap:7px!important;
 width:100%!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 margin:0!important;padding:0!important;
}
.f1-home .f1-bestsellers .f1-products .anp-card-buttons > button.anp-add-cart,
.f1-home .f1-bestsellers .f1-products .anp-card-variation .woocommerce-variation-add-to-cart > button.single_add_to_cart_button{
 display:inline-flex!important;grid-column:1!important;grid-row:1!important;
 align-items:center!important;justify-content:center!important;
 flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 margin:0!important;padding:8px!important;
 background:#203a2b!important;border:1px solid #203a2b!important;
 color:#fffaf2!important;border-radius:7px!important;
 font-size:0!important;line-height:1!important;
 box-sizing:border-box!important;
}
.f1-home .f1-bestsellers .f1-products .anp-card-buttons > button.anp-buy-now,
.f1-home .f1-bestsellers .f1-products .anp-card-variation .woocommerce-variation-add-to-cart > button.anp-buy-now{
 display:inline-flex!important;grid-column:2!important;grid-row:1!important;
 align-items:center!important;justify-content:center!important;
 flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 margin:0!important;padding:8px 10px!important;
 background:#c5a069!important;border:1px solid #c5a069!important;
 color:#1d3024!important;border-radius:7px!important;
 font:850 11px/1.2 'DM Sans',Arial,sans-serif!important;
 white-space:nowrap!important;
 box-sizing:border-box!important;
}
.f1-home .f1-bestsellers .f1-products .anp-card-buttons > button.anp-add-cart svg,
.f1-home .f1-bestsellers .f1-products .anp-card-variation .woocommerce-variation-add-to-cart > button.single_add_to_cart_button svg{
 display:block!important;width:21px!important;height:21px!important;
 fill:none!important;stroke:currentColor!important;flex-shrink:0!important;
}
.f1-home .f1-bestsellers .f1-products .woocommerce-variation-add-to-cart .quantity{display:none!important;}

/* Make the pack visually larger INSIDE the existing fixed-height photo area.
   186px desktop / 140px mobile boxes are intentionally unchanged. */
.f1-home .f1-bestsellers .f1-products .anp-product-image{
 height:186px!important;min-height:186px!important;
 padding:3px 5px!important;overflow:hidden!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
.f1-home .f1-bestsellers .f1-products .anp-product-image img{
 max-height:178px!important;max-width:100%!important;
 width:auto!important;height:auto!important;object-fit:contain!important;
 transform:scale(1.08);
 transform-origin:center center;
 transition:transform .22s ease!important;
}

/* Increase only product pack images in the campaign hero, not banner size. */
.f1-home .f1-hero-carousel .f1-hero-pack img{
 max-height:385px!important;max-width:100%!important;
 width:auto!important;height:auto!important;
 object-fit:contain!important;
}
.f1-home .f1-hero-carousel .f1-hero-pack{
 overflow:visible!important;
}
.f1-home .f1-promo-carousel .f1-spot-art img{
 height:199px!important;max-height:199px!important;
 max-width:73%!important;object-fit:contain!important;
}

@media(max-width:900px){
 .f1-home .f1-hero-carousel .f1-hero-pack img{
  max-height:min(345px,98%)!important;
 }
}
@media(max-width:760px){
 .f1-home .f1-bestsellers .f1-products .anp-product-image{
  height:140px!important;min-height:140px!important;
  padding:2px 3px!important;
 }
 .f1-home .f1-bestsellers .f1-products .anp-product-image img{
  max-height:133px!important;max-width:100%!important;
  transform:scale(1.055);
 }
 .f1-home .f1-bestsellers .f1-products .anp-card-buttons,
 .f1-home .f1-bestsellers .f1-products .anp-card-variation .variations_form .woocommerce-variation-add-to-cart{
  grid-template-columns:34px minmax(0,1fr)!important;
  grid-template-rows:37px!important;
  height:37px!important;min-height:37px!important;max-height:37px!important;
  gap:5px!important;
 }
 .f1-home .f1-bestsellers .f1-products .anp-card-buttons > button.anp-add-cart,
 .f1-home .f1-bestsellers .f1-products .anp-card-variation .woocommerce-variation-add-to-cart > button.single_add_to_cart_button{
  width:34px!important;min-width:34px!important;max-width:34px!important;flex-basis:34px!important;
  height:37px!important;min-height:37px!important;max-height:37px!important;
  padding:7px!important;
 }
 .f1-home .f1-bestsellers .f1-products .anp-card-buttons > button.anp-buy-now,
 .f1-home .f1-bestsellers .f1-products .anp-card-variation .woocommerce-variation-add-to-cart > button.anp-buy-now{
  height:37px!important;min-height:37px!important;max-height:37px!important;
  font-size:10px!important;padding:7px 5px!important;
 }
 .f1-home .f1-hero-carousel .f1-hero-pack img{
  max-height:calc(100% - 3px)!important;
  max-width:100%!important;transform:scale(1.07);
 }
 .f1-home .f1-promo-carousel .f1-spot-art img{
  height:190px!important;max-height:190px!important;max-width:74%!important;
 }
}
@media(prefers-reduced-motion:reduce){
 .f1-home .f1-bestsellers .f1-products .anp-product-image img{transition:none!important}
}