@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
html {
    scroll-behavior: smooth;
}
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #22c55e;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 600px; /* Optimized for mobile/tablet focus */
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

img.responsive {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 10px;
}

.btn-primary {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: var(--text-muted); cursor: not-allowed; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

.error-text { color: var(--danger); font-size: 0.875rem; display: none; }
/* =========================================
   Global Navbar Styles
   ========================================= */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: top 0.3s ease-in-out;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo span { color: var(--text-main); }
.nav-links a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1rem; }
    .nav-links a { margin: 0 0.75rem; font-size: 0.95rem; }
}
/* =========================================
   Top Announcement Bar (Global)
   ========================================= */
.top-bar {
    background-color: #009f0d;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0;
}
.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Mobile: Stack the items neatly */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
    }
}