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

@font-face {
    font-family: 'IRANSansX';
    src: url('IRANSansXFaNum-Regular.woff2') format('woff2'),
         url('IRANSansXFaNum-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('IRANSansXFaNum-Bold.woff2') format('woff2'),
         url('IRANSansXFaNum-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('IRANSansXFaNum-Light.woff2') format('woff2'),
         url('IRANSansXFaNum-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Fredoka:wght@300;400;500;600;700&family=Luckiest+Guy&display=swap');

body {
    font-family: 'IRANSansX', 'Vazir', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.header {
    background: #ffffff;
    color: #F6AF00;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(29, 29, 27, 0.1);
    border-bottom: 2px solid #F6AF00;
}

.back-btn {
    background: #F6AF00;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #061F2C;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-small {
    max-width: 40px;
    height: auto;
    border-radius: 8px;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.3s ease;
    background: #F6AF00;
    color: white;
}

.cart-icon:hover {
    background: #061F2C;
}

.cart-text {
    font-size: 14px;
    font-weight: bold;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #F6AF00;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Search and Filter */
.search-filter {
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(29, 29, 27, 0.1);
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid #F6AF00;
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #061F2C;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #F6AF00;
}

.search-box input:focus {
    border-color: #F6AF00;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #F6AF00;
}

.category-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-btn {
    background: #ffffff;
    border: 2px solid #061F2C;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'IRANSansX', 'Vazir', 'Tahoma', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #F6AF00;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(29, 29, 27, 0.1);
}

.category-icon {
    font-size: 28px;
}

.category-btn.active {
    background: #F6AF00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 83, 0, 0.3);
}

.category-btn:hover:not(.active) {
    background: #061F2C;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(29, 29, 27, 0.15);
}

/* Menu Container */
.menu-container {
    padding: 20px;
    padding-bottom: 100px;
}

.menu-items {
    display: grid;
    gap: 20px;
}

.menu-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(29, 29, 27, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
    border: 2px solid #061F2C;
}

.menu-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(255, 83, 0, 0.2);
    border-color: #F6AF00;
}

.item-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.item-content:hover {
    background: rgba(255, 83, 0, 0.05);
}

.item-info {
    flex: 1;
}

.item-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F6AF00;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}


.item-info h3 {
    font-size: 18px;
    color: #F6AF00;
    margin-bottom: 8px;
}

.item-description {
    color: #666666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.item-price {
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #BDC3C7;
    font-size: 14px;
    margin-left: 8px;
}

.discounted-price {
    color: #E74C3C;
    font-weight: bold;
    font-size: 16px;
}

.current-price {
    color: #F6AF00;
    font-weight: bold;
    font-size: 16px;
}

.item-stock {
    margin-bottom: 15px;
    font-size: 14px;
}

.stock-label {
    color: #666666;
}

.stock-count {
    color: #F6AF00;
    font-weight: bold;
}

.stock-count.low-stock {
    color: #E74C3C;
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #F6AF00 0%, #F6AF00 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'IRANSansX', 'Vazir', 'Tahoma', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 83, 0, 0.3);
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #F6AF00 0%, #cc4400 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 83, 0, 0.4);
}

.add-to-cart-btn:disabled {
    background: #BDC3C7;
    cursor: not-allowed;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

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

.cart-header h3 {
    font-size: 18px;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.empty-cart {
    text-align: center;
    color: #7F8C8D;
    margin-top: 50px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ECF0F1;
}

.cart-item-info h4 {
    font-size: 16px;
    color: #F6AF00;
    margin-bottom: 5px;
}

.cart-item-info p {
    color: #7F8C8D;
    font-size: 14px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-controls button {
    background: #00D2AA;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.cart-item-controls button:hover {
    background: #00A085;
}

.cart-item-controls span {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #ECF0F1;
    background: #F8F9FA;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #F6AF00;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #061F2C 0%, #061F2C 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #061F2C 0%, #061F2C 100%);
    transform: translateY(-1px);
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Item Details Modal */
.item-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.item-modal.active {
    opacity: 1;
    visibility: visible;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ECF0F1;
}

.modal-header h2 {
    font-size: 20px;
    color: #F6AF00;
    font-family: 'IRANSansX', 'Vazir', 'Tahoma', sans-serif;
    font-weight: bold;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #7F8C8D;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: #ECF0F1;
}

.modal-body {
    padding: 20px;
}

.modal-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.modal-info p {
    color: #7F8C8D;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #F8F9FA;
    border-radius: 8px;
}

.detail-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    color: #7F8C8D;
    font-size: 12px;
    font-weight: bold;
}

.detail-content span:last-child {
    color: #F6AF00;
    font-size: 14px;
}

.modal-price {
    text-align: center;
    padding: 15px;
    background: #F8F9FA;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #ECF0F1;
}

.modal-add-btn {
    width: 100%;
    background: linear-gradient(135deg, #00D2AA 0%, #00A085 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'IRANSansX', 'Vazir', 'Tahoma', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 210, 170, 0.3);
}

.modal-add-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00A085 0%, #008B74 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 210, 170, 0.4);
}

.modal-add-btn:disabled {
    background: #BDC3C7;
    cursor: not-allowed;
}

/* Service Button */
.service-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00D2AA 0%, #00A085 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 210, 170, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.service-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 210, 170, 0.4);
}

.service-icon {
    font-size: 24px;
    color: white;
}

/* Service Menu */
.service-menu {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.service-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.service-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid #ECF0F1;
}

.service-option:last-child {
    border-bottom: none;
}

.service-option:hover {
    background: #F8F9FA;
}

.service-option-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.service-option-text {
    font-size: 14px;
    color: #F6AF00;
    font-family: 'IRANSansX', 'Vazir', 'Tahoma', sans-serif;
    font-weight: bold;
}

/* Service Overlay */
.service-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00D2AA 0%, #00A085 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 210, 170, 0.3);
    z-index: 10001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 18px;
}

.notification-text {
    font-size: 14px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .header {
        padding: 12px 15px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .search-filter {
        padding: 15px;
    }
    
    .menu-container {
        padding: 15px;
    }
    
    .item-content {
        gap: 12px;
        padding: 12px;
    }
    
    .item-image {
        width: 100px;
        height: 100px;
    }
    
    .item-info h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .category-filter {
        gap: 8px;
    }
    
    .category-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .category-icon {
        font-size: 24px;
    }
    
    .search-box input {
        padding: 10px 35px 10px 12px;
        font-size: 14px;
    }
    
    .item-content {
        gap: 10px;
        padding: 10px;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .item-info h3 {
        font-size: 15px;
    }
    
    .item-description {
        font-size: 13px;
    }
    
    .add-to-cart-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 15px;
    }
    
    .notification-text {
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
    }
    
    .modal-image {
        height: 150px;
    }
    
    .service-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .service-icon {
        font-size: 20px;
    }
    
    .service-menu {
        bottom: 75px;
        right: 15px;
        min-width: 180px;
    }
    
    .service-option {
        padding: 12px 15px;
    }
    
    .service-option-text {
        font-size: 13px;
    }
}
