/* Guenteng Customer Self-Order & POS Marketplace Stylesheet */
/* Unified 3-Column POS Layout (pos_list.php Style with 3D Pop Up Cards) */

:root {
  /* Brand Maroon Palette */
  --m1: #0f172a;          /* Slate 900 - Text / Primary */
  --m2: #800020;          /* Guenteng Maroon Primary */
  --m3: #5c142b;          /* Maroon Dark Hover */
  --m-lt: rgba(128, 0, 32, 0.08); /* Maroon Light Tint */
  --m-bg: #fdf2f4;        /* Soft Maroon Background */
  --card: #ffffff;        /* Pure White Card */
  --bg: #f8fafc;          /* Slate 50 Base Background */
  --border: #e2e8f0;      /* Soft Border */
  --border-subtle: #f1f5f9;
  --txt: #0f172a;         /* Main Dark Text */
  --muted: #64748b;       /* Secondary Text */
  --dim: #94a3b8;         /* Dim Placeholder Text */

  /* Status Accents */
  --gr: #15803d;          /* Green 700 */
  --gr-lt: #dcfce7;       /* Green Light */
  --warn: #d97706;        /* Amber 600 */
  --warn-lt: #fef3c7;     /* Amber Light */
  --danger: #dc2626;      /* Red 600 */
  --danger-lt: #fee2e2;   /* Red Light */

  /* Dimensions */
  --pl-sb: 270px;
  --pl-ord: 370px;
  --f: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.09);
  --trans: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--txt);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Minimalist Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.25); }

/* =========================================================================
   CORE 3-COLUMN POS LAYOUT (#plWrap)
   ========================================================================= */
#plWrap {
  display: grid;
  grid-template-columns: var(--pl-sb) 1fr var(--pl-ord);
  height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
  position: relative;
}

/* =========================================================================
   COLUMN 1 (LEFT): CATEGORY TREE NAVIGATION (#plSb - pos_list.php style)
   ========================================================================= */
#plSb {
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 30;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.sb-hd {
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
}

.sb-brand-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.sb-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--m2), var(--m3));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
}

.sb-title {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--txt);
  line-height: 1.2;
}

.sb-subtitle {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

.sb-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

#plNav {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  min-height: 0;
}

/* Nav Tree Buttons (.pn) */
.pn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-bottom: 4px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  text-align: left;
  position: relative;
  user-select: none;
}

.pn:hover {
  background: var(--m-bg);
  color: var(--m2);
}

.pn.active {
  background: var(--m-lt);
  color: var(--m2);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--m2);
}

.pn-allprod {
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.pn-hidden-cat {
  background: #fff5f5 !important;
  border: 1px dashed #f87171 !important;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}
.pn-hidden-cat:hover {
  background: #fee2e2 !important;
}
.pn-hidden-cat.active {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
}
.pn-hidden-cat.active .pn-lbl,
.pn-hidden-cat.active i {
  color: #fff !important;
}
.pn-hidden-cat.active .pn-cnt {
  background: rgba(255,255,255,0.25) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
}

.pn-lbl {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pn-cnt {
  font-size: 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 0.5rem;
  font-weight: 700;
  font-family: var(--f-mono);
}

.pn.active .pn-cnt {
  background: var(--m2);
  color: #ffffff;
  border-color: var(--m2);
}

.pn-chev {
  font-size: 0.65rem;
  margin-left: 0.5rem;
  color: var(--dim);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pn.open .pn-chev {
  transform: rotate(90deg);
}

/* Hierarchy Nesting */
.pn.l2 { padding-left: 1.4rem; font-size: 0.78rem; }
.pn.l3 { padding-left: 2.1rem; font-size: 0.75rem; }

.pn-sub {
  display: none;
  margin-left: 0.5rem;
  border-left: 1.5px solid var(--border);
  padding-left: 0.2rem;
}

.pn-sub.open {
  display: block;
}

/* =========================================================================
   COLUMN 2 (CENTER): MAIN CATALOG PANEL (#plMain)
   ========================================================================= */
#plMain {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  position: relative;
  background: var(--bg);
}

/* Top Bar */
.top-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 20;
  flex-shrink: 0;
}

.mob-menu-btn {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--txt);
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

.top-sw {
  flex: 1;
  max-width: 420px;
  height: 38px;
  position: relative;
  display: flex;
  align-items: center;
}

.top-search {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--txt);
  transition: all 0.15s ease;
}

.top-search:focus {
  background: #ffffff;
  border-color: var(--m2);
  box-shadow: 0 0 0 3px var(--m-lt);
}

.top-sic {
  position: absolute;
  left: 14px;
  color: var(--dim);
  font-size: 0.85rem;
  pointer-events: none;
}

.top-clear-btn {
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.top-clear-btn:hover {
  background: var(--muted);
  color: #fff;
}

.top-bread {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bread b {
  color: var(--m2);
  font-weight: 800;
  background: var(--m-lt);
  padding: 2px 8px;
  border-radius: 6px;
}

.top-cnt {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--m2);
  background: var(--m-lt);
  border-radius: 20px;
  padding: 3px 9px;
  flex-shrink: 0;
  font-family: var(--f-mono);
}

.top-acts {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.top-sort-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--txt);
  cursor: pointer;
}

.vbtn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--trans);
}

