/* ===== ORDER PAGE ===== */
.order-page {
    padding-top: 100px;
    min-height: 100vh;
    background: #1a1a1a;
    padding-bottom: 60px;
}

.order-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ORDER FILTER ===== */
.order-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

/* ===== ITEMS SECTION ===== */
.order-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #c8a96e;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
}

.items-section {
    margin-bottom: 35px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.item-card {
    background: #2d2d2d;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.item-card:hover {
    border-color: #c8a96e;
    background: #333;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.item-price {
    font-size: 0.9rem;
    color: #c8a96e;
    font-weight: 700;
}

.add-btn {
    background: #c8a96e;
    color: #1a1a1a;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.add-btn:hover {
    background: #b8945a;
    transform: scale(1.1);
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
    position: sticky;
    top: 90px;
}

.cart-box {
    background: #2d2d2d;
    border-radius: 16px;
    border: 2px solid #c8a96e;
    padding: 20px;
    max-height: 85vh;
    overflow-y: auto;
}

.cart-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #c8a96e;
    margin-bottom: 20px;
    text-align: center;
}

.cart-empty {
    color: #666;
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
}

/* ===== CART ITEMS ===== */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #3a3a3a;
    gap: 10px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.cart-item-sub {
    font-size: 0.85rem;
    color: #c8a96e;
    font-weight: 700;
}

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

.cart-item-qty button {
    background: #3a3a3a;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-item-qty button:hover {
    background: #c8a96e;
    color: #1a1a1a;
}

.cart-item-qty span {
    font-weight: 700;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

/* ===== CART TOTAL ===== */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    border-top: 2px solid #c8a96e;
    margin-top: 10px;
}

#totalAmount {
    color: #c8a96e;
}

/* ===== CUSTOMER FORM ===== */
.customer-form {
    margin: 15px 0;
}

.customer-form h4 {
    font-size: 1rem;
    color: #c8a96e;
    margin-bottom: 12px;
    font-weight: 700;
}

.customer-form input,
.customer-form textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 10px;
    direction: rtl;
    transition: border 0.3s;
    box-sizing: border-box;
}

.customer-form input:focus,
.customer-form textarea:focus {
    outline: none;
    border-color: #c8a96e;
}

.customer-form input::placeholder,
.customer-form textarea::placeholder {
    color: #666;
}

/* ===== BUTTONS ===== */
.btn-whatsapp {
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
}

.btn-clear {
    width: 100%;
    background: transparent;
    color: #888;
    border: 1px solid #3a3a3a;
    padding: 10px;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-clear:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* ===== CART BADGE ===== */
.cart-badge {
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    margin-right: 6px;
    vertical-align: middle;
}

/* ===== CART EMPTY STATE ===== */
.cart-empty-state {
    text-align: center;
    padding: 30px 10px;
    color: #555;
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 8px; }
.cart-empty-state p { color: #666; font-size: 0.95rem; }
.cart-empty-sub { font-size: 0.8rem !important; color: #444 !important; margin-top: 4px; }

/* ===== CHECKOUT BUTTON ===== */
.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #c8a96e, #b8945a);
    color: #1a1a1a;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(200,169,110,0.3);
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,169,110,0.5);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #2d2d2d;
    border: 1px solid #c8a96e;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast-icon { font-size: 1.2rem; }

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: #222;
    border-radius: 20px;
    padding: 30px;
    max-width: 460px;
    width: 100%;
    border: 1px solid #3a3a3a;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c8a96e;
    text-align: center;
    margin-bottom: 25px;
}

/* ===== DELIVERY OPTIONS ===== */
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.delivery-btn {
    background: #2d2d2d;
    border: 2px solid #3a3a3a;
    border-radius: 14px;
    padding: 20px 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}
.delivery-btn:hover {
    border-color: #c8a96e;
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200,169,110,0.2);
}
.delivery-icon { font-size: 2.5rem; }
.delivery-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.delivery-sub { font-size: 0.8rem; color: #888; }

/* ===== ORDER SUMMARY ===== */
.order-summary {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #3a3a3a;
}
.summary-items { margin-bottom: 10px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    font-size: 0.88rem;
    padding: 4px 0;
    border-bottom: 1px solid #2d2d2d;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    color: #c8a96e;
    font-weight: 800;
    font-size: 1rem;
    padding-top: 10px;
}

/* ===== MODAL CLOSE BTN ===== */
.modal-close {
    width: 100%;
    background: transparent;
    color: #888;
    border: 1px solid #3a3a3a;
    padding: 10px;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
}
.modal-close:hover { border-color: #c8a96e; color: #c8a96e; }

/* ===== CONFIRMATION SCREEN ===== */
.confirm-box { text-align: center; }
.confirm-animation {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: bounce 0.8s ease infinite alternate;
}
@keyframes bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-12px); }
}
.confirm-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #c8a96e;
    margin-bottom: 10px;
}
.confirm-msg {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
}
.confirm-sub {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .order-page { padding-top: 75px; padding-left: 12px; padding-right: 12px; }
    .order-filter { gap: 6px; }
    .filter-btn { font-size: 0.8rem; padding: 7px 12px; }
    .items-grid { grid-template-columns: 1fr; gap: 10px; }
    .item-card { padding: 14px 12px; }
    .item-name { font-size: 0.95rem; }
    .order-section-title { font-size: 1.1rem; }
    .section-title { font-size: 1.6rem; }
    .add-btn { width: 36px; height: 36px; font-size: 1.2rem; min-width: 36px; }
}

.order-section-sub {
    font-size: 0.9rem;
    color: #c8a96e;
    font-weight: 700;
    margin: 18px 0 10px;
    padding-right: 4px;
}

/* ===== OFFERS BANNER ===== */
.offers-banner {
    max-width: 900px;
    margin: 0 auto 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 4px;
}
.offer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border-right: 4px solid;
    flex-wrap: wrap;
}
.offer-both     { background: #1a2a3a; border-color: #4a9eda; }
.offer-delivery { background: #1a2e1e; border-color: #4caf7d; }
.offer-pickup   { background: #2e2010; border-color: #c8a96e; }
.offer-icon { font-size: 1.2rem; flex-shrink: 0; }
.offer-text { flex: 1; font-size: 0.92rem; font-weight: 600; color: #eee; min-width: 150px; }
.offer-sub  { font-weight: 400; color: #aaa; font-size: 0.85rem; }
.offer-tag  { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; background: #ffffff18; color: #ddd; white-space: nowrap; }
@media (max-width: 600px) {
    .offer-text { font-size: 0.85rem; }
}
