@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    flex-direction: column;
    letter-spacing: 2px;
    transition: all 0.3s ease;


    background-color: black;
        overflow-y: scroll;

}

@media (max-width:768px){
            overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style:none;
}
header {
    background-color: black;
    top: 0;
    width: 100%;
    height: 51px;
    color: white;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
   
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 999999999999;
    overflow: visible;
    border-bottom: 3px solid #87cefa;
    box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */
}

.whatsapp-icon {
    border-radius: 50%;
    font-size: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.7); /* ظل أخضر ناعم */
    z-index: 999999999;
    background-color: #25d366;
    padding: 0;
    width: 51px;
    height: 51px;
    line-height: 1;
}

.search-wrapper {
    position: absolute;
    top: 12px;
    right: 43px;
    z-index: 999;
    transform: translateY(-50%);
}
.hidden-h1{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.header-right {
    position: relative;
    left: 160px;
    display: flex;
    gap: 19px;
    font-size: 17px;
    background-color: rgb(0, 0, 0);
}

.search-input {
    background-color: #ffffff;
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
    position: absolute;
    top: 14px;
    right: 30px;
    transform: translateY(-50%) translateX(0);
    width: 100%;
    opacity: 0;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* ظل خفيف للنص */
    z-index: 999;
}

.search-wrapper.active .search-input {
    width: 287px;
    opacity: 1;
}

.search-results {
    position: absolute;
    top: 35px;
    right: 28px;
    width: 287px;
    background: white;
    color: black;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    z-index: 999;
    opacity: 0;
    border-radius: 10px;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* ظل عميق لكن شفاف */
    transition: max-height 0.5s ease, opacity 0.4s ease-in-out;
    z-index: 99999999;
}

.search-results.show {
    max-height: 300px;
    opacity: 1;

    pointer-events: auto;
}

.search-result-item {
    padding: 8px 10px;
    cursor: pointer;
    box-sizing: border-box;
}

.search-result-item:hover {
    background-color: #f0f0f0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05); /* ظل داخلي خفيف عند التمرير */
}
.cart-panel {
    position: fixed;
    top: 50%;
    right: 0;

    width: 60%;
    max-width: 400px;
    height: 400px;
    background-color: #111;
    color: white;
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.7); /* ظل قوي جانبي */
    padding: 20px;
      transform: translateX(100%) translateY(-50%);
    transition: transform 0.6s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0;
    overflow: auto;
    overflow-x: hidden;
    z-index: 999999999;
   
}

.cart-panel.active {
    transform: translateX(0) translateY(-50%);
    opacity: 1;
    z-index: 9999999;
}

.cart-panel h2 {
    text-align: center;
    margin: 0;
    font-size: 20px;
  border-bottom: 1px solid #87cefa; 
  padding-bottom: 10px;
  margin-bottom: 10px;
   box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); /* ظل نص للعناوين */
}

.cart-content {
    margin-top: 30px;
    text-align: left;
    z-index: 9999999;
}
.remove-btn{

  align-self: flex-start; /* يجعل الزر يصعد إلى الأعلى داخل العنصر */
  margin-left: auto; /* يدفعه لليمين */
  background: transparent;
  color: white;
  border: none;
  

  font-weight: bold;
    cursor: pointer;
}
.logo img {
    
    top: 5px;
    height: 40px;
    width: auto;
    pointer-events: none;
    position: absolute;
}

.header-right a i {
    color: white;
    padding: 3px;
}

.menu-icon {
    position: absolute;
    left: 20px;
    font-size: 17px;
    text-decoration: none;
    color: white;
    background-color: rgb(0, 0, 0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* ظل خفيف على الأيقونة */
}

/* تفعيل الظهور */
.menu-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* المحتوى الداخلي */
.menu-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    max-width: 90%;
    background-color: #111;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8); /* ظل ثقيل للخلفية */
    transform: translate(-50%, -40%) scale(0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999999;
    padding: 20px 30px;
    display: flex;
 
    flex-direction: column;
}


/* روابط القائمة */
.menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding-bottom: 6px;
    border-bottom: 1px solid #87cefa;
    transition: color 0.3s ease;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7); /* ظل خفيف للنص */
}

.menu-links a:hover {
    color: #87cefa;
    text-shadow: 0 0 5px #87cefa; /* توهج أزرق عند التحويم */
}

















.product-page {
    margin-top: 51px;
    width: 100%;
    background-color: #111;
    color: white;
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.7); /* ظل قوي جانبي */
   
    overflow-x: hidden;
      padding: 20px 20px 0 20px;
    overflow-y: auto;
}
.product-details {
   
    display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden ;
  z-index: 999999;

}

