body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    direction: rtl;
}

.topbar {
    background: #f2f2f2;
    display: flex;
    justify-content: space-around;
    padding: 10px;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #ddd;
}

header {
    background-color: #0d47a1;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

header .logo {
    position: absolute;
    right: 20px;
    top: 20px;
}

header .logo img {
    height: 100px;
}

.cart-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #0d47a1;
    padding: 5px 12px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid #0d47a1;
}

.nav {
    background-color: #1976d2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.banner {
    background: linear-gradient(to left, #ff7043, #ff8a65);
    color: white;
    text-align: center;
    padding: 40px 20px;
    font-size: 1.8rem;
    font-weight: bold;
}

.category {
    padding: 20px;
}

.category h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #333;
    border-right: 5px solid #1976d2;
    padding-right: 10px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.card h4 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
}

.card p {
    color: #388e3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.card button {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.card button:hover {
    background: #1b5e20;
}

footer {
    background-color: #263238;
    color: white;
    padding: 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-content div {
    min-width: 200px;
}

.footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-content ul li {
    margin-bottom: 5px;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

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

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #444;
    padding-top: 10px;
    color: #ccc;
}