/* =====================================================
   MOSHI LOUNGE CAFE - Modern Digital Menu
   Light Theme with Smoke & Bear Animations
   ===================================================== */

:root {
    /* Colors - Warm Light Theme */
    --bg-primary: #faf8f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f5f0eb;

    --text-primary: #2d2a26;
    --text-secondary: #6b6560;
    --text-muted: #9a948d;

    --accent-primary: #c17f3c;
    --accent-secondary: #d4a574;
    --accent-light: rgba(193, 127, 60, 0.1);
    --accent-glow: rgba(193, 127, 60, 0.3);

    --brown-dark: #4a3728;
    --brown-medium: #8b6b4a;
    --brown-light: #c9a982;

    --cream: #f5e6d3;
    --cream-dark: #e8d5c0;

    --border-color: rgba(74, 55, 40, 0.1);
    --border-hover: rgba(74, 55, 40, 0.2);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-padding: 20px;
    --card-radius: 24px;
    --button-radius: 30px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(74, 55, 40, 0.08);
    --shadow-md: 0 8px 30px rgba(74, 55, 40, 0.12);
    --shadow-lg: 0 20px 50px rgba(74, 55, 40, 0.15);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Base Styles
   ===================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hidden {
    display: none !important;
}

.app {
    position: relative;
    z-index: 1;
}

/* =====================================================
   Floating Bears Animation
   ===================================================== */

.floating-bears {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-bear {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatBear 20s ease-in-out infinite;
}

.floating-bear:nth-child(1) { left: 5%; top: 10%; animation-delay: 0s; animation-duration: 25s; }
.floating-bear:nth-child(2) { left: 85%; top: 20%; animation-delay: 5s; animation-duration: 22s; }
.floating-bear:nth-child(3) { left: 15%; top: 60%; animation-delay: 2s; animation-duration: 28s; }
.floating-bear:nth-child(4) { left: 75%; top: 70%; animation-delay: 8s; animation-duration: 20s; }
.floating-bear:nth-child(5) { left: 45%; top: 85%; animation-delay: 4s; animation-duration: 24s; }
.floating-bear:nth-child(6) { left: 90%; top: 50%; animation-delay: 6s; animation-duration: 26s; }

@keyframes floatBear {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) rotate(5deg) scale(1.1);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg) scale(1);
    }
    75% {
        transform: translateY(-40px) rotate(3deg) scale(1.05);
    }
}

/* =====================================================
   Smoke/Nargile Effect
   ===================================================== */

.smoke-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.smoke {
    position: absolute;
    bottom: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(193, 127, 60, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    animation: smokeRise 8s ease-in-out infinite;
}

.smoke:nth-child(1) { left: 10%; animation-delay: 0s; }
.smoke:nth-child(2) { left: 30%; animation-delay: 2s; width: 100px; height: 100px; }
.smoke:nth-child(3) { left: 50%; animation-delay: 4s; width: 180px; height: 180px; }
.smoke:nth-child(4) { left: 70%; animation-delay: 1s; width: 120px; height: 120px; }
.smoke:nth-child(5) { left: 85%; animation-delay: 3s; }

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-150px) scale(1.5);
        opacity: 0.4;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-300px) scale(2);
        opacity: 0;
    }
}

/* =====================================================
   Loading Screen
   ===================================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(193, 127, 60, 0.2));
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    animation: logoFadeIn 0.8s ease-out;
}

.loader-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmer 2s infinite;
    z-index: 1;
}

.loader-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(193, 127, 60, 0.1) 0%,
        transparent 50%,
        rgba(193, 127, 60, 0.1) 100%
    );
    animation: shimmerGlow 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmerGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================
   Hero Header
   ===================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    overflow: hidden;
    padding-bottom: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(193, 127, 60, 0.05) 0%, transparent 50%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 40px var(--container-padding);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 600px;
}

.logo-wrapper {
    margin: 0;
    position: relative;
    transition: transform var(--transition-normal);
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

.logo-wrapper:active {
    transform: scale(0.98);
}

.main-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(74, 55, 40, 0.2));
    animation: logoFloat 4s ease-in-out infinite;
    transition: filter var(--transition-normal);
}

.logo-wrapper:hover .main-logo {
    filter: drop-shadow(0 20px 50px rgba(193, 127, 60, 0.4));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

/* Smoke from logo */
.logo-smoke {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.logo-smoke span {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(139, 107, 74, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    animation: logoSmokeRise 3s ease-out infinite;
}

.logo-smoke span:nth-child(1) { left: 0; animation-delay: 0s; }
.logo-smoke span:nth-child(2) { left: 20px; animation-delay: 0.5s; }
.logo-smoke span:nth-child(3) { left: 40px; animation-delay: 1s; }

@keyframes logoSmokeRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-80px) scale(2);
        opacity: 0;
    }
}

