[hidden] { display: none !important; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #F4F5F3;
  color: #1C2420;
}
.muted { color: #6b7570; }
.hint { font-size: 13px; color: #6b7570; margin: 4px 0 12px; }
.error-text { color: #B3382C; font-size: 14px; }

/* Login */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #1F5D50;
}
.login-box {
  background: #fff;
  padding: 40px 36px;
  border-radius: 14px;
  width: 100%;
  max-width: 360px;
  display: flex; flex-direction: column; gap: 12px;
}
.login-box h1 { margin: 0 0 2px; font-size: 22px; }
.login-box input {
  padding: 11px 13px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  border: none; border-radius: 8px; padding: 11px 20px;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.btn-primary { background: #1F5D50; color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid #1F5D50; color: #1F5D50; }
.btn-danger { background: #fff; border: 1.5px solid #C1502E; color: #C1502E; }
.btn-small { padding: 7px 14px; font-size: 13px; }
.link-btn {
  background: none; border: none; color: #1F5D50; font-weight: 600;
  cursor: pointer; text-decoration: none; font-size: 14px;
}

/* Panel layout */
.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 16px 28px; border-bottom: 1px solid #E4E6E2;
}
.panel-title { font-weight: 700; font-size: 16px; }
.panel-header-actions { display: flex; gap: 20px; align-items: center; }

.tabs {
  display: flex; gap: 4px;
  padding: 0 28px; background: #fff; border-bottom: 1px solid #E4E6E2;
}
.tab-btn {
  background: none; border: none; padding: 14px 16px;
  font-size: 14.5px; font-weight: 600; color: #6b7570;
  cursor: pointer; border-bottom: 2.5px solid transparent;
}
.tab-btn.active { color: #1F5D50; border-bottom-color: #1F5D50; }

.panel-content { max-width: 780px; margin: 0 auto; padding: 32px 24px 80px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h2 { margin: 0 0 6px; font-size: 21px; }
.tab-panel h3 { margin: 28px 0 10px; font-size: 16px; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-head h2 { margin: 0; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=password], .field textarea, .field select {
  font-weight: 400; font-size: 14.5px;
  padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 8px;
  font-family: inherit; width: 100%;
}
.field input[type=color] { width: 60px; height: 40px; padding: 2px; border: 1.5px solid #ddd; border-radius: 8px; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 160px; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; }

/* Product list */
.admin-product-list { display: flex; flex-direction: column; gap: 10px; }
.admin-product-row {
  background: #fff; border: 1px solid #E4E6E2; border-radius: 10px;
  padding: 12px 16px; display: flex; align-items: center; gap: 14px;
}
.admin-product-row img {
  width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #eee; flex-shrink: 0;
}
.admin-product-row .row-thumb-placeholder {
  width: 48px; height: 48px; border-radius: 6px; background: #eee; flex-shrink: 0;
}
.admin-product-row .row-info { flex: 1; }
.admin-product-row .row-info .row-name { font-weight: 600; font-size: 15px; }
.admin-product-row .row-info .row-meta { font-size: 13px; color: #6b7570; }
.empty-msg { color: #6b7570; font-size: 14.5px; padding: 20px 0; }

/* Image grid (product form) */
.image-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.image-grid .img-item { position: relative; width: 84px; height: 84px; }
.image-grid .img-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.image-grid .img-remove {
  position: absolute; top: -6px; right: -6px;
  background: #C1502E; color: #fff; border: none; border-radius: 50%;
  width: 22px; height: 22px; font-size: 13px; cursor: pointer; line-height: 1;
}

/* Attributes */
.attr-row { display: flex; gap: 10px; margin-bottom: 8px; align-items: center; }
.attr-row input { flex: 1; padding: 9px 11px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 14px; }
.attr-row button { flex-shrink: 0; background: none; border: none; color: #C1502E; font-size: 18px; cursor: pointer; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1C2420; color: #fff; padding: 12px 22px; border-radius: 8px;
  font-size: 14px; z-index: 200;
}
.toast.error { background: #B3382C; }
