/*Remove shipping estimate message*/

.cart-totals-inner .woocommerce-shipping-destination {
display: none; }

/* css home-page */
.wpb_single_image .vc_figure {
	width:100% !important;
}
.product-labels {
	gap:6px !important;
		height:100% !important;
}
/*handle css category */

/* new-label-to-new-products */
.product-labels .new {
    min-height: 19px !important;
    padding: 0px 11px !important;
    margin-left: -16px !important;
    border-radius: 0px !important;
		font-size: 14px !important;
}
.wd-rating-summary-cont {
	display:none !important ;
}
/* .wd-rating-summary-heading {
    text-align: right;
} */
 .wd-rating-summary {
    position: relative;
  min-height:100px;
}

.wd-rating-summary-heading {
    position: absolute;
    top: 30%;
/*     left:0; */
    right: 0;
/*     transform: translateY(-50%); */
    text-align: center;
}

.comment-form-comment textarea {
	    min-height: 65px; 
}
.amwal-promo[dir="rtl"] {
	max-width:100% !important;
}
.wd-single-add-cart.wd-design-justify .variations {
	    margin-top: 15px;
}
.wd-single-add-cart.wd-design-justify .variations  tr{
	    margin-bottom: 15px;
}

.wd-swatch {
    border-radius: 0 !important;
}
/* end new-label-to-new-products */

/* change-label-onsale-font-to-english */
.product-label.onsale {
	font-family: system-ui !important;
	font-size: 14px !important;
	min-height: 20px !important;
	padding: 2px 11px !important;
	margin-left: -12px !important;
	border-radius: 0px !important;
	direction: rtl !important;
}
/* end label-onsale-font-to-english */
.wd-quick-shop {
	direction:ltr !important;
}
@media only screen and (min-width: 1024px) {
    .wd-carousel-wrap .wd-carousel-item {
        max-height: 702px !important;
    }
}
/*start-attribute-about-online */
.label-attribute-pa_online {
margin-left: -7px !important;
    border-radius: 0px !important;
    background-color: #85963e !important;
	    order: -1;
    color: #ffffff !important;
    min-height: 16px !important;
    padding: 3px !important;
}
};
}
/*end-attribute-about-online */

@media (max-width: 768.98px){
.category-grid-item .wd-entities-title {
    font-size: 10px !important;
}
	.home-decore>.vc_column-inner {
	    padding-left: 14px !important;
    padding-right: 14px !important;
	}
.product-label.onsale {
		font-family: system-ui !important;
    font-size: 11px !important;
    min-height: 20px !important;
    padding: 2px 11px !important;
    margin-left: -15px !important;
    border-radius: 0px !important;
    direction: rtl !important;
	}

	.product-labels .new {
    min-height: 19px !important;
    padding: 0px 11px !important;
    margin-left: -15px !important;
    border-radius: 0px !important;
		order: 3 !important;

}
}
.product-label.onsale {
/*    background-color:#b32004 !important;  */
	background-color: #316634  !important;
}

@media only screen and (min-width: 1024px) {
    html[lang="en-US"] .single-product-page .vc_row {
        display:flex;
        flex-direction: row-reverse;
    }

	html[lang="en-us"] .wd-single-attrs
	{
		margin-left:0px !important;
	}
}
.product-type-woosb .onsale {    
	display: none !important;
}

.custom-delivery-text {
    font-size: 12px;
		text-align: center;
}

.woody-footer .vc_column-inner {
    padding-top: 0 !important;
}
/* title clamp - grid/carousel only */
.wd-product .wd-entities-title,
.wd-carousel-item .wd-entities-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.wd-product .wd-entities-title a,
.wd-carousel-item .wd-entities-title a {
    display: inline;
}

/* make sure single product page title is untouched */
.single-product .product_title.wd-entities-title,
.single-product h1.wd-entities-title {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}
/* =========================================================
  frequently bought together - design 
   ========================================================= */

.wd-fbt{
  --fbt-main:#2f5d34;     /* لون الزر والصح (أخضر وودي) */
  --fbt-red:#e10600;
  --fbt-card-w:230px;     /* عرض الكرت */
  --fbt-gap:14px;
}

/* ---- الحاوية: الكروت فوق والزر تحت، وعرضها على قد الكروت ---- */
.wd-fbt.wd-design-side{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:16px !important;
  width:100% !important;
  max-width:100% !important;
  background:none !important;
  border:none !important;
  padding:0 !important;
}
.wd-fbt.wd-design-side > .wd-carousel-container,
.wd-fbt.wd-design-side > .wd-fbt-form{
  width:auto !important;
  max-width:100% !important;
  flex:0 0 auto !important;
  margin:0 !important;
  padding:0 !important;
  background:none !important;
}

