/* Shukoh Store Design Tokens */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --theme-transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                      color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                      border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                      box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Mode Terang (Light Theme) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-input: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --border-subtle: #e2e8f0;
  --border-focus: #0f172a;
  
  --brand-primary: #0f172a;
  --brand-primary-hover: #1e293b;
  --brand-primary-text: #ffffff;
  
  --brand-accent: #2563eb;
  --brand-accent-hover: #1d4ed8;
  --brand-accent-text: #ffffff;
  
  --status-pending-bg: #fef3c7;
  --status-pending-text: #92400e;
  --status-success-bg: #dcfce7;
  --status-success-text: #166534;
  --status-info-bg: #e0f2fe;
  --status-info-text: #075985;
  --status-danger-bg: #fee2e2;
  --status-danger-text: #991b1b;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

[data-theme="dark"] {
  /* Mode Gelap (Dark Theme) - Disesuaikan dengan Warna Logo Shukoh Store */
  --bg-page: #000000;
  --bg-surface: #0a0e17;
  --bg-card: #0f1626;
  --bg-hover: #172238;
  --bg-input: #080c14;
  
  --text-main: #e8edf3;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-subtle: #192336;
  --border-focus: #4882fd;
  
  --brand-primary: #e8edf3;
  --brand-primary-hover: #ffffff;
  --brand-primary-text: #000000;
  
  --brand-accent: #4882fd;
  --brand-accent-hover: #3b74e6;
  --brand-accent-text: #ffffff;
  
  --status-pending-bg: #3c2a12;
  --status-pending-text: #fde68a;
  --status-success-bg: #143823;
  --status-success-text: #86efac;
  --status-info-bg: #0c2e47;
  --status-info-text: #7dd3fc;
  --status-danger-bg: #3f191b;
  --status-danger-text: #fca5a5;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

a[href], button, summary, select, label[for], input[type="checkbox"], input[type="radio"] {
  cursor: pointer;
}

button:disabled, input:disabled, select:disabled, textarea:disabled {
  cursor: not-allowed;
}

html, body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: var(--theme-transition);
}

.site-header,
.compact-hero-banner,
.compact-card,
.compact-body,
.product-card,
.sidebar-panel,
.sub-bar,
.category-tag,
.search-box,
.stat-card,
.table-card,
.order-card,
.form-input,
.modal-box,
.floating-cart-pill,
.floating-wa-btn {
  transition: var(--theme-transition);
}

/* Modern View Transitions API Smooth Cross-Fade */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Micro-interaction Tombol Ganti Tema */
.theme-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background-color 0.35s ease, 
              border-color 0.35s ease, 
              box-shadow 0.35s ease;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--brand-accent);
  box-shadow: 0 0 12px rgba(72, 130, 253, 0.25);
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

