@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//asimat-elmajd.com/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=8.3.8") format("woff2");
}

@font-face {
	font-family: "star";
	font-weight: 400;
	font-style: normal;
	src: url("//asimat-elmajd.com/wp-content/plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("//asimat-elmajd.com/wp-content/plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("//asimat-elmajd.com/wp-content/plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("//asimat-elmajd.com/wp-content/plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
}

@font-face {
	font-family: "WooCommerce";
	font-weight: 400;
	font-style: normal;
	src: url("//asimat-elmajd.com/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.eot?#iefix") format("embedded-opentype"), url("//asimat-elmajd.com/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"), url("//asimat-elmajd.com/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf") format("truetype"), url("//asimat-elmajd.com/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.svg#WooCommerce") format("svg");
}

:root {
	--wd-text-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #767676;
	--wd-text-font-size: 14px;
	--wd-title-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 600;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Cairo", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 14px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(193,7,1);
	--wd-alternative-color: #fbbc34;
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: rgb(193,7,1);
	--btn-accented-bgcolor-hover: rgba(193,7,1,0.86);
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: rgb(246,245,244);
	background-image: none;
}
.page .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.single-product .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.product-labels .product-label.onsale {
	background-color: rgb(193,7,1);
	color: rgb(255,255,255);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 0px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 35px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 35px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--wd-brd-radius: 0px;
}

@media (min-width: 1222px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: rgb(193,7,1);
}

/* CTA داخل المدونة - Custom Red */

.cta-button{
  color: white !important;
  border-radius: 5px;
  padding: 10px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.4),
              7px 7px 20px 0px rgba(0,0,0,.15),
              4px 4px 5px 0px rgba(0,0,0,.15);
  outline: none;
  border: none;
}

/* الحالة العادية */
.cta-button{
  background: linear-gradient(
    360deg,
    #8f0500 0%,
    #c10701 100%
  );
}

/* Hover */
.cta-button:hover{
  background: linear-gradient(
    360deg,
    #c10701 0%,
    #e53935 100%
  );
}


:root {
    --primary-color: rgb(193,7,1); 
    --secondary-color: #fbbc34; 
}

/* إخفاء السعر الافتراضي لوودمارت */
.wd-product-wrapper .wrap-price, 
.wd-product-wrapper .price,
.product-grid-item .price { 
    display: none !important; 
}

