/* ============================================================
   KPHRI — Toko / Marketplace Styles
   toko.css
   ============================================================ */

/* ─── Base Layout ────────────────────────────────────────── */
body { padding-top: 0; padding-bottom: 0; background: var(--bg); }
body:has(.toko-navbar), body.toko-page { padding-top: var(--topbar-h); }

@media (max-width: 768px) {
  body:has(.toko-navbar), body.toko-page { padding-bottom: 64px; }
}

/* ─── Navbar ─────────────────────────────────────────────── */
.toko-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 300;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.25rem;
  box-shadow: 0 2px 16px rgba(26,20,40,0.06);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
}

.navbar-logo-icon {
  width: 38px; height: 38px;
  background: var(--purple-800);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(106,27,154,0.2);
}

.navbar-logo-text { display: flex; flex-direction: column; }
.navbar-logo-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--purple-800);
  line-height: 1.1;
  white-space: nowrap;
}
.navbar-logo-sub {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Search bar */
.navbar-search {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
}

.navbar-search-form {
  display: flex;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  transition: all var(--t-base);
}

.navbar-search-form:focus-within {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(106,27,154,0.1);
  background: var(--surface);
}

.navbar-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5625rem 1.125rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  min-width: 0;
}

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

.navbar-search-btn {
  padding: 0.5rem 1.25rem;
  background: var(--purple-800);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: background var(--t-base);
  flex-shrink: 0;
}

.navbar-search-btn:hover { background: var(--purple-900); }

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.navbar-icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  transition: all var(--t-base);
}

.navbar-icon-btn:hover {
  background: var(--purple-50);
  border-color: var(--purple-400);
}

.navbar-cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--primary);
  color: white;
  font-size: 0.625rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
}

.navbar-user-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem 0.375rem 0.375rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t-base);
}

.navbar-user-btn:hover { background: var(--purple-50); border-color: var(--purple-400); }

.navbar-user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--purple-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.navbar-user-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Main Content ───────────────────────────────────────── */
.toko-main {
  min-height: calc(100vh - var(--topbar-h));
  background: var(--bg);
}

/* ─── Hero Banner ─────────────────────────────────────────── */
.hero-banner {
  background: #2D1052;
  border-radius: var(--r-2xl);
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,202,40,0.08);
  top: -250px; right: -100px;
}

.hero-banner::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -100px; left: 50px;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,202,40,0.2);
  border: 1px solid rgba(255,202,40,0.35);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.375rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-search {
  display: flex;
  max-width: 560px;
  background: rgba(255,255,255,0.98);
  border-radius: var(--r-full);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 0.9375rem 1.375rem;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--text-primary);
}
.hero-search input::placeholder { color: var(--text-muted); }

.hero-search-btn {
  padding: 0.9375rem 1.75rem;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 0.9375rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--t-base);
}
.hero-search-btn:hover { background: var(--primary-dark); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.25rem;
  position: relative;
  z-index: 1;
}

.hero-stat-item { text-align: left; }
.hero-stat-num { font-size: 1.625rem; font-weight: 900; color: #fff; }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 0.125rem; }

/* ─── Section ─────────────────────────────────────────────── */
.toko-section { padding: 2rem 1.5rem; }
.toko-section + .toko-section { padding-top: 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 0.875rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--purple-800);
  border-radius: var(--r-full);
}

.section-see-all {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--purple-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--t-base);
  white-space: nowrap;
}
.section-see-all:hover { color: var(--primary); }

/* ─── Category Strip ─────────────────────────────────────── */
.category-strip {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.category-strip::-webkit-scrollbar { display: none; }

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.125rem;
  border-radius: var(--r-xl);
  background: var(--bg-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
}

.category-chip:hover {
  background: var(--purple-50);
  border-color: var(--purple-400);
  transform: translateY(-2px);
}

.category-chip.active {
  background: var(--purple-800);
  border-color: var(--purple-800);
  color: white;
  box-shadow: var(--shadow-purple);
}

.category-chip-icon { font-size: 24px; }
.category-chip-name { font-size: 0.6875rem; font-weight: 700; }

/* ─── Product Grid ───────────────────────────────────────── */
.product-grid-toko {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.product-card-toko {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card-toko:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200);
}

.product-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  transition: all var(--t-slow);
  border-bottom: 1px solid var(--border);
}

