/* ========================================
   Store Catalog - Design System
   Concept 2 Marketplace Layout + Concept 3 Light Color Language
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body.store-hide-prices .product-prices,
body.store-hide-prices .table-mobile-prices,
body.store-hide-prices .table-price-wholesale,
body.store-hide-prices .table-price-retail,
body.store-hide-prices .th-wholesale,
body.store-hide-prices .th-msrp {
  display: none !important;
}

/* ---- CSS Variables: Concept 3 Light Marketplace ---- */
:root {
  --sticky-filter-top: 80px;

  /* Concept 3 Color Language */
  --color-primary: #0B2238;          /* Deep Navy - Structure, Headers, Primary Accents */
  --color-primary-hover: #163A5C;
  --color-accent: #F97316;           /* Vibrant Marketplace Orange - CTA, Badges, Highlights */
  --color-accent-hover: #EA580C;
  --color-accent-subtle: #FFF7ED;    /* Soft Orange Tint */
  --color-accent-solid: #C2410C;     /* Accessible Deep Orange for solid buttons with white text (WCAG AA 5.18:1) */
  --color-accent-solid-hover: #9A3412; /* Darker Deep Orange for solid button hover (WCAG AAA 7.31:1) */
  --color-secondary: #0E7490;        /* Deep Teal / Cyan */
  --color-secondary-subtle: #ECFEFF; /* Soft Cyan Tint */

  /* Neutral Backgrounds & Surfaces */
  --color-background: #F8FAFC;       /* Slate 50 - Crisp clean marketplace canvas */
  --color-surface: #FFFFFF;          /* Pure White Cards & Panels */
  --color-surface-muted: #F1F5F9;    /* Slate 100 - Secondary containers / chip background */
  --color-surface-hover: #F8FAFC;

  /* Typography Colors */
  --color-text: #0F172A;             /* Slate 900 - High legibility, crisp contrast */
  --color-text-secondary: #64748B;   /* Slate 500 - Metadata, specs, subtitles */
  --color-text-muted: #94A3B8;       /* Slate 400 - Tertiary info */
  --color-price: #EA580C;            /* Orange-600 for prominent pricing */

  /* Borders */
  --color-border: #E2E8F0;           /* Slate 200 - Clean geometric separators */
  --color-border-subtle: #F1F5F9;    /* Slate 100 */
  --color-border-focus: #0B2238;     /* Navy focus indicator */
  --color-border-incart: #FDBA74;

  /* Semantic Feedback */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-danger-hover: #DC2626;

  /* Backward Compatibility Aliases */
  --bg-primary: var(--color-background);
  --bg-secondary: var(--color-surface);
  --bg-card: var(--color-surface);
  --bg-card-hover: var(--color-surface);
  --bg-card-incart: var(--color-accent-subtle);
  --bg-glass: rgba(255, 255, 255, 0.94);
  --border-subtle: var(--color-border-subtle);
  --border-card: var(--color-border);
  --border-focus: var(--color-accent);
  --border-incart: #FDBA74;
  --text-primary: var(--color-text);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-muted);
  --text-price: var(--color-price);
  --accent-primary: var(--color-accent);
  --accent-primary-hover: var(--color-accent-hover);
  --accent-danger: var(--color-danger);
  --accent-success: var(--color-success);
  --accent-warning: var(--color-warning);
  --accent-new: var(--color-accent);

  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  --gradient-danger: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-header: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

  /* Shadows & Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-button: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  /* Rounded Corners */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease-in-out;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Laptop density (below): page zoom and zoom-corrected viewport units. */
  --page-zoom: 1;
  --vh: 1vh;
  --vw: 1vw;
}

/* ---- Laptop density ----
   Laptops whose OS already scales the web up (e.g. 1920×1080 at 150% → 1280px wide) felt oversized at 100%.
   On 1200–1599px mouse/touchpad screens with ≥125% scaling, draw the whole page (storefront and admin, which
   shares this file) at 75% — the same as the browser's 75% page zoom. Phones, tablets, unscaled laptops and big
   monitors are unchanged. CSS zoom also shrinks vh/vw, so every viewport unit goes through var(--vh)/var(--vw). */
@media (min-width: 1200px) and (max-width: 1599px) and (hover: hover) and (pointer: fine) and (min-resolution: 1.25dppx) {
  :root {
    --page-zoom: .75;
    --vh: calc(1vh / .75);
    --vw: calc(1vw / .75);
  }
}

html { zoom: var(--page-zoom); }

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
  min-height: calc(var(--vh) * 100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keyboard Focus Accessibility (WCAG 2.4.7) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.product-card:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary, #0B2238);
  outline-offset: 2px;
}

/* Reduced Motion Accessibility (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-content {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.header-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.header-logo-img {
  width: 100%;
  height: 100%;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  display: block;
}

.header-title h1 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header-meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.header-nav-link:hover {
  color: var(--color-primary);
  background: var(--color-surface-muted);
}

.header-nav-link.active,
.header-home-nav-btn.active {
  color: var(--color-primary);
  background: var(--color-surface-muted);
  font-weight: 700;
}

.header-home-nav-btn svg {
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.header-home-nav-btn:hover svg {
  transform: scale(1.1);
}

.header-branding {
  cursor: pointer;
}

.header-search-wrap {
  flex: 1;
  max-width: 540px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-admin-link,
.header-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-muted);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.header-admin-link:hover,
.header-promo-link:hover {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.header-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-cart-link:hover {
  background: var(--color-primary-hover);
}

.header-cart-link .cart-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
}

/* ---- Main Content & 3-Column Desktop Structure ---- */
.main-content {
  position: relative;
  max-width: 1520px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
}

/* Mobile Filter Bar & Category Rail Container - HIDDEN on Desktop */
.mobile-filter-section {
  display: none !important;
  margin-bottom: 1rem;
}

/* 3-Column Desktop Layout (Left Filter + Catalog + Pesanan) */
.catalog-3col-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

.catalog-center-column .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

/* Mid-width squeeze for unscaled or touch screens. Laptops in the density zoom above already have ~1600–2130px
   of room (like the browser's 75% zoom), so they keep the default desktop layout. */
