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

:root {
  --brown: #6B3E26;
  --brown2: #8B5E3C;
  --brown-d: #4A2A18;
  --cream: #F5E9D8;
  --cream2: #EDD9C0;
  --cream3: #E0C8A8;
  --gold: #D8A25E;
  --gold-d: #B8823E;
  --gold-l: #F0C98A;
  --ink: #2B1B12;
  --ink2: #7A5A48;
  --ink3: #A89080;
  --white: #FFFFFF;
  --card: #FFFDF9;
  --sidebar-w: 200px;
  --cart-w: 300px;
  --r: 18px;
  --r-sm: 10px;
  --r-pill: 50px;
  --sh-sm: 0 2px 10px rgba(43, 27, 18, .08);
  --sh-md: 0 6px 24px rgba(43, 27, 18, .13);
  --sh-lg: 0 16px 48px rgba(43, 27, 18, .18);
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Baloo 2', cursive;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--cart-w);
  height: 100vh;
  background: #EDE0CB;
  /* outer bg between panels */
  gap: 12px;
  padding: 12px;
}

/* SIDEBAR KIRI */
.sidebar {
  background: var(--white);
  border-radius: var(--r);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--sh-sm);
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--cream2);
  margin-bottom: 16px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 12px;
  color: var(--brown);
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  color: var(--ink3);
  font-weight: 500;
}

/* Kategori list */
.cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cat-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .18s, box-shadow .18s;
}

.cat-item:hover {
  background: var(--cream);
}

.cat-item.active {
  background: var(--brown);
  box-shadow: 0 4px 12px rgba(107, 62, 38, .35);
}

.cat-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  transition: color .18s;
}

.cat-item.active .cat-name {
  color: #fff;
}

.cat-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink3);
  transition: color .18s;
}

.cat-item.active .cat-count {
  color: rgba(255, 255, 255, .65);
}

/* Jam */
.sidebar-clock {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1.5px solid var(--cream2);
  text-align: center;
}

.clock-time {
  font-size: 22px;
  font-weight: 800;
  color: var(--brown);
}

.clock-date {
  font-size: 10px;
  color: var(--ink3);
  margin-top: 2px;
}

/* konten utama */
.main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  min-width: 0;
}

/* Topbar */
.topbar {
  background: var(--white);
  border-radius: var(--r);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sh-sm);
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .18s;
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--cream2);
}

.page-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

/* Search */
.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1.5px solid var(--cream2);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  transition: border-color .2s, box-shadow .2s;
}

.search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 162, 94, .15);
}

.search-ico {
  color: var(--ink3);
  flex-shrink: 0;
}

.search-inp {
  border: none;
  outline: none;
  background: none;
  font-family: 'Baloo 2', cursive;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
}

.search-inp::placeholder {
  color: var(--ink3);
}

.notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: background .18s;
}

.notif-btn:hover {
  background: var(--cream2);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E74C3C;
  border: 1.5px solid var(--white);
}

/* Grid area */
.grid-area {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cream3) transparent;
  padding-right: 2px;
}

.grid-area::-webkit-scrollbar {
  width: 4px;
}

.grid-area::-webkit-scrollbar-thumb {
  background: var(--cream3);
  border-radius: 4px;
}

/* Product grid — 3 cols matching reference */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Empty */
.empty-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 80px 20px;
  text-align: center;
}

.empty-wrap.show {
  display: flex;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink2);
}

/* PRODUCT CARD */
.pcard {
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34, 1.4, .64, 1),
    box-shadow .25s ease,
    border-color .25s;
  animation: fadeUp .4s ease both;
  position: relative;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}

.pcard.in-cart {
  border-color: var(--gold);
}

.pcard.in-cart::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(216, 162, 94, .06), transparent 60%);
  pointer-events: none;
}

/* Photo area */
.pc-img {
  height: 150px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  user-select: none;
  transition: transform .35s ease;
}

.pcard:hover .pc-img {
  transform: scale(1.04);
}

