.admin-search-box {
  flex: 1;
  min-width: 260px;
}

.admin-search-box input {
  width: 100%;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  background: #fff;
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.admin-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.admin-btn.secondary.admin-btn-sm {
  background: #fff;
  color: #111827;
  border: 1px solid #d7dbe7;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: #c62828;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.danger-btn:hover {
  background: #a61d1d;
}

.admin-table th:last-child,
.admin-table td:last-child {
  min-width: 170px;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-search-box {
  flex: 1;
  min-width: 260px;
}

.admin-search-box input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d9dfeb;
  border-radius: 14px;
  background: #f9fafc;
  color: #111827;
  outline: none;
  transition: 0.2s ease;
}

.admin-search-box input:focus {
  border-color: #111827;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #edf0f6;
  border-radius: 16px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.admin-table thead th {
  background: #f8fafc;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 14px;
  border-bottom: 1px solid #e9edf5;
  text-align: left;
  white-space: nowrap;
}


.admin-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  color: #111827;
  font-size: 14px;
}

.admin-table tbody tr:hover {
  background: #fcfcfd;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.thumb-admin {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #eceff5;
  background: #f3f4f6;
  display: block;
}

.admin-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-btn-sm {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

.danger-btn {
  background: var(--danger);
  color: #fff;
}

.danger-btn:hover {
  background: var(--danger-hover);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-confirmed {
  background: #dcfce7;
  color: #166534;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-shipping {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-table td strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.admin-table td small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
}



.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-search-box {
  flex: 1;
  min-width: 260px;
}

.admin-search-box input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d9dfeb;
  border-radius: 14px;
  background: #f9fafc;
  color: #111827;
  outline: none;
  transition: 0.2s ease;
}

.admin-search-box input:focus {
  border-color: #111827;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #edf0f6;
  border-radius: 16px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: #fff;
}

.admin-table thead th {
  background: #f8fafc;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  border-bottom: 1px solid #e9edf5;
  text-align: left;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  color: #111827;
  font-size: 14px;
}

.admin-table tbody tr:hover {
  background: #fcfcfd;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.thumb-admin {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #eceff5;
  background: #f3f4f6;
  display: block;
}

.admin-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.admin-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.admin-btn.secondary.admin-btn-sm {
  background: #fff;
  color: #111827;
  border: 1px solid #d7dbe7;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: #c62828;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.danger-btn:hover {
  background: #a61d1d;
}

.admin-table th:last-child,
.admin-table td:last-child {
  min-width: 170px;
}

.admin-table td strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.admin-table td small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  line-height: 1.5;
}

/* FORM */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form-group label {
  font-weight: 700;
  color: #111827;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  border: 1px solid #d9dfeb;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  background: #fff;
  color: #111827;
  transition: 0.2s ease;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.admin-form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.admin-upload-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid #eceff5;
  padding-top: 18px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title-row h3 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.main-image-box {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.image-preview-card {
  width: 100%;
  border: 1px dashed #d8dce8;
  border-radius: 16px;
  background: #fafafa;
  overflow: hidden;
}

.image-preview-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.image-picker-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selected-file-name {
  min-height: 18px;
  font-size: 13px;
  color: #555;
  word-break: break-word;
}

.admin-help-text {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.admin-form-message {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
}

.admin-form-message.error {
  color: #c62828;
}

.admin-form-message.success {
  color: #15803d;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-admin-box {
  padding: 28px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
}

@media (max-width: 992px) {
  .main-image-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-toolbar {
    align-items: stretch;
  }

  .admin-search-box {
    min-width: 100%;
  }

  .admin-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .admin-toolbar-actions .admin-btn,
  .admin-toolbar-actions a.admin-btn {
    flex: 1;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-toolbar {
    align-items: stretch;
  }

  .admin-search-box {
    min-width: 100%;
  }

  .admin-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .admin-toolbar-actions .admin-btn,
  .admin-toolbar-actions a.admin-btn {
    flex: 1;
  }
}