@font-face {
    font-family: 'alnaseem';
    src: url('fonts/alnaseem.woff') format('truetype');
    font-weight: normal;
    font-style: normal;
}






@font-face{
  font-family:'naseem';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('fonts/naseem.woff2') format('woff2');
}
body {
  font-family: 'naseem';
  width: 100%;
  height: 100%;
}
h1, h2, h3, h4, h5, h6 {
  color: #444;
}
legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
label {
      line-height: 1.2;
    font-size: 14px;
  font-weight: normal;
  font-family: 'naseem';
}
/* Chrome border line */
button:focus {
  outline: none !important;
}
/* container */
#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
}
/* content */
#content, #column-left, #column-right {
  padding-bottom: 730px;
}
@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 400px;
  }
}
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
}
@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
#alert .alert {
  margin-bottom: 15px;
}
#alert .alert-primary {
  box-shadow: 0 0 0 5px rgb(var(--bs-primary-rgb), 0.1);
}
#alert .alert-secondary {
  box-shadow: 0 0 0 5px rgb(var(--bs-secondary-rgb), 0.1);
}
#alert .alert-success {
  box-shadow: 0 0 0 5px rgb(var(--bs-success-rgb), 0.1);
}
#alert .alert-warning {
  box-shadow: 0 0 0 5px rgb(var(--bs-warning-rgb), 0.1);
}
#alert .alert-danger {
  box-shadow: 0 0 0 5px rgb(var(--bs-danger-rgb), 0.1);
}
#alert .alert-info {
  box-shadow: 0 0 0 5px rgb(var(--bs-info-rgb), 0.1);
}
#alert .alert-light {
  box-shadow: 0 0 0 5px rgb(var(--bs-light-rgb), 0.1);
}
#alert .alert-dark {
  box-shadow: 0 0 0 5px rgb(var(--bs-dark-rgb), 0.1);
}
/* top */
#top {
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}
#top ul.list-inline {
  margin-bottom: 0;
}
#top .list-inline-item > a, #top .list-inline-item .dropdown > a {
  font-size: 1.1em;
  color: var(--bs-gray-600);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
}
/* logo */
#logo {
  text-align: center;
  margin: 7px 0 7px 0;
}
#logo img {
  max-width: 200px;
}
@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}
/* search */
#search {
  margin-bottom: 10px;
}
#search .form-control-lg {
  height: 40px;
  font-size: 12px;
  line-height: 20px;
  padding: 0 10px;
}
#search .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 0.57rem 35px;
  text-shadow: 0 1px 0 #FFF;
}
/* cart */
#cart {
  margin-bottom: 10px;
}
#cart .img-thumbnail {
  min-width: 100px;
}
#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 14px 35px;
}
#cart .dropdown-menu {
  background: #eee;
}
#cart .dropdown-menu li {
  min-width: 300px;
}
@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}
/* menu */
#menu {
     background-color: #5f00ff;
    background-image: linear-gradient(to bottom, #5608cd, #823af9);
    background-repeat: repeat-x;
    border: 1px solid #6a0aff;
    border-color: #6b0cff #871afd #5600fd;
    min-height: 40px;
    border-radius: 4px;
    padding: 0 1rem;
    margin-bottom: 20px;

}
#menu .navbar-nav > li > a {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 10px 15px 10px 15px;
  background-color: transparent;
}
#menu .navbar-nav > li > a:hover {
  background-color: rgba(195, 42, 255, 0.623);
}
#menu .dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}
#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}
@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
  #menu .dropdown-inner {
    flex-direction: row;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -600px;
  }
}
#category {
  float: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
