@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; }

body { background-color: var(--bg-color); color: var(--text-dark); padding-bottom: 100px; }

#sec-6fa7 {
    background: linear-gradient(135deg, #fba918, #f05a28);
    position: relative;
    height: 380px;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(240, 90, 40, 0.2);
}

.u-image-1 { position: absolute; top: 20px; right: 20px; width: 110px; z-index: 10; }
.u-shape-1 { position: absolute; top: 30px; left: 20px; background: white; width: 90px; height: 35px; border-radius: 6px; z-index: 1; }
.u-text-1 { position: absolute; top: 34px; left: 32px; color: var(--primary-dark); font-weight: 700; font-size: 1.2rem; z-index: 2; }
.u-text-2 { position: absolute; top: 75px; left: 25px; color: white; font-weight: 700; font-size: 1.4rem; z-index: 2; }

.u-image-2 { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); width: 150px; border-radius: 50%; box-shadow: var(--shadow); z-index: 3; }
.u-image-3 { position: absolute; bottom: 40px; left: -10px; width: 160px; border-radius: 50%; box-shadow: var(--shadow); z-index: 4; }
.u-image-4 { position: absolute; bottom: -20px; right: -20px; width: 230px; border-radius: 50%; box-shadow: var(--shadow); z-index: 5; }

.u-icon-1 { position: absolute; bottom: 30px; left: 30px; background: #4caf50; border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 10; }
.u-icon-1 img { width: 30px; height: 30px; filter: brightness(0) invert(1); }

.categories-container { display: flex; overflow-x: auto; gap: 15px; padding: 10px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.category-item { display: flex; flex-direction: column; align-items: center; min-width: 90px; scroll-snap-align: start; cursor: pointer; opacity: 0.5; transition: all 0.3s ease; }
.category-item.active { opacity: 1; transform: scale(1.05); }
.category-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid transparent; box-shadow: var(--shadow); margin-bottom: 8px; background: white; }
.category-item.active .category-img { border-color: var(--primary); }
.category-name { font-size: 0.95rem; font-weight: 700; }

.products-container { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.product-card { background: var(--card-bg); border-radius: 12px; display: flex; padding: 12px; box-shadow: var(--shadow); align-items: center; gap: 15px; border: 1px solid var(--border); }
.product-img { width: 90px; height: 90px; border-radius: 8px; object-fit: cover; }
.product-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.product-title { font-size: 1.1rem; font-weight: 700; }
.product-price { font-size: 1rem; color: var(--primary); font-weight: 700; }

.add-btn { background: var(--primary); color: white; border: none; border-radius: 50px; width: 35px; height: 35px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.cart-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: white; box-shadow: 0 -4px 10px rgba(0,0,0,0.1); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 100; cursor: pointer; }
.cart-total { font-size: 1.1rem; font-weight: 700; }
.view-cart-btn { background: var(--primary); color: white; padding: 8px 20px; border-radius: 25px; font-weight: 700; }

.cart-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); z-index: 1000; display: flex; justify-content: center; align-items: flex-end; }
.cart-modal { background: white; width: 100%; max-width: 500px; height: 85vh; border-top-left-radius: 25px; border-top-right-radius: 25px; padding: 25px; display: flex; flex-direction: column; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 15px; }
.cart-header h3 { font-size: 1.3rem; font-weight: 700; }
.close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-light); line-height: 1; }

.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; padding-bottom: 15px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; background: var(--bg-color); padding: 10px; border-radius: 10px; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-size: 1rem; margin-bottom: 5px; }
.cart-item-price { color: var(--primary); font-size: 0.9rem; font-weight: 700; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; background: white; padding: 5px; border-radius: 25px; border: 1px solid var(--border); }
.qty-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: bold; }
.qty-val { font-weight: 700; font-size: 1rem; min-width: 20px; text-align: center; }

.cart-total-modal { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 700; padding: 15px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 15px; }

.checkout-form { display: flex; flex-direction: column; gap: 12px; }
.checkout-form h4 { font-size: 1rem; color: var(--text-light); }
.checkout-form input { padding: 12px 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; background: var(--bg-color); outline: none; }
.checkout-form input:focus { border-color: var(--primary); }
.error-msg { color: #ef4444; font-size: 0.85rem; display: none; margin-top: -5px; }
.submit-order-btn { background: #25D366; color: white; border: none; padding: 15px; border-radius: 10px; font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }

footer { text-align: center; padding: 30px 20px; color: var(--text-light); font-size: 0.85rem; }
footer a { color: var(--primary); text-decoration: none; font-weight: 700; }