:root {
  --bg: #f6fbf4;
  --card: #ffffff;
  --dark: #1f3622;
  --accent: #72a35f;
  --accent-dark: #4f7d40;
  --muted: #6c7b6c;
  --border: #d9e3d5;
  --shadow: 0 20px 40px rgba(31, 54, 34, 0.15);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

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

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

.hero {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(114, 163, 95, 0.4), transparent),
    linear-gradient(120deg, #e1f1dc, #fdfcf8 60%);
  padding: 1.5rem clamp(1rem, 6vw, 6rem) 4rem;
  display: flex;
  flex-direction: column;
}

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

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: 0.2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
}

.lang-toggle,
.menu-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
  box-shadow: none;
}

.menu-toggle span {
  width: 1.5rem;
  height: 0.12rem;
  background: var(--dark);
}

.hero-content {
  max-width: 640px;
  margin-top: clamp(3rem, 10vh, 8rem);
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  color: var(--accent-dark);
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0.5rem 0 1rem;
  font-family: "Playfair Display", serif;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

main {
  padding: 0 clamp(1rem, 6vw, 6rem) 4rem;
}

.filters {
  margin-top: -4rem;
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.filter-group h3 {
  margin: 0 0 0.8rem;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.price-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#priceRange {
  flex: 1;
}

.collections {
  margin-top: 4rem;
}

.collections header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
}

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

.thumbnails {
  display: flex;
  gap: 0.4rem;
}

.thumbnails button {
  border: none;
  padding: 0;
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
}

.thumbnails button.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent);
}

.thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.product-card h3 {
  margin: 0;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.price {
  font-size: 1.2rem;
  font-weight: 600;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order {
  margin-top: 5rem;
  background: var(--card);
  border-radius: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.order-panel {
  padding: 2rem;
  background: #103a1c;
  color: #f7fff1;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-item span {
  display: block;
}

.cart-totals {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checkout-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
}

.checkout-form input,
.checkout-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  background: #fdfdfb;
}

.note {
  font-size: 0.9rem;
}

footer {
  margin: 5rem 0 2rem;
  padding: 0 clamp(1rem, 6vw, 6rem);
}

.footer-grid {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  box-shadow: var(--shadow);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.socials {
  display: flex;
  gap: 0.8rem;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copyright {
  display: block;
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .filters {
    margin-top: -2rem;
  }
}
