/* Modern Design System - Professional & Formal */
:root {
    /* Primary Color Palette - Updated for freshness */
    --primary: #0f172a;
    /* Slate 900 (Main Dark) */
    --primary-light: #1e293b;
    /* Slate 800 */
    --accent: #10b981;
    /* Emerald 500 - New Fresh Accent */
    --accent-hover: #059669;

    /* Backgrounds */
    --bg-body: #f0fdf4;
    /* Very light mint/slate blend */
    --bg-card: #ffffff;
    --bg-secondary: #f1f5f9;

    /* Text */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;

    /* Borders */
    --border: #e2e8f0;

    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-main: 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
    /* Right-to-Left for Arabic */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-8 {
    margin-bottom: 4rem;
}

/* Typography Scale */
h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.39);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.23);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    /* Hidden by default */
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.close-btn {
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    cursor: pointer;
}

.sidebar-links li {
    margin-bottom: 16px;
}

.sidebar-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: #f0fdf4;
    color: var(--accent);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-btn {
    font-size: 1.8rem;
    color: var(--primary);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
    background: radial-gradient(circle at center top, #d1fae5 0%, #f0fdf4 100%);
    /* Fresh Emerald Gradient */
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero p {
    max-width: 600px;
    margin: 20px auto 40px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card-image-wrapper {
    width: 100%;
    height: 220px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

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

.product-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
}

.features-list {
    margin-bottom: 24px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.features-list svg {
    color: #10b981;
    /* Green checkmark */
}

/* Features/Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

/* Payment & Trust */
.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.payment-logo {
    height: 48px;
    object-fit: contain;
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* or left for RTL? checking guidelines, usually convenient corner */
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding-top: 120px;
    }

    .nav-links {
        display: none;
    }

    /* Could add hamburger later */

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on mobile */
        gap: 12px;
        /* Smaller gap */
    }

    .product-card {
        padding: 12px;
        border-radius: 12px;
    }

    .card-image-wrapper {
        height: 140px;
        /* Smaller image height */
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .features-list li {
        font-size: 0.8rem;
    }

    .btn {
        width: 100%;
        padding: 8px 0;
        font-size: 0.9rem;
    }
}