@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Roboto:wght@300;400;500;700&display=swap');

.arabic {
    font-family: 'Cairo', sans-serif;
}

.english {
    font-family: 'Roboto', sans-serif;
}

/* Enhanced Slider Styles */
.slider-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slider-track {
    width: 100%;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider-slide:hover .slider-image {
    transform: scale(1.05);
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 80%;
    padding: 2rem;
}

.slider-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slider-description {
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    opacity: 0.9;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.slider-dot:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

.slider-dot.active {
    opacity: 1;
    transform: scale(1.2);
}

.slider-arrow {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .slider-title {
        font-size: 1.75rem;
    }

    .slider-description {
        font-size: 1rem;
    }

    .slider-content {
        max-width: 90%;
        padding: 1rem;
    }

    .slider-arrow {
        padding: 0.5rem;
    }

    .slider-arrow svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 480px) {
    .slider-title {
        font-size: 1.5rem;
    }

    .slider-description {
        font-size: 0.9rem;
    }
}

/* Animation for slide transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-slide.active {
    animation: slideIn 0.5s ease-out;
}

/* Rest of the existing CSS remains the same */
.cart-bounce {
    animation: bounce 0.3s ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.category-btn {
    transition: all 0.3s ease;
}

.category-btn:hover {
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #8DB600, #7BA000);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(141, 182, 0, 0.3);
}

.item-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.subcategory-btn {
    transition: all 0.3s ease;
}

.subcategory-btn:hover {
    transform: scale(1.05);
}

.subcategory-btn.active {
    background: #FF8C00;
    color: white;
}

/* تنسيق الجديد للصور */
.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.item-card:hover .item-image {
    transform: scale(1.05);
}

/* تثبيت العصائر تحت السلايدر */
#juice-subcategories {
    position: relative;
    z-index: 10;
}

/* زر العودة إلى الأعلى */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #FF8C00;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: #FFA500;
    transform: translateY(-3px);
}

/* تنسيق السعر الجديد */
.price-tag {
    background-color: #8DB600;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

/* تأثير التحميل للصور */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0f0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* إشعار الإضافة إلى السلة */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* تحسينات للجوّال */
@media (max-width: 768px) {
    .category-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .item-card {
        margin-bottom: 1rem;
    }

    #cart-sidebar,
    #favorites-sidebar {
        width: 100%;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* تحسينات إضافية لإمكانية الوصول */
button:focus,
a:focus {
    outline: 2px solid #FF8C00;
    outline-offset: 2px;
}

/* تحسين التباين للألوان */
.text-apple-green {
    color: #6D8B00;
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8DB600;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6D8B00;
}

/* تحسينات التحميل الكسول للصور */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-image.loaded {
    opacity: 1;
}

/* تحسينات البحث */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

#search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border-radius: 30px;
    border: 2px solid #e2e8f0;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#search-input:focus {
    outline: none;
    border-color: #8DB600;
    box-shadow: 0 2px 15px rgba(141, 182, 0, 0.2);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #f7fafc;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-emoji {
    margin-left: 10px;
    font-size: 18px;
}

.suggestion-text {
    flex: 1;
}

.suggestion-price {
    color: #8DB600;
    font-weight: bold;
}

.no-results {
    padding: 12px 20px;
    color: #718096;
    text-align: center;
}

.search-highlight {
    background-color: #FFA500;
    color: white;
    padding: 0 2px;
    border-radius: 3px;
}

/* مؤشر البحث */
.search-loading {
    display: none;
    text-align: center;
    padding: 10px;
}

.search-loading .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #8DB600;
    margin: 0 3px;
    animation: pulse 1.5s infinite ease-in-out;
}

.search-loading .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.search-loading .dot:nth-child(3) {
    animation-delay: 0.6s;
}

/* تنسيقات الفاتورة */
.invoice-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.invoice-header {
    background: linear-gradient(135deg, #8DB600, #6D8B00);
    color: white;
    padding: 20px;
    text-align: center;
}

.invoice-body {
    padding: 20px;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-weight: bold;
    font-size: 1.2em;
    border-top: 2px solid #8DB600;
    margin-top: 10px;
}

.customer-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* تنسيقات نموذج العميل */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* نافذة الفاتورة */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    margin: 50px auto;
    border-radius: 10px;
    max-width: 90%;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close button for modals - positioned absolutely in top-right */
.close-modal-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    line-height: 0;
    font-family: Arial, sans-serif;
}

.close-modal-btn:hover {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.close-modal-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.close-modal-btn:focus {
    outline: 2px solid rgba(239, 68, 68, 0.5);
    outline-offset: 2px;
}

/* Legacy close-modal for location modal */
.close-modal {
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    color: #4a5568;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e53e3e;
}

/* زر واتساب */
.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.whatsapp-icon {
    margin-left: 8px;
    font-size: 20px;
}

/* نافذة بيانات المستخدم */
.user-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.user-modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.location-loading {
    display: none;
    text-align: center;
    padding: 10px;
}

.location-loading .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #8DB600;
    margin: 0 3px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* أنماط جديدة للموقع غير الإلزامي */
.skip-location {
    background: #e2e8f0;
    color: #4a5568;
    margin-top: 10px;
}

.skip-location:hover {
    background: #cbd5e0;
}

.location-warning {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* تحسينات لعرض الأقسام الفرعية */
.subcategories-container {
    position: sticky;
    top: 120px;
    background: white;
    z-index: 20;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* إضافة أنماط جديدة لحل المشكلة */

/* منع العناصر من الاختفاء تحت الشريط المثبت */
#items-container {
    padding-top: 20px;
    scroll-margin-top: 180px;
    /* تأكد من ظهور العناصر تحت الشريط المثبت */
}

/* تحسين التمرير السلس للعناصر */
.scroll-target {
    scroll-margin-top: 180px;
}

/* تحسين المظهر للشريط المثبت */
.subcategories-container {
    position: sticky;
    top: 120px;
    background: rgba(255, 255, 255, 0.01);
    /* خلفية بيضاء مع شفافية 95% */
    z-index: 20;
    padding: 10px 0;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

/* تحسينات للعصائر والصحون تحديداً */
.juice-items,
.plate-items,
.package-items {
    position: relative;
    z-index: 5;
}

/* تحسين الفرق بين العناصر والشريط المثبت */
.category-items {
    margin-top: 20px;
}

/* أنماط جديدة للمفضلة */
.favorite-btn {
    background: transparent;
    border: 2px solid #FFA500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.favorite-btn.active {
    color: #e53e3e;
}

.favorite-btn svg {
    width: 24px;
    height: 24px;
}

/* تحسينات نافذة الموقع */
.location-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    color: #e53e3e;
    font-size: 24px;
    z-index: 1000;
    pointer-events: none;
}

.map-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e53e3e;
    border-radius: 50%;
    z-index: 999;
    pointer-events: none;
}

.map-crosshair::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #e53e3e;
    border-radius: 50%;
}

/* تحسينات النوافذ المنبثقة */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #8DB600;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #6D8B00;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
}

