@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --yellow: #FFD100;
  --yellow-soft: #FFF3C4;
  --black: #0C0C0C;
  --ink: #1A1A1A;
  --muted: #6B7280;
  --line: #EDEDED;
  --card: #FFFFFF;
  --bg: #FAFAF8;
  --green: #0C9F3F;
  --pink: #FF3D57;
  --danger: #E8384F;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', sans-serif; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; margin: 0; color: var(--black); }
button { font-family: inherit; cursor: pointer; }

/* ---- Login ---- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--yellow) 0%, #FFF3C4 60%, #fff 100%);
}
.login-box {
  background: #fff;
  border-radius: 22px;
  padding: 40px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 50px rgba(12,12,12,0.12);
}
.login-box h1 { font-size: 23px; font-weight: 800; margin-bottom: 6px; }
.login-box p.sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}
.field textarea { resize: vertical; min-height: 60px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  width: 100%;
}
.error-text { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 16px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 18px; text-align: center; }

/* ---- Dashboard shell ---- */
.dash { display: none; min-height: 100vh; }
.dash.open { display: flex; }
.sidebar {
  width: 230px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 26px 16px;
  flex-shrink: 0;
}
.sidebar .brand {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 30px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar button.tab {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.sidebar button.tab.active { background: var(--yellow-soft); color: var(--black); }
.sidebar button.tab:hover { color: var(--black); }
.logout-btn {
  margin-top: 30px;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 11px;
  border-radius: 10px;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
}

.main { flex: 1; padding: 32px 36px; max-width: 1100px; }
.main-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.main-head h2 { font-size: 22px; font-weight: 800; }
.pill {
  background: var(--yellow-soft);
  border: 1px solid var(--yellow);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Enquiry cards ---- */
.enquiry-list { display: flex; flex-direction: column; gap: 12px; }
.enquiry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(12,12,12,0.04);
}
.enquiry-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.enquiry-top h3 { font-size: 16px; font-weight: 700; }
.enquiry-meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.status-select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.enquiry-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 20px;
  font-size: 13px;
}
.enquiry-details div span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.enquiry-actions { margin-top: 14px; display: flex; gap: 10px; }
.btn-small {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.btn-small.danger { color: var(--danger); border-color: rgba(232,56,79,0.25); background: #FFF0F1; }

/* ---- Products admin ---- */
.product-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 26px;
  box-shadow: 0 2px 8px rgba(12,12,12,0.04);
}
.product-form h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 4px; }
.checkbox-field input { width: auto; }

.admin-product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-product-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.admin-product-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.badge-offer {
  background: var(--pink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.empty-note { color: var(--muted); font-size: 14px; padding: 20px 0; }
.row-actions { display: flex; gap: 8px; }