.vbtn:hover {
  border-color: var(--m2);
  color: var(--m2);
}

.vbtn.active {
  background: var(--m2);
  color: #ffffff;
  border-color: var(--m2);
}

.mob-top-cart-btn {
  display: none;
  position: relative;
  background: var(--m2);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

.mob-top-cart-badge {
  background: #fff;
  color: var(--m2);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Product Catalog Grid Area */
.prod-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
}

.pg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

/* PRODUCT CARD WITH HOVER 3D POP UP (pos_list.php + 3D Spring Lift) */
.pc {
  content-visibility: auto;
  contain-intrinsic-size: 0 320px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 12px;
  user-select: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
  transform-style: preserve-3d;
}

/* 3D POP UP EFFECT */
.pc:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 20px 35px -8px rgba(128, 0, 32, 0.22), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  border-color: rgba(128, 0, 32, 0.35);
  z-index: 10;
}

.pc-top {
  position: relative;
  width: 100%;
}

.pc-img-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid var(--border-subtle);
}

.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}

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

.pc-fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: var(--trans);
}

.pc-fav-btn:hover {
  color: #ef4444;
  transform: scale(1.1);
}

.pc-fav-btn.is-fav {
  color: #ef4444;
  background: #ffffff;
  border-color: #fecdd3;
}

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

.pc-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.pc-brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m2);
  background: var(--m-lt);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.pc-sec-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.pc-var-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.pc-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.pc-bot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.pc-unit-val {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pc-action-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--trans);
  user-select: none;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

/* + Tambah Pesanan (Direct CTA) */
.pc-action-btn.btn-direct-add,
.pc-action-btn:not(.btn-pilih-varian) {
  background: linear-gradient(135deg, #800020 0%, #991b1b 100%);
  border: 1.5px solid #6b001a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(128, 0, 32, 0.22);
}

.pc-action-btn.btn-direct-add:hover,
.pc-action-btn:not(.btn-pilih-varian):hover {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.35);
  transform: translateY(-1.5px);
}

.pc-action-btn.btn-direct-add:active,
.pc-action-btn:not(.btn-pilih-varian):active {
  transform: scale(0.96);
  box-shadow: 0 1px 3px rgba(128, 0, 32, 0.2);
}

/* Pilih Varian Button */
.pc-action-btn.btn-pilih-varian {
  background: #fdf2f4;
  border: 1.5px solid var(--m2);
  color: var(--m2);
  box-shadow: 0 1px 3px rgba(128, 0, 32, 0.08);
}

.pc-action-btn.btn-pilih-varian:hover {
  background: var(--m2);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.25);
  transform: translateY(-1.5px);
}

.pc-action-btn.btn-pilih-varian:active {
  transform: scale(0.96);
}

/* CATEGORY DIVIDER IN PRODUCT GRID (kanmuri milenio / --- / item item) */
.pc-cat-divider {
  grid-column: 1 / -1;
  width: 100%;
  margin: 28px 0 12px 0;
  padding-top: 8px;
}

.pc-cat-divider:first-of-type {
  margin-top: 4px;
  padding-top: 0;
}

.pc-cat-divider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pc-cat-divider-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-cat-divider-title i {
  color: var(--m2);
  font-size: 1rem;
}

.pc-cat-divider-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pc-cat-divider-line {
  width: 100%;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
}

/* Empty Catalog State */
.p-empty {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

/* =========================================================================
   COLUMN 3 (RIGHT): DOCKED CART & POS PANEL (#plOrd - pos_list.php style)
   ========================================================================= */
#plOrd {
  background: #ffffff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.04);
  z-index: 30;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modern Right Panel Header */
.ord-hd {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

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

.ord-hd-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--m2) 0%, #4a0011 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(128, 0, 32, 0.22);
}

.ord-title-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ord-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.2;
}

.ord-subtitle-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ord-cnt-badge {
  display: inline-flex;
  align-items: center;
  background: var(--m-lt);
  color: var(--m2);
  border: 1px solid rgba(128, 0, 32, 0.15);
  border-radius: 12px;
  font-size: 0.68rem;
  padding: 1px 7px;
  font-weight: 800;
  font-family: var(--f-mono);
}

.ord-hd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ord-clear-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.ord-clear-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #ef4444;
}

.ord-close-mob {
  display: none;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
}

/* =========================================================================
   COLLAPSIBLE CUSTOMER ACCORDION CARD (SAVING ~180PX VERTICAL SPACE)
   ========================================================================= */
