        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        
        :root {
            --primary: 24 68% 72%;
            --primary-foreground: 0 0% 0%;
            --secondary: 0 0% 100%;
            --secondary-foreground: 0 0% 0%;
            --foreground: 0 0% 0%;
        }
        
        
        body {
            background-image: url('img/bg.jpg');
            background-size: cover;
            background-position: center center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            min-height: 100vh;
            color: hsl(var(--foreground));
            overflow-x: hidden;
            overscroll-behavior: none;
            touch-action: pan-y;
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
        }
        
.bg-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}
        
        /* تعریف انیمیشن حرکت نور */
@keyframes sunlight-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

        .stage-1 .menu-container {
            display: none;
        }

        .stage-1 .horizontal-categories {
            display: none;
        }

        .stage-1 .categories-container {
            display: flex;
        }

        .stage-2 .menu-container {
            display: block;
        }

        .stage-2 .horizontal-categories {
            display: flex;
        }

        .stage-2 .categories-container {
            display: none;
        }

        .stage-2 .hero-section {
            display: none;
        }

        .hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #febe07, #e9af888c, #fff0, #fbc2eb7a);
    background-size: auto;
  background-size: 300% 300%;
  animation: sunlight-move 5s ease infinite;
}
        
        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
        }
        
        .hero-background img {
            width: 100%;
            height: 100%;
            
        }
        
        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(232, 173, 133, 0) calc(100% - 400px), 
                          rgba(232, 173, 133, 0.8) calc(100% - 200px),
                          rgba(232, 173, 133, 1) 100%);
                          
                          background: linear-gradient(
    hsl(var(--primary) / 0) calc(100% - 400px),
    hsl(var(--primary) / 0.8) calc(100% - 200px),
    hsl(var(--primary) / 1) 100%
);
            z-index: -1;
        }
        
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            position: relative;
            z-index: 10;
        }
        
        .restaurant-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: hsl(var(--primary-foreground));
        }
        
        .flag {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background-color: hsl(var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .flag img {
            width: 30px;
            height: 30px;
            border-radius: 50%;
        }
        
        .hero-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: calc(100% - 80px);
            gap: 2rem;
            position: relative;
            z-index: 10;
        }
        
        .logo-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }
        
        .logo {
            width: 150px;
            height: 150px;
            border-radius: 1rem;
            object-fit: contain;
            background-color: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 1rem;
            margin-top: -110px;
            padding-top: 40px;
        }
        
        .view-menu-btn {
            background-color: rgba(0, 0, 0, 0.25);
            color: white;
            border: none;
            border-radius: 2rem;
            padding: 1rem 2rem;
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }
        
        .view-menu-btn:hover {
            background-color: rgba(0, 0, 0, 0.4);
            transform: translateY(-2px);
        }
.scroll-indicator {
  background-color: #2d524a;
  color: #fff;
  width: auto;
  max-width: 320px;
  min-width: 200px;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 15rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0px 0px 40px #2d524a80;
  cursor: pointer;
  transition: all 0.3s ease;
}
        
        .scroll-indicator:hover {
            transform: scale(1.05);
        }
        
        .scroll-text {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 1.1rem;
            font-weight: 500;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 1.5rem;
        }

        .hero-buttons .scroll-indicator {
            margin-top: 0;
        }
        
        .scroll-subtext {
            font-size: 0.8rem;
            font-weight: 300;
            margin-top: 0.5rem;
            opacity: 0.8;
        }

        .categories-container {
            background: hsl(var(--secondary));
            background-color: hsl(var(--primary));
            padding: 3rem 1rem;
            display: none;
            min-height: 100vh;
        }

        .categories-wrapper {
            min-width:95%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .categories-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: hsl(var(--foreground));
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }

        .categories-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: hsl(var(--primary));
            border-radius: 2px;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            padding: 0 1rem;
        }