.close-modal:hover {
    color: #374151;
    background: #f3f4f6;
}

/* تحسينات خريطة Leaflet */
.leaflet-container {
    border-radius: 8px;
    z-index: 1;
}

.location-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f9fafb;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 640px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        width: 100%;
        max-width: none;
    }

    #location-map {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .subcategories-container {
        top: 100px;
    }

    #items-container {
        scroll-margin-top: 160px;
    }

    .scroll-target {
        scroll-margin-top: 160px;
    }
}

/* ============================================================================
   Checkout Refactoring - Modern Form & Validation Styles
   ============================================================================ */

/* Input Group with Floating Labels */
.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.floating-input {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem 0.75rem;
    font-size: 1rem;
    border: 2px solid #8DB600;
    /* Use a clearer border color */
    border-radius: 0.5rem;
    background: white;
    /* Use pure white for better visibility */
    transition: all 0.3s ease;
    outline: none;
}

.floating-input:focus {
    border-color: #8DB600;
    background: white;
    box-shadow: 0 0 0 3px rgba(141, 182, 0, 0.1);
}

.floating-label {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #6b7280;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 0.25rem;
    display: flex;
    align-items: center;
}

/* Floating label animation */
.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: 0;
    font-size: 0.75rem;
    color: #8DB600;
    background: white;
    padding: 0 0.25rem;
}

.peer:focus~.floating-label {
    color: #8DB600;
}

/* Validation States */
.floating-input.input-valid {
    border-color: #10b981;
    background: #f0fdf4;
}

.floating-input.input-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Validation Icons */
.validation-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
}

.input-valid~.validation-icon::after {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    font-size: 1.25rem;
}

.input-invalid~.validation-icon::after {
    content: '✕';
    color: #ef4444;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Order Item Cards */
.order-item-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.order-item-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* Order Summary Container Custom Scrollbar */
.order-summary-container::-webkit-scrollbar {
    width: 6px;
}

.order-summary-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.order-summary-container::-webkit-scrollbar-thumb {
    background: #8DB600;
    border-radius: 10px;
}

.order-summary-container::-webkit-scrollbar-thumb:hover {
    background: #6D8B00;
}

/* Confirm Button Loading State */
.confirm-order-btn .btn-loading {
    display: none;
}

.confirm-order-btn[disabled] {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Confirm Button Loading State */
.confirm-order-btn .btn-loading {
    display: none;
}

.confirm-order-btn[disabled] {
    opacity: 0.75;
    cursor: not-allowed;
}

.invoice-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Invoice Container - Add padding for fixed header and button */
.invoice-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
}

.invoice-modal-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.invoice-body-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: white;
}

/* Invoice Footer - Compact Total + Button */
.invoice-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 102;
    background: white;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.invoice-footer .confirm-order-btn {
    width: auto;
    white-space: nowrap;
}


/* Mobile Optimizations */
@media (max-width: 768px) {
    .floating-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 0.875rem 0.625rem 0.5rem 0.625rem;
    }

    .floating-label {
        font-size: 0.9375rem;
    }

    .order-item-card {
        padding: 0.625rem;
    }

    .confirm-order-btn {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 -1.5rem -1.5rem;
        border-radius: 0;
        border-bottom-left-radius: 0.75rem;
        border-bottom-right-radius: 0.75rem;
        box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    }
}

/* Accessibility: Focus Visible */
.floating-input:focus-visible {
    outline: 2px solid #8DB600;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .floating-input,
    .floating-label,
    .order-item-card,
    .confirm-order-btn {
        transition: none;
    }

    .btn-loading svg {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .floating-input {
        border-width: 3px;
    }

    .floating-input:focus {
        border-color: #000;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
    }
}

/* Touch Target Optimization for Mobile */
@media (max-width: 768px) and (hover: none) {

    button,
    .order-item-card button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Body no-scroll class for when modals are open */
body.modal-open {
    overflow: hidden !important;
    height: 100vh;
}