#menu .navbar-toggler i {
  color: #fff;
  border-color: #fff;
  font-size: 0.9em;
}
/* default boostrap changes */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #F00;
  font-weight: bold;
}
.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}
.nav-tabs {
  margin-bottom: 15px;
}
.form-check .form-check-input {
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
  }
}
/* footer */
footer {
  border: 1px solid #000000;
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 30px;
  background-color: #303030;
  border-top: 1px solid #ddd;
  color: #e2e2e2;
}
footer hr {
  border-top: none;
  border-bottom: 1px solid #666;
}
footer a {
  color: #ccc;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}
footer h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
  
}
/* breadcrumb */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 8px 0;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-tertiary-bg);
}
.breadcrumb i {
  font-size: 15px;
}
.breadcrumb > li.breadcrumb-item {
  text-shadow: 0 1px 0 #FFF;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
}
.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
}
.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  transform: rotate(-45deg);
}
.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}
.product-thumb {
  border: 1px solid #ddd;
  position: relative;
  height: 100%;
}
.product-thumb .image {
  text-align: center;
}
.product-thumb .image a:hover {
  opacity: 0.8;
}
.product-thumb .description {
    white-space: normal;
    overflow-wrap: break-word;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
    padding: 15px;
    margin-bottom: 45px;
}
.product-thumb .description h4 {
  font-weight: bold;
}
.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
}
.product-thumb .button button {
  width: 33.33%;
  border: none;
  border-top: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-gray-600);
  line-height: 38px;
  text-align: center;
}
.product-thumb .button button:hover {
  color: var(--bs-gray-600);
  background-color: #ddd;
  text-decoration: none;
  cursor: pointer;
}
.product-thumb .button button + button {
  border-left: 1px solid var(--bs-border-color);
}
@media (min-width: 960px) {
  .product-list .product-thumb {
    display: flex;
  }
  .product-list .product-thumb .image {
    flex-direction: column;
    margin-bottom: 0px;
  }
  .product-list .product-thumb .content {
    flex-direction: column;
    flex: 75%;
    position: relative;
  }
  .product-list .product-thumb .button {
    border-left: 1px solid #ddd;
    width: calc(100% -  15px);
    margin-left: 15px;
  }
}
.rating .fa-stack {
  width: 20px;
}
.rating .fa-star {
  color: #999;
  font-size: 15px;
}
.rating .fa-star {
  color: #FC0;
  font-size: 15px;
}
.rating .fa-star + .fa-star {
  color: #E69500;
}
/* product list */
.price {
  color: #444;
}
.price-new {
  font-weight: 600;
}
.price-old {
  color: #dc512c;
  text-decoration: line-through;
}
.price-tax {
  color: #999;
  font-size: 12px;
  display: block;
}
/* blog */
.blog-thumb {
  border: 1px solid #ddd;
  margin-bottom: 15px;
}
.blog-thumb h4 {
  font-weight: bold;
}
.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
}
.blog-thumb .image a:hover {
  opacity: 0.8;
}
.blog-thumb .description {
  padding: 15px;
}
/* Theme Custom CSS */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}
#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}








/*  عداد  العروض*/
#discount-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* يسمح بالنزول في الأسطر عند ضيق الشاشة */
  gap: 3px; /* تباعد بسيط بين الصناديق */
  padding: 5px;
  font-family: naseem, Arial, sans-serif;
  margin-top: -10px;
}

/* 🔹 الصناديق */
#discount-countdown .countdown-box {
  background-color: #c8e7d5; /* أخضر فاتح للخلفية */
  border-radius: 6px;
  padding: 3px 5px;
  text-align: center;
  min-width: 35px;
  color: #000000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: clamp(10px, 2vw, 13px); /* حجم متجاوب حسب الشاشة */
  line-height: 1.5;
  margin-left: 3px; /* تقريب الصناديق قليلاً */
}

/* 🔹 صندوق الثواني */
#discount-countdown .seconds-box {
  background-color: #efceca;
  color: #000;
}

/* 🔹 الرقم داخل الصندوق */
#discount-countdown .countdown-box span {
  display: block;
  font-size: clamp(18px, 2.5vw, 16px); /* حجم رقم متجاوب */
  font-weight: bold;
   font-family: 'Digital-7', monospace;
}

/* 📱 للشاشات الصغيرة جداً (مثل الموبايل أقل من 400px) */
@media (max-width: 400px) {
  #discount-countdown {
    gap: 2px;
  }

  #discount-countdown .countdown-box {
    min-width: 28px;
    padding: 2px 4px;
    font-size: 12px;
  }

  #discount-countdown .countdown-box span {
    font-size: 13px;
  }
}


.ka{
  
font-family: naseem;
    color: #239e57;
    font-size: 14px;

}









/* رسائل التحذير عندما لم تقم بتحديد  خيار*/
.option-error {
    background-color: #c0392b; /* خلفية حمراء فاتحة */
    border: 1px solid #f5c2c7;
    color: #ffffff;
    font-size: 15px;
    font-family: naseem;
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 5px;
    overflow: hidden;
    transform: translateY(-8px);
    transition: all 0.35s ease;
    opacity: 0;
    height: 0;
}

