/* =========================================================
   WARKOP LUMINA — VISUAL REFRESH v2
   Dimuat setelah style.css dan ux.css.
   Arah: hangat (warkop), kartu lembut, tipografi lebih lapang.
   Hapus <link> ke file ini untuk kembali ke tampilan lama.
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root,
[data-theme="dark"] {
    --bg-primary: #121110;
    --bg-card: #1b1917;
    --bg-elevated: #262220;
    --bg-input: #ffffff;
    --text-primary: #f6f1e8;
    --text-secondary: #c9bfb1;
    --text-muted: #9c9285;
    --accent: #f2b93b;
    --accent-dark: #d99e22;
    --accent-gradient: linear-gradient(135deg, #ffd166, #f0b02c);
    --accent-soft: rgba(242, 185, 59, 0.14);
    --accent-ink: #2a1d00;
    --price-color: #5fd394;
    --danger: #ff7b7b;
    --border: #302c27;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.42);
    --surface-blur: rgba(18, 17, 16, 0.86);
}

[data-theme="light"] {
    --bg-primary: #faf7f2;
    --bg-card: #ffffff;
    --bg-elevated: #f2ece2;
    --bg-input: #ffffff;
    --text-primary: #1c1814;
    --text-secondary: #5b5348;
    --text-muted: #857a6b;
    --accent: #e0a52b;
    --accent-dark: #b88317;
    --accent-gradient: linear-gradient(135deg, #f7c65a, #e0a52b);
    --accent-soft: rgba(224, 165, 43, 0.14);
    --accent-ink: #4a3100;
    --price-color: #146c3c;
    --danger: #cf2f2f;
    --border: #ebe4d9;
    --shadow-sm: 0 1px 2px rgba(28, 24, 20, 0.04), 0 2px 10px rgba(28, 24, 20, 0.06);
    --shadow-md: 0 8px 24px rgba(28, 24, 20, 0.12);
    --surface-blur: rgba(250, 247, 242, 0.86);
}

/* ---------- 2. TIPOGRAFI ---------- */
body {
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.005em;
}

.app-header .brand,
.app-header .brand:visited {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 18px 14px 6px;
}

.page-header .page-title {
    font-size: 16px;
    letter-spacing: -0.01em;
}

.cat-name {
    font-size: 13.5px;
    letter-spacing: -0.01em;
}

.product-card .product-name {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}

.product-card .product-price {
    font-size: 15px;
    letter-spacing: -0.01em;
}

/* ---------- 3. HEADER (frosted warm) ---------- */
.app-header,
.page-header {
    background: var(--bg-primary);
    padding: 10px 14px;
    border-bottom: 1px solid transparent;
    box-shadow: 0 1px 0 var(--border);
}

@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
    .app-header,
    .page-header {
        background: var(--surface-blur);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
        border-bottom: 1px solid var(--border);
        box-shadow: none;
    }
}

.app-header .brand {
    color: var(--text-primary);
    position: relative;
}

.app-header .brand::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 3px;
    background: var(--accent-gradient);
    vertical-align: 2px;
}

.status-open {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 4px 9px;
}

.status-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 3px rgba(20, 108, 60, 0.16);
}

/* tombol ikon header: lingkaran lembut, bukan kotak abu */
.header-cart,
.header-history,
.theme-toggle,
.page-header .back-btn {
    background: var(--bg-elevated);
    border: 1px solid transparent;
    color: var(--text-primary);
    transition: background 0.18s ease, transform 0.18s ease;
}

.header-cart:active,
.header-history:active,
.theme-toggle:active,
.page-header .back-btn:active {
    transform: scale(0.94);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-elevated);
    border-color: transparent;
}

/* ---------- 4. BANNER ---------- */
.banner-section {
    padding: 10px 14px 2px;
}

.banner-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-elevated);
}

.banner-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- 5. KATEGORI ---------- */
.category-grid {
    gap: 10px;
    padding: 6px 14px 18px;
}

.cat-item {
    padding: 13px 14px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="light"] .cat-item {
    border-color: var(--border);
}

