/* ==========================================================================
   Sistem Inventaris Produk - Modern CRUD Website
   Variabel CSS, Reset, Tema (Light/Dark), & Desain Responsif
   ========================================================================== */

:root {
  /* Palet Warna - Light Theme (Default) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #ee4d2d;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --primary: #ee4d2d;
  --primary-hover: #d73211;
  --primary-light: #fef2f0;
  --primary-text: #ee4d2d;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-text: #047857;

  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-text: #b45309;

  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-text: #b91c1c;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Palet Warna - Dark Theme */
  --bg-body: #0b0f17;
  --bg-surface: #131b2e;
  --bg-surface-alt: #1e293b;
  --border-color: #24344d;
  --border-focus: #ff6e40;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --primary: #ff5722;
  --primary-hover: #ee4d2d;
  --primary-light: rgba(238, 77, 45, 0.2);
  --primary-text: #ff8a65;

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --success-text: #6ee7b7;

  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --warning-text: #fcd34d;

  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --danger-text: #fca5a5;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.5);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.brand-info h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons & Icons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--border-focus);
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.btn-icon:hover {
  color: var(--text-main);
  background-color: var(--bg-surface-alt);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Stat Cards Section
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

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

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

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

.stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.amber { background: var(--warning-bg); color: var(--warning); }
.stat-icon.purple { background: rgba(147, 51, 234, 0.12); color: #9333ea; }

.stat-content h3 {
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

/* ==========================================================================
   Main Content & Controls Bar
   ========================================================================== */
.content-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.toolbar {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 280px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

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

.search-input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.35rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.select-input {
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
  transition: var(--transition);
}

.select-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: var(--bg-surface);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  color: var(--primary-text);
}

/* ==========================================================================
   Table Section
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th {
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  user-select: none;
  white-space: nowrap;
}

.data-table th.sortable {
  cursor: pointer;
  transition: var(--transition);
}

.data-table th.sortable:hover {
  color: var(--text-main);
}

.sort-indicator {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.4;
}

.sort-indicator.active {
  opacity: 1;
  color: var(--primary);
}

.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
  background-color: var(--bg-surface-alt);
}

.data-table tbody tr.selected {
  background-color: var(--primary-light);
}

/* Table Cells Formatting */
.product-cell,
.product-name-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.product-thumb-container,
.product-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-thumb-container:hover,
.product-avatar:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.25);
}

.product-thumb,
.product-thumb-container img,
.product-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: cover !important;
  border-radius: calc(var(--radius-md) - 1px);
  display: block;
}

.product-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.product-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-word;
}

.product-sku,
.product-code {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  line-height: 1.25;
}

.price-cell {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stock-cell {
  font-variant-numeric: tabular-nums;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
}

.badge-in-stock {
  background-color: var(--success-bg);
  color: var(--success-text);
}

.badge-low-stock {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}

.badge-out-of-stock {
  background-color: var(--danger-bg);
  color: var(--danger-text);
}

.badge-category {
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-weight: 500;
}

/* Action Buttons inside Table */
.table-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-table-action {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-table-action:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-table-action.edit:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  background: var(--primary-light);
}

.btn-table-action.delete:hover {
  color: var(--danger);
  border-color: var(--danger-bg);
  background: var(--danger-bg);
}

.btn-table-action svg {
  width: 1rem;
  height: 1rem;
}

/* Custom Checkbox */
.custom-checkbox {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  color: var(--text-light);
}

.empty-state h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.empty-state p {
  font-size: 0.875rem;
  max-width: 400px;
  margin: 0 auto 1.25rem;
}

/* ==========================================================================
   Pagination Footer
   ========================================================================== */
.pagination-container {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
  background: var(--bg-surface-alt);
  border-color: var(--border-focus);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

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

/* ==========================================================================
   Modal Dialog (<dialog>)
   ========================================================================== */
dialog.modal {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  width: 90%;
  margin: auto;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

dialog.modal[open] {
  opacity: 1;
  transform: scale(1);
}

dialog.modal::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

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

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Form Groups inside Modal */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-feedback {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 1rem;
  display: none;
}

.form-group.has-error .form-feedback {
  display: block;
}

.form-group.has-error .form-control {
  border-color: var(--danger);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  min-width: 280px;
  max-width: 400px;
  font-size: 0.875rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.hiding {
  opacity: 0;
  transform: translateX(100%);
}

.toast-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.toast-success {
  border-left: 4px solid var(--success);
}
.toast-success .toast-icon { color: var(--success); }

.toast-error {
  border-left: 4px solid var(--danger);
}
.toast-error .toast-icon { color: var(--danger); }

.toast-info {
  border-left: 4px solid var(--primary);
}
.toast-info .toast-icon { color: var(--primary); }

.toast-message {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: var(--text-main);
}

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

/* ==========================================================================
   Image Upload & Preview Styles
   ========================================================================== */
.image-upload-wrapper {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0.75rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.image-preview-box {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-color);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition);
}

.image-preview-box.has-image {
  border-style: solid;
  border-color: var(--border-focus);
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-placeholder {
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.25rem;
}

.image-preview-placeholder svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--text-muted);
}

.btn-remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: var(--transition);
}

.btn-remove-photo:hover {
  background: var(--danger);
  transform: scale(1.1);
}

.image-upload-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.photo-mode-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
}

