        * {
            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: 80%;
  max-width: 350px;
  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;
        }
        
        .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.8);
            backdrop-filter: blur(10px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

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

        .modal-content {
            background: hsl(var(--secondary));
            border-radius: 2rem;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

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

        .modal-header {
            overflow: hidden;
            border-radius: 2rem 2rem 0 0;
        }

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

        .close-modal {
            position: fixed;
            top: 1rem;
            left: 1rem;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            z-index:1000;
        }

        .close-modal:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: scale(1.1);
        }

        .modal-body {
            padding: 2rem;
        }

        .modal-product-name {
            font-size: 16px;
            font-weight: 800;
            color: hsl(var(--foreground));
            margin-bottom: 1rem;
            text-align: center;
        }

        .modal-product-description {
            font-size: 1rem;
            color: rgba(0,0,0,0.8);
            line-height: 1.6;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .modal-product-details {
            background: rgba(0,0,0,0.03);
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }

        .detail-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(0,0,0,0.1);
        }

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

        .detail-label {
            font-weight: 600;
            color: rgba(0,0,0,0.7);
        }

        .detail-value {
            font-weight: 700;
            color: hsl(var(--foreground));
        }

        .modal-price {
            text-align: center;
            margin-top: 2rem;
        }

        .modal-price-value {
            font-size: 16px;
            font-weight: 800;
            color: hsl(var(--foreground));
            margin-bottom: 0.5rem;
        }

        .modal-price-unit {
            font-size: 13px;
            color: rgba(0,0,0,0.7);
            font-weight: 600;
        }

        .back-button {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 60px;
            height: 60px;
            border-radius: 30px 30px 0px 30px;
            background: linear-gradient(135deg, hsl(var(--primary)) 0%, rgba(232, 173, 133, 0.9) 100%);
            border: 2px solid rgba(255,255,255,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .back-button:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
        }

        .back-button i {
            font-size: 1.5rem;
            color: hsl(var(--primary-foreground));
        }
        
        @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;
            }

            .modal-header {
                height: 0;
            }
        }
        
        @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: 60px;
    height: 60px;
    border-radius: 30px 30px 30px 0px;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, rgba(232, 173, 133, 0.9) 100%);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.contact-button i {
    font-size: 1.5rem;
    color: hsl(var(--primary-foreground));
}

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

.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;
}