/* =====================================================
File: /lapak/assets/css/lapak.css
Project: far LAPAK / lapakwarga.id
Fungsi:
- Style utama PWA pembeli
- Mobile-first dengan desktop tetap ukuran mobile
- Warna pastel mengikuti front-end Claude
- Header/hero diberi sentuhan biru muda #0dc0e6

Catatan Patch:
- Jika ingin ubah warna utama, mulai dari :root
- Jika ingin ubah lebar aplikasi desktop, ubah --app-width
===================================================== */


/* =====================================================
ROOT VARIABLE
Fungsi:
- Palet warna pastel
- Warna utama biru muda
- Ukuran radius dan shadow global
===================================================== */

:root {
  --app-width: 430px;

  --brand-blue: #0dc0e6;
  --brand-blue-soft: #7ee3f5;

  --peach: #FFD6C0;
  --rose: #FFB5B5;
  --mint: #B5EAD7;
  --sky: #C7E8F3;
  --lavender: #D4C5F9;
  --butter: #FFF1C1;
  --blush: #FFC8DD;

  --white: #FFFFFF;
  --cream: #FFF8F5;

  --gray50: #F9FAFB;
  --gray100: #F3F4F6;
  --gray200: #E5E7EB;
  --gray300: #D1D5DB;
  --gray400: #9CA3AF;
  --gray500: #6B7280;
  --gray600: #4B5563;
  --gray900: #111827;

  --primary: #FF8C69;
  --primary-dark: #E87050;

  --green: #22C55E;
  --green-soft: #DCFCE7;

  --red: #EF4444;
  --red-soft: #FEE2E2;

  --yellow: #F59E0B;
  --yellow-soft: #FEF3C7;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .08);
  --shadow: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);
}


/* =====================================================
RESET
Fungsi:
- Reset box sizing dan default browser
===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #EAF8FB;
  color: var(--gray900);
  min-height: 100vh;
  overflow-x: hidden;
}


/* =====================================================
APP SHELL
Fungsi:
- Membuat tampilan desktop tetap seperti mobile app
- Menghindari layout full width di desktop
===================================================== */

.app-shell {
  width: 100%;
  max-width: var(--app-width);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04);
}


/* =====================================================
PASTEL BACKGROUND CLASS
Fungsi:
- Dipakai kategori, produk, avatar pelapak
===================================================== */

.bg-peach { background: var(--peach); }
.bg-rose { background: var(--rose); }
.bg-mint { background: var(--mint); }
.bg-sky { background: var(--sky); }
.bg-lavender { background: var(--lavender); }
.bg-butter { background: var(--butter); }
.bg-blush { background: var(--blush); }


/* =====================================================
HEADER
Fungsi:
- Header utama beranda
- Sticky di atas
- Memakai warna utama biru muda #0dc0e6
===================================================== */

.header {
  background: var(--brand-blue);
  padding: 18px 20px 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 4px 20px rgba(13, 192, 230, .22);
}

.greet {
  color: rgba(255, 255, 255, .95);
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 700;
}

.greet span {
  color: var(--white);
  font-weight: 900;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  color: var(--white);
}

.logo-text h1 {
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.3px;
}

.logo-text p {
  font-size: 10px;
  opacity: .92;
  font-weight: 700;
  margin-top: 3px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .28);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 18px;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .15s;
  position: relative;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, .42);
  transform: translateY(-1px);
}

.badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  background: #FF3B5C;
  border-radius: 999px;
  font-size: 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border: 2px solid white;
  padding: 0 4px;
}


/* =====================================================
SEARCH BAR
Fungsi:
- Input pencarian produk/pelapak
===================================================== */

.search-bar {
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  color: var(--gray900);
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--gray400);
}

.search-icon {
  color: var(--gray400);
  font-size: 16px;
}


/* =====================================================
INSTALL BUTTON
Fungsi:
- Tombol install PWA ke home screen
- Muncul hanya jika memenuhi syarat dari JS
===================================================== */

.install-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .92);
  color: #027c98;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* =====================================================
PAGE WRAPPER
Fungsi:
- Multi page dalam satu index: home, cart, orders, profile
===================================================== */

.page {
  display: none;
  padding-bottom: 160px;
}

.page.active {
  display: block;
}

#page-home {
  padding-bottom: 145px;
}


/* =====================================================
BANNER / HERO
Fungsi:
- Banner promo di halaman beranda
- Tetap pastel dengan aksen biru muda
===================================================== */

