/* Smart Link Platform - Public Styles */
/* The main styles are in the theme's style.css */
/* This file contains additional public page styles */

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

/* Ensure RTL and Arabic font everywhere */
body, .sl-homepage, .sl-client-page-wrap, .sl-order-page, .sl-reserve-page, .sl-dashboard {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    direction: rtl;
}

/* Page wrapper */
.sl-page-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 80px;
    min-height: 100vh;
    background: #f8fafc;
}

/* QR Section */
#sl-qr-target img, #sl-qr-target canvas {
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Sticky order button */
.sl-sticky-order {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
    z-index: 50;
    display: flex;
    gap: 10px;
}

/* WhatsApp floating */
.sl-whatsapp-float {
    position: fixed;
    bottom: 88px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 49;
    text-decoration: none;
    transition: transform .2s;
}
.sl-whatsapp-float:hover { transform: scale(1.1); }

/* Shimmer loader */
.sl-loading-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
}

/* Section separator */
.sl-section-sep {
    height: 8px;
    background: #f1f5f9;
    margin: 0 -16px;
}

/* Tabs scroll */
.sl-tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.sl-tabs-scroll::-webkit-scrollbar { display: none; }

/* Item qty controls */
.sl-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sl-qty-btn {
    width: 28px; height: 28px;
    border-radius: 8px;
    border: none;
    background: #e2e8f0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
    transition: .15s;
}
.sl-qty-btn:hover { background: #1e40af; color: #fff; }
.sl-qty-value { font-size: 16px; font-weight: 700; min-width: 24px; text-align: center; }

/* Cart sheet */
.sl-cart-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,.15);
    padding: 24px 20px;
    z-index: 300;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sl-cart-sheet.open { transform: translateY(0); }
.sl-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 299;
    display: none;
}
.sl-sheet-overlay.show { display: block; }

/* Review funnel modal */
.sl-review-modal .sl-modal { max-width: 420px; }

/* Dashboard sidebar toggle */
.sl-sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 300;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 48px; height: 48px;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30,64,175,.3);
}
@media (max-width: 1024px) {
    .sl-sidebar-toggle { display: flex; }
}

/* Charts in dashboard */
.sl-chart-container { position: relative; height: 260px; }

/* Map embed */
.sl-map-embed { width: 100%; height: 200px; border-radius: 12px; border: none; }

/* Instapay / Vodafone payment badges */
.sl-payment-instapay { background: linear-gradient(135deg,#8b5cf6,#7c3aed); color: #fff; }
.sl-payment-vodafone { background: linear-gradient(135deg,#ef4444,#dc2626); color: #fff; }
.sl-payment-badge.sl-payment-instapay, .sl-payment-badge.sl-payment-vodafone { border: none; color: #fff; }

/* Stars interactive */
.sl-star-interactive { cursor: pointer; font-size: 32px; transition: .1s; }
.sl-star-interactive:hover { transform: scale(1.2); }
