:root {
  --teal: #1ba39c;
  --teal-light: #27c9bf;
  --white: #ffffff;
  --off-white: #f8fbfb;
  --gold: #c9a227;
  --gold-light: #e0bc42;
  --dark-text: #1a1a1a;
  --muted: #6e7f80;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--off-white);
  color: var(--dark-text);
}

.topbar {
  background: var(--white);
  border-bottom: 2px solid var(--teal);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gold);
  background: white;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--teal);
}

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

.nav-link {
  text-decoration: none;
  display: inline-flex;
}

.nav-button {
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  background: white;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-button:hover {
  background: var(--teal);
  color: white;
}
.nav-button.gold {
  border-color: var(--gold);
  color: var(--gold);
}
.nav-button.gold:hover {
  background: var(--gold);
  color: white;
}
.nav-button.active {
  background: rgba(27, 163, 156, 0.08);
}
.nav-group {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--teal);
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.card {
  margin-top: 18px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 18px;
}

label {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d9e2e2;
  color: var(--dark-text);
  background: white;
}

input::placeholder {
  color: #9aa8a9;
}

input:focus,
select:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 4px rgba(27, 163, 156, 0.18);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

@media (max-width: 980px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filter-grid .actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

.btn {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: var(--teal);
  color: white;
  transition: 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  background: var(--teal-light);
}

.btn.secondary {
  background: white;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn.secondary:hover {
  background: rgba(27, 163, 156, 0.06);
}

.btn.gold {
  background: var(--gold);
}
.btn.gold:hover {
  background: var(--gold-light);
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 1000px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .products {
    grid-template-columns: 1fr;
  }
}

.p-card {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid #e8eeee;
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  overflow: hidden;
}

.p-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.p-img {
  width: 100%;
  height: 190px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eef3f3;
  background: #f4f7f7;
  display: block;
}

.p-noimg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed #d9e2e2;
  background: #fbfdfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.p-noimg .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(27, 163, 156, 0.25);
  border: 1px solid rgba(27, 163, 156, 0.35);
  flex: 0 0 auto;
}

.p-name {
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  font-size: 15px;
  word-break: break-word;
}

.p-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e8eeee;
  background: #f8fbfb;
  font-size: 12px;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1;
  white-space: nowrap;
}

.chip.gold {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.35);
  color: #8a6d12;
}

.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.code {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #f2f6f6;
  border: 1px solid #e3eeee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #223;
  letter-spacing: 0.2px;
}

.p-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.p-actions .btn {
  width: auto;
  padding: 9px 12px;
  border-radius: 12px;
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.page-pill {
  padding: 8px 12px;
  border: 1px solid #e8eeee;
  border-radius: 999px;
  background: white;
  color: var(--dark-text);
  font-weight: 800;
  text-decoration: none;
}

.page-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.page-pill.disabled {
  opacity: 0.5;
  pointer-events: none;
}
