.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.category-pill {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #374151;
  white-space: nowrap;
}
.category-pill.active {
  background-color: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #6b7280;
  transition: color 0.2s ease-in-out;
  padding: 0.25rem 0.75rem;
  min-width: 3.2rem;
  gap: 0.15rem;
}

nav[aria-label="Navigasi utama"] > div {
  gap: 1.25rem;
  padding: 0.65rem 1.35rem 1rem;
}

nav[aria-label="Navigasi utama"] > div > a:nth-of-type(2):not(.nav-center-fab) {
  padding-right: 1rem;
  margin-right: 1rem
}

nav[aria-label="Navigasi utama"] > div > a:nth-of-type(4):not(.nav-center-fab) {
  padding-left: 1rem;
}

.nav-item.active {
  color: #16a34a;
  font-weight: 600;
}

body[data-page="profile"] nav,
body[data-page^="seller"] nav {
  padding-left: 1rem;
  padding-right: 1rem;
}

body[data-page="profile"] nav .nav-item,
body[data-page^="seller"] nav .nav-item,
body[data-page="profile"] nav .nav-item.group,
body[data-page^="seller"] nav .nav-item.group {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

body[data-page="profile"] nav .nav-item:nth-child(2),
body[data-page^="seller"] nav .nav-item:nth-child(2) {
  margin-left: -0.4rem;
}

body[data-page="profile"] nav .nav-item:nth-child(4),
body[data-page^="seller"] nav .nav-item:nth-child(4) {
  margin-right: -0.4rem;
}

/* Center FAB Button */
.nav-center-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
  transition: all 0.2s ease-in-out;
  bottom: 3rem;
}

.nav-center-fab:hover {
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.45);
  transform: translateX(-50%) scale(1.05);
}

.nav-center-fab:active {
  transform: translateX(-50%) scale(0.95);
}

.form-input {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.form-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  background-color: #ecfdf3;
  color: #15803d;
}

.card-hover {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.12);
}

.slider-track {
  will-change: transform;
}

/* Auth Tabs */
.role-tab {
  background: #f3f4f6;
  color: #6b7280;
  border: 2px solid transparent;
}

.role-tab.active {
  background: #22c55e;
  color: white;
  border-color: #16a34a;
}

.auth-mode-tab {
  background: transparent;
  color: #6b7280;
}

.auth-mode-tab.active {
  background: white;
  color: #16a34a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dashboard Tabs */
.dashboard-tab {
  transition: all 0.2s;
}

.dashboard-tab.active {
  color: #16a34a;
  border-bottom-color: #16a34a;
}

/* Info Tabs */
.info-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  white-space: nowrap;
  transition: all 0.2s;
}

.info-tab.active {
  background: #22c55e;
  color: white;
}

/* Dashboard Tabs */
.dashboard-tab {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  pointer-events: auto;
  position: relative;
}

.dashboard-tab.active {
  color: #16a34a !important;
}

.dashboard-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #22c55e;
}

.dashboard-tab-content {
  animation: fadeIn 0.2s ease-in-out;
}

.dashboard-tab-content.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: slideInRight 0.3s ease-out;
}

.toast.toast-exit {
  animation: slideOutRight 0.3s ease-out forwards;
}

.toast-success {
  border-left: 4px solid #22c55e;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.toast-content {
  flex: 1;
  font-size: 0.875rem;
  color: #374151;
}

.toast-close {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.15s;
}

.toast-close:hover {
  color: #374151;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-lg {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
  animation: scaleIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Ripple Effect for Mobile */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 200px;
  height: 200px;
}

/* Button Enhancements */
button, a[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Smooth Transitions (scoped, not global) */
button,
a,
input,
textarea,
select,
.card-hover,
.category-pill,
.nav-item,
.favorite-btn {
  transition-property: background-color, border-color, color, transform, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-in-out;
}

/* Improved touch targets */
.nav-item {
  min-height: 44px;
  min-width: 44px;
}

.nav-item svg {
  margin-bottom: 0;
}

.category-pill {
  min-height: 32px;
  padding: 0.375rem 1rem;
}

/* Image loading placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}

/* ============================================
   MULTI-SELLER SPECIFIC COMPONENTS
   ============================================ */

/* Favorite Heart Button */
.favorite-btn {
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.favorite-btn svg {
  transition: all 0.2s;
}

.favorite-btn.active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.favorite-btn:hover {
  background: #f3f4f6;
}

.favorite-btn:active {
  transform: scale(0.9);
}

.favorite-btn.active {
  animation: heartbeat 0.3s ease-in-out;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Rating Stars (REMOVED) */

/* Filter Panel */
.filter-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 9999;
}

.filter-panel.active {
  transform: translateY(0);
}

.filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.filter-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Price Range Slider */
.price-range-slider {
  position: relative;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
}

.price-range-fill {
  position: absolute;
  height: 100%;
  background: #22c55e;
  border-radius: 2px;
}

.price-range-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border: 3px solid #22c55e;
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Voucher Input */
.voucher-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
}

.voucher-input-group input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  outline: none;
}

.voucher-input-group button {
  padding: 0.75rem 1.5rem;
  background: #22c55e;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.voucher-input-group button:hover {
  background: #16a34a;
}

.voucher-applied {
  background: #ecfdf5;
  border: 1px dashed #22c55e;
  padding: 0.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: between;
}

/* Order Status Timeline */
.status-timeline {
  position: relative;
  padding-left: 2rem;
}

.status-step {
  position: relative;
  padding-bottom: 2rem;
}

.status-step:last-child {
  padding-bottom: 0;
}

.status-step::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.375rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid #e5e7eb;
}

.status-step.active::before {
  background: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.status-step::after {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 1rem;
  width: 2px;
  height: calc(100% - 0.5rem);
  background: #e5e7eb;
}

.status-step:last-child::after {
  display: none;
}

.status-step.active::after {
  background: #22c55e;
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
  animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Promo Badge */
.promo-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Seller Badge */
.seller-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.seller-badge.verified {
  background: #dbeafe;
  color: #1e40af;
}

.seller-badge.partner {
  background: #fef3c7;
  color: #92400e;
}

/* Image Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Tabs */
.favorite-tab {
  transition: all 0.2s;
}

.favorite-tab.active {
  color: #16a34a;
  border-color: #16a34a;
}

/* Admin Panel */
.admin-nav-item {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  color: #4b5563;
}

.admin-nav-item.active {
  background-color: #ecfdf3;
  color: #16a34a;
  font-weight: 600;
}

/* Search History */
.search-history {
  background: white;
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
}

.search-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.search-history-item:hover {
  background: #f9fafb;
}

/* Dietary Badges (REMOVED) */
