/* =================================================================================================
 
                                          === General Settings ===  

=================================================================================================== */
/* Base document setup */
html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* Media safety */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
}
/* =================================================================================================
 
                               === Site Content and Browser Compatibility === 

=================================================================================================== */

.site-content {
    margin-top: 0px; 
	display: flex;
    flex-direction: column; 
		}

/* =================================================================================================
 
                                === Large Header Container + Header Fixing === 

=================================================================================================== */

/* ======================================
   Astra Header – Complete CSS with Smooth Transition
   ====================================== */

/* Reset margin and fixed position */
.site-header {
    margin: 0px;
    position: fixed; /* ثابت أعلى الصفحة */
    top: 0;
    width: 100%;
    z-index: 9999;
    transition: background-color 0.3s ease-in-out, 
                box-shadow 0.3s ease-in-out, 
                padding 0.3s ease-in-out; /* أفضل سلاسة من all */
}

/* محتوى الموقع يبدأ بعد الهيدر */
.site-content {
    padding-top: 80px; /* عدّل حسب ارتفاع الهيدر */
}

/* On Scroll */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    padding: 5px 0; 
}

/* Hover effect (Desktop only) */
@media (hover: hover) {
  .site-header a,
  .site-header button {
    transition: transform 0.2s ease;
  }
  .site-header a:hover,
  .site-header button:hover {
    transform: translateY(-2px);
  }
}

/* Force header items to stack vertically */
.site-header .ast-builder-layout-element,
.site-header .ast-builder-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    justify-content: flex-start !important;
}

.site-header .ast-site-identity,
.site-header .ast-builder-layout-element.site-header-focus-item,
.site-header .ast-builder-menu {
    display: block !important;
}
/* =================================================================================================
 
                                 === Custom CSS for woocommerce === 

=================================================================================================== */
/* Replace the currency symbol with an icon */ 
.woocommerce-Price-currencySymbol {
    font-size: 0 !important;
}
.woocommerce-Price-currencySymbol::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    background-image: url('https://tana11.com/wp-content/uploads/2025/12/SER.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 3px;
    vertical-align: middle;
}
/* ------------------------------------------------------ */

/* Reduce Add to Cart button font size (shop & category pages) */
.woocommerce ul.products li.product .button {
  font-size: 12px;
}
/* For Mobile */
@media (max-width: 767px) {
  .woocommerce ul.products li.product .button {
    font-size: 12px;
  }
}
/* ------------------------------------------------------ */

        /* Hide Prev / Next buttons in single product page */
.woocommerce-product-gallery__trigger,
.woocommerce-product-gallery__image .flex-control-nav,
.woocommerce-product-gallery .flex-direction-nav {
    display: none !important;
}
/* تعطيل FlexSlider على الصور الصغيرة */
.woocommerce-product-gallery__wrapper .flex-control-thumbs {
    display: block !important; /* نستخدم block بدل flexslider */
    height: auto !important;
}

/* كل li */
.woocommerce-product-gallery__wrapper .flex-control-thumbs li {
    width: 200px !important;
    height: 300px !important;
    margin-bottom: 10px !important; /* المسافة بين الصور */
}

/* الصورة نفسها */
.woocommerce-product-gallery__wrapper .flex-control-thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
}

/* ------------------------------------------------------ */

       /* Hide product categories and tags, keep SKU only */
.product_meta .posted_in,
.product_meta .tagged_as {
    display: none !important;
}

       /* Change the word sku to the product code */
/* Hide original SKU label */
.product_meta .sku_wrapper .detail-label {
    display: none;
}
/* Add custom SKU label */
.product_meta .sku_wrapper::before {
    content: "رمز المنتج: ";
    font-size: 14px;
    color: #303030;
    margin-right: 4px;
}
/* Remove top border/divider from product meta */
.product_meta {
    border-top: none !important;
}

.product_meta::before,
.product_meta::after {
    display: none !important;
}
/* ------------------------------------------------------ */

     /* صندوق وصف المنتج */
.custom-product-desc-container {
	width: 95%;
    max-width: 800px; /* أقصى عرض */
    margin: 10px 0; /* لتوسيط الويدجت */
    text-align: right; /* لمحاذاة النصوص لليسار */
    font-family: ff-shamel-family-sans-one-book, 
}