/* Category specific photo backgrounds */
.bg-brownies {
  background: linear-gradient(145deg, #2a1000 0%, #6B3E26 55%, #9B6040 100%);
}

.bg-dessert {
  background: linear-gradient(145deg, #1e0c06 0%, #5a3020 55%, #B8783A 100%);
}

.bg-drinks {
  background: linear-gradient(145deg, #0d2018 0%, #1E5C40 55%, #4A9A70 100%);
}

.bg-snacks {
  background: linear-gradient(145deg, #3a2010 0%, #7A5030 55%, #C09060 100%);
}

.bg-pastry {
  background: linear-gradient(145deg, #9B6A3A 0%, #D4A070 55%, #F0D8B0 100%);
}

.bg-cakes {
  background: linear-gradient(145deg, #3A0A30 0%, #8B3A7A 55%, #D480B0 100%);
}

.bg-promo {
  background: linear-gradient(145deg, #0A1E40 0%, #2A5A9B 55%, #60A0E0 100%);
}

/* Subtle grain */
.pc-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .04);
  mix-blend-mode: multiply;
}

/* Bottom gradient*/
.pc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(43, 27, 18, .22) 100%);
}

/* Badge on image */
.pc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-pop {
  background: rgba(255, 255, 255, .92);
  color: #D97706;
}

.badge-new {
  background: rgba(34, 120, 70, .88);
  color: #fff;
}

.badge-disc {
  background: rgba(220, 38, 38, .88);
  color: #fff;
}

/* Card body */
.pc-body {
  padding: 13px 14px 12px;
}

.pc-name {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}

.pc-desc {
  font-size: 11px;
  color: var(--ink2);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price + qty row */
.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pc-price {
  font-weight: 800;
  font-size: 15px;
  color: var(--brown);
  line-height: 1;
}

.pc-price .strikethrough {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink3);
  text-decoration: line-through;
  display: block;
}

/* Qty control */
.pc-qty {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qbtn {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  font-family: 'Baloo 2', cursive;
  line-height: 1;
}

.qbtn-m {
  background: var(--cream2);
  color: var(--brown);
}

.qbtn-m:hover {
  background: var(--cream3);
}

.qbtn-m:disabled {
  opacity: .4;
  cursor: default;
}

.qbtn-p {
  background: var(--brown);
  color: #fff;
  box-shadow: 0 3px 8px rgba(107, 62, 38, .38);
}

.qbtn-p:hover {
  background: var(--brown-d);
  transform: scale(1.1);
  box-shadow: 0 5px 14px rgba(107, 62, 38, .45);
}

.qnum {
  font-weight: 800;
  font-size: 14px;
  min-width: 14px;
  text-align: center;
  color: var(--ink);
}

/* KERANJANG PANEL (RIGHT) */
.cart-panel {
  background: var(--white);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

/* Cart top */
.cart-top {
  padding: 18px 18px 14px;
  flex-shrink: 0;
}

.customer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.customer-av {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brown);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.c-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-sub {
  font-size: 10.5px;
  color: var(--ink3);
}

.c-time {
  font-size: 10px;
  color: var(--ink3);
  line-height: 1.5;
}

.cart-divider {
  height: 1px;
  background: var(--cream2);
  margin: 0 18px;
  flex-shrink: 0;
}

.cart-label {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  padding: 12px 18px 8px;
  flex-shrink: 0;
}

/* Cart body */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--cream3) transparent;
}

.cart-body::-webkit-scrollbar {
  width: 3px;
}

.cart-body::-webkit-scrollbar-thumb {
  background: var(--cream3);
  border-radius: 3px;
}

/* Cart koosong */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 16px;
  text-align: center;
  gap: 6px;
}

.ce-icon {
  font-size: 36px;
  opacity: .3;
}

.ce-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.ce-sub {
  font-size: 11px;
  color: var(--ink3);
}

/* Cart item */
.ci {
  padding: 11px 0;
  border-bottom: 1px solid var(--cream);
  animation: slideR .22s ease both;
}

@keyframes slideR {
  0% {
    opacity: 0;
    transform: translateX(10px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.ci-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

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

.ci-name {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.3;
}

.ci-extra {
  font-size: 10.5px;
  color: var(--ink3);
  margin-top: 1px;
}

.ci-price {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

/* Notes row */
.ci-note-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
}

.ci-note-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: 'Baloo 2', cursive;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brown2);
  background: var(--cream);
  border: none;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  transition: background .15s;
}

.ci-note-btn:hover {
  background: var(--cream2);
}

.ci-note-text {
  font-size: 10px;
  color: var(--ink2);
  font-style: italic;
  background: var(--cream);
  border-radius: 6px;
  padding: 2px 8px;
  word-break: break-all;
}

/* Bottom row: qty controls + delete */
.ci-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ci-qty {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ciqbtn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: 'Baloo 2', cursive;
  line-height: 1;
}

.ci-m {
  background: var(--cream2);
  color: var(--brown);
}

.ci-m:hover {
  background: var(--cream3);
}

.ci-p {
  background: var(--gold);
  color: #fff;
}

.ci-p:hover {
  background: var(--gold-d);
}

.ci-qnum {
  font-weight: 800;
  font-size: 13px;
  min-width: 14px;
  text-align: center;
}

.ci-del {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(231, 76, 60, .1);
  color: #E74C3C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background .15s;
}

.ci-del:hover {
  background: rgba(231, 76, 60, .2);
}

/* Totals */
.cart-totals {
  padding: 12px 18px;
  border-top: 1px solid var(--cream2);
  display: none;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cart-totals.show {
  display: flex;
}

.tot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
}

/* Cart footer */
.cart-foot {
  padding: 12px 18px 16px;
  border-top: 2px solid var(--cream2);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.cart-foot.show {
  display: flex;
}

.grand-total {
  font-weight: 800;
  font-size: 20px;
  color: var(--brown);
  white-space: nowrap;
}

/* ★ PROCEED BUTTON */
.proceed-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 11px 18px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(216, 162, 94, .5);
}

.proceed-btn:hover {
  background: var(--gold-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(216, 162, 94, .55);
}

.proceed-btn:active {
  transform: translateY(0);
}

.cart-foot-empty {
  padding: 14px 18px 18px;
  flex-shrink: 0;
}

.proceed-btn-off {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--cream2);
  color: var(--ink3);
  border: none;
  border-radius: var(--r-pill);
  padding: 13px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 12px;
  cursor: not-allowed;
}

/* NOTE MODAL */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(43, 27, 18, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.modal-bg.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: var(--r);
  padding: 26px;
  width: 340px;
  box-shadow: var(--sh-lg);
  transform: translateY(16px) scale(.96);
  transition: transform .3s cubic-bezier(.34, 1.4, .64, 1);
}

.modal-bg.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
}

.modal-ta {
  width: 100%;
  height: 90px;
  border: 1.5px solid var(--cream2);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: 'Baloo 2', cursive;
  font-size: 13px;
  resize: none;
  outline: none;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .2s;
}

.modal-ta:focus {
  border-color: var(--gold);
}

.modal-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-end;
}

.modal-cancel {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--cream2);
  background: none;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--ink2);
  transition: background .15s;
}