.theme-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.theme-icon-wrap.is-sun {
  animation: themeIconSpin 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-icon-wrap.is-moon {
  animation: themeIconSpin 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes themeIconSpin {
  0% {
    transform: rotate(-90deg) scale(0.5);
    opacity: 0.3;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html,
  body,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    transition: none !important;
    animation: none !important;
  }
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--border-focus);
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Panel */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 44px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-fallback-badge {
  width: 38px;
  height: 38px;
  background-color: var(--brand-primary);
  color: var(--brand-primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  border-radius: 8px;
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

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

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.header-btn:hover {
  background-color: var(--bg-hover);
}

.icon-only-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.icon-only-btn:hover {
  background-color: var(--bg-hover);
}

/* Sidebar Drawer */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.sidebar-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  width: 330px;
  max-width: 88vw;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-panel.active {
  transform: translateX(0);
}

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

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.sidebar-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-close-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-focus);
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sidebar-nav-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-subtle);
}

.sidebar-nav-item.active {
  background-color: var(--brand-primary);
  color: var(--brand-primary-text);
  font-weight: 600;
  border-color: transparent;
}

.sidebar-nav-item.danger {
  color: #ef4444;
}

.sidebar-support-card {
  margin-top: 18px;
  padding: 14px 16px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.sidebar-support-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sidebar-support-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-support-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sidebar-support-btn:hover {
  border-color: var(--border-focus);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-theme-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sidebar-theme-quick-btn:hover {
  background-color: var(--bg-hover);
}

/* Secondary Action Bar (Search, Cart, Type Filter) */
.sub-bar {
  padding: 24px 0 16px 0;
}

.sub-bar-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

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

.search-input {
  padding-left: 42px;
  height: 44px;
}

.type-selector-group {
  display: flex;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.type-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.type-btn.active {
  background-color: var(--brand-primary);
  color: var(--brand-primary-text);
  font-weight: 600;
}

.cart-action-btn {
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  position: relative;
}

.cart-action-btn:hover {
  background-color: var(--bg-hover);
}

.cart-badge {
  background-color: var(--brand-primary);
  color: var(--brand-primary-text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}

/* Category Pills Bar */
.category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: thin;
}

.category-pill {
  white-space: nowrap;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 99px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.category-pill:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.category-pill.active {
  background-color: var(--text-main);
  border-color: var(--text-main);
  color: var(--bg-surface);
  font-weight: 600;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: var(--bg-hover);
  overflow: hidden;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-main);
}

.product-card-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--brand-primary);
  color: var(--brand-primary-text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.add-btn:hover {
  opacity: 0.9;
}

/* Empty State */
.empty-state-box {
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  margin: 32px 0;
}

.empty-state-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-primary);
  color: var(--brand-primary-text);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}

.secondary-btn:hover {
  background-color: var(--bg-hover);
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-badge.pending {
  background-color: var(--status-pending-bg);
  color: var(--status-pending-text);
}

.status-badge.processing {
  background-color: var(--status-info-bg);
  color: var(--status-info-text);
}

.status-badge.shipped {
  background-color: var(--status-info-bg);
  color: var(--status-info-text);
}

.status-badge.completed {
  background-color: var(--status-success-bg);
  color: var(--status-success-text);
}

.status-badge.cancelled {
  background-color: var(--status-danger-bg);
  color: var(--status-danger-text);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Tables */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

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

.data-table th {
  background-color: var(--bg-hover);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sub-bar-grid {
    grid-template-columns: 1fr;
  }
  .type-selector-group {
    justify-content: center;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
}

/* Storefront Components */

/* 1. Compact Hero Store Banner */
.compact-hero-banner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--theme-transition);
}

.compact-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.compact-hero-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.compact-hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
  margin: 0;
}

.compact-hero-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.compact-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  background-color: var(--bg-hover);
  color: var(--brand-accent);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.compact-live-badge.closed {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
  background-color: rgba(239, 68, 68, 0.08);
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
}

.hero-live-dot.closed {
  background-color: #ef4444;
}

/* Integrated Search & 2-Tab Filter Row */
.compact-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compact-search-input-wrap {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.compact-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.compact-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.compact-search-input:focus {
  border-color: var(--brand-accent);
  background-color: var(--bg-surface);
}

/* 2 Main Tabs Switcher */
.two-tabs-container {
  display: inline-flex;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.two-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.two-tab-btn:hover {
  color: var(--text-main);
}

.two-tab-btn.active {
  background-color: var(--brand-accent);
  color: #ffffff;
}

.compact-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.compact-cart-btn:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* 2. Compact Floating Product Cards */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 60px;
}

.compact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.compact-img-wrap {
  position: relative;
  width: 100%;
  height: 155px;
  background-color: var(--bg-hover);
  overflow: hidden;
}

.compact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.compact-card:hover .compact-img {
  transform: scale(1.03);
}

.compact-badge-type {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--bg-surface);
  color: var(--brand-accent);
  border: 1px solid var(--border-subtle);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.compact-badge-deliv {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.compact-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 8px;
}

.compact-category {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.compact-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand-accent);
  letter-spacing: -0.2px;
}

.compact-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.compact-add-btn:hover {
  background-color: var(--brand-accent);
  color: #ffffff;
  border-color: var(--brand-accent);
}

/* 3. Floating Action Pills */
.floating-cart-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--brand-accent);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease;
}

