/*----------[General]----------*/
/* Left and right padding  */
@media (max-width: 767px) {
  .woocommerce-page .site-main,
  .woocommerce-page .wp-block-group {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Youtube player */

.modern-youtube-embed,
.wp-embed-responsive .wp-has-aspect-ratio{
  position: relative;
  height: 0;
  padding-bottom: 54.5%;
  overflow: hidden;
  border-radius: 20px;
  border: 6px solid #e84c4f; /* الأزرق بتاع الجمعية */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 20px 0;
}

.modern-youtube-embed iframe,
.wp-embed-responsive .wp-has-aspect-ratio iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  border: none;
}


/* Font */
body {
  font-family: 'Rubik', sans-serif !important;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif !important;
}



/*----------[Home]----------*/
/* Devices section style */
.home-page-devices-slider {
  max-width: 1000px;
  margin: 0 auto;
	padding: 20px;	
  border-radius: 20px;
  background-color: #e8e3df;
  display: block;
}
@media (min-width: 769px) {
  .home-page-devices-slider-images {
    max-width: 200px;
    margin: 0 auto;
    scale: 0.9;
  }
}
@media (max-width: 769px) {
  .home-page-devices-slider {
    max-width: 95%;
  }
}


		
/*----------[Collection]----------*/

/* Image radius */
.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
  border-radius: 20px;
}
		
/* Sorting box style */
.woocommerce-ordering select {
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  padding-right: 40px;
}

body.rtl .woocommerce-ordering select {
  background-position: left 12px center;
  padding-left: 20px;
	padding-right: 14px;
  text-align: right;
}

/* Progress bar */
.tkh-archive-progress{
  max-width: 100%;
	padding: 10px;
  border-radius: 10px;
  background-color: #e8e3df;
}




/*----------[Product]----------*/
/* Images radius */
.woocommerce div.product div.images img,
.woocommerce div.product .woocommerce-product-gallery__image img {
  border-radius: 16px;
}


/* Hide description tab title */
.woocommerce-tabs ul.tabs li.description_tab {
  display: none !important;
}

.tkh-progress-wrapper {
  max-width: 95%;
	padding: 20px;
  border-radius: 20px;
  background-color: #e8e3df;
}

/* Hide auto h2 in description */
.woocommerce-Tabs-panel--description > h2:first-child {
  display: none !important;
}

/* Hide short description */
.wp-block-post-excerpt {
  display: none !important;
}

/* Sticky donate now */
  .donation-sticky-bar input[type="number"] {
    font-size: 16px;
  }
  .donation-sticky-bar button {
    background-color: #114b81; /* الأزرق الغامق */
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
		font-family: 'Rubik', sans-serif;	
  }

  .donation-sticky-bar button:hover {
    background-color: #0d3b66;
  }
 .donation-sticky-bar input[type="number"] {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-width: 150px;
    text-align: center;
    font-family: 'Rubik', sans-serif;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  }
@media (max-width: 768px) {
  .donation-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    gap: 10px;
    border-top: 1px solid #ccc;
  }
}


/* Decrease image size on desktop */
@media (min-width: 769px) {
  .woocommerce .wp-block-woocommerce-product-image-gallery {
    max-width: 350px; /* أو أي حجم يناسبك */
    height: auto;
    margin: auto;
    display: block;
  }

  .woocommerce div.product div.images {
    text-align: center;
  	border-radius: 30px;			
  }
  .wp-block-column.is-layout-flow {
    padding: 0 !important;
    margin: 0 !important;
    max-width: fit-content;
			border-radius: 30px;	
  }

  .wp-block-column.is-layout-flow img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
}





/*----------[Cart]----------*/
/* Hide prices and discount */
.wc-block-components-product-price__regular,
.wc-block-components-product-badge,
.wc-block-cart-item__total-price-and-sale-badge-wrapper,
.wc-block-components-quantity-selector
{
  display: none !important;
}
.wc-block-components-product-price__value.is-discounted,
.wc-block-components-formatted-money-amount{
  font-weight: bold;
  font-size: 22px;
  color: #114b81;
}




