.admin-body {
  background: #f4f2ee;
  color: #1f1d19;
  font-family: var(--font-body);
}

.admin-header {
  background: var(--bg);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}

.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header .brand { color: #fff; font-size: 1.3rem; }

.admin-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.admin-nav a {
  color: #d8d3c8;
  font-size: 0.95rem;
}

.admin-nav a:hover { color: var(--gold-light); }

.link-button {
  background: none;
  border: none;
  color: #d8d3c8;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
}

.link-button:hover { color: var(--gold-light); }

.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-toolbar h1 {
  font-size: 1.8rem;
  color: #1f1d19;
}

/* Buttons (functional, big & clear) */
.admin-main .btn,
.login-card .btn {
  border-radius: 6px;
  font-weight: 500;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}

.btn-danger {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.btn-danger:hover { background: #a5281b; }

.inline-form { display: inline-block; }

/* Filter pills readable on light bg */
.admin-main .filter-pill {
  border-color: #d8d3c8;
  color: #6b6355;
}

.admin-main .filter-pill:hover { border-color: var(--gold); color: #8a6d1f; }

.admin-main .filter-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1f1d19;
}

/* Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eae6dd;
  font-size: 0.95rem;
}

.admin-table th {
  background: #ece7dc;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #6b6355;
}

.table-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.stock-toggle {
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.stock-toggle.in-stock { background: #dcefdc; color: #2e6b2e; }
.stock-toggle.out-stock { background: #f6dedb; color: #a5281b; }

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

/* Forms */
.product-form, .settings-form {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  max-width: 720px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.form-row { margin-bottom: 22px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-form label, .settings-form label {
  color: #4a4438;
  font-weight: 500;
}

.product-form input,
.product-form textarea,
.product-form select,
.settings-form input {
  background: #faf9f6;
  border: 1px solid #d8d3c8;
  color: #1f1d19;
}

.product-form input:disabled { color: #8a8272; }

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox-label input { width: auto; }

.dropzone {
  border: 2px dashed #d8d3c8;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  background: #faf9f6;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone.dragover {
  border-color: var(--gold);
  background: #fbf3dc;
}

.dropzone p { margin: 4px 0; }

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.file-chip {
  background: #ece7dc;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #4a4438;
}

.existing-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.existing-image {
  position: relative;
  width: 96px;
  height: 96px;
}

.existing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.btn-remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.form-actions { margin-top: 8px; }

/* Login */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

.login-card {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-card .brand { color: #1f1d19; }
.login-card .brand-accent { color: var(--gold); }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.login-form label {
  color: #4a4438;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Tags, featured star, sample products */
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; margin: 8px 0; }
.tag-option { font-weight: 400 !important; }
.star { color: #9A7838; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; background: #ece7dc; color: #6b6355; }
.chip-sample { background: #fff3cd; color: #7a5c16; }
.sample-panel { background: #fff; border: 1px solid #eae6dd; border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sample-panel p { margin: 0; }

/* Customer photos on inquiries */
.inq-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.inq-photos img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #d8d3c8; display: block; }
.msg-cell { white-space: pre-line; max-width: 340px; }

/* New Arrivals section */
.chip-new { background: #dff0ec; color: #1E4D57; }
.na-intro { background: #fff; border: 1px solid #eae6dd; border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; }
.na-intro p { margin: 0; }
.na-heading { margin: 30px 0 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: #4a4438; }
.na-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.na-card { background: #fff; border: 1px solid #eae6dd; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.na-card.on { border: 2px solid #C9A45C; }
.na-card img, .na-card .na-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f4f2ee; }
.na-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.na-name { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.na-price { color: #6b6355; font-size: 0.88rem; }
.na-body form { margin-top: auto; }
.na-body .btn { width: 100%; }

/* Quantity */
.qty-help { background: #faf9f6; border: 1px solid #eae6dd; border-radius: 6px; padding: 10px 14px; align-self: end; }
.qty-help p { margin: 2px 0; }
.qty-cell { min-width: 200px; }
.qty-form { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.qty-form input { width: 64px; padding: 6px 8px; border: 1px solid #d8d3c8; border-radius: 4px; background: #faf9f6; font: inherit; text-align: center; }
.qty-step { width: 28px; height: 30px; border: 1px solid #d8d3c8; background: #fff; border-radius: 4px; cursor: pointer; font-size: 1rem; line-height: 1; }
.qty-step:hover:not(:disabled) { border-color: #C9A45C; }
.qty-step:disabled { opacity: 0.4; cursor: default; }
.qty-save { padding: 6px 10px; border: none; border-radius: 4px; background: #1E4D57; color: #fff; cursor: pointer; font-size: 0.8rem; }
.qty-save:hover { background: #163a42; }
.stock-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; }
.stock-pill.in-stock { background: #dcefdc; color: #2e6b2e; }
.stock-pill.low-stock { background: #fff3cd; color: #7a5c16; }
.stock-pill.out-stock { background: #f6dedb; color: #a5281b; }
