/* ==================================== */
/* متغيرات وخصائص أساسية       */
/* ==================================== */
:root {
    --primary-color: #00376b;
    --secondary-color: #0095f6;
    --accent-color: #ffc107; /* لون مميز جديد */
    --text-color: #333;
    --light-text-color: #555;
    --bg-color: #f0f2f5;
    --card-bg-color: #fff;
    --footer-bg-color: #262626;
    --whatsapp-color: #25d366;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* ==================================== */
/* الأزرار والمكونات العامة    */
/* ==================================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--primary-color);
}

.whatsapp-btn {
    background-color: var(--whatsapp-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
}

/* ==================================== */
/* تنسيقات الهيدر (Header)    */
/* ==================================== */
header {
    background: var(--card-bg-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--secondary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 80px;
    width: auto;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--secondary-color);
}

/* ==================================== */
/* قسم البطل (Hero Section)   */
/* ==================================== */
.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 50, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ==================================== */
/* قسم المنتجات (Products)    */
/* ==================================== */
.products-section {
    padding: 2rem 0;
    text-align: center;
}

.products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.product-card {
    background: var(--card-bg-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-card .price {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* ==================================== */
/* صفحة "من نحن" (About Us)   */
/* ==================================== */
.about-us-section {
    padding: 4rem 0;
}

.about-content {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.location-info {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.location-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ==================================== */
/* صفحة تفاصيل المنتج (Product Details) */
/* ==================================== */
.product-details-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.product-image-section {
    flex: 1;
    min-width: 300px;
}
.product-image-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.product-info-section {
    flex: 2;
}
.product-info-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.product-info-section p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}
.variants-section {
    margin-top: 30px;
    width: 100%;
}
.variants-section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.variant-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.variant-details span {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}
.variant-details span strong {
    font-weight: bold;
    color: var(--primary-color);
}
.variant-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* ==================================== */
/* الفوتر (Footer)             */
/* ==================================== */
footer {
    background: var(--footer-bg-color);
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-content p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: var(--secondary-color);
}

/* ==================================== */
/* التجاوب (Responsive design) */
/* ==================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    header nav ul {
        margin-top: 1rem;
    }
    header nav ul li {
        margin: 0 10px;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .product-grid {
        padding: 0 10px;
    }
    .product-details-container {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-content p {
        margin-bottom: 1rem;
        text-align: center;
    }
    .social-icons {
        margin-top: 1rem;
    }
}