/* ==========================================================
   HƯƠNG VIỆT — DESIGN SYSTEM TOKENS & CORE STYLES
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Design Tokens */
    --primary: #030213;
    --primary-foreground: #ffffff;
    --background: #ffffff;
    --card: #ffffff;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --accent: #f3f3f5;
    --accent-foreground: #030213;
    --destructive: #d4183d;
    --destructive-foreground: #ffffff;
    --success: #16a34a;
    --success-foreground: #ffffff;
    --warning: #f59e0b;
    --info: #3b82f6;
    --border: #e9ebef;
    --input-background: #f3f3f5;
    --radius: 12px;

    --font-sans: 'Inter', system-ui, sans-serif;

    /* Status Colors */
    --status-available: #eef2ff;
    --status-available-text: #4f46e5;
    --status-serving: #eff6ff;
    --status-serving-text: #2563eb;
    --status-reserved: #fffbeb;
    --status-reserved-text: #d97706;
    --status-cleaning: #fef2f2;
    --status-cleaning-text: #dc2626;
}

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

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    outline: none;
}

input,
select,
textarea {
    font-family: inherit;
    outline: none;
}

/* ── Customer Layout Shell ── */
.l-customer-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.l-customer-topbar {
    border-bottom: 1px solid var(--border);
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.brand-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--accent);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.l-customer-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ── Page Specific: Public Menu ── */
.menu-head {
    text-align: center;
    margin-bottom: 24px;
}

.menu-title {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.menu-subtitle {
    font-size: 14px;
    color: var(--muted-foreground);
}

.search-container {
    max-width: 480px;
    margin: 0 auto 24px;
    position: relative;
}

.search-box {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: var(--muted-foreground);
    font-size: 13px;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: var(--input-background);
    border: none;
    border-radius: 8px;
    padding: 10px 14px 10px 36px;
    font-size: 14px;
    color: var(--primary);
}

.search-box input::placeholder {
    color: var(--muted-foreground);
}

/* Tabs */
.tabs-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.tabs-wrap {
    display: inline-flex;
    background: var(--accent);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.tab {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-foreground);
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    background: var(--card);
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Grid & Cards */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

.menu-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--accent);
}

.menu-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.menu-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 8px;
}

.menu-card-cat {
    font-size: 12px;
    color: var(--muted-foreground);
    margin-bottom: 8px;
}

.menu-card-desc {
    font-size: 13px;
    color: var(--muted-foreground);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.menu-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.btn-add {
    border: 1px solid var(--border);
    background: transparent;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-add:hover {
    background: var(--accent);
}

.badge-soldout {
    background: #fef2f2;
    color: #ef4444;
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.text-soldout {
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}