.product-card-toko:hover .product-card-image { font-size: 68px; }

.product-discount-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--error);
  color: white;
  font-size: 0.625rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--r-full);
  box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}

.product-wishlist-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}
.product-wishlist-btn:hover { transform: scale(1.15); }
.product-wishlist-btn.active { background: var(--error-bg); }

.product-card-body {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-vendor-name {
  font-size: 0.6875rem;
  color: var(--purple-600);
  font-weight: 700;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-name {
  font-size: 0.84375rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  min-height: 2.4em;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
}

.product-card-stars { color: var(--yellow-dark); font-size: 12px; }
.product-card-rating-num { color: var(--text-secondary); font-weight: 600; }
.product-card-sold { color: var(--text-muted); }

.product-card-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-card-original-price {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-add-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.625rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  box-shadow: 0 4px 12px rgba(255,111,32,0.25);
}
.product-card-add-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ─── Cart Sidebar ───────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,40,0.55);
  z-index: 400;
  display: none;
  backdrop-filter: blur(3px);
}
.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 400px;
  height: 100vh;
  background: var(--surface);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  box-shadow: -8px 0 40px rgba(26,20,40,0.18);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-sidebar-title { font-size: 1.125rem; font-weight: 800; color: var(--text-primary); }
.cart-count-tag { background: var(--primary-bg); color: var(--primary); font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: var(--r-full); }

.cart-sidebar-close {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all var(--t-base);
}
.cart-sidebar-close:hover { background: var(--error-bg); color: var(--error); border-color: #FCA5A5; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}

.cart-item-image {
  width: 54px; height: 54px;
  border-radius: var(--r-lg);
  background: var(--purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.84375rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.cart-item-price { font-size: 0.9375rem; font-weight: 800; color: var(--primary); margin-top: 0.25rem; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.qty-btn {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: var(--purple-800);
  transition: all var(--t-base);
  line-height: 1;
}
.qty-btn:hover { background: var(--purple-100); border-color: var(--purple-500); }
.qty-btn.danger:hover { background: var(--error-bg); border-color: var(--error); color: var(--error); }

.qty-num { font-size: 0.875rem; font-weight: 800; min-width: 22px; text-align: center; }

.cart-sidebar-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.cart-checkout-btn {
  width: 100%;
  padding: 0.9375rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--r-lg);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-orange);
}
.cart-checkout-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ─── Catalog Page ───────────────────────────────────────── */
.catalog-layout {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: flex-start;
}

.filter-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
}

.filter-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.filter-card-header {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
}

.filter-card-body { padding: 0.875rem 1.25rem; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--t-base);
}

.filter-option:hover { color: var(--purple-800); }

.filter-option input[type=radio],
.filter-option input[type=checkbox] {
  accent-color: var(--purple-800);
  width: 16px; height: 16px;
  cursor: pointer;
}

.catalog-main { flex: 1; min-width: 0; }

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.catalog-result-count { font-size: 0.875rem; color: var(--text-secondary); }
.catalog-result-count strong { color: var(--text-primary); }

.sort-select {
  padding: 0.5625rem 2rem 0.5625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5472' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

/* ─── Product Detail ─────────────────────────────────────── */
.product-detail-page { padding: 2rem 1.5rem; }

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.product-detail-image {
  background: var(--bg-2);
  border-radius: var(--r-2xl);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 130px;
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
  box-shadow: var(--shadow-sm);
}

.product-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--success-bg);
  color: #15803D;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-full);
  margin-bottom: 0.875rem;
}

.product-detail-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.875rem;
}

.product-detail-vendor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-detail-price {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
}

.product-detail-original {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.product-detail-discount {
  background: var(--error);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}

.stock-info-item { display: flex; gap: 0.375rem; }
.stock-info-item strong { color: var(--text-primary); }

.qty-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.qty-picker-btn {
  width: 42px; height: 42px;
  border: none;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  color: var(--purple-800);
  transition: background var(--t-base);
}
.qty-picker-btn:hover { background: var(--purple-100); }

.qty-picker-input {
  width: 56px; height: 42px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--surface);
}

.product-detail-actions {
  display: flex;
  gap: 0.875rem;
}

