:root {
  --main-color: #be8647;
  --secondary-color: #fcd2a3;
  --accent-color: #d9b083;
  --dark-color: #7a5230;
  --light-color: #fff8f0;
  --text-dark: #3a2c1c;
  --text-light: #ffffff;
  --btn-color: #c3282c;
}

.y-c-product-details {
  width: 100%;
  padding: 2rem;
  background-color: #fffaf4;
}

.product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.img-container {
  background-color: var(--btn-color);
  border-radius: 1.5rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.product-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.product-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.product-category {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-dark);
}

.product-category span {
  color: var(--main-color);
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Quantity and Add Button */
.quantity-add-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
}

.qty-btn {
  background-color: var(--btn-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.3rem;
  cursor: pointer;
}

.quantity-selector input {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 1.3rem;
}

.form-btn {
  background-color: var(--btn-color);
  color: white;
  border: none;
  border-radius: 1.5rem;
  padding: 0.5rem 2rem;
  font-size: 1.3rem;
  cursor: pointer;
}

.product-code {
  font-size: 1.2rem;
  color: #888;
}

.reviews-section {
  margin-top: 3rem;
}

.reviews-count {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.stars i {
  color: #ffc107;
  margin-right: 0.25rem;
}

.reviews-title {
  font-weight: 700;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.reviews-empty, .your-review {
  color: #888;
  margin: 2rem 0;
  font-size: 1.1rem;
}

.your-review textarea {
  width: 75%;
  padding: 1rem;
  border-radius: 1rem;
  border: 2px solid #333;
  resize: vertical;
  font-size: 1rem;
}

.your-review textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 10px rgba(190, 134, 71, 0.3);
}

.reviews-section button {
  background-color: var(--btn-color);
  color: white;
  border: none;
  border-radius: 1.5rem;
  padding: 0.5rem 2rem;
  font-size: 1.3rem;
  cursor: pointer;
}
.reviews-add-title , .rate p {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

@media (max-width: 820px) {
  .img-container {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .product-row {
    flex-direction: column;
  }
  .y-c-product-details .product-row > div:first-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .quantity-add-row {
    flex-wrap: nowrap !important;
  }
  .quantity-selector,
  .form-btn {
    flex: 0 0 auto;
  }
  .reviews-section h5 {
    font-size: 1.6rem; 
  }

  .reviews-section p,
  .reviews-section textarea {
    font-size: 1.2rem;
  }

  .reviews-section .stars i {
    font-size: 1.5rem; 
  }

  .reviews-section button {
    font-size: 1.4rem; 
    padding: 0.6rem 2.5rem; 
  }
}
/* زر إضافة للسلة في صفحة المنتج */
.single_add_to_cart_button,
.single_add_to_cart_button:hover {
  background-color: var(--btn-color) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 1.5rem !important;
  padding: 0.6rem 2rem !important;
  font-size: 1.3rem !important;
  cursor: pointer;
}

/* زر إرسال المراجعة */
#respond input#submit,
#respond input#submit:hover {
  background-color: var(--btn-color) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 1.5rem !important;
  padding: 0.6rem 2rem !important;
  font-size: 1.3rem !important;
  cursor: pointer;
}
.single_add_to_cart_button {
  margin-top: 10% !important;
}
.quantity .qty {
  margin-inline: 6px; /* مسافة يمين ويسار */
}
.quantity {
  border-radius: 8px;           /* انحناء من كل الأركان */
}