:root {
  --cream: #fff6ec;
  --ink: #2b221c;
  --ink-soft: #5e564f;
  --purple: #7b3cb5;
  --green: #3caf4a;
  --pink: #ee4b96;
  --pink-deep: #d63384;
  --mint: #b7e6d6;
  --store: #f7b6c9;
  --yellow: #ffe14d;
  --card: #ffffff;
  --line: #f0e2d6;
  --shadow: 0 10px 24px rgba(46, 78, 70, 0.1);
  --header-h: 76px;
  --font-display: "Fredoka", "Nunito", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.5;
}

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

h1, h2, h3, p {
  margin: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 80;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 12px 32px;
  background: var(--cream);
  border-bottom: 1px solid rgba(43, 34, 28, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.clover {
  width: 36px;
  height: 36px;
  color: var(--green);
  flex: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 28px;
}

nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}

nav a:hover,
nav a[aria-current="true"] {
  color: var(--purple);
}

.cart-button {
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pink);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cart-button:hover {
  background: rgba(238, 75, 150, 0.1);
}

.cart-button svg {
  width: 32px;
  height: 32px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3rem;
  text-align: center;
}

.cart-count[data-count="0"] {
  display: none;
}

.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #d7b89a;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(42, 22, 32, 0.72) 0%,
    rgba(42, 22, 32, 0.42) 34%,
    rgba(42, 22, 32, 0.08) 62%,
    rgba(42, 22, 32, 0) 78%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px 6vw 56px;
  max-width: 46rem;
  color: white;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 4.1vw, 4.05rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.hero h1 span {
  display: block;
}

.hero-copy p {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

#shop,
#store,
#about {
  scroll-margin-top: 92px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1;
  padding: 0.85rem 1.45rem;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.btn:hover {
  background: var(--pink-deep);
}

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

.btn:disabled {
  background: #e7b3c8;
  cursor: not-allowed;
  transform: none;
}

.btn.is-added {
  background: var(--green);
}

.btn-block {
  width: 100%;
}

.shop {
  background: var(--mint);
  padding: 26px 22px 34px;
}

.product-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card);
  border-radius: 28px;
  padding: 12px 16px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  margin: 0 auto;
}

.product-card img.is-pop {
  animation: pop 0.35s ease;
}

.product-card h3 {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.store {
  background: var(--store);
  text-align: center;
  padding: 42px 20px 46px;
}

.store-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.store h2,
.about h2,
.cart-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.store h2 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  color: #3a271f;
}

.burst {
  position: relative;
  width: 122px;
  height: 122px;
  margin-top: -12px;
  flex: none;
  display: grid;
  place-items: center;
  transform: rotate(8deg);
}

.burst svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 0 rgba(214, 90, 40, 0.12));
}

.burst span {
  position: relative;
  z-index: 1;
  color: #e4255a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.05;
}

.store-copy {
  max-width: 38rem;
  margin: 8px auto 0;
  color: #4a332c;
  font-size: 1.15rem;
}

.about {
  background: var(--cream);
  padding: 56px 20px 28px;
}

.about-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.kicker {
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.about h2 {
  margin-top: 6px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.about-wrap p {
  margin-top: 14px;
  font-size: 1.12rem;
  color: #3d342e;
  max-width: 42rem;
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
}

.facts li {
  background: white;
  border-radius: 20px;
  padding: 16px 16px 18px;
  box-shadow: 0 8px 18px rgba(80, 40, 60, 0.06);
  color: #3d342e;
}

.facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.site-footer {
  background: var(--cream);
  text-align: center;
  padding: 12px 16px 32px;
  color: var(--ink-soft);
}

.site-footer p + p {
  margin-top: 4px;
}

.noscript {
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  background: #fff3bf;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 24, 32, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(420px, 100%);
  height: 100%;
  background: #fffaf6;
  box-shadow: -16px 0 40px rgba(40, 20, 30, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head,
.cart-foot {
  padding: 18px 18px 16px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 1.7rem;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffe8f1;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: #ffd4e6;
}

.cart-body {
  flex: 1;
  overflow: auto;
  padding: 8px 18px 18px;
}

.cart-empty {
  text-align: center;
  padding: 28px 8px;
  color: var(--ink-soft);
}

.cart-empty p {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.2rem;
}

.cart-empty p + p {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-soft);
}

.clover-large {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: white;
  border-radius: 16px;
}

.cart-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.each {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #f3c3d6;
  background: white;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

.qty button:hover {
  background: #fff0f6;
}

.qty span {
  min-width: 1.2rem;
  text-align: center;
  font-family: var(--font-display);
}

.line-end {
  text-align: right;
}

.line-total {
  font-family: var(--font-display);
  font-weight: 700;
}

.remove {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.cart-foot {
  border-top: 1px solid var(--line);
  background: #fffaf6;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cart-total strong {
  font-size: 1.6rem;
}

.checkout-note {
  min-height: 1.2em;
  margin-top: 10px;
  color: #6d3050;
  font-size: 1rem;
}

.checkout-note:empty {
  display: none;
}

.cart-count.bump {
  animation: bump 0.35s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes bump {
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

body.cart-open {
  overflow: hidden;
}

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

@media (min-width: 900px) {
  .hero h1 span {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo cart"
      "nav nav";
    padding: 12px 16px 10px;
    align-items: center;
  }

  .logo {
    grid-area: logo;
    font-size: 1.55rem;
  }

  .cart-button {
    grid-area: cart;
    justify-self: end;
  }

  .clover {
    width: 30px;
    height: 30px;
  }

  nav {
    grid-area: nav;
    margin: 2px 0 0;
    justify-content: center;
    gap: 18px;
  }

  nav a {
    font-size: 1.05rem;
  }

  .hero {
    min-height: 560px;
    align-items: flex-start;
  }

  .hero img {
    object-position: 78% 62%;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(42, 22, 32, 0.75) 0%,
      rgba(42, 22, 32, 0.45) 38%,
      rgba(42, 22, 32, 0.08) 68%
    );
  }

  .hero-copy {
    padding: 28px 20px 32px;
  }

  .product-card {
    padding: 8px 10px 16px;
  }

  .product-card img {
    height: 168px;
  }

  .product-card h3 {
    font-size: 1.15rem;
  }

  .product-card .btn {
    font-size: 0.92rem;
    padding: 0.62rem 0.75rem;
    margin-top: 8px;
  }

  #shop,
  #store,
  #about {
    scroll-margin-top: 124px;
  }

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

  .store-heading {
    flex-direction: column;
  }

  .burst {
    margin-top: 0;
    order: -1;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.15rem;
  }

  .product-card h3 {
    font-size: 1.15rem;
  }

  .product-card .btn {
    font-size: 0.98rem;
    padding: 0.7rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
