/* ✅ تنسيق البطاقة */
.product-box a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
  background: transparent !important;
  box-shadow: none !important;
}
.product-box a.card:hover {
  transform: scale(1.02);
}

.product-box .card-img-top {
  width: 100%;
  aspect-ratio: 1 / 1; /* مربع دائمًا */
  object-fit: cover;
  display: block;
  border-radius: 0.5rem 0.5rem 0 0;
}
#modalProductPrice del {
  color: #fff !important;
  opacity: .7;
}


.product-box .card-body {
  padding: 10px 5px 5px 5px;
  margin: 0;
  text-align: center;
  background: transparent !important;
}

.product-box .card-title {
  color: #23190c;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  text-shadow: none;
}

.product-box .card-price {
  color: #23190c;
  font-weight: bold;
  margin: 0.5rem 0;
}

.search-wrapper {
  width: 100%;
  max-width: 100%;
  background: #e3ebf2;
  border-radius: 40px;
  padding: 0.6rem 1.2rem;
  margin-bottom: 30px;
}
.search-wrapper input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  text-align: right;
  font-size: 15px;
  color: #333;
}

.favorite-btn {
  font-size: 20px;
  color: #dc3545;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.favorite-btn:hover {
  transform: scale(1.2);
  color: #b51d1d;
}

.disabled-product {
    filter: grayscale(1);
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.disabled-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #888;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    z-index: 2;
}