.hero-text {
    animation: fadeInUp 1s ease 0.3s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin: 0;
    letter-spacing: 4px;
    line-height: 1.3;
    text-align: center;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0;
    text-align: center;
    line-height: 1.6;
    font-weight: 400;
}

.hero-menu-label {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-primary);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
    margin-top: -10px;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.scroll-indicator:hover {
    transform: translateY(5px);
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

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

/* =====================================================
   Category Navigation
   ===================================================== */

.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px var(--container-padding);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.category-nav-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--button-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--brown-medium) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 25px rgba(193, 127, 60, 0.35);
    transform: translateY(-2px);
}

.category-tab-icon {
    font-size: 1.3rem;
}

/* =====================================================
   Menu Container
   ===================================================== */

.menu-container {
    padding: 20px var(--container-padding);
    padding-bottom: 120px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: 400px;
}

/* =====================================================
   Category Section
   ===================================================== */

.category-section {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(50px);
    animation: revealSection 0.8s ease forwards;
    transition: margin-bottom 0.4s ease;
}

.category-section.collapsed {
    margin-bottom: 30px;
}

.category-section:nth-child(1) { animation-delay: 0.1s; }
.category-section:nth-child(2) { animation-delay: 0.2s; }
.category-section:nth-child(3) { animation-delay: 0.3s; }
.category-section:nth-child(4) { animation-delay: 0.4s; }
.category-section:nth-child(5) { animation-delay: 0.5s; }
.category-section:nth-child(6) { animation-delay: 0.6s; }

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

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--cream-dark);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
    position: relative;
}

.category-header:hover {
    opacity: 0.8;
}

.category-bear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    overflow: visible;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform var(--transition-normal);
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.category-bear:hover {
    transform: scale(1.15);
}

.bear-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
    animation: bearBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.category-bear:hover .bear-image {
    transform: scale(1.1) rotate(8deg);
}

.category-section.collapsed .bear-image {
    animation: bearShy 2s ease-in-out infinite;
}

@keyframes bearBounce {
    0%, 90%, 100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    45% {
        transform: scale(1.05) translateY(-3px) rotate(2deg);
    }
}

@keyframes bearShy {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(0.95) rotate(-5deg);
    }
}

.products-grid {
    max-height: 5000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                transform 0.4s ease;
    transform: translateY(0);
}

.category-section.collapsed .products-grid {
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
    margin-bottom: 0;
    padding-top: 0;
}

.empty-category {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-radius: 50%;
    font-size: 1.8rem;
    box-shadow: var(--shadow-sm);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.category-info {
    flex: 1;
}

.category-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =====================================================
   Product Grid
   ===================================================== */

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 10000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease 0.1s,
                transform 0.5s ease 0.1s,
                gap 0.4s ease;
    transform: translateY(0) scale(1);
    margin-top: 10px;
}

.category-section.collapsed .products-grid {
    max-height: 0;
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
    gap: 0;
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                transform 0.3s ease,
                gap 0.3s ease,
                margin-top 0.3s ease;
}

/* Products grid is now always column layout */

/* =====================================================
   Product Card
   ===================================================== */

.product-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
    align-items: stretch;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--brown-light), var(--accent-primary));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-secondary);
}

.product-card:hover::before {
    transform: scaleX(1);
    animation: shimmer 2s linear infinite;
}

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

.product-image {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--cream);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--brown-light);
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    gap: 12px;
    position: relative;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
}

.product-info.no-description .product-name {
    margin-bottom: 0;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 4px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    width: 100%;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    line-height: 1.6;
    flex: 1;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.product-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0;
    align-items: center;
}

