/* الكود الأصلي لم يتم التعديل عليه، فقط تم إضافة تعديل خاص بشكل أيقونة بطاقة المنتج */

/* زر الرجوع للرئيسية داخل صفحة المنتج */
body.product-show .container:before {
  content: "← الرجوع للرئيسية";
  display: inline-block;
  background-color: #1e3258;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  position: relative;
  top: 10px;
  left: 10px;
  z-index: 10;
}

body.product-show .container:before:hover {
  background-color: #16304f;
}

body.product-show .container:before {
  position: absolute;
  top: 80px;
  right: 15px;
  z-index: 9999;
}

body.product-show .container:before {
  content: "";
}

body.product-show::after {
  content: "🏠 الرجوع للرئيسية";
  display: inline-block;
  background-color: #d4af37;
  color: #1e3258;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  position: fixed;
  top: 100px;
  right: 25px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

body.product-show::after:hover {
  background-color: #cba935;
  transform: translateY(-2px);
}

body.product-show .container::before:hover {
  background-color: #cba935;
  transform: translateY(-2px);
}

body.product-show .container::before {
  content: "🏠 الرجوع للرئيسية";
  display: inline-block;
  background-color: #1e3258;
  color: #fff;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1000;
}

body.product-show .container::before:hover {
  background-color: #143052;
}

/* تعديل شكل بطاقة المنتج لتكون بإطار ذهبي فقط */
.products-grid.eq-height .product {
  position: relative;
  border: 3px solid #d4af37;
  border-radius: 20px;
  padding: 15px;
  text-align: center;
  background: #fff;
  overflow: hidden;
  font-family: 'Tajawal', sans-serif;
}

/* أيقونة القلب (المفضلة) */
.products-grid.eq-height .product .product-actions .add-to-wishlist {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 20px;
  color: #ccc;
  z-index: 2;
}

/* العنوان والفرعي والسعر تنسيق مبسط */
.products-grid.eq-height .product .product-title {
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  color: #222;
}

.products-grid.eq-height .product .product-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.products-grid.eq-height .product .product-price {
  font-size: 18px;
  font-weight: bold;
  color: #a00;
  margin-bottom: 10px;
  direction: ltr;
  text-align: center;
}

.products-grid.eq-height .product .product-price del {
  color: #999;
  margin-left: 8px;
  font-weight: normal;
  direction: ltr;
}

/* زر السلة */
a.product-add.add_to_cart_btn {
  background-color: #1e3258 !important;
  color: #d4af37 !important;
  font-weight: bold;
  border-radius: 50% !important;
  font-size: 15px;
  width: 45px;
  height: 45px;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  border: 2px solid #d4af37 !important;
  line-height: 1.2;
  margin: 20px auto 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;
}

a.product-add.add_to_cart_btn:hover {
  background-color: #2a3b5f !important;
  transform: translateY(-2px);
}

a.product-add.add_to_cart_btn > * {
  display: none !important;
}

a.product-add.add_to_cart_btn:after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('https://cdn-icons-png.flaticon.com/512/1170/1170678.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(83%) sepia(28%) saturate(527%) hue-rotate(358deg) brightness(91%) contrast(90%);
}

.section-header .section--title {
  text-align: center;
  border: 3px solid #d4af37;
  border-radius: 50px;
  padding: 10px 30px;
  display: inline-block;
  margin: 0 auto 20px;
  color: #1e3258;
  font-weight: bold;
  background-color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d4af37;
}

.footer-main {
  background-color: #1e3258;
  color: #ffffff;
  border-top: 1px solid #d4af37;
  padding-top: 20px;
}

.footer-main a {
  color: #ffffff;
}

.footer-main a:hover {
  color: #f3c55b;
}

.footer-main .social__item a {
  border: 1.5px solid #d4af37;
  background-color: transparent;
  color: #d4af37;
}

.footer-main .social__item a:hover {
  background-color: #d4af37;
  color: #1e3258 !important;
}

body.product-show::after {
  content: "🏠 الرجوع للرئيسية";
  display: inline-block;
  background-color: #d4af37;
  color: #1e3258;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  position: fixed;
  top: 100px;
  right: 25px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease-in-out;
}

body.product-show::after:hover {
  background-color: #cba935;
  transform: translateY(-2px);
}