@media (min-width: 1200px) and (max-width: 1440px) and (hover: none),
       (min-width: 1200px) and (max-width: 1440px) and (pointer: coarse),
       (min-width: 1200px) and (max-width: 1440px) and (max-resolution: 1.249dppx) {
  .catalog-3col-layout {
    grid-template-columns: 220px minmax(0, 1fr) 270px;
    gap: 1rem;
  }

  .catalog-center-column .product-grid,
  .category-shelf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.75rem;
  }

  .product-card-media-wrapper {
    height: 140px;
  }

  .product-card-info {
    padding: 0.7rem;
    gap: 0.25rem;
  }

  .product-name {
    font-size: 0.775rem;
    line-height: 1.3;
  }

  .product-specs span {
    font-size: 0.65rem;
    padding: 0.08rem 0.3rem;
  }

  .hero-program-card {
    padding: 0.75rem 1rem;
    gap: 0.85rem;
  }

  .hero-program-visual {
    width: 90px;
    height: 75px;
  }

  .hero-program-title {
    font-size: 0.925rem;
  }

  .hero-program-cta-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .sidebar-filter-btn {
    font-size: 0.775rem;
    padding: 0.35rem 0.55rem;
  }

  .sidebar-cukai-btn {
    font-size: 0.775rem;
    padding: 0.35rem 0.55rem;
  }

  .pesanan-panel-header {
    padding: 0.75rem;
  }

  .pesanan-panel-body {
    padding: 0.75rem;
  }

  .pesanan-summary-row {
    font-size: 0.775rem;
  }

  .pesanan-checkout-btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.825rem;
  }
}

/* ---- Desktop Live Pesanan Sidebar ---- */
.pesanan-sidebar {
  position: sticky;
  top: var(--sticky-filter-top, 80px);
  min-width: 0;
  max-height: calc(var(--vh) * 100 - 96px);
}

.pesanan-panel-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  max-height: calc(var(--vh) * 100 - 96px);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pesanan-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.pesanan-panel-eyebrow {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pesanan-panel-title {
  margin: 0;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.pesanan-item-count {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 800;
}

.pesanan-items {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 1rem;
}

.pesanan-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.65rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.pesanan-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pesanan-item-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
}

.pesanan-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.pesanan-item-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.pesanan-item-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.pesanan-item-heading,
.pesanan-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.pesanan-item-brand {
  overflow: hidden;
  color: var(--color-secondary);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pesanan-item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.pesanan-item-remove:hover,
.pesanan-item-remove:focus-visible {
  background: #FEF2F2;
  color: var(--color-danger);
}

.pesanan-item-name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pesanan-item-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0.25rem 0 0.35rem;
  font-size: 0.72rem;
}

.pesanan-item-unit-price {
  color: var(--color-text-secondary);
}

.pesanan-item-subtotal {
  font-weight: 800;
  color: var(--color-primary);
}

.pesanan-stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  min-height: 32px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-surface);
}

.pesanan-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: var(--color-surface-muted);
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}

.pesanan-qty-btn:hover,
.pesanan-qty-btn:focus-visible {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.pesanan-item-qty-input {
  width: 34px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}

.pesanan-item-qty-input::-webkit-outer-spin-button,
.pesanan-item-qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.pesanan-empty {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.pesanan-empty[hidden],
.pesanan-summary[hidden] {
  display: none;
}

.pesanan-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.pesanan-empty strong {
  color: var(--color-primary);
  font-size: 0.8rem;
}

.pesanan-empty span {
  max-width: 190px;
  font-size: 0.7rem;
  line-height: 1.4;
}

.pesanan-summary {
  padding: 0.8rem 1rem 0;
  border-top: 1px solid var(--color-border-subtle);
}

.pesanan-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
}

.pesanan-summary-row strong {
  color: var(--color-primary);
  font-weight: 800;
}

.pesanan-total-price-row {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--color-border);
}

.pesanan-total-price {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 800;
}

.pesanan-summary-divider {
  height: 1px;
  margin: 0.65rem 0;
  background: var(--color-border);
}

.pesanan-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
}

.pesanan-action-btn,
.pesanan-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 0.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pesanan-action-primary {
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.pesanan-action-primary:hover:not(:disabled),
.pesanan-action-primary:focus-visible:not(:disabled) {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.pesanan-action-secondary {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
}

.pesanan-action-secondary:hover:not(:disabled),
.pesanan-action-secondary:focus-visible:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-surface-muted);
}

.pesanan-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pesanan-pdf-btn {
  min-height: 36px;
  padding: 0.45rem 0.6rem;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
}

.pesanan-pdf-btn:hover,
.pesanan-pdf-btn:focus-visible {
  background: var(--color-surface-muted);
  color: var(--color-accent);
}

/* Category Shelves on Menu 'Semua' (Pola A+C) */
.category-shelves-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.category-card-shelf {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

.category-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.03));
}

.category-shelf-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.category-shelf-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