.category-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  border: 2px solid #fff0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
        .category-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, hsl(var(--primary)) 0%, transparent 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .category-card:hover {
            transform: translateY(-8px);
            border-color: hsl(var(--primary));
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        .category-card:hover::before {
            opacity: 0.1;
        }

        .category-icon {
            width: 80px;
            height: 80px;
            object-fit: cover;
            margin: 0 auto 1.2rem;
            padding: 5px;
            position: relative;
            z-index: 2;
            transition: all 0.3s ease;
        }

        .category-card:hover .category-icon {
            transform: scale(1.1);
            border-color: hsl(var(--primary-foreground));
        }

        .category-name {
            font-size: 1.1rem;
            font-weight: 700;
            color: hsl(var(--foreground));
            line-height: 1.4;
            position: relative;
            z-index: 2;
            margin-bottom: 0.5rem;
        }

        .category-description {
            font-size: 0.85rem;
            color: rgba(0,0,0,0.7);
            line-height: 1.4;
            position: relative;
            z-index: 2;
        }

        .horizontal-categories {
            position: sticky;
            top: 0;
            left: 0;
            width: 100%;
            backdrop-filter: blur(20px);
            z-index: 900;
            padding: 1rem 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            display: none;
            border-bottom: 2px solid hsl(var(--primary));
            background: rgba(255, 255, 255, 0.95);
        }
        

        .horizontal-categories-wrapper {
            display: flex;
            overflow-x: auto;
            gap: 1.2rem;
            padding: 1rem;
            scrollbar-width: none;
            max-width: 1200px;
            margin: 0 auto;
            scroll-behavior: smooth;
        }

        .horizontal-categories-wrapper::-webkit-scrollbar {
            display: none;
        }
        
        
        .horizontal-categories {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  z-index: 900;
  padding: 5px 0px;
  display: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(232, 173, 133, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.1);
  border-radius: 0;
  margin-bottom: 10px;
}

.horizontal-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    z-index: -1;
    border-radius: 0 0 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

        .horizontal-category-item {
            flex: 0 0 auto;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            padding: 0 0.5rem;
        }

        .horizontal-category-item.active {
            transform: translateY(-2px);
        }

        .horizontal-category-card {
            width: 65px;
            height: 65px;
            border-radius: 100%;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 6px;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .horizontal-category-item.active .horizontal-category-card {
            border-color: #ffd0ad;
            background: #ffffff;
            transform: scale(1.05);
            box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        }

        .horizontal-category-icon {
            width: 35px;
            height: 35px;
            /*border-radius: 100%;*/
            object-fit: cover;
        }

        .horizontal-category-name {
            font-size: 0.75rem;
            font-weight: 600;
            color: hsl(var(--foreground));
            white-space: nowrap;
            transition: all 0.3s ease;
        }

        .horizontal-category-item.active .horizontal-category-name {
            color: #2d524a;
            font-weight: 700;
        }

        .active-indicator {
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 6px;
            background: #2d524a;
            border-radius: 50%;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .horizontal-category-item.active .active-indicator {
            opacity: 1;
        }

        .menu-container {
            background-color: #e8af87db;
            min-height: 100vh;
            position: relative;
            display: none;
            padding-top: 100px;
        }

        .products-container {
            padding: 60px 0px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .category-section {
            margin-bottom: 3rem;
            scroll-margin-top: 100px;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: rgba(0, 0, 0, 0.8);
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 3px solid rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.5rem;
        }
        
        .product-item {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
            border-radius: 1.2rem;
            overflow: hidden;
            display: flex;
            height: 150px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
        }
        
        .product-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
        }
        
        .product-image {
            width: 120px;
            min-width: 120px;
            height: 100%;
            object-fit: cover;
        }
        
        .product-details {
            padding: 1.2rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex-grow: 1;
        }
        
.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(0, 0%, 0%);
  line-height: 1.3;
  border-right: 3px solid #00000038;
  padding-right: 6px;
}
        
        .product-description {
            font-size: 0.85rem;
            color: rgba(0, 0, 0, 0.7);
            line-height: 1.4;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            margin-bottom: 0.5rem;
        }
        
        .product-price {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.1rem;
            font-weight: 700;
            color: hsl(var(--primary-foreground));
        }
        
.price-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.2;
  margin-right: 5px;
  color: #0000005e;
}


        .product-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            z-index: 100;
            display: none;
            align-items: flex-end;
            justify-content: center;
            padding: 0;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .product-modal.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            background: #ffffff;
            border-radius: 1.5rem 1.5rem 0 0;
            max-width: 480px;
            width: 100%;
            max-height: 92vh;
            overflow: hidden;
            position: relative;
            box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
            transform: translateY(40px);
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: flex;
            flex-direction: column;
        }

        .product-modal.active .modal-content {
            transform: translateY(0);
        }

        .modal-header {
            position: relative;
            flex-shrink: 0;
        }

        .modal-image-container {
            width: 100%;
            height: 240px;
            overflow: hidden;
            background: linear-gradient(135deg, #f1f5f1 0%, #e8ece8 100%);
            position: relative;
            border-radius: 0;
        }

        .modal-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .modal-stock-badge {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(8px);
            padding: 0.4rem 0.9rem;
            border-radius: 50px;
            font-size: 0.78rem;
            font-weight: 700;
            color: #1a4d2e;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 0.3rem;
            z-index: 5;
        }

        .modal-stock-badge.low {
            color: #dc3545;
            background: rgba(220, 53, 69, 0.1);
        }

        .modal-stock-badge.out {
            color: #dc3545;
            background: rgba(220, 53, 69, 0.15);
        }

        .close-modal {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255,255,255,0.2);
            color: white;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s ease;
            z-index: 10;
        }

        .close-modal:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: scale(1.1) rotate(90deg);
            border-color: rgba(255,255,255,0.4);
        }

        .modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .modal-product-name {
            font-size: 1.25rem;
            font-weight: 800;
            color: #1a1a1a;
            margin-bottom: 0.5rem;
            text-align: center;
            line-height: 1.5;
        }

        .modal-product-description {
            font-size: 0.9rem;
            color: #6b7280;
            line-height: 1.7;
            margin-bottom: 1.25rem;
            text-align: center;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .modal-price {
            text-align: center;
            margin-bottom: 1.25rem;
            padding: 0.9rem 1rem;
            background: linear-gradient(135deg, #f8fff9 0%, #f0fdf4 100%);
            border-radius: 1rem;
            border: 2px solid #e8f5e9;
        }

        .modal-price-value {
            font-size: 1.4rem;
            font-weight: 900;
            color: #1a4d2e;
            margin-bottom: 0.2rem;
            font-family: 'Vazirmatn', sans-serif;
        }

        .modal-price-unit {
            font-size: 0.8rem;
            color: #6b7280;
            font-weight: 600;
        }

        .modal-cart-section {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            margin-top: auto;
            padding: 1rem 0 0.25rem;
        }

        .cart-qty-control {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            background: #f3f4f6;
            border-radius: 1rem;
            padding: 0.3rem;
            border: 2px solid #e5e7eb;
        }

        .cart-qty-control .cart-qty-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: none;
            background: white;
            font-size: 1.1rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            color: #1a4d2e;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .cart-qty-control .cart-qty-btn:hover:not(:disabled) {
            background: #1a4d2e;
            color: white;
            transform: scale(1.05);
        }

        .cart-qty-control .cart-qty-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none;
        }

        .cart-qty-control span {
            font-size: 1.15rem;
            font-weight: 800;
            min-width: 32px;
            text-align: center;
            color: #1a4d2e;
        }

        .modal-add-cart-btn {
            flex: 1;
            background: linear-gradient(135deg, #1a4d2e 0%, #143d24 100%);
            color: white;
            border: none;
            padding: 0.85rem 1.25rem;
            border-radius: 1rem;
            font-size: 0.95rem;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.25s ease;
            font-family: 'Vazirmatn', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            box-shadow: 0 4px 15px rgba(26, 77, 46, 0.3);
        }

        .modal-add-cart-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(26, 77, 46, 0.4);
        }

        .modal-add-cart-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            background: #9ca3af;
            box-shadow: none;
        }

        .modal-stock-info {
            text-align: center;
            font-size: 0.78rem;
            color: #6b7280;
            margin-top: 0.6rem;
            font-weight: 500;
        }

        @media (min-width: 768px) {
            .product-modal {
                align-items: center;
                padding: 1rem;
            }

            .modal-content {
                border-radius: 2rem;
                max-width: 520px;
                max-height: 85vh;
                box-shadow: 0 25px 80px rgba(0,0,0,0.35);
                transform: scale(0.92) translateY(20px);
            }

            .product-modal.active .modal-content {
                transform: scale(1) translateY(0);
            }

            .modal-image-container {
                height: 300px;
                border-radius: 2rem 2rem 0 0;
            }

            .modal-body {
                padding: 2rem;
            }

            .modal-product-name {
                font-size: 1.4rem;
            }

            .modal-price {
                padding: 1.1rem;
            }

            .modal-price-value {
                font-size: 1.6rem;
            }

            .modal-cart-section {
                gap: 1rem;
                padding-top: 1.5rem;
            }

            .cart-qty-control .cart-qty-btn {
                width: 42px;
                height: 42px;
            }

            .cart-qty-control span {
                font-size: 1.25rem;
                min-width: 36px;
            }

            .modal-add-cart-btn {
                padding: 0.95rem 1.5rem;
                font-size: 1rem;
            }
        }

        @media (min-width: 1024px) {
            .modal-content {
                max-width: 560px;
            }

            .modal-image-container {
                height: 320px;
            }

            .modal-body {
                padding: 2.25rem;
            }

            .modal-product-name {
                font-size: 1.5rem;
            }
        }

        .back-button {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 64px;
            height: 64px;
            border-radius: 20px 20px 20px 0px;
            background: linear-gradient(135deg, #1a4d2e 0%, #143d24 100%);
            border: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 8px 30px rgba(26, 77, 46, 0.35);
            z-index: 1000;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            gap: 2px;
            color: white;
        }

        .back-button:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(26, 77, 46, 0.45);
        }

        .back-button:active {
            transform: translateY(-1px) scale(0.98);
        }

        .back-button i {
            font-size: 1.3rem;
            color: white;
            line-height: 1;
        }

        .back-button span {
            font-size: 0.65rem;
            font-weight: 700;
            opacity: 0.9;
            font-family: 'Vazirmatn', sans-serif;
        }
        
        @media (min-width: 480px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .categories-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (min-width: 768px) {
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
            }
            
            .categories-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 2rem;
            }

            .category-card {
                padding: 2rem 1.5rem;
            }

            .horizontal-categories-wrapper {
                gap: 1.8rem;
            }

            .horizontal-category-card {
                width: 75px;
                height: 75px;
            }

            .horizontal-category-name {
                font-size: 0.85rem;
            }

            .modal-content {
                max-width: 600px;
            }
        }
        
        @media (min-width: 1024px) {
            .categories-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 2.5rem;
            }
            
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 2rem;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .fade-in-up {
            animation: fadeInUp 0.6s ease-out;
        }

        @media (max-width: 768px) {
            body {
                -webkit-text-size-adjust: none;
                -ms-text-size-adjust: none;
            }
        }
        
        
