/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Loader Spinner - Fast and smooth */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    will-change: opacity;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--blue-lighter);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    will-change: transform;
}

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

:root {
    /* Primary blue color from logo */
    --primary-blue: #214294;
    --blue-dark: #1a3575;
    --blue-light: #2d5ab8;
    --blue-lighter: #e8ecf5;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E0E0E0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic font support */
html[dir="rtl"] body {
    font-family: 'Segoe UI', Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--white);
    padding: 20px 0 10px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    position: relative;
}

/* Header Buttons Container - Left Side (Phone & Instagram) */
.header-buttons-left {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

html[dir="rtl"] .header-buttons-left {
    left: auto;
    right: 20px;
}

/* Phone Icon and Menu */
.phone-menu-container {
    position: relative;
}

.phone-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 66, 148, 0.3);
}

.phone-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

.phone-icon:hover {
    background-color: var(--blue-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(33, 66, 148, 0.4);
}

.phone-icon:active {
    transform: scale(0.95);
}

.phone-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 8px;
}

html[dir="rtl"] .phone-menu {
    right: auto;
    left: 0;
}

.phone-menu-container:hover .phone-menu,
.phone-menu-container:focus-within .phone-menu,
.phone-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.phone-number svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-blue);
    flex-shrink: 0;
}

.phone-number:hover {
    background-color: var(--blue-lighter);
    color: var(--primary-blue);
}

.phone-number:active {
    background-color: rgba(33, 66, 148, 0.1);
}

/* Instagram Icon */
.instagram-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
}

.instagram-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.instagram-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.instagram-icon:active {
    transform: scale(0.95);
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 66, 148, 0.3);
    z-index: 10;
}

html[dir="rtl"] .lang-switcher {
    right: auto;
    left: 20px;
}

.lang-switcher:hover {
    background-color: var(--blue-dark);
}

.lang-switcher:active {
    background-color: var(--blue-dark);
}

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

.logo-image {
    height: 80px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

.hero {
    text-align: center;
    padding: 30px 20px 15px 20px;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(33, 66, 148, 0.03) 0%, rgba(33, 66, 148, 0.01) 100%);
    border-radius: 0 0 24px 24px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Menu Section */
.menu-section {
    margin-bottom: 60px;
}

/* Menu Toggle Buttons */
.menu-toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.menu-toggle-btn {
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-toggle-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 66, 148, 0.15);
}

.menu-toggle-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(33, 66, 148, 0.3);
}

.menu-toggle-btn.active:hover {
    background-color: var(--blue-dark);
    transform: translateY(-2px);
}

/* Categories View */
.categories-view {
    display: block;
}

.categories-view.hidden {
    display: none;
}

/* All Items View */
.all-items-view {
    display: none;
}

.all-items-view.show {
    display: block;
}

.all-items-search-container {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.all-items-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
}

.all-items-search-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 20px rgba(33, 66, 148, 0.15);
}

/* Sort Container */
.sort-container {
    display: flex;
    align-items: center;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 66, 148, 0.15);
}

.sort-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 66, 148, 0.3);
}

.sort-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.sort-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sort-text {
    white-space: nowrap;
}

.sort-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sort-btn.active .sort-arrow {
    transform: rotate(180deg);
}

.all-items-search-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    opacity: 0.6;
}

html[dir="rtl"] .all-items-search-icon {
    margin-right: 0;
    margin-left: 12px;
}

.all-items-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
}

.all-items-search-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* All Items Grid */
.all-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.all-items-item-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.all-items-item-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(33, 66, 148, 0.15);
    border-color: var(--primary-blue);
}

.all-items-item-image {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.all-items-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.all-items-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: auto;
}

.all-items-item-category {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    opacity: 0.8;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-bottom: 30px;
}

.view-all-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(33, 66, 148, 0.3);
}

.view-all-btn:hover {
    background-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 66, 148, 0.4);
}

.view-all-btn:active {
    transform: translateY(0);
}

/* View All Modal */
.view-all-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.view-all-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 30px;
    border-radius: 16px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.view-all-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