/*----------[Donate now]----------*/
/* إخفاء صف "المجموع" */
/* === 1) ترتيب أزرار الاختيارات داخل .tkh-grid ====================== */
/* ستأخذ صفوفًا متساوية بعرض متجاوب، والفجوة موحّدة */
.tkh-donate{
  max-width: 800px;   /* غيِّر الرقم لما يناسب التصميم */
  margin: 0 auto;     /* auto ↔︎ يساوى الهوامش يمين/شمال ويُوسّط العنصر */
  padding: 0 20px;
}
/* داخل ملف tkh-donate.css أو Additional CSS */

/* ===== توسيط عناوين النموذج على الشاشات الصغيرة ===== */
@media (max-width: 600px){      /* عدّل الحدّ إذا أردت */
  .tkh-donate h4{
    text-align: center;         /* ↔︎ يُوسّط النص */
    margin-right: 0;            /* يلغى أى محاذاة RTL إضافية إن وُجدت */
    margin-left: 0;
  }
}

.tkh-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); /* ↔︎ */
  gap:20px;                         /* المسافة الأفقية + الرأسية */
  margin:24px 0;
  text-align:center;
}

/* نفس ستايل الزر لكن أضفنا width:100% ليملأ الخانة */
.tkh-grid button{
  width:100%;
  padding:16px 10px;
  border:1px solid #d6d6d6;
  border-radius:10px;
  background:#fff;
  font-weight:700;
  transition:.15s;
	font-family: 'Rubik', sans-serif;	
}
.tkh-grid button.active,
.tkh-grid button:hover{
  border-color:#29bfa1;
  background:#e1fff9;
}

/* === 2) محاذاة زرَّي الإجراءات ===================================== */
.tkh-actions{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;   /* وسط الصفحة */
  margin-top:40px;
}
.tkh-submit,
.tkh-alt-btn{
  flex:0 0 220px;           /* كلاهما نفس العرض الدنيا */
  padding:16px 0;
  font-size:20px;
  font-weight:400;
  text-align:center;
  border-radius:14px;
  transition:.2s;
	font-family: 'Rubik', sans-serif;
}
.tkh-submit{background:#114b8a;color:#fff;border:none}

.tkh-submit:hover,
.tkh-alt-btn:hover{transform:translateY(-3px)}

/* فى الشاشات الصغيرة ↓ اجعل كل زر يأخذ صفًّا كاملاً لتجنُّب التزاحم */
@media (max-width:480px){
  .tkh-actions{flex-direction:column}
  .tkh-submit, .tkh-alt-btn{flex:1 0 100%}
}

/* Other amount */
.tkh-donate input[name="other_amount"]{
  width:100%;                 /* يملأ خانته فى الـ grid */
  max-width:160px;            /* لا يزيد عن حجم زر ثابت */
  padding:16px 10px;
  border:2px solid #29bfa1;   /* نفس لون حدود الأزرار المفعَّلة */
  border-radius:10px;
  background:#fff;
  text-align:center;
  font-weight:700;
  font-size:16px;
  transition:.15s;
  box-sizing:border-box;
  margin-top:20px;
	font-family: 'Rubik', sans-serif;	
}

/* ظلّ خفيف عند التركيز */
.tkh-donate input[name="other_amount"]:focus{
  outline:none;
  box-shadow:0 0 0 3px #e1fff9;   /* لون مُوحَّد مع الـ brand */
}

/* ===== إذا أردته بالـ Grid نفسه (يظهر مكان زر «مبلغ آخر») ===== */
/* (اختيارى) اجعله يأخذ خانة فى الـ grid بدلاً من صف جديد */
.tkh-grid[data-group="amount"] + input[name="other_amount"]{
  grid-column: span 1;   /* خلية واحدة */
  margin-top:0;          /* لأنّه داخل الـ grid */
}





/*----------[Checkout]----------*/
/* إخفاء صف "المجموع" */
.woocommerce-checkout-review-order-table .cart-subtotal {
  display: none !important;
}

/* إخفاء صف "الإجمالي" */
.woocommerce-checkout-review-order-table .order-total {
  display: none !important;
}

.woocommerce-page form .form-row-first {
  width: 100%;


}

.woocommerce form .form-row .input-text
  {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}