/* ===== CSS Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* mezecim-qr Color Palette */
    --cream: #f9f6f2;
    --cream-light: #fdfcfa;
    --primary: #1a1a1a;
    --primary-light: rgba(26, 26, 26, 0.6);
    --accent: #c4a484;
    --accent-light: rgba(196, 164, 132, 0.1);
    --meze-green: #2d5a27;
    --meze-red: #8b0000;

    /* Gray Scale */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;

    /* Shadows */
    --shadow-sm: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px -10px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px -12px rgba(0, 0, 0, 0.18);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Border Radius */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.4rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* ===== Utility Classes ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.25);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== MENU PAGE ===== */
.menu-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px 60px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
}

@media (min-width: 640px) {
    .menu-wrapper {
        padding: 0 24px 80px;
    }
}

.menu-hero {
    padding-top: 16px;
    padding-bottom: 0;
}

@media (min-width: 640px) {
    .menu-hero {
        padding-top: 24px;
    }
}

.menu-hero-content {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--primary);
    color: white;
    min-height: 45vw;
}

@media (min-width: 640px) {
    .menu-hero-content {
        min-height: 380px;
        border-radius: var(--radius-2xl);
    }
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.menu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.menu-hero-inner {
    position: relative;
    z-index: 10;
    padding: 32px 20px 36px;
}

@media (min-width: 640px) {
    .menu-hero-inner {
        padding: 48px 40px 52px;
    }
}

.menu-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.menu-brand svg {
    color: var(--accent);
}

.menu-logo {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.menu-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.1;
}

@media (min-width: 640px) {
    .menu-title {
        font-size: 2.75rem;
        margin-bottom: 12px;
    }
}

.menu-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    max-width: 480px;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .menu-subtitle {
        font-size: 0.95rem;
    }
}


/* ===== Sticky Navbar ===== */
.menu-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 12px 0;
}

.navbar-content {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
}

.navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.navbar-logo img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.navbar-brand-name {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary);
}

.navbar-brand-sub {
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-size: 12px;
}

.navbar-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1;
}

.navbar-instagram svg {
    display: block;
    width: 32px;
    height: 32px;
}

.navbar-instagram:hover {
    background: rgba(225, 48, 108, 0.06);
}

.navbar-ig-text {
    display: block;
    font-size: 8px;
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: center;
}

.navbar-brand-subtitle {
    font-size: 14px;
    font-weight: 900;
    color: var(--primary);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 12px;
}

.search-box svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    background: white;
    border-radius: var(--radius-xl);
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-input::placeholder {
    color: var(--gray-400);
}

/* Category Navigation */
.category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.category-nav-btn:hover {
    color: var(--primary);
}

.category-nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.category-nav-btn.active svg {
    color: var(--accent);
}

.category-nav-btn svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* ===== Back to Categories Button ===== */
.back-to-categories {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--accent-light);
    border: 1px solid rgba(196, 164, 132, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
    width: fit-content;
}

.back-to-categories:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.back-to-categories svg {
    flex-shrink: 0;
}

/* ===== Category Cards ===== */
.category-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    will-change: transform;
}

@media (min-width: 640px) {
    .category-card {
        border-radius: var(--radius-xl);
    }
}

.category-card:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .category-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }
}

.category-card:hover .category-card-image {
    transform: scale(1.08);
}

.category-card-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .category-card-image-wrapper {
        height: 200px;
    }
}

.category-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-100);
    transition: transform var(--transition-slow), opacity 0.4s ease;
    opacity: 0;
}

.category-card-image.loaded {
    opacity: 1;
}

.category-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-light), rgba(26, 26, 26, 0.05));
    opacity: 1 !important;
}

.category-card-no-image svg {
    color: rgba(26, 26, 26, 0.15);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.category-card-content {
    padding: 14px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.category-card-name {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .category-card-name {
        font-size: 18px;
    }
}

.category-card-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 640px) {
    .products-grid {
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    will-change: transform;
}

@media (min-width: 640px) {
    .product-card {
        border-radius: var(--radius-xl);
    }
}

.product-card:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .product-card:hover {
        box-shadow: var(--shadow-lg);
    }

    .product-card:hover .product-card-image {
        transform: scale(1.05);
    }
}

.product-card-image-wrapper {
    position: relative;
    height: 160px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-card-image-wrapper {
        height: 176px;
    }
}

.product-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-100);
    transition: transform var(--transition-slow), opacity 0.4s ease;
    opacity: 0;
}