.modal-cancel:hover {
  background: var(--cream);
}

.modal-save {
  padding: 8px 20px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--brown);
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 3px 10px rgba(107, 62, 38, .3);
}

.modal-save:hover {
  background: var(--brown-d);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--ink);
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  z-index: 999;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.34, 1.4, .64, 1);
  white-space: nowrap;
}

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

/* tablet stacks */
@media (max-width: 980px) {
  :root {
    --sidebar-w: 170px;
    --cart-w: 260px;
  }

  .pc-img {
    height: 130px;
    font-size: 52px;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow: auto;
  }

  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    padding: 8px;
    gap: 8px;
  }

  .sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }

  .brand,
  .sidebar-clock {
    display: none;
  }

  .cat-list {
    flex-direction: row;
    gap: 6px;
  }

  .cat-item {
    flex-direction: row;
    align-items: center;
    padding: 8px 14px;
    white-space: nowrap;
  }

  .main {
    overflow: visible;
  }

  .grid-area {
    overflow: visible;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-panel {
    max-height: 500px;
  }
}

@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 180px 1fr 280px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  :root {
    --sidebar-w: 160px;
    --cart-w: 250px;
  }

  .shell {
    grid-template-columns: var(--sidebar-w) 1fr var(--cart-w);
    gap: 10px;
    padding: 10px;
  }

  .topbar {
    padding: 12px 14px;
    gap: 10px;
  }

  .page-title {
    font-size: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pc-img {
    height: 120px;
    font-size: 48px;
  }

  .cart-panel {
    min-width: 0;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow: auto;
    height: auto;
  }

  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    min-height: 100vh;
    padding: 8px;
    gap: 8px;
  }

  .sidebar {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    gap: 10px;
  }

  .brand,
  .sidebar-clock {
    display: none;
  }

  .cat-list {
    flex-direction: row;
    gap: 8px;
    flex: 0 0 auto;
  }

  .cat-item {
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    padding: 8px 12px;
    flex: 0 0 auto;
  }

  .main {
    overflow: visible;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 12px;
  }

  .topbar-left {
    width: 100%;
  }

  .search-wrap {
    width: 100%;
    order: 3;
  }

  .notif-btn {
    margin-left: auto;
  }

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

  .cart-panel {
    max-height: none;
  }

  .cart-body {
    max-height: 320px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .pc-img {
    height: 140px;
    font-size: 54px;
  }

  .cart-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .proceed-btn,
  .proceed-btn-off {
    width: 100%;
    justify-content: center;
  }

  .modal-box {
    width: calc(100% - 24px);
    padding: 20px;
  }
}

