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

html, body {
    overflow-x: hidden;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    position: fixed;
    left: 0;
    z-index: 300;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.95);
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--card-bg);
    z-index: 400;
    padding: 60px 24px 24px;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    text-align: left;
}

.side-menu.open {
    left: 0;
}

.side-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 350;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.side-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-menu-section {
    margin-bottom: 28px;
}

.side-menu-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-icon {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

.inline-icon {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
    stroke: currentColor;
}

.side-menu-section p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.6;
}

.side-menu-section a {
    color: var(--text);
    text-decoration: none;
}

.side-menu-section a:hover {
    color: var(--primary);
}

.announcement {
    background: #fff8e7;
    padding: 14px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.announcement-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.announcement-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.hours {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.closed {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.coming-soon {
    color: var(--text-muted);
    font-style: italic;
}

:root {
    --bg: #faf6f1;
    --card-bg: #ffffff;
    --primary: #8b5a2b;
    --primary-light: #d4a574;
    --text: #3d2914;
    --text-muted: #7a6552;
    --border: #e8e0d5;
    --shadow: 0 2px 8px rgba(61, 41, 20, 0.08);
}

body {
    font-family: 'Noto Sans TC', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

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

.header {
    padding: 50px 0 30px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.header .container {
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.logo-icon { 
    width: 48px;
    height: 48px;
    stroke: var(--primary);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.promo {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
}

.promo-banner {
    background: linear-gradient(90deg, #8b5a2b, #a0522d, #8b5a2b);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    color: white;
    text-align: center;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.promo-icon {
    width: 22px;
    height: 22px;
    stroke: white;
}

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

.filter-nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    align-items: center;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    background: var(--card-bg);
    color: var(--text);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    display: none;
    line-height: 1;
}

.search-clear.visible {
    display: block;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.filter-btn:hover { border-color: var(--primary-light); }

.filter-icon {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
    margin-right: 2px;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sort-dropdown {
    position: relative;
}

.sort-toggle {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sort-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.sort-dropdown.open .sort-arrow {
    transform: rotate(180deg);
}

.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    min-width: 130px;
    z-index: 150;
}

.sort-dropdown.open .sort-menu {
    display: block;
}

.sort-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.sort-btn:hover {
    background: var(--bg);
}

.sort-btn.active {
    color: var(--primary);
    font-weight: 500;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 30px 0 60px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f0ebe4;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-vegan { background: #4a7c59; color: white; }
.badge-lacto { background: #5b7fa3; color: white; }
.badge-meat { background: #a65d57; color: white; }

.product-info { padding: 16px; }

.product-name {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.product-price::before {
    content: '$';
    font-size: 0.85rem;
}

.footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .header { padding: 35px 0 20px; }
    .logo h1 { font-size: 1.5rem; }
    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-info { padding: 12px; }
    .product-name { font-size: 0.95rem; }
    .product-desc { display: none; }
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}


.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 500px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-info {
    padding: 16px 20px 20px;
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.lightbox-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.lightbox-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.lightbox-price::before {
    content: 'NT$';
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 2px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.5);
    border: none;
    cursor: pointer;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-download {
    position: absolute;
    top: 20px;
    right: 75px;
    width: 44px;
    height: 44px;
    color: white;
    background: rgba(0,0,0,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-download:hover {
    background: rgba(0,0,0,0.7);
}

.lightbox-download svg {
    width: 22px;
    height: 22px;
}

.product-image { cursor: pointer; }