.product-page-img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
  z-index: 9999;
 
   box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); /* ظل نص للعناوين */
}

.product-page-name {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  width: 100%; 

            /* عرض كامل الحاوية */
  word-wrap: break-word; /* كسر الكلمة لو طويلة */
  white-space: normal;   /* السماح بالتفاف النص */
  overflow-wrap: break-word;
  text-align: left;
  border-radius: 10px;
  
 
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);

}

.product-page-price {


    font-size: 20px;
  color: white;
text-decoration: line-through;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.product-page-prices {
  display: flex;
  width: 100%;
  gap: 15px;
  color: white;
  justify-content: flex-start;
 
}
.product-page-discount-price {
  font-size: 20px;
 

  color: white;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.go-back {
  position: fixed;

    left: 5px;
    top: 61px;
    font-size: 30px;

    text-decoration: none;
    color: white;
    cursor: pointer;


  
}

.product-buttons {
  display: flex;
  gap: 30px;
  margin-top: 10px;
  justify-content: center;
  padding: 15px;
}


.order-now-page-btn {
 
    background-color: black;
  color: #87cefa;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  
  box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */
  transition: background-color 0.3s, box-shadow 0.3s;
}
.order-now-page-btn:hover {
    background-color: white;
  
}
.add-to-cart-page-btn {
   padding: 8px 14px;
    background-color: black;
  color: #87cefa;
 font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */

  transition: background-color 0.3s, box-shadow 0.3s;
}
.add-to-cart-page-btn:hover {
    background-color: white;
  
}
.product-page-description {
  font-size: 10px;
  color: #fff;
  margin-bottom: 10px;
  width: 100%; 

            /* عرض كامل الحاوية */
  word-wrap: break-word; /* كسر الكلمة لو طويلة */
  white-space: normal;   /* السماح بالتفاف النص */
  overflow-wrap: break-word;
  text-align: left;
  border-radius: 10px;
  
 
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}


.site-footer {
    background-color: #111;
    color: #fff;
    padding: 15px 0;
    font-size: 10px;
 

}

.footer-content {
    display: flex;
    flex-direction: row;       /* صف أفقي */
    justify-content: center;   /* محاذاة في المنتصف */
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;   
    
    flex-wrap: nowrap;         /* ❌ لا تسمح بالنزول لسطر جديد */
}   

.footer-section  {
    width: 100px;           /* ✅ اجعل لكل عنصر عرضًا محددًا */
    text-align: left;
    
    
}

.footer-section h4 {

    
    color: #87cefa;
    margin-bottom:8px;
    font-size: 10px;
    width: 100px;
    

    
}

.contact-section{

    
    width: 150px;

    
}
.footer-section:not(.contact-section) {
    width: 100px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.footer-link:hover {
    color: #fff;
}

.footer-link i {
    margin-right: 5px;
}

#categoryContainer {
  position: fixed;
  top: 45px;
  right: 10px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* يجعل القائمة تطابق يمين البوكس */
}

/* الزر */
#categoryBox {
  height: 35px;
  width: 150px;
  justify-content: center;
  background: #000;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5px;
  border-bottom: none;
   border: 1px solid #87cefa;
  color: #87cefa;
     z-index: 99999999;

  font-size: 14px;
  font-weight: bold;
  user-select: none;
 box-shadow: 0 2px 8px rgba(135, 206, 250, 0.3); /* ظل هيدر أزرق ناعم */
  transition: background-color 0.3s, box-shadow 0.3s;
}



/* القائمة المنبثقة */
#categoryList {
  overflow-y: auto;
  max-height: 0;
  opacity: 0;
  width: 150px;
   z-index: 9999999999;  
  background-color: #000;
  border: 1px solid #87cefa;
  border-top: none; /* بدون حافة علوية لتبدو متصلة */
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
 box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

/* عند الفتح */
#categoryList.show {
  max-height: 160px; /* لعرض 4 عناصر مثلاً */
  opacity: 1;
  overflow-x: hidden;
  
}

/* العناصر */
#categoryList button {
  background: none;
  color: white;
  border: none;

   z-index: 9999999999;
 
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);

  padding: 8px 10px;
   border: 1px solid #87cefa;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

#categoryList button:hover {
  color: #87cefa;
}
#categoryArrow {
   font-size: 25px;
    display: flex;
  transform: translateY(-10px);
    justify-content: center;  /* لتوسيط أفقي */
  align-items: center;       /* لتوسيط عمودي داخل الحاوية */
  width: 100%;  
  text-shadow: 0 3px 0px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */
  align-items: flex-start;
  z-index: 999999;
  transition: transform 0.4s ease;
}
