:root {
    /* PALET WARNA CERAH */
    --bg-main: #fffef5;
    --bg-card: #ffffff;
    --bg-card-soft: #ffffff;
    --bg-chip: #e8f5e9;
    --bg-chip-active: #22c55e;
    --border-soft: #e5e7eb;

    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.12);
    --danger: #ef4444;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);

    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, #fffef5, #fff9db, #fefce8);
}

body {
    min-height: 100vh;
}

/* Layout page */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top bar */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
    background: #ffffffcc;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #facc15, #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.7);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #111827;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.table-info {
    text-align: right;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
    color: #f0fdf4;
}

.table-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.9;
}

.table-name {
    font-size: 18px;
    font-weight: 700;
}

.table-code {
    font-size: 11px;
}

/* Main content */

.content {
    flex: 1;
    padding: 18px 16px 132px;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}

/* Intro section */

.intro-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: stretch;
    gap: 14px;
    margin-bottom: 16px;
}

.intro-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-soft);
}

.order-step {
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 700;
}

.intro-text h1 {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 700;
    color: #111827;
}

.intro-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.customer-form {
    padding: 14px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.customer-form .field {
    margin-bottom: 0;
}

.customer-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 10px;
    margin-bottom: 10px;
}

.customer-form label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.customer-form input,
.customer-form textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 12px 13px;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
}

.customer-form textarea {
    min-height: 48px;
    resize: vertical;
}

.customer-form input:focus,
.customer-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

/* Category section */

.category-section {
    position: sticky;
    top: 70px;
    z-index: 15;
    padding: 10px 0 8px;
    background: linear-gradient(180deg, rgba(255, 254, 245, 0.98), rgba(255, 254, 245, 0.9));
    backdrop-filter: blur(16px);
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 0;
    color: #111827;
}