/* Kartu kotak */
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pcard {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
}

.pc-img {
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.pc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* design panel receipt */
.cart-panel {
  border-radius: 20px;
}

.cart-body {
  min-height: 0;
}

/* Mobile view */
@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .pcard {
    aspect-ratio: auto;
  }

  .pc-img {
    aspect-ratio: 1 / 1;
  }
}

.pcard {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
}

.pc-img {
  height: auto;
  aspect-ratio: 1 / 1;
}

.pc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .pcard {
    aspect-ratio: auto;
  }

  .pc-img {
    aspect-ratio: 1 / 1;
  }
}

.product-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */
@media screen and (max-width: 768px){

    /* NAVBAR */
    .navbar{
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-left,
    .nav-right{
        width: 100%;
        justify-content: center;
    }

    .nav-links{
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a{
        font-size: 16px;
    }

    /* LOGO */
    .logo{
        width: 220px;
        height: 70px;
    }

    .logo-static,
    .logo-hover{
        width: 200px;
    }

    /* HERO */
    .hero{
        display: flex;
        flex-direction: column;

        gap: 30px;

        padding: 30px 20px 50px;

        min-height: auto;
    }

    /* BOX PUTIH */
    .hero-center{
        width: 100%;

        padding: 35px 25px;

        order: 1;

        border-radius: 20px;
    }

    .hero-center h1{
        font-size: 48px;
        line-height: 0.95;
    }

    .hero-description{
        font-size: 15px;
    }

    /* BROWNIES KIRI */
    .hero-side:first-child{
        order: 2;
    }

    .hero-side:first-child .floating-img{
        width: 90%;

        transform: none;
    }

    /* BOX KANAN */
    .hero-side:last-child{
        order: 3;
        justify-content: center;
    }

    .hero-side:last-child .floating-img{
        width: 130%;

        max-width: 500px;

        transform: translateX(40px);
    }

    /* BUTTON */
    .btn-order{
        width: 100%;
        text-align: center;
        padding: 16px;
        font-size: 16px;
    }

    /* TICKER */
    .ticker-text span{
        font-size: 12px;
        padding: 0 25px;
    }

}