li.product {
  position: relative;

  &:hover {
    .br-stock-level img {
      opacity: 1;
    }
  }
}

@media (max-width: 980px) {
  .br-stock-level img {
    display: none !important;
  }
}

.br-stock-level {
  text-align: center;
  padding: 10px 10px;
  margin: 15px 15px;
  background: #1d1c20;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(225, 245, 246, 0.1);

  img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  &:hover {
    img {
      opacity: 1;
    }
  }
}

.br-stock-level p {
  font-family: "Poppins", Helvetica, Arial, Lucida, sans-serif;
  font-size: 15px !important;
  line-height: 1.7em;
  font-weight: 500;
}

.br-stock-level.in-stock {
  span,
  .qty-count {
    color: #ff2056;
  }

  .qty-count {
    font-family: "Teko", Helvetica, Arial, Lucida, sans-serif;
    font-size: 25px;
    font-weight: 900;
  }

  p {
    color: #e1f5f6;
  }
}

.br-stock-level.out-level p {
  color: #e1f5f6;
}

.custom_product_loop {
  li.product {
    justify-content: space-between !important;
  }

  .et_overlay {
    background: rgba(0, 0, 0, 0) !important;
    border: none !important;

    &::before {
      color: #fff;
    }
  }

  .price {
    gap: 5px;
    justify-content: center;

    &:has(ins) {
      bdi {
        font-size: 20px;
        font-weight: 700;
        color: #14b0e6;
      }
    }

    &:not(:has(ins)) {
      bdi {
        font-weight: 700;
        font-size: 20px !important;
        color: #14b0e6;
      }
    }
  }
}
/* ========================================================
   FREE SHIPPING BADGE STYLES (With Expiration Date)
   ======================================================== */

.br-free-shipping-badge {
    background-color: rgba(0, 255, 136, 0.1); 
    color: #00ff88; 
    border: 1px solid #00ff88; 
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    white-space: nowrap; /* Prevents awkward line breaks on mobile */
}

/* Inner text alignment */
.br-free-shipping-badge .fs-main {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Space between emoji and text */
}

/* Compact expiration date styling */
.br-free-shipping-badge .fs-date {
    font-size: 0.85em; /* Scales dynamically based on loop/single placement */
    font-weight: 700;
    color: rgba(0, 255, 136, 0.75); /* Muted grey to prevent clashing with the bright cyan */
    text-transform: none; /* Keeps it readable at small sizes */
    letter-spacing: 0;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(0, 255, 136, 0.75); /* Subtle divider line */
}

/* Loop/Grid Placement */
.br-free-shipping-badge.loop-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 11px;
    z-index: 999;
}

/* Single Product Page Placement */
.br-free-shipping-container {
    margin-bottom: 12px;
}

.br-free-shipping-badge.single-badge {
    display: block;
    text-align: center;
    padding: 6px 12px;
    margin: 0px 15px 0px;
    font-size: 13px;
}