.product-card-image.loaded {
    opacity: 1;
}

.product-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-light), rgba(26, 26, 26, 0.05));
    opacity: 1 !important;
}

/* Shimmer skeleton for loading images */
.image-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.image-skeleton.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.product-card-no-image svg {
    color: rgba(26, 26, 26, 0.2);
    width: 40px;
    height: 40px;
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-card-content {
    padding: 12px 14px 14px;
}

@media (min-width: 640px) {
    .product-card-content {
        padding: 14px 16px 16px;
    }
}

.product-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.product-card-name {
    font-size: 15px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.3;
}

@media (min-width: 640px) {
    .product-card-name {
        font-size: 16px;
    }
}

.product-card-price {
    font-weight: 900;
    color: var(--accent);
    white-space: nowrap;
}

.product-card-category {
    display: block;
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card-description {
    margin-top: 8px;
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-card-description {
        font-size: 12px;
    }
}

/* Product Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

@media (min-width: 640px) {
    .product-modal-overlay {
        align-items: center;
        padding: 20px;
    }
}

.product-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-height: 95vh;
    max-height: 95dvh;
    overflow: hidden;
    transform: translateY(100%);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
}

.product-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    margin: 10px auto 0;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .product-modal {
        max-width: 900px;
        max-height: 90vh;
        border-radius: 3rem;
        flex-direction: row;
        transform: translateY(20px) scale(0.95);
        padding-bottom: 0;
    }

    .product-modal::before {
        display: none;
    }
}

.product-modal-overlay.active .product-modal {
    transform: translateY(0) scale(1);
}

/* Modal content wrapper */
#product-modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(95vh - 60px);
    overflow-y: auto;
}

@media (min-width: 640px) {
    #product-modal-content {
        flex-direction: row;
        max-height: none;
        overflow: visible;
    }
}


.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: white;
}

.product-modal-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

.product-modal-close svg {
    width: 22px;
    height: 22px;
}

.product-detail-image-wrapper {
    position: relative;
    width: 100%;
    height: 224px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .product-detail-image-wrapper {
        width: 50%;
        height: auto;
        min-height: 520px;
    }
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

@media (min-width: 640px) {
    .product-detail-info {
        padding: 32px 48px;
    }
}

.product-detail-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    align-self: flex-start;
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.product-detail-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .product-detail-name {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .product-detail-name {
        font-size: 2.5rem;
    }
}

.product-detail-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .product-detail-price {
        font-size: 1.5rem;
    }
}

.product-detail-description {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

@media (min-width: 1024px) {
    .product-detail-description {
        font-size: 16px;
    }
}

/* Loading & Empty */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--gray-400);
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-400);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* Footer */
.menu-footer {
    background: var(--primary);
    color: white;
    padding: 40px 20px 32px;
    margin-top: 40px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

@media (min-width: 640px) {
    .menu-footer {
        padding: 48px 40px 36px;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    }
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        gap: 0;
        align-items: flex-start;
    }
}

