:root {
  --green: #0b804d;
  --green-dark: #08663d;
  --green-soft: #e8f4ed;
  --blue: #0978b1;
  --blue-soft: #eaf4fb;
  --off-white: #fcf9f1;
  --surface: #ffffff;
  --surface-alt: #f3f5f4;
  --border: #dbe4df;
  --text: #111111;
  --text-soft: #5b6b7a;
  --black: #111111;
  --danger: #c43d3d;
  --warning: #d58a00;
  --success: #118a52;

  --shadow-sm: 0 8px 24px rgba(14, 26, 21, 0.06);
  --shadow-md: 0 18px 50px rgba(14, 26, 21, 0.1);
  --shadow-lg: 0 30px 80px rgba(14, 26, 21, 0.16);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;

  --container: 1440px;

  --font-heading: "Canva Sans Bold", Arial, sans-serif;
  --font-body: "Barlow Light", "Segoe UI", Arial, sans-serif;

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--off-white);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.45;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

ul {
  list-style: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.page-section {
  padding: 28px 0 44px;
}

.surface-card {
  background: var(--surface);
  border: 1px solid rgba(11, 128, 77, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 760px;
  line-height: 1.6;
}

.muted {
  color: var(--text-soft);
}

.text-link {
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.text-link:hover {
  text-decoration: underline;
}

.btn {
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 128, 77, 0.18);
}

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

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.btn-secondary:hover {
  border-color: rgba(17, 17, 17, 0.24);
}

.btn-dark {
  background: #050505;
  color: #fff;
}

.btn-chip {
  padding: 14px 22px;
  min-height: 52px;
  font-size: 1rem;
}

.btn-lg {
  padding: 18px 28px;
  min-height: 58px;
  font-size: 1.08rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1;
}

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

.badge-blue {
  background: var(--blue);
  color: white;
}

.badge-soft {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.badge-outline {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(11, 128, 77, 0.16);
}

.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}

.navbar-inner {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  min-height: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nav-link {
  padding: 14px 18px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: rgba(17, 17, 17, 0.88);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #cfd9d2;
  border-radius: 20px;
  padding: 18px 20px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input::placeholder,
.textarea::placeholder {
  color: #8a97a4;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(11, 128, 77, 0.7);
  box-shadow: 0 0 0 4px rgba(11, 128, 77, 0.08);
}

.textarea {
  resize: vertical;
  min-height: 130px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.product-grid {
  display: grid;
  gap: 22px;
}

.product-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  background: var(--surface);
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 128, 77, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  background: #eef2f0;
}

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

.product-card-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card-heart {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.product-card-body {
  padding: 20px 22px 22px;
}

.product-card-category {
  display: inline-flex;
  margin-bottom: 14px;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 10px;
}

.product-card-title.sm {
  font-size: 1.65rem;
}

.product-card-price {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 8px;
}

.product-card-meta {
  color: var(--text-soft);
  font-size: 1rem;
}

.product-card-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.product-card-actions .btn {
  flex: 1;
}

.product-card-link {
  display: block;
  color: inherit;
}

.sidebar-card {
  padding: 26px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 128, 77, 0.08);
}

.footer {
  margin-top: 28px;
  padding: 34px 0;
  background: #fff;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.footer p {
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-soft);
  font-family: var(--font-heading);
}

.footer-links a:hover {
  background: var(--green-soft);
  color: var(--green);
}

.filter-title,
.sidebar-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.filter-group + .filter-group {
  margin-top: 26px;
}

.filter-group h4 {
  font-family: var(--font-heading);
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  background: #eef2f0;
  cursor: pointer;
  font-family: var(--font-heading);
  color: #263544;
}

.chip.active {
  background: var(--green);
  color: #fff;
}

.hero-shell {
  background: linear-gradient(180deg, #eef3f1 0%, #f7f8f7 100%);
  padding: 34px 0 44px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-pill {
  min-width: 170px;
  padding: 20px 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(11, 128, 77, 0.08);
  box-shadow: var(--shadow-sm);
}

.stat-pill h4 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.stat-pill p {
  color: var(--text-soft);
}

.split-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
}

@media (max-width: 1200px) {
  .product-grid.four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-grid {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .navbar-inner {
    grid-template-columns: 1fr;
    padding: 16px 0;
    gap: 16px;
  }

  .nav-actions,
  .nav-links {
    justify-content: center;
  }

  .split-grid,
  .product-detail-layout,
  .home-hero-grid,
  .browse-hero-grid,
  .auth-layout {
    grid-template-columns: 1fr !important;
  }

  .product-grid.three,
  .product-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container,
  .navbar-inner {
    width: min(var(--container), calc(100% - 24px));
  }

  .section-title {
    font-size: 2.6rem;
  }

  .product-grid.three,
  .product-grid.four {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
.hidden {
  display: none !important;
}

.compact-grid .product-card {
  border-radius: 24px;
}

.compact-grid .product-card-media {
  aspect-ratio: 1.3 / 1;
}

.compact-grid .product-card-body {
  padding: 16px 18px 18px;
}

.compact-grid .product-card-title {
  font-size: 1.4rem;
}

.compact-grid .product-card-price {
  font-size: 1.5rem;
}

.compact-grid .product-card-meta {
  font-size: 0.92rem;
}

.compact-grid .product-card-actions {
  margin-top: 12px;
}

.compact-grid .product-card-heart {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.admin-only {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.app-state {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 120px;
  border: 1px solid rgba(38, 53, 68, 0.1);
}

.app-state h3 {
  margin: 0;
}

.app-state p {
  margin: 0;
}

.app-state-error {
  border-color: rgba(176, 44, 44, 0.22);
  background: #fff8f7;
}

.app-state-warning {
  border-color: rgba(188, 127, 29, 0.22);
  background: #fffaf0;
}

.app-state-info {
  border-color: rgba(11, 128, 77, 0.18);
  background: #f7fbf8;
}