/* ---- الكروت في صف واحد مع سكرول أفقي ---- */
.wd-fbt .wd-carousel-container{ position:relative; }
.wd-fbt .wd-carousel{ overflow:visible !important; }
.wd-fbt .wd-carousel-inner{
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding:4px 2px 12px !important;   /* مساحة للظل وشريط السكرول */
  scrollbar-width:thin;
  scrollbar-color:#cfcfcf transparent;
}
.wd-fbt .wd-carousel-inner::-webkit-scrollbar{ height:6px; }
.wd-fbt .wd-carousel-inner::-webkit-scrollbar-thumb{ background:#cfcfcf; border-radius:6px; }
.wd-fbt .wd-carousel-inner::-webkit-scrollbar-track{ background:transparent; }
.wd-fbt .wd-carousel-wrap{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:var(--fbt-gap) !important;
  transform:none !important;
  width:max-content !important;
}
.wd-fbt .wd-carousel-item{ scroll-snap-align:start; }

/* أسهم التنقل */
.wd-fbt .fbt-arrow{
  position:absolute;
  top:calc(50% - 26px);
  z-index:10;
  width:38px;
  height:38px;
  min-height:0 !important;
  padding:0 !important;
  border-radius:50% !important;
  border:1px solid #e3e3e3 !important;
  background:#fff !important;
  color:#222 !important;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
  font-size:22px !important;
  line-height:1 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.wd-fbt .fbt-arrow[hidden]{ display:none !important; }
.wd-fbt .fbt-prev{ right:-14px; }
.wd-fbt .fbt-next{ left:-14px; }
.wd-fbt .wd-carousel-item{
  width:var(--fbt-card-w) !important;
  flex:0 0 var(--fbt-card-w) !important;
  margin:0 !important;
  height:auto !important;
}
.wd-fbt .wd-nav-arrows,
.wd-fbt .wd-nav-pagin-wrap{ display:none !important; }

/* ---- الكرت ---- */
.wd-fbt .products-bordered-grid .wd-carousel-item,
.wd-fbt .products-bordered-grid .wd-product{ border:none !important; }

.wd-fbt .wd-carousel-container .wd-product{
  height:100%;
  background:#fff;
  border:1px solid #e8e8e8 !important;
  border-radius:10px;
  box-shadow:0 1px 6px rgba(0,0,0,.08) !important;
  padding:0 0 12px !important;
  overflow:hidden;
  transition:opacity .2s;
}
/* مسافة للنص فقط (الصورة تملى الكرت) */
.wd-fbt .wd-carousel-container .wd-product-wrapper{ padding:0 !important; }
.wd-fbt .wd-carousel-container .wd-product-wrapper > :not(.wd-product-thumb){
  padding-left:12px !important;
  padding-right:12px !important;
}
.wd-fbt .wd-carousel-container .wd-product.fbt-off{ opacity:.55; }

/* الصورة */
.wd-fbt .wd-product-thumb{
  position:relative;
  margin:0 0 10px !important;
  padding:0 !important;
  border-radius:0;
  overflow:hidden;
}
.wd-fbt .wd-product-thumb .wd-product-img-link{ display:block; margin:0 !important; }
.wd-fbt .wd-product-img-hover{ display:none !important; }
.wd-fbt .wd-product-thumb img{
  display:block;
  width:100% !important;
  height:auto !important;
  aspect-ratio:1 / 1;
  object-fit:cover;
}
.wd-fbt .wd-carousel-container .wd-buttons,
.wd-fbt .wd-carousel-container .wd-add-btn{ display:none !important; }

/* الاسم: غامق وواضح، سطرين */
.wd-fbt .wd-carousel-container .wd-entities-title{
  font-size:13.5px !important;
  font-weight:700 !important;
  color:#222 !important;
  line-height:1.5 !important;
  text-align:right !important;
  white-space:normal !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:40px;
  margin:0 0 8px !important;
}
.wd-fbt .wd-carousel-container .wd-entities-title a{ color:inherit !important; }

/* السعر: الجديد أحمر والقديم مشطوب */
.wd-fbt .wd-carousel-container .price{
  display:flex !important;
  flex-direction:row-reverse;
  justify-content:flex-end !important;
  align-items:center;
  gap:8px;
  font-size:15px !important;
  font-weight:700 !important;
  margin:0 !important;
}
.wd-fbt .wd-carousel-container .price .amount,
.wd-fbt .wd-carousel-container .price ins .amount{ color:var(--fbt-red) !important; }
.wd-fbt .wd-carousel-container .price del{ text-decoration-color:var(--fbt-red); }
.wd-fbt .wd-carousel-container .price del .amount{
  color:#999 !important;
  font-size:12.5px !important;
  font-weight:400 !important;
}

/* إخفاء كل الملصقات (خصم، وصل حديثاً، ...) داخل القسم فقط */
.wd-fbt .product-labels,
.wd-fbt .product-label{ display:none !important; }

/* ---- مربع الصح فوق الصورة ---- */
.fbt-check{
  position:absolute;
  top:8px;
  left:8px;
  z-index:6;
  width:30px;
  height:30px;
  border-radius:6px;
  background:#fff;
  border:2px solid #d5d9e0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  pointer-events:auto !important;
}
.wd-fbt .wd-carousel-container .wd-product .wd-product-thumb{ pointer-events:auto !important; }
.fbt-check::after{
  content:"";
  width:7px;
  height:13px;
  border:solid #fff;
  border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg) translate(-1px,-1px);
  opacity:0;
}
.fbt-on .fbt-check{ background:var(--fbt-main); border-color:var(--fbt-main); }
.fbt-on .fbt-check::after{ opacity:1; }
/* المنتج الأساسي: محدد دائماً ورمادي فاتح */
.fbt-main .fbt-check{ background:#e4e7ec; border-color:#e4e7ec; cursor:default; }
.fbt-main .fbt-check::after{ opacity:1; }

/* ---- الفورم: إخفاء القائمة النصية والإجمالي المنفصل (صار داخل الزر) ---- */
.wd-fbt .wd-fbt-form .wd-fbt-products,
.wd-fbt .wd-fbt-purchase > .price,
.wd-fbt .wd-fbt-desc{ display:none !important; }
.wd-fbt .wd-fbt-form{ border:none !important; }
.wd-fbt .wd-fbt-purchase{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
	padding-top: 10px !important;
}

/* ---- الزر الكبير ---- */
.wd-fbt .wd-fbt-purchase-btn{
  display:flex !important;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  width:100% !important;
  max-width:420px;
  min-height:50px;
  margin:0 auto !important;  /* في النص تحت الكروت */
  border-radius:10px !important;
  background:var(--fbt-main) !important;
  color:#fff !important;
  font-size:16px !important;
  font-weight:700 !important;
  box-shadow:0 6px 16px rgba(0,0,0,.15);
  transition:transform .15s, box-shadow .15s;
}
.wd-fbt .wd-fbt-purchase-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(0,0,0,.2);
}
.wd-fbt .fbt-btn-price{ display:inline-flex; align-items:center; gap:6px; }
.wd-fbt .fbt-btn-price .amount,
.wd-fbt .fbt-btn-price ins .amount{ color:#fff !important; font-weight:800; }
.wd-fbt .fbt-btn-price del,
.wd-fbt .fbt-btn-price del .amount{
  color:rgba(255,255,255,.7) !important;
  font-size:13px;
  font-weight:400;
}
/* أيقونة الريال بيضاء داخل الزر */
.wd-fbt .fbt-btn-price img{ filter:brightness(0) invert(1); }

/* ---- عداد الكمية ---- */
.wd-fbt .fbt-qty{
  display:flex !important;
  width:fit-content !important;
  align-items:center;
  justify-content:center;
  margin:10px auto 0 !important;
  border:1px solid #dcdcdc;
  border-radius:8px;
  overflow:hidden;
  height:32px;
  pointer-events:auto !important;
  background:#fff;
}
.wd-fbt .fbt-qty button{
  width:32px;
  height:32px;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:#f5f5f5 !important;
  color:#222 !important;
  font-size:18px !important;
  line-height:1 !important;
  box-shadow:none !important;
  cursor:pointer;
  pointer-events:auto !important;
}
.wd-fbt .fbt-qty button:hover{ background:#e9e9e9 !important; }
.wd-fbt .fbt-qty button:disabled{ opacity:.35; cursor:default; }
.wd-fbt .fbt-qty-val{
  min-width:34px;
  text-align:center;
  font-weight:700;
  font-size:14px;
  color:#222;
}
.wd-fbt .fbt-off .fbt-qty{ opacity:.6; }

/* ---- الجوال: كرتين بالسطر ---- */
@media (max-width:767px){
  .wd-fbt.wd-design-side{ width:100% !important; }
  .wd-fbt{ --fbt-gap:10px; }
  .wd-fbt .wd-carousel-item{
    width:40vw !important;           /* كرتين وجزء من الثالث عشان يبان إن فيه سكرول */
    flex:0 0 40vw !important;
  }
  .wd-fbt .fbt-arrow{ display:none !important; }
  .wd-fbt .wd-fbt-purchase-btn{ font-size:15px !important; max-width:none; }
}