/* Main Styles for Shop Website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Arial', sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    direction: rtl;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--light-color);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/7.webp');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Shops Grid */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.shop-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-10px);
}

.shop-image {
    height: 200px;
    overflow: hidden;
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-image img {
    transform: scale(1.1);
}

.shop-info {
    padding: 20px;
}

.shop-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.shop-info p {
    color: #666;
    margin-bottom: 15px;
}

.shop-info .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.shop-info .btn:hover {
    background-color: var(--secondary-color);
}


.shop-info1 {
    padding: 80px;
    margin-left: 10%;
    text-align: left;
}

.shop-info1 h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
  
}

.shop-info1 p {
    color: #666;
    margin-bottom: 25px;
}

.shop-info1 .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.shop-info1 .btn:hover {
    background-color: var(--secondary-color);
}

.shop-info2 {
    padding: 90px;
}

.shop-info2 h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.shop-info2 p {
    color: #666;
    margin-bottom: 15px;
}

.shop-info2 .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.shop-info2 .btn:hover {
    background-color: var(--secondary-color);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 20px;
}

/* Product Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.product-info .price {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.product-info .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.product-info .btn:hover {
    background-color: var(--secondary-color);
}

/* Shop Header */
.shop-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
    margin-bottom: 40px;
    text-align: center;
}

.shop-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.shop-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .hero {
        height: 250px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .shops-grid, .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .hero {
        height: 200px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .shops-grid, .products-grid {
        grid-template-columns: 1fr;
    }
}
.container1 {
    bottom: 10px;
    left: 5px;
}


/* 🔍 تنسيق مربع البحث */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  gap: 10px;
}

.search-container input {
  width: 300px;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 16px;
  transition: 0.3s;
}

.search-container input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.search-container button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.search-container button:hover {
  background-color: #0056b3;
}

/* 🎨 تنسيق النتائج */
#searchResults {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px;
}

.product-item {
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.product-item:hover {
  transform: scale(1.03);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.product-item h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #333;
}

.product-item p {
  font-size: 14px;
  color: #666;
}

.product-item .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #28a745;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s;
}

.product-item .btn:hover {
  background-color: #218838;
}


/* تنسيقات اللوجو الجديد */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* مسافة بين اللوجو والنص */
}

.header-logo {
    height: 120px; /* تحديد ارتفاع اللوجو */
    width: auto; /* الحفاظ على نسبة العرض إلى الارتفاع */
}

@media (max-width: 768px) {
    .header-logo {
        height: 70px; /* تصغير اللوجو في الشاشات الصغيرة */
    }
}