.category-icon {
  width: 100%;
  height: 70%;
  object-fit: contain;
  margin: 0 auto 1.2rem;
  padding: 0;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.horizontal-category-icon {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  object-fit: contain;
  padding: 0px;
}

 .contact-button {
     position: fixed;
     bottom: 2rem;
     left: 2rem;
     width: 56px;
     height: 56px;
     border-radius: 50%;
     background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
     border: none;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
     z-index: 1000;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     text-decoration: none;
     color: white;
     font-size: 1.4rem;
 }

 .contact-button:hover {
     transform: translateY(-3px) scale(1.1);
     box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
 }

 .contact-button i {
     font-size: 1.4rem;
     color: white;
 }

 .stage-1 .contact-button,
 .stage-2 .contact-button {
     display: flex;
 }

 .stage-1 .back-button,
 .stage-2 .back-button {
     display: flex;
  }

  .unlimited-text {
     font-size: 0.75rem;
     color: #6366f1;
     font-weight: 700;
     background: #eef2ff;
     padding: 2px 8px;
     border-radius: 50px;
     margin-right: 6px;
     white-space: nowrap;
 }

 .new-badge {
     position: absolute;
     top: 10px;
     left: 10px;
     background: linear-gradient(135deg, #10b981 0%, #059669 100%);
     color: white;
     padding: 4px 10px;
     border-radius: 20px;
     font-size: 11px;
     font-weight: 700;
     z-index: 10;
     box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
     animation: pulse 2s infinite;
 }

 @keyframes pulse {
     0% {
         box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
     }
     50% {
         box-shadow: 0 4px 15px rgba(16, 185, 129, 0.6);
     }
     100% {
         box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
     }
 }

 .product-item {
     position: relative;
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
     border-radius: 0;
     overflow: hidden;
     display: flex;
     height: 150px;
     cursor: pointer;
     transition: all 0.3s ease;
     backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.1);
  }

  .loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.5s ease;
  background-color: rgba(0, 0, 0, 0.17);
  backdrop-filter: blur(10px);
}
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #ffe300;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }
        .loading-text {
            font-family: 'Vazirmatn', sans-serif;
            color: #fff;
            font-size: 1.1rem;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }


        .product-item.unavailable {
            opacity: 0.6;
            position: relative;
            cursor: not-allowed;
        }
        .product-item.unavailable::after {
            content: 'ناموجود';
            position: absolute;
            top: 50%;
            left: 25%;
            transform: translate(-50%, -50%) rotate(-10deg);
            font-size: 1.5rem;
            font-weight: 900;
            color: rgba(220, 38, 38, 0.8);
            border: 3px solid rgba(220, 38, 38, 0.8);
            padding: 5px 15px;
            border-radius: 8px;
            pointer-events: none;
            z-index: 10;
        }
        .product-item.unavailable .product-price {
            text-decoration: line-through;
            color: #999;
        }

        .modal-image-container {
            width: 100%;
            overflow: hidden;
            border-radius: 30px;
            background-color: #e4e4e4;
            position: relative;
            margin-bottom:20px;
        }
        .modal-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 30px;
        }

        .horizontal-categories, .menu-container {
            display: none; /* در ابتدا مخفی هستند */
        }
        
        .d-block {
            display: block !important;
        }
        
        
        