.category-shelf-count {
  font-size: 0.75rem;
  color: var(--color-text-secondary, #64748B);
  background: var(--color-surface-muted, #F1F5F9);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-weight: 600;
}

.category-shelf-see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent, #F97316);
  background: var(--color-accent-subtle, #FFF7ED);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.category-shelf-see-all-btn:hover {
  background: var(--color-accent, #F97316);
  color: #FFFFFF;
  border-color: var(--color-accent, #F97316);
  transform: translateX(2px);
}

.category-shelf-see-all-btn svg {
  transition: transform 0.15s ease;
}

.category-shelf-see-all-btn:hover svg {
  transform: translateX(2px);
}

.category-shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

@media (max-width: 991px) {
  .category-shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem;
  }

  .category-shelf-header {
    padding: 0.35rem 0.6rem;
    margin-bottom: 0.35rem;
  }

  .category-shelf-title {
    font-size: 0.875rem;
  }

  .category-shelf-count {
    font-size: 0.6875rem;
    padding: 0.15rem 0.45rem;
  }

  .category-shelf-see-all-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Left Sidebar Shell: Filter */
.catalog-sidebar-left,
#left-filter-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(var(--vh) * 100 - 96px);
  overflow-y: auto;
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-card-heading {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-reset-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sidebar-reset-link:hover {
  text-decoration: underline;
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}

.sidebar-category-btn:hover {
  background: var(--color-background);
}

.sidebar-category-btn.active {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
}

.sidebar-category-btn .filter-new-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--color-accent);
  color: #fff;
}

.sidebar-category-btn.active .filter-new-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Center Column Shell: Catalog */
.catalog-center-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Program Brand Hero Banner ---- */
.hero-program-banner {
  margin-bottom: 0.5rem;
}

.hero-program-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF7ED 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-program-visual {
  width: 130px;
  height: 110px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-program-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-accent);
  font-size: 1rem;
}

.hero-program-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-program-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-program-tag {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 4px;
}

.hero-program-brand {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-program-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
}

.hero-program-excerpt {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-program-actions {
  margin-top: 0.35rem;
}

/* Light outline CTA: readable on the soft orange card without competing with the program image/title. */
.hero-program-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  background: #fff;
  color: var(--color-primary);
  border: 1px solid rgba(11, 34, 56, 0.18);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.hero-program-cta-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

@media (hover: hover) {
  .hero-program-cta-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
}

.hero-program-cta-btn:active {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

/* Rotator Navigation Controls */
.hero-rotator-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.hero-rotator-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0.5rem;
}

.hero-rotator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-rotator-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--color-accent, #FF6B00);
}

.hero-rotator-dot:hover:not(.active) {
  background: #94A3B8;
}

.hero-rotator-arrows {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-rotator-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border, #E2E8F0);
  color: var(--color-primary, #0B2238);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hero-rotator-arrow:hover {
  background: #FFFFFF;
  border-color: var(--color-accent, #FF6B00);
  color: var(--color-accent, #FF6B00);
}

/* ---- Brand Toggle & Sidebar Controls ---- */
.brand-sidebar-toggle-wrapper {
  margin-bottom: 0.35rem;
}

.brand-sidebar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0.35rem 0;
}

.brand-sidebar-toggle span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sidebar-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal);
}

.brand-sidebar.open .brand-sidebar-icon,
.catalog-sidebar.brand-sidebar.open .brand-sidebar-icon {
  transform: rotate(180deg);
}

.catalog-sidebar.brand-sidebar:not(.open) .brand-filter {
  display: none !important;
}

.catalog-sidebar.brand-sidebar.open .brand-filter {
  display: flex !important;
}

/* ---- Search Bar ---- */
.search-bar {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 2.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-normal);
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-right: -4px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.search-clear:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.05);
}

/* ---- Category Filter ---- */
.category-rail {
  position: relative;
  min-width: 0;
}

.category-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
  -webkit-overflow-scrolling: touch;
}

.category-scroll-hint {
  display: none;
}

.category-scroll-hint[hidden] {
  display: none !important;
}

.category-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.category-btn:hover {
  background: var(--color-surface-muted);
  border-color: var(--color-primary);
}

.category-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-button);
}

.category-btn[data-category="new"] {
  color: var(--color-accent);
  border-color: var(--color-accent);
  font-weight: 800;
}

.category-btn[data-category="new"].active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.category-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.filter-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  background: #ea580c;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.category-btn.active .filter-new-badge,
.brand-btn.active .filter-new-badge {
  background: #ffffff;
  color: #ea580c;
}

/* ---- Results Info & Toolbar ---- */
.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.825rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.results-count strong {
  color: var(--color-text);
  font-weight: 700;
}

.results-count-desktop {
  display: inline;
}

.results-count-mobile {
  display: none;
}

.results-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.sort-select,
.page-size-select {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sort-select:focus,
.page-size-select:focus {
  border-color: var(--color-accent);
}

.image-visibility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.image-visibility-btn:hover {
  background: var(--color-surface-muted);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pdf-download-btn:hover {
  background: var(--color-surface-muted);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* ---- Cukai Year Sidebar Filter ---- */
.sidebar-cukai-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-cukai-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.sidebar-cukai-btn:hover {
  background: var(--color-background);
  border-color: var(--color-primary);
}

.sidebar-cukai-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.sidebar-cukai-btn.active .cukai-count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cukai-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cukai-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
  font-size: 0.65rem;
  font-weight: 700;
}

/* ---- Mobile Quick Cukai Rail ---- */
.cukai-rail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.35rem 0 0.15rem;
}

.cukai-rail::-webkit-scrollbar {
  display: none;
}

.cukai-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.cukai-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border-radius: 9999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cukai-pill-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.cukai-pill-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.cukai-pill-btn .cukai-pill-count {
  font-size: 0.68rem;
  opacity: 0.85;
}

.cukai-pill-btn.active .cukai-badge {
  box-shadow: 0 0 0 1px #ffffff;
}

/* ---- Brand Filter List ---- */
.brand-filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.brand-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.brand-btn:hover {
  background: var(--color-background);
  border-color: var(--color-primary);
}

.brand-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.brand-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
  font-size: 0.65rem;
  font-weight: 700;
}

.brand-btn.active .brand-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ---- Product Card ---- */
.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: visible;
  height: auto;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

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

.product-card.in-cart {
  background: var(--color-accent-subtle);
  border-color: #FDBA74;
}

.badge-new-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

.product-card-media-wrapper {
  position: relative;
  width: 100%;
  height: 150px;
  flex: 0 0 auto;
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border-subtle);
}

.product-image-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-frame img {
  transform: scale(1.04);
}

.product-image-placeholder {
  border: 0;
  padding: 0;
  background: var(--color-surface-muted);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.product-image-placeholder svg {
  opacity: 0.5;
}

.product-image-placeholder span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.product-card-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
  min-height: 0;
}

.product-brand {
  font-size: 0.68rem;
  color: var(--color-text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.product-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  min-height: 2.7em;
  max-height: 4.1em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  word-break: break-word;
}

.product-name-button {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-normal);
  white-space: normal;
  width: 100%;
}

.product-name-button:hover {
  color: var(--color-accent);
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.1rem 0;
  flex: 0 0 auto;
}

.product-specs span {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1;
}

/* Cukai Excise Badges */
.cukai-badge,
.product-specs span.cukai-badge,
.table-product-specs span.cukai-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.cukai-badge-2026,
.product-specs span.cukai-badge-2026 {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #FCD34D !important;
}

.cukai-badge-2025,
.product-specs span.cukai-badge-2025 {
  background: #E0E7FF !important;
  color: #3730A3 !important;
  border: 1px solid #C7D2FE !important;
}

.cukai-badge-2024,
.product-specs span.cukai-badge-2024 {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}

.cukai-badge-2023,
.product-specs span.cukai-badge-2023 {
  background: #F3F4F6 !important;
  color: #4B5563 !important;
  border: 1px solid #E5E7EB !important;
}

.product-prices {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--color-border);
  flex: 0 0 auto;
}

.price-retail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-retail-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-retail-main {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.price-wholesale-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  flex-wrap: wrap;
}

.grosir-badge {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border: 1px solid #FED7AA;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.grosir-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-price);
  font-variant-numeric: tabular-nums;
}