/* عند الظهور */
.option-error.show {
    transform: translateY(0);
    opacity: 1;
    height: auto;
}

/* عند الإخفاء */
.option-error.hide {
    transform: translateY(-10px);
    opacity: 0;
    height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* 💥 تأثير الوميض بالاختفاء والظهور */
@keyframes flashDisappear {
    0%, 100% { opacity: 1; }     /* ظاهرة */
    25%, 75% { opacity: 0; }     /* تختفي */
    50% { opacity: 1; }          /* تظهر */
}

.option-error.flash {
    animation: flashDisappear 0.6s ease-in-out 3; /* تومض 3 مرات */
}







/* زر اضافه للسله والكميه*/

.quantity-box {
  border:1px solid #a8d0ff;
  border-radius:8px;
  padding:4px 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:150px;
}

.qty-input {
  width:64px;
  height:40px;
  text-align:center;
  border:0;
  font-size:16px;
  background:transparent;
  outline:none;
}

.qty-btn {
  width:40px;
  height:40px;
  border:1px solid #cce0ff;
  border-radius:6px;
  background-color:#eaf4ff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.qty-btn:hover { background-color:#dceeff; }
.qty-btn:active { transform:translateY(1px); }

@media (max-width:480px) {
  .qty-input { width:52px; height:38px; font-size:15px; }
  .qty-btn { width:36px; height:36px; }
  #button-cart { width:100%; }
}

/*  نهاية زر اضافه للسله والكميه*/


span{
    display: block;
    padding: 5px;
    margin-bottom: -7px;
    margin-top: -5px;
    border-radius: 6px;
}





.to{
  border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;  
}




/*   السهم بجانب الاقسام*/

.nav-item.dropdown .arrow {
  font-size: 12px;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* عند تمرير الماوس */
.nav-item.dropdown:hover > .nav-link .arrow {
  transform: rotate(90deg);
}

/* عند وجود القائمة مفتوحة */
.nav-item.dropdown.show > .nav-link .arrow {
  transform: rotate(90deg);
}






/* اظهار الاقسام  بالرئيسية */

.category-container {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4c238b;
    color: #fff;
    padding: 10px 15px;
    border: solid 1px #aa77f7;
}

.category-name { font-size: 20px; font-weight: bold; }
.total-products {
      font-size: 14px;
    color: #ffffff;
    background-color: #ff0303;
    padding: 5px 10px;
    border-radius: 5px;
    border: solid 1px #ffffff;
}

.category-image {
    width: 100%; max-height: 200px; object-fit: cover; margin-bottom: 15px;
}

.subcats-wrapper { 
    position: relative; 
    margin-bottom: 15px; 
    border: 1px solid #ddd; 
    padding: 10px; 
    border-radius: 6px; 
    overflow: hidden;
    margin-top: 5px;
    margin-left: 5px;
    margin-right: 5px;
}

/* ======== تعديل للأقسام الفرعية فقط ======== */
/* الأقسام الفرعية دائمًا في صف واحد */
.subcats-container {
    display: flex;
    flex-wrap: nowrap;           /* صف واحد دائمًا */
    overflow-x: auto;            /* تفعيل التمرير الأفقي إذا تجاوزت الحاوية */
    gap: 10px;                   /* مسافة بين العناصر */
    justify-content: flex-start; /* محاذاة العناصر لليمين أو اليسار حسب الحاجة */
    -webkit-overflow-scrolling: touch; /* smooth scroll على الهواتف */
}



/* إذا عدد الأقسام أكبر من 8 أو الشاشة صغيرة */
.subcats-container.subcats-scroll {
    flex-wrap: nowrap;        /* صف واحد */
    overflow-x: auto;         /* تفعيل التمرير الأفقي */
    -webkit-overflow-scrolling: touch;
}
.subcat-item {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 12px;
    min-width: 120px;
    flex: 0 0 auto;
    box-sizing: border-box;
    overflow: visible; /* السماح بعرض النص الكامل */
    margin: 3px;
    white-space: initial;
}


.subcat-item img {
    width: 120px;          /* العرض ثابت */
    height: 100px;         /* الارتفاع ثابت */
    object-fit: contain;   /* عرض كامل بدون قص */
    display: block;
    margin: 0 auto 5px;
    background-color: #fff; /* خلفية بيضاء إذا كانت الصورة أصغر */
}


.subcat-name, .subcat-total { 
    margin: 0;
    font-family: 'naseem', sans-serif; /* الخط الجديد */
    font-size: 14px;                   /* الحجم حسب رغبتك */
    font-weight: 700; 
    word-wrap: break-word;   /* السماح لكسر الكلمات الطويلة */
    white-space: initial;     /* السماح بالانتقال إلى سطر جديد */
    display: block;          /* تأكيد أن الاسم يظهر ككتلة منفصلة */
}

.subcat-scroll-left, .subcat-scroll-right {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 35px; height: 35px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; cursor: pointer;
    z-index: 10; font-size: 18px; user-select: none;
}
.subcat-scroll-left { left: -15px; }
.subcat-scroll-right { right: -15px; }
@media (max-width: 992px) { .subcat-scroll-left, .subcat-scroll-right { display: none; } }

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
}

.product-card {
    width: calc(20% - 12px);
    border: 1px solid #eee;
    padding: 2px;
    border-radius: 5px;
    text-align: center;
}




.product-name {
    background-color: #7830ef; /* أحمر غامق */
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    margin: 0; /* إلغاء المسافات الخارجية */
    padding: 8px;
    width: 100%; /* تمتد على عرض البطاقة بالكامل */
    box-sizing: border-box;
    display: block;
    border-radius: 5px;
}


.product-card img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 8px;
}

.show-all-wrapper {
    text-align: center;
    margin: 10px 0;
}

.show-all-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
.show-all-btn:hover { background: #0056b3; }
@media (max-width: 992px) { 
    .product-card { 
        width: calc(33.333% - 10px); 
    } 
}

@media (max-width: 576px) { 
    .product-card { 
        width: calc(50% - 10px); 
    } 
}

/* متجاوب: على الشاشات الصغيرة دائمًا تمرير الأقسام الفرعية */
@media (max-width: 1100px) {
    .subcats-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* smooth scroll على الهواتف */
    }
}



.product-description {
    white-space: normal;          /* السماح بالنزول لسطر جديد */
    word-wrap: break-word;        /* كسر الكلمات الطويلة إذا تجاوزت */
    overflow-wrap: break-word;    /* دعم أوسع لكسر الكلمات الطويلة */
    max-height: 100px;            /* الحد الأقصى للارتفاع (اختياري) */
    overflow: hidden;             /* إخفاء النص إذا تجاوز الحد الأعلى */
    padding: 5px;                 /* مسافة داخلية مناسبة */
    box-sizing: border-box;       /* التأكد أن padding لا يكسر الحاوية */
}

/*نهاية  اظهار الاقسام  بالرئيسية */





/* بطاقات الأقسام */
.category-card {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #007bff;
}

/* حاوية الصورة */
.category-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 75%; /* نسبة ارتفاع افتراضية 4/3 */
  position: relative;
}