.cat-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.cat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(224, 165, 43, 0.16);
    font-size: 22px;
}

/* ---------- 6. KARTU PRODUK ---------- */
.product-grid {
    gap: 10px;
    padding: 8px 14px 28px;
}

.product-card {
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="light"] .product-card {
    border-color: var(--border);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Penting: atribut height="400" pada <img> (dipakai untuk mencegah
   layout shift) dipetakan browser sebagai presentational hint tinggi
   tetap, sehingga aspect-ratio 1/1 diabaikan dan gambar tampil
   memanjang. height:auto mengembalikan kendali ke aspect-ratio. */
.product-card .product-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card .product-info {
    padding: 10px 12px 6px;
}

.product-card .product-price {
    margin-top: 6px;
}

/* CATATAN: selector harus .product-card .product-btn agar menang
   dari aturan lama (0,2,0) di style.css. Dengan .product-btn saja,
   warna & bentuk pill tidak pernah terpakai. */
.product-card .product-btn {
    margin: 8px 10px 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(224, 165, 43, 0.38);
    color: var(--accent-ink);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

[data-theme="dark"] .product-card .product-btn {
    background: rgba(242, 185, 59, 0.16);
    border-color: rgba(242, 185, 59, 0.42);
    color: var(--accent);
}

.product-card .product-btn:active,
.product-card .product-btn.added {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

/* ---------- 7. TOMBOL ---------- */
.btn-primary {
    border-radius: 999px;
    padding: 15px 18px;
    font-size: 14.5px;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 18px rgba(224, 165, 43, 0.32);
}

.btn-secondary {
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.bottom-bar {
    background: var(--surface-blur);
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(28, 24, 20, 0.06);
}

@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
    .bottom-bar {
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
    }
}

/* ---------- 8. KERANJANG ---------- */
.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 6px 14px;
}

.cart-item {
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
}

.cart-item-name {
    font-size: 13.5px;
    font-weight: 600;
}

.cart-item-price {
    font-size: 11.5px;
    color: var(--text-muted);
}

.cart-item-subtotal {
    font-size: 14px;
    margin-top: 5px;
}

.cart-qty a {
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    font-weight: 700;
}

.cart-qty a:active {
    background: var(--accent-soft);
}

.cart-summary {
    margin: 12px 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.cart-summary .total {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.cart-summary .label {
    font-size: 13px;
}

/* ---------- 9. CHECKOUT ---------- */
.checkout-section {
    padding: 6px 14px 8px;
}

.form-group label {
    font-size: 12.5px;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 13px 14px;
    font-size: 15px;
    color: #1c1814;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
    background: #f7f3ec;
    color: #1c1814;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.order-summary {
    margin: 6px 14px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.change-box {
    border-radius: 12px;
    background: var(--accent-soft);
    border-color: transparent;
}

.change-box .change-label {
    color: var(--text-secondary);
}

/* ---------- 10. RIWAYAT ---------- */
.history-item {
    margin: 0 14px 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 14px;
}

.history-code {
    font-size: 12.5px;
    letter-spacing: 0.02em;
}

.history-status {
    padding: 3px 10px;
    font-size: 11px;
    letter-spacing: 0.01em;
}

[data-theme="dark"] .history-status.done {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

/* ---------- 11. EMPTY STATE ---------- */
.empty-state {
    padding: 56px 24px;
}

.empty-state .empty-icon {
    font-size: 46px;
    opacity: 0.45;
    margin-bottom: 14px;
}

.empty-state .empty-title {
    font-size: 15.5px;
    letter-spacing: -0.01em;
}

.empty-state .empty-text {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* ---------- 12. TOAST & FAB ---------- */
.toast-msg {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    padding: 12px 20px;
}

[data-theme="dark"] .toast-msg {
    background: #f6f1e8;
    color: #1c1814;
}

#floating-cart {
    width: 54px;
    height: 54px;
    font-size: 21px;
    box-shadow: 0 10px 24px rgba(224, 165, 43, 0.42);
}

#floating-cart #cart-count-fab {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 10px;
    min-width: 19px;
    height: 19px;
}

/* ---------- 14. ANIMASI MASUK TANPA PERGESERAN POSISI ---------- */
/* Sebelumnya tiap kartu muncul dengan translateY + delay berbeda, jadi
   saat halaman baru dibuka posisi kartu kiri/kanan terlihat tidak
   sejajar. Sekarang hanya fade singkat tanpa delay, dan hanya untuk
   pengguna yang tidak meminta animasi dikurangi. */
@media (prefers-reduced-motion: no-preference) {
    .cat-item,
    .product-card,
    .cart-item,
    .history-item,
    .form-group,
    .cart-summary,
    .banner-card {
        animation: fadeIn 0.18s ease both !important;
    }
}

/* ---------- 15. JARAK GRID SEDIKIT DILAPANGKAN ---------- */
.product-grid {
    gap: 12px;
    padding: 6px 14px 32px;
}

.category-grid {
    row-gap: 12px;
}

/* ---------- 16. DETAIL HALUS ---------- */
::selection {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.notif-toast {
    border-radius: 14px;
    border-color: var(--border);
}

.history-empty,
.cart-empty {
    color: var(--text-secondary);
}

/* =========================================================
   17. BERANDA ETALASE (semua produk di home)
   ========================================================= */

/* scroll halus ke anchor kategori */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Chip kategori menempel di bawah header (tinggi header 64px) */
.cat-chips {
    position: sticky;
    top: 64px;
    z-index: 90;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 14px;
}

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

@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
    .cat-chips {
        background: var(--surface-blur);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
    }
}

.cat-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease;
}

.cat-chip:active {
    background: var(--accent-soft);
    transform: scale(0.97);
}

/* Ringkasan jumlah menu */
.home-meta {
    padding: 12px 14px 0;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* Section per kategori */
.menu-section {
    scroll-margin-top: 128px;
}

.menu-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 14px 2px;
}

.menu-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.menu-section-icon {
    font-size: 18px;
    line-height: 1;
}

.menu-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-ink);
    white-space: nowrap;
}

[data-theme="dark"] .menu-link {
    color: var(--accent);
}

.menu-section .product-grid {
    padding-top: 10px;
}

/* Footer */
.site-footer {
    margin-top: 8px;
    padding: 26px 20px calc(30px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.site-footer strong {
    color: var(--text-primary);
    font-size: 13.5px;
    letter-spacing: -0.01em;
}

.site-footer-links a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-links span {
    margin: 0 6px;
    opacity: 0.6;
}

/* =========================================================
   18. CTA, STRIP INFO, STATUS TUTUP, STICKY CART BAR
   ========================================================= */

/* CTA di bawah banner */
.hero-cta {
    margin: 14px 14px 12px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 62%),
        var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.hero-cta-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-cta-text {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin-top: 13px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: var(--accent-ink);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 16px rgba(224, 165, 43, 0.28);
    transition: transform 0.16s ease;
}

.hero-cta-btn:active {
    transform: scale(0.97);
}

/* Strip info kepercayaan */
.trust-strip {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 14px 10px;
}

.trust-strip li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 11px 8px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.trust-icon {
    font-size: 16px;
    line-height: 1.4;
}

.trust-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.trust-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Badge status tutup */
.status-open.is-closed {
    background: rgba(207, 47, 47, 0.12);
    color: var(--text-secondary);
}

.status-open.is-closed .status-dot {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(207, 47, 47, 0.16);
}

/* Flag "Terlaris" pada kartu produk */
.product-card {
    position: relative;
}

.product-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: var(--accent-ink);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.menu-link.is-static {
    color: var(--text-muted);
    font-weight: 600;
}

/* Sticky cart bar */
.cart-bar {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 130%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: calc(100% - 28px);
    max-width: 452px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: var(--accent-ink);
    box-shadow: 0 12px 28px rgba(224, 165, 43, 0.42);
    z-index: 9999;
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cart-bar.is-visible {
    transform: translate(-50%, 0);
}

.cart-bar-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.cart-bar-count {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.78;
}

.cart-bar-total {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.cart-bar-cta {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* FAB disembunyikan saat bar tampil supaya tidak dobel */
body.has-cart-bar #floating-cart {
    display: none !important;
}

/* Atribut hidden harus menang atas display:flex di atas, kalau tidak
   link tak terlihat tetap bisa dijangkau Tab. */
.cart-bar[hidden] {
    display: none !important;
}

/* Beri ruang bawah supaya footer tidak tertutup bar */
body.has-cart-bar .app-wrapper {
    padding-bottom: 92px;
}

@media (max-width: 380px) {
    .cart-bar-cta {
        font-size: 12px;
    }

    .cart-bar {
        padding: 11px 15px;
    }
}

/* =========================================================
   19. LAYOUT DESKTOP
   Semua aturan di bawah hanya berlaku di layar >= 900px,
   jadi tampilan mobile tidak berubah sama sekali.
   ========================================================= */
@media (min-width: 900px) {

    /* Keranjang/checkout/riwayat tetap kolom nyaman dibaca */
    :root {
        --container-max: 720px;
    }

    /* Beranda & kategori jadi lebar penuh */
    .page-home .app-wrapper,
    .page-category .app-wrapper {
        max-width: 1180px;
    }

    .page-home .app-header,
    .page-category .page-header {
        padding: 14px 26px;
    }

    .page-home .app-header .brand {
        font-size: 19px;
    }

    /* Banner lebih besar tapi tidak menjulang */
    .page-home .banner-section {
        padding: 20px 26px 4px;
    }

    .page-home .banner-card img {
        max-height: 400px;
        object-fit: cover;
        object-position: center;
    }

    /* CTA jadi satu baris: teks kiri, tombol kanan */
    .hero-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        margin: 20px 26px 14px;
        padding: 24px 28px;
    }

    .hero-cta-title {
        font-size: 22px;
    }

    .hero-cta-text {
        max-width: 62ch;
        font-size: 14px;
    }

    .hero-cta-btn {
        margin-top: 0;
        flex-shrink: 0;
        padding: 13px 26px;
        font-size: 14px;
    }

    /* Strip info jadi kartu horizontal */
    .trust-strip {
        gap: 14px;
        margin: 0 26px 6px;
    }

    .trust-strip li {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 9px;
        padding: 15px 18px;
        text-align: left;
    }

    .trust-icon {
        font-size: 18px;
    }

    .trust-value {
        font-size: 13px;
    }

    /* Chip kategori menempel di bawah header desktop */
    .page-home .cat-chips {
        top: 73px;
        padding: 14px 26px;
    }

    /* Judul section & jumlah menu */
    .page-home .menu-section-head {
        padding: 30px 26px 4px;
    }

    .page-home .menu-section-title {
        font-size: 18px;
    }

    .page-home .home-meta {
        padding: 16px 26px 0;
        font-size: 12.5px;
    }

    /* Grid produk desktop: 4 kolom, naik jadi 5 di layar lebar */
    .page-home .product-grid,
    .page-category .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
        padding: 10px 26px 30px;
    }

    .menu-section .product-grid {
        padding: 10px 26px 26px;
        gap: 18px;
    }

    .page-category .container,
    .page-category .product-grid {
        max-width: 1180px;
    }

    .page-home .banner-card,
    .page-home .hero-cta,
    .page-home .product-card {
        border-radius: 20px;
    }

    /* Footer melebar */
    .page-home .site-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        text-align: left;
        padding: 28px 26px;
    }

    .page-home .site-footer p {
        margin: 0;
    }

    /* Keranjang & checkout: kolom lebih lega, tidak melar */
    .bottom-bar {
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .cart-bar {
        max-width: 520px;
    }
}

@media (min-width: 1280px) {
    .page-home .app-wrapper,
    .page-category .app-wrapper {
        max-width: 1320px;
    }

    .page-home .product-grid,
    .page-category .product-grid,
    .menu-section .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
