:root {
    --swm-ink: #251b17;
    --swm-muted: #766960;
    --swm-line: #e8ddd5;
    --swm-accent: #bf7860;
    --swm-soft: #fff8f3;
    --swm-green: #1f7a56;
}

body {
    background: #fbf7f3;
    color: var(--swm-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--swm-ink);
    color: #fff;
    font-size: 16px;
}

.hero {
    min-height: calc(100vh - 58px);
    display: grid;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(37, 27, 23, .62), rgba(251, 247, 243, .98) 72%),
        url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: .92;
    color: #fff;
}

.glass-panel {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(37, 27, 23, .18);
}

.section-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px;
}

.category-tabs .btn {
    border-radius: 999px;
}

.product-card {
    border: 1px solid var(--swm-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-card.sold-out {
    opacity: .62;
}

.cart-panel,
.stat-card,
.content-card {
    border: 1px solid var(--swm-line);
    border-radius: 8px;
    background: #fff;
}

.app-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100vh - 58px);
}

.app-sidebar {
    background: #fff;
    border-right: 1px solid var(--swm-line);
    padding: 18px 14px;
}

.sidebar-title {
    color: var(--swm-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 8px 10px 14px;
}

.sidebar-link {
    display: block;
    color: var(--swm-ink);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: var(--swm-soft);
    color: #8d4d3d;
}

.app-main {
    padding: 22px;
}

.table th {
    color: var(--swm-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.receipt {
    width: min(100%, 560px);
    margin: 24px auto;
    background: #fff;
    border: 1px dashed #cbb9ab;
    border-radius: 8px;
    padding: 22px;
}

.qris-box {
    max-width: 320px;
    margin: 0 auto;
}

.payment-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--swm-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.payment-option input {
    margin-top: 5px;
}

.payment-option strong,
.payment-option small {
    display: block;
}

.payment-option small {
    color: var(--swm-muted);
}

.quick-cash {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        border-right: 0;
        border-bottom: 1px solid var(--swm-line);
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-link {
        white-space: nowrap;
        margin: 0;
    }
}

@media print {
    .navbar,
    .app-sidebar,
    .no-print,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .receipt {
        border: 0;
        margin: 0;
        width: 100%;
    }
}