.ord-accordion {
  margin: 10px 12px 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ord-accordion.open {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ord-accordion-hd {
  padding: 8px 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  user-select: none;
  transition: background 0.15s ease;
}

.ord-accordion.open .ord-accordion-hd {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.ord-acc-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ord-acc-ic-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--m2);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.ord-acc-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ord-acc-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.ord-acc-sub {
  font-size: 0.67rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}

.ord-acc-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ord-acc-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.01em;
}

.ord-acc-badge.badge-pending {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.ord-acc-badge.badge-ready {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.ord-acc-badge.badge-optional {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.ord-acc-chevron {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.25s ease;
}

.ord-accordion.open .ord-acc-chevron {
  transform: rotate(180deg);
}

.ord-accordion-bd {
  display: none;
  padding: 9px 11px;
  flex-direction: column;
  gap: 7px;
  background: #ffffff;
  animation: slideDownAcc 0.2s ease;
}

.ord-accordion.open .ord-accordion-bd {
  display: flex;
}

@keyframes slideDownAcc {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ord-f-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ord-f-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ord-req {
  color: #ef4444;
  font-weight: 800;
}

.ord-opt {
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 500;
}

.ord-inp {
  width: 100%;
  padding: 6px 9px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  background: #ffffff;
  transition: var(--trans);
  outline: none;
  color: #0f172a;
  font-family: inherit;
  font-weight: 500;
}

.ord-inp:focus {
  border-color: var(--m2);
  box-shadow: 0 0 0 2px var(--m-lt);
}

.ord-textarea {
  resize: vertical;
  min-height: 36px;
  height: 38px;
  padding: 6px 9px;
  line-height: 1.35;
}

.ord-shareloc-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  padding: 7px;
}

.btn-shareloc {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.73rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-shareloc:hover {
  background: #15803d;
}

.ord-shareloc-inp {
  background: #ffffff;
  border-color: #86efac;
  font-size: 0.74rem;
}

/* =========================================================================
   CART ITEMS LIST CONTAINER & CARDS WITH PRODUCT THUMBNAILS
   ========================================================================= */
.ord-cart {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ord-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  padding: 2rem 1rem;
}

/* Redesigned Card for Cart Items (.ci-card) */
.ci-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.15s ease;
}

.ci-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.ci-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ci-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ci-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.ci-title {
  font-size: 0.79rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-del-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ci-del-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.ci-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.ci-tag-var {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 5px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 4px;
  line-height: 1.2;
}

.ci-tag-grade {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 1px 5px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 4px;
  line-height: 1.2;
}

.ci-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.ci-unit-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Capsule Stepper */
.ci-stepper-capsule {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 1px 2px;
  height: 24px;
}

.ci-step-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}

.ci-step-btn:hover {
  background: var(--m2);
  color: #ffffff;
}

.ci-step-inp {
  width: 34px;
  height: 22px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--f-mono);
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}

.ci-step-inp::-webkit-outer-spin-button,
.ci-step-inp::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Custom Item Adder Button */
.ord-custom-add-wrap {
  padding: 0 12px 6px;
  flex-shrink: 0;
}

.btn-add-custom-item {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-add-custom-item:hover {
  border-color: var(--m2);
  color: var(--m2);
  background: rgba(128, 0, 32, 0.03);
}

/* =========================================================================
   CART FOOTER & LUXURY WHATSAPP CTA
   ========================================================================= */
.ord-foot {
  border-top: 1px solid var(--border);
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.03);
}

.ord-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ord-stat-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ord-stat-tile.highlight {
  background: #fff1f2;
  border-color: #fecdd3;
}

.ord-stat-lbl {
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ord-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--f-mono);
}

.ord-stat-tile.highlight .ord-stat-val {
  color: var(--m2);
  font-size: 1.05rem;
}

.ord-wa-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.7rem;
  color: #166534;
  line-height: 1.35;
}

.ord-btn-submit.ord-btn-wa {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  color: #ffffff;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(7, 94, 84, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  margin-top: 2px;
}

.ord-btn-submit.ord-btn-wa:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0f7a6e 0%, #054c44 100%);
  box-shadow: 0 6px 20px rgba(7, 94, 84, 0.45);
}

.ord-btn-submit.ord-btn-wa:active {
  transform: translateY(0);
}

.ord-submit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.ord-wa-btn-ic {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #ffffff;
}

.ord-submit-lbl-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.ord-submit-main-lbl {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.2;
}

.ord-submit-sub-lbl {
  font-size: 0.67rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

.ord-submit-arrow {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
}

.ord-btn-submit.ord-btn-wa:hover .ord-submit-arrow {
  transform: translateX(3px);
}

/* =========================================================================
   MODALS (Custom Item, Variant Picker, Success, History)
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.open,
.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-card,
.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
}

.modal-close-btn:hover {
  background: var(--bg);
  color: var(--m2);
}

/* Mobile Floating Cart Bar */
.mobile-floating-cart-bar {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  z-index: 80;
  background: linear-gradient(135deg, var(--m2), var(--m3));
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(128, 0, 32, 0.4);
  cursor: pointer;
}

.mobile-floating-cart-bar.show {
  display: flex;
}

/* =========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================= */
@media (max-width: 1100px) {
  #plWrap {
    grid-template-columns: 240px 1fr 340px;
  }
}

