@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Serif+SC:wght@300;600;900&display=swap');

:root {
    --primary: #8FA998;
    /* Sage Green */
    --primary-light: #A7C0B0;
    --background: #F7F3E9;
    /* Rice Paper / Cream */
    --text-main: #2C3E50;
    /* Deep Slate Blue-Grey */
    --text-dim: #7F8C8D;
    --accent: #A67C52;
    /* Wood Bronze */
    --glass-white: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(143, 169, 152, 0.2);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', 'PingFang SC', sans-serif;
    background-color: var(--background);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.6;
}

h1,
h2,
h3,
.serif {
    font-family: 'Noto Serif SC', serif;
}

/* Scroll Container for Traditional Vibe */
.zen-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--background);
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-position: top left;
    min-height: 100vh;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* Shanshui Image Background Layer */
.zen-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--zen-bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

/* Header Redesign */
header {
    padding: 4rem 2rem 2rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 2px;
}

header p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Option C: Traditional Vertical Dish Entries */
.dish-list-zen {
    padding: 1rem;
}

.zen-dish-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-soft);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zen-dish-item:active {
    transform: scale(0.98);
}

.zen-dish-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.zen-dish-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zen-dish-info {
    flex: 1;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.zen-dish-titles {
    flex: 1;
}

.zen-dish-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    writing-mode: vertical-rl;
    /* Traditional vertical text for names */
    max-height: 120px;
    display: inline-block;
    padding: 0 5px;
}

.zen-dish-price-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.zen-dish-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.zen-add-btn {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(143, 169, 152, 0.3);
}

/* Category Chips Zen */
.cat-scroller-zen {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
    gap: 1.5rem;
    margin: 0 1rem;
    scrollbar-width: none;
}

.cat-scroller-zen::-webkit-scrollbar {
    display: none;
}

.cat-item-zen {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    color: var(--text-dim);
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.cat-item-zen.active {
    color: var(--primary);
    font-weight: 600;
}

.cat-item-zen.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Cart Hub Zen */
.cart-hub-zen {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 15px 35px rgba(143, 169, 152, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    width: 85%;
    max-width: 400px;
    justify-content: space-between;
}

.cart-hub-zen.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}