@media (max-width: 1024px) {
    .category-name {
        font-size: 14px;
    }
    .section-title {
  font-size: 20px;
  font-weight: 700;
    }
    .product-name {
  font-size: 16px;
    }
    
    .scroll-text {
  display: flex;
    }
}

.bgprice {
  background: #ffffff30;
  display: flex;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.section-title span {
  background: #2d524ae0;
  padding: 10px;
  color: #fff;
  border-radius: 20px 20px 0px 00px;
}

/* استایل‌های اضافه برای مشتریان و هزینه‌ها */
.customer-select-section {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.customer-select-section .form-control {
    font-size: 13px;
}

#customerSuggestions {
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.btn-clear-customer {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
}

#selectedCustomerInfo {
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 8px;
    font-size: 13px;
}

/* هزینه‌ها */
#expensesTable .payment-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

#expensesTable .payment-status.paid {
    background: #d4edda;
    color: #155724;
}

#expensesTable .payment-status.unpaid {
    background: #fff3cd;
    color: #856404;
}

/* گزارشات */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.report-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid var(--primary);
}

.report-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.report-card .amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.report-card .amount small {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

/* Auth Modal */
#customerAuthSection {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.btn-login {
    background: rgba(255,255,255,0.95);
    color: #1a4d2e;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#customerInfo {
    background: rgba(255,255,255,0.95);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

#customerNameDisplay {
    font-weight: 700;
    color: #1a4d2e;
    font-size: 0.9rem;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #c82333;
    transform: scale(1.1);
}

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal-overlay.active {
    display: flex;
}

