* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Cairo', sans-serif;
}

body {
    background: #0f0f0f;
    color: #fff;
    padding-bottom: 110px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #ff9800;
    border-radius: 30px;
}

section {
    padding: 40px 6%;
}

section h2 {
    margin-bottom: 25px;
    font-size: 32px;
    color: #ff9800;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f0f0f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #333;
    border-top: 5px solid #ff9800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#loader h2 {
    margin-top: 15px;
    color: #ff9800;
    font-size: 28px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.cart-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: #ff9800;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(255,152,0,0.5);
}

#cartCount {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #e53935;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9998;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.logo h1 {
    font-size: 32px;
    color: #ff9800;
    line-height: 1;
}

.logo span {
    color: white;
    letter-spacing: 2px;
    font-size: 10px;
}

.top-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: none;
    z-index: 99998;
}

.menu-overlay.active {
    display: block;
}

.side-menu {
    position: fixed;
    right: -320px;
    top: 0;
    width: 280px;
    height: 100%;
    background: #111;
    padding: 80px 25px;
    transition: 0.35s ease-in-out;
    z-index: 99999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.9);
}

.side-menu.active {
    right: 0;
}

.side-menu a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #222;
    font-size: 16px;
}

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px;
    z-index: 9997;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid #333;
}

.bottom-nav a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
}

.bottom-nav i {
    font-size: 18px;
    margin-bottom: 2px;
}

.center-btn {
    width: 52px;
    height: 52px;
    background: #ff9800;
    border-radius: 50%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: -25px;
    color: black !important;
    font-size: 22px !important;
    box-shadow: 0 4px 15px rgba(255,152,0,0.4);
}

.hero {
    height: 75vh;
    background: url("https://images.unsplash.com/photo-1568901346375-23c9450c58cd?auto=format&fit=crop&w=1600&q=80") center center/cover;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.hero-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
}

.hero-content h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    background: #ff9800;
    padding: 12px 35px;
    border-radius: 30px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

#menu {
    padding-top: 40px;
    text-align: center;
}

.search-box {
    padding: 15px 6% 30px;
    text-align: center;
}

.search-box input {
    width: 100%;
    max-width: 600px;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 40px;
    background: #1a1a1a;
    color: white;
    border: 2px solid #ff9800;
    outline: none;
}

.menu-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-section h2 {
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    width: 280px;
    margin: 12px;
    background: #1a1a1a;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #282828;
    position: relative;
}

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

.card h3 {
    padding: 12px 15px 5px;
    font-size: 20px;
}

.card p {
    padding: 0 15px 10px;
    color: #aaa;
    font-size: 13px;
    flex: 1;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #141414;
    border-top: 1px solid #252525;
}

.card-price-row span {
    font-weight: bold;
    color: #ff9800;
    font-size: 16px;
}

.add-to-cart-btn {
    background: #ff9800;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53935;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    z-index: 5;
}

.badge.new {
    background: #00c853;
}

/* Modal السلة المتكامل */
.cart-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 10px;
}

.cart-modal.open {
    display: flex !important;
}

.cart-content {
    background: #181818;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.cart-header {
    background: #111;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #282828;
    flex-shrink: 0;
}

.cart-header h3 {
    color: #ff9800;
    font-size: 18px;
}

.close-cart {
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.cart-scroll-body {
    overflow-y: auto;
    flex: 1;
    padding: 15px;
}

.cart-items {
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #262626;
}

.item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-qty button {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.cart-footer {
    background: #121212;
    padding-top: 10px;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 15px;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 10px;
}

/* أزرار اختيار نوع الطلب */
.segmented-control {
    display: flex;
    background: #222;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #333;
    margin-bottom: 12px;
}

.segment-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 13px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.segment-btn.active {
    background: #ff9800;
    color: #000;
}

.user-details input, .area-select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #222;
    border: 1px solid #333;
    border-radius: 10px;
    color: white;
    font-size: 13px;
    outline: none;
}

.area-select option {
    background: #1c1c1c;
    color: #fff;
}

.send-order-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

.contact-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.contact-box a {
    background: #ff9800;
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

footer {
    background: #000;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #ff9800;
}

@media (max-width: 768px) {
    .top-nav ul { display: none; }
    .bottom-nav { display: flex; }
    .card { width: 100%; margin: 10px 0; }
}
