@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --green: #2d6a4f;
  --green-dark: #1b4332;
  --green-soft: #d8f3dc;
  --leaf: #52b788;
  --cream: #f7faf5;
  --sand: #eef5eb;
  --ink: #1a2e24;
  --muted: #5c7366;
  --white: #ffffff;
  --border: #cfe3d5;
  --shadow: 0 10px 30px rgba(27, 67, 50, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(82, 183, 136, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(45, 106, 79, 0.1), transparent 30%),
    var(--cream);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 245, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--green-dark);
  font-weight: 700;
}

.logo span {
  color: var(--leaf);
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.admin-link {
  background: var(--green) !important;
  color: var(--white) !important;
}

.hero {
  padding: 4.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1,
h2,
.page-title {
  font-family: "Fraunces", serif;
  line-height: 1.15;
  color: var(--green-dark);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

.hero p,
.page-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--green-soft);
}

.btn-danger {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #f5c2c0;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.hero-card {
  background: linear-gradient(160deg, #1b4332, #2d6a4f 55%, #40916c);
  color: var(--white);
  border-radius: 28px;
  padding: 2rem;
  min-height: 320px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.hero-card p {
  position: relative;
  opacity: 0.9;
}

.page {
  padding: 3rem 0 4rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.feature,
.product-card,
.form-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.feature h3,
.product-card h3 {
  font-family: "Fraunces", serif;
  margin-bottom: 0.45rem;
  color: var(--green-dark);
}

.feature p,
.product-card p,
.info-card p {
  color: var(--muted);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.product-image {
  height: 160px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(82, 183, 136, 0.25), rgba(45, 106, 79, 0.15)),
    var(--sand);
  display: grid;
  place-items: center;
  font-size: 3rem;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.price {
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
}

.filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.form-card {
  max-width: 640px;
}

.form-heading {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-edit {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-edit:hover {
  background: var(--leaf);
  color: var(--white);
  border-color: var(--leaf);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: #fcfefb;
  color: var(--ink);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(82, 183, 136, 0.35);
  border-color: var(--leaf);
}

.message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: none;
}

.message.success {
  display: block;
  background: #e8f8ef;
  color: #146c43;
}

.message.error {
  display: block;
  background: #fff1f0;
  color: #b42318;
}

.empty,
.loading {
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.admin-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.8rem;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.admin-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.admin-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
