/* CSS عام */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #8BC34A;
    --accent-color: #FF9800;
    --accent-color1: #e74c3c;
    --dark-color: #388E3C;
    --light-color: #f9f9f9;
    --text-color: #333;
    --white: #fff;
    --testimonial : #f1f1f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* الشريط العلوي */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-switcher a {
    color: var(--white);
    margin-left: 15px;
    font-weight: 500;
}

/* التنقل الرئيسي */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.about-container {
  /* max-width: 1200px; */
  margin: auto;
  /* padding: 20px; */
}
.about-header {
  background-color: #dcedc8;
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
}
.about-header-title {
  font-size: 2.8em;
  color: #2e7d32;
  margin-bottom: 10px;
}
.about-header-subtitle {
  font-size: 1.2em;
  color: #4e4e4e;
}
.about-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  margin-top: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}
.about-section-title {
  color: #388e3c;
  margin-bottom: 15px;
  font-size: 1.6em;
}
.about-section-text {
  font-size: 1.1em;
  line-height: 1.8;
}
.about-list {
  list-style: none;
  padding: 0;
}
.about-list-item {
  background-color: #e8f5e9;
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1em;
}
@media (max-width: 768px) {
  .about-header-title {
    font-size: 2em;
  }
  .about-section {
    padding: 20px;
  }
  .about-section-title {
    font-size: 1.4em;
  }
  .about-section-text,
  .about-list-item {
    font-size: 1em;
  }
}
@media (max-width: 480px) {
  .about-header-title {
    font-size: 1.6em;
  }
  .about-header-subtitle {
    font-size: 1em;
  }
  .about-section {
    padding: 15px;
  }
  .about-section-title {
    font-size: 1.2em;
  }
  .about-section-text,
  .about-list-item {
    font-size: 0.95em;
  }
}


/* قسم الفوتر */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
    text-align: right;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: end;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--white);
}


/* التكيف مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .product-details, .about-content, .contact-content {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        grid-template-columns: 80px 1fr;
    }
    
    .about-img {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .add-to-cart, .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
    }
    
    .product-thumbs {
        flex-direction: row;
        order: 1;
        margin-top: 15px;
    }
}

/* تصميم الزر */
#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 100;
  background-color: var(--dark-color);
  color: white;
  border: none;
  outline: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: none; /* مخفي في البداية */
  transition: opacity 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: var(--accent-color);
}
