/*
  ============================================================
  ترتيب 03-grid-3col
  شبكة ثلاثة أعمدة — كل الخيارات في صف واحد بنفس الحجم.
  ============================================================
*/

/* Add custom CSS styles below */

/* ===== بطاقة المنتج ===== */
.product-entry--vertical {
  border: 1px solid #ececec !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  overflow: hidden !important;
}
.product-entry--vertical:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px) !important;
}

/* ===== حد خفيف فاصل تحت الصورة ===== */
.product-entry__image-wrap {
  border-bottom: 1px solid #f0f0f0 !important;
  display: block !important;
}

/* ===== توسيط الاسم والسعر ===== */
.product-entry__title {
  text-align: center !important;
}
.product-entry__title a {
  display: inline-block !important;
}
.product-entry__content {
  text-align: center !important;
  align-items: center !important;
  padding: 14px 12px !important;
  gap: 10px !important;
}
.price-wrapper {
  justify-content: center !important;
}

/* ===== مسافة قبل زر الإضافة للسلة ===== */
.add-to-cart-conatiner {
  margin-top: 6px !important;
}

/* ===== إخفاء نسبة الخصم ===== */
.discount-amount {
  display: none !important;
}

/* === اسم القسم وزر عرض الكل === */
.s-block__title .right-side h2 {
  border-right: 4px solid #a1b39b;
  padding-right: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.s-block__display-all {
  border: 1px solid #cddfc7;
  color: #5d7158;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .3s ease;
}
.s-block__display-all:hover {
  background: #a1b39b;
  color: #fff;
  border-color: #a1b39b;
}

/* === تصميم بطاقة الإهداء بنمط الخطوط === */
.s-product-options-textarea .mt-1 > input.s-form-control,
.s-product-options-textarea .mt-1 > textarea.s-form-control {
  border: 0 !important;
  border-bottom: 2px solid #f0f0f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 4px !important;
  margin: 0 0 6px 0 !important;
  outline: none !important;
  font-size: 0.95rem !important;
  width: 100% !important;
}
.s-product-options-textarea .mt-1 > input.s-form-control:focus,
.s-product-options-textarea .mt-1 > textarea.s-form-control:focus {
  border-bottom-color: #a1b39b !important;
  box-shadow: none !important;
  outline: none !important;
}
.s-product-options-textarea .mt-1 > textarea.s-form-control {
  resize: none !important;
  min-height: 48px !important;
  line-height: 1.6 !important;
}

/* === تصفح حسب القسم: سطر واحد بالكمبيوتر، 3 بالجوال === */
.s-block--categories .anime-grid-container .grid {
  grid-template-columns: repeat(6, 1fr) !important;
}
@media (max-width: 640px) {
  .s-block--categories .anime-grid-container .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
}

/* رفع قسم المميزات للأعلى بإزالة الهوامش الزائدة من العناصر الفارغة قبله */
.product-details-wrapper .s-blocks-wrapper.s-before-reviews,
.product-details-wrapper .container--product-reviews,
.product-details-wrapper .s-blocks-wrapper.s-before-related {
    margin-top: 0 !important;
}
#product-tabs { display: none !important; }