/* Rolinda Shop — image-size adjustment only. Layout, catalog, filters, and
   category/brand cards stay in their existing places. Scoped to the Shop archive. */
body.post-type-archive-product:not(.tax-product_cat) {
  --rlm-shop-image-height: 356px;
}
/* Product thumbnails when products are displayed */
body.post-type-archive-product:not(.tax-product_cat) ul.products li.product.type-product .astra-shop-thumbnail-wrap,
/* Shop by Brand uses real bottle photos as brand visuals */
body.post-type-archive-product:not(.tax-product_cat) .rlb-brand-directory .rlb-brand-card .rlb-brand-visual {
  box-sizing: border-box !important;
  width: 100% !important;
  height: var(--rlm-shop-image-height) !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  background: #fff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
body.post-type-archive-product:not(.tax-product_cat) ul.products li.product.type-product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* All existing bottle pictures remain full-size and uncropped inside the frame */
body.post-type-archive-product:not(.tax-product_cat) ul.products li.product.type-product .astra-shop-thumbnail-wrap img,
body.post-type-archive-product:not(.tax-product_cat) .rlb-brand-directory .rlb-brand-card .rlb-brand-visual img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: auto !important;
}
/* Category tiles retain their structure and proportions. */
@media (max-width: 1199px) {
  body.post-type-archive-product:not(.tax-product_cat) {
    --rlm-shop-image-height: 260px;
  }
}
@media (max-width: 800px) {
  body.post-type-archive-product:not(.tax-product_cat) {
    --rlm-shop-image-height: 240px;
  }
}
@media (max-width: 410px) {
  body.post-type-archive-product:not(.tax-product_cat) {
    --rlm-shop-image-height: 205px;
  }
}