@media (max-width: 991.98px) {
  #plWrap {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    height: 100dvh;
  }

  #plMain {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  .top-bar {
    padding: 8px 12px;
    gap: 8px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
  }

  .top-sw {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .top-bread {
    display: none !important;
  }

  .top-cnt {
    display: none !important;
  }

  .merge-cat-btn .merge-cat-lbl,
  .edit-toggle-btn .edit-btn-lbl {
    display: none !important;
  }

  .merge-cat-btn,
  .edit-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  #audioToggleBtn {
    display: none !important;
  }

  #favFilterBtn {
    flex-shrink: 0;
  }

  .top-acts {
    gap: 6px;
    margin-left: 0;
    flex-shrink: 0;
  }

  .top-sort-select {
    max-width: 140px;
    font-size: 0.74rem;
    padding: 5px 6px;
    flex-shrink: 1;
  }

  /* Left Sidebar Drawer on Mobile */
  #plSb {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    z-index: 100;
  }
  #plSb.mob-open {
    transform: translateX(0);
  }
  .sb-close-btn {
    display: block;
  }

  /* Right Cart Drawer on Mobile */
  #plOrd {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 90vw;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    z-index: 100;
  }
  #plOrd.mob-open {
    transform: translateX(0);
  }
  .ord-close-mob {
    display: block;
  }

  .mob-menu-btn {
    display: inline-flex;
    flex-shrink: 0;
  }
  .mob-top-cart-btn {
    display: inline-flex;
    flex-shrink: 0;
  }

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

@media (min-width: 992px) {
  .mobile-floating-cart-bar {
    display: none !important;
  }
}

/* =========================================================================
   GRABFOOD-STYLE MOBILE CATEGORY BAR & HORIZONTAL SWIPER
   ========================================================================= */
.gf-cat-bar {
  display: none;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  z-index: 15;
}
.gf-cat-bar::-webkit-scrollbar { display: none; }

.gf-cat-pill {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--trans);
}
.gf-cat-pill:hover {
  border-color: var(--m2);
  color: var(--m2);
}
.gf-cat-pill.active {
  background: var(--m2);
  color: #ffffff;
  border-color: var(--m2);
  box-shadow: 0 2px 8px rgba(128, 0, 32, 0.28);
}

/* Category & Variant Badges */
.pc-sec-tag {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}
.pc-var-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--m2);
  background: var(--m-bg);
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.gf-price-row {
  display: none;
}

/* =========================================================================
   VARIANT SELECTION BOTTOM SHEET & MODAL (GRABFOOD / GOFOOD STYLE)
   ========================================================================= */
.v-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.v-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.v-sheet {
  background: var(--card);
  width: 480px;
  max-width: 92vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: popIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-sheet-handle {
  display: none;
  width: 42px;
  height: 5px;
  border-radius: 10px;
  background: #cbd5e1;
  margin: 10px auto 2px auto;
  flex-shrink: 0;
}

.v-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
  background: var(--card);
}

.v-img-wrap {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.v-active-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.v-header-info {
  flex: 1;
  min-width: 0;
}
.v-product-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--txt);
  line-height: 1.25;
  margin-bottom: 2px;
}
.v-product-brand {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}
.v-active-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--m2);
  font-family: var(--f-mono);
  margin-top: 4px;
}

.v-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}
.v-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.v-req-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--m2);
  background: var(--m-bg);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: none;
}

.v-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}
.v-opt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.15s ease;
}
.v-opt-card:hover {
  border-color: var(--m2);
  background: var(--m-bg);
}
.v-opt-card.selected {
  border-color: var(--m2);
  background: var(--m-bg);
  box-shadow: 0 0 0 1px var(--m2);
}
.v-opt-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--dim);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.v-opt-card.selected .v-opt-radio {
  border-color: var(--m2);
  background: var(--m2);
  box-shadow: inset 0 0 0 3px #ffffff;
}
.v-opt-info {
  flex: 1;
  min-width: 0;
}
.v-opt-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--txt);
}
.v-opt-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--m2);
  font-family: var(--f-mono);
}
.v-opt-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #ffffff;
  flex-shrink: 0;
}

.v-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}
.v-qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}
.v-qty-btn {
  width: 36px;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--txt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-qty-btn:hover { background: rgba(128,0,32,0.08); color: var(--m2); }
.v-qty-val {
  width: 34px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--txt);
}
.v-btn-submit {
  flex: 1;
  height: 42px;
  background: var(--m2);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(128, 0, 32, 0.3);
  transition: all 0.15s ease;
}
.v-btn-submit:hover {
  background: var(--m3);
  transform: translateY(-1px);
}

/* =========================================================================
   GRABFOOD FLOATING BOTTOM CART BAR (MOBILE)
   ========================================================================= */
.gf-cart-bar {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  background: linear-gradient(135deg, var(--m2), var(--m3));
  color: #ffffff;
  border-radius: 16px;
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(128, 0, 32, 0.45);
  z-index: 105;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.gf-cart-bar:active {
  transform: scale(0.98);
}
.gf-cart-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gf-cart-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.gf-cart-badge {
  background: #ffffff;
  color: var(--m2);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
}
.gf-cart-total-info {
  display: flex;
  flex-direction: column;
}
.gf-cart-lbl {
  font-size: 0.65rem;
  opacity: 0.85;
  text-transform: uppercase;
  font-weight: 700;
}
.gf-cart-val {
  font-size: 1.05rem;
  font-weight: 900;
  font-family: var(--f-mono);
}
.gf-cart-cta {
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  padding: 7px 12px;
  border-radius: 999px;
}

/* =========================================================================
   MOBILE RESPONSIVE TWEAKS (GRABFOOD ROW MENU & BOTTOM SHEETS)
   ========================================================================= */
@media (max-width: 991.98px) {
  .gf-cat-bar {
    display: flex;
  }
  .gf-cart-bar.show {
    display: flex;
  }

  /* Cart Panel slides up like GrabFood Basket on Mobile */
  #plOrd {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 90vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
    transform: translateY(100%);
    z-index: 120;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  #plOrd.mob-open {
    transform: translateY(0);
  }

  /* Variant Sheet on Mobile - Slide Up from Bottom */
  .v-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.35);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .v-modal-overlay.active .v-sheet {
    transform: translateY(0);
  }
  .v-sheet-handle {
    display: block;
  }
}

