


:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --white: #ffffff;
    --gray: #f4f4f4;
    --text: #333;
}


* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background-color: var(--gray); direction: rtl; }


/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo { font-size: 1.6rem; font-weight: bold; color: var(--primary); }
.logo span { color: var(--accent); }
.nav-controls { display: flex; align-items: center; gap: 20px; }
.cart-icon-wrapper { position: relative; cursor: pointer; font-size: 1.4rem; color: var(--primary); }
#cart-count { position: absolute; top: -8px; right: -10px; background: #e74c3c; color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 50%; }
.menu-toggle { font-size: 1.5rem; cursor: pointer; color: var(--primary); }


/* Cart Container */
.cart-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
h1 { margin-bottom: 30px; color: var(--primary); }


#cart-content { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }


.cart-items { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }


/* Item Design */
.cart-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #eee; gap: 15px; }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.item-info { flex-grow: 1; }
.item-info h4 { margin-bottom: 5px; color: var(--primary); }
.item-price { color: var(--accent); font-weight: bold; }
.btn-remove { background: #fee2e2; color: #ef4444; border: none; padding: 8px; border-radius: 6px; cursor: pointer; }


/* Summary */
.cart-summary { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); height: fit-content; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 15px; }
.summary-line.total { border-top: 2px solid var(--gray); pt: 15px; font-weight: bold; font-size: 1.2rem; color: var(--accent); }
.btn-checkout { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 1.1rem; cursor: pointer; transition: 0.3s; margin-top: 10px; font-weight: bold; }
.btn-checkout:hover { background: var(--accent); }


@media (max-width: 768px) {
    #cart-content { grid-template-columns: 1fr; }
}