#profileModalOverlay {
    z-index: 10;
}

  .auth-modal-content {
      background: white;
      border-radius: 2rem;
      max-width: 420px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 25px 80px rgba(0,0,0,0.3);
      animation: modalIn 0.3s ease;
      padding: 2rem;
  }

  .reservation-phone-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      color: white;
      text-decoration: none;
      padding: 1rem 2rem;
      border-radius: 1rem;
      font-size: 1.1rem;
      font-weight: 700;
      transition: all 0.3s ease;
      font-family: 'Vazirmatn', sans-serif;
      box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
      width: 100%;
  }

  .reservation-phone-btn:hover {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
      color: white;
  }

  .profile-modal-content {
     max-width: 420px;
     padding: 0;
     overflow-x: hidden;
     overflow-y: auto;
 }

 .profile-header {
     background: linear-gradient(135deg, #1a4d2e 0%, #143d24 100%);
     padding: 2.5rem 1.5rem 1.5rem;
     text-align: center;
     position: relative;
 }

 .profile-avatar {
     width: 90px;
     height: 90px;
     border-radius: 50%;
     background: linear-gradient(135deg, #e8ae87, #f59e0b);
     color: white;
     font-size: 2.5rem;
     font-weight: 800;
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0 auto 1rem;
     border: 4px solid rgba(255,255,255,0.3);
     box-shadow: 0 8px 25px rgba(0,0,0,0.2);
 }

 .profile-name {
     color: white;
     font-size: 1.3rem;
     font-weight: 800;
     margin: 0 0 0.25rem;
 }

 .profile-username {
     color: rgba(255,255,255,0.8);
     font-size: 0.9rem;
     font-weight: 500;
     margin: 0;
 }

 .profile-stats {
     display: flex;
     justify-content: space-around;
     padding: 1.25rem 1rem;
     background: white;
     border-bottom: 1px solid #f1f3f5;
 }

 .profile-stat {
     text-align: center;
 }

 .profile-stat-value {
     font-size: 1.2rem;
     font-weight: 800;
     color: #1a4d2e;
 }

 .profile-stat-label {
     font-size: 0.75rem;
     color: #6c757d;
     font-weight: 600;
     margin-top: 2px;
 }

 .profile-body {
     padding: 1.25rem;
 }

 .profile-info-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0.75rem 0;
     border-bottom: 1px solid #f1f3f5;
 }

 .profile-info-label {
     font-size: 0.9rem;
     color: #6c757d;
     font-weight: 500;
 }

 .profile-info-value {
     font-size: 0.95rem;
     color: #1a1a1a;
     font-weight: 700;
 }

 .profile-referral-section {
     margin-top: 1rem;
     padding: 1rem;
     background: #f8fff9;
     border-radius: 1rem;
     border: 2px dashed #1a4d2e;
 }

 .profile-referral-label {
     font-size: 0.85rem;
     font-weight: 700;
     color: #1a4d2e;
     margin-bottom: 0.5rem;
 }

 .profile-referral-box {
     display: flex;
     gap: 0.5rem;
     margin-bottom: 0.5rem;
 }

 .profile-referral-box input {
     flex: 1;
     padding: 0.6rem 0.75rem;
     border: 2px solid #e9ecef;
     border-radius: 0.75rem;
     font-size: 0.85rem;
     font-family: 'Vazirmatn', sans-serif;
     background: white;
     color: #6c757d;
 }

 .profile-copy-btn {
     background: #1a4d2e;
     color: white;
     border: none;
     padding: 0.6rem 1rem;
     border-radius: 0.75rem;
     font-size: 0.85rem;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s ease;
     font-family: 'Vazirmatn', sans-serif;
 }

 .profile-copy-btn:hover {
     background: #143d24;
 }

 .profile-share-btn {
     background: #e8ae87;
     color: white;
     border: none;
     padding: 0.6rem 1rem;
     border-radius: 0.75rem;
     font-size: 0.85rem;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s ease;
     font-family: 'Vazirmatn', sans-serif;
 }

 .profile-share-btn:hover {
     background: #d4956e;
 }

 .profile-referral-note {
     font-size: 0.8rem;
     color: #6c757d;
     line-height: 1.5;
 }

 .profile-edit-btn {
     width: 100%;
     margin-top: 1rem;
     background: transparent;
     color: #1a4d2e;
     border: 2px solid #1a4d2e;
     padding: 0.8rem;
     border-radius: 1rem;
     font-size: 0.95rem;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s ease;
     font-family: 'Vazirmatn', sans-serif;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
 }

 .profile-edit-btn:hover {
     background: #f8fff9;
 }

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f3f5;
    border: none;
    color: #495057;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-close-modal:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.auth-header {
    margin-bottom: 1.5rem;
}

