@font-face {
    font-family: 'Aban';
    src: url('fonts/Aban.ttf') format('truetype');
}

@font-face {
    font-family: 'mitra';
    src: url('fonts/Mitra.ttf') format('truetype');
}

@font-face {
    font-family: 'yekan';
    src: url('fonts/Yekan.ttf') format('truetype');
}

:root {
    --primary: #023B2E;
    --primary-dark: #6d9c81;
    --secondary: #FF9F1C;
    --light: #F8F9FA;
    --dark: rgb(65 75 59);
    --gray: #6C757D;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'yekan', 'mitra';
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #023B2E;
    color:#b9b9b9;
    line-height: 1.6;
}

/* Modern Header */
.app-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #023B2E 0%, #3A6D5E 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

.logo-img {
    background: url("images/IMG_9130-2.PNG") no-repeat center center;
    background-size: cover;
    width: 70px;
    height: 70px;
    border-radius: 50%;

    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
}

/* Contact Button */
.contact-btn {
    background: linear-gradient(135deg, #FF9F1C 0%, #FF8C00 100%);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
    position: relative;
    overflow: hidden;
}

/* Cart Button in Header */
.cart-btn-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%, #17a2b8 100%);
    border: none;
    border-radius: 30px;
    padding: 0.8rem 1.2rem;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    /* overflow: hidden; */
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* .cart-btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
} */

.cart-btn-header:hover::before {
    left: 100%;
}

.cart-btn-header:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 50%, #007bff 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

.cart-btn-header:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transition: all 0.1s;
}

.cart-btn-header i {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.cart-btn-header:hover i {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cart-btn-header .cart-badge {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    animation: cartBadgePulse 2s infinite;
}

@keyframes cartBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(220, 53, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(220, 53, 69, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 159, 28, 0.4);
    background: linear-gradient(135deg, #FF8C00 0%, #FF7F00 100%);
}

.contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
}

.contact-btn i {
    font-size: 1rem;

}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);

        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        letter-spacing: 2px;
        transition: all 0.3s ease;
    }
}

.logo-text:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

/* Header Spacer - Removed */

