
/* ======================================================
   WIDYMIESO - FINAL DESIGN
   ====================================================== */

:root {
    --utama: #701212;
    --tua: #461c14;
    --aksen: #df8e26;
    --latar: #f7f2e9;
    --kartu: #fffdf8;
    --garis: #e7ddc9;
    --teks: #2b2a26;
    --lembut: #7a7568;
    --soft: #fbf1dc;
    --bayang: 0 6px 18px rgba(70, 28, 20, .10);

    --radius-besar: 16px;
    --radius-sedang: 12px;
    --radius-kecil: 8px;
}

/* ======================================================
   RESET
   ====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--latar);
    color: var(--teks);
    line-height: 1.6;
}

button, input, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(1160px, calc(100% - 48px));
    margin: auto;
}

/* ======================================================
   NAVBAR
   ====================================================== */

.topbar {
    background: var(--kartu);
    border-bottom: 1px solid var(--garis);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 19px;
    color: var(--tua);
}

.logo {
    width: 45px;
    height: 45px;
    background: var(--utama);
    color: white;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sedang);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.nav-link {
    padding: 11px 19px;
    border: 1px solid var(--garis);
    border-radius: var(--radius-kecil);
    font-size: 13px;
    font-weight: 700;
    color: var(--utama);
    transition: .2s;
}

.nav-link:hover {
    background: var(--utama);
    color: white;
    border-color: var(--utama);
}

/* ======================================================
   HERO / BANNER UTAMA
   ====================================================== */

.hero {
    margin: 30px 0 25px;
    padding: 48px;
    min-height: 365px;
    background: linear-gradient(
        120deg,
        var(--tua),
        var(--utama)
    );
    border-radius: var(--radius-besar);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: center;
    gap: 30px;
    overflow: hidden;
    color: white;
}

.eyebrow {
    display: inline-block;
    color: #f4b65a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

.eyebrow.dark {
    color: var(--aksen);
}

.hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(32px, 5vw, 53px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-copy p {
    color: #f8e9e1;
    font-size: 16px;
    max-width: 530px;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.info span {
    padding: 9px 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-kecil);
}

.hero-art {
    position: relative;
    min-width: 0;
    min-height: 320px;
    display: grid;
    place-items: center;
}

/* GAMBAR BANNER */

.hero-art img {
    position: relative;
    z-index: 2;
    display: block;
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border: 4px solid rgba(255, 255, 255, .20);
    border-radius: var(--radius-sedang);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .20);
}

.orbit {
    position: absolute;
    width: min(100%, 330px);
    aspect-ratio: 1 / 1;
    border: 2px dashed rgba(255, 255, 255, .35);
    border-radius: 50%;
}

.art-label {
    position: absolute;
    z-index: 3;
    bottom: 5px;
    right: 0;
    background: var(--aksen);
    color: white;
    padding: 13px 19px;
    border-radius: var(--radius-sedang);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    transform: rotate(-5deg);
    box-shadow: var(--bayang);
}

/* ======================================================
   NOTICE
   ====================================================== */

.notice {
    background: var(--soft);
    border: 1px solid #eed9af;
    color: #805319;
    padding: 17px 20px;
    border-radius: var(--radius-sedang);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* ======================================================
   LAYOUT MENU DAN KERANJANG
   ====================================================== */

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 26px;
    margin-bottom: 60px;
}

.catalog {
    min-width: 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-head h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 27px;
}

.muted {
    color: var(--lembut);
    font-size: 12px;
}

/* ======================================================
   FILTER KATEGORI
   ====================================================== */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 23px;
}

.chip {
    background: var(--kartu);
    color: var(--tua);
    border: 1px solid var(--garis);
    padding: 10px 18px;
    border-radius: var(--radius-kecil);
    font-size: 12px;
    font-weight: 700;
    transition: .2s;
}

.chip:hover,
.chip.on {
    background: var(--utama);
    color: white;
    border-color: var(--utama);
}

/* ======================================================
   GRID MENU
   ====================================================== */

.menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 18px;
}

/* ======================================================
   KARTU PRODUK
   ====================================================== */