.auth-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8ae87, #1a4d2e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.auth-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.auth-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a4d2e;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
    text-align: right;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    direction: ltr;
}

.input-group input:focus {
    outline: none;
    border-color: #e8ae87;
    box-shadow: 0 0 0 4px rgba(232, 174, 135, 0.2);
}

.input-group label {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.auth-submit-btn {
    background: linear-gradient(135deg, #e8ae87, #1a4d2e);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 77, 46, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.jalali-date-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Keep JalaliDatePicker directly above site modals. */
jdp-overlay { z-index: 101 !important; }
jdp-container { z-index: 102 !important; font-family: 'Vazirmatn', sans-serif !important; }
#profileBirthPicker { direction: ltr; text-align: center; cursor: pointer; background: #fff; }

.jalali-select {
    flex: 1;
    min-width: 70px;
    padding: 0.75rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    background: white;
    cursor: pointer;
}

.jalali-select:focus {
    outline: none;
    border-color: #e8ae87;
    box-shadow: 0 0 0 4px rgba(232, 174, 135, 0.2);
}

.auth-back-btn {
    background: transparent;
    color: #6c757d;
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-back-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
    direction: ltr;
}

.otp-digit {
    width: 50px;
    height: 60px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.otp-digit:focus {
    outline: none;
    border-color: #e8ae87;
    box-shadow: 0 0 0 4px rgba(232, 174, 135, 0.2);
}

.otp-digit.filled {
    border-color: #1a4d2e;
    background: #f8fff9;
}

.auth-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .otp-digit {
        width: 42px;
        height: 52px;
        font-size: 1.2rem;
    }

    .auth-modal-content {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    #customerAuthSection {
        flex-direction: column;
        gap: 8px;
    }
}

.topup-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 1rem;
}

.topup-amount-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a4d2e;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.topup-amount-btn:hover {
    border-color: #e8ae87;
    background: #fff9f5;
}

.topup-amount-btn.selected {
    border-color: #1a4d2e;
    background: #f8fff9;
    color: #1a4d2e;
}

/* Reservation Phone Button in Hero */
.hero-reservation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a4d2e 0%, #143d24 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0px 0px 30px rgba(26, 77, 46, 0.4);
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    flex-shrink: 0;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    min-width: 180px;
    max-width: 320px;
    text-align: center;
}

.hero-reservation-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0px 0px 40px rgba(26, 77, 46, 0.6);
    color: white;
}

/* Product Modal Cart Section */
.modal-cart-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 0.25rem;
}

.cart-qty-control .cart-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #1a4d2e;
}

.cart-qty-control .cart-qty-btn:hover {
    background: #1a4d2e;
    color: white;
    border-color: #1a4d2e;
}

.cart-qty-control span {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    color: #1a4d2e;
}

.modal-add-cart-btn {
    background: linear-gradient(135deg, #e8ae87, #1a4d2e);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-add-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 77, 46, 0.3);
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    z-index: 1500;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.floating-cart.minimized .floating-cart-body {
    display: none;
}

.floating-cart.minimized .floating-cart-toggle i {
    transform: rotate(180deg);
}

.floating-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    user-select: none;
}

.floating-cart-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a4d2e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-count-badge {
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    min-width: 24px;
    text-align: center;
}

.floating-cart-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-cart-body {
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
    max-height: 50vh;
}

.cart-items-container {
    max-height: 30vh;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.95rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a4d2e;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info p {
    font-size: 0.8rem;
    color: #6c757d;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cart-item-controls .cart-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #1a4d2e;
}

.cart-item-controls .cart-qty-btn:hover {
    background: #1a4d2e;
    color: white;
    border-color: #1a4d2e;
}

.cart-item-controls span {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    transition: all 0.2s ease;
}

.cart-remove-btn:hover {
    transform: scale(1.2);
}

.cart-summary {
    padding-top: 1rem;
    border-top: 2px solid #f1f3f5;
    margin-top: 0.5rem;
}

 .cart-total-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: 1.1rem;
     font-weight: 800;
     color: #1a4d2e;
     margin-bottom: 1rem;
 }

 .cart-delivery-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: 0.95rem;
     font-weight: 600;
     color: #6c757d;
     margin-bottom: 0.5rem;
 }

.cart-discount-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cart-discount-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-family: 'Vazirmatn', sans-serif;
    text-align: center;
}

.cart-discount-row input:focus {
    outline: none;
    border-color: #e8ae87;
}

.apply-discount-btn {
    background: #1a4d2e;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.apply-discount-btn:hover {
    background: #143d24;
}

.cart-discount-info {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.cart-order-type {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    justify-content: center;
}

.order-type-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 600;
}

