/* Native card presentation reconciled with the live Russian reference.
   WooCommerce retains stock, price, rating and cart behavior. */
html body.elenpriv-store .site ul.products li.product>.button:focus-visible{outline:2px solid #fff!important;outline-offset:-4px!important}
html body.elenpriv-store .site .woocommerce-pagination a:focus-visible{outline:2px solid #a9502e;outline-offset:3px;background:#dd7047!important;border-color:#dd7047!important;color:#fff!important}
html body.elenpriv-store .site .woocommerce-pagination a:active{background:#dd7047!important;border-color:#dd7047!important;color:#fff!important}
html body.elenpriv-store .site ul.products li.product{
  background:#eee!important;border:1px solid #ccc!important;border-radius:5px!important;
  box-shadow:0 6px 10px rgba(0,0,0,.25)!important;
}
html body.elenpriv-store .site ul.products li.product .woocommerce-loop-product__title{
  text-align:center!important;font-family:Helvetica,Arial,sans-serif!important;
  font-size:13px!important;line-height:18px!important;height:36px!important;
  min-height:36px!important;max-height:36px!important;
}
html body.elenpriv-store .site ul.products li.product .price{
  text-align:center!important;color:#777!important;
  font-size:clamp(20px,5vw,23px)!important;
}
html body.elenpriv-store .site ul.products li.product .price .amount{white-space:nowrap}
html body.elenpriv-store .site ul.products li.product .button{
  font-family:var(--ep-font-body)!important;font-size:15px!important;font-weight:400!important;
}
html body.elenpriv-store .site ul.products li.product .elenpriv-product-media{
  background:#fff!important;border-color:#ccc!important;border-radius:5px 5px 0 0!important;
}
html body.elenpriv-store .site ul.products li.product .elenpriv-badge{
  width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
  font-family:var(--ep-font-body)!important;font-size:13px!important;
}
/* Only a row containing a real rating reserves the rating slot. */
html body.elenpriv-store .site ul.products li.product .elenpriv-rating-slot{
  height:0!important;min-height:0!important;max-height:0!important;
  margin:0!important;padding:0!important;justify-content:center!important;
}
html body.elenpriv-store .site ul.products li.product.ep-rating-row .elenpriv-rating-slot,
html body.elenpriv-store .site ul.products li.product .elenpriv-rating-slot[aria-label]{
  height:22px!important;min-height:22px!important;max-height:22px!important;margin:2px 8px!important;
}
@media(max-width:849px){
  html body.elenpriv-store .site ul.products li.product.ep-rating-row .elenpriv-rating-slot,
  html body.elenpriv-store .site ul.products li.product .elenpriv-rating-slot[aria-label]{
    height:20px!important;min-height:20px!important;max-height:20px!important;margin:1px 7px 2px!important;
  }
  html body.elenpriv-store .elenpriv-woo-shell{width:calc(100% - 30px)!important}
  html body.elenpriv-store .site ul.products{column-gap:20px!important;row-gap:20px!important}
  html body.elenpriv-store:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) .elenpriv-woo-shell{
    width:calc(100% - 16px)!important;
  }
  html body.elenpriv-store:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) .elenpriv-woo-shell ul.products{
    column-gap:8px!important;
    row-gap:12px!important;
  }
  html body.elenpriv-store:is(.woocommerce-shop,.post-type-archive-product,.tax-product_cat,.tax-product_tag) .elenpriv-woo-shell ul.products li.product .elenpriv-badge{
    left:-5px!important;
  }
  html body.elenpriv-store .site ul.products li.product .woocommerce-loop-product__title{
    font-size:13px!important;line-height:17px!important;height:34px!important;
    min-height:34px!important;max-height:34px!important;
  }
}

/* Keep descriptive alt names accessible without painting them in unloaded photos.
   Existing image/media dimensions reserve the card area; pixels render normally. */
html body.elenpriv-store .site ul.products li.product img.elenpriv-loop-image{font-size:0!important;line-height:0!important;color:transparent!important}

/* Keep card photo geometry independent of unloaded lazy-image intrinsic sizes. */
html body.elenpriv-store .site ul.products li.product img.elenpriv-loop-image{position:absolute!important;inset:0!important;height:100%!important;max-height:100%!important;contain-intrinsic-size:none!important}

/* Delineate the photo without changing card/image geometry or pointer targets. */
body.elenpriv-store ul.products .elenpriv-product-media::after{content:'';position:absolute;inset:0;box-sizing:border-box;border:1px solid #d9d5cf;pointer-events:none;z-index:24}

body.elenpriv-store ul.products .elenpriv-product-media .elenpriv-badge{z-index:25!important}

html body.single-product.elenpriv-store .site .summary .price,
html body.single-product.elenpriv-store .site .summary .price ins {
  font-size: clamp(24px, 5.5vw, 29px) !important;
}
html body.single-product.elenpriv-store .site .summary .price del {
  font-size: .76em !important;
}


/* Keep stars and review total together, including on narrow catalogue cards. */
html body.elenpriv-store .site ul.products li.product .elenpriv-rating-slot {
  --ep-review-star-size: 18px;
  --ep-review-star-line: 20px;
  gap: 5px;
}

html body.elenpriv-store .site ul.products li.product .elenpriv-rating-stars {
  height: var(--ep-review-star-line) !important;
  flex: none;
}

html body.elenpriv-store .site ul.products li.product .elenpriv-rating-star {
  width: var(--ep-review-star-size) !important;
  height: var(--ep-review-star-line) !important;
  font-size: var(--ep-review-star-size) !important;
  line-height: var(--ep-review-star-line) !important;
}

html body.elenpriv-store .site ul.products li.product .elenpriv-rating-star::before {
  height: var(--ep-review-star-line) !important;
  line-height: var(--ep-review-star-line) !important;
}

.elenpriv-review-count {
  color: #59554a;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 849px) {
  html body.elenpriv-store .site ul.products li.product .elenpriv-rating-slot {
    --ep-review-star-size: 16px;
    --ep-review-star-line: 18px;
  }
}