.desc-title-row {
    display: flex;
    cursor: pointer; /* يوضح للمستخدم أن البار قابل للنقر */
    user-select: none; /* يمنع تحديد النص عند اللمس */
    justify-content: space-between; /* السهم على اليسار والعنوان على اليمين */
	border: 1px solid #101010;
	padding: 12px;
	margin: 10px 0;
}

.desc-title-row .desc-title {
    order: 1;
	color: #101010;
	font-size: 16px;
	font-weight: bold;
    text-align: left;
}

.desc-title-row .toggle-arrow {
    order: 2; /* يبقى على اليسار */
    cursor: pointer;
    font-size: 10px; /* حجم السهم */
    background-color: #101010; /* خلفية السهم */
    color: #eeeeee; /* لون الأيقونة */
    width: 20px; /* يمكن تعديل حسب الشكل */
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* يخليها دائرة */
    transition: transform 0.3s;
}
.toggle-arrow.active {
    transform: rotate(180deg);
}

.product-desc-toggle {
    max-height: 0;
	padding: 2px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.product-desc-toggle.active {
    max-height: 2000px; /* يجعل الوصف كامل عند الفتح */
}
/* ==================================================================================================
 
                                     === Custom CSS for Elementor === 

=================================================================================================== */
/* Royal Addons Woo Grid Slider - force product title */
.elementor-widget-wpr-woo-grid .wpr-woo-grid-item-title,
.elementor-widget-wpr-woo-grid .wpr-woo-grid-item-title a,
.elementor-widget-wpr-woo-grid h2,
.elementor-widget-wpr-woo-grid h3 {
    font-size: 10px !important;
    font-weight: 300 !important;
    line-height: 1.3 !important;
    text-align: right !important;
    direction: rtl !important;
    display: block !important;
}

 /* ==== CSS Block For The Store Categories ==>> .cat-container ==== */
.cat-container {
	display: flex; 
	flex-wrap: wrap; 
	justify-content: center; 
	align-items: flex-start; 
} 
/* All widgets are of the same class. */
.cat-item { 
	display: flex; 
	flex-direction: column; 
	align-items: center; 
/* A fixed width is set for each widget. */
    box-sizing: border-box; 
}
/* The image */ 
.cat-item .elementor-image-box-img { 
	display: flex; 
	justify-content: center; 
	width: 100%;
    overflow: hidden;
/* The image is prevented from extending outside the widget */ 
} 
.cat-item .elementor-image-box-img img { 
	display: block; 
	width: 60px; 
	height: 60px; 
	border-radius: 50%; 
	object-fit: cover; 
	max-width: 100%; 
	transition: all 0.3s ease; 
}
/* The Title */
.cat-item .elementor-image-box-content { 
	text-align: center; 
	width: 100%;
} 
.cat-item .elementor-image-box-title { 
	text-align: center; 
	margin-top: 10px; 
	font-size: 15px; 
	font-weight: 500; 
	transition: transform 0.3s ease, color 0.3s ease; 
	position: relative; 
	white-space: normal !important; 
	word-break: break-word !important; 
	overflow-wrap: break-word !important; 
}
/*  Hover For The Title  */
.cat-item:hover .elementor-image-box-title { 
	transform: translateY(-95px); 
	color: #be4a1d; 
}

/* =================================================================================================
 
                                    === GTranslate Language Switch Button === 

=================================================================================================== */
.gtranslate_wrapper .gt_switcher,
.gt_switcher_wrapper .gt_switcher {
    transform: scale(0.85);
    transform-origin: right top;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.widget .gtranslate_wrapper,
.widget .gt_switcher_wrapper,
#secondary .gtranslate_wrapper {
    transform: none !important;
    float: none !important;
    margin: 0 !important; 
    padding: 0 !important;
    line-height: inherit !important;
    height: auto !important;
}
.gtranslate_wrapper a[data-gt-lang="ar"]::before {
    content: "";
    display: inline-block;
    width: 27px;
    height: 21px;
    background-image: url("https://flagcdn.com/sa.svg"); 
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    vertical-align: middle; 
}
.gtranslate_wrapper a[data-gt-lang="ar"] img {
    display: none !important;
}
.gtranslate_wrapper a[data-gt-lang="ar"] {
    margin-left: 10px !important;
}

/* ==================================================================================================
                                === Change the header icons in the Astra theme ===
                                            
                                   === ## Switch to the child theme only ## ===
================================================================================================== */
/* === Account Icon === */
.ast-header-account-wrap .ast-header-account-inner,
.ast-header-account-wrap .ast-header-account-inner a,
.ast-header-account-wrap .ast-header-account-inner span {
    display: inline-block !important;
    width: 25px;
    height: 25px;
    background-image: url('https://tana11.com/wp-content/uploads/2025/12/icon-account.svg') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
}

/*  Hide any default SVG  */
.ast-header-account-inner svg {
    display: none !important;
}

/* === Search Icon ==== */
.ast-header-search .ast-header-search-inner,
.ast-header-search .ast-header-search-inner a,
.ast-header-search .ast-header-search-inner span {
    display: inline-block !important;
    width: 25px;
    height: 25px;
    background-image: url('https://tana11.com/wp-content/uploads/2025/12/search-icon.svg') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
}
.ast-header-search-inner svg {
    display: none !important;
}

/* === Cert Icon === */
.ast-header-cart .ast-header-cart-inner,
.ast-header-cart .ast-header-cart-inner a,
.ast-header-cart .ast-header-cart-inner span {
    display: inline-block !important;
    width: 25px;
    height: 25px;
    background-image: url('https://tana11.com/wp-content/uploads/2025/12/bag-icon.svg') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
}
.ast-header-cart-inner svg {
    display: none !important;
}

/* ===  Off Canves Icon / Mobile === */
.ast-mobile-menu-buttons .ast-mobile-menu-toggle {
    display: inline-block !important;
    width: 30px;
    height: 30px;
    background-image: url('https://tana11.com/wp-content/uploads/2025/12/menu-toggler.svg') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
}
.ast-mobile-menu-toggle svg {
    display: none !important;
}
/* =================================================================================================
 
                                             === Customer Reviewes Slider === 

================================================================================================== */
.reviews-slider-container {
    width: 97%;
    max-width: 100%;
    margin: 30px auto;
    padding: 8px;
    padding-top: 22px;
    padding-bottom: 8px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
} 

.reviews-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
    padding: 0;
}

