/* ========================================
   Elwan Product Card Styles
   Central source for product cards across shop loops, homepage sections, related products, and BeTheme sliders.
   ======================================== */

/* ========================================
   Enhanced Product Card UI Styles
   Added for improved product display
   ======================================== */

/* Product hover overlay and actions */

body.woocommerce-shop .products_wrapper > ul.products,
body.post-type-archive-product .products_wrapper > ul.products,
body.tax-product_cat .products_wrapper > ul.products,
body.tax-product_tag .products_wrapper > ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-shop .products_wrapper > ul.products > li.product,
body.post-type-archive-product .products_wrapper > ul.products > li.product,
body.tax-product_cat .products_wrapper > ul.products > li.product,
body.tax-product_tag .products_wrapper > ul.products > li.product {
  width: 100% !important;
  max-width: none !important;
  flex: initial !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

@media only screen and (max-width: 768px) {
  body.woocommerce-shop .products_wrapper > ul.products > li.product,
  body.post-type-archive-product .products_wrapper > ul.products > li.product,
  body.tax-product_cat .products_wrapper > ul.products > li.product,
  body.tax-product_tag .products_wrapper > ul.products > li.product {
    width: 190px !important;
    height: 270px !important;
    flex: 0 0 190px !important;
  }
}

@media only screen and (max-width: 1023px) {
  body.woocommerce-shop .products_wrapper > ul.products,
  body.post-type-archive-product .products_wrapper > ul.products,
  body.tax-product_cat .products_wrapper > ul.products,
  body.tax-product_tag .products_wrapper > ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media only screen and (max-width: 767px) {
  body.woocommerce-shop .products_wrapper > ul.products,
  body.post-type-archive-product .products_wrapper > ul.products,
  body.tax-product_cat .products_wrapper > ul.products,
  body.tax-product_tag .products_wrapper > ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* Keep the products-per-page choices available on tablets and phones. */
@media only screen and (max-width: 959px) {
  .woocommerce .shop-filters .mfn-woo-list-options {
    display: flex !important;
    flex: 1 0 100%;
    order: 20;
    width: 100%;
    margin: 10px 0 0 !important;
    justify-content: end;
  }

  .woocommerce .shop-filters .mfn-woo-list-options > form,
  .woocommerce .shop-filters .mfn-woo-list-options .mfn-woo-list-perpage {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .woocommerce .shop-filters .mfn-woo-list-options .mfn-woo-list-perpage {
    margin: 0 !important;
  }
}

.woocommerce ul.products li.product.elwan-product-card .product-loop-thumb {
  position: relative;
  overflow: hidden;
}

.product-loop-thumb .mfn-wish-button.mfn-abs-top {
  top: 0;
  left: 0;
  right: auto;
}

.product-loop-thumb .elwan-card-add-to-cart {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  background: transparent;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.product-loop-thumb .elwan-card-add-to-cart svg {
  display: block;
  width: 26px;
  height: 26px;
}

.product-loop-thumb .elwan-card-add-to-cart svg .path {
  transition: stroke 0.2s ease;
}

.product-loop-thumb .elwan-card-add-to-cart:hover,
.product-loop-thumb .elwan-card-add-to-cart:focus {
  border-color: var(--mfn-woo-bg-themecolor, #004d73);
  background: var(--mfn-woo-bg-themecolor, #004d73);
}

.product-loop-thumb .elwan-card-add-to-cart:hover svg .path,
.product-loop-thumb .elwan-card-add-to-cart:focus svg .path {
  stroke: #fff;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .image_frame
  .image_wrapper
  .mask:after {
  background: none !important;
  background-color: transparent !important;
}

.woocommerce ul.products li.product.elwan-product-card .product-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 10;
}

.woocommerce
  ul.products
  li.product.elwan-product-card:hover
  .product-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.woocommerce ul.products li.product.elwan-product-card .product-actions {
  display: flex;
  gap: 10px;
  transform: translateY(20px);
  transition: transform 0.3s ease-in-out;
}

.woocommerce ul.products li.product.elwan-product-card:hover .product-actions {
  transform: translateY(0);
}

.woocommerce ul.products li.product.elwan-product-card .product-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .product-actions
  a:hover {
  background: #333;
  color: #fff;
  transform: scale(1.1);
}

.woocommerce ul.products li.product.elwan-product-card .product-actions a i {
  font-size: 18px;
}

/* Sale badge with discount percentage */
.woocommerce ul.products li.product.elwan-product-card .onsale-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 3px;
  z-index: 5;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .onsale-badge.new-position {
  left: auto;
  right: 15px;
}

/* Stock badges */
.woocommerce ul.products li.product.elwan-product-card .stock-badge {
  position: absolute;
  top: 15px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  z-index: 5;
  text-transform: uppercase;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .stock-badge.out-of-stock {
  left: 15px;
  background: #95a5a6;
  color: #fff;
}

.woocommerce ul.products li.product.elwan-product-card .stock-badge.low-stock {
  left: 15px;
  background: #f39c12;
  color: #fff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Enhanced star rating */
.woocommerce ul.products li.product.elwan-product-card .star-rating {
  display: inline-block;
  font-size: 14px;
  margin: 5px auto 10px;
  letter-spacing: 2px;
}

.woocommerce ul.products li.product.elwan-product-card .star-rating:before {
  color: #f1c40f;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .star-rating
  span:before {
  color: #f1c40f;
}

/* Price wrapper styling */
.woocommerce ul.products li.product.elwan-product-card .price-wrapper {
  margin: 10px 0;
}

.woocommerce ul.products li.product.elwan-product-card .price {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.woocommerce ul.products li.product.elwan-product-card .pric,
.woocommerce-page ul.products li.product.elwan-product-card .price {
  color: var(--elwan-secondary) !important;
}

/* Enhanced add to cart button */
.woocommerce
  ul.products
  li.product.elwan-product-card
  .mfn-li-product-row-button
  a.button {
  background: #333;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.3s ease-in-out;
  border: 2px solid #333;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .mfn-li-product-row-button
  a.button:hover {
  background: transparent;
  color: #333;
}

/* Product title enhancement */
.woocommerce ul.products li.product.elwan-product-card h3,
.woocommerce
  ul.products
  li.product.elwan-product-card
  .mfn-woo-product-title
  a {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease-in-out;
}

/* Product image zoom effect */
.woocommerce ul.products li.product.elwan-product-card .product-loop-thumb img {
  transition: transform 0.5s ease-in-out;
}

/* Product description area */
.woocommerce ul.products li.product.elwan-product-card .desc {
  padding: 20px 15px;
  background: #fff;
  transition: all 0.3s ease-in-out;
}

/* Quick view button styling */
.woocommerce ul.products li.product.elwan-product-card .quick-view-btn {
  background: #3498db;
  color: #fff;
}

.woocommerce ul.products li.product.elwan-product-card .quick-view-btn:hover {
  background: #2980b9;
}

/* Compare button styling */
.woocommerce ul.products li.product.elwan-product-card .compare-btn {
  background: #9b59b6;
  color: #fff;
}

.woocommerce ul.products li.product.elwan-product-card .compare-btn:hover {
  background: #8e44ad;
}

/* Wishlist button styling */
.woocommerce ul.products li.product.elwan-product-card .wishlist-btn {
  background: #e91e63;
  color: #fff;
}

.woocommerce ul.products li.product.elwan-product-card .wishlist-btn:hover {
  background: #c2185b;
}

/* Loading state for actions */
.woocommerce
  ul.products
  li.product.elwan-product-card
  .product-actions
  a.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Empty stock styling */
.woocommerce ul.products li.product.elwan-product-card.outofstock .desc {
  opacity: 0.7;
}

.woocommerce
  ul.products
  li.product.elwan-product-card.outofstock
  .mfn-li-product-row-button {
  display: none !important;
}

/* Product category display */
.woocommerce ul.products li.product.elwan-product-card .product-categories {
  display: none;
}

/* Enhanced product card for list view */
.woocommerce
  ul.products.columns-1
  li.product.elwan-product-card
  .product-hover-overlay {
  position: relative;
  opacity: 1;
  visibility: visible;
  background: transparent;
  height: auto;
  margin-bottom: 15px;
}

.woocommerce
  ul.products.columns-1
  li.product.elwan-product-card
  .product-actions {
  transform: none;
}

.woocommerce
  ul.products.columns-1
  li.product.elwan-product-card:hover
  .product-actions {
  transform: none;
}

/* Elwan product card styles */
.woocommerce ul.products li.product.elwan-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .mfn-li-product-row-image,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .mfn-li-product-row-image {
  display: flex;
  width: 100%;
}

.woocommerce ul.products li.product.elwan-product-card .product-loop-thumb,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .product-loop-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 230px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
}

.woocommerce ul.products li.product.elwan-product-card .image_wrapper,
.elwan-products-rail ul.products > li.product.elwan-product-card .image_wrapper,
.woocommerce ul.products li.product.elwan-product-card .image_wrapper > a,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .image_wrapper
  > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
}

.woocommerce ul.products li.product.elwan-product-card img.wp-post-image,
.woocommerce ul.products li.product.elwan-product-card .product-loop-thumb img,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  img.wp-post-image,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .product-loop-thumb
  img {
  width: 300px;
  height: 300px;
  object-position: center center !important;
  background: #fff;
  display: block;
  border-radius: 14px;
  margin: 0 auto;
  transform-origin: center center;
  object-fit: contain !important;
}

.woocommerce ul.products li.product.elwan-product-card .desc,
.elwan-products-rail ul.products > li.product.elwan-product-card .desc {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  margin-top: 0;
  padding: 0;
  background: transparent;
  justify-content: flex-start;
}

.woocommerce ul.products li.product.elwan-product-card .mfn-woo-product-title,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .mfn-woo-product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;
  max-height: 2.6em;
  text-align: left !important;
  margin: 0 6px 8px;
  overflow: hidden;
}

.woocommerce ul.products li.product.elwan-product-card .mfn-woo-product-title a,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .mfn-woo-product-title
  a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-variation-row,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-variation-row,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-variation-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}

body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-variation-row,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-variation-row,
body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-variation-row {
  flex-direction: row-reverse;
}

.woocommerce ul.products li.product.elwan-product-card .elwan-card-color-field,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-field,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-field {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-field
  label,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-field
  label,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-field
  label {
  flex: 0 0 auto;
  margin: 0;
  color: #0b4f78;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-swatches,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-swatches,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-swatches {
  display: flex;
  gap: 5px;
}

.woocommerce ul.products li.product.elwan-product-card .elwan-card-color-circle,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-circle,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
@media (max-width: 768px){
    .woocommerce ul.products li.product.elwan-product-card .elwan-card-color-circle,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-circle,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-circle {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}
}
.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-circle:hover,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-circle:hover,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-circle:hover {
  transform: scale(1.1);
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-circle.selected,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-circle.selected,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-circle.selected {
  box-shadow:
    0 0 0 1px #fff,
    0 0 0 3px #2563eb;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-circle.out-of-stock,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-circle.out-of-stock,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-circle.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
}

.woocommerce ul.products li.product.elwan-product-card .elwan-card-stock,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-stock {
  font-size: 15px;
  color: #6a6a6a;
  text-align: left !important;
  min-height: 18px;
  margin: 0 0 8px;
}

.woocommerce ul.products li.product.elwan-product-card .soldout,
.elwan-products-rail ul.products > li.product.elwan-product-card .soldout {
  display: none !important;
}

body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .mfn-woo-product-title,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .mfn-woo-product-title {
  text-align: right !important;
}

body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-stock,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-stock {
  text-align: right !important;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-stock.is-in-stock::before,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-stock.is-in-stock::before {
  content: "\2713";
  color: #b58b35;
  margin-inline-end: 6px;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-stock.is-out-of-stock,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-stock.is-out-of-stock {
  color: #c0392b;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-stock.is-out-of-stock::before,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-stock.is-out-of-stock::before {
  content: "\2715";
  color: #c0392b;
  margin-inline-end: 6px;
}

.woocommerce ul.products li.product.elwan-product-card .elwan-card-meta-row,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 0 !important;
  margin-top: auto;
}

/* body.rtl .woocommerce ul.products li.product.elwan-product-card .elwan-card-meta-row,
body.rtl .elwan-products-rail ul.products > li.product.elwan-product-card .elwan-card-meta-row {
    /* flex-direction: row-reverse;
} */

.woocommerce ul.products li.product.elwan-product-card .elwan-card-price,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price {
  font-family: currency-symbol-v2, Cairo, Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #b58b35;
  line-height: 1.2;
  min-height: 28px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

/* The current price is the main price in a homepage card. */
.elwan-products-rail ul.products > li.product.elwan-product-card .elwan-card-price {
  font-weight: 700;
}

.woocommerce ul.products li.product.elwan-product-card .elwan-card-price del,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  del {
  font-size: 14px;
  opacity: 0.5;
  font-weight: 400;
  text-decoration: line-through !important;
}

/* In RTL cards, WooCommerce wraps the digits in inline-block elements.
   Put the line directly on those elements so the cancelled regular price
   is visibly struck through on the homepage too. */
.elwan-products-rail ul.products > li.product.elwan-product-card .elwan-card-price del .woocommerce-Price-amount,
.elwan-products-rail ul.products > li.product.elwan-product-card .elwan-card-price del .woocommerce-Price-amount bdi,
.elwan-products-rail ul.products > li.product.elwan-product-card .elwan-card-price del .woocommerce-Price-currencySymbol {
  text-decoration: line-through !important;
}

/* A product without a sale has one current (regular) price; keep it bold. */
.elwan-products-rail ul.products > li.product.elwan-product-card .elwan-card-price > .woocommerce-Price-amount,
.elwan-products-rail ul.products > li.product.elwan-product-card .elwan-card-price ins,
.elwan-products-rail ul.products > li.product.elwan-product-card .elwan-card-price ins .woocommerce-Price-amount,
.elwan-products-rail ul.products > li.product.elwan-product-card .elwan-card-price ins .woocommerce-Price-amount bdi {
  font-weight: 700;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  del::after,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  del::after {
  content: none;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  .elwan-card-price-custom,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  .elwan-card-price-custom {
  display: none;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  direction: ltr;
  unicode-bidi: isolate;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  .elwan-card-price-custom
  del::after,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  .elwan-card-price-custom
  del::after {
  content: none;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  .elwan-card-price-separator,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  .elwan-card-price-separator {
  color: #4e4e4e;
  opacity: 0.5;
}

html[lang^="ar"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount,
html[lang^="ar"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount
  bdi,
html[lang^="ar"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount,
html[lang^="ar"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount
  bdi,
body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount,
body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount
  bdi,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount
  bdi {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  /* display:inline-block above starts a new atomic inline box, which
       stops the parent <del>'s line-through from painting through the
       price digits on Arabic/RTL pages (English never sets inline-block
       here, so it never lost the strikethrough). Restate it explicitly
       so it inherits the <del>/<ins> ancestor's text-decoration again. */
  text-decoration: inherit;
}

html[lang^="ar"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-currencySymbol,
html[lang^="ar"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-currencySymbol,
body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-currencySymbol,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-currencySymbol {
  direction: ltr;
  unicode-bidi: isolate;
}

.woocommerce ul.products li.product.elwan-product-card .elwan-card-brand,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 110px;
}

.woocommerce ul.products li.product.elwan-product-card .elwan-brand-logo,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-brand-logo {
  transform: unset;
  border: none;
  border-radius: unset;
  max-width: 100px;
  max-height: 35px;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  box-shadow: unset;
  background: none;
}

.woocommerce ul.products li.product.elwan-product-card .elwan-brand-text,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-brand-text {
  font-size: 14px;
  font-weight: 700;
  color: #0b4f78;
  line-height: 1.2;
}

.woocommerce ul.products li.product.elwan-product-card .elwan-quick-view-btn,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-quick-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 9px;
  border: 0;
  background: var(--elwan-primary) !important;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  margin: 9px 0 0;
  gap: 8px;
  padding: 10px 12px;
}

.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-quick-view-btn:hover,
.woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-quick-view-btn:focus,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-quick-view-btn:hover,
.elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-quick-view-btn:focus {
  background: #0a466b;
  color: #fff;
}

/* JavaScript creates this reusable trigger for touch screens only. */
.elwan-mobile-quick-view-eye {
  display: none !important;
}

/* Responsive adjustments */
@media only screen and (max-width: 767px) {
  /* Mobile quick view: keep cards clean until the visitor taps one. */
  .woocommerce ul.products li.product.elwan-product-card > .desc > .elwan-quick-view-btn,
  .elwan-products-rail ul.products > li.product.elwan-product-card > .desc > .elwan-quick-view-btn,
  .shop_slider .shop_slider_ul li.product.elwan-product-card > .desc > .elwan-quick-view-btn,
  .elwan-similar-card > .elwan-similar-btn {
    display: none !important;
  }

  .elwan-product-card .product-loop-thumb,
  .elwan-product-card .mfn-li-product-row-image,
  .elwan-similar-card .elwan-similar-img-wrap {
    position: relative;
  }

  .elwan-product-card,
  .elwan-similar-card {
    transition: box-shadow 0.18s ease, transform 0.18s ease;
  }

  .elwan-product-card.elwan-mobile-quick-view-active,
  .elwan-similar-card.elwan-mobile-quick-view-active {
    box-shadow:
      0 12px 32px rgba(2, 35, 55, 0.22),
      0 3px 10px rgba(2, 35, 55, 0.12) !important;
  }

  .elwan-product-card::after,
  .elwan-similar-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border-radius: 12px;
    background: rgba(205, 220, 223, 0.3);
    -webkit-backdrop-filter: blur(1.6px) saturate(0.82);
    backdrop-filter: blur(1.6px) saturate(0.82);
    box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  .elwan-product-card.elwan-mobile-quick-view-active::after,
  .elwan-similar-card.elwan-mobile-quick-view-active::after {
    opacity: 1;
    visibility: visible;
  }

  .elwan-mobile-quick-view-eye {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 25 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(4, 65, 103, 0.16) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #044167 !important;
    box-shadow: 0 5px 20px rgba(2, 35, 55, 0.24) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -42%) scale(0.78) !important;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease !important;
  }

  .elwan-mobile-quick-view-eye svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .elwan-similar-card > .elwan-mobile-quick-view-eye {
    top: 38% !important;
  }

  .elwan-mobile-quick-view-active .elwan-mobile-quick-view-eye {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .elwan-mobile-quick-view-active .elwan-mobile-quick-view-eye:active {
    transform: translate(-50%, -50%) scale(0.94) !important;
  }

  .woocommerce ul.products li.product.elwan-product-card .product-loop-thumb,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .product-loop-thumb,
  .woocommerce ul.products li.product.elwan-product-card .image_wrapper,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .image_wrapper,
  .woocommerce ul.products li.product.elwan-product-card .image_wrapper > a,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .image_wrapper
    > a {
    min-height: 180px;
  }

  .woocommerce ul.products li.product.elwan-product-card img.wp-post-image,
  .woocommerce
    ul.products
    li.product.elwan-product-card
    .product-loop-thumb
    img,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    img.wp-post-image,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .product-loop-thumb
    img {
    height: 150px;
  }

  .woocommerce
    ul.products
    li.product.elwan-product-card
    .product-hover-overlay {
    opacity: 1;
    visibility: visible;
    background: transparent;
    position: relative;
    height: auto;
    margin-bottom: 10px;
  }

  .woocommerce ul.products li.product.elwan-product-card .product-actions {
    transform: none;
    justify-content: center;
  }

  .woocommerce
    ul.products
    li.product.elwan-product-card:hover
    .product-actions {
    transform: none;
  }

  .woocommerce ul.products li.product.elwan-product-card .onsale-badge,
  .woocommerce ul.products li.product.elwan-product-card .stock-badge {
    font-size: 10px;
    padding: 3px 6px;
  }

  .woocommerce
    ul.products
    li.product.elwan-product-card
    .elwan-card-variation-row,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .elwan-card-variation-row,
  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-variation-row,
  body.rtl
    .woocommerce
    ul.products
    li.product.elwan-product-card
    .elwan-card-variation-row,
  body.rtl
    .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .elwan-card-variation-row,
  body.rtl
    .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-variation-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
  }

  .woocommerce ul.products li.product.elwan-product-card .elwan-card-stock,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .elwan-card-stock,
  .shop_slider .shop_slider_ul li.product.elwan-product-card .elwan-card-stock {
    text-align: left !important;
  }

  body.rtl
    .woocommerce
    ul.products
    li.product.elwan-product-card
    .elwan-card-stock,
  body.rtl
    .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .elwan-card-stock,
  body.rtl
    .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-stock {
    text-align: right !important;
  }
}

/* ========================================
   Elwan Homepage Section Product Rail Cards
   ======================================== */

.elwan-products-rail ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  width: max-content !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.elwan-products-rail ul.products::before,
.elwan-products-rail ul.products::after {
  display: none !important;
}

.elwan-products-rail ul.products > li.product {
  flex: 0 0 auto !important;
  width: 350px !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  position: relative !important;
  border: none !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 12px !important;
  overflow: hidden !important;
  text-align: center !important;
  transition:
    opacity 0.34s ease,
    transform 0.34s ease;
  will-change: opacity, transform;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.elwan-products-rail ul.products > li.product.is-entering {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.elwan-products-rail ul.products > li.product .woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.elwan-section a:has(img),
.elwan-products-rail ul.products > li.product .woocommerce-LoopProduct-link {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
}

.elwan-products-rail ul.products > li.product img,
.elwan-products-rail ul.products > li.product img.wp-post-image {
  width: 100%;
  height: 320px;
  object-fit: fill !important;
  object-position: center center !important;
  background: #efefef;
  display: block;
  border-radius: 14px;
  margin: 0 auto;
  transform: scale(0.8);
  transform-origin: center center;
}

.elwan-products-rail ul.products > li.product .woocommerce-loop-product__title,
.elwan-products-rail ul.products > li.product h2,
.elwan-products-rail ul.products > li.product h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  min-height: 2.7em !important;
  max-height: 2.7em !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  margin: 12px 6px 8px !important;
}

.elwan-products-rail ul.products > li.product .price {
  margin-top: auto !important;
  min-height: 28px;
  font-weight: 700;
}

.elwan-products-rail ul.products > li.product .price ins,
.elwan-products-rail ul.products > li.product .price ins .amount,
.elwan-products-rail ul.products > li.product .price .amount {
  text-decoration: none !important;
}

@media (min-width: 768px) {
  .woocommerce ul.products li.product.elwan-product-card .elwan-card-price del,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .elwan-card-price
    del {
    color: #4e4e4e !important;
  }
}

.price-wrapper {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.elwan-products-rail ul.products > li.product .star-rating,
.elwan-products-rail ul.products > li.product .yith-wcwl-add-to-wishlist,
.elwan-products-rail ul.products > li.product .stock,
.elwan-products-rail ul.products > li.product .onsale {
  min-height: 18px;
}

.elwan-products-rail ul.products > li.product .stock {
  margin: 0 0 8px !important;
  color: #6a6a6a !important;
  font-size: 15px !important;
}

.elwan-products-rail ul.products > li.product .stock::before {
  content: "\2713";
  color: #b18934;
  margin-left: 6px;
}

.elwan-products-rail ul.products > li.product .onsale {
  position: absolute !important;
  top: 35px !important;
  left: 7px !important;
  right: auto !important;
  min-height: 0 !important;
  border-radius: 3px !important;
  background: #d72b2b !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
  padding: 8px 8px !important;
  z-index: 2;
}
.elwan-card-price ins span.woocommerce-Price-amount.amount {
  font-size: 18px;
}
@media (max-width: 768px ){
    
    .elwan-card-price ins span.woocommerce-Price-amount.amount {
    font-size: 14px !important;
}
}
.elwan-products-rail ul.products > li.product .yith-wcwl-add-to-wishlist,
.elwan-products-rail ul.products > li.product .mfn-wishlist,
.elwan-products-rail ul.products > li.product .wishlist,
.elwan-products-rail ul.products > li.product .add-to-wishlist {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  z-index: 2;
  margin: 0 !important;
}

.elwan-products-rail ul.products > li.product a.button,
.elwan-products-rail ul.products > li.product .button {
  display: block !important;
  width: 100% !important;
  border-radius: 9px !important;
  background: #0b4f78 !important;
  color: #fff !important;
  border: 0 !important;
  text-align: center !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  padding: 10px 12px !important;
  margin: 6px 0 0 !important;
}

.elwan-products-rail ul.products > li.product a.button:hover,
.elwan-products-rail ul.products > li.product .button:hover {
  background: #0a466b !important;
  color: #fff !important;
}

@media (max-width: 1200px) {
  .elwan-products-rail ul.products {
    gap: 18px !important;
  }

  .elwan-products-rail ul.products > li.product {
    width: 300px !important;
  }

  .elwan-products-rail ul.products > li.product img {
    height: 270px !important;
  }

  .elwan-products-rail
    ul.products
    > li.product
    .woocommerce-loop-product__title,
  .elwan-products-rail ul.products > li.product h2,
  .elwan-products-rail ul.products > li.product h3 {
    font-size: 15px !important;
  }
}

@media (max-width: 768px) {
  .elwan-products-rail ul.products {
    gap: 14px !important;
  }

  .elwan-products-rail ul.products > li.product img {
    height: 230px !important;
  }

  .elwan-products-rail
    ul.products
    > li.product
    .woocommerce-loop-product__title,
  .elwan-products-rail ul.products > li.product h2,
  .elwan-products-rail ul.products > li.product h3 {
    font-size: 15px !important;
  }

  .elwan-products-rail ul.products > li.product a.button,
  .elwan-products-rail ul.products > li.product .button {
    font-size: 18px !important;
  }

  section.elwan-section .elwan-products-rail .image_wrapper a img {
    width: 200px !important;
    height: 200px !important;
  }
}

@media (max-width: 480px) {
  .elwan-products-rail ul.products > li.product img {
    height: 200px !important;
  }
}

/* ========================================
   Elwan Product Cards Inside BeTheme Shop Slider
   ======================================== */

/* Elwan product cards inside BeTheme Shop Slider */
.shop_slider .shop_slider_ul .slick-track {
  display: flex;
}

.shop_slider .shop_slider_ul .slick-slide {
  height: auto;
}

.shop_slider .shop_slider_ul .slick-slide > div {
  height: 100%;
}

.shop_slider .shop_slider_ul li.product.elwan-product-card {
  height: auto;
  width: 350px !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  position: relative !important;
  border: 1px solid #cfd6dc !important;
  border-radius: 12px !important;
  background: #f7f7f7 !important;
  padding: 12px !important;
  overflow: hidden !important;
  text-align: center !important;
  transition:
    opacity 0.34s ease,
    transform 0.34s ease;
  will-change: opacity, transform;
}

.shop_slider .shop_slider_ul li.product.elwan-product-card .image_frame,
.shop_slider .shop_slider_ul li.product.elwan-product-card .hover_box_product {
  width: 100% !important;
  margin: 0 0 15px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  min-height: 200px;
}
.shop_slider .shop_slider_ul li.product.elwan-product-card .image_wrapper a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
}
.shop_slider .shop_slider_ul li.product.elwan-product-card .image_wrapper,
.shop_slider .shop_slider_ul li.product.elwan-product-card .hover_box_wrapper {
  background: #fff;
  border-radius: 14px;
}

.shop_slider .shop_slider_ul li.product.elwan-product-card img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
  display: block;
  border-radius: 4px;
  margin: 0 auto;
  transform: scale(0.8);
  transform-origin: center center;
  height: 250px;
  width: 100% !important;
}
ul.shop_slider_ul.slick-initialized.slick-slider.slick-dotted .slick-track {
  width: unset !important;
}
.slick-list.draggable .slick-track {
  gap: 25px;
  display: flex !important;
  align-items: center !important;
}
.shop_slider .shop_slider_ul li.product.elwan-product-card .desc {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0px;
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

body.rtl .shop_slider .shop_slider_ul li.product.elwan-product-card .desc {
  text-align: right;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .mfn-woo-product-title {
  width: 100%;
  height: 4.05em;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .mfn-woo-product-title {
  text-align: right;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .mfn-woo-product-title
  a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.shop_slider .shop_slider_ul li.product.elwan-product-card .elwan-card-stock {
  width: 100%;
  min-height: 24px;
  color: #5b5b5b;
  font-size: 15px;
  text-align: left;
}

body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-stock {
  text-align: right;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-stock.is-in-stock::before {
  content: "\2713";
  color: #b58b35;
  margin-inline-end: 6px;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-stock.is-out-of-stock {
  color: #c0392b;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-stock.is-out-of-stock::before {
  content: "\2715";
  color: #c0392b;
  margin-inline-end: 6px;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 20px;
  margin: 0 0 12px 0;
  height: 27px;
}

body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-meta-row {
  flex-direction: row-reverse;
}

.shop_slider .shop_slider_ul li.product.elwan-product-card .elwan-card-price {
  font-family: currency-symbol-v2, Cairo, Tahoma, sans-serif;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 2.4em;
  color: #b58b35;
  font-weight: 600;
  line-height: 1.2;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  del {
  font-size: 14px;
  opacity: 0.5;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  del::after {
  content: none;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  .elwan-card-price-custom {
  display: none;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  direction: ltr;
  unicode-bidi: isolate;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  .elwan-card-price-custom
  del::after {
  content: none;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  .elwan-card-price-separator {
  color: #4e4e4e;
  opacity: 0.5;
}

html[lang^="ar"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount,
html[lang^="ar"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount
  bdi,
body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount,
body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-amount
  bdi {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  text-decoration: inherit;
}

html[lang^="ar"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-currencySymbol,
body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-price
  .woocommerce-Price-currencySymbol {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (min-width: 768px) {
  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-price
    .elwan-card-price-original,
  .woocommerce
    ul.products
    li.product.elwan-product-card
    .elwan-card-price
    .elwan-card-price-original,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .elwan-card-price
    .elwan-card-price-original {
    display: none;
  }

  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-price
    .elwan-card-price-custom,
  .woocommerce
    ul.products
    li.product.elwan-product-card
    .elwan-card-price
    .elwan-card-price-custom,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .elwan-card-price
    .elwan-card-price-custom {
    display: inline-flex;
  }

  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-price
    del::after,
  .woocommerce
    ul.products
    li.product.elwan-product-card
    .elwan-card-price
    del::after,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .elwan-card-price
    del::after {
    content: none;
  }

  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-price
    del,
  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-price
    del
    .woocommerce-Price-amount,
  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-price
    del
    .woocommerce-Price-currencySymbol,
  .woocommerce ul.products li.product.elwan-product-card .elwan-card-price del,
  .woocommerce
    ul.products
    li.product.elwan-product-card
    .elwan-card-price
    del
    .woocommerce-Price-amount,
  .woocommerce
    ul.products
    li.product.elwan-product-card
    .elwan-card-price
    del
    .woocommerce-Price-currencySymbol {
    color: #4e4e4e;
  }

  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-price
    del,
  .woocommerce ul.products li.product.elwan-product-card .elwan-card-price del {
    opacity: 0.5;
  }
}

.shop_slider .shop_slider_ul li.product.elwan-product-card .elwan-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 110px;
}

.shop_slider .shop_slider_ul li.product.elwan-product-card .elwan-brand-logo {
  width: auto !important;
  max-height: 28px;
  object-fit: contain;
  border-radius: 4px;
  margin: 0 auto;
  transform: scale(0.8);
}

.shop_slider .shop_slider_ul li.product.elwan-product-card .elwan-brand-text {
  color: #0b4f78;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-quick-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  border: 0;
  border-radius: 10px;
  background: var(--elwan-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-quick-view-btn:hover,
.shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-quick-view-btn:focus {
  background: #0a466b;
  color: #fff;
}

.shop_slider .shop_slider_ul li.product.elwan-product-card span.onsale {
  top: 0px !important;
  left: 0px !important;
  right: auto;
  min-height: 0;
  border-radius: 12px;
  background: #d72b2b;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 8px 12px;
  z-index: 2;
}

.shop_slider .shop_slider_ul li.product.elwan-product-card .soldout {
  display: none;
}

@media (max-width: 767px) {
  .shop_slider .shop_slider_ul li.product.elwan-product-card {
    padding: 0 8px;
  }

  .shop_slider .shop_slider_ul li.product.elwan-product-card img,
  .shop_slider .shop_slider_ul li.product.elwan-product-card img.wp-post-image {
    height: 260px;
  }

  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .mfn-woo-product-title {
    height: 3.9em;
  }

  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-card-meta-row {
    min-height: 50px;
  }

  .shop_slider .shop_slider_ul li.product.elwan-product-card .elwan-card-price {
    min-height: 2.3em;
    font-size: 18px;
  }

  .shop_slider
    .shop_slider_ul
    li.product.elwan-product-card
    .elwan-quick-view-btn {
    min-height: 38px;
    font-size: 13px;
  }
}

html[lang^="ar"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .mfn-woo-product-title,
html[lang^="ar"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .mfn-woo-product-title,
html[lang^="ar"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .mfn-woo-product-title,
body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .mfn-woo-product-title,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .mfn-woo-product-title,
body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .mfn-woo-product-title {
  text-align: right !important;
}

html[lang^="en"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .mfn-woo-product-title,
html[lang^="en"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .mfn-woo-product-title,
html[lang^="en"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .mfn-woo-product-title {
  text-align: left !important;
}

html[lang^="ar"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-variation-row,
html[lang^="ar"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-variation-row,
html[lang^="ar"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-variation-row,
body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-variation-row,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-variation-row,
body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-variation-row {
  flex-direction: row !important;
}
html[lang^="ar"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-variation-row,
html[lang^="ar"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-variation-row,
html[lang^="ar"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-variation-row {
  justify-content: flex-start !important;
}
html[lang^="ar"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-stock,
html[lang^="ar"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-stock,
html[lang^="ar"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-stock,
body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-stock,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-stock,
body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-stock {
  text-align: right !important;
}

html[lang^="ar"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-field,
html[lang^="ar"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-field,
html[lang^="ar"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-field,
body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-field,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-field,
body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-field {
  order: 1;
  align-items: flex-end;
}

html[lang^="ar"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-swatches,
html[lang^="ar"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-swatches,
html[lang^="ar"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-swatches,
body.rtl
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-swatches,
body.rtl
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-swatches,
body.rtl
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-swatches {
  justify-content: flex-start;
}

html[lang^="en"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-variation-row,
html[lang^="en"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-variation-row,
html[lang^="en"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-variation-row {
  flex-direction: row !important;
}

html[lang^="en"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-stock,
html[lang^="en"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-stock,
html[lang^="en"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-stock {
  text-align: left !important;
}

html[lang^="en"]
  .woocommerce
  ul.products
  li.product.elwan-product-card
  .elwan-card-color-field,
html[lang^="en"]
  .elwan-products-rail
  ul.products
  > li.product.elwan-product-card
  .elwan-card-color-field,
html[lang^="en"]
  .shop_slider
  .shop_slider_ul
  li.product.elwan-product-card
  .elwan-card-color-field {
  order: 2;
  align-items: flex-end;
}

/* Mobile sticky footer: keep every action's name visible below its icon. */
@media only screen and (max-width: 767px) {
  .mfn-footer-stickymenu ul li a {
    position: relative;
    min-width: 0;
    padding: 9px 4px 7px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 4px;
    line-height: 1;
  }

  .mfn-footer-stickymenu ul li a .sm-item {
    display: block;
    width: 100%;
    padding-top: 0;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mfn-footer-stickymenu ul li a .header-cart-count,
  .mfn-footer-stickymenu ul li a .mfn-footer-wishlist-count {
    position: absolute !important;
    top: 4px !important;
    left: 50% !important;
    margin: 0 0 0 8px !important;
    z-index: 1;
  }
}

@media only screen and (max-width: 767px) {
  .woocommerce ul.products li.product.elwan-product-card .elwan-brand-logo,
  .elwan-products-rail
    ul.products
    > li.product.elwan-product-card
    .elwan-brand-logo {
    width: 50px !important;
    display: none;
  }
}

/* Mobile quick view: let the entire modal scroll within the visible viewport. */
@media only screen and (max-width: 767px) {
  html.mfn-quick-view-opened,
  html.mfn-quick-view-opened body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  html.mfn-quick-view-opened .mfn-footer-stickymenu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .mfn-popup-quickview {
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .mfn-popup-quickview .mfn-popup-content {
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    transform: none;
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .mfn-popup-quickview .mfn-close-icon {
    position: sticky !important;
    top: 8px;
    margin: 8px 8px -48px auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 3px 12px rgba(2, 35, 55, 0.16);
    z-index: 30;
  }

  .mfn-popup-quickview .mfn-popup-content-wrapper,
  .mfn-popup-quickview .mfn-popup-content-col,
  .mfn-popup-quickview .mfn-popup-content-text,
  .mfn-popup-quickview .mfn-popup-content-text-wrapper {
    height: auto !important;
    max-height: none !important;
  }

  .mfn-popup-quickview .mfn-popup-content-text-wrapper {
    overflow: visible !important;
  }

  .mfn-popup-quickview
    .elwan-quickview-sanitary-choice-list.is-scrollable {
    max-height: none !important;
    overflow: visible !important;
  }
}