.section-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.btn-clear-search {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.menu-search {
    margin-bottom: 8px;
}

.menu-search input {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0 15px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.menu-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.category-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

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

.chip {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid #c4e9cf;
    background: var(--bg-chip);
    color: #166534;
    font-size: 13px;
    padding: 8px 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip:hover {
    border-color: #86efac;
    background: #dcfce7;
}

.chip.active {
    background: var(--bg-chip-active);
    border-color: #15803d;
    color: #ecfdf5;
}

/* Menu grid */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.menu-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.menu-card[hidden] {
    display: none;
}

.menu-card.is-selected {
    border-color: #22c55e;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.18);
}

.menu-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.menu-image-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, #fb923c, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
    color: #fefce8;
}

.menu-category-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    color: #111827;
}

.menu-body {
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.menu-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.menu-price {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

.menu-desc {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.menu-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.note-field {
    margin-top: 6px;
}

.note-field input {
    width: 100%;
    font-size: 13px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 9px 10px;
    color: var(--text-main);
    outline: none;
}

.note-field input:focus {
    border-color: var(--accent);
}

/* Qty control */

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.btn-qty {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: var(--accent-soft);
    color: #16a34a;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty.minus {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-qty:active {
    transform: scale(0.95);
}

.qty-display {
    min-width: 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.menu-empty {
    padding: 18px 14px;
    border-radius: 16px;
    border: 1px dashed #d1d5db;
    background: #ffffff;
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

/* Bottom bar */

.bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffffee;
    border-top: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
    z-index: 30;
}

.bottom-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.bottom-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottom-line.small {
    font-size: 11px;
    color: var(--text-muted);
}

.bottom-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.bottom-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.bottom-value.price {
    color: #16a34a;
}

.btn-submit {
    border-radius: 999px;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff7ed;
    box-shadow: 0 12px 30px rgba(248, 148, 48, 0.45);
    cursor: pointer;
    white-space: nowrap;
}

.btn-submit:active {
    transform: translateY(1px) scale(0.99);
}

/* Thanks page */

.thanks-body {
    background: linear-gradient(135deg, #fefce8, #fffbeb);
    color: var(--text-main);
}

.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.thanks-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 28px 24px 26px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-soft);
}

.thanks-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.thanks-card h1 {
    margin: 0 0 10px;
    font-size: 24px;
}

.thanks-card p {
    margin: 4px 0;
    font-size: 14px;
}

.thanks-order {
    margin-top: 12px;
    padding-top: 6px;
    border-top: 1px dashed #e5e7eb;
}

/* Responsive */

@media (max-width: 768px) {
    .top-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .brand-title {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
        letter-spacing: 0;
    }

    .brand-subtitle {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
    }

    .table-info {
        align-self: auto;
        text-align: right;
        border-radius: 14px;
        padding: 7px 10px;
        box-shadow: none;
    }

    .table-label,
    .table-code {
        display: none;
    }

    .table-name {
        font-size: 14px;
    }

    .intro-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 10px;
    }

    .content {
        padding: 10px 10px 150px;
    }

    .intro-text {
        padding: 14px;
        border-radius: 18px;
    }

    .intro-text h1 {
        font-size: 22px;
    }

    .intro-text p {
        font-size: 13px;
    }

    .customer-form {
        border-radius: 18px;
        padding: 12px;
    }

    .customer-form-grid {
        grid-template-columns: minmax(0, 1fr) 84px;
    }

    .category-section {
        top: 55px;
        margin-inline: -10px;
        padding: 9px 10px 7px;
    }

    .menu-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .menu-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 0;
        border-radius: 18px;
    }

    .menu-image {
        height: 100%;
        min-height: 158px;
    }

    .menu-category-badge {
        left: 8px;
        top: 8px;
        max-width: calc(100% - 16px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
        padding: 3px 7px;
    }

    .menu-body {
        padding: 10px;
        min-width: 0;
    }

    .menu-title {
        font-size: 15px;
        line-height: 1.25;
    }

    .menu-desc {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .menu-footer {
        justify-content: flex-start;
    }

    .bottom-bar {
        align-items: center;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 148px;
        gap: 10px;
    }

    .btn-submit {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding-inline: 12px;
    }
}

@media (max-width: 380px) {
    .menu-card {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .menu-image {
        min-height: 168px;
    }

    .bottom-bar {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* FOOTER */

.site-footer {
    margin-top: 24px;
    padding: 16px 18px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    font-size: 11px;
    color: var(--text-muted);
}

.site-footer-main {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.site-footer-inner a {
    color: #16a34a;
    text-decoration: none;
}

.site-footer-inner a:hover {
    text-decoration: underline;
}

.site-footer-note {
    margin-bottom: 4px;
}

.site-footer-copy {
    font-size: 11px;
    opacity: 0.9;
}


/* HOME PAGE */

.home-content {
    padding-top: 22px;
}

/* Hero */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 20px;
    margin-bottom: 26px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    margin-bottom: 10px;
}

.hero-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-title span {
    color: #16a34a;
}

.hero-text {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-actions {
    margin-top: 4px;
}

.manual-order-form {
    padding: 12px 14px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    background: linear-gradient(135deg, #ffffff, #fefce8);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
}

.manual-order-form label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.manual-order-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.manual-order-row select {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-main);
}

.manual-order-row select:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-primary {
    border-radius: 999px;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ecfdf5;
    box-shadow: 0 12px 25px rgba(22, 163, 74, 0.35);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:active {
    transform: translateY(1px) scale(0.99);
}

.form-error {
    margin-top: 4px;
    font-size: 12px;
    color: #b91c1c;
}

.manual-hint {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.home-hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 14px 14px 12px;
    font-size: 13px;
}

.hero-card h2 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #16a34a;
}

.hero-card p {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.hero-contact {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--text-main);
}

.hero-contact li {
    margin-bottom: 2px;
}

/* Wifi card */

.wifi-card {
    font-size: 12px;
}

.wifi-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.wifi-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecfdf5;
}

.wifi-title {
    font-size: 14px;
    font-weight: 600;
}

.wifi-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.wifi-body {
    border-radius: 14px;
    background: #f0fdf4;
    border: 1px dashed #bbf7d0;
    padding: 10px;
}

.wifi-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.wifi-line span {
    font-size: 11px;
    color: var(--text-muted);
}

.wifi-line strong {
    font-size: 12px;
}

.wifi-note {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

/* Home sections */

.home-section {
    margin-top: 14px;
}

.home-section-header {
    margin-bottom: 10px;
}

.home-section-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.home-section-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* Top menu grid */

.top-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.top-menu-card {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.top-menu-img {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.top-menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-menu-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, #fb923c, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    color: #fefce8;
}

.top-menu-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.top-menu-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.top-menu-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.top-menu-meta .price {
    color: #16a34a;
    font-weight: 600;
}

.top-menu-meta .badge {
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.55);
    color: #166534;
}

.top-menu-meta .badge.alt {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.55);
    color: #1d4ed8;
}

.empty-note {
    font-size: 12px;
    color: var(--text-muted);
    background: #f9fafb;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px dashed #d1d5db;
}

/* Responsive override for home */

@media (max-width: 768px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero-side {
        order: 2;
    }

    .home-hero-main {
        order: 1;
    }

    .manual-order-row {
        flex-direction: column;
        align-items: stretch;
    }

    .manual-order-row select {
        width: 100%;
    }

    .top-menu-card {
        padding: 8px;
    }
}