.card {
    background: var(--kartu);
    border: 1px solid var(--garis);
    border-radius: var(--radius-sedang);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    transition: box-shadow .25s;
}

.card:hover {
    box-shadow: var(--bayang);
}

/* ======================================================
   GAMBAR MENU - UKURAN SERAGAM
   ====================================================== */

.foto {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--latar);
    display: grid;
    place-items: center;
}

.foto img {
    position: absolute;
    inset: 0;
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 0;
    transform: none;
}

/* MENGHILANGKAN EFEK ZOOM */

.card:hover .foto img {
    transform: none;
}

.emoji {
    font-size: 65px;
}

/* ======================================================
   INFORMASI PRODUK
   ====================================================== */

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.tag {
    align-self: flex-start;
    display: inline-block;
    background: var(--soft);
    color: var(--utama);
    padding: 5px 10px;
    border-radius: var(--radius-kecil);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--tua);
}

.desk {
    color: var(--lembut);
    font-size: 12px;
    line-height: 1.6;
    min-height: 60px;
    margin-bottom: 12px;
}

/* HARGA DAN TOMBOL SEJAJAR */

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.harga {
    font-size: 15px;
    color: var(--utama);
    font-weight: 800;
    white-space: nowrap;
}

/* ======================================================
   BUTTON
   ====================================================== */

.btn {
    border: none;
    border-radius: var(--radius-kecil);
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 800;
    transition: .2s;
}

.btn.add,
.btn.primary,
.selesai-btn {
    background: var(--utama);
    color: white;
}

.btn.add {
    white-space: nowrap;
}

.btn.add:hover,
.btn.primary:hover,
.selesai-btn:hover {
    background: var(--tua);
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.btn.wide {
    width: 100%;
    padding: 15px;
}

/* ======================================================
   PANEL KERANJANG
   ====================================================== */

.panel {
    background: var(--kartu);
    border: 1px solid var(--garis);
    border-radius: var(--radius-sedang);
    padding: 23px;
    box-shadow: var(--bayang);
}

.cart {
    position: sticky;
    top: 95px;
    max-height: calc(100vh - 115px);
    overflow-y: auto;
}

.pill {
    background: var(--soft);
    color: var(--utama);
    border-radius: var(--radius-kecil);
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 800;
}

.cart-items {
    margin-bottom: 20px;
}

.empty {
    text-align: center;
    color: var(--lembut);
    font-size: 12px;
    padding: 25px 10px;
    background: var(--latar);
    border-radius: var(--radius-kecil);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--garis);
}

.ci-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ci-info strong {
    font-size: 12px;
}

.ci-info small {
    color: var(--utama);
    font-weight: 700;
    font-size: 11px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step button {
    width: 27px;
    height: 27px;
    background: var(--soft);
    border: none;
    color: var(--utama);
    border-radius: 6px;
    font-weight: 800;
}

.step button:hover {
    background: var(--utama);
    color: white;
}

.step span {
    font-size: 12px;
    font-weight: 800;
}

/* ======================================================
   FORM PEMESANAN
   ====================================================== */

#orderForm {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#orderForm label {
    font-size: 12px;
    font-weight: 800;
    margin-top: 9px;
}

#orderForm input,
#orderForm textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--garis);
    border-radius: var(--radius-kecil);
    outline: none;
    background: var(--latar);
    font-size: 12px;
    color: var(--teks);
    resize: vertical;
}

#orderForm input:focus,
#orderForm textarea:focus {
    border-color: var(--aksen);
    box-shadow: 0 0 0 3px rgba(223, 142, 38, .15);
}

.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--garis);
    margin: 13px 0;
    padding-top: 17px;
    font-size: 12px;
    font-weight: 700;
}

.total strong {
    color: var(--utama);
    font-size: 19px;
}

.feedback {
    padding: 12px;
    border-radius: var(--radius-kecil);
    font-size: 11px;
    font-weight: 700;
}

.feedback.ok {
    background: #eaf7ef;
    color: #328255;
}

.feedback.err {
    background: #fff0f0;
    color: #c34f4f;
}

/* ======================================================
   HALAMAN KASIR
   ====================================================== */