/* كمبيوتر فقط */
@media screen and (min-width: 1200px) {
    .reviews-title {
        padding-left: 0 !important;  /* إزالة التوسيط اليدوي القديم */
        padding-right: 0 !important;
    }
}

.reviews-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 10px;
}

.review-slide {
    flex: 0 0 auto;
    width: 410px;                 
    min-height: 100px;            
    background: #f9f9f9;
    padding: 8px;
    margin: 4px;
    border-radius: 20px;
    border: 0.7px solid #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;       /* توسيط كل المحتوى */
    text-align: center;
    box-sizing: border-box;
}

.review-author {
    font-size: 14px;
    margin-bottom: 4px;
}

.review-text {
    color: #333;
    font-size: 13px;
    margin-bottom: 20px;
}

.review-product-img {
    display: flex;
    justify-content: center; /* توسيط الصورة أفقي */
    align-items: center;     /* توسيط الصورة عمودي */
    margin-bottom: 10px;
}

.review-product-img img {
    width: 60px;   
    height: auto;
    border-radius: 4px;
}

.review-product {
    font-size: 14px;
    font-weight: bold;
    margin-top: 0;  
}

.review-product a {
    text-decoration: none;
    color: #1e73be;
}
.review-product a:hover {
    text-decoration: underline;
}

/* تحسين للجوال */
@media screen and (max-width: 480px) {
    .review-slide {
        width: 90%;               
        min-height: 100px;        
        padding: 10px;
    }
    .review-product-img img {
        width: 50px;              
    }
    .review-product {
        font-size: 13px;
    }
}
/* === FIX Add to Cart position in Royal Addons Woo Slider === */

.elementor-widget-wpr-woo-grid .wpr-woo-grid-item {
    position: relative !important;
}

.elementor-widget-wpr-woo-grid .wpr-woo-grid-item .add_to_cart_button,
.elementor-widget-wpr-woo-grid .wpr-woo-grid-item .button {
    position: absolute !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 10;
}

/* =================================================================================================
 
                                             === Footer Fixing === 

================================================================================================== */