.product-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    background: var(--accent-light);
    border-radius: 20px;
    color: var(--accent-primary);
    font-weight: 600;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    height: 100%;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent-primary);
    white-space: nowrap;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.product-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--brown-medium) 100%);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(193, 127, 60, 0.3);
}

/* =====================================================
   Modal
   ===================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 42, 38, 0.6);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.show .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-card);
    border-radius: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

@media (min-width: 640px) {
    .modal {
        padding: 20px;
    }

    .modal-content {
        max-width: 550px;
    }

    .modal-image-container {
        height: 55vh;
        min-height: 380px;
        max-height: 550px;
        padding: 0;
    }

    .modal-body {
        padding: 28px;
    }

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

    .modal-description {
        font-size: 1rem;
    }

    .modal-price {
        font-size: 1.9rem;
        padding: 18px 24px;
        letter-spacing: 0.03em;
    }
}

@media (min-width: 1024px) {
    .modal-content {
        max-width: 600px;
    }

    .modal-image-container {
        height: 60vh;
        min-height: 450px;
        max-height: 600px;
        padding: 0;
    }

    .modal-body {
        padding: 32px;
    }

    .modal-title {
        font-size: 2.2rem;
    }

    .modal-description {
        font-size: 1.05rem;
    }

    .modal-price {
        font-size: 2.1rem;
        padding: 20px 28px;
        letter-spacing: 0.03em;
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    color: var(--brown-dark);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.modal-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-close svg {
    width: 26px;
    height: 26px;
}

.modal-image-container {
    height: 50vh;
    min-height: 320px;
    max-height: 500px;
    background: var(--cream);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
}

.modal-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--bg-card));
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-normal);
}

.modal-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--brown-dark);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    letter-spacing: 0.02em;
}

.modal-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow-y: auto;
    min-height: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    max-width: 100%;
}

.modal-tags .product-tag {
    font-size: 0.85rem;
    padding: 8px 16px;
}

.modal-price {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-align: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-radius: 16px;
    margin-top: auto;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
    background: var(--bg-secondary);
    padding: 60px var(--container-padding);
    text-align: center;
    border-top: 2px solid var(--cream-dark);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 450px;
    margin: 0 auto;
}

.footer-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 24px;
    animation: logoFloat 4s ease-in-out infinite;
}

/* =====================================================
   Social Media Links (Footer)
   ===================================================== */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(250, 248, 245, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--brown-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(74, 55, 40, 0.1);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(193, 127, 60, 0.4);
}

.social-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.social-link span {
    white-space: nowrap;
}

.social-link.google-reviews {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 75%, #EA4335 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.social-link.google-reviews:hover {
    background: linear-gradient(135deg, #EA4335 0%, #FBBC05 25%, #34A853 50%, #4285F4 100%);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.5);
}

.contact-info {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    letter-spacing: 3px;
}

/* =====================================================
   Empty State
   ===================================================== */

.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 6rem;
    margin-bottom: 24px;
    opacity: 0.5;
    animation: iconPulse 3s ease-in-out infinite;
}