.order-type-label:has(input:checked) {
    border-color: #1a4d2e;
    background: #f8fff9;
}

.order-type-label input {
    accent-color: #1a4d2e;
}

.cart-delivery-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    justify-content: center;
}

.delivery-method-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 600;
}

.delivery-method-label:has(input:checked) {
    border-color: #1a4d2e;
    background: #f8fff9;
}

.delivery-method-label input {
    accent-color: #1a4d2e;
}

.cart-table-number {
    margin-bottom: 0.75rem;
}

.cart-table-number input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    text-align: center;
}

.cart-table-number input:focus {
    outline: none;
    border-color: #e8ae87;
}

.cart-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #e8ae87, #1a4d2e);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 77, 46, 0.3);
}

.cart-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cart-next-btn {
    width: 100%;
    background: linear-gradient(135deg, #e8ae87, #1a4d2e);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 77, 46, 0.3);
}

.cart-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cart-back-btn {
    flex: 1;
    background: transparent;
    color: #6c757d;
    border: 2px solid #e9ecef;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-back-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.cart-wizard-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cart-wizard {
    position: relative;
}

.cart-step {
    animation: modalIn 0.3s ease;
}

.cart-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.payment-method-label:has(input:checked) {
    border-color: #1a4d2e;
    background: #f8fff9;
}

.payment-method-label input {
    accent-color: #1a4d2e;
    width: 1.2rem;
    height: 1.2rem;
}

.cart-wallet-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.cart-floating-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    animation: modalIn 0.3s ease;
}

