/* =========================================================
   CV. INTI MEDIA - SARANA EDUKASI
   Modern Mobile-Friendly Design System
   ========================================================= */

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

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  
  --siplah-blue: #00a2e8;
  --siplah-dark: #0284c7;
  --tax-green: #16a34a;
  --tax-green-light: #dcfce7;
  --offline-yellow: #eab308;
  --offline-yellow-light: #fef9c3;
  --admin-red: #dc2626;
  --admin-red-light: #fee2e2;

  --bg-slate: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-slate);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

/* ================= NAVBAR & HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header Price Badges / Switchers */
.price-mode-nav {
  display: none;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: var(--radius-full);
}

@media (min-width: 900px) {
  .price-mode-nav {
    display: flex;
  }
}

.price-pill {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.price-pill:hover {
  color: var(--text-main);
}

.price-pill.active-siplah {
  background: var(--siplah-blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 162, 232, 0.4);
}

.price-pill.active-pajak {
  background: var(--tax-green);
  color: #fff;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.4);
}

.price-pill.active-offline {
  background: var(--offline-yellow);
  color: #713f12;
  box-shadow: 0 2px 6px rgba(234, 179, 8, 0.4);
}

/* Action Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-btn-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary-hover);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
  transition: var(--transition-fast);
  cursor: pointer;
}

.cart-btn-nav:hover {
  background: #bae6fd;
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--admin-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.btn-admin-header {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.btn-admin-header:hover {
  background: var(--text-main);
  color: #fff;
}

/* ================= LANDING PAGE (PDF PAGE 1) ================= */
.hero-portal-section {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(2, 132, 199, 0.08) 0%, rgba(248, 250, 252, 1) 75%);
  z-index: 0;
}

.portal-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.portal-logo-wrap {
  margin-bottom: 1.25rem;
}

.portal-logo {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  background: #fff;
}

.portal-subtitle {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.portal-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.portal-company {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* 3 Main Action Cards (PDF Page 1) */
.price-action-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.price-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  width: 100%;
}

.price-card-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.price-card-btn.btn-siplah {
  background: linear-gradient(135deg, #00a2e8 0%, #0284c7 100%);
  color: #ffffff;
}

.price-card-btn.btn-pajak {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
}

.price-card-btn.btn-offline {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #713f12;
}

.price-card-btn .card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Footer Admin Login Area (PDF Page 1) */
.portal-admin-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.portal-nb {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-red);
}

.portal-admin-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 450px;
  line-height: 1.4;
}

.btn-admin-login-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--admin-red);
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
  transition: var(--transition-fast);
}

.btn-admin-login-hero:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.45);
}

/* ================= CATALOG LAYOUT (PDF PAGE 2) ================= */
.catalog-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  width: 100%;
}

/* Left Sidebar / Collapsible Category Panel */
.category-sidebar {
  width: 290px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 85px;
  transition: all var(--transition-smooth);
}

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

.sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sidebar-toggle-hint {
  font-size: 0.72rem;
  color: var(--admin-red);
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  background: #f8fafc;
  border: 1px solid transparent;
}

.category-link:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(2, 132, 199, 0.2);
}

.category-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-hover);
}

.category-link .cat-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.07);
}

.category-link.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Download PDF Action Block in Sidebar (PDF Page 2) */
.pdf-download-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.btn-download-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--tax-green);
  color: #fff;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: var(--transition-fast);
  box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
  border: none;
  cursor: pointer;
}

.btn-download-pdf:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(22, 163, 74, 0.4);
}

.pdf-download-note {
  font-size: 0.72rem;
  color: #166534;
  margin-top: 0.75rem;
  line-height: 1.35;
  text-align: left;
}

/* Catalog Main Content */
.catalog-main {
  flex: 1;
  min-width: 0;
}

.catalog-top-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.catalog-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.catalog-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.badge-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ================= CATALOG PRICE SWITCHER (SEGMENTED TABS) ================= */
.catalog-price-switcher-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.switcher-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  display: none;
}

@media (min-width: 640px) {
  .switcher-bar-label {
    display: inline-block;
  }
}

.price-switcher-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-price-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-align: center;
}

.tab-price-item:hover {
  color: var(--text-main);
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color var(--transition-fast);
}

