*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --green-900: #0f3d2e;
  --green-800: #145a44;
  --green-700: #1a6b52;
  --green-600: #2d8f6f;
  --green-100: #e8f7f0;
  --green-50: #f4fbf7;
  --amber-500: #e8a317;
  --amber-100: #fff4d6;
  --red-500: #d64545;
  --text: #1e2a24;
  --text-muted: #5c6b63;
  --white: #fff;
  --shadow: 0 4px 20px rgba(15, 61, 46, 0.1);
  --radius: 12px;
  --sidebar-w: 240px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--green-50);
}

a {
  color: var(--green-700);
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--green-900);
  color: var(--white);
  padding: 1.25rem 0;
  transition: transform 0.25s ease;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.sidebar__logo {
  font-size: 1.75rem;
}

.sidebar__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  padding: 0 0.75rem;
}

.nav-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-link--active {
  background: var(--green-600);
  color: var(--white);
  font-weight: 600;
}

.sidebar__footer {
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.sidebar__footer p {
  margin: 0 0 0.35rem;
}

.sidebar__contact {
  color: var(--amber-100);
  font-weight: 600;
}

.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Top banner */
.top-banner {
  position: relative;
  overflow: hidden;
  background: var(--green-800);
}

.top-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

.top-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(15, 61, 46, 0.75) 0%, transparent 55%);
  pointer-events: none;
}

.top-banner__tag {
  margin: 0 0 0.35rem;
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.65rem;
  background: var(--amber-500);
  color: var(--green-900);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
}

.top-banner__overlay h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Content */
.content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.intro {
  margin-bottom: 1.75rem;
}

.intro h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  color: var(--green-800);
}

.intro p {
  margin: 0;
  color: var(--text-muted);
}

/* Product grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15, 61, 46, 0.15);
}

.product-card--promo {
  border: 2px solid var(--amber-500);
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  background: var(--red-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
}

.product-card__img {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.product-card__img--1 {
  background: linear-gradient(135deg, #a8d5ba 0%, #5a9e78 50%, #3d7a5c 100%);
}

.product-card__img--2 {
  background: linear-gradient(135deg, #f5d78e 0%, #d4a84b 50%, #b8862e 100%);
}

.product-card__img--3 {
  background: linear-gradient(135deg, #9ed4f0 0%, #4aa3d0 50%, #2b7aa8 100%);
}

.product-card__img--4 {
  background: linear-gradient(135deg, #c5e1a5 0%, #7cb342 50%, #558b2f 100%);
}

.product-card__img--5 {
  background: linear-gradient(135deg, #ffccbc 0%, #ff8a65 50%, #e64a19 100%);
}

.product-card__img--6 {
  background: linear-gradient(135deg, #e1bee7 0%, #ab47bc 50%, #7b1fa2 100%);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.1rem;
}

.product-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--green-800);
}

.product-card__desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-700);
}

.product-card__price s {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 0.35rem;
}

.btn {
  border: none;
  cursor: pointer;
  font: inherit;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
}

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

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

.btn--primary:active {
  transform: scale(0.97);
}

/* Footer */
.site-footer {
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(26, 107, 82, 0.12);
  background: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green-700);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 110;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--green-900);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.45);
}

body.menu-open .sidebar-backdrop {
  display: block;
}

body.menu-open .sidebar {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .main-wrap {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .top-banner__overlay {
    padding: 1rem 1rem 1rem 4rem;
  }

  .content {
    padding: 1.25rem;
  }

  .products {
    grid-template-columns: 1fr;
  }
}