.category-img-wrap img.category-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* يظهر الصورة كاملة بدون قص */
  object-position: center;
  display: block;
}

/* نص البطاقة */
.category-body { 
  text-align: center;
  margin-top: 0.5rem;
}

/* تجاوب */
@media (max-width: 1200px) { .category-img-wrap { padding-top: 75%; } }
@media (max-width: 768px)  { .category-img-wrap { padding-top: 70%; } }
@media (max-width: 576px)  { 
  .category-img-wrap { padding-top: 100%; }
  .category-card { padding: 0.5rem; }
  .category-body h6 { font-size: 0.9rem; }
  .category-body p { font-size: 0.75rem; }
}




/* على الشاشات الكبيرة: يبقى 6 منتجات بالصف كما هو */
#product-list {
  display: flex;
  flex-wrap: wrap;
  margin: -0.25rem; /* لموازنة الهوامش */
}

#product-list .product-col {
  padding: 0.25rem; /* لموازنة الهوامش */
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 0.25rem;
  overflow: hidden;
}

/* الصور داخل المنتج */
#product-list .product-col img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* الكمبيوتر الكبير: 4 منتجات في الصف */
@media (min-width: 1200px) {
  #product-list .product-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* الشاشات المتوسطة: 4 منتجات في الصف */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #product-list .product-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* الشاشات الصغيرة والجوال: صف واحد من عمودين */
@media (max-width: 991.98px) {
  #product-list .product-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}