
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #20211f;
  --muted: #777a73;
  --paper: #f8f8f4;
  --white: #ffffff;
  --green: #c9f36b;
  --line: #e7e8e0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.navbar {
  height: 78px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.logo {
  font: 800 1.8rem "Manrope", sans-serif;
  letter-spacing: -1.5px;
}

.logo span {
  color: #79a92d;
}

nav {
  display: flex;
  gap: 30px;
  font-size: .93rem;
}

nav a:hover {
  color: #79a92d;
}

.cart-button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 99px;
  padding: 10px 16px;
  font-weight: 600;
}

#cart-count {
  display: inline-grid;
  place-items: center;
  background: var(--green);
  border-radius: 50%;
  min-width: 23px;
  height: 23px;
  margin-left: 5px;
}

.hero {
  min-height: 490px;
  padding: 70px 9%;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero h1,
.section-heading h2,
.about h2 {
  font: 800 clamp(2.4rem, 5vw, 4.2rem)/1.1 "Manrope", sans-serif;
  letter-spacing: -2.5px;
}

.hero h1 span {
  color: #779f31;
}

.hero-content > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  margin: 22px 0 30px;
}

.primary-button {
  display: inline-block;
  background: var(--ink);
  color: white;
  padding: 14px 23px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform .2s, background .2s;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #45483e;
}

.hero-art {
  min-height: 330px;
  position: relative;
  display: grid;
  place-items: center;
  background: #e8eddd;
  border-radius: 45% 45% 18px 18px;
  overflow: hidden;
}

.orb {
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d6fa8b, #92b64e);
  box-shadow: 25px 28px 0 rgba(32, 33, 31, .07);
}

.hero-label {
  position: absolute;
  right: 12%;
  bottom: 12%;
  font: 800 1.15rem/1.2 "Manrope", sans-serif;
}

.hero-star {
  position: absolute;
  top: 10%;
  left: 12%;
  font-size: 3rem;
}

.shop-section {
  padding: 65px 7%;
  background: white;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.muted {
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: white;
  padding: 9px 18px;
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-width: 0;
}

.product-art {
  min-height: 200px;
  aspect-ratio: 4 / 4.5;
  display: grid;
  place-items: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.product-art .emoji {
  font-size: 5rem;
  filter: drop-shadow(0 12px 8px #00000016);
  transition: transform .25s;
}

.product-art .product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}

.product-card:hover .emoji {
  transform: scale(1.1) rotate(-4deg);
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffffd9;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: .7rem;
}

.product-info {
  padding: 14px 2px;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.product-price {
  font-weight: 700;
}

.add-button {
  border: none;
  background: var(--green);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.35rem;
  transition: transform .2s;
}

.add-button:hover {
  transform: scale(1.08);
}

.cart-panel {
  margin-top: 40px;
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.cart-heading,
.cart-row,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.cart-heading {
  margin-bottom: 20px;
}

.cart-heading h2 {
  font: 700 1.5rem "Manrope", sans-serif;
}

.close-button,
.remove-button {
  border: 0;
  background: transparent;
  padding: 8px;
}

.cart-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-total {
  padding-top: 18px;
  margin-top: 5px;
  font-size: 1.1rem;
}

.small {
  font-size: .82rem;
  margin-top: 12px;
}

.about {
  padding: 90px 9%;
  text-align: center;
  background: #e9efdf;
}

.about h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.about > p:last-child {
  color: var(--muted);
  max-width: 480px;
  margin: 20px auto 0;
}

footer {
  padding: 30px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .85rem;
}

footer p {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 55px 7%;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .navbar {
    height: 68px;
    padding: 0 5%;
  }

  nav {
    gap: 12px;
    font-size: .8rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .cart-button {
    padding: 7px 10px;
    font-size: .8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 45px 6%;
  }

  .hero-art {
    min-height: 250px;
  }

  .orb {
    width: 165px;
    height: 165px;
  }

  .shop-section {
    padding: 48px 5%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .product-grid {
    gap: 14px;
  }

  .product-art {
    min-height: 150px;
  }

  .product-art .emoji {
    font-size: 3.5rem;
  }

  .product-info h3 {
    font-size: .9rem;
  }

  .about {
    padding: 65px 6%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
