/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background: #333;
  }
  
  body,
  html {
    margin: 0;
    padding: 0;
    height: 100%;
    /* تأكد من أن صفحة HTML كاملة تأخذ مساحة ارتفاع الشاشة */
  }
  
  main {
    min-height: 1000vh;
    /* تعيين الحد الأدنى للارتفاع ليكون حجم الشاشة */
    padding: 20px;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    /* يمكنك تحديد عرض ثابت أو عرض نسبة */
    margin: 0 auto;
    /* جعل المحتوى في المنتصف */
    padding: 0px;
    /* المسافة من اليمين واليسار */
  }
  /*navbar*/
  .navbar-container {
  
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
  }
  
  
  /* Logo Styling */
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    /* جعل الشعار في موضع ثابت */
  }
  
  /* العنصر الأب .address */
  .address {
    display: flex;
    flex-direction: column;
    /* ترتيب العناصر تحت بعضها */
    gap: 1px;
    /* المسافة بين الروابط */
  }
  
  /* الرابط الأول */
  .address a:nth-child(1) {
    color: #FFD700;
    /* اللون الذهبي */
    font-size: 28px;
    /* حجم الخط للرابط الأول */
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  /* الرابط الثاني */
  .address a:nth-child(2) {
    color: #FFD700;
    /* اللون الذهبي */
    font-size: 14px;
    /* حجم الخط للرابط الثاني */
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  /* تأثير عند التمرير بالماوس على الروابط */
  .address a:hover {
    color: #ffcc00;
    /* تغيير اللون عند التمرير */
    font-size: 28px;
    /* زيادة حجم الخط */
  }
  
  /* إضافة مركزية العناصر */
  .navbar {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
    /*يجعل العناصر في الوسط */
  }
  
  /* Menu Items (Home, Blog, etc.) */
  .menu-items {
    display: flex;
    gap: 20px;
    list-style: none;
  }
  
  .menu-items li a {
    text-decoration: none;
    color: #c7d3df;
    padding: 8px 12px;
    font-size: 1em;
  }
  
  .menu-items li a:hover {
    color: #ffcc00;
  }
  
  
  
  .navbar ul {
    list-style: none;
    display: flex;
  }
  
  .navbar ul li {
    position: relative;
    margin-right: 20px;
  }
  
  .navbar a {
    color: #fff;
    padding: 10px;
    text-decoration: none;
  }
  
  .navbar ul ul {
    display: none;
    /* إخفاء القوائم الفرعية مبدئيًا */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #020202;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
    /* أعلى من القسم */
  
  }
  
  .navbar ul li:hover ul {
    display: block;
  
  }
  
  .navbar ul ul li {
    width: 100%;
  }
  
  .navbar ul ul li a {
    padding: 10px;
    color: #fff;
    display: block;
  }
  
  .navbar ul ul li a:hover {
    background-color: #ffcc00;
    color: #020202;
  }
  
  .navbar ul ul li:hover ul {
    display: block;
  }
  
  /* Basic Icon Styles */
  .icons {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5em;
    color: #f9f7f7;
  }
  
  /* تغيير اللون والحجم عند التمرير بالماوس */
  .icon:hover {
    color: #FFD700;
    /* اللون الذهبي */
    transform: scale(1.2);
    /* زيادة الحجم عند التمرير */
  }
  
  .icon span#cartCounter {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 50%;
  }
  

/* Tooltip Styling */
.tooltip {
    display: none;
    position: absolute;
    bottom: -25px;
    background-color: #FFD700;
    color: #0f0f0f;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1;
}

.icon:hover .tooltip {
    display: block;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: #070707;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(238, 236, 123, 0.3);
    text-align: center;
}

.modal input {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
}

.close-btn,
.search-btn {
    font-size: 1.2em;
    color: #FFD700;
    margin-left: 10px;
}

/* Sidebar Styling */
.sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #0a0a0a;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

/* Modal & Sidebar (Optional) */
.modal,
.sidebar {
    display: none;
}

.sidebar input {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
}

/* Shopping Cart Counter */
.cart-icon span {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff0000;
    color: #070707;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.8em;

}

/* إعدادات الصورة التي تملأ الشاشة */
.full-image-section {
    background: url('./sinsail.png') center/cover no-repeat;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

/* الخلفية الداكنة لكامل الجسم */
body {
    background: #050505;
    font-family: Arial, sans-serif;
}

/* إعدادات العنوان العلوي */
.title-overlay h1 {
    margin: 0;
    font-size: 40px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* إعدادات breadcrumb */
.breadcrumbs {
    font-size: 18px;
    margin-top: 10px;
    color: #faf6f6;
    position: relative;
    display: inline-block;
    background-color: #333;
    /* خلفية رمادية */
    padding: 10px 20px;
    border-radius: 20px;
    margin-bottom: -20px;
    /* نصف الصندوق خارج القسم */
}

.breadcrumbs span {
    margin: 0 5px;
}

.breadcrumbs span:hover {
    color: #FFD700;
    cursor: pointer;
}

/* لتصحيح التفاعل في الشاشات الصغيرة */
@media (max-width: 768px) {
    .breadcrumbs {
        margin-bottom: 0;
        /* إزالة الهامش السفلي عند الشاشات الصغيرة */
        padding: 8px 16px;
        /* تقليل الحشو في الشاشات الصغيرة */
    }
}

/* إعدادات قسم معلومات التواصل */
.contact-info-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 50px;
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    flex-wrap: wrap;
    /* لجعل العناصر تتكدس في حالة الشاشات الصغيرة */
}

/* إعدادات صندوق التواصل */
.contact-box {
    width: 30%;
    padding: 20px;
    text-align: left;
    background: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-10px);
    /* تأثير عند التأشير */
}

.contact-box i {
    font-size: 24px;
    margin-right: 10px;
    color: #faf6f6;
}

.contact-box h3 {
    margin-top: 0;
    color: #FFD700;
    font-size: 20px;
}

.contact-box p {
    margin-top: 5px;
    color: #f4f3f3;
}

/* تحسين استجابة التنسيق */
@media (max-width: 768px) {
    .contact-info-section {
        flex-direction: column;
        /* تكديس العناصر في الأعمدة */
        align-items: center;
    }

    .contact-box {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* تنسيق القسم الذي يحتوي على الخريطة */
.map-section {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* info of user */
/* إعدادات القسم الخاص بالنموذج */
.form-section {
    background: #333;
    width: 80%;
    max-width: 900px;
    margin: 20px auto;
}

.input-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.input-field {
    width: 48%;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.input-field i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #FFD700;

}

.input-field label {
    margin-left: 35px;
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    background-color: #050404;
    font-size: 14px;
}

.input-field textarea {
    resize: vertical;
    height: 150px;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #FFD700;
    color: black;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #333;
    color: white;
}

.submit-button:focus {
    outline: none;
}

/* زر العودة لأعلى */
/* تنسيق الزر "back to top" */
/* تنسيق الزر "back to top" */
.back-to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    /* إخفاء الزر بشكل افتراضي */
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.back-to-top-button i {
    margin-right: 10px;
    /* المسافة بين الأيقونة والنص */
}

.back-to-top-button:hover {
    background-color: #FFD700;
    color: #050404;
}

.back-to-top-button:focus {
    outline: none;
}

.back-to-top-button span {
    font-size: 16px;
}

/* footer*/
/* تنسيق عام */
.footer {
    flex: none;
    width: 100%;
    clear: both;
    background-color: #333;
    color: white;
    padding: 20px;
    font-family: Arial, sans-serif;

}

/* الصف الأول */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-logo-section a {
    font-size: 28px;
    color: #FFD700;
}

.footer-logo-section p {
    font-size: 28px;
    color: #FFD700;
    ;
}


.footer-social-map {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-icons {
    display: flex;
    gap: 10px;
}

.footer-icons .icon {
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    color: white;
    transition: 0.3s;
}

.footer-icons .icon:hover {
    background-color: #FFD700;
    color: black;
}

/* إعدادات الخريطة */
.footer-map iframe {
    width: 200px;
    height: 150px;
    border-radius: 5px;
    border: 1px solid #444;
}

/* الصف الثاني */
.footer-links-row {
    display: flex;
    gap: 15px;
    justify-content: start;
    margin-bottom: 20px;
}

.footer-links-row a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-row a:hover {
    color: #FFD700;
}

/* الصف الثالث */
.footer-bottom-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contact-section,
.footer-search-section,
.footer-address-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-section i,
.footer-search-section i,
.footer-address-section i {
    color: #FFD700;
    font-size: 20px;
}

.footer-contact-section p,
.footer-address-section p {
    margin: 0;
}

.footer-search-section input {
    padding: 5px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: white;
}
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  .navbar {
    flex-direction: column;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
