/* 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);
}

/* الهيرو */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e68a00;
}

/* قسم العروض */
#texof{
    justify-content: center;
    align-items: center;
    display: flex;
    margin: 20px 0;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    transition: 0.6s;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    transition: 0.6s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: 0.6s;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 285px;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.product-badge.hot {
    background-color: #ff4757;
}

.product-badge.sale {
    background-color: #2ed573;
}

.product-badge.new {
    background-color: #1e90ff;
}

.product-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transition: 0.6s;
}

.quick-view,
.add-to-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    transition: 0.6s;
}

.quick-view:hover,
.add-to-wishlist:hover {
    background-color: var(--accent-color);
    color: white;
}

.product-details {
    padding: 20px;
}

.product-brand {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: #f1c40f;
    margin-left: 5px;
}

.rating-count {
    font-size: 12px;
    color: var(--gray-color);
}

.product-price {
    margin: 15px 0;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color1);
}

.old-price {
    font-size: 14px;
    color: var(--gray-color);
    text-decoration: line-through;
    margin-right: 10px;
}

.btn-add-to-cart {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-add-to-cart:hover {
    background-color: var(--dark-color);
    transition: 0.6s;
}

/* قسم الفئات */
.categories {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-img {
    height: 200px;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-content {
    padding: 20px;
}

.category-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

#showpro{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    /* top: -60px; */
}
      

/* عملاء فلاح */
.parent {
  display: flex; 
  gap: 20px;   
}
.testimonial-card{
    background-color: var(--testimonial);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--accent-color);
    transition: 0.5s;
    width: 50%;
    transition: transform 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-10px);
}
.testimonial-author img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.testimonial-author{
  display: flex;            
  align-items: center;      
  gap: 10px;                 
}

/* قمس الإتصال */
.contact {
    padding: 80px 0;
    background-color: var(--light-gray);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: right;
    box-shadow: 0 5px 15px var(--accent-color);
    transition: transform 0.3s;
}
#contact-form:hover{     
    transform: translateY(-10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-gold{
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.6s;
}

/* قسم الفوتر */
.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);
}