@media (max-width: 768px) {
  /* GrabFood Single-Column Menu Row Feed */
  .prod-area {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 10px;
    padding-bottom: 95px; /* Leave room for floating bottom cart bar */
  }

  .pg {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* GrabFood Row Card */
  .pc {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    min-height: 105px;
    gap: 12px;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .pc:hover {
    transform: none; /* Disable 3D tilt on mobile touch */
    box-shadow: var(--shadow-sm);
  }

  /* Right Column: Square Thumbnail */
  .pc-top {
    order: 2;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
  }
  .pc-img-frame {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pc-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .pc-fav-btn {
    display: none; /* Clean row feel */
  }

  /* Left Column: Product Info & Actions */
  .pc-info {
    order: 1;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 102px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }
  .pc-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
  }
  .pc-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--txt);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    word-break: break-word;
  }

  .pc-cat-divider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .top-bar {
    padding: 6px 10px;
    gap: 6px;
  }

  .mob-menu-btn {
    padding: 6px 8px;
    font-size: 0.76rem;
    gap: 4px;
  }

  .top-search {
    padding: 0 28px 0 30px;
    font-size: 0.78rem;
    height: 34px;
  }
  .top-sic {
    left: 10px;
    font-size: 0.74rem;
  }
  .top-sw {
    height: 34px;
  }

  .top-sort-select {
    max-width: 120px;
    font-size: 0.7rem;
    padding: 4px 6px;
  }

  .gf-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
  }
  .gf-price-val {
    font-size: 0.92rem;
    font-weight: 900;
    color: var(--m2);
    font-family: var(--f-mono);
  }
  .gf-add-btn {
    background: var(--m-bg);
    color: var(--m2);
    border: 1.5px solid var(--m2);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
  }
  .gf-add-btn:active {
    background: var(--m2);
    color: #ffffff;
  }

  /* Mobile Touch CTA Button & Bottom Row */
  .pc-bot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px dashed var(--border-subtle);
  }

  .pc-unit-val {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--muted);
  }

  .pc-action-btn {
    width: auto !important;
    display: inline-flex !important;
    padding: 5px 12px !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    flex-shrink: 0;
    gap: 5px !important;
    box-shadow: 0 2px 6px rgba(128, 0, 32, 0.15);
    transition: transform 0.15s ease, background 0.15s ease;
  }

  .pc-action-btn.btn-pilih-varian {
    background: #ffffff !important;
    color: var(--m2) !important;
    border: 1.5px solid var(--m2) !important;
  }
  .pc-action-btn.btn-pilih-varian:active {
    background: var(--m-bg) !important;
    transform: scale(0.96);
  }

  .pc-action-btn.btn-direct-add {
    background: linear-gradient(135deg, var(--m2) 0%, #991b1b 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #6b001a !important;
  }
  .pc-action-btn.btn-direct-add:active {
    filter: brightness(0.9);
    transform: scale(0.96);
  }

  .pc-price-btn {
    display: none !important;
  }

  /* Prevent iOS Safari 16px auto-zoom on focus */
  input[type="text"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Product In-Cart Indicator Badge on Cards */
.pc-in-cart-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 1px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  animation: fadeInSub 0.2s ease;
  margin-left: auto;
}
.pc.in-cart {
  border-color: #86efac !important;
  background: #fbfdfb;
}

/* Cart Dimmed Backdrop (Mobile) */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 115;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cart-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Cart Sheet Drag Handle */
.ord-sheet-handle {
  display: none;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 10px auto 4px auto;
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .ord-sheet-handle {
    display: block;
  }
}

/* Toast Quick View Shortcut Button */
.btn-toast-view {
  background: var(--m2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.btn-toast-view:active {
  background: #ffffff;
  color: var(--m2);
}

/* =========================================================================
   ADDITIONS: ADMIN EDIT MODE, DRAG & DROP, SUB-VARIANTS, SHARELOC, NO-PRICE UI
   ========================================================================= */

.gf-unit-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Shareloc GPS Box & Notice */
.ord-shareloc-box {
  margin-top: 6px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.btn-shareloc {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--trans);
}
.btn-shareloc:hover {
  background: #22c55e;
  color: #ffffff;
}
.btn-shareloc.loc-captured {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}
.ord-shareloc-inp {
  font-size: 0.78rem !important;
  font-family: var(--f-mono);
}
.shareloc-status {
  font-size: 0.76rem;
  font-weight: 700;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}
.shareloc-status a {
  color: #15803d;
  text-decoration: underline;
}
.ord-wa-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: #166534;
  line-height: 1.35;
  margin-bottom: 10px;
}
.ord-btn-wa {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(7, 94, 84, 0.35) !important;
}
.ord-btn-wa:hover {
  background: linear-gradient(135deg, #0f7a6e 0%, #054c44 100%) !important;
  transform: translateY(-1px) !important;
}

/* Sub-Variant Grade Chips & Direct Quantity Input (Variant Modal) */
.v-section-block {
  margin-bottom: 16px;
}
.v-selection-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.v-summary-tag {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--m2);
  background: var(--m-bg);
  padding: 2px 8px;
  border-radius: 4px;
}
.v-summary-grade {
  background: #f1f5f9;
  color: #334155;
}
.v-summary-sep {
  font-size: 0.8rem;
  color: var(--dim);
}
.v-grades-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v-grade-chip {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--txt);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: 6px;
}
.v-grade-chip:hover {
  border-color: var(--m2);
  background: var(--m-bg);
}
.v-grade-chip.active {
  border-color: var(--m2);
  background: var(--m2);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(128, 0, 32, 0.25);
}
.v-unit-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}
.v-qty-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.v-qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}
.v-qty-input {
  width: 70px;
  height: 38px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 900;
  font-family: var(--f-mono);
  color: var(--txt);
  -moz-appearance: textfield;
}
.v-qty-input::-webkit-outer-spin-button,
.v-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.v-qty-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}
.v-quick-chip {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--txt);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--trans);
}
.v-quick-chip:hover {
  border-color: var(--m2);
  background: var(--m-bg);
  color: var(--m2);
}