.floating-cart-pill:hover {
  transform: translateY(-2px);
}

.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #16a34a;
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease;
}

.floating-wa-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compact-img-wrap {
    height: 125px;
  }
  .compact-body {
    padding: 10px 8px;
  }
  .compact-title {
    font-size: 12.5px;
  }
  .compact-price {
    font-size: 13px;
  }
  .floating-wa-btn span {
    display: none;
  }
  .floating-wa-btn {
    padding: 12px;
  }
}

/* Live Chat Interface */
.chat-window-card {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 680px;
}

.chat-room-header {
  background-color: #075e54;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #128c7e;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.chat-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #d1fae5;
  margin-top: 2px;
}

.chat-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.chat-header-wa-btn {
  background-color: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.chat-header-wa-btn:hover {
  opacity: 0.92;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #efeae2;
}

[data-theme='dark'] .chat-messages-container {
  background-color: #0b141a;
}

.chat-date-badge {
  align-self: center;
  background-color: rgba(255, 255, 255, 0.85);
  color: #54656f;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme='dark'] .chat-date-badge {
  background-color: #182229;
  color: #8696a0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Chat Bubbles */
.chat-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.chat-row-customer {
  align-items: flex-end;
}

.chat-row-admin {
  align-items: flex-start;
}

.chat-bubble {
  max-width: 82%;
  padding: 9px 12px 6px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  word-break: break-word;
  position: relative;
}

.chat-bubble-customer {
  background-color: #d9fdd3;
  color: #111b21;
  border-top-right-radius: 2px;
}

[data-theme='dark'] .chat-bubble-customer {
  background-color: #005c4b;
  color: #e9edef;
}

.chat-bubble-admin {
  background-color: #ffffff;
  color: #111b21;
  border-top-left-radius: 2px;
}

[data-theme='dark'] .chat-bubble-admin {
  background-color: #202c33;
  color: #e9edef;
}

.chat-sender-name {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #128c7e;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme='dark'] .chat-sender-name {
  color: #53bdeb;
}

.chat-admin-badge {
  background-color: #128c7e;
  color: #ffffff;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.chat-message-text {
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 10.5px;
  color: #667781;
  margin-top: 4px;
}

[data-theme='dark'] .chat-meta {
  color: #8696a0;
}

.chat-meta-check {
  color: #53bdeb;
  display: inline-flex;
}

/* User Identity Bar (Top of Input) */
.chat-identity-bar {
  background-color: var(--bg-hover);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.chat-identity-edit-btn {
  background: none;
  border: none;
  color: var(--text-brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
}

.chat-identity-edit-btn:hover {
  text-decoration: underline;
}

/* Chat Input Bar */
.chat-input-bar {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input-field {
  flex: 1;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13.5px;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.chat-input-field:focus {
  border-color: #128c7e;
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #128c7e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.chat-send-btn:hover:not(:disabled) {
  background-color: #075e54;
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* User Identity Setup Box */
.chat-identity-form {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: flex-end;
}

@media (max-width: 640px) {
  .chat-window-card {
    height: calc(100vh - 180px);
    min-height: 460px;
    border-radius: var(--radius-sm);
  }
  .chat-identity-form {
    grid-template-columns: 1fr;
  }
  .chat-header-wa-btn span {
    display: none;
  }
  .chat-bubble {
    max-width: 90%;
  }
}

/* Smooth Page Transitions */
.page-transition-wrap {
  animation: pageFadeSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@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;
  }
}

/* Admin Navigation Tabs */
.admin-tabs-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tabs-container::-webkit-scrollbar {
  display: none;
}

.admin-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-tab-item:hover {
  color: var(--text-main);
  background-color: var(--bg-hover);
}

.admin-tab-item.active {
  color: var(--brand-primary-text);
  background-color: var(--brand-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.admin-tab-item.active .admin-tab-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--brand-primary-text);
}