/* ---- Product Actions ---- */
.product-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
  flex: 0 0 auto;
}

/* Desktop Cart Actions */
.mobile-product-stepper {
  display: none !important;
}

.desktop-product-action {
  display: block;
  width: 100%;
}

.desktop-product-action .btn-add {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--color-accent-solid);
  color: #ffffff;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.desktop-product-action .btn-add:hover {
  background: var(--color-accent-solid-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}

.desktop-stepper {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.desktop-stepper-btn {
  border: none;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.desktop-stepper-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.desktop-stepper-value {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* ---- Product Tables (B2B Marketplace Table Surface) ---- */
.product-table-groups {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-table-section {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  transition: border-color 0.15s ease;
}

.category-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
}

.category-table-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  letter-spacing: -0.01em;
}

.category-table-count {
  font-size: 0.75rem;
  color: var(--color-text-secondary, #64748B);
  font-weight: 600;
}

.product-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.product-table th {
  padding: 0.75rem 1rem;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--color-text-secondary, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #F8FAFC;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
  white-space: nowrap;
}

.product-table th.th-product { text-align: left; width: 45%; }
.product-table th.th-brand { text-align: left; width: 14%; }
.product-table th.th-wholesale { text-align: right; width: 14%; }
.product-table th.th-msrp { text-align: right; width: 13%; }
.product-table th.th-action { text-align: center; width: 14%; }

.product-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.product-table-row {
  transition: background 0.15s ease;
}

.product-table-row:hover {
  background: #F8FAFC;
}

.product-table-row.in-cart {
  background: rgba(255, 107, 0, 0.02);
}

/* Product Column */
.table-product-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.table-product-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.table-new-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: #FF6B00;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.table-product-name-button {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary, #0B2238);
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.table-product-name-button:hover {
  color: var(--color-accent, #FF6B00);
}

.table-product-specs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.table-product-specs span,
.table-spec-chip {
  display: inline-block;
  padding: 2px 6px;
  background: #F1F5F9;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748B;
  line-height: 1.2;
}

/* Brand Column */
.table-brand-tag {
  display: inline-block;
  padding: 3px 8px;
  background: #F1F5F9;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

/* Price Columns */
.table-ws-price {
  font-size: 0.925rem;
  font-weight: 800;
  color: var(--color-accent, #FF6B00);
  display: block;
  text-align: right;
  white-space: nowrap;
}

.table-msrp-price {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94A3B8;
  text-decoration: line-through;
  display: block;
  text-align: right;
  white-space: nowrap;
}

/* Action Column */
.cell-action,
.product-table-action-cell {
  text-align: center;
}

.table-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md, 8px);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--color-accent-solid, #C2410C);
  color: #FFFFFF;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.table-add-btn:hover {
  background: var(--color-accent-solid-hover, #9A3412);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.2);
}

.table-stepper {
  display: inline-grid;
  grid-template-columns: 36px 1fr 36px;
  width: 100%;
  max-width: 120px;
  height: 36px;
  border: 1px solid var(--color-accent, #FF6B00);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  background: #FFFFFF;
}

.table-stepper-btn {
  border: none;
  background: rgba(255, 107, 0, 0.1);
  color: var(--color-accent, #FF6B00);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.table-stepper-btn:hover {
  background: var(--color-accent, #FF6B00);
  color: #FFFFFF;
}

.table-stepper-val {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-primary, #0B2238);
}

/* ---- Mobile Compact Table Layout (<640px) ---- */
@media (max-width: 640px) {
  .marketplace-mobile-table th.th-product { text-align: left; }
  .marketplace-mobile-table th.th-action { text-align: right; width: 110px; }

  .mobile-product-cell-compact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .mobile-table-brand-tag {
    display: inline-block;
    padding: 1px 6px;
    background: #F1F5F9;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    width: fit-content;
  }

  .table-mobile-prices {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
  }

  .mobile-price-rt {
    font-size: 0.725rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
  }

  .mobile-price-ws {
    font-size: 0.825rem;
    color: #64748B;
  }

  .mobile-price-ws strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-accent, #FF6B00);
  }

  .mobile-table-add-btn {
    min-height: 40px;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .mobile-table-stepper {
    max-width: 100px;
    height: 38px;
    grid-template-columns: 32px 1fr 32px;
  }
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* ---- Mobile Bottom Navigation (Modern Seamless 5-Tab Bar) ---- */

/* ---- Mobile Bottom Navigation (Modern Seamless 5-Tab Bar) ---- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFFFFF;
  border-top: 1px solid var(--color-border, #E2E8F0);
  box-shadow: 0 -4px 16px rgba(11, 34, 56, 0.06);
  z-index: 1000;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.25rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  color: var(--color-text-secondary, #64748B);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
  min-width: 44px;
  min-height: 48px;
  flex: 1;
  text-decoration: none;
  transition: color var(--transition-fast, 0.15s ease);
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  color: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}

.mobile-nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--color-accent, #FF6B00);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.mobile-nav-item.active {
  color: var(--color-accent, #FF6B00) !important;
}

.mobile-nav-item.active svg {
  color: var(--color-accent, #FF6B00) !important;
  fill: currentColor;
}

.mobile-nav-label {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

/* ---- Mobile Drawer Overlay (Mobile/Tablet Only) ---- */
.sidebar-overlay {
  display: none !important;
}

/* ========================================
   Responsive Media Queries (< 1200px Mobile/Tablet)
   ======================================== */
@media (max-width: 1199px) {
  .sidebar-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(11, 34, 56, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  body {
    overflow-x: hidden;
  }

  .header {
    width: 100%;
    overflow: hidden;
  }

  .header-content {
    padding: 0.35rem 0.75rem;
    gap: 0.5rem;
  }

  .header-branding {
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
  }

  .header-logo-badge {
    width: 32px;
    height: 32px;
  }

  .header-logo-img {
    max-width: 32px;
    max-height: 32px;
  }

  .header-title {
    min-width: 0;
    overflow: hidden;
  }

  .header-title h1 {
    font-size: 0.925rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-meta {
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions,
  .header-nav,
  .header-search-wrap {
    display: none !important;
  }

  .main-content {
    padding-top: 0.5rem !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .catalog-3col-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pesanan-sidebar {
    display: none;
  }

  .catalog-center-column {
    gap: 0.5rem;
  }

  .mobile-filter-section {
    display: flex !important;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
  }

  .category-filter {
    padding-bottom: 0.25rem;
  }

  /* Compact Mobile Catalog Toolbar */
  .results-info {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    margin-bottom: 0;
    padding: 0 0.15rem;
  }

  .results-count-desktop {
    display: none !important;
  }

  .results-count-mobile {
    display: inline-block !important;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
  }

  .pdf-download-btn {
    display: none !important;
  }

  .image-visibility-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: #FFFFFF;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 9999px;
    color: var(--color-text-secondary, #64748B);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    width: fit-content;
  }

  .image-visibility-btn:hover {
    border-color: var(--color-accent, #FF6B00);
    color: var(--color-accent, #FF6B00);
  }

  .image-visibility-btn svg {
    width: 14px;
    height: 14px;
  }

  .results-controls {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .sort-control {
    gap: 0.25rem;
    font-size: 0.75rem;
  }

  .sort-select {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--radius-md);
  }

  .page-size-control {
    gap: 0.25rem;
    font-size: 0.75rem;
  }

  .page-size-control span {
    display: none;
  }

  .page-size-select {
    padding: 0.35rem 0.45rem;
    font-size: 0.75rem;
    border-radius: var(--radius-md);
  }

  .catalog-center-column .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem;
  }

  .sidebar-card-header {
    display: none;
  }

  .desktop-only-sidebar-section {
    display: none;
  }

  #left-filter-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: calc(var(--vh) * 100);
    z-index: 1050;
    transition: left 0.3s ease;
    background: var(--color-surface, #fff);
    overflow-y: auto;
  }
  
  #left-filter-sidebar.sidebar-open {
    left: 0;
  }

  .sidebar-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
  }

  .sidebar-mobile-header span {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-primary);
  }

  .sidebar-close-btn {
    background: var(--color-surface-muted);
    border: none;
    border-radius: var(--radius-full);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-secondary);
  }

  #left-filter-sidebar .sidebar-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem;
    min-height: 100%;
  }

  #left-filter-sidebar .brand-filter {
    max-height: calc(var(--vh) * 100 - 180px);
  }

  /* Search Row layout */
  .search-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
  }

  .search-bar.mobile-search-bar {
    flex: 1;
    height: 44px;
  }

  .search-bar.mobile-search-bar .search-input {
    height: 44px;
    padding: 0 2.4rem 0 2.5rem;
    font-size: 0.825rem;
  }

  .mobile-brand-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.85rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
  }

  .mobile-brand-trigger:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }

  .mobile-brand-trigger svg {
    color: var(--color-accent);
  }

  .mobile-bottom-nav {
    display: flex;
  }

  /* Mobile Program Brand Hero Card */
  .hero-program-banner {
    margin-bottom: 0;
  }

  .hero-program-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 0.65rem;
    gap: 0.65rem;
    min-height: auto;
    border-radius: var(--radius-lg);
  }

  .hero-program-visual {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
  }

  .hero-program-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .hero-program-badge-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .hero-program-tag {
    font-size: 0.58rem;
    padding: 0.1rem 0.35rem;
  }

  .hero-program-brand {
    font-size: 0.65rem;
  }

  .hero-program-title {
    font-size: 0.8125rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
  }

  /* A two-line teaser from the program text invites the tap (the whole card opens the program). */
  .hero-program-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero-program-actions {
    margin-top: 0;
  }

  /* The whole card is the tap target (app.js opens the program on any card click), so the CTA is a small text link. */
  .hero-program-cta-btn {
    padding: 0.15rem 0;
    background: none;
    border: 0;
    color: var(--color-accent-solid);
    font-size: 0.72rem;
    font-weight: 700;
    gap: 0.25rem;
  }

  .hero-program-cta-btn svg {
    width: 12px;
    height: 12px;
  }

  .hero-program-cta-btn:is(:hover, :active) {
    background: none;
    color: var(--color-accent-solid-hover);
    text-decoration: underline;
  }

  .hero-rotator-arrows {
    display: none;
  }

  .hero-rotator-nav {
    display: flex;
    align-items: center;
    width: auto;
  }

  .hero-rotator-dots {
    display: none;
  }

  /* Mobile Product Card */
  .product-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: visible;
    height: auto;
    min-height: 100%;
    box-shadow: var(--shadow-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
  }

  .product-card:hover {
    transform: none;
  }

  .product-card.product-card-is-new {
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-sm);
  }

  .product-card-media-wrapper {
    width: 100%;
    height: 104px;
    margin-bottom: 0;
    flex: 0 0 auto;
    overflow: hidden;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background: var(--color-surface-muted);
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .product-card:not(.product-card-images-visible) .product-card-media-wrapper {
    display: none;
  }

  .product-image-frame,
  .product-image-button {
    height: 100%;
  }

  .product-image-frame img {
    object-fit: contain;
    padding: 6px;
  }

  .badge-new-overlay {
    top: 6px;
    left: 6px;
    font-size: 0.625rem;
    padding: 1px 5px;
  }

  .product-card-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    min-height: 0;
    padding: 0.5rem 0.6rem;
  }

  .product-brand {
    color: var(--color-text-secondary);
    font-size: 0.6875rem;
    line-height: 1.2;
  }

  .product-name {
    min-height: 2.6em;
    max-height: 4.0em;
    font-size: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }

  .product-name-button {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-prices {
    gap: 0.15rem;
    margin-top: auto;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--color-border);
    flex: 0 0 auto;
  }

  .price-retail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .price-retail-label {
    font-size: 0.625rem;
  }

  .price-retail-main {
    color: var(--color-text-secondary);
    font-size: 0.6875rem;
    line-height: 1.2;
    font-weight: 500;
  }

  .price-wholesale-sub {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
    line-height: 1.25;
  }

  .grosir-badge {
    padding: 0.08rem 0.3rem;
    font-size: 0.625rem;
  }

  .grosir-value {
    color: var(--color-price);
    font-size: 0.875rem;
    font-weight: 800;
  }

  .product-actions {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0;
    flex: 0 0 auto;
  }

  .desktop-product-action {
    display: none !important;
  }

  .mobile-product-stepper {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
  }

  .mobile-stepper-btn {
    min-height: 44px;
    min-width: 44px;
    border: 0;
    background: var(--color-surface-muted);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
  }

  .mobile-stepper-btn:hover:not(:disabled) {
    background: var(--color-accent);
    color: #fff;
  }

  .mobile-stepper-btn:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .mobile-stepper-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-primary);
  }

  .product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin: 0.1rem 0;
  }

  .product-specs span {
    font-size: 0.6875rem;
    padding: 0.08rem 0.32rem;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding-bottom: calc(var(--mobile-nav-height, 60px) + 1.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .product-modal {
    max-width: calc(var(--vw) * 94);
    max-height: calc(var(--vh) * 88);
    border-radius: var(--radius-lg);
  }

  .product-modal-media {
    max-height: 260px;
  }

  .product-modal-media img {
    max-height: 260px;
  }

  .product-modal-body {
    padding: 1rem;
  }

  .product-modal-title {
    font-size: 1.05rem;
  }

  .product-modal-description {
    font-size: 0.825rem;
    margin-bottom: 1.25rem;
  }
}

/* ---- Formatted ML Size Tokens ---- */
.ml-size {
  font-weight: 800;
}
.ml-size-15 { color: #DC2626 !important; }
.ml-size-30 { color: #16A34A !important; }
.ml-size-60 { color: #2563EB !important; }
.ml-size-100 { color: #D97706 !important; }
.ml-size-other { color: #7C3AED !important; }

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  z-index: 1200;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

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

@media (max-width: 768px) {
  .toast {
    bottom: calc(var(--mobile-nav-height, 60px) + 78px + env(safe-area-inset-bottom, 0px));
    max-width: calc(var(--vw) * 90);
    text-align: center;
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* ---- Modals (Product & Promo Modal) ---- */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 34, 56, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-modal {
  background: var(--color-surface, #FFFFFF);
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-width: 680px;
  width: 100%;
  max-height: calc(var(--vh) * 90);
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--color-border, #E2E8F0);
  animation: modalSlideUp 0.25s ease-out;
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full, 9999px);
  border: none;
  background: var(--color-surface-muted, #F8FAFC);
  color: var(--color-text-secondary, #64748B);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast, 0.15s ease);
}

.product-modal-close:hover {
  background: #E2E8F0;
  color: var(--color-text, #0B2238);
}

.product-modal-content {
  display: flex;
  flex-direction: column;
}

.product-modal-media {
  width: 100%;
  max-height: 360px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
}

.product-modal-media img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.product-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.product-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  margin-bottom: 0.75rem;
}

.product-modal-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text, #1E293B) !important;
  margin-bottom: 1.5rem;
}

.promo-register-btn {
  background: #10B981;
  color: #fff;
  border-radius: var(--radius-md, 8px);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.promo-register-btn:hover {
  background: #059669;
}

.product-modal-link {
  background: var(--color-surface-muted, #F8FAFC);
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-md, 8px);
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text-secondary, #64748B);
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.product-modal-link:hover {
  background: #E2E8F0;
  color: var(--color-text, #0B2238);
}

/* ==========================================================================
   PRODUCT DETAIL MODAL (RESPONSIVE TWO-COLUMN)
   ========================================================================== */
.product-detail-modal {
  max-width: min(940px, calc(var(--vw) * 100 - 64px));
  width: 100%;
  max-height: min(620px, calc(var(--vh) * 100 - 64px));
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: stretch;
  min-height: 420px;
  max-height: min(620px, calc(var(--vh) * 100 - 64px));
  height: 100%;
}

.product-detail-media-col {
  background: var(--color-surface-muted, #F8FAFC);
  border-right: 1px solid var(--color-border, #E2E8F0);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.product-detail-media-col .product-modal-media {
  width: 100%;
  height: 100%;
  max-height: 330px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-media-col .product-modal-media img {
  max-width: 100%;
  max-height: 310px;
  object-fit: contain;
}

.product-modal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 2rem 1.5rem;
  color: var(--color-text-secondary, #64748B);
}

.product-modal-empty svg {
  color: var(--color-text-muted, #94A3B8);
  opacity: 0.8;
}

.product-modal-empty strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text, #334155);
}

.product-modal-empty span {
  font-size: 0.8rem;
  color: var(--color-text-muted, #94A3B8);
  max-width: 220px;
  line-height: 1.4;
}

.product-modal-full-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-secondary, #64748B);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md, 8px);
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E2E8F0);
  transition: all var(--transition-fast, 0.15s ease);
}

.product-modal-full-link:hover {
  color: var(--color-text, #0B2238);
  border-color: #CBD5E1;
  background: #F1F5F9;
}

.product-detail-info-col {
  padding: 2.25rem 3.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  max-height: min(620px, calc(var(--vh) * 100 - 64px));
}

.product-detail-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.product-detail-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-detail-badges .cukai-badge {
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
}

.product-detail-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-secondary, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  line-height: 1.35;
  margin: 0.25rem 0 0.5rem;
  word-break: break-word;
}

.product-detail-sku {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  margin-bottom: 0.85rem;
}

.product-detail-sku .sku-label {
  font-weight: 600;
  color: var(--color-text-muted, #94A3B8);
}

.product-detail-sku .sku-value {
  font-weight: 700;
  color: var(--color-text, #475569);
  font-family: inherit;
}

.product-detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.product-detail-pricing {
  background: var(--color-surface-muted, #F8FAFC);
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-lg, 12px);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-detail-msrp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-detail-msrp-row .msrp-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-muted, #94A3B8);
}

.product-detail-msrp-row .msrp-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted, #94A3B8);
  text-decoration: line-through;
}

.product-detail-grosir-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px dashed var(--color-border, #E2E8F0);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.product-detail-grosir-row .grosir-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-accent, #FF6B00);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-detail-grosir-row .grosir-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent, #FF6B00);
  letter-spacing: -0.02em;
}

.product-detail-cart-action {
  margin-top: auto;
  padding-top: 0.5rem;
}

.modal-add-btn {
  width: 100%;
  height: 48px;
  background: var(--color-accent, #FF6B00) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: var(--radius-md, 10px) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.modal-add-btn:hover {
  background: #E55F00 !important;
}

.modal-add-btn:active {
  transform: scale(0.98);
}

.product-modal-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface-muted, #F8FAFC);
  border: 1.5px solid var(--color-accent, #FF6B00);
  border-radius: var(--radius-md, 10px);
  height: 48px;
  padding: 0 0.5rem;
}

.modal-stepper-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm, 8px);
  border: none;
  background: #FFFFFF;
  color: var(--color-accent, #FF6B00);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
}

.modal-stepper-btn:hover {
  background: var(--color-accent, #FF6B00);
  color: #FFFFFF;
}

.modal-stepper-btn:active {
  transform: scale(0.94);
}

.modal-stepper-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  min-width: 40px;
  text-align: center;
}

/* Enhanced Modal Quantity Controls */
.product-modal-action-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.modal-stepper-input {
  width: 68px;
  height: 38px;
  text-align: center;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm, 8px);
  background: #FFFFFF;
  padding: 0 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-stepper-input:focus,
.modal-initial-qty-input:focus {
  outline: none;
  border-color: var(--color-accent, #FF6B00);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.modal-stepper-input::-webkit-outer-spin-button,
.modal-stepper-input::-webkit-inner-spin-button,
.modal-initial-qty-input::-webkit-outer-spin-button,
.modal-initial-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-stepper-input,
.modal-initial-qty-input {
  -moz-appearance: textfield;
}

.product-modal-initial-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.modal-initial-stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-surface-muted, #F8FAFC);
  padding: 0 0.5rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--color-border);
  height: 48px;
  flex: 0 0 auto;
}

.modal-qty-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-secondary, #64748B);
}

.modal-initial-qty-input {
  width: 52px;
  height: 34px;
  text-align: center;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm, 6px);
  background: #FFFFFF;
}

.modal-add-with-qty-btn {
  flex: 1;
  height: 48px;
  background: var(--color-accent, #FF6B00) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: var(--radius-md, 10px) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.modal-add-with-qty-btn:hover {
  background: #E55F00 !important;
}

.modal-add-with-qty-btn:active {
  transform: scale(0.98);
}

.modal-presets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.modal-preset-btn,
.modal-initial-preset-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary, #64748B);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-preset-btn:hover,
.modal-initial-preset-btn:hover {
  border-color: var(--color-accent, #FF6B00);
  color: var(--color-accent, #FF6B00);
  background: #FFF7ED;
}

.modal-preset-btn:active,
.modal-initial-preset-btn:active {
  transform: scale(0.96);
}

@media (max-width: 767px) {
  .product-detail-modal {
    max-width: calc(var(--vw) * 100 - 32px);
    width: calc(var(--vw) * 100 - 32px);
    max-height: calc(var(--vh) * 100 - 48px);
    border-radius: var(--radius-xl, 16px);
  }

  .product-detail-content {
    display: flex;
    flex-direction: column;
    min-height: auto;
    max-height: calc(var(--vh) * 100 - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-detail-media-col {
    border-right: none;
    border-bottom: 1px solid var(--color-border, #E2E8F0);
    padding: 1.5rem 1rem 1rem;
    min-height: auto;
  }

  .product-detail-media-col .product-modal-media {
    min-height: 180px;
    max-height: 230px;
  }

  .product-detail-media-col .product-modal-media img {
    max-height: 220px;
  }

  .product-detail-info-col {
    padding: 1.25rem 1.15rem 1.5rem;
    max-height: none;
    overflow-y: visible;
  }

  .product-detail-title {
    font-size: 1.15rem;
  }

  .product-detail-pricing {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
  }

  .product-detail-grosir-row .grosir-value {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   MODERN FULL CART PAGE (#cart-view)
   ========================================================================== */
.cart-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem calc(var(--mobile-nav-height, 60px) + 4rem + env(safe-area-inset-bottom, 0px));
}

.cart-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
}

.cart-header .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-lg, 12px);
  color: var(--color-text-primary, #0B2238);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cart-header .back-btn:hover {
  border-color: var(--color-accent, #FF6B00);
  color: var(--color-accent, #FF6B00);
}

.cart-header-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cart-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  letter-spacing: -0.02em;
  margin: 0;
}

.cart-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-secondary, #64748B);
  font-weight: 500;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-main-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-lg, 12px);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  transition: border-color 0.15s ease;
}

.cart-item-card:hover {
  border-color: #CBD5E1;
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: #F8FAFC;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-md, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-item-thumb-fallback {
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
  min-width: 0;
}

.cart-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent, #FF6B00);
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cart-item-remove:hover {
  color: #EF4444;
  background: #FEF2F2;
}

.cart-item-name {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-primary, #0B2238);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.cart-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: 8px;
  background: #FFFFFF;
  overflow: hidden;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #F8FAFC;
  color: var(--color-primary, #0B2238);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.cart-qty-btn:hover {
  background: #E2E8F0;
}

.cart-item-qty-input {
  width: 44px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--color-border, #E2E8F0);
  border-right: 1px solid var(--color-border, #E2E8F0);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary, #0B2238);
  outline: none;
  -moz-appearance: textfield;
}

.cart-item-qty-input::-webkit-outer-spin-button,
.cart-item-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Cart Summary Card */
.cart-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  position: sticky;
  top: 80px;
}

.cart-summary-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748B);
  margin-bottom: 0.6rem;
}

.cart-summary-row strong {
  color: var(--color-primary, #0B2238);
  font-weight: 700;
}

.cart-total-price-row {
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border, #E2E8F0);
}

.cart-total-price {
  color: var(--color-primary, #0B2238);
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-item-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.cart-item-unit-price {
  font-size: 0.8rem;
  color: var(--color-text-secondary, #64748B);
}

.cart-item-subtotal {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
}

.cart-summary-divider {
  height: 1px;
  background: var(--color-border, #E2E8F0);
  margin: 0.85rem 0;
}

.cart-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cart-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg, 12px);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  outline: none;
}

.cart-action-btn.whatsapp {
  background: var(--color-accent-solid, #C2410C);
  color: #FFFFFF;
}

.cart-action-btn.whatsapp:hover {
  background: var(--color-accent-solid-hover, #9A3412);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}

.cart-action-btn.copy {
  background: var(--color-primary, #0B2238);
  color: #FFFFFF;
}

.cart-action-btn.copy:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.cart-action-btn.clear-cart {
  background: #F8FAFC;
  border: 1px solid var(--color-border, #E2E8F0);
  color: var(--color-text-secondary, #64748B);
}

.cart-action-btn.clear-cart:hover {
  border-color: #EF4444;
  color: #EF4444;
  background: #FEF2F2;
}

/* ---- Catalog Search & Filter Zero-State ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-surface, #FFFFFF);
  border: 1px dashed var(--color-border, #CBD5E1);
  border-radius: var(--radius-lg, 12px);
  padding: 3.5rem 1.5rem;
  margin: 1rem 0;
}

.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  width: 100%;
}

.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background: var(--color-surface-muted, #F8FAFC);
  color: var(--color-text-muted, #94A3B8);
  margin-bottom: 1.25rem;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary, #0B2238);
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
}

.empty-state-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748B);
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}

.empty-state-actions {
  margin-bottom: 1.5rem;
}

.btn-empty-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--color-accent, #FF6B00);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md, 8px);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.btn-empty-reset:hover {
  background: #E55F00;
  transform: translateY(-1px);
}

.empty-state-suggestions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--color-border, #E2E8F0);
}

.empty-suggestions-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted, #94A3B8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.empty-suggestion-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary, #0B2238);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.empty-suggestion-pill:hover {
  border-color: var(--color-accent, #FF6B00);
  color: var(--color-accent, #FF6B00);
  background: #FFF7ED;
  transform: translateY(-1px);
}

.empty-suggestion-pill .cukai-badge {
  pointer-events: none;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFFFFF;
  border: 1px dashed var(--color-border, #CBD5E1);
  border-radius: var(--radius-lg, 12px);
  padding: 3rem 1.5rem;
}

.cart-empty-icon {
  color: #94A3B8;
  margin-bottom: 1rem;
}

.cart-empty h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary, #0B2238);
  margin: 0 0 0.5rem 0;
}

.cart-empty p {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748B);
  margin: 0 0 1.25rem 0;
}

.cart-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: var(--color-accent, #FF6B00);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-lg, 12px);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cart-empty-link:hover {
  background: #E05E00;
  transform: translateY(-1px);
}

/* ==========================================================================
   MODERN PROGRAM BRAND OVERVIEW PAGE (#promo-view)
   ========================================================================== */
.promo-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
}

.promo-header .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-lg, 12px);
  color: var(--color-text-primary, #0B2238);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.promo-header .back-btn:hover {
  border-color: var(--color-accent, #FF6B00);
  color: var(--color-accent, #FF6B00);
}

.promo-header-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.promo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  letter-spacing: -0.02em;
  margin: 0;
}

.promo-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-secondary, #64748B);
  font-weight: 500;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

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

.promo-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(11, 34, 56, 0.08));
  border-color: #CBD5E1;
}

.promo-card-image {
  position: relative;
  width: 100%;
  height: 240px;
  max-height: 240px;
  background: #0B2238;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.promo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-card-image.placeholder {
  background: #F1F5F9;
  color: #94A3B8;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.promo-card-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.promo-card-brand-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 107, 0, 0.1);
  color: var(--color-accent, #FF6B00);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.promo-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
}

.promo-card-description {
  font-size: 0.85rem;
  color: var(--color-text-secondary, #64748B);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}

.promo-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border, #E2E8F0);
}

.promo-card-cta {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-accent, #FF6B00);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.15s ease;
}

.promo-card:hover .promo-card-cta {
  gap: 0.45rem;
}

.promo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFFFFF;
  border: 1px dashed var(--color-border, #CBD5E1);
  border-radius: var(--radius-lg, 12px);
  padding: 3rem 1.5rem;
}

.promo-empty-icon {
  color: #94A3B8;
  margin-bottom: 1rem;
}

.promo-empty h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary, #0B2238);
  margin: 0 0 0.5rem 0;
}

.promo-empty p {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748B);
  margin: 0 0 1.25rem 0;
}

.promo-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: var(--color-accent, #FF6B00);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-lg, 12px);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.promo-empty-link:hover {
  background: #E05E00;
  transform: translateY(-1px);
}

/* ==========================================================================
   PDF DOWNLOAD MODAL (#pdf-modal)
   ========================================================================== */
.pdf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 34, 56, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pdf-modal {
  background: #FFFFFF;
  border-radius: var(--radius-lg, 16px);
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.15));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.pdf-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary, #0B2238);
  margin: 0;
}

.pdf-modal-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748B);
  margin: -0.5rem 0 0 0;
  line-height: 1.4;
}

.pdf-filter-summary {
  background: #F8FAFC;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-md, 8px);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pdf-filter-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--color-text-secondary, #64748B);
}

.pdf-filter-summary-row strong {
  color: var(--color-primary, #0B2238);
  font-weight: 700;
}

.pdf-filter-summary-result {
  border-top: 1px dashed var(--color-border, #CBD5E1);
  padding-top: 0.4rem;
  margin-top: 0.2rem;
  font-weight: 700;
  color: var(--color-accent, #FF6B00);
}

.pdf-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdf-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md, 10px);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.pdf-action-primary {
  background: var(--color-accent, #FF6B00);
  color: #FFFFFF;
}

.pdf-action-primary:hover {
  background: #E05E00;
}

.pdf-action-secondary {
  background: #F1F5F9;
  color: var(--color-primary, #0B2238);
}

.pdf-action-secondary:hover {
  background: #E2E8F0;
}

.pdf-modal-cancel {
  background: transparent;
  border: none;
  color: var(--color-text-secondary, #64748B);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s ease;
}

.pdf-modal-cancel:hover {
  color: var(--color-primary, #0B2238);
}

.pdf-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pdf-progress-bar-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}

.pdf-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--color-accent, #FF6B00);
  transition: width 0.2s ease;
}

.pdf-progress-text {
  font-size: 0.775rem;
  color: var(--color-text-secondary, #64748B);
  text-align: center;
}

/* ==========================================================================
   MOBILE STICKY ORDER BAR (ITEM #10)
   ========================================================================== */
.mobile-sticky-order-bar {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-sticky-order-bar {
    position: fixed;
    bottom: calc(var(--mobile-nav-height, 60px) + env(safe-area-inset-bottom, 0px) + 8px);
    left: 12px;
    right: 12px;
    max-width: 480px;
    margin: 0 auto;
    z-index: 85;
    background: rgba(11, 34, 56, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 10px 25px -4px rgba(11, 34, 56, 0.4), 0 4px 10px rgba(0, 0, 0, 0.12);
    padding: 0.55rem 0.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-sizing: border-box;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

  .mobile-sticky-order-bar.is-visible {
    display: flex !important;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sticky-order-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .sticky-order-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 107, 0, 0.18);
    color: #FF8533;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .sticky-order-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
  }

  .sticky-order-qty {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-order-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FDBA74;
  }

  .sticky-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    background: #FF6B00;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .sticky-order-btn:hover {
    background: #FF7D1A;
  }

  .sticky-order-btn:active {
    background: #E05D00;
    transform: scale(0.97);
  }

  body.has-cart-items .main-content {
    padding-bottom: calc(var(--mobile-nav-height, 60px) + 72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