.cart-floating-success {
    background: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    animation: modalIn 0.3s ease;
}


 /* Cart FAB */
 .cart-fab {
     position: fixed;
     bottom: 2rem;
     left: 50%;
     transform: translateX(-50%) translateY(0);
     background: linear-gradient(135deg, #10b981 0%, #059669 100%);
     color: white;
     border: none;
     border-radius: 50px;
     padding: 0.9rem 1.5rem;
     font-size: 1rem;
     font-weight: 800;
     cursor: pointer;
     box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
     z-index: 1600;
     transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
     display: none;
     align-items: center;
     gap: 0.6rem;
     font-family: 'Vazirmatn', sans-serif;
     border: 3px solid rgba(255,255,255,0.25);
 }

 .cart-fab.visible {
     display: flex;
 }

 .cart-fab:hover {
     transform: translateX(-50%) translateY(-4px) scale(1.05);
     box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
 }

 .cart-fab:active {
     transform: translateX(-50%) translateY(-1px) scale(0.98);
 }

 .cart-fab i {
     font-size: 1.3rem;
 }

 .cart-fab-badge {
     background: white;
     color: #059669;
     font-size: 0.75rem;
     font-weight: 900;
     padding: 2px 10px;
     border-radius: 50px;
     min-width: 28px;
     text-align: center;
     box-shadow: 0 2px 8px rgba(0,0,0,0.15);
 }

 .cart-fab-panel {
     position: fixed;
     bottom: 0;
     left: 0;
     right: 0;
     background: white;
     border-radius: 1.5rem 1.5rem 0 0;
     box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
     z-index: 1550;
     max-height: 65vh;
     display: flex;
     flex-direction: column;
     transform: translateY(100%);
     transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .cart-fab-panel.open {
     transform: translateY(0);
 }

 .cart-fab-overlay {
     position: fixed;
     inset: 0;
     background: rgba(0,0,0,0.4);
     z-index: 1540;
     opacity: 0;
     pointer-events: none;
     transition: opacity 0.3s ease;
 }

 .cart-fab-overlay.open {
     opacity: 1;
     pointer-events: auto;
 }

 /* Floating Cart (legacy, keep for compatibility but hide) */
 .floating-cart {
     display: none !important;
 }

  /* Responsive adjustments */
  @media (max-width: 768px) {
      .floating-cart {
          max-height: 60vh;
      }
      
      .modal-cart-section {
          flex-direction: column;
      }

      .hero-reservation-btn {
          padding: 0.9rem 1.25rem;
          font-size: 0.95rem;
          min-width: 160px;
          max-width: 280px;
      }

      .hero-games-btn {
          padding: 0.9rem 1.25rem;
          font-size: 0.95rem;
          min-width: 160px;
          max-width: 280px;
      }

      .scroll-indicator {
          width: 100%;
          max-width: 100%;
      }

      .cart-fab {
          bottom: 1.25rem;
          padding: 0.75rem 1.25rem;
          font-size: 0.95rem;
      }

      .contact-button {
          bottom: 1.25rem;
          width: 50px;
          height: 50px;
          font-size: 1.2rem;
      }

      .back-button {
          bottom: 1.25rem;
          right: 1.25rem;
          width: 56px;
          height: 56px;
      }
  }

/* Profile referral section */
.referral-invite-section {
    background: linear-gradient(135deg, #f8fff9, #e8f5e9);
    border: 2px dashed #1a4d2e;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.referral-invite-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a4d2e;
    margin-bottom: 0.75rem;
}

.referral-invite-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.referral-code-display {
    background: white;
    border: 2px solid #1a4d2e;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a4d2e;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.copy-referral-btn {
    background: #1a4d2e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.copy-referral-btn:hover {
    background: #143d24;
}

.hero-games-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:0;background:linear-gradient(135deg,#7c3aed 0%,#4f46e5 100%);color:#fff;text-decoration:none;border-radius:10px;padding:1rem 1.5rem;font-size:1rem;font-weight:700;cursor:pointer;box-shadow:0 0 30px rgba(79,70,229,.42);transition:all .3s ease;font-family:'Vazirmatn',sans-serif;flex-shrink:0;white-space:nowrap;min-width:180px;max-width:320px;text-align:center}.hero-games-btn:hover{transform:translateY(-2px) scale(1.05);box-shadow:0 0 40px rgba(79,70,229,.62);color:#fff}.hero-games-btn i{color:#fff}

/* Product experience */
.product-modal .modal-content{border-radius:28px;overflow:hidden;border:1px solid rgba(255,255,255,.7);box-shadow:0 28px 90px rgba(23,44,31,.32);background:linear-gradient(180deg,#fff 0,#fffaf6 100%)}
.product-modal .modal-image-container{min-height:250px;background:linear-gradient(135deg,#e7efe9,#f4ded0);position:relative}.product-modal .modal-image-container:after{content:"";position:absolute;inset:auto 0 0;height:40%;background:linear-gradient(transparent,rgba(0,0,0,.16));pointer-events:none}.product-modal .modal-image-container img{width:100%;height:100%;object-fit:cover;transition:transform .45s}.product-modal .modal-content:hover .modal-image-container img{transform:scale(1.035)}
.product-modal .modal-image-container{width:min(100%,50vh);aspect-ratio:1/1;height:auto;min-height:0;flex:0 0 auto;margin-inline:auto}
.product-modal .close-modal{background:rgba(255,255,255,.92);backdrop-filter:blur(8px);box-shadow:0 5px 20px rgba(0,0,0,.16);z-index:3}.product-modal .modal-body{padding:23px}.modal-kicker{display:inline-flex;gap:6px;align-items:center;background:#edf7f0;color:#1a6339;border-radius:50px;padding:6px 11px;font-size:12px;font-weight:800;margin-bottom:9px}.modal-quality-chips{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}.modal-quality-chips span{background:#f5eee8;color:#72503c;border-radius:50px;padding:6px 10px;font-size:11px;font-weight:700}.product-modal .modal-price{background:linear-gradient(135deg,#173f29,#246b42);color:white;border-radius:17px;padding:12px 16px}.product-modal .modal-price-value,.product-modal .modal-price-unit{color:white}.product-modal .modal-add-cart-btn{border-radius:14px;box-shadow:0 9px 24px rgba(26,99,57,.24)}

/* Layout polish preserves the existing hero, category cards and menu structure. */
.menu-search{box-sizing:border-box;width:100%;max-width:1200px;margin:18px auto 24px;padding:0 20px}
.menu-search-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 4px 10px;font-weight:700;font-size:14px;color:#274e39}.menu-search-heading small{font-weight:400;opacity:.6;font-size:11px}
.menu-search-field{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e1e9e3;border-radius:18px;padding:0 16px;box-shadow:0 6px 22px #25473308;transition:border-color .2s,box-shadow .2s}.menu-search-field:focus-within{border-color:#6d9379;box-shadow:0 0 0 3px #39745b10}.menu-search-field svg{width:21px;height:21px;flex:none;color:#62816b}.menu-search-field input{width:100%;min-width:0;height:54px;border:0;background:transparent;font:inherit;font-size:13px;outline:none;color:#203d2b}.menu-search-field input::-webkit-search-cancel-button{display:none}.menu-search-field button{border:0;background:#f0f5f1;color:#53705b;width:28px;height:28px;border-radius:50%;cursor:pointer;flex:none}.menu-search #menuSearchEmpty{padding:18px;text-align:center;font-size:13px;color:#698070}[hidden]{display:none!important}
.categories-wrapper,.products-container{box-sizing:border-box;width:100%;max-width:1200px;margin-left:auto;margin-right:auto}.category-card,.product-item{min-width:0}.product-name{overflow-wrap:anywhere}.products-grid{align-items:stretch}.horizontal-categories-wrapper{gap:10px}.section-title{line-height:1.8}
@media(max-width:600px){.menu-search{padding:0 14px;margin:14px auto 18px}.menu-search-heading{font-size:12px}.menu-search-heading small{font-size:10px}.menu-search-field{border-radius:14px;padding:0 12px;gap:9px}.menu-search-field input{height:47px;font-size:12px}.products-container{padding-left:12px;padding-right:12px}.category-section{margin-bottom:26px}.categories-grid{gap:12px}.product-name{line-height:1.8}}