.banner-wrap {
  padding: 18px 20px 0;
  overflow: hidden;
}

.banner {
  background: var(--sky);
  border-radius: var(--radius-lg);
  min-height: 160px;
  height: 160px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(13, 192, 230, .22);
}

.banner-text h2 {
  font-size: 17px;
  font-weight: 900;
  color: #027c98;
  line-height: 1.2;
}

.banner-text p {
  font-size: 12px;
  color: var(--gray600);
  margin-top: 4px;
  max-width: 210px;
}

.banner-cta {
  margin-top: 12px;
  background: var(--brand-blue);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(13, 192, 230, .24);
}

.banner-cta:hover {
  transform: scale(1.04);
}

.banner-img {
  width: 74px;
  min-width: 74px;
  text-align: center;
  font-size: 56px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .10));
}

.dot-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  height: 22px;
  align-items: center;
  margin-top: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .15);
}

.dot.active {
  background: var(--brand-blue);
  width: 16px;
  border-radius: 3px;
}


/* =====================================================
SECTION TITLE
Fungsi:
- Judul section seperti kategori, produk, pelapak
===================================================== */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 10px;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 900;
}

.see-all {
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 900;
  cursor: pointer;
}


/* =====================================================
CATEGORY CHIPS
Fungsi:
- Scroll horizontal kategori
===================================================== */

.cat-scroll {
  display: flex;
  gap: 10px;
  padding: 4px 20px 16px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

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

.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
}

.cat-chip:hover {
  transform: scale(1.06);
}

.cat-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 3px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
  border: 2px solid transparent;
}

.cat-chip.active .cat-icon-wrap {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(13, 192, 230, .18);
}

.cat-chip span {
  font-size: 11px;
  font-weight: 800;
  color: var(--gray600);
  text-align: center;
  max-width: 72px;
  line-height: 1.15;
}

.cat-chip.active span {
  color: #027c98;
}


/* =====================================================
PRODUCT GRID
Fungsi:
- Card produk utama
===================================================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 10px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 1.5px solid var(--gray100);
  position: relative;
}

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

.product-img {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--rose);
  color: #C02044;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 7px;
  z-index: 2;
}

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

.product-name {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 3px;
}

.product-seller {
  font-size: 11px;
  color: var(--gray400);
  margin-bottom: 6px;
  font-weight: 700;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.product-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-dark);
}

.unit-label {
  font-size: 10px;
  color: var(--gray400);
  font-weight: 800;
  margin-top: 1px;
}

.add-btn {
  width: 28px;
  height: 28px;
  background: var(--brand-blue);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .15s, opacity .15s;
  font-family: 'Nunito', sans-serif;
  flex-shrink: 0;
}

.add-btn:hover {
  transform: scale(1.12);
  background: #08a9ca;
}

.add-btn:disabled,
.h-add-btn:disabled,
.add-to-cart-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}


/* =====================================================
STATUS CHIP
Fungsi:
- Status ready, sold out, pre order
===================================================== */

.status-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  padding: 3px 8px;
  margin: 2px 0 4px;
}

.status-ready {
  background: var(--green-soft);
  color: #16A34A;
}

.status-soldout {
  background: var(--red-soft);
  color: #DC2626;
}

.status-preorder {
  background: var(--yellow-soft);
  color: #B45309;
}

.status-unknown {
  background: var(--gray100);
  color: var(--gray600);
}

.preorder-note {
  font-size: 10px;
  color: #B45309;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2px;
}


/* =====================================================
HORIZONTAL PRODUCT CARD
Fungsi:
- Section produk pilihan
===================================================== */

.h-scroll {
  display: flex;
  gap: 12px;
  padding: 0 20px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.h-card {
  flex-shrink: 0;
  width: 150px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s;
  border: 1.5px solid var(--gray100);
  position: relative;
}

.h-card:hover {
  transform: translateY(-3px);
}

.h-card-img {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.h-card-info {
  padding: 8px 10px 10px;
}

.h-card-name {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.h-card-sub {
  font-size: 10px;
  color: var(--gray400);
  font-weight: 700;
  margin-top: 2px;
}

.h-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}

.h-card-price {
  font-size: 13px;
  font-weight: 900;
  color: var(--primary-dark);
}

.h-add-btn {
  width: 24px;
  height: 24px;
  background: var(--brand-blue);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


/* =====================================================
SELLER CARD
Fungsi:
- Daftar pelapak warga
===================================================== */

.seller-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 10px;
}

.seller-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1.5px solid var(--gray100);
  transition: transform .15s, box-shadow .15s;
}

.seller-card:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow);
}