.kasir-head {
    padding: 45px 0 25px;
}

.kasir-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.kasir-title h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 37px;
    color: var(--tua);
}

.orders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.orders > .empty {
    grid-column: 1 / -1;
}

.order {
    background: var(--kartu);
    border: 1px solid var(--garis);
    padding: 23px;
    border-radius: var(--radius-sedang);
    box-shadow: var(--bayang);
}

.order.selesai {
    opacity: .7;
    background: var(--latar);
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--garis);
}

.pemesan {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.meja {
    display: inline-block;
    margin-top: 5px;
    color: var(--utama);
    font-size: 12px;
    font-weight: 700;
}

.waktu {
    color: var(--lembut);
    font-size: 11px;
    margin-top: 5px;
}

.status-done {
    background: #eaf7ef;
    color: #328255;
    padding: 8px 12px;
    border-radius: var(--radius-kecil);
    font-size: 11px;
    font-weight: 800;
}

.catatan {
    background: var(--soft);
    color: #805319;
    padding: 11px;
    border-radius: var(--radius-kecil);
    font-size: 11px;
    margin-top: 13px;
}

.order ul {
    list-style: none;
    margin-top: 15px;
}

.order li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--garis);
    font-size: 12px;
}

.order li small {
    color: var(--lembut);
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin-top: 17px;
    font-size: 13px;
    font-weight: 700;
}

.order-total strong {
    color: var(--utama);
    font-size: 17px;
}

/* ======================================================
   FOOTER
   ====================================================== */

.footer {
    border-top: 1px solid var(--garis);
    padding-top: 22px;
    padding-bottom: 25px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--lembut);
    font-size: 11px;
    font-weight: 600;
}

/* ======================================================
   RESPONSIVE LAPTOP KECIL
   ====================================================== */

@media (max-width: 1100px) {

    .layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 20px;
    }

    .menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* ======================================================
   RESPONSIVE TABLET
   ====================================================== */

@media (max-width: 900px) {

    .layout {
        grid-template-columns: 1fr;
    }

    .menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cart {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .hero {
        padding: 35px;
    }

    .hero-art {
        min-height: 270px;
    }

}

/* ======================================================
   RESPONSIVE HP
   ====================================================== */

@media (max-width: 600px) {

    .wrap {
        width: calc(100% - 28px);
    }

    .nav {
        min-height: 65px;
    }

    .brand {
        font-size: 14px;
        gap: 8px;
    }

    .logo {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: var(--radius-kecil);
    }

    .nav-link {
        padding: 9px 12px;
        font-size: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 27px 22px;
        gap: 25px;
        margin-top: 20px;
        border-radius: var(--radius-sedang);
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-copy p {
        font-size: 13px;
    }

    .hero-art {
        min-height: 250px;
    }

    .hero-art img {
        width: min(100%, 230px);
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: var(--radius-sedang);
    }

    .orbit {
        width: min(100%, 250px);
    }

    .art-label {
        right: 0;
        font-size: 12px;
        padding: 10px 13px;
    }

    .info {
        gap: 8px;
        font-size: 10px;
    }

    .notice {
        font-size: 11px;
    }

    .section-head h2 {
        font-size: 24px;
    }

    .filters {
        gap: 7px;
    }

    .chip {
        font-size: 11px;
        padding: 8px 13px;
    }

    .menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 12px;
    }

    .card {
        border-radius: 10px;
        height: 100%;
    }

    .foto {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .card-body {
        padding: 12px;
    }

    .tag {
        font-size: 9px;
    }

    .card h3 {
        font-size: 12px;
    }

    .desk {
        font-size: 10px;
        min-height: 64px;
    }

    .harga {
        font-size: 12px;
    }

    .card-foot {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn.add {
        padding: 8px 10px;
        font-size: 10px;
        border-radius: 7px;
    }

    .panel {
        padding: 18px;
    }

    .orders {
        grid-template-columns: 1fr;
    }

    .kasir-title h1 {
        font-size: 29px;
    }

    .footer {
        flex-direction: column;
        gap: 5px;
    }

}