/* Responsive Design */
@media (max-width: 768px) {
    .app-bar {
        padding: 0.8rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.8rem;
        min-height: 70px;
        flex-wrap: nowrap;
    }

    .contact-btn {
        order: 3;
        flex: none;
        flex-shrink: 0;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
        white-space: nowrap;
    }

    .logo-container {
        order: 2;
        flex: 1;
        justify-content: center;
        gap: 0.8rem;
        min-width: 0;
    }

    .cart-btn-header {
        order: 1;
        flex: none;
        flex-shrink: 0;
        /* padding: 0.6rem 1rem; */
        font-size: 1.3rem;
        border-radius: 25px;
        white-space: nowrap;
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .cart-btn-header:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .logo-img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-btn span {
        display: inline;
    }

    .contact-btn i {
        font-size: 1.1rem;
        margin: 0;
    }

    .contact-dropdown {
        min-width: 280px;
        max-width: 90vw;
        padding: 1.2rem;
    }

    .contact-dropdown.show {
        min-width: 280px;
        max-width: 90vw;
        width: 90vw;
        padding: 1.2rem;
        margin: 0 5vw;
        border-radius: 12px;
        max-height: 85vh;
    }

    .contact-section {
        margin-bottom: 1.2rem;
    }

    .contact-section h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .app-bar {
        padding: 0.6rem 0.8rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        min-height: 60px;
        flex-wrap: nowrap;
    }

    .contact-btn {
        order: 3;
        flex: none;
        flex-shrink: 0;
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
        border-radius: 18px;
        min-width: 50px;
        white-space: nowrap;
    }

    .logo-container {
        order: 2;
        flex: 1;
        justify-content: center;
        gap: 0.5rem;
        min-width: 0;
        max-width: calc(100% - 100px);
    }

    .cart-btn-header {
        order: 1;
        flex: none;
        flex-shrink: 0;
        /* padding: 0.5rem 0.7rem; */
        font-size: 1.3rem;
        border-radius: 20px;
        min-width: 50px;
        white-space: nowrap;
        box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .cart-btn-header:hover {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .logo-img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .contact-btn span {
        display: none;
    }

    .contact-btn i {
        font-size: 0.8rem;
        margin: 0;
    }

    .cart-btn-header span {
        display: none;
    }

    .cart-btn-header i {
        font-size: 1.3rem;
        margin: 0;
    }

    .cart-btn-header .cart-badge {
        top: -5px;
        right: -5px;
        min-width: 23px;
        height: 23px;
        font-size: 0.6rem;
        border: 1px solid white;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .contact-dropdown {
        padding: 1rem;
        min-width: 260px;
    }

    .contact-dropdown.show {
        min-width: 260px;
        max-width: 95vw;
        width: 95vw;
        padding: 1rem;
        margin: 0 2.5vw;
        border-radius: 10px;
        max-height: 80vh;
    }

    .contact-section {
        margin-bottom: 1rem;
    }

    .contact-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .contact-section p,
    .contact-section a {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Advanced Search
        .search-container {
            padding: 1rem;
            background: white;
            position: sticky;
            top: 80px;
            z-index: 999;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .search-box {
            display: flex;
            background: var(--light);
            border-radius: 50px;
            overflow: hidden;
            padding: 0.5rem 1rem;
        }

        .search-box input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 0.5rem;
            font-size: 1rem;
        }

        .search-box button {
            background: none;
            border: none;
            color: var(--gray);
        } */
.phone-number {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;
 
    border-radius: 15px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}
/* Smart Filters */
.filter-section {
    padding: 1rem;
    background: #023B2E;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 82px;
    z-index: 998;
    border-bottom: 1px solid rgba(101, 127, 114, 0.1);
}

@media (max-width: 768px) {
    .filter-section {
        top: 70px;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .filter-section {
        top: 60px;
        padding: 0.6rem;
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-grid.row-mode {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-grid.row-mode::-webkit-scrollbar {
    display: none;
}

.filter-grid.row-mode .filter-chip {
    min-width: auto;
    padding: 0.5rem 1rem;
    min-height: 40px;
    font-size: 0.85rem;
    flex-shrink: 0;

    white-space: nowrap;
}

.filter-grid.row-mode .filter-chip i {
    font-size: 1rem;
}

.filter-chip {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: #d9b7b72e;
    backdrop-filter: blur(5px);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    transform: scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    min-height: 60px;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-chip img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.filter-chip.active img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.filter-chip:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.filter-chip i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.filter-chip:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(101, 127, 114, 0.1);
    border-color: rgba(101, 127, 114, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-chip.active {
    background: rgba(255, 255, 255, 0.219);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(101, 127, 114, 0.3);

}

.filter-chip.active i {
    opacity: 1;
    color: white;
}

.filter-chip.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: shine 2s infinite;
}

.filter-chip.highlight {
    background: rgba(255, 159, 28, 0.9);
    color: white;
    border-color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .filter-chip {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-height: 50px;
        flex-direction: column;
        gap: 0.3rem;
    }

    .filter-chip img {
        width: 40px;
        height: 40px;
    }

    .filter-chip i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .filter-chip {
        padding: 0.5rem;
        font-size: 0.75rem;
        min-height: 45px;
        flex-direction: column;
        gap: 0.2rem;
    }

    .filter-chip img {
        width: 40px;
        height: 40px;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Modern Menu Items */
.menu-container {
    padding: 1rem;
    display: grid;
    background: #023B2E;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-container.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.category-section {
    background: white;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 180px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
.category-section:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
} */

.category-header {
    padding: 1rem;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
}



.menu-items {
    padding: 0.5rem;
    background-color: #295147;
}

.menu-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1.5px solid #657F72;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

/* Remove availability styles */

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

.menu-item:hover {
    background: rgba(101, 127, 114, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.menu-item:hover .item-image {
    transform: scale(1.05);
}

.item-details {
    flex: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
        margin-top: 15px;

}

.item-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.item-price {
    color: rgb(185 185 185);
    font-weight: 700;
}

.item-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-tags {
    display: flex;
    gap: 0.5rem;
}

.item-tag {
    background: transparent;
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b9b9b9;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.action-btn:hover {
    background: var(--dark);
    color: white;
    transform: scale(1.1);
}

/* Three lines icon for variants */
.three-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 12px;
    height: 12px;
    align-items: center;
    justify-content: center;
}

.three-lines span {
    width: 12px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.action-btn:hover .three-lines span {
    background-color: white;
}

/* Cart Modal */
/* اضافه کردن این استایل‌ها به فایل style.css */

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cart-center-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.cart-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    z-index: 1002;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.cart-header {
    padding: 15px 20px;
    background-color: #023B2E;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 2px solid #eee;
}

.cart-item-name {
    flex: 2;
    font-weight: 500;
}

.cart-item-quantity {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #657F72;
    background-color: white;
    color: #8B4513;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background-color: #657F72;
    color: white;
}

.quantity {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cart-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap:15px;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #777;
}

.primary-btn {
    display:none;
    background-color: #023B2E;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #587064;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}



/* Floating Cart - Hidden in mobile */
.cart-btn {
    position: fixed;
    top: 17px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .cart-btn {
        display: none;
    }
}

.cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: white;
    width: 20px;
    height: 20px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Export Button */
.export-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
    animation: fadeIn 0.3s ease-out;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.contact-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.contact-header {
    background: linear-gradient(135deg, #023B2E 0%, #3A6D5E 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.contact-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.contact-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(2, 59, 46, 0.05);
    border-radius: 12px;
    border-left: 4px solid #FF9F1C;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(2, 59, 46, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    color: #023B2E;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-details h4 {
    color: #023B2E;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.contact-details p {
    color: #4A5D52;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Map Container Styles */
.map-container {
    flex-direction: column;
    align-items: stretch;
}

.map-container i {
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.map-placeholder {
    margin-top: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-placeholder iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 8px;
}

.map-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.map-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #023B2E 0%, #3A6D5E 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(2, 59, 46, 0.2);
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 59, 46, 0.3);
    background: linear-gradient(135deg, #3A6D5E 0%, #4A7D6E 100%);
}

.map-btn i {
    font-size: 1rem;
}

.google-maps {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
}

.google-maps:hover {
    background: linear-gradient(135deg, #3367d6 0%, #2d8f47 100%);
}

.neshan-app {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.neshan-app:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #E8851A 100%);
}

/* Responsive Design for Contact Modal */
@media (max-width: 768px) {
    .contact-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }

    .contact-header {
        padding: 1rem 1.5rem;
    }

    .contact-header h3 {
        font-size: 1.3rem;
    }

    .contact-body {
        padding: 1.5rem;
        max-height: 70vh;
    }

    .contact-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .contact-item i {
        font-size: 1.1rem;
    }

    .contact-details h4 {
        font-size: 0.9rem;
    }

    .contact-details p {
        font-size: 0.8rem;
    }

    .map-placeholder iframe {
        height: 150px;
    }

    .map-buttons {
        flex-direction: column;
        gap: 0.4rem;
    }

    .map-btn {
        min-width: auto;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact-content {
        width: 98%;
        border-radius: 15px;
    }

    .contact-header {
        padding: 1rem;
    }

    .contact-header h3 {
        font-size: 1.2rem;
    }

    .contact-body {
        padding: 1rem;
        max-height: 75vh;
    }

    .contact-info {
        gap: 1rem;
    }

    .contact-item {
        padding: 0.7rem;
        gap: 0.7rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        font-size: 1.3rem;
        margin-top: 0;
        align-self: center;
    }

    .contact-details {
        text-align: center;
    }

    .map-container {
        text-align: left;
    }

    .map-container .contact-details {
        text-align: left;
    }

    .map-placeholder iframe {
        height: 120px;
    }

    .map-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .map-btn i {
        font-size: 0.9rem;
    }
}

/* Variant Modal */
.variant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
}

.variant-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.variant-content {
    color: #f1ece1;
    background-color: #323f39;
    border-radius: 10px;
    width: 20%;
    position: fixed;
    /* Change to fixed for full-page centering */
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust position */
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-option {
    padding: 12px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.variant-option:hover {
    background-color: rgba(101, 127, 114, 0.1);
}

.variant-option.selected {
    background-color: var(--primary);
    color: white;
}

/* Enhanced Toast Message System */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 350px;
    pointer-events: none;
}

.toast-message {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
    pointer-events: auto;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-message .toast-icon {
    flex-shrink: 0;
    margin-left: 15px;
    font-size: 1.2rem;
}

.toast-message .toast-content {
    flex-grow: 1;
    padding-right: 10px;
}

.toast-message .toast-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 5px;
}
.toast-message .toast-close {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
}

.toast-message .toast-close i {
    pointer-events: none; /* تا آیکون جلوی کلیک روی دکمه رو نگیره */
}

.toast-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--primary);
    animation: toast-timer 5s linear forwards;
}

.toast-message.success::after {
    background: var(--success);
}

.toast-message.info::after {
    background: var(--info);
}

.toast-message.warning::after {
    background: var(--warning);
}

.toast-message.error::after {
    background: var(--danger);
}

.toast-message.success .toast-icon {
    color: var(--success);
}

.toast-message.info .toast-icon {
    color: var(--info);
}

.toast-message.warning .toast-icon {
    color: var(--warning);
}

.toast-message.error .toast-icon {
    color: var(--danger);
}

@keyframes toast-timer {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

/* Contact Menu Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .variant-content {
        width: 80%;
    }

    .category-section {
        scroll-margin-top: 150px;
        margin-bottom: 1rem;
    }

    .menu-container {
        padding: 0.8rem;
        gap: 1rem;
    }

    .menu-item {
        flex-direction: row;
        padding: 1rem;
        gap: 0.8rem;
    }

    .item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

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

    .item-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .item-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .item-footer {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 0.8rem;
    }

    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .action-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .cart-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 20px;
    }

    .filter-scroll {
        padding: 0.5rem;
        scroll-snap-type: x mandatory;
    }

    .filter-chip {
        scroll-snap-align: center;
        padding: 1.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .variant-content {
        width: 95%;
        padding: 1rem;
    }

    .category-section {
        scroll-margin-top: 120px;
        margin-bottom: 0.8rem;
    }

    .menu-container {
        padding: 0.6rem;
        gap: 0.8rem;
    }

    .category-header {
        padding: 0.8rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .menu-items {
        padding: 0.3rem;
    }

    .menu-item {
        flex-direction: column;
        padding: 0.8rem;
        gap: 0.6rem;
        text-align: center;
    }

    .item-image {
        width: 100%;
        height: 230px;
        align-self: center;
    }

    .item-details {
        text-align: center;
    }

    .item-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .item-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }

    .item-footer {
        gap: 0.6rem;
        margin-top: 0.6rem;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .cart-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
}

/* انیمیشن پالس برای نمایش بخش فعال */
.category-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(101, 127, 114, 0.1);
    z-index: 1;
    pointer-events: none;
    animation: pulse-animation 1.5s ease-out;
    opacity: 0;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.skeleton-category {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.skeleton-header {
    height: 30px;
    width: 60%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.skeleton-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1.5px solid #eee;
}

.skeleton-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
}

.skeleton-content {
    flex: 1;
}

.skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-price {
    height: 20px;
    width: 30%;
    border-radius: 4px;
}

.skeleton-desc {
    height: 16px;
    width: 90%;
    margin: 0.8rem 0;
    border-radius: 4px;
}

.skeleton-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skeleton-tag {
    height: 24px;
    width: 60px;
    border-radius: 50px;
}

#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#pageLoader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .skeleton-item {
        flex-direction: column;
    }

    .skeleton-image {
        width: 100%;
        height: 180px;
    }

    .skeleton-tags {
        flex-wrap: wrap;
    }
}