body {
  background: #f9f9fb;
}

.variant-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.variant-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.variant-card.out-of-stock img {
  filter: grayscale(60%) brightness(85%);
}

/* ✅ الصور داخل البطاقة */
.variant-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f8f8f8;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 6px;
  display: block;
}

/* ✅ عناصر التحكم في الكاروسيل */
.variant-card .carousel-control-prev-icon,
.variant-card .carousel-control-next-icon {
  background-color: silver;
  filter: brightness(120%) contrast(90%);
  border-radius: 50%;
}

.badge-out-of-stock {
  position: absolute;
  top: 8px;
  right: -20px;
  transform: rotate(45deg);
  background-color: #dc3545;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 5px 40px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.variant-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 4px;
  text-align: center;
}

.description-short {
  color: #6c757d;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-block {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: auto;
  text-align: center;
}

.price-block del {
  display: block;
  color: #888;
}

.price-block strong {
  display: block;
  color: #f06292;
  font-size: 1rem;
}

/* أزرار */
.btn-outline-pink {
  border: 1px solid #f06292;
  color: #f06292;
  background-color: transparent;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-outline-pink:hover,
.btn-outline-pink:focus,
.btn-outline-pink:active {
  background-color: #f06292;
  color: white;
  border-color: #ec407a;
}

.btn-pink {
  background-color: #f06292;
  border-color: #f06292;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-pink:hover,
.btn-pink:focus,
.btn-pink:active {
  background-color: #ec407a;
  border-color: #ec407a;
  color: white;
}

.modal-thumb.active {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}

.modal-thumb:hover {
  opacity: 0.85;
}

.news-bar {
  background: #212529;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  font-size: 1.1rem;
}

.col-custom {
  flex: 0 0 50%;
  max-width: 50%;
}

@media (min-width: 992px) {
  .col-custom {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (max-width: 576px) {
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
}

.badge {
  font-size: 0.75rem;
}
