* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Iranian Sans', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    background: #F7F7F7;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    min-height: 932px;
    position: relative;
    background: #F7F7F7;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 auto;
    padding-bottom: 120px;
}

/* Background Blur Circle */
.blur-circle {
    width: 290px;
    height: 290px;
    left: 266px;
    top: -56px;
    position: absolute;
    background: rgba(254, 114, 76, 0.50);
    box-shadow: 300px 300px 300px;
    border-radius: 9999px;
    filter: blur(150px);
}

/* Top Bar */
.top-bar {
    width: calc(100% - 32px);
    max-width: 398px;
    right: 16px;
    left: auto;
    top: 16px;
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.menu-icon-btn {
    width: 38px;
    height: 38px;
    background: #C4C4C4;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.menu-icon-btn .icon {
    width: 20px;
    height: 20px;
    color: black;
}

.logo-img {
    width: 59px;
    height: 57px;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: white;
    padding: 4px;
}

.logo-img:hover {
    transform: scale(1.05);
}

.status-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-label {
    color: #111719;
    font-size: 14px;
    font-weight: 500;
}

.icon-small {
    width: 16px;
    height: 16px;
    color: #111719;
    stroke-width: 2;
}

.icon-tiny {
    width: 12px;
    height: 12px;
    color: #FE724C;
    stroke-width: 2;
}

.icon {
    width: 20px;
    height: 20px;
    color: #111719;
    stroke-width: 2;
}

.restaurant-status {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.status-text {
    text-align: center;
    color: #4CAF50;
    font-size: 15px;
    font-weight: 500;
    direction: rtl;
}

.status-indicator.closed {
    background: #F44336;
    animation: none;
}

.restaurant-status.closed .status-text {
    color: #F44336;
}

.notification-icon-btn {
    width: 38px;
    height: 38px;
    background: white;
    box-shadow: 5px 10px 20px rgba(211, 209, 216, 0.30);
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.notification-icon-btn .icon {
    width: 18px;
    height: 18px;
    color: #111719;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #F44336;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Search Bar */
.search-bar-container {
    width: calc(100% - 32px);
    max-width: 398px;
    right: 16px;
    left: auto;
    top: 93px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 500;
}

.search-input-wrapper {
    width: 100%;
    height: 45px;
    background: #FCFCFD;
    border-radius: 10px;
    border: 1px #EFEFEF solid;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    position: relative;
    flex-direction: row-reverse;
}

.filter-icon-inline {
    width: 16px;
    height: 16px;
    color: rgba(0, 0, 0, 0.56);
    stroke-width: 2;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.56);
    font-size: 14px;
    font-family: 'Vazirmatn', 'Iranian Sans', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    font-weight: 400;
    outline: none;
    padding: 0 8px;
    text-align: right;
    direction: rtl;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.56);
}

/* Search Results Box */
.search-results-box {
    width: 100%;
    max-height: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
    overflow-y: auto;
    display: none;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 114, 76, 0.3) transparent;
}

.search-results-box.active {
    display: block;
}

.search-results-box::-webkit-scrollbar {
    width: 6px;
}

.search-results-box::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-box::-webkit-scrollbar-thumb {
    background: rgba(254, 114, 76, 0.3);
    border-radius: 10px;
}

.search-results-box::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 114, 76, 0.5);
}

.search-result-item {
    padding: 16px;
    border-bottom: 1px solid #EFEFEF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #F7F7F7;
}

.search-result-item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #111719;
}

.search-result-item-restaurant {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.56);
}

.search-result-item-price {
    font-size: 14px;
    font-weight: 500;
    color: #FE724C;
    margin-right: auto;
}

.search-result-empty {
    padding: 32px 16px;
    text-align: center;
    color: rgba(0, 0, 0, 0.56);
    font-size: 14px;
}