html[dir="rtl"] .view-all-close {
    right: auto;
    left: 20px;
}

.view-all-close:hover {
    color: var(--primary-blue);
}

.view-all-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-align: center;
    padding-right: 40px;
}

html[dir="rtl"] .view-all-title {
    padding-right: 0;
    padding-left: 40px;
}

/* View All Search */
.view-all-search-container {
    margin-bottom: 30px;
}

.view-all-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.view-all-search-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 20px rgba(33, 66, 148, 0.15);
}

.view-all-search-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    opacity: 0.6;
}

html[dir="rtl"] .view-all-search-icon {
    margin-right: 0;
    margin-left: 12px;
}

.view-all-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
}

.view-all-search-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* View All Items Grid */
.view-all-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.view-all-item-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.view-all-item-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(33, 66, 148, 0.15);
    border-color: var(--primary-blue);
}

.view-all-item-image {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-all-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.view-all-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: auto;
}

.view-all-item-category {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Search Container */
.search-container {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 20px rgba(33, 66, 148, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

html[dir="rtl"] .search-icon {
    margin-right: 0;
    margin-left: 12px;
}

.search-box:focus-within .search-icon {
    opacity: 1;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.search-clear {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

html[dir="rtl"] .search-clear {
    margin-left: 0;
    margin-right: 10px;
}

.search-clear:hover {
    color: var(--primary-blue);
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background-color: transparent;
    border: none;
    border-radius: 16px;
    overflow: visible;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px;
    text-decoration: none;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    will-change: transform;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120px 120px at 50% 0%, rgba(33, 66, 148, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(33, 66, 148, 0.15);
    border-color: rgba(33, 66, 148, 0.4);
}

.menu-item:hover::before {
    opacity: 1;
}

html[dir="rtl"] .menu-item:hover {
    transform: translateY(-2px);
}


.menu-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-category-media {
    width: 100%;
    display: flex;
    justify-content: center;
}

.menu-category-image {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(33, 66, 148, 0.12);
    background: #f5f7fb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-category-media .menu-icon {
    width: 64px;
    height: 64px;
}

.menu-item:hover .menu-icon {
    transform: scale(1.1) rotate(2deg);
}

.menu-item:hover .menu-category-image {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(33, 66, 148, 0.18);
}

.menu-category-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.menu-text {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
}

.item-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .menu-categories {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .menu-category-image {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 480px) {
    .menu-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .menu-item {
        padding: 14px;
    }
    .menu-category-image {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    .item-count {
        font-size: 0.8rem;
    }
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    will-change: transform, opacity;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

html[dir="rtl"] .modal-close {
    right: auto;
    left: 20px;
}

.modal-close:hover {
    color: var(--primary-blue);
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
    padding-right: 40px;
    position: relative;
    letter-spacing: -0.5px;
}

.modal-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    border-radius: 2px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.item-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-light) 100%);
    transition: width 0.3s ease;
}

html[dir="rtl"] .item-row::before {
    left: auto;
    right: 0;
}

.item-row:hover {
    background: linear-gradient(135deg, var(--blue-lighter) 0%, rgba(232, 236, 245, 0.5) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 66, 148, 0.12);
    border-color: var(--primary-blue);
}

.item-row:hover::before {
    width: 4px;
}

.item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, cursor 0.3s ease;
}

.item-image.clickable-image {
    cursor: pointer;
}

.item-image.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33, 66, 148, 0.3);
    border-color: var(--primary-blue);
}

.item-image-placeholder {
    width: 90px;
    height: 90px;
    background-color: var(--blue-lighter);
    border-radius: 12px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-image-placeholder::before {
    content: '📷';
    font-size: 24px;
    opacity: 0.3;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.item-name {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

.item-price {
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.no-items {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .header {
        padding: 15px 0 8px 0;
    }

    .logo-image {
        height: 60px;
    }

    .hero {
        padding: 15px 20px 8px 20px;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }

    .search-container {
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .search-box {
        padding: 10px 16px;
    }

    .search-input {
        font-size: 0.95rem;
    }

    .menu-item {
        padding: 16px 18px;
    }

    .menu-text {
        font-size: 0.95rem;
    }

    .main {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-image {
        height: 50px;
    }

    .hero {
        padding: 12px 15px 6px 15px;
    }
    
 

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .menu-item {
        padding: 14px 15px;
        gap: 12px;
    }

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

    .menu-text {
        font-size: 0.9rem;
    }
}

/* Performance Optimizations */
.menu-item {
    will-change: transform;
}

/* Image Preloading Progress Bar */
#preload-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(33, 66, 148, 0.1);
    z-index: 10000;
    transition: opacity 0.5s ease;
}

#preload-progress.fade-out {
    opacity: 0;
}

.preload-progress-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.preload-progress-bar {
    width: 100%;
    height: 100%;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.preload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--blue-light) 50%, var(--primary-blue) 100%);
    background-size: 200% 100%;
    animation: progressShimmer 1.5s ease-in-out infinite;
    transition: width 0.3s ease;
    width: 0%;
}

@keyframes progressShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.preload-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.8;
}

/* Image Loading States */
.item-image.loading {
    opacity: 0.3;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: imageLoading 1.5s ease-in-out infinite;
}

.item-image.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

@keyframes imageLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Smooth image transitions */
.item-image {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optimize image rendering */
.item-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Faster modal animations when images are loaded */
body.images-loaded .modal-content {
    animation: slideDownFast 0.2s ease;
}

@keyframes slideDownFast {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.images-loaded .item-row {
    animation: fadeInUp 0.3s ease backwards;
}

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

/* Stagger animation for items */
body.images-loaded .item-row:nth-child(1) { animation-delay: 0.05s; }
body.images-loaded .item-row:nth-child(2) { animation-delay: 0.1s; }
body.images-loaded .item-row:nth-child(3) { animation-delay: 0.15s; }
body.images-loaded .item-row:nth-child(4) { animation-delay: 0.2s; }
body.images-loaded .item-row:nth-child(5) { animation-delay: 0.25s; }
body.images-loaded .item-row:nth-child(n+6) { animation-delay: 0.3s; }

/* Accessibility - Desktop only */
.menu-item:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Remove active/selected states on mobile */
@media (max-width: 768px) {
    .menu-item:active,
    .menu-item:focus {
        background-color: var(--white);
        color: var(--text-dark);
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border-color: var(--border-color);
        outline: none;
    }
    
    .menu-item:active::before,
    .menu-item:focus::before {
        width: 0;
    }
    
    .item-row:active {
        background-color: var(--white);
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        border-color: var(--border-color);
    }
    
    .item-row:active::before {
        width: 0;
    }
    
    /* Disable hover effects on touch devices */
    .menu-item:hover {
        background-color: var(--white);
        color: var(--text-dark);
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border-color: var(--border-color);
    }
    
    .menu-item:hover::before {
        width: 0;
    }
    
    .item-row:hover {
        background-color: var(--white);
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        border-color: var(--border-color);
    }
    
    .item-row:hover::before {
        width: 0;
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .search-container {
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .search-box {
        padding: 8px 14px;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .search-icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    html[dir="rtl"] .search-icon {
        margin-left: 10px;
        margin-right: 0;
    }

    .modal-content {
        margin: 10% auto;
        padding: 25px 20px;
        width: 95%;
    }

    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 32px;
    }

    html[dir="rtl"] .modal-close {
        left: 15px;
        right: auto;
    }

    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 32px;
    }

    html[dir="rtl"] .modal-close {
        left: 15px;
        right: auto;
    }

    .modal-title {
        font-size: 1.75rem;
        margin-bottom: 20px;
        padding-right: 50px;
    }

    .item-row {
        padding: 16px 15px;
        gap: 12px;
    }

    .item-image,
    .item-image-placeholder {
        width: 70px;
        height: 70px;
    }

    .lightbox-close {
        right: 15px;
        top: 15px;
        width: 40px;
        height: 40px;
        font-size: 32px;
    }

    html[dir="rtl"] .lightbox-close {
        left: 15px;
    }

    .lightbox-img {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .header-buttons-left {
        left: 10px;
        gap: 8px;
    }
    
    html[dir="rtl"] .header-buttons-left {
        left: auto;
        right: 10px;
    }
    
    .phone-icon {
        width: 38px;
        height: 38px;
    }
    
    .phone-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .phone-menu {
        min-width: 180px;
        max-width: calc(100vw - 40px);
        padding: 8px;
        right: auto;
        left: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    
    html[dir="rtl"] .phone-menu {
        left: auto;
        right: 0;
    }
    
    .phone-number {
        padding: 12px 14px;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .phone-number svg {
        width: 18px;
        height: 18px;
    }
    
    .instagram-icon {
        width: 38px;
        height: 38px;
    }
    
    .instagram-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .lang-switcher {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .item-info {
        gap: 6px;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-price {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        padding: 20px 15px;
    }

    .modal-close {
        right: 10px;
        top: 10px;
        font-size: 36px;
    }

    html[dir="rtl"] .modal-close {
        left: 10px;
        right: auto;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
        padding-right: 50px;
    }

    .modal-close {
        right: 10px;
        top: 10px;
        font-size: 36px;
    }

    html[dir="rtl"] .modal-close {
        left: 10px;
        right: auto;
    }

    .modal-title {
        padding-right: 50px;
    }

    .item-row {
        padding: 14px 12px;
        gap: 10px;
    }

    .item-image,
    .item-image-placeholder {
        width: 60px;
        height: 60px;
    }

    .lightbox-close {
        right: 10px;
        top: 10px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    html[dir="rtl"] .lightbox-close {
        left: 10px;
    }

    .lightbox-img {
        max-width: 98%;
        max-height: 80vh;
    }
    
    .header-buttons-left {
        left: 5px;
        gap: 6px;
    }
    
    html[dir="rtl"] .header-buttons-left {
        left: auto;
        right: 5px;
    }
    
    .phone-icon {
        width: 34px;
        height: 34px;
    }
    
    .phone-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .phone-menu {
        min-width: 170px;
        max-width: calc(100vw - 30px);
        padding: 6px;
        right: auto;
        left: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
    
    html[dir="rtl"] .phone-menu {
        left: auto;
        right: 0;
    }
    
    .phone-number {
        padding: 12px 14px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .phone-number svg {
        width: 18px;
        height: 18px;
    }
    
    .instagram-icon {
        width: 34px;
        height: 34px;
    }
    
    .instagram-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .lang-switcher {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .item-name,
    .item-price {
        font-size: 0.95rem;
    }

    /* View All Modal Responsive */
    .view-all-content {
        margin: 5% auto;
        padding: 20px;
        width: 98%;
    }

    .view-all-title {
        font-size: 1.75rem;
        padding-right: 50px;
    }

    html[dir="rtl"] .view-all-title {
        padding-left: 50px;
        padding-right: 0;
    }

    .view-all-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .view-all-item-box {
        padding: 15px;
    }

    .view-all-item-image {
        max-width: 120px;
        height: 120px;
    }

    .view-all-item-name {
        font-size: 1rem;
    }

    .view-all-item-price {
        font-size: 1.1rem;
    }

    .menu-toggle-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .all-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .all-items-item-box {
        padding: 15px;
    }

    .all-items-item-image {
        max-width: 120px;
        height: 120px;
    }

    .all-items-item-name {
        font-size: 1rem;
    }

    .all-items-item-price {
        font-size: 1.1rem;
    }

    .all-items-search-container {
        flex-direction: column;
        gap: 10px;
    }

    .all-items-search-box {
        min-width: 100%;
    }

    .sort-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 40px;
    font-weight: 300;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 2001;
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: 30px;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    color: var(--white);
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    cursor: default;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .header {
        position: static;
        box-shadow: none;
    }

    .modal {
        display: none !important;
    }

    .lightbox {
        display: none !important;
    }
}