.add-to-cart-btn {
  flex: 1;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--r-xl);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-orange);
}
.add-to-cart-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

.wishlist-btn-detail {
  width: 52px; height: 52px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all var(--t-base);
  flex-shrink: 0;
}
.wishlist-btn-detail:hover { border-color: var(--error); background: var(--error-bg); }
.wishlist-btn-detail.active { background: var(--error-bg); border-color: var(--error); }

/* Product Tabs */
.product-tabs { margin-top: 2rem; }

/* ─── Checkout ───────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  align-items: start;
}

.checkout-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-method-options { display: flex; flex-direction: column; gap: 0.75rem; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: all var(--t-base);
}

.payment-option:hover { border-color: var(--purple-400); }
.payment-option.selected { border-color: var(--purple-800); background: var(--purple-50); }

.payment-option input[type=radio] { accent-color: var(--purple-800); width: 18px; height: 18px; }
.payment-option-icon { font-size: 26px; }
.payment-option-label { font-weight: 700; font-size: 0.9375rem; color: var(--text-primary); }
.payment-option-desc { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* Order Summary Card */
.order-summary-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
  box-shadow: var(--shadow-sm);
}

.order-summary-header {
  padding: 1.125rem 1.5rem;
  background: var(--purple-800);
  color: white;
}

.order-summary-title { font-size: 1rem; font-weight: 800; }

.order-summary-items { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.375rem 0;
  gap: 0.75rem;
}

.order-summary-item .item-name { color: var(--text-secondary); flex: 1; }
.order-summary-item .item-price { font-weight: 700; color: var(--text-primary); flex-shrink: 0; }

.order-summary-totals { padding: 1rem 1.5rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.25rem 0;
  color: var(--text-secondary);
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--text-primary);
  padding: 0.875rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.place-order-btn {
  width: 100%;
  padding: 1.125rem;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-orange);
}
.place-order-btn:hover { background: var(--primary-dark); }

/* ─── Member Profile ─────────────────────────────────────── */
.member-card-digital {
  background: #2D1052;
  border-radius: var(--r-2xl);
  padding: 1.75rem;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-purple);
}

.member-card-digital::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,202,40,0.12);
  top: -80px; right: -40px;
}

.member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.member-card-logo { font-size: 30px; }
.member-card-type {
  font-size: 0.75rem;
  background: rgba(255,202,40,0.25);
  border: 1px solid rgba(255,202,40,0.4);
  color: var(--yellow);
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-full);
  font-weight: 700;
}

.member-card-no {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.member-card-name {
  font-size: 1.375rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.member-card-stats {
  display: flex;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.member-card-stat-label { font-size: 0.6875rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.member-card-stat-val   { font-size: 1.125rem; font-weight: 900; color: white; }

/* ─── Bottom Navigation (Mobile) ────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 250;
  box-shadow: 0 -4px 16px rgba(26,20,40,0.08);
}

.bottom-nav-inner {
  display: flex;
  height: 100%;
  width: 100%;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--t-base);
  padding: 0;
  position: relative;
}

.bottom-nav-item .nav-emoji { font-size: 20px; }
.bottom-nav-item.active { color: var(--purple-800); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .product-grid-toko { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
  .product-grid-toko { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; position: static; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-image { position: static; height: 300px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
}

@media (max-width: 768px) {
  .toko-navbar { padding: 0 1rem; }
  .navbar-search { display: none; }
  .navbar-logo-sub { display: none; }
  .navbar-user-name { display: none; }
  .bottom-nav { display: flex; }
  .product-grid-toko { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .toko-section { padding: 1.25rem 1rem; }
  .catalog-layout { padding: 1rem; }
  .hero-title { font-size: 1.75rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-banner { padding: 2.25rem 1.25rem; }
  .cart-sidebar { width: 100%; }
}

@media (max-width: 480px) {
  .product-grid-toko { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
  .product-card-image { height: 140px; font-size: 48px; }
  .hero-title { font-size: 1.5rem; }
  .hero-search { flex-direction: column; border-radius: var(--r-xl); }
  .hero-search input { width: 100%; }
  .hero-search-btn { border-radius: 0 0 var(--r-xl) var(--r-xl); width: 100%; justify-content: center; }
}