.footer-section {
    flex: 1;
    text-align: center;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(196, 164, 132, 0.15);
    color: var(--accent);
    margin-bottom: 12px;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hours-day {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.hours-time {
    font-size: 15px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto;
}

@media (min-width: 640px) {
    .footer-divider {
        width: 1px;
        height: 80px;
        margin: 0 32px;
        align-self: center;
    }
}

.footer-address {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.footer-address-link {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.footer-address-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-phone {
    font-size: 16px;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.footer-phone:hover {
    color: white;
    text-decoration: underline;
}

.menu-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.menu-footer a:hover {
    text-decoration: underline;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--cream);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.login-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    margin: 0 auto 20px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo svg {
    color: white;
    width: 28px;
    height: 28px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-light);
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-error {
    color: var(--meze-red);
    font-size: 12px;
    margin-top: 12px;
    text-align: center;
    display: none;
}

.login-error.show {
    display: block;
}

/* ===== ADMIN PANEL ===== */
.admin-container {
    min-height: 100vh;
    background: var(--cream);
    padding: 24px 12px;
}

@media (min-width: 640px) {
    .admin-container {
        padding: 32px 16px;
    }
}

.admin-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .admin-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

@media (min-width: 640px) {
    .admin-header h1 {
        font-size: 1.875rem;
    }
}

.admin-header p {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

@media (min-width: 640px) {
    .admin-header p {
        font-size: 14px;
    }
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 12px;
    border: 1px solid var(--gray-100);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    background: white;
    color: var(--primary-light);
}

.btn:hover {
    color: var(--primary);
}

.btn:active {
    transform: scale(0.96);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger {
    background: white;
    color: var(--meze-red);
    border-color: rgba(139, 0, 0, 0.2);
}

.btn-danger:hover {
    color: var(--meze-red);
    background: rgba(139, 0, 0, 0.05);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 9px;
}

/* Admin Card */
.admin-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .admin-card {
        padding: 24px;
        border-radius: var(--radius-2xl);
    }
}

.admin-card h2 {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .admin-card h2 {
        font-size: 1.25rem;
    }
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-light);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

@media (min-width: 640px) {
    .form-control {
        padding: 12px 16px;
        border-radius: var(--radius-xl);
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-control:disabled {
    background: var(--gray-50);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Item List */
.item-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

@media (min-width: 640px) {
    .item-row {
        gap: 12px;
        padding: 12px 16px;
        border-radius: var(--radius-xl);
    }
}

.item-row:hover {
    border-color: var(--gray-200);
}

.drag-handle {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.drag-handle button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
    background: white;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.drag-handle button:hover:not(:disabled) {
    color: var(--primary);
}

.drag-handle button:disabled {
    opacity: 0.2;
}

.item-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .item-image {
        width: 56px;
        height: 56px;
    }
}

.item-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .item-placeholder {
        width: 56px;
        height: 56px;
    }
}

.item-placeholder svg {
    color: rgba(26, 26, 26, 0.2);
    width: 20px;
    height: 20px;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 900;
    font-size: 14px;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-subtitle {
    font-size: 10px;
    color: var(--gray-500);
    margin-top: 2px;
}

@media (min-width: 640px) {
    .item-subtitle {
        font-size: 12px;
    }
}

.item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Upload */
.upload-area {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-50);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.upload-area svg {
    width: 32px;
    height: 32px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--gray-500);
    font-size: 12px;
}

.upload-preview {
    max-width: 100%;
    max-height: 160px;
    border-radius: var(--radius-md);
    margin-top: 12px;
    display: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px;
    border-top: 1px solid var(--gray-100);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 22px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 3000;
    font-size: 14px;
    font-weight: 600;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.error {
    background: var(--meze-red);
}

/* Error Message */
.error-message {
    background: rgba(139, 0, 0, 0.05);
    border: 1px solid rgba(139, 0, 0, 0.2);
    color: var(--meze-red);
    font-size: 12px;
    border-radius: var(--radius-xl);
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Checkbox Style */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Grid helpers */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Admin Sidebar (legacy support) */
.admin-sidebar {
    display: none;
}

.admin-main {
    flex: 1;
}

/* Language toggle */
.lang-toggle {
    display: flex;
    gap: 6px;
}

.lang-btn {
    padding: 6px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    background: white;
    font-size: 10px;
    font-weight: 900;
    color: var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .menu-title {
        font-size: 1.75rem;
    }

    .menu-subtitle {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card-image-wrapper {
        height: 150px;
    }

    .product-card-image-wrapper {
        height: 140px;
    }

    .navbar-content {
        padding: 10px 12px;
    }

    .search-input {
        padding: 10px 14px 10px 40px;
        font-size: 13px;
    }

    .item-row {
        flex-wrap: wrap;
    }

    .item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .menu-wrapper {
        padding: 0 8px 40px;
    }

    .products-grid {
        gap: 8px;
    }

    .product-card-content {
        padding: 10px 10px 12px;
    }

    .product-card-name {
        font-size: 13px;
    }

    .category-card-content {
        padding: 10px 12px 12px;
    }
}