/* Special Offers Section */
.special-offers-header {
    width: calc(100% - 32px);
    max-width: 398px;
    right: 16px;
    left: auto;
    top: 161px;
    position: absolute;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.section-title {
    color: #111719;
    font-size: 18px;
    font-weight: 500;
}

.see-all-link {
    text-align: right;
    color: #FE724C;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Special Offer Slider */
.special-offer-slider {
    width: calc(100% - 32px);
    max-width: 398px;
    height: 176px;
    right: 16px;
    left: auto;
    top: 197px;
    position: absolute;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slider-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.offer-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 11;
}

.slider-btn:hover {
    background: white;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.slider-btn .icon {
    width: 20px;
    height: 20px;
    color: #FE724C;
    stroke-width: 2.5;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Category Filter */
.category-filter {
    width: calc(100% - 32px);
    max-width: 398px;
    height: 50px;
    right: 16px;
    left: auto;
    top: 393px;
    position: absolute;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 54px;
    padding: 5px 4px;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 114, 76, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.category-filter::-webkit-scrollbar {
    height: 4px;
}

.category-filter::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.category-filter::-webkit-scrollbar-thumb {
    background: rgba(254, 114, 76, 0.3);
    border-radius: 10px;
}

.category-filter::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 114, 76, 0.5);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    cursor: pointer;
}

.category-item.active {
    background: #FE724C;
    padding: 5px 10px;
    border-radius: 20px;
}

.category-item.active .category-name {
    color: white;
}

.category-item.active .category-icon {
    border: 2px solid white;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.category-name {
    color: #111719;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* Popular Food Section */
.popular-food-header {
    width: calc(100% - 32px);
    max-width: 397px;
    right: 16px;
    left: auto;
    top: 463px;
    position: absolute;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    
}

.section-title-dark {
    text-align: right;
    color: #323643;
    font-size: 18px;
    font-weight: 600;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.view-all-link span {
    text-align: right;
    color: #F56844;
    font-size: 12px;
    font-weight: 400;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

/* Food Cards Grid */
.food-cards-grid {
    width: calc(100% - 32px);
    max-width: 398px;
    right: 16px;
    left: auto;
    top: 507px;
    position: absolute;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    grid-auto-rows: 240px;
    direction: rtl;
}

.food-card {
    width: 191px;
    height: 240px;
    position: relative;
    border-radius: 12px;
}

.food-card-bg {
    width: 191px;
    height: 240px;
    position: absolute;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.food-image {
    width: 130px;
    height: 130px;
    right: 30px;
    left: auto;
    top: 10px;
    position: absolute;
    box-shadow: 0px 0px 35px rgba(254, 114, 76, 0.25);
    border-radius: 12px;
    object-fit: cover;
}

.favorite-icon {
    width: 24px;
    height: 24px;
    right: 11px;
    left: auto;
    top: 10px;
    position: absolute;
    background: #FE724C;
    box-shadow: 0px 0px 15px rgba(254, 114, 76, 0.40);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 5px;
    transition: all 0.3s ease;
}

.favorite-icon i {
    width: 10px;
    height: 10px;
    color: white;
    stroke-width: 2.5;
    fill: none;
}

.favorite-icon.active {
    background: #FE724C;
    box-shadow: 0px 0px 15px rgba(254, 114, 76, 0.40);
}

.favorite-icon.active i {
    color: white;
    fill: white;
}

.add-to-cart-icon {
    width: 28.26px;
    height: 28.26px;
    left: 11px;
    right: auto;
    bottom: 10px;
    top: auto;
    position: absolute;
    background: #FE724C;
    box-shadow: 0px 0px 15px rgba(254, 114, 76, 0.40);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.add-to-cart-icon:hover {
    background: #F56844;
    transform: scale(1.1);
}

.add-to-cart-icon:active {
    transform: scale(0.95);
}

.add-to-cart-icon i {
    width: 15px;
    height: 15px;
    color: white !important;
    stroke: white !important;
    fill: white !important;
    stroke-width: 2.5;
}

.add-to-cart-icon i svg {
    color: white !important;
    stroke: white !important;
    fill: white !important;
}

.add-to-cart-icon i svg path {
    stroke: white !important;
    fill: white !important;
}

.food-card-header {
    width: 175px;
    right: 6px;
    left: auto;
    top: 140px;
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star-icon-lucide {
    width: 12px;
    height: 12px;
    color: #FEC62E;
    fill: #FEC62E;
    stroke-width: 2;
}

.rating {
    color: rgba(0, 0, 0, 0.56);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.price {
    color: #FE724C;
    font-size: 15px;
    font-weight: 500;
}

.food-info {
    width: 137px;
    right: 10px;
    left: auto;
    top: 164px;
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.food-name {
    color: black;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.3;
}

.restaurant-name {
    color: rgba(0, 0, 0, 0.56);
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.3;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.distance {
    color: rgba(0, 0, 0, 0.56);
    font-size: 11px;
    font-weight: 400;
}

.delivery-time {
    display: flex;
    align-items: center;
    gap: 3px;
}

.dot {
    width: 4px;
    height: 4px;
    background: #FE724C;
    border-radius: 9999px;
}

.delivery-time span {
    color: rgba(0, 0, 0, 0.56);
    font-size: 11px;
    font-weight: 400;
}

/* Bottom Navigation */
.bottom-nav {
    width: 100%;
    max-width: 430px;
    padding: 16px 24px 24px 24px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    position: fixed;
    background: white;
    box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.08);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1000;
    direction: rtl;
}

.nav-container {
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    flex-direction: row-reverse;
    position: relative;
}

.nav-background-slider {
    position: absolute;
    width: calc(25% - 12px);
    height: calc(100% - 8px);
    background: rgba(254, 114, 76, 0.15);
    border-radius: 20px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
    top: 4px;
    left: 0;
    will-change: left, width;
}

.nav-item {
    flex: 1;
    padding: 8px 6px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    min-width: 0;
}

.nav-item.active .nav-label {
    color: #FE724C;
}

.nav-icon {
    width: 20px;
    height: 20px;
    color: #878787;
    stroke-width: 2;
}

.nav-item.active .nav-icon {
    color: #FE724C;
    stroke-width: 2.5;
}

.nav-label {
    color: #878787;
    font-size: 11px;
    font-weight: 400;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
}

.nav-item.active .nav-label {
    color: #FE724C;
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #F44336;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
    box-sizing: border-box;
}

/* Bottom Safe Area */
.bottom-safe-area {
    width: 100%;
    max-width: 430px;
    height: 36px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    position: fixed;
    pointer-events: none;
    z-index: 1001;
}

.safe-area-indicator {
    width: 104.49px;
    height: 5px;
    left: 50%;
    right: auto;
    margin-left: calc(-104.49px / 2);
    top: 23px;
    position: absolute;
    background: black;
    border-radius: 50px;
}

/* Food Detail Modal */
.food-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.food-modal.active {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.food-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.food-modal.active .food-modal-overlay {
    opacity: 1;
}

.food-modal-content {
    position: relative;
    width: 430px;
    max-width: 100vw;
    max-height: 90vh;
    background: white;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    z-index: 10001;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    will-change: transform;
}

.food-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    transition: transform 0.2s ease;
}

.food-modal-close:hover {
    transform: scale(1.1);
}

.food-modal-close .icon {
    width: 20px;
    height: 20px;
    color: #111719;
}

.food-modal-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.food-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-modal-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: #FE724C;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(254, 114, 76, 0.40);
    transition: all 0.3s ease;
    z-index: 10002;
}

.food-modal-favorite:hover {
    background: #FE724C;
    transform: scale(1.1);
}

.food-modal-favorite.active {
    background: #FE724C;
}

.food-modal-favorite .icon {
    width: 24px;
    height: 24px;
    color: white;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

.food-modal-favorite.active .icon {
    fill: white;
    color: white;
    stroke: white;
}

.food-modal-info {
    padding: 24px;
}

.food-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.food-modal-name {
    font-size: 24px;
    font-weight: 600;
    color: #111719;
    margin-bottom: 4px;
}

.food-modal-restaurant {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.56);
    font-weight: 400;
}

.food-modal-price {
    font-size: 28px;
    font-weight: 700;
    color: #FE724C;
    white-space: nowrap;
}

.food-modal-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EFEFEF;
}

.food-modal-delivery-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.food-modal-description {
    margin-bottom: 24px;
}

.food-modal-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111719;
    margin-bottom: 12px;
}

.food-modal-description p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.food-modal-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 16px;
    border-top: 1px solid #EFEFEF;
}

.food-modal-add-btn {
    width: 100%;
    height: 56px;
    background: #FE724C;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', 'Iranian Sans', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
}

.food-modal-add-btn:hover {
    background: #F56844;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(254, 114, 76, 0.4);
}

.food-modal-add-btn .icon-small {
    width: 20px;
    height: 20px;
    color: white;
}

/* Notifications Modal */
.notifications-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.notifications-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.notifications-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notifications-modal.active .notifications-modal-overlay {
    opacity: 1;
}

.notifications-modal-content {
    position: relative;
    width: 430px;
    max-width: 100vw;
    max-height: 80vh;
    background: white;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    z-index: 10001;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    will-change: transform;
}

.notifications-modal.active .notifications-modal-content {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notifications-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.notifications-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111719;
    margin: 0;
}

.notifications-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.notifications-modal-close:hover {
    background: #E0E0E0;
    transform: rotate(90deg);
}

.notifications-modal-close .icon {
    width: 20px;
    height: 20px;
    color: #111719;
}

.notifications-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #FAFAFA;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #F0F0F0;
}

.notification-item:hover {
    background: #F5F5F5;
    transform: translateX(-4px);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FE724C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item-icon .icon {
    width: 20px;
    height: 20px;
    color: white;
}

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

.notification-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #111719;
    margin: 0;
}

.notification-item-text {
    font-size: 13px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.notification-item-time {
    font-size: 12px;
    color: #999999;
    margin-top: 4px;
}

/* OTP Login Modal */
.otp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.otp-modal.active {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.otp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.otp-modal.active .otp-modal-overlay {
    opacity: 1;
}

.otp-modal-content {
    position: relative;
    width: 430px;
    max-width: 100vw;
    max-height: 85vh;
    background: white;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    z-index: 10001;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    will-change: transform;
}

.otp-modal.active .otp-modal-content {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.otp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.otp-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111719;
    margin: 0;
}

.otp-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.otp-modal-close:hover {
    background: #E0E0E0;
    transform: rotate(90deg);
}

.otp-modal-close .icon {
    width: 20px;
    height: 20px;
    color: #111719;
}

.otp-step {
    padding: 24px;
}

.otp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.otp-info {
    text-align: center;
    margin-bottom: 8px;
}

.otp-phone-display {
    font-size: 16px;
    font-weight: 600;
    color: #111719;
    margin: 0 0 8px 0;
}

.otp-description {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.otp-code-input {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
}

.otp-submit-btn {
    width: 100%;
    padding: 16px;
    background: #FE724C;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.otp-submit-btn:hover {
    background: #F56844;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(254, 114, 76, 0.4);
}

.otp-submit-btn:active {
    transform: translateY(0);
}

.otp-submit-btn .icon-small {
    width: 20px;
    height: 20px;
    color: white;
}

.otp-back-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.otp-back-btn:hover {
    background: #F5F5F5;
    border-color: #CCCCCC;
}

.otp-back-btn .icon-small {
    width: 18px;
    height: 18px;
    color: #666666;
}

/* Profile Modal */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.profile-modal.active {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.profile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-modal.active .profile-modal-overlay {
    opacity: 1;
}

.profile-modal-content {
    position: relative;
    width: 430px;
    max-width: 100vw;
    max-height: 85vh;
    background: white;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    z-index: 10001;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.profile-modal.active .profile-modal-content {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.profile-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111719;
    margin: 0;
}

.profile-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.profile-modal-close:hover {
    background: #E0E0E0;
    transform: rotate(90deg);
}

.profile-modal-close .icon {
    width: 20px;
    height: 20px;
    color: #111719;
}

.profile-info-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F0F0F0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FE724C;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.profile-avatar-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #111719;
    margin: 0;
}

.profile-phone {
    font-size: 14px;
    color: #999999;
    margin: 0;
}

.profile-orders-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 24px;
}

.profile-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111719;
    margin: 0 0 16px 0;
}

.profile-orders-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-empty-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.profile-empty-icon {
    width: 80px;
    height: 80px;
    color: #CCCCCC;
    margin-bottom: 16px;
}

.profile-empty-orders p {
    font-size: 16px;
    color: #999999;
    margin: 0;
}

.profile-order-item {
    background: #F9F9F9;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #F0F0F0;
}

.profile-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-order-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666666;
}

.profile-order-date .icon-small {
    width: 16px;
    height: 16px;
    color: #999999;
}

.profile-order-status {
    font-size: 12px;
    font-weight: 600;
    color: #4CAF50;
    background: #E8F5E9;
    padding: 4px 12px;
    border-radius: 12px;
}

.profile-order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.profile-order-item-name {
    color: #666666;
}

.profile-order-item-price {
    color: #111719;
    font-weight: 600;
}

.profile-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #E0E0E0;
}

.profile-order-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #111719;
}

.profile-order-total-price {
    font-size: 18px;
    font-weight: 700;
    color: #FE724C;
}

/* Waiter Request Modal */
.waiter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.waiter-modal.active {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.waiter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.waiter-modal.active .waiter-modal-overlay {
    opacity: 1;
}

.waiter-modal-content {
    position: relative;
    width: 430px;
    max-width: 100vw;
    max-height: 85vh;
    background: white;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    z-index: 10001;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    will-change: transform;
}

.waiter-modal.active .waiter-modal-content {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waiter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.waiter-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111719;
    margin: 0;
}

.waiter-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.waiter-modal-close:hover {
    background: #E0E0E0;
    transform: rotate(90deg);
}

.waiter-modal-close .icon {
    width: 20px;
    height: 20px;
    color: #111719;
}

.waiter-modal-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #111719;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Vazirmatn', sans-serif;
    color: #111719;
    background: white;
    transition: all 0.2s ease;
    direction: rtl;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FE724C;
    box-shadow: 0 0 0 3px rgba(254, 114, 76, 0.1);
}

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

/* Select Wrapper for better styling */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 1;
}

.select-arrow {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.2s ease;
}

.select-arrow .icon {
    width: 20px;
    height: 20px;
    color: #666666;
    stroke-width: 2.5;
    transition: color 0.2s ease;
}

.select-wrapper:hover .select-arrow .icon {
    color: #FE724C;
}

.select-wrapper:focus-within .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.select-wrapper:focus-within .select-arrow .icon {
    color: #FE724C;
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    background-image: none;
    padding: 14px 16px 14px 48px;
    width: 100%;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Vazirmatn', sans-serif;
    color: #111719;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.form-select:hover {
    border-color: #FE724C;
    background-color: #FFF5F2;
}

.form-select:focus {
    outline: none;
    border-color: #FE724C;
    box-shadow: 0 0 0 3px rgba(254, 114, 76, 0.15);
    background-color: white;
}

/* استایل option‌ها */
.form-select option {
    padding: 12px 16px;
    font-size: 16px;
    color: #111719;
    background: white;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
}

.form-select option:hover {
    background: #FFF5F2;
}

.form-select option:checked {
    background: #FE724C;
    color: white;
}

/* برای حالت انتخاب شده */
.form-select:not([value=""]) {
    color: #111719;
    font-weight: 500;
}

.form-select[value=""] {
    color: #999999;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-error {
    font-size: 12px;
    color: #F44336;
    display: none;
}

.form-error.show {
    display: block;
}

.waiter-submit-btn {
    width: 100%;
    padding: 16px;
    background: #FE724C;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.waiter-submit-btn:hover {
    background: #F56844;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(254, 114, 76, 0.4);
}

.waiter-submit-btn:active {
    transform: translateY(0);
}

.waiter-submit-btn .icon-small {
    width: 20px;
    height: 20px;
    color: white;
}

/* Success Toast Message */
.success-toast {
    position: fixed;
    top: 80px;
    right: 50%;
    transform: translateX(50%);
    z-index: 10002;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.success-toast.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.success-toast-content {
    background: #4CAF50;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0px 4px 12px rgba(76, 175, 80, 0.3);
    direction: rtl;
    min-width: 250px;
    justify-content: center;
}

.success-toast-icon {
    width: 24px;
    height: 24px;
    color: white;
    flex-shrink: 0;
}

.success-toast-message {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.cart-modal.active {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal.active .cart-modal-overlay {
    opacity: 1;
}

.cart-modal-content {
    position: relative;
    width: 430px;
    max-width: 100vw;
    max-height: 85vh;
    background: white;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    z-index: 10001;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.cart-modal.active .cart-modal-content {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.cart-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111719;
    margin: 0;
}

.cart-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.cart-modal-close:hover {
    background: #E0E0E0;
    transform: rotate(90deg);
}

.cart-modal-close .icon {
    width: 20px;
    height: 20px;
    color: #111719;
}

.cart-items-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(5 * 112px + 4 * 12px);
    min-height: 0;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: rgba(254, 114, 76, 0.3);
    border-radius: 10px;
}

.cart-items-list::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 114, 76, 0.5);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    color: #CCCCCC;
    margin-bottom: 16px;
}

.cart-empty p {
    font-size: 16px;
    color: #999999;
    margin: 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #F9F9F9;
    border-radius: 12px;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111719;
    margin: 0 0 4px 0;
}

.cart-item-restaurant {
    font-size: 12px;
    color: #999999;
    margin: 0 0 8px 0;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #FE724C;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #F5F5F5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #E0E0E0;
}

.quantity-btn .icon {
    width: 16px;
    height: 16px;
    color: #111719;
}

.quantity-value {
    font-size: 14px;
    font-weight: 600;
    color: #111719;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #F5F5F5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: #FFE5E5;
}

.cart-item-remove .icon {
    width: 16px;
    height: 16px;
    color: #F44336;
}

.cart-total-section {
    padding: 16px 24px;
    border-top: 1px solid #F0F0F0;
    background: white;
    position: sticky;
    bottom: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #111719;
}

.cart-total-price {
    color: #FE724C;
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: #FE724C;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
    background: #F56844;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(254, 114, 76, 0.4);
}

.cart-checkout-btn:active {
    transform: translateY(0);
}

.cart-checkout-btn .icon-small {
    width: 20px;
    height: 20px;
    color: white;
}

.cart-checkout-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-total-section {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #F0F0F0;
}

.cart-submit-order-btn {
    width: 100%;
    padding: 16px;
    background: #4CAF50;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.cart-submit-order-btn:hover {
    background: #45A049;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(76, 175, 80, 0.4);
}

.cart-submit-order-btn:active {
    transform: translateY(0);
}

.cart-submit-order-btn .icon-small {
    width: 20px;
    height: 20px;
    color: white;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.sidebar-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-menu.active .sidebar-overlay {
    opacity: 1;
}

.sidebar-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: white;
    z-index: 10001;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: ltr;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active .sidebar-content {
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.sidebar-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: #E0E0E0;
    transform: rotate(90deg);
}

.sidebar-close .icon {
    width: 20px;
    height: 20px;
    color: #111719;
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    border-bottom: 1px solid #F0F0F0;
}

.sidebar-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 8px;
}

.sidebar-restaurant-name {
    font-size: 20px;
    font-weight: 700;
    color: #111719;
    margin: 0;
    text-align: center;
}

.sidebar-menu-items {
    flex: 1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.sidebar-menu-item-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.sidebar-menu-item-wrapper.active {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #111719;
    background: transparent;
}

.sidebar-menu-item:hover {
    background: #F5F5F5;
}

.sidebar-menu-item-wrapper.active .sidebar-menu-item {
    background: rgba(254, 114, 76, 0.1);
    color: #FE724C;
}

.sidebar-menu-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-menu-item-icon .icon {
    width: 24px;
    height: 24px;
    color: inherit;
    stroke-width: 2;
}

.sidebar-menu-item-text {
    font-size: 16px;
    font-weight: 500;
    color: inherit;
    flex: 1;
}

.sidebar-menu-item-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-menu-item-wrapper.active .sidebar-menu-item-arrow {
    transform: rotate(180deg);
}

.sidebar-menu-item-arrow .icon {
    width: 20px;
    height: 20px;
    color: #999999;
    stroke-width: 2;
    transition: color 0.2s ease;
}

.sidebar-menu-item-wrapper.active .sidebar-menu-item-arrow .icon {
    color: #FE724C;
}

.sidebar-menu-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #FAFAFA;
    padding: 0 16px;
}

.sidebar-menu-item-wrapper.active .sidebar-menu-item-content {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 16px 16px 16px;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for sidebar content */
.sidebar-menu-item-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu-item-content::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 2px;
}

.sidebar-menu-item-content::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 2px;
}

.sidebar-menu-item-content::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #E5E5E5;
    margin-top: auto;
    background: #FFFFFF;
}

.sidebar-footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
    gap: 8px;
}

.sidebar-footer-link:hover {
    color: #FE724C;
}

.sidebar-footer-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.sidebar-footer-link:hover .sidebar-footer-logo {
    opacity: 1;
}

.sidebar-footer-text {
    font-size: 11px;
    font-weight: 400;
    text-align: center;
    color: inherit;
    line-height: 1.4;
}

/* Responsive Styles */
/* Small Mobile (320px and up) */
@media (min-width: 320px) {
    .main-container {
        max-width: 100%;
    }
    
    .top-bar {
        width: calc(100% - 24px);
        padding: 0 12px;
        max-width: 100%;
        right: 12px;
    }
    
    .search-bar-container {
        width: calc(100% - 24px);
        max-width: 100%;
        right: 12px;
        left: 12px;
    }
}

/* Mobile (375px and up) */
@media (min-width: 375px) {
    .main-container {
        max-width: 430px;
    }
    
    .top-bar {
        max-width: 398px;
        right: 16px;
    }
    
    .search-bar-container {
        width: calc(100% - 32px);
        max-width: calc(430px - 32px);
        right: 16px;
        left: 16px;
    }
}

/* Large Mobile (414px and up) */
@media (min-width: 414px) {
    .main-container {
        max-width: 430px;
    }
}

/* Small Tablet (600px and up) */
@media (min-width: 600px) {
    .main-container {
        max-width: 600px;
        padding-bottom: 140px;
    }
    
    .top-bar {
        max-width: calc(600px - 32px);
        padding: 8px 16px;
    }
    
    .logo-img {
        width: 70px;
        height: 68px;
    }
    
    .menu-icon-btn,
    .notification-icon-btn {
        width: 44px;
        height: 44px;
    }
    
    .search-bar-container {
        max-width: calc(600px - 32px);
    }
    
    .special-offers-header,
    .popular-food-header {
        padding: 20px 16px 12px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .special-offer-slider {
        max-width: calc(600px - 32px);
    }
    
    .food-cards-grid {
        max-width: calc(600px - 32px);
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .food-card {
        border-radius: 20px;
    }
    
    .food-card-img {
        height: 180px;
    }
    
    .bottom-nav {
        max-width: 600px;
        padding: 12px 20px;
    }
    
    .nav-item {
        padding: 8px 6px;
        gap: 2px;
    }
    
    .nav-label {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .main-container {
        max-width: 768px;
        padding-bottom: 160px;
    }
    
    .top-bar {
        max-width: calc(768px - 48px);
        top: 80px;
        padding: 12px 24px;
        right: 24px;
    }
    
    .logo-img {
        width: 80px;
        height: 78px;
    }
    
    .menu-icon-btn,
    .notification-icon-btn {
        width: 48px;
        height: 48px;
    }
    
    .menu-icon-btn .icon,
    .notification-icon-btn .icon {
        width: 24px;
        height: 24px;
    }
    
    .status-label {
        font-size: 16px;
    }
    
    .status-text {
        font-size: 17px;
    }
    
    .search-bar-container {
        max-width: calc(768px - 48px);
        right: 24px;
        left: 24px;
        top: 160px;
        padding: 12px 20px;
    }
    
    .search-input {
        font-size: 17px;
        padding: 14px 20px 14px 48px;
    }
    
    .special-offers-header,
    .popular-food-header {
        padding: 24px 24px 16px;
        max-width: calc(768px - 48px);
        right: 24px;
        left: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .special-offer-slider {
        max-width: calc(768px - 48px);
        right: 24px;
        left: 24px;
        height: 220px;
        border-radius: 24px;
    }
    
    .slider-slide img {
        height: 220px;
    }
    
    .category-filter {
        max-width: calc(768px - 48px);
        right: 24px;
        left: 24px;
        padding: 16px 0;
    }
    
    .category-item {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .food-cards-grid {
        max-width: calc(768px - 48px);
        right: 24px;
        left: 24px;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 24px 24px;
    }
    
    .food-card {
        border-radius: 24px;
    }
    
    .food-card-img {
        height: 200px;
    }
    
    .food-card-title {
        font-size: 18px;
    }
    
    .food-card-price {
        font-size: 20px;
    }
    
    .bottom-nav {
        max-width: 768px;
        padding: 16px 32px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    .nav-item {
        padding: 14px 20px;
    }
    
    .nav-label {
        font-size: 11px;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-item {
        padding: 10px 8px;
        gap: 2px;
    }
    
    .nav-item i {
        width: 24px;
        height: 24px;
    }
    
    /* Modals for tablet */
    .food-modal-content,
    .waiter-modal-content,
    .cart-modal-content,
    .profile-modal-content,
    .otp-modal-content,
    .notifications-modal-content {
        max-width: 600px;
        max-height: 90vh;
    }
    
    .sidebar-content {
        width: 400px;
        max-width: 85vw;
    }
}

/* Large Tablet (1024px and up) */
@media (min-width: 1024px) {
    .main-container {
        max-width: 430px;
    }
    
    .top-bar {
        max-width: calc(430px - 32px);
        right: 16px;
    }
    
    .search-bar-container {
        max-width: calc(430px - 32px);
        right: 16px;
        left: 16px;
    }
    
    .special-offers-header,
    .popular-food-header {
        max-width: calc(430px - 32px);
        right: 16px;
        left: 16px;
    }
    
    .special-offer-slider {
        max-width: calc(430px - 32px);
        right: 16px;
        left: 16px;
    }
    
    .category-filter {
        max-width: calc(430px - 32px);
        right: 16px;
        left: 16px;
    }
    
    .food-cards-grid {
        max-width: calc(430px - 32px);
        right: 16px;
        left: 16px;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .bottom-nav {
        max-width: 430px;
    }
}

/* Landscape Tablet (1024px and up, landscape) */
@media (min-width: 1024px) and (orientation: landscape) {
    .food-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1200px and up) - Keep mobile-like appearance */
@media (min-width: 1200px) {
    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
        padding: 20px;
        background: #E5E5E5;
    }
    
    .main-container {
        max-width: 430px;
        margin: 0 auto;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.15);
        border-radius: 20px;
        overflow: hidden;
        background: #F7F7F7;
        position: relative;
    }
    
    .top-bar {
        max-width: calc(430px - 32px);
        right: 16px;
        left: auto;
        top: 16px;
        position: absolute;
        gap: 8px;
    }
    
    .top-bar .menu-icon-btn,
    .top-bar .notification-icon-btn {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
    
    .top-bar .logo-img {
        width: 50px;
        height: 48px;
        flex-shrink: 0;
    }
    
    .top-bar .status-section {
        flex: 1;
        min-width: 0;
    }
    
    .top-bar .status-label {
        font-size: 14px;
    }
    
    .top-bar .status-text {
        font-size: 15px;
    }
    
    .search-bar-container {
        width: calc(100% - 32px);
        max-width: calc(430px - 32px);
        right: 16px;
        left: auto;
        top: 93px;
        position: absolute;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .special-offers-header {
        width: calc(100% - 32px);
        max-width: calc(430px - 32px);
        right: 16px;
        left: auto;
        top: 161px;
        position: absolute;
        padding: 0;
        margin-bottom: 12px;
    }
    
    .special-offers-header .section-title {
        font-size: 18px;
        font-weight: 600;
    }
    
    .special-offer-slider {
        max-width: calc(430px - 32px);
        right: 16px;
        left: auto;
        top: 197px;
        position: absolute;
        margin-top: 16px;
    }
    
    .category-filter {
        max-width: calc(430px - 32px);
        right: 16px;
        left: auto;
        top: 450px;
        position: absolute;
        width: calc(100% - 32px);
        gap: 12px;
        padding: 5px 4px;
        margin-top: 16px;
        margin-bottom: 24px;
    }
    
    .category-filter .category-name {
        font-size: 16px;
    }
    
    .category-filter .category-item {
        flex-shrink: 0;
    }
    
    .food-cards-grid {
        max-width: calc(430px - 32px);
        right: 16px;
        left: 16px;
        top: 530px;
        position: absolute;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0;
        width: calc(100% - 32px);
    }
    
    .food-cards-grid .food-card {
        width: 100% !important;
        max-width: 100%;
    }
    
    .food-cards-grid .food-card-bg {
        width: 100% !important;
        max-width: 100%;
    }
    
    .food-card-title {
        font-size: 15px;
    }
    
    .food-card-price {
        font-size: 16px;
    }
    
    .nav-label {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-item {
        padding: 8px 6px;
        gap: 2px;
    }
    
    .bottom-nav {
        max-width: 430px;
        border-radius: 0 0 20px 20px;
        left: 50%;
        transform: translateX(-50%);
        position: fixed;
    }
    
    .bottom-safe-area {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
        position: fixed;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .food-card,
    .category-item,
    .nav-item,
    .menu-icon-btn,
    .notification-icon-btn {
        -webkit-tap-highlight-color: rgba(254, 114, 76, 0.2);
    }
    
    .food-card:active,
    .category-item:active {
        transform: scale(0.98);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .sidebar-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

