/* OccasionLayouts Premium Shop 1.1.4 */
.woocommerce .olps-server-mount{box-sizing:border-box}.olps-card-wrap{box-sizing:border-box}.olps-card{box-sizing:border-box}.olps-image-stage{box-sizing:border-box}

/* HOME PAGE ONLY — mobile WooCommerce product-loop rating alignment.
   No grid/card/image/title/price/button dimensions are changed. */
@media (max-width:780px){
  body.olps-premium-home .woocommerce ul.products li.product .star-rating,
  body.olps-premium-home ul.products li.product .star-rating,
  body.olps-premium-home .wc-block-grid__product .star-rating,
  body.olps-premium-home .wc-block-grid__product-rating .star-rating,
  body.olps-premium-home .elementor-widget-woocommerce-products .star-rating,
  body.olps-premium-home .elementor-loop-container .star-rating{
    float:none!important;
    display:block!important;
    position:relative!important;
    width:5.4em!important;
    min-width:5.4em!important;
    max-width:5.4em!important;
    height:1em!important;
    min-height:1em!important;
    max-height:1em!important;
    margin:6px auto 9px!important;
    padding:0!important;
    box-sizing:content-box!important;
    overflow:hidden!important;
    line-height:1!important;
    text-align:left!important;
    white-space:nowrap!important;
    transform:none!important;
    left:auto!important; right:auto!important; top:auto!important; bottom:auto!important;
  }
  body.olps-premium-home .woocommerce ul.products li.product .star-rating:before,
  body.olps-premium-home .woocommerce ul.products li.product .star-rating span,
  body.olps-premium-home ul.products li.product .star-rating:before,
  body.olps-premium-home ul.products li.product .star-rating span,
  body.olps-premium-home .wc-block-grid__product .star-rating:before,
  body.olps-premium-home .wc-block-grid__product .star-rating span{
    position:absolute!important;
    left:0!important; right:auto!important; top:0!important; bottom:auto!important;
    width:5.4em!important;
    max-width:5.4em!important;
    height:1em!important;
    margin:0!important; padding:0!important;
    line-height:1!important;
    transform:none!important;
  }
  body.olps-premium-home .woocommerce ul.products li.product .star-rating span,
  body.olps-premium-home ul.products li.product .star-rating span,
  body.olps-premium-home .wc-block-grid__product .star-rating span{
    display:block!important;
    overflow:hidden!important;
    /* WooCommerce puts the accessible text (e.g. “Rated 5 out of 5”)
       inside this span. Hide that text while keeping the star pseudo-element. */
    font-size:0!important;
    text-indent:0!important;
  }
  body.olps-premium-home .woocommerce ul.products li.product .star-rating span:before,
  body.olps-premium-home ul.products li.product .star-rating span:before,
  body.olps-premium-home .wc-block-grid__product .star-rating span:before{
    position:absolute!important;
    left:0!important; right:auto!important; top:0!important; bottom:auto!important;
    width:5.4em!important;
    height:1em!important;
    margin:0!important; padding:0!important;
    line-height:1!important;
    font-size:12px!important;
    text-indent:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    transform:none!important;
  }
}


/* v1.1.2 — HOME mobile: render a clean, fully filled five-star display.
   This replaces WooCommerce's outline/accessible-text rendering only on the
   Home-page mobile product ratings. Desktop and all other elements unchanged. */
@media (max-width:780px){
  body.olps-premium-home .woocommerce ul.products li.product .star-rating:before,
  body.olps-premium-home ul.products li.product .star-rating:before,
  body.olps-premium-home .wc-block-grid__product .star-rating:before,
  body.olps-premium-home .wc-block-grid__product-rating .star-rating:before,
  body.olps-premium-home .elementor-widget-woocommerce-products .star-rating:before,
  body.olps-premium-home .elementor-loop-container .star-rating:before{
    content:"★★★★★"!important;
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:5.4em!important;
    height:1em!important;
    margin:0!important;
    padding:0!important;
    color:#f2b01e!important;
    font-family:Arial,sans-serif!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    text-indent:0!important;
    overflow:hidden!important;
    transform:none!important;
  }
  body.olps-premium-home .woocommerce ul.products li.product .star-rating span,
  body.olps-premium-home ul.products li.product .star-rating span,
  body.olps-premium-home .wc-block-grid__product .star-rating span,
  body.olps-premium-home .wc-block-grid__product-rating .star-rating span,
  body.olps-premium-home .elementor-widget-woocommerce-products .star-rating span,
  body.olps-premium-home .elementor-loop-container .star-rating span{
    display:none!important;
    visibility:hidden!important;
  }
}