.photo-tab-btn {
  background: none;
  border: none;
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.photo-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.photo-tab-btn.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.upload-file-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.upload-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  width: fit-content;
  transition: var(--transition);
}

.upload-btn-label:hover {
  background: var(--primary-light);
  border-color: var(--border-focus);
  color: var(--primary);
}

.upload-hint {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
dialog.lightbox-modal {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 90%;
  margin: auto;
  padding: 0;
  overflow: hidden;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 380px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.lightbox-footer {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Navigation Mode Switcher (Toko Publik vs Panel Admin)
   ========================================================================== */
.nav-mode-switcher {
  display: inline-flex;
  background: var(--bg-surface-alt);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  gap: 0.25rem;
}

.nav-mode-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.nav-mode-btn:hover {
  color: var(--text-main);
}

.nav-mode-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Storefront (Toko Online Publik)
/* ==========================================================================
   Minimalist Search Bar (Shopee Style)
   ========================================================================== */
.minimal-search-section {
  margin: 1.25rem 0 1rem;
}

.minimal-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.45rem 0.35rem 1.25rem;
  box-shadow: 0 4px 14px rgba(238, 77, 45, 0.12);
  transition: var(--transition);
  max-width: 780px;
  margin: 0 auto;
}

.minimal-search-bar:focus-within {
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.22);
  border-color: var(--primary-hover);
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.search-input-icon {
  color: var(--primary);
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.minimal-search-input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  width: 100%;
  font-family: inherit;
}

.minimal-search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  margin: 0 0.5rem;
}

.minimal-category-select {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  max-width: 160px;
  font-family: inherit;
}

.minimal-category-select:focus {
  color: var(--primary);
}

.btn-shopee-search {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-shopee-search:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.35);
}

/* ==========================================================================
   Marketplace Promotional Hero Banners (Slider Carousel + 2 Side Banners)
   ========================================================================== */
.marketplace-banners-section {
  margin: 1.25rem 0 2rem;
}

.marketplace-banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

/* Kolom Kiri: Slider Carousel */
.promo-slider-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-surface-alt);
  min-height: 260px;
  height: 100%;
}

.promo-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.promo-slide-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.promo-slide-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.promo-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 1.25rem 1.5rem 2.25rem;
  color: #ffffff;
}

.promo-slide-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Tombol Panah Navigasi Slider */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.promo-slider-container:hover .slider-arrow-btn {
  opacity: 1;
}

.slider-arrow-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
  left: 12px;
}

.slider-arrow-next {
  right: 12px;
}

/* Titik Indikator Slider (Dots) */
.slider-dots-container {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.slider-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: var(--radius-full);
}

/* Kolom Kanan: 2 Banner Samping (Stacked) */
.promo-side-banners {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.side-banner-card {
  flex: 1;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: block;
  text-decoration: none;
  background: var(--bg-surface-alt);
  min-height: 125px;
}

.side-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.side-banner-card:hover .side-banner-img {
  transform: scale(1.04);
}

.side-banner-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(238, 77, 45, 0.9);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Banner Footer Features (Ala Shopee: Produk Lokal, Gratis Ongkir, Garansi Ori) */
.marketplace-features-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 0.85rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Admin: Kelola Banner & Promosi CSS
   ========================================================================== */
.banner-manager-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.banner-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface-alt);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.banner-item-thumb {
  width: 120px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

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

.banner-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 0.25rem;
}