.seller-avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.seller-info {
  flex: 1;
  min-width: 0;
}

.seller-name {
  font-size: 14px;
  font-weight: 900;
}

.seller-desc {
  font-size: 12px;
  color: var(--gray400);
  margin-top: 2px;
  line-height: 1.35;
}

.seller-tags {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  color: var(--gray600);
}

.seller-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.star {
  font-size: 12px;
  color: #FFB800;
  font-weight: 800;
}

.open-badge,
.temp-closed-badge,
.closed-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 7px;
}

.open-badge {
  background: var(--green-soft);
  color: #16A34A;
}

.temp-closed-badge {
  background: var(--yellow-soft);
  color: #B45309;
}

.closed-badge {
  background: var(--red-soft);
  color: #DC2626;
}


/* =====================================================
PAGE HEADER
Fungsi:
- Header halaman selain beranda
===================================================== */

.page-header {
  background: var(--white);
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 900;
  border-bottom: 1.5px solid var(--gray200);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray900);
}


/* =====================================================
CART PAGE
Fungsi:
- Tampilan keranjang
===================================================== */

.cart-item-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray100);
}

.ci-emoji {
  font-size: 36px;
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.ci-info {
  flex: 1;
  min-width: 0;
}

.ci-name {
  font-size: 13px;
  font-weight: 900;
}

.ci-seller {
  font-size: 11px;
  color: var(--gray400);
  font-weight: 700;
}

.ci-note {
  font-size: 11px;
  color: var(--primary-dark);
  font-style: italic;
  margin-top: 2px;
}

.ci-price {
  font-size: 13px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-top: 3px;
}

.ci-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray50);
  border-radius: 8px;
  padding: 4px 6px;
  flex-shrink: 0;
}

.ci-qty-btn {
  width: 22px;
  height: 22px;
  background: var(--sky);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  color: #027c98;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-qty-num {
  font-size: 13px;
  font-weight: 900;
  min-width: 18px;
  text-align: center;
}

.cart-summary {
  margin: 0 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray100);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
}

.summary-row.total {
  font-size: 16px;
  font-weight: 900;
  border-top: 1.5px dashed var(--gray200);
  margin-top: 8px;
  padding-top: 12px;
}

.wa-btn {
  margin: 16px 20px 0;
  width: calc(100% - 40px);
  padding: 16px;
  background: #25D366;
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 15px;
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
  transition: transform .15s;
}

.wa-btn:hover {
  transform: scale(1.02);
}

.wa-icon {
  font-size: 22px;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart .e-icon,
.empty-icon {
  font-size: 72px;
  margin-bottom: 16px;
}

.empty-cart h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--gray600);
}

.empty-cart p {
  font-size: 14px;
  color: var(--gray400);
  margin-top: 6px;
}

.empty-grid {
  grid-column: 1 / -1;
  text-align: center;
  padding: 42px 20px;
  color: var(--gray500);
}

.empty-grid strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.empty-grid p,
.empty-inline {
  font-size: 13px;
  color: var(--gray400);
  font-weight: 700;
}

.empty-inline {
  padding: 24px 20px;
}


/* =====================================================
ORDERS PAGE
Fungsi:
- Riwayat pesanan
===================================================== */

.order-item {
  margin: 12px 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray100);
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-id {
  font-size: 12px;
  color: var(--gray400);
  font-weight: 800;
}

.order-status {
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 7px;
}

.status-proses {
  background: var(--yellow-soft);
  color: #B45309;
}

.status-selesai {
  background: var(--green-soft);
  color: #16A34A;
}

.status-batal {
  background: var(--red-soft);
  color: #BE123C;
}

.order-items-list {
  font-size: 13px;
  color: var(--gray600);
  margin-bottom: 10px;
  line-height: 1.45;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary-dark);
}

.order-date {
  font-size: 11px;
  color: var(--gray400);
}

.reorder-btn {
  background: var(--sky);
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #027c98;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
}


/* =====================================================
PROFILE PAGE
Fungsi:
- Placeholder profil pembeli
===================================================== */

.profile-hero {
  background: var(--brand-blue);
  padding: 30px 20px 40px;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: var(--shadow);
}

