/* حجم ثابت للصور */
.product-image {
  width: 280px !important;
  height: 280px !important;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* لو فيه قيود على figure (حامل الصورة) */
.product-media {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* لتنسيق الصور الصغيرة */
.product-nav-thumbs img {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;

}
  /* الصورة الرئيسية */
    /*.product-main-image img {*/
    /*width: 458px;*/
    /*  height: 539px;*/
    /*  object-fit: cover;*/
    /*}*/
  
    /* الصور الجانبية */
    /*.product-image-gallery {*/
    /*  display: flex;*/
    /*  flex-direction: column;*/
    /*  gap: 10px;*/
    /*  max-height: 539px;*/
    /*  overflow-y: auto;*/
    /*}*/
  
    /*.product-gallery-item img { */
    /*  width: 100px;*/
    /*  height: 127px;*/
    /*  object-fit: cover;*/
    /*  border: 1px solid transparent;*/
    /*  cursor: pointer;*/
    /*  transition: border 0.3s;*/
    /*}*/
  
    /*.product-gallery-item.active img,*/
    /*.product-gallery-item:hover img {*/
    /*  border-color: #3fb9fc;*/
    /*}*/


    /*.product-gallery-item.active {*/
    /*  width: 100px;*/
    /*  height: 131px;*/
    /*  object-fit: cover;*/
    /*  border: 2px solid transparent;*/
      /* خلي البوردر هنا مش على الأب */
    /*  border-radius: 4px;*/
    /*  display: block;*/
    /*}*/
  
    /*.product-shop-image {*/
    /*      width: 458px;*/
    /*      height: 458px;*/
    /*      object-fit: cover;*/
    /*}*/

    /*h3.product-shop-title {*/
    /*  display: inline-block;*/
    /*  padding: 5px 10px;*/
    /*  background-color: transparent;*/
    /*  color: #9c4cfb;*/
    /*  transition: all 0.3s ease;*/
    /*  text-decoration: none;*/
    /*}*/
    

/* فاااااصل  */


.cart-dropdown .dropdown-menu {
  width: 320px;
  padding: 15px;
  right: 0;
  left: auto;
  top: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.dropdown-cart-products {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.dropdown-cart-products .product {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.product-cart-details {
  flex: 1;
  padding-right: 10px;
}

.product-title {
  font-size: 14px;
  margin-bottom: 5px;
}

.cart-product-info {
  font-size: 13px;
  color: #666;
}

.product-image-container {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  }
  
  
.product-image img {
  width: 25%;
  height: auto;
  border-radius: 6px;
} 


.btn-remove {
  margin-left: 10px;
  color: #999;
  font-size: 14px;
}

.dropdown-cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

 .dropdown-cart-action .btn {
  width: 100%;
  margin-top: 5px;
}

.dropdown-cart-action .btn+.btn {
  margin-top: 10px;
} 
.category-tree {
  list-style: none;
  padding-left: 0;
}

.category-tree li {
  margin: 5px 0;
  padding-left: 15px;
  position: relative;
}

.category-tree li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 10px;
  height: 1px;
  background: #999;
}

.category-tree ul {
  list-style: none;
  padding-left: 15px;
  margin: 5px 0 0 0;
}

.category-tree a {
  text-decoration: none;
  color: #9c4cfb;
  display: inline-block;
}

.category-tree a:hover {
  color: #007bff;
}



.wd-sub-menu,
.sub-sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  position: relative;
}

.menu-item>a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #9c4cfb;
}

.menu-item-has-children>a:after {
  content: "▸";
  float: right;
}

.sub-sub-menu {
  display: none;
  padding-left: 15px;
}

.menu-item:hover>.sub-sub-menu {
  display: block;
}


.wd-sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wd-sub-menu li {
  position: relative;
}

.wd-sub-menu>li>a {
  display: block;
  padding: 8px 14px;
  color: #9c4cfb;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.wd-sub-menu>li>a:hover,
.wd-sub-menu>li.active>a {
  background: #f0f0f5;
  color: #3fb9fc;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

/* سهم أنعم */
.menu-item-has-children>a::after {
  content: '\f105';
  /* FontAwesome right chevron */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  float: right;
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: #888;
}

.menu-item-has-children:hover>a::after {
  transform: rotate(90deg);
  color: #3fb9fc;
}

/* submenu */
.sub-sub-menu {
  list-style: none;
  margin: 5px 0 5px 15px;
  padding-left: 10px;
  display: none;
  border-left: 1px dashed #ddd;
}

.menu-item-has-children:hover>.sub-sub-menu {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.category-tree {
  list-style: none;
  padding-left: 0;
}

.menu-item .category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.3s, box-shadow 0.3s;
}

.menu-item .category-item a {
  color: #9c4cfb;
  text-decoration: none;
  flex: 1;
}

.menu-item .toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: #555;
  transition: transform 0.3s;
}

.menu-item.open>.category-item {
  background: #f8f9fa;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
}

.menu-item.active-parent>.category-item {
  background: #e0f0ff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.2);
}

.sub-menu {
  list-style: none;
  margin: 5px 0 0 15px;
  padding-left: 10px;
  display: none;
  border-left: 1px dashed #ccc;
}

.menu-item.open>.sub-menu {
  display: block;
}

.toggle-btn i {
  transition: transform 0.3s;
}

.menu-item.open>.category-item>.toggle-btn i {
  transform: rotate(180deg);
}

.summary .checkout-discount {
  padding: 0.5rem;
  border-top: 1px solid #ddd;
  margin-top: 1rem;
}

.summary .checkout-discount {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  margin-top: 1rem;
}


.footer-copyright {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.footer-copyright .powered-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 13px;
  color: #888;
}

.footer-copyright .powered-by img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  vertical-align: middle;
}


/* الحاوية الأساسية للصور الجانبية */
/*.product-image-gallery {*/
/*  display: flex !important;*/
/*  flex-direction: column !important;*/
/*  overflow-y: auto !important;*/
/*  overflow-x: hidden !important;*/
/*  max-height: 540px !important;*/
  /* خليه مناسب لارتفاع الصورة الرئيسية */
/*  gap: 10px !important;*/
/*  padding-right: 4px !important;*/
/*  scrollbar-width: thin !important;*/
/*}*/

/* تنسيق الصور الجانبية نفسها */
/*.product-gallery-item {*/
/*  display: block !important;*/
/*  width: 100px !important;*/
/*  height: auto !important;*/
/*}*/

/* الصورة داخل العنصر */
/*.product-gallery-item img {*/
/*  width: 100px !important;*/
/*  height: 127px !important;*/
/*  object-fit: cover !important;*/
/*  border: 1px solid transparent !important;*/
/*  border-radius: 4px !important;*/
/*  cursor: pointer !important;*/
/*  transition: border 0.3s !important;*/
/*}*/

/* لما تكون الصورة مفعّلة أو Hover */
/*.product-gallery-item.active img,*/
/*.product-gallery-item:hover img {*/
/*  border-color: #3fb9fc !important;*/
/*}*/