.empty-state-text {
    font-size: 1.3rem;
    font-family: var(--font-display);
    color: var(--brown-medium);
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1024px) {
    .products-grid {
        gap: 18px;
    }

    .product-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
        --card-radius: 20px;
    }

    html {
        font-size: 15px;
    }

    .hero {
        min-height: 90vh;
        padding-bottom: 15px;
    }

    .hero-text {
        gap: 16px;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

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

    .hero-menu-label {
        font-size: 1.4rem;
        letter-spacing: 6px;
        margin-top: -8px;
    }

    .scroll-indicator svg {
        width: 28px;
        height: 28px;
    }

    .main-logo {
        width: 160px;
        height: 160px;
    }

    .category-nav {
        padding: 12px var(--container-padding);
    }

    .category-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .category-tab-icon {
        font-size: 1.1rem;
    }

    .menu-container {
        padding: 15px var(--container-padding);
        padding-bottom: 100px;
    }

    .category-section {
        margin-bottom: 40px;
    }

    .category-header {
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

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

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .category-bear {
        width: 50px;
        height: 50px;
    }

    .products-grid {
        gap: 14px;
    }

    .product-card {
        padding: 12px;
        flex-direction: row;
        gap: 12px;
    }

    .product-image {
        flex: 0 0 90px;
        width: 90px;
        height: 90px;
        margin-bottom: 0;
    }


    .product-name {
        font-size: 1.15rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1.25rem;
        letter-spacing: 0.03em;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
    }

    .modal-image-container {
        height: 50vh;
        min-height: 300px;
        max-height: 450px;
        padding: 0;
    }

    .modal-body {
        padding: 18px;
        min-width: 0;
    }

    .modal-title {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .modal-description {
        font-size: 0.9rem;
        margin-bottom: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .modal-tags {
        margin-bottom: 16px;
    }

    .modal-price {
        font-size: 1.6rem;
        padding: 16px 20px;
        letter-spacing: 0.02em;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }

    .modal-close svg {
        width: 22px;
        height: 22px;
    }

    .footer {
        padding: 40px var(--container-padding);
    }

    .footer-logo {
        width: 80px;
        height: 80px;
    }

    .social-links {
        padding: 20px 16px;
        gap: 12px;
    }

    .social-link {
        min-width: 120px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-indicator span {
        font-size: 0.7rem;
    }

    .loader-logo {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-text {
        gap: 16px;
    }

    .hero-title {
        font-size: 1.9rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-menu-label {
        font-size: 1.2rem;
        letter-spacing: 4px;
        margin-top: -6px;
    }

    .scroll-indicator svg {
        width: 24px;
        height: 24px;
    }

    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .category-bear {
        width: 55px;
        height: 55px;
    }

    .main-logo {
        width: 140px;
        height: 140px;
    }

    .category-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

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

    .product-card {
        padding: 12px;
        flex-direction: row;
        gap: 10px;
    }

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


    .product-name {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 1.2rem;
        letter-spacing: 0.03em;
    }

    .modal-content {
        max-height: 98vh;
        border-radius: 18px 18px 0 0;
    }

    .modal-image-container {
        height: 50vh;
        min-height: 280px;
        max-height: 400px;
        padding: 0;
    }

    .modal-body {
        padding: 16px;
        min-width: 0;
    }

    .modal-title {
        font-size: 1.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
    }

    .modal-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;
    }

    .modal-tags {
        margin-bottom: 14px;
    }

    .modal-tags .product-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .modal-price {
        font-size: 1.5rem;
        padding: 14px 18px;
        letter-spacing: 0.02em;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }

    .modal-close svg {
        width: 20px;
        height: 20px;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.2rem;
        letter-spacing: 0.03em;
    }

    .loader-logo {
        width: 180px;
        height: 180px;
    }
}

/* =====================================================
   Popup Modal
   ===================================================== */

.popup-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.popup-modal.show {
    opacity: 1;
    visibility: visible;
}

.popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 42, 38, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.popup-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-card);
    border-radius: 32px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-lg);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.popup-modal.show .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--brown-dark);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.popup-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.popup-close svg {
    width: 24px;
    height: 24px;
}

/* Popup Slider */
.popup-slider {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    display: flex;
    min-height: 300px;
    max-height: 600px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.popup-slider:active {
    cursor: grabbing;
}

.popup-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    flex-shrink: 0;
    will-change: transform, opacity;
}

.popup-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.popup-image-container {
    width: 100%;
    min-height: 300px;
    max-height: 500px;
    background: var(--cream);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-image-container.no-image {
    min-height: 200px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.popup-placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.popup-body {
    padding: 24px 32px;
    text-align: center;
    flex-shrink: 0;
}

.popup-slide {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.popup-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.popup-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.popup-text p {
    margin-bottom: 12px;
}

.popup-text p:last-child {
    margin-bottom: 0;
}

.popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--brown-medium) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--button-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    box-shadow: 0 6px 25px rgba(193, 127, 60, 0.35);
}

.popup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(193, 127, 60, 0.5);
}

/* Popup Slider Controls */
.popup-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    gap: 16px;
}

.popup-slider-prev,
.popup-slider-next {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--brown-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.popup-slider-prev:hover,
.popup-slider-next:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.popup-slider-prev svg,
.popup-slider-next svg {
    width: 24px;
    height: 24px;
}

.popup-slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.popup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.popup-dot.active {
    background: var(--accent-primary);
    width: 12px;
    height: 12px;
}

.popup-dot:hover {
    background: var(--brown-medium);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .popup-slider {
        min-height: 250px;
        max-height: 500px;
    }

    .popup-content {
        max-width: 95%;
        max-height: 95vh;
        border-radius: 24px;
    }

    .popup-image-container {
        min-height: 200px;
        max-height: 300px;
    }

    .popup-image-container.no-image {
        min-height: 150px;
    }

    .popup-placeholder-icon {
        font-size: 3rem;
    }

    .popup-body {
        padding: 16px 20px;
    }

    .popup-title {
        font-size: 1.6rem;
    }

    .popup-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .popup-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .popup-slider-controls {
        padding: 12px 16px;
    }

    .popup-slider-prev,
    .popup-slider-next {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .popup-slider-prev svg,
    .popup-slider-next svg {
        width: 20px;
        height: 20px;
    }

    .popup-slide {
        min-height: 200px;
    }

    .popup-close {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }

    .popup-close svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .popup-slider {
        min-height: 200px;
        max-height: 400px;
    }

    .popup-content {
        max-width: 98%;
        max-height: 98vh;
        border-radius: 20px;
    }

    .popup-image-container {
        min-height: 180px;
        max-height: 250px;
    }

    .popup-image-container.no-image {
        min-height: 120px;
    }

    .popup-placeholder-icon {
        font-size: 2.5rem;
    }

    .popup-body {
        padding: 12px 16px;
    }

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

    .popup-slider-controls {
        padding: 10px 12px;
    }

    .popup-slider-prev,
    .popup-slider-next {
        width: 32px;
        height: 32px;
    }

    .popup-dot {
        width: 8px;
        height: 8px;
    }

    .social-links {
        padding: 16px 12px;
        gap: 10px;
        margin: 24px 0 20px;
    }

    .social-link {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .popup-dot.active {
        width: 10px;
        height: 10px;
    }
}

/* Landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .popup-content {
        max-height: 95vh;
    }

    .popup-image-container {
        min-height: 150px;
        max-height: 200px;
    }

    .popup-body {
        padding: 12px 20px;
    }
}

/* =====================================================
   Admin Login Form
   ===================================================== */

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.admin-login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-login-form .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brown-dark);
    font-family: var(--font-body);
}

.admin-login-form .form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: var(--transition-fast);
}

.admin-login-form .form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.admin-login-form .form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.admin-login-form .error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: var(--font-body);
    border-left: 3px solid #c53030;
}