/* Admin Edit Mode Banner & Controls (Password: S0r4n0d1) */
.edit-mode-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(135deg, #1e1b4b, #31131e);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  font-size: 0.85rem;
}
body.edit-mode-active #plWrap {
  margin-top: 48px;
  height: calc(100vh - 48px);
}
.emb-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.emb-pill {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.emb-desc {
  font-weight: 600;
  font-size: 0.82rem;
  color: #cbd5e1;
}
.emb-acts {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-emb-action {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--trans);
}
.btn-emb-action:hover {
  background: rgba(255,255,255,0.25);
}
.btn-emb-exit {
  background: #22c55e;
  color: #ffffff;
  border: none;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-emb-exit:hover {
  background: #16a34a;
}
.edit-toggle-btn {
  width: auto !important;
  padding: 6px 12px !important;
  white-space: nowrap !important;
  font-weight: 800;
  display: inline-flex !important;
  gap: 5px !important;
}
.edit-toggle-btn.active {
  background: #f59e0b !important;
  color: #0f172a !important;
}

/* Sidebar Admin Bar */
.sb-admin-bar {
  padding: 8px 12px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
}
.btn-sb-add-cat {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1.5px dashed #d97706;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}
.btn-sb-add-cat:hover {
  background: #fde68a;
}

/* Category Row Wrap with Edit Actions */
.pn-row-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}
.pn-row-wrap .pn {
  flex: 1;
  min-width: 0;
}
body.edit-mode-active #plWrap {
  grid-template-columns: 410px 1fr var(--pl-ord);
}
.pn-edit-acts {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
body.edit-mode-active .pn-row-wrap .pn {
  padding-right: 225px;
}
body.edit-mode-active .pn-edit-acts {
  display: flex;
}

/* Category Drag Handle & Drop Visuals */
.pn-drag-handle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 26px;
  cursor: grab;
  color: #94a3b8;
  flex-shrink: 0;
  margin-right: 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
  user-select: none;
}
.pn-drag-handle:hover {
  color: var(--m1);
  background: #f1f5f9;
}
.pn-drag-handle:active {
  cursor: grabbing;
}
body.edit-mode-active .pn-drag-handle {
  display: inline-flex;
}
.pn-row-wrap.cat-dragging {
  opacity: 0.35 !important;
  filter: grayscale(0.6);
}
.pn-row-wrap.drop-indicator-top {
  box-shadow: inset 0 3px 0 0 #2563eb, 0 -3px 0 0 #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}
.pn-row-wrap.drop-indicator-bottom {
  box-shadow: inset 0 -3px 0 0 #2563eb, 0 3px 0 0 #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}
.pn-row-wrap.cat-target-hover {
  background: #fef3c7 !important;
  outline: 2px dashed #d97706 !important;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.25) !important;
  position: relative !important;
}
.pn-row-wrap.cat-target-hover::after {
  content: '👉 Masukkan ke dalam sini';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #d97706;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 25;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Promote Drop Zone (Jadikan Kategori Utama) */
.pn-promote-dropzone {
  display: none;
  margin: 4px 8px 10px 8px;
  padding: 8px 10px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.74rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
body.edit-mode-active .pn-promote-dropzone {
  display: block;
  position: sticky;
  top: 0;
  z-index: 10;
}
body.edit-mode-active.cat-dragging-active .pn-promote-dropzone {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  animation: pulsePromoteZone 1.5s infinite;
}
@keyframes pulsePromoteZone {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2); }
  50% { box-shadow: 0 0 10px 2px rgba(37, 99, 235, 0.4); }
}
.pn-promote-dropzone .pn-promote-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pn-promote-dropzone .pn-promote-box i {
  color: #2563eb;
  font-size: 0.88rem;
}
.pn-promote-dropzone.drag-over {
  border-color: #16a34a !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  transform: scale(1.02);
}
.pn-promote-dropzone.drag-over i {
  color: #16a34a !important;
}

/* Action Buttons */
.btn-cat-act {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}
.btn-cat-act i {
  pointer-events: none;
}
.btn-cat-act:hover {
  background: var(--m2);
  color: #ffffff;
  border-color: var(--m2);
  transform: scale(1.08);
}
.btn-cat-act.btn-elevate-act {
  color: #15803d;
  background: #dcfce7;
  border-color: #86efac;
}
.btn-cat-act.btn-elevate-act:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}
.btn-cat-act.btn-promote-act {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.btn-cat-act.btn-promote-act:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}
.btn-cat-act.btn-demote-sec-act {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.btn-cat-act.btn-demote-sec-act:hover {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
}
.btn-cat-act.btn-rename-act {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}
.btn-cat-act.btn-rename-act:hover {
  background: #d97706 !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
}
.btn-cat-act.btn-move-act {
  color: #0f766e;
  background: #ccfbf1;
  border-color: #99f6e4;
}
.btn-cat-act.btn-move-act:hover {
  background: #0d9488 !important;
  color: #ffffff !important;
  border-color: #0d9488 !important;
}
.btn-cat-act.text-danger {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fca5a5;
}
.btn-cat-act.text-danger:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}
.btn-cat-act.btn-lock-subs {
  color: #64748b;
  background: #f1f5f9;
}
.btn-cat-act.btn-lock-subs.locked {
  background: #fef3c7 !important;
  color: #d97706 !important;
  border-color: #f59e0b !important;
}
.btn-cat-act.btn-lock-subs.locked:hover {
  background: #fde68a !important;
  color: #b45309 !important;
}
.btn-cat-act.btn-lock-subs.partial {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #93c5fd !important;
}
.btn-cat-act.btn-lock-subs.partial:hover {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}
.btn-emb-undo {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
  font-weight: 700;
}
.btn-emb-undo:hover {
  background: #fde68a !important;
}
.btn-sb-undo {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.btn-sb-undo:hover {
  background: #fde68a;
  color: #78350f;
}
.pn-sub.locked-hidden {
  display: none !important;
}
.pn-chev.locked-hidden {
  display: none !important;
}

/* Selective Hidden Item inside Dropdown */
body:not(.edit-mode-active) .pn-row-wrap.dropdown-item-hidden {
  display: none !important;
}
body.edit-mode-active .pn-row-wrap.dropdown-item-hidden {
  opacity: 0.55;
  background: #f8fafc;
}
body.edit-mode-active .pn-row-wrap.dropdown-item-hidden .pn-lbl::after {
  content: ' (Hidden)';
  font-size: 0.62rem;
  color: #dc2626;
  font-weight: 700;
  margin-left: 4px;
}

/* Drag Target Hover Indicator on Category Button */
.pn.drag-target-hover {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 2px dashed #d97706 !important;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4) !important;
  transform: scale(1.02);
}

/* Product Card Controls in Edit Mode */
.pc-edit-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  margin: -10px -10px 8px -10px;
}
body.edit-mode-active .pc-edit-controls {
  display: flex;
}
.pc-drag-handle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  cursor: grab;
  padding: 3px 6px;
  border-radius: 4px;
  background: #e2e8f0;
}
.pc-drag-handle:active {
  cursor: grabbing;
}
.btn-pc-eye {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--trans);
}
.btn-pc-eye.hidden-active {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fca5a5;
}
.btn-pc-move {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #3b82f6;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Product Card Selection & Tick Box */
.pc-tick-wrap {
  display: none;
  align-items: center;
  cursor: pointer;
  margin-right: 4px;
  user-select: none;
}
body.edit-mode-active .pc-tick-wrap {
  display: inline-flex;
}
.pc-tick-input {
  display: none;
}
.pc-tick-box {
  width: 20px;
  height: 20px;
  border: 2px solid #94a3b8;
  border-radius: 5px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.pc-tick-wrap:hover .pc-tick-box {
  border-color: #2563eb;
}
.pc-tick-input:checked + .pc-tick-box {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.pc.is-selected {
  outline: 2.5px solid #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}
.pc.is-selected .pc-edit-controls {
  background: #dbeafe !important;
  border-bottom-color: #bfdbfe !important;
}

/* Floating Bulk Action Bar (Multi-Item Selection) */
.bulk-action-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideUpBulkBar 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpBulkBar {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.bab-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bab-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bab-pill {
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.bab-tip {
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .bab-tip { display: none; }
}
.bab-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-bab-move {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-bab-move:hover {
  background: #1d4ed8;
}
.btn-bab-hide {
  background: #ef4444;
  color: #ffffff;
  border: none;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-bab-hide:hover {
  background: #dc2626;
}
.btn-bab-unhide {
  background: #10b981;
  color: #ffffff;
  border: none;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-bab-unhide:hover {
  background: #059669;
}
.btn-bab-untick {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-bab-untick:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Visibility Rules:
   - In Normal Customer Mode & Regular Category Views: .pc.is-hidden is STRICTLY HIDDEN (display: none !important)
   - In Edit Mode: .pc.is-hidden is ONLY displayed when explicitly viewing the Hidden category (#prodsGrid.showing-hidden or body.viewing-hidden-tab)
   - #navHiddenWrap is ONLY visible in Edit Mode
*/
.pc.is-hidden {
  display: none !important;
}

body.edit-mode-active #navHiddenWrap {
  display: block !important;
}

body.edit-mode-active #prodsGrid.showing-hidden .pc.is-hidden,
body.edit-mode-active.viewing-hidden-tab .pc.is-hidden {
  display: flex !important;
  opacity: 0.95;
  border: 2px dashed #f59e0b;
  background: #fffbeb;
}

/* Unhide button highlight on hidden cards */
.btn-pc-eye.hidden-active {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #15803d !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25) !important;
}
.btn-pc-eye.hidden-active:hover {
  background: #15803d !important;
  transform: translateY(-1px);
}
.pc-hidden-indicator {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pc.dragging {
  opacity: 0.35 !important;
  border: 2px dashed var(--m2) !important;
  transform: scale(0.96);
}

/* MERGE CATEGORIES MODAL & CONTROLS */
.merge-cat-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  width: auto !important;
  padding: 6px 12px !important;
  white-space: nowrap !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--txt) !important;
  cursor: pointer;
  transition: var(--trans);
}

.merge-cat-btn:hover {
  background: var(--m-lt) !important;
  border-color: var(--m2) !important;
  color: var(--m2) !important;
}

.merge-cat-btn.active {
  background: var(--m2) !important;
  color: #ffffff !important;
  border-color: var(--m2) !important;
}

.merge-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.15s ease;
}

.merge-cat-item:hover {
  background: #f8fafc;
  border-color: var(--border-dark);
}

.merge-cat-item.selected {
  background: #fef2f2;
  border-color: #fca5a5;
}

.merge-cat-chk {
  width: 17px;
  height: 17px;
  accent-color: var(--m2);
  cursor: pointer;
}

.merge-cat-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 10px;
  min-width: 0;
}

.merge-cat-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--txt);
}

.merge-cat-path {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merge-cat-cnt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Mobile adjustments for compact cards */
@media (max-width: 991px) {
  .pg {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pc {
    min-height: auto;
    padding: 10px 12px;
  }
  .pc-name {
    min-height: auto;
    font-size: 0.88rem;
    margin-bottom: 6px;
  }
}

/* Categories where all products are hidden */
body:not(.edit-mode-active) .category-all-hidden {
  display: none !important;
}
body.edit-mode-active .category-all-hidden {
  opacity: 0.65;
  background: #fffbeb !important;
  border: 1px dashed #f59e0b !important;
  border-radius: 6px;
}
body.edit-mode-active .category-all-hidden .pn-lbl::after {
  content: ' (Disembunyikan)';
  font-size: 0.62rem;
  color: #b45309;
  font-weight: 700;
  margin-left: 4px;
}
.btn-cat-act.btn-unhide-act {
  color: #16a34a !important;
  background: #dcfce7 !important;
  border-color: #86efac !important;
}
.btn-cat-act.btn-unhide-act:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

/* Dedicated Hidden Categories Panel */
.hidden-cats-panel {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}
.hcp-header {
  margin-bottom: 14px;
}
.hcp-title {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #92400e;
}
.hcp-desc {
  font-size: 0.8rem;
  color: #78350f;
  margin: 4px 0 0 0;
}
.hcp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.hcp-empty {
  font-size: 0.85rem;
  color: #64748b;
  font-style: italic;
  padding: 12px 0;
}
.hcp-card {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.hcp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  width: fit-content;
}
.hcp-card-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 4px 0;
}
.hcp-count {
  font-size: 0.72rem;
  color: #b45309;
  font-weight: 600;
}
.btn-unhide-cat-direct {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-unhide-cat-direct:hover {
  background: #15803d;
}

/* =========================================================================
   USER-FRIENDLY CATALOG & EXPERIENCE ENHANCEMENTS
   ========================================================================= */

/* Dynamic Secondary Sub-Category Pills Bar */
.gf-subcat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 1.1rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  animation: fadeInSub 0.22s ease-out;
  flex-shrink: 0;
}
.gf-subcat-bar::-webkit-scrollbar {
  display: none;
}
@keyframes fadeInSub {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.gf-subcat-pill {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.gf-subcat-pill:hover {
  color: var(--m2);
  border-color: var(--m2);
  background: var(--m-lt);
}
.gf-subcat-pill.active {
  color: #ffffff;
  background: var(--m2);
  border-color: var(--m2);
  box-shadow: 0 2px 10px rgba(128, 0, 32, 0.25);
}
.gf-subcat-pill .sub-cnt {
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 800;
}
.gf-subcat-pill.active .sub-cnt {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--m2);
  border: 1.5px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top-btn:hover {
  background: var(--m2);
  color: #ffffff;
  border-color: var(--m2);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 28px rgba(128, 0, 32, 0.3);
}
@media (min-width: 992px) {
  .back-to-top-btn {
    right: calc(var(--pl-ord) + 24px);
    bottom: 28px;
  }
}

/* Toast Notification (Micro-Feedback) */
.toast-notification {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 92vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.toast-ic {
  color: #22c55e;
  font-size: 1.15rem;
}

/* Cart Badge Bounce Animation */
@keyframes cartBadgeBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  65% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.cart-bounce {
  animation: cartBadgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Polished Card Hover & Micro-interactions */
.pc-action-btn:hover {
  filter: brightness(1.06);
  transform: scale(1.02);
}
.pc-action-btn:active {
  transform: scale(0.97);
}




