:root {
    --copper: #B86125;
    --copper-light: #D4844A;
    --copper-dark: #8B4513;
    --copper-glow: rgba(184, 97, 37, 0.3);
    --bg-dark: #1a1512;
    --bg-card: #2a221c;
    --bg-card-hover: #332a22;
    --bg-elevated: #3d3229;
    --text-primary: #f5e6d3;
    --text-secondary: #c4a882;
    --text-muted: #8a7560;
    --border: rgba(184, 97, 37, 0.2);
    --border-light: rgba(184, 97, 37, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: 'Montserrat', -apple-system, sans-serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

.menu-app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

/* Hero */
.hero {
    position: relative;
    padding: 48px 24px 32px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, var(--copper-glow) 0%, transparent 70%),
        linear-gradient(180deg, #2a1f18 0%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo-wrap {
    margin-bottom: 16px;
}

.logo-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--copper), var(--copper-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 4px 20px var(--copper-glow);
}

.logo-img {
    width: 200px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--copper);
    box-shadow: 0 4px 20px var(--copper-glow);
}

.cafe-name {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.cafe-tagline {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
    margin: 20px auto 0;
}

/* Menu Content & Views */
.menu-content {
    padding: 8px 16px 32px;
    position: relative;
    min-height: 50vh;
}

.menu-view {
    display: none;
    animation: viewOut 0.25s ease forwards;
}

.menu-view.active {
    display: block;
    animation: viewIn 0.35s ease forwards;
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes viewOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.view-intro {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.view-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.view-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 400;
}

/* Category Grid */
.category-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.category-card {
    display: block;
    width: 100%;
    min-height: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    padding: 0;
    font-family: inherit;
    color: inherit;
}

.category-card:hover,
.category-card:active {
    border-color: var(--border);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-card-visual {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.category-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-visual img {
    transform: scale(1.06);
}

.category-card-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: var(--copper);
    background: linear-gradient(135deg, rgba(184, 97, 37, 0.15), rgba(26, 21, 18, 0.5));
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(26, 21, 18, 0.75));
    pointer-events: none;
}

.category-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 22px 24px 24px;
    gap: 16px;
    background: linear-gradient(180deg, var(--bg-card) 0%, #241e19 100%);
}

.category-card-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.category-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.category-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 280px;
    font-weight: 300;
}

.category-card-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--copper);
    flex-shrink: 0;
}

.category-card-action span {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.category-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.35s ease;
    background: rgba(184, 97, 37, 0.08);
}

.category-card:hover .category-card-arrow {
    transform: translateX(4px);
    background: var(--copper);
    color: #fff;
    border-color: var(--copper);
    box-shadow: 0 4px 16px var(--copper-glow);
}

/* Products View */
.products-toolbar {
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 97, 37, 0.1);
    border: 1px solid var(--border);
    color: var(--copper-light);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.back-btn:hover {
    background: rgba(184, 97, 37, 0.2);
    border-color: var(--copper);
}

.back-btn i {
    font-size: 0.8rem;
}

.active-category-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0 4px;
}

.active-category-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(184, 97, 37, 0.12);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.active-category-icon-wrap i {
    color: var(--copper);
    font-size: 1.1rem;
}

.active-category-label h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.active-category-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
}

.active-category-desc:empty {
    display: none;
}

/* Product Grid — Premium Vertical Cards */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease,
                border-color 0.35s ease;
    opacity: 0;
    transform: translateY(24px);
}

.product-card.is-visible {
    animation: cardReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.product-card:hover {
    border-color: rgba(184, 97, 37, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(184, 97, 37, 0.1);
}

.product-visual {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-visual img {
    transform: scale(1.08);
}

.product-visual-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    animation: shine 1.2s ease 0.4s forwards;
    pointer-events: none;
}

.product-visual-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 45%,
        rgba(26, 21, 18, 0.4) 75%,
        rgba(26, 21, 18, 0.85) 100%
    );
    pointer-events: none;
}

.product-body {
    position: relative;
    padding: 24px 24px 26px;
    background: var(--bg-card);
}

.product-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.product-num {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--copper-light);
    line-height: 1.4;
    min-width: 30px;
    flex-shrink: 0;
    padding-top: 3px;
    font-variant-numeric: tabular-nums;
}

.product-main {
    flex: 1;
    min-width: 0;
}

.product-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 2px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0;
}

.product-sep {
    font-weight: 300;
    color: var(--text-muted);
    font-size: 1rem;
    opacity: 0.6;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.55;
    font-weight: 300;
}

.product-unit {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 400;
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-elevated), #2a221c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

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

@keyframes shine {
    to {
        transform: translateX(100%);
    }
}

@keyframes categoryReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Footer */
.menu-footer {
    padding: 32px 24px 40px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    background: linear-gradient(180deg, transparent, rgba(42, 34, 28, 0.5));
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-content a {
    color: var(--copper-light);
    text-decoration: none;
}

.footer-content i {
    color: var(--copper);
    margin-right: 6px;
    width: 16px;
}

.footer-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: categoryReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.category-card:nth-child(1) { animation-delay: 0.08s; }
.category-card:nth-child(2) { animation-delay: 0.16s; }
.category-card:nth-child(3) { animation-delay: 0.24s; }
.category-card:nth-child(4) { animation-delay: 0.32s; }

/* Tablet & Desktop */
@media (min-width: 481px) {
    .menu-app {
        max-width: 600px;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    }

    .category-card-visual {
        height: 220px;
    }

    .product-visual {
        height: 240px;
    }

    .product-name,
    .product-price {
        font-size: 1.12rem;
    }

    .product-desc {
        font-size: 0.84rem;
    }
}

@media (min-width: 768px) {
    .menu-app {
        max-width: 720px;
    }

    .category-card-visual {
        height: 240px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .product-visual {
        height: 210px;
    }
}
