@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;
}
.hidden-h1{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.search-wrapper {
    position: absolute;
    top: 12px;
    right: 43px;
    z-index: 999;
    transform: translateY(-50%);
}

.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; /* توهج أزرق عند التحويم */
}





.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;
}






.best-seller-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 109px;
    background-color: white;
    border-bottom: 3px solid #87cefa;
    border-radius: 10px;
    margin-top: 51px;
    overflow: hidden;

    width: 100%;
     box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
}

.buy-box-button {
    position: absolute;
    border: none;
       font-size: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
     display: flex;
    height: 30px;
    width: 60px;
    
   

       font-weight: bold;
    top: 70px;
    right: 180px;
 
    background-color: #111;
    color: #87cefa;

 
    text-decoration: none;
 
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */

  transition: background-color 0.3s, box-shadow 0.3s;
  z-index: 999;
}
.buy-box-button:hover {
    background-color: white;
}

.best-seller-img {
    
    position: absolute;
    left: 140px;
    z-index: 2;

}

.best-seller-img img {
    opacity: 0.3;
    height: 200px;
    max-width: 100%;
    display: block;
    z-index: 2;
    box-shadow: none;
  
}

.podcast-img {
    position: absolute;
    right: 10px;
    bottom: 45px;
    z-index: 999999;
}

.podcast-img img {
    height: 60px;
    max-width: 100%;
    display: block;
    box-shadow: 0 6px 14px rgba(0,0,0,2); /* ظل قوي للصورة */
}

.price-box-section-img {
    position: absolute;
    top: -10px;
    right: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,2); /* ظل متوسط */
    z-index: 0;
}

.price-box-section-img img {
    height: 138px;
    max-width: 100%;
    display: block;
}

.price-overlay {
    position: absolute;
    top: 35px;
    left: 30px;
    color: #87cefa;
    padding: 5px 10px;
    font-size: 20px;
    border-radius: 6px;
    font-weight: bold;
     text-shadow: 1.5px 1.5px 6px rgba(0,0,0,0.9); /* ظل نص واضح */
  
    z-index: 9999999;
}

.best-seller-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.best-seller-product {
    position: relative;
    width: 105px;
    height: 105px;
    border-radius: 10px;
    z-index: 1;
    left: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* ظل خفيف للصندوق */
}

.product-image {
    position: absolute;
    padding: 0;
    height: 105px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12)); /* ظل خفيف على الصورة */
}

.name-overlay {
   
    position: absolute;
    top: 0px; /* غيرت من 40px إلى 10px ليكون أقرب للنص */
    left: 105px;
    width: 165px;
    max-height: 62px;
    color: #87cefa;
    padding: 1px 1px;
    font-size: 13px;
    border-radius: 6px;
    overflow: hidden;
    font-weight: bold;
    text-shadow: 1.5px 1.5px 6px rgba(0,0,0,0.9); /* ظل نص واضح */
    text-align: left;
    z-index: 9999;
    white-space: normal;
    word-wrap: break-word;
   
    text-overflow: ellipsis; 
    
    
}





.products-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    
}

.product-box {
    width: 100%;
    height: 140px;
    display: flex;
    background: #000;
    padding: 10px;
   
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
 
}
.enderline {
    border-bottom: 3px solid #87cefa;
    width: 95%;
    margin: 0 auto;
    border-radius: 10px;
     box-shadow: 0 4px 8px rgba(135, 206, 250, 1); /* ظل هيدر أزرق ناعم */
}
.product-box img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 10px;
  
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.product-info h2 {
    font-size: 13px;
    color: white;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: left;
    overflow: hidden;

    display: -webkit-box;
    white-space: normal;
    word-wrap: break-word;
   
    text-overflow: ellipsis; 
}

.prices {
    display: flex;
    gap: 10px;

    align-items: center;
  
}

.price {
    font-size: 14px;
    color: white;
      font-weight: bold;
    text-decoration: line-through;
}

.discount_price {
    font-size: 16px;

    color: #87cefa;
    font-weight: bold;
}

.btn-container {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 10px;
    padding-right: 5px;
  
    
    
}


.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;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

.categories-section {
  margin: 40px 20px;
  text-align: center;
  margin-top: 20px;
}

.section-title {
  color: #87cefa;
  font-size: 20px;
  margin-bottom: 20px;

   border-bottom: 1px solid #87cefa; 
  padding: 10px;

   box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); /* ظل نص للعناوين */
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  
}

.category-box {
  width: 140px;
 
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%; 
  padding: 13px;
  overflow: hidden;
  border-bottom: 3px solid #87cefa;
    box-shadow: 0 4px 8px rgba(135, 206, 250, 0.5); /* ظل هيدر أزرق ناعم */
}

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-label {
  margin-top: 8px;
  font-size: 13px;
  color: #87cefa;
  font-weight: bold;
 
  
}