/* QR Menu - Minimal White Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --border: #E8E8E8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--white);
}

/* Header */
.menu-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.logo-container img {
    max-width: 100%;
    max-height: 120px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.menu-header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.header-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* Main Slider */
.main-slider-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.main-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.main-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.main-slider-item.active {
    opacity: 1;
}

.main-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.main-slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.main-slider-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.main-slider-content p {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

.main-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.main-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.main-slider-dot.active {
    background: white;
}

.main-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.main-slider-nav:hover {
    background: white;
}

.main-slider-nav.prev {
    left: 1rem;
}

.main-slider-nav.next {
    right: 1rem;
}

/* Category Slider */
.category-section {
    background: var(--white);
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--white);
}

.category-slider {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

.category-item {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.category-item:hover {
    border-color: var(--text-primary);
    background: var(--gray-50);
}

.category-item.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--white);
}

/* Products Section */
.products-section {
    padding: 3rem 1.5rem;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--text-primary);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--gray-100);
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-image-placeholder {
    width: 100%;
    height: 240px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    position: relative;
}

.product-image-placeholder::before {
    content: '';
    width: 48px;
    height: 48px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
}

.product-image-placeholder::after {
    content: '+';
    position: absolute;
    font-size: 32px;
    font-weight: 300;
    color: var(--gray-300);
    line-height: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.product-name {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    font-weight: 300;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: auto;
    letter-spacing: -0.01em;
}

.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    grid-column: 1 / -1;
    font-weight: 300;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    opacity: 0.4;
}

.empty-state-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 24px;
    background: var(--gray-400);
}

.empty-state-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 2px;
    height: 24px;
    background: var(--gray-400);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.empty-state p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* WiFi Button */
.wifi-button-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
}

.wifi-button {
    background: var(--text-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.wifi-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.wifi-button:active {
    transform: translateY(0);
}

.wifi-button svg {
    width: 20px;
    height: 20px;
}

/* WiFi Modal */
.wifi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wifi-modal.active {
    display: flex;
    opacity: 1;
}

.wifi-modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.wifi-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.wifi-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.wifi-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.wifi-modal-close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.wifi-modal-body {
    padding: 1.5rem;
}

.wifi-info-item {
    margin-bottom: 1.5rem;
}

.wifi-info-item:last-child {
    margin-bottom: 0;
}

.wifi-info-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wifi-info-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-50);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.wifi-info-value span {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.wifi-password-hidden {
    cursor: pointer;
    user-select: none;
}

.wifi-copy-btn {
    background: var(--text-primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.wifi-copy-btn:hover {
    background: var(--gray-800);
    transform: scale(1.05);
}

.wifi-copy-btn:active {
    transform: scale(0.95);
}

.wifi-copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Footer */
.menu-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 300;
}

.menu-footer a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
    margin-left: 0.25rem;
}

.menu-footer a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* WiFi Button Responsive */
@media (max-width: 768px) {
    .wifi-button-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .wifi-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    .wifi-button svg {
        width: 18px;
        height: 18px;
    }

    .wifi-modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .wifi-modal-header {
        padding: 1.25rem;
    }

    .wifi-modal-header h2 {
        font-size: 1.25rem;
    }

    .wifi-modal-body {
        padding: 1.25rem;
    }

    .wifi-info-value {
        padding: 0.875rem 1rem;
    }

    .wifi-info-value span {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-header {
        padding: 2rem 1rem;
    }
    
    .logo-container {
        min-height: 60px;
    }
    
    .logo-container img {
        max-height: 80px;
    }
    
    .menu-header h1 {
        font-size: 1.5rem;
    }
    
    .main-slider {
        height: 200px;
    }
    
    .main-slider-content {
        padding: 1.5rem 1rem 1rem;
    }
    
    .main-slider-content h3 {
        font-size: 1.25rem;
    }
    
    .main-slider-content p {
        font-size: 0.875rem;
    }
    
    .main-slider-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .main-slider-nav.prev {
        left: 0.5rem;
    }
    
    .main-slider-nav.next {
        right: 0.5rem;
    }
    
    .header-subtitle {
        font-size: 0.8125rem;
    }
    
    .category-section {
        padding: 1rem 0.75rem;
    }
    
    .category-item {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .products-section {
        padding: 2rem 1rem;
    }
    
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-image,
    .product-image-placeholder {
        height: 160px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 0.9375rem;
        line-height: 1.4;
    }
    
    .product-description {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .product-price {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .product-image,
    .product-image-placeholder {
        height: 140px;
    }
    
    .product-info {
        padding: 0.875rem;
    }
    
    .product-name {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }
    
    .product-description {
        font-size: 0.6875rem;
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    .product-price {
        font-size: 0.875rem;
    }
    
    .menu-header {
        padding: 1.75rem 1rem;
    }
    
    .products-section {
        padding: 1.5rem 0.875rem;
    }
}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 1024px) {
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.75rem;
    }
    
    .product-image,
    .product-image-placeholder {
        height: 220px;
    }
}

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Touch-friendly */
@media (hover: none) {
    .category-item:active {
        transform: scale(0.98);
        background: var(--gray-100);
    }
    
    .category-item.active:active {
        background: var(--gray-800);
    }
    
    .product-card:active {
        transform: scale(0.99);
    }
}

/* Focus states for accessibility */
.category-item:focus-visible,
.product-card:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .menu-header,
    .category-section,
    .menu-footer {
        display: none;
    }
    
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