.admin-login-form .popup-button {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
}

.admin-login-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.admin-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.admin-link:hover {
    color: var(--brown-medium);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .admin-login-form .form-input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .admin-login-form .popup-button {
        padding: 14px;
    }

    .admin-login-form .popup-title {
        font-size: 1.5rem;
    }

    .popup-close {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }

    .popup-close svg {
        width: 20px;
        height: 20px;
    }

    .logo-wrapper {
        transform: scale(1);
    }

    .logo-wrapper:active {
        transform: scale(0.95);
    }

    /* Touch-friendly buttons */
    .popup-button,
    .admin-login-form .popup-button {
        min-height: 48px;
        touch-action: manipulation;
    }

    /* Floating bears - reduce on mobile for performance */
    .floating-bear {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .admin-login-form {
        gap: 16px;
    }

    .admin-login-form .form-input {
        padding: 14px 16px;
        font-size: 1rem; /* Prevent zoom on iOS */
    }

    .admin-login-form .popup-button {
        padding: 16px;
        font-size: 1rem;
        min-height: 50px;
    }

    .admin-login-form .popup-title {
        font-size: 1.3rem;
    }

    .popup-content {
        max-width: 98%;
        border-radius: 20px;
    }

    .popup-body {
        padding: 20px;
    }

    .popup-close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }

    .logo-wrapper:hover {
        transform: scale(1);
    }

    /* Ensure all interactive elements are touch-friendly */
    .category-bear,
    .popup-close,
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }

    /* Reduce floating bears further on small screens */
    .floating-bears {
        display: none; /* Hide on very small screens for better performance */
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .main-logo {
        width: 120px;
        height: 120px;
    }

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

    .popup-modal {
        padding: 10px;
    }

    .popup-content {
        max-height: 95vh;
    }
}