.dot-siplah { background: #00a2e8; }
.dot-pajak { background: #16a34a; }
.dot-offline { background: #ca8a04; }

.tab-price-item.tab-siplah.active {
  background: var(--siplah-blue);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 162, 232, 0.4);
}
.tab-price-item.tab-siplah.active .tab-dot {
  background: #ffffff;
}

.tab-price-item.tab-pajak.active {
  background: var(--tax-green);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}
.tab-price-item.tab-pajak.active .tab-dot {
  background: #ffffff;
}

.tab-price-item.tab-offline.active {
  background: var(--offline-yellow);
  color: #713f12 !important;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
}
.tab-price-item.tab-offline.active .tab-dot {
  background: #713f12;
}

/* Default desktop: mobile price choice box is hidden */
.mobile-price-choice-box,
.mobile-section-heading {
  display: none;
}

.btn-toggle-sidebar-desktop {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.btn-open-category-mobile {
  display: none; /* hidden by default on desktop */
}

.mobile-sheet-handle {
  display: none;
}

.btn-close-category-popup {
  display: none;
}

.category-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.category-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Search Bar (PDF Page 2: Cari produk, jasa dan toko di sini ctrl /) */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.85rem 3.5rem 0.85rem 2.8rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: #fff;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

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

.search-shortcut-badge {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  pointer-events: none;
}

/* ================= PRODUCT GRID ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-cat-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  margin-top: auto;
  margin-bottom: 0.65rem;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--admin-red);
  letter-spacing: -0.01em;
}

.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary-hover);
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.35);
}

/* ================= CART & CHECKOUT PAGES ================= */
.cart-checkout-container {
  max-width: 1000px;
  margin: 1.5rem auto 4rem;
  padding: 0 1.25rem;
  width: 100%;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .cart-layout {
    grid-template-columns: 1.8fr 1.2fr;
  }
}

.cart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  object-fit: cover;
  flex-shrink: 0;
}

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

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--admin-red);
  margin-top: 0.2rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-val {
  width: 36px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-remove-item {
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.btn-remove-item:hover {
  color: var(--admin-red);
  background: var(--admin-red-light);
}

/* ================= MOBILE BOTTOM NAVIGATION ================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0.5rem 0.65rem;
  z-index: 40;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

@media (min-width: 900px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  gap: 0.2rem;
  position: relative;
  transition: var(--transition-fast);
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

.mobile-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--admin-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
}

/* ================= TOASTS & ALERTS ================= */
#toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  animation: slideInUp 0.25s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================= ADMIN STYLES ================= */
.admin-layout-container {
  max-width: 1400px;
  margin: 1.5rem auto 4rem;
  padding: 0 1.25rem;
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
}

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

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  background: #fff;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-danger {
  background: var(--admin-red);
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
}

.btn-success {
  background: var(--tax-green);
  color: #fff;
}
.btn-success:hover {
  background: #15803d;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* ================= RESPONSIVE MOBILE CATEGORY POP-UP (MAX 899px) ================= */
@media (max-width: 899px) {
  .catalog-page-container {
    display: block !important;
    padding: 0.75rem 0.85rem 5.5rem !important;
    width: 100% !important;
  }

  .catalog-main {
    width: 100% !important;
    min-width: 100% !important;
  }

  /* Desktop button hidden on mobile */
  .btn-toggle-sidebar-desktop {
    display: none !important;
  }

  /* Mobile Category Button shown */
  .btn-open-category-mobile {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    background: #f0f9ff;
    border: 1.5px solid #0284c7;
    color: #0369a1;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
    transition: all 0.2s ease;
  }

  .btn-open-category-mobile:active {
    transform: scale(0.97);
    background: #0284c7;
    color: #fff;
  }

  /* Transform .category-sidebar into Fixed Mobile Bottom Sheet / Pop-up */
  .category-sidebar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 84vh !important;
    border-radius: 22px 22px 0 0 !important;
    z-index: 1050 !important;
    background: #ffffff !important;
    box-shadow: 0 -12px 35px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    padding: 0.65rem 1.25rem 2.5rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateY(105%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: block !important;
  }

  .category-sidebar.active-popup {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Sheet handle on top */
  .mobile-sheet-handle {
    display: block !important;
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 9999px;
    margin: 0.2rem auto 0.75rem !important;
  }

  /* Close button on top right of pop-up */
  .btn-close-category-popup {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .btn-close-category-popup:active {
    background: #fee2e2;
    color: #ef4444;
  }

  .desktop-toggle-hint {
    display: none !important;
  }

  .category-sidebar .category-link {
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  /* Mobile Price Choice Section inside Drawer Pop-up */
  .mobile-price-choice-box {
    display: block !important;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
  }

  .mobile-price-choice-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
  }

  .mobile-price-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .mobile-price-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .mobile-price-card:active {
    transform: scale(0.98);
  }

  .mobile-price-card .m-price-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .mobile-price-card .m-price-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
  }

  .mobile-price-card .m-price-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .badge-siplah {
    background: #e0f2fe;
    color: #0369a1;
  }

  .badge-pajak {
    background: #dcfce7;
    color: #15803d;
  }

  .badge-offline {
    background: #fef9c3;
    color: #854d0e;
  }

  .mobile-price-card.active-siplah {
    background: #f0f9ff;
    border-color: #00a2e8;
  }
  .mobile-price-card.active-siplah .m-price-title {
    color: #0284c7;
  }
  .mobile-price-card.active-siplah .m-price-check {
    color: #0284c7;
  }

  .mobile-price-card.active-pajak {
    background: #f0fdf4;
    border-color: #16a34a;
  }
  .mobile-price-card.active-pajak .m-price-title {
    color: #15803d;
  }
  .mobile-price-card.active-pajak .m-price-check {
    color: #15803d;
  }

  .mobile-price-card.active-offline {
    background: #fefce8;
    border-color: #ca8a04;
  }
  .mobile-price-card.active-offline .m-price-title {
    color: #854d0e;
  }
  .mobile-price-card.active-offline .m-price-check {
    color: #ca8a04;
  }

  .mobile-section-heading {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.65rem;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  .tab-word-harga {
    display: none !important;
  }
  .tab-price-item {
    font-size: 0.78rem;
    padding: 0.45rem 0.5rem;
  }
}