.profile-name {
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.profile-phone {
  color: rgba(255, 255, 255, .90);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 700;
}

.profile-stats {
  display: flex;
  background: var(--white);
  border-radius: 20px;
  margin: -20px 20px 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-item {
  flex: 1;
  padding: 18px 10px;
  text-align: center;
}

.stat-item:not(:last-child) {
  border-right: 1.5px solid var(--gray100);
}

.stat-val {
  font-size: 20px;
  font-weight: 900;
  color: #027c98;
}

.stat-label {
  font-size: 11px;
  color: var(--gray400);
  font-weight: 700;
  margin-top: 2px;
}

.menu-section {
  padding: 0 20px;
  margin-bottom: 16px;
}

.menu-title {
  font-size: 12px;
  color: var(--gray400);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.menu-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1.5px solid var(--gray100);
  margin-bottom: 6px;
  transition: background .15s;
}

.menu-item:hover {
  background: var(--gray50);
}

.menu-item-icon {
  font-size: 20px;
  width: 32px;
  text-align: center;
}

.menu-item-label {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
}

.menu-arrow {
  color: var(--gray400);
}


/* =====================================================
BOTTOM NAV
Fungsi:
- Navigasi bawah fixed
===================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-width);
  background: var(--white);
  border-top: 1.5px solid var(--gray200);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 12px;
  cursor: pointer;
  transition: color .15s;
  color: var(--gray400);
  font-size: 10px;
  font-weight: 800;
  gap: 4px;
  border: none;
  background: var(--white);
  font-family: 'Nunito', sans-serif;
}

.nav-item.active {
  color: var(--brand-blue);
}

.nav-icon {
  font-size: 22px;
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
}


/* =====================================================
FLOATING CART
Fungsi:
- Ringkasan keranjang mengambang
===================================================== */

.cart-float {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 390px;
  background: var(--gray900);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
  cursor: pointer;
  z-index: 90;
  transition: transform .25s, opacity .25s;
}

.cart-float.hidden {
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
}

.cart-count {
  width: 28px;
  height: 28px;
  background: var(--brand-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.cart-label {
  flex: 1;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.cart-total {
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.cart-arrow {
  color: var(--gray400);
  font-size: 18px;
}


/* =====================================================
MODAL
Fungsi:
- Detail produk bottom sheet
===================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(3px);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: var(--app-width);
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
  padding-bottom: 100px;
  margin: 0 auto;
}

.modal-overlay.show .modal {
  transform: translateY(0);
}

.modal-drag {
  width: 40px;
  height: 4px;
  background: var(--gray200);
  border-radius: 2px;
  margin: 14px auto 0;
}

.modal-product-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  margin-top: 8px;
}

.modal-info {
  padding: 0 24px 20px;
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  min-height: 24px;
}

.modal-badge-row .product-badge {
  position: static;
}

.modal-name {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.modal-seller {
  font-size: 13px;
  color: var(--gray400);
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 14px;
  color: var(--gray600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--sky);
  border: none;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 900;
  color: #027c98;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-num {
  font-size: 22px;
  font-weight: 900;
  min-width: 32px;
  text-align: center;
}

.notes-input {
  width: 100%;
  border: 1.5px solid var(--gray200);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--gray900);
  outline: none;
  resize: none;
  margin-bottom: 16px;
  background: var(--gray50);
  transition: border-color .15s;
}

.notes-input:focus {
  border-color: var(--brand-blue);
}

.add-to-cart-btn {
  width: 100%;
  padding: 16px;
  background: var(--brand-blue);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 16px;
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13, 192, 230, .30);
  transition: transform .15s, box-shadow .15s;
}

.add-to-cart-btn:hover {
  transform: scale(1.02);
}


/* =====================================================
TOAST
Fungsi:
- Pesan notifikasi kecil
===================================================== */

.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--gray900);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  z-index: 999;
  opacity: 0;
  transition: all .3s;
  white-space: nowrap;
  max-width: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* =====================================================
UTILITY
Fungsi:
- Scrollbar kecil
===================================================== */

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gray200);
  border-radius: 2px;
}


/* =====================================================
SMALL SCREEN PATCH
Fungsi:
- Penyesuaian untuk layar sangat kecil
===================================================== */

@media (max-width: 360px) {
  .product-grid {
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-header,
  .banner-wrap,
  .cat-scroll,
  .seller-list,
  .h-scroll {
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo-text h1 {
    font-size: 17px;
  }

  .banner-text h2 {
    font-size: 16px;
  }


}