.banner-item-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.side-banner-edit-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.side-banner-preview-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
}

.storefront-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.store-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.store-card-img-wrap {
  width: 100%;
  height: 190px;
  background: var(--bg-surface-alt);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.store-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.store-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.store-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.store-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.store-card-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-card-price-original {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  margin-top: 1px;
}

.price-strikethrough {
  text-decoration: line-through;
  color: var(--text-muted);
}

.discount-percent-tag {
  background: rgba(238, 77, 45, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 3px;
}

.store-card-discount-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(238, 77, 45, 0.4);
  letter-spacing: 0.02em;
}

.store-card-stock {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Checkout Modal & Summary
   ========================================================================== */
.checkout-item-summary {
  display: flex;
  gap: 1rem;
  background: var(--bg-surface-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  align-items: center;
}

.checkout-item-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item-details {
  flex: 1;
}

.checkout-item-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

.qty-stepper button {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.qty-stepper button:hover {
  background: var(--bg-surface-alt);
}

.qty-stepper input {
  width: 38px;
  height: 28px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-main);
}

.payment-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.payment-method-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-method-badge {
  background: #dc2626;
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   QRIS Midtrans Modal
   ========================================================================== */
.qris-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: 380px;
  margin: 0 auto;
}

.qris-header-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ef4444;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.qris-logo-text {
  font-weight: 900;
  font-size: 1.5rem;
  color: #dc2626;
  letter-spacing: -0.05em;
}

.qris-badge-national {
  font-size: 0.7rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.qris-merchant-info {
  margin-bottom: 1rem;
}

.qris-merchant-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
}

.qris-nmID {
  font-size: 0.75rem;
  color: #64748b;
}

.qris-qr-wrapper {
  background: #ffffff;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 0.5rem auto 1rem;
  position: relative;
}

.qris-qr-image {
  width: 210px;
  height: 210px;
  display: block;
  image-rendering: pixelated;
}

.qris-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.qris-amount-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}

.qris-amount-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
}

.qris-amount-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================================
   Digital Invoice Modal
   ========================================================================== */
.invoice-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

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

.invoice-badge-paid {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  border-top: 2px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   Help & Information Box
   ========================================================================== */
.info-callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Admin Navigation Tabs & Layout
   ========================================================================== */
.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: var(--text-main);
  font-weight: 500;
}

.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  scrollbar-width: thin;
}

.admin-tab-btn {
  border: none;
  background: transparent;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition);
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-alt);
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

.admin-tab-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.admin-tab-pane {
  display: none;
  animation: fadeInPane 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-tab-pane.active {
  display: block;
}

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

/* ==========================================================================
   User Management & Roles
   ========================================================================== */
.badge-role-admin {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
  border: 1px solid rgba(147, 51, 234, 0.25);
  font-weight: 700;
}

.badge-role-staff {
  background: var(--primary-light);
  color: var(--primary-text);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-weight: 600;
}

/* ==========================================================================
   Store Settings & Logo Preview
   ========================================================================== */
.store-settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  max-width: 780px;
}

.store-logo-upload-wrap {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.store-logo-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-color);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.store-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Admin Login Modal
   ========================================================================== */
.login-header-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.login-credentials-hint {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

[data-theme="dark"] .login-credentials-hint {
  background: rgba(22, 101, 52, 0.2);
  border-color: rgba(22, 101, 52, 0.4);
  color: #86efac;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.admin-portal-link {
  transition: var(--transition);
}

.admin-portal-link:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}


/* ==========================================================================
   Midtrans Onboarding Compliance: Header Nav, Terms & Conditions, Contact Us
   ========================================================================== */

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 0 1.5rem;
}

.nav-link,
.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.nav-link:hover,
.nav-link-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-color: rgba(37, 99, 235, 0.15);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}

.modal-lg {
  max-width: 780px !important;
  width: 92%;
}

.terms-body {
  max-height: 68vh;
  overflow-y: auto;
  padding: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-main);
}

.compliance-highlight-banner {
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.terms-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.terms-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.terms-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.terms-section p {
  margin: 0;
  color: var(--text-muted);
}

.terms-section ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
  color: var(--text-muted);
}

.terms-section li {
  margin-bottom: 0.4rem;
}

.terms-section li strong {
  color: var(--text-main);
}

/* Contact Us Modal Layout */
.contact-body {
  padding: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.contact-info-panel {
  background: var(--bg-surface-alt);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.badge-verified-merchant {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

[data-theme="dark"] .badge-verified-merchant {
  background: rgba(6, 95, 70, 0.25);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.3);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  padding-top: 0.15rem;
}

.contact-item-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.contact-item-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.4;
}

.contact-clickable-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-clickable-link:hover {
  text-decoration: underline;
}

.contact-action-shortcuts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.btn-whatsapp {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #15803d !important;
}

.contact-form-panel {
  display: flex;
  flex-direction: column;
}

/* Compliance box in checkout */
.checkout-compliance-box {
  margin-top: 0.85rem;
  background: var(--bg-surface-alt);
  border: 1px dashed var(--border-color);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
}

.checkout-compliance-text {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.btn-link-inline {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.btn-link-inline:hover {
  color: var(--primary-hover);
}

/* Footer nav links */
.footer-nav-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: var(--transition);
}

.footer-nav-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .site-nav {
    margin: 0;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .marketplace-banner-grid {
    grid-template-columns: 1fr;
  }
  .banner-manager-grid {
    grid-template-columns: 1fr;
  }
  .minimal-search-bar {
    border-radius: var(--radius-md);
    padding: 0.35rem 0.5rem;
  }
  .search-divider,
  .minimal-category-select {
    display: none;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    flex-direction: column;
  }
  .toolbar-actions {
    justify-content: space-between;
  }
  .pagination-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .pagination-controls {
    justify-content: center;
  }
}

/* ==========================================================================
   Watermark Toko & Komponen Produk Digital Styling
   ========================================================================== */

/* Toggle Switch */
.switch-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: var(--border-color, #cbd5e1);
  border-radius: 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--primary, #ee4d2d);
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* Watermark Layout Grid */
.watermark-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

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

/* Type Selector Box */
.wm-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.wm-type-radio {
  cursor: pointer;
  display: block;
}

.wm-type-radio input {
  position: absolute;
  opacity: 0;
}

.wm-type-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  background: var(--bg-surface-alt, #f8fafc);
  transition: all 0.2s ease;
  height: 100%;
}

.wm-type-box strong {
  display: block;
  font-size: 0.825rem;
  margin-top: 0.35rem;
  color: var(--text-main, #1e293b);
}

.wm-type-box small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted, #64748b);
  margin-top: 0.2rem;
}

.wm-type-radio input:checked + .wm-type-box {
  border-color: var(--primary, #ee4d2d);
  background: rgba(238, 77, 45, 0.05);
  box-shadow: 0 0 0 1px var(--primary, #ee4d2d);
}

.wm-type-radio:hover .wm-type-box {
  border-color: var(--primary-light, #fb923c);
}

/* Watermark Position Grid */
.wm-position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.wm-pos-btn {
  cursor: pointer;
  display: block;
}

.wm-pos-btn input {
  position: absolute;
  opacity: 0;
}

.wm-pos-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-surface, #ffffff);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-main, #334155);
  transition: all 0.15s ease;
  text-align: center;
}

.wm-pos-btn input:checked + span {
  background: var(--primary, #ee4d2d);
  color: #ffffff;
  border-color: var(--primary, #ee4d2d);
  box-shadow: 0 2px 4px rgba(238, 77, 45, 0.25);
}

.wm-pos-btn:hover span {
  border-color: var(--primary, #ee4d2d);
}

/* Live Preview Canvas */
.wm-preview-container {
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

#wmPreviewCanvas {
  background: #0f172a;
}

/* Invoice Digital Download Box */
.inv-digital-download-btn:hover {
  background: #15803d !important;
  transform: translateY(-1px);
}

/* Watermark Overlay pada Thumbnail Gambar Produk Toko (Etalase User) */
.store-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.store-card-wm-badge {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: opacity 0.2s ease;
}

/* Posisi Watermark Overlay */
.store-card-wm-badge.wm-pos-bottom-right {
  bottom: 8px;
  right: 8px;
}

.store-card-wm-badge.wm-pos-bottom-left {
  bottom: 8px;
  left: 8px;
}

.store-card-wm-badge.wm-pos-top-right {
  top: 8px;
  right: 8px;
}

.store-card-wm-badge.wm-pos-top-left {
  top: 8px;
  left: 8px;
}

.store-card-wm-badge.wm-pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.store-card-wm-img {
  max-height: 22px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.store-card-wm-both {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.store-card-wm-text {
  line-height: 1.2;
}

/* Pola Diagonal Tile Watermark */
.store-card-wm-tile-wrap {
  position: absolute;
  inset: -20px;
  z-index: 3;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  transform: rotate(-25deg);
}

.store-card-wm-tile-item {
  background: rgba(0, 0, 0, 0.38);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Watermark Overlay pada Lightbox Preview Foto */
.lightbox-wm-overlay {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.lightbox-wm-badge {
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.lightbox-wm-overlay.wm-pos-bottom-right {
  bottom: 16px;
  right: 16px;
}

.lightbox-wm-overlay.wm-pos-bottom-left {
  bottom: 16px;
  left: 16px;
}

.lightbox-wm-overlay.wm-pos-top-right {
  top: 16px;
  right: 16px;
}

.lightbox-wm-overlay.wm-pos-top-left {
  top: 16px;
  left: 16px;
}

.lightbox-wm-overlay.wm-pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightbox-wm-overlay.wm-pos-tile {
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  transform: rotate(-22deg);
  overflow: hidden;
}

.lightbox-wm-img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.lightbox-wm-both {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lightbox-wm-text {
  line-height: 1.25;
}

/* ==========================================================================
   Shopping Cart Header Nav Button & Badge
   ========================================================================== */
.btn-cart-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--text-main);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.825rem;
  transition: var(--transition);
  position: relative;
}

.btn-cart-nav:hover {
  background: var(--bg-surface-alt);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

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

.cart-badge-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--primary, #ee4d2d);
  color: #ffffff;
  font-size: 0.675rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-surface, #ffffff);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cart-badge-count.animate-bounce {
  animation: cartBadgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBadgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Store Card Actions: + Keranjang & Beli Sekarang
   ========================================================================== */
.store-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.775rem;
  font-weight: 700;
  background: rgba(238, 77, 45, 0.08);
  color: var(--primary, #ee4d2d);
  border: 1px solid rgba(238, 77, 45, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-add-cart:hover:not(:disabled) {
  background: var(--primary, #ee4d2d);
  color: #ffffff;
  border-color: var(--primary, #ee4d2d);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(238, 77, 45, 0.3);
}

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

.btn-buy-now {
  white-space: nowrap;
}

/* ==========================================================================
   Shopping Cart Modal & List Items
   ========================================================================== */
dialog.cart-modal {
  max-width: 680px;
  width: 95%;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.cart-modal-body {
  padding: 1.15rem 1.25rem;
  max-height: 55vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cart-empty-icon {
  width: 4rem;
  height: 4rem;
  color: var(--text-light);
  opacity: 0.6;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cart-item-card.is-selected {
  border-color: rgba(238, 77, 45, 0.4);
  background: rgba(238, 77, 45, 0.02);
}

.cart-item-check {
  flex-shrink: 0;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
}

.cart-item-price-current {
  font-weight: 700;
  color: var(--primary);
}

.cart-item-price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.75rem;
}

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

.cart-item-subtotal {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-footer-select-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-cart-delete-selected {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-cart-delete-selected:hover {
  text-decoration: underline;
}

.cart-footer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-color);
}

.cart-summary-text {
  display: flex;
  flex-direction: column;
}

.cart-summary-total-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-summary-total-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-checkout-cart {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.35);
}

/* Multi-Item Checkout List Summary in checkoutModal */
.checkout-multi-items-summary {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.checkout-multi-header {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.checkout-multi-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-multi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border-color);
}

.checkout-multi-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-multi-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.checkout-multi-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.checkout-multi-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  font-weight: 600;
  color: var(--text-main);
}

.checkout-multi-qty {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.checkout-multi-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}


