:root {
  --primary-color: #d3a74e;
  --primary-dark: #b38d3d;
  --primary-light: #e5c985;
  --dark-color: #333;
  --light-color: #f8f9fa;
}

.category {
  margin-top: 120px;
}

.store-name {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--primary-dark);
  font-weight: bold;
  font-size: 2rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
  color: var(--dark-color);
  /* display: flex;
  justify-content: space-between; */
  /* align-items: end; */
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.swiper-container {
  overflow: hidden;
  margin-bottom: 3rem;
  padding: 1rem 0.5rem;
  position: relative;
}

.swiper-slide {
  text-align: center;
  padding: 0.5rem;
  height: auto;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-img-container {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: auto;
}

.product-name {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 0.5rem;
  overflow: hidden;
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  height: 70px;
  overflow: hidden;
}

.price {
  font-weight: bold;
  color: var(--primary-color);
  margin: 0.5rem 0 1rem;
  font-size: 1.2rem;
}

.whatsapp-btn {
  width: 100%;
  padding: 0.6rem;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.3s;
  margin-top: auto;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
}

.btn-show-all {
  background-color: transparent;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 50px !important;
  font-size: 0.875rem !important;
  /* margin-right: auto !important; */
  transition: all 0.3s ease-in-out !important;
}

.btn-show-all:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  background: var(--primary-color);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: background 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-dark);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.2rem !important;

  font-weight: bold !important;
}

@media (max-width: 768px) {
  /* .category-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  } */

  .btn-show-all {
    align-self: flex-end;
  }

  .store-name {
    font-size: 1.7rem;
  }
}

/* تنسيقات إضافية للخيارات الجديدة */

.option-group {
  margin-bottom: 10px;
}

.option-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #555;
  text-align: right;
}

.option-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
}

.price-container {
  font-size: 18px;
  font-weight: bold;
  color: #d3a74e;
  margin: 10px 0;
}
.currency {
  font-style: italic; /* يخليها مايلة */
  font-weight: bold; /* يخليها سميكة شوية */
  margin-right: 4px; /* مسافة صغيرة بينها وبين السعر */
  font-family: "Cairo", sans-serif; /* خط عربي جميل */
}

/* منع تداخل الأحداث */
.product-swiper-container * {
  pointer-events: auto;
}

.category-swiper-button-next,
.category-swiper-button-prev {
  pointer-events: auto;
}

/* تنسيقات Swiper الرئيسي */
.category-swiper-container {
  position: relative;
}

.category-swiper-button-next::after,
.category-swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.category-swiper-button-prev {
  left: 0;
}

.category-swiper-button-next {
  right: 0;
}