/* ======================================================== */
/* الكارت (مضغوط لتقليل الارتفاع) */
/* ======================================================== */
.product-grid-item {
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.product-grid-item .product-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    flex-grow: 1 !important;
    border: 1px solid #eaeaea !important; 
    border-radius: 8px !important;
    padding: 10px !important; 
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.product-grid-item:hover .product-wrapper {
    border-color: var(--primary-color) !important; 
    box-shadow: 0 6px 20px rgba(193, 7, 1, 0.1) !important;
}

.product-grid-item .product-element-bottom {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100%;
}

.product-grid-item .wd-entities-title,
.product-grid-item .product-title {
    min-height: 38px !important; 
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important; 
    font-size: 13px !important; 
    color: #333 !important;
    line-height: 1.4 !important;
}

/* ======================================================== */
/* إرجاع وتنسيق دائرة الخصم على الصورة (مطابقة للمرجع) */
/* ======================================================== */
.product-grid-item .product-labels {
    display: flex !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 10 !important;
}

.product-grid-item .product-labels .onsale {
    background: (--secondary-color) !important; /* دائرة برتقالية مميزة */
    color: #fff !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    text-transform: uppercase;
    padding: 0 !important;
}

/* ======================================================== */
/* المنطقة السفلية (نظام الصناديق المتطابق مع الصورة) */
/* ======================================================== */
.v3-card-bottom {
    display: flex;
    flex-direction: column;
    margin-top: auto !important; 
    direction: rtl;
    text-align: right;
    gap: 6px; 
}

/* 1. صندوق السعر */
.v3-price-box {
    background: #f4f6f8 !important; 
    padding: 8px 10px !important;
    border-radius: 6px !important;
    display: flex;
    flex-direction: column;
}

.v3-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.v3-label {
    color: var(--primary-color) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.v3-discount-badge-small {
    background: var(--primary-color) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

.v3-main-row {
    display: flex;
    flex-wrap: wrap; /* يسمح بنزول الضريبة لسطر جديد لو الشاشة ضيقة جداً */
    justify-content: flex-end; 
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
}

.v3-current-price,
.v3-current-price * {
    color: var(--secondary-color) !important; 
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1;
}

.v3-current-price .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
    font-weight: 700 !important;
}

.v3-tax-note {
    color: #777 !important;
    font-size: 10px !important;
    white-space: nowrap !important; /* يمنع الجملة من التكسر بشكل قبيح */
}

.v3-old-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.v3-old-price,
.v3-old-price * {
    color: #999 !important;
    font-size: 12px !important;
    text-decoration: line-through;
    font-weight: 500;
}

/* توحيد لون وفر بالكامل للون الأساسي */
.v3-save-badge,
.v3-save-badge *,
.v3-save-badge span,
.v3-save-badge bdi,
.v3-save-badge .amount,
.v3-save-badge .woocommerce-Price-currencySymbol {
    color: var(--primary-color) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important; /* منع التكسر */
}

/* 2. صندوق التقسيط */
.v3-installments-box {
    background: #fafafa !important;
    border: 1px solid #eaeaea !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.v3-inst-text {
    font-size: 10px !important;
    color: #444 !important;
    font-weight: 600 !important;
    text-align: center;
}

.v3-inst-logos {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.v3-logo-item {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2px 4px;
    background: #fff;
    display: flex;
}

.v3-logo-item img {
    height: 12px !important;
    width: auto !important;
}

/* 3. صندوق المخزون */
.v3-stock-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: 1px solid transparent;
}

.v3-instock {
    background: #f0fdf4 !important; 
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.v3-outofstock {
    background: #fef2f2 !important; 
    border-color: #fecaca !important;
    color: #991b1b !important;
}

/* زر الإضافة للسلة */
.product-grid-item .wd-add-btn a.button {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    width: 100% !important;
    padding: 6px 0 !important; 
    font-size: 13px !important;
    margin-top: 2px !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.product-grid-item .wd-add-btn a.button:hover {
    background: var(--secondary-color) !important;
}

/* أيقونات القالب الجانبية (الأمنيات وغيرها) */
.product-grid-item .wd-buttons,
.product-grid-item .wd-buttons[class*="wd-pos-"] {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important; 
    right: auto !important;
    transform: none !important;
    padding: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}
.product-grid-item .wd-buttons .wd-action-btn > a {
    background: #ffffff !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border: none !important;
    color: #444 !important;
}
.product-grid-item .wd-buttons .wd-action-btn > a:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* ======================================================== */
/* تعديلات خاصة بشاشات الجوال لتقليص الارتفاع وحل التكسر */
/* ======================================================== */
@media (max-width: 768px) {
    /* تصغير بادنج الكارت الخارجي بالكامل */
    .product-grid-item .product-wrapper {
        padding: 6px !important; 
    }
    
    /* تصغير المسافة بين الصناديق */
    .v3-card-bottom {
        gap: 4px !important; 
    }
    
    /* تصغير بادنج الصناديق الداخلية */
    .v3-price-box {
        padding: 6px 8px !important;
    }
    .v3-installments-box {
        padding: 4px 6px !important;
    }
    .v3-stock-box {
        padding: 4px !important;
        font-size: 10px !important;
    }
    
    /* تصغير العنوان */
    .product-grid-item .wd-entities-title,
    .product-grid-item .product-title {
        min-height: 34px !important;
        margin-bottom: 6px !important;
        font-size: 11px !important;
    }
    
    /* تصغير الخطوط في الموبايل */
    .v3-current-price, .v3-current-price * {
        font-size: 16px !important;
    }
    .v3-tax-note {
        font-size: 9px !important;
    }
    .v3-old-price, .v3-old-price * {
        font-size: 10px !important;
    }
    .v3-save-badge, .v3-save-badge * {
        font-size: 10px !important;
    }
    .v3-label {
        font-size: 10px !important;
    }
    .v3-discount-badge-small {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    
    /* تصغير دائرة الخصم في الموبايل لتناسب الصورة */
    .product-grid-item .product-labels .onsale {
        width: 35px !important;
        height: 35px !important;
        min-height: 35px !important;
        font-size: 11px !important;
    }

    /* إصلاح أيقونات الجانب */
    .product-grid-item .wd-buttons,
    .product-grid-item .wd-buttons[class*="wd-pos-"] {
        transform: scale(0.85) !important;
        top: 5px !important;
        left: 5px !important;
    }
}

/* إظهار حاوية البادجات لوودمارت وتنسيق الدائرة */
.product-grid-item .product-labels {
    display: flex !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 10 !important;
    pointer-events: none;
    background: transparent !important;
    box-shadow: none !important;
}

.premium-green-circle {
    background: var(--primary-color) !important; /* اللون الأساسي */
    color: #fff !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important; /* شكل دائري 100% */
    display: flex !important;
    flex-direction: column !important; /* السعر فوق وكلمة خصم تحت */
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(193,7,1,0.3) !important; /* ظل خفيف */
    padding: 0 !important;
}

.premium-green-circle span:first-child {
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
    direction: ltr !important; /* لضبط شكل النسبة */
}

.premium-green-circle span:last-child {
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}


/* ======================================================== */
/* توحيد أطوال الكروت بالكامل لتبدو كالمسطرة (Desktop) */
/* ======================================================== */

.product-grid-item {
    height: 100% !important; 
}

.product-grid-item .product-wrapper {
    height: 100% !important; 
}

/* إجبار العنوان ليكون سطرين دائماً (حتى لو كان المنتج بكلمة واحدة) */
.product-grid-item .wd-entities-title,
.product-grid-item .product-title {
    height: 40px !important; 
    min-height: 40px !important; 
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.v3-card-bottom {
    flex-grow: 1 !important;
    justify-content: flex-end !important;
}

/* توحيد ارتفاع صندوق السعر ليكون ثابتاً سواء بخصم أو بدون */
.v3-price-box {
    min-height: 65px !important; 
    justify-content: center !important;
}

/* توحيد ارتفاع صندوق التقسيط سواء وجد أو لم يوجد (لحفظ التوازن) */
.v3-installments-box {
    min-height: 40px !important; 
    justify-content: center !important;
}
