/* ریست کردن تمام استایل‌های پیش‌فرض مرورگر */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0; /* حذف مارجین پیش‌فرض */
    padding: 0; /* حذف پدینگ پیش‌فرض */
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

section {
    width: 100%; /* عرض 100% */
}


/* style.css */
.headerlogin {
    margin: 0;
    font-family: Arial, sans-serif;
    direction: rtl;
    background-color: #f9f9f9;
}


header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #003366;
    color: #fff;
}

header .navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header .nav-links {
    list-style: none;
    padding: 0;
    margin: 0 auto; /* Centrally aligns the menu */
    display: flex;
    gap: 1rem;
}

header .nav-links li {
    display: inline;
}

header .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

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

header .nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header .nav-buttons .btn {
    background-color: #00509e;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

header .nav-buttons .btn:hover {
    background-color: #003366;
}

header .nav-buttons .cart {
    display: none; /* Visibility can be toggled later */
    position: relative;
}

header .nav-buttons .cart::after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff0000;
    color: #fff;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .hero {
    text-align: center;
    padding: 4rem 2rem;
    background: url('hero-image.jpg') no-repeat center center/cover;
    color: #fff;
}

header .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header .hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

header .cta-button {
    background-color: #003366;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

header .cta-button:hover {
    background-color: #00509e;
}