:root {
  color-scheme: light;
  --pink: #ff5da8;
  --pink-hot: #f01888;
  --pink-soft: #ffe4f2;
  --yellow: #ffd84d;
  --yellow-soft: #fff3b8;
  --purple: #8d55ff;
  --purple-deep: #4e2a84;
  --lilac: #efe4ff;
  --ink: #271429;
  --muted: #765d77;
  --paper: #fff8fd;
  --white: #ffffff;
  --line: rgba(39, 20, 41, 0.12);
  --shadow: 0 22px 70px rgba(104, 36, 114, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 216, 77, 0.34), transparent 22rem),
    radial-gradient(circle at 86% 6%, rgba(141, 85, 255, 0.24), transparent 24rem),
    linear-gradient(180deg, #fff7fb 0%, #fff1c8 46%, #fbecff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 248, 253, 0.88);
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.section-head,
.filters,
.cart-head,
.cart-summary div,
.cart-row,
.quantity {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  color: var(--purple-deep);
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white);
  box-shadow: 0 10px 25px rgba(240, 24, 136, 0.28);
}

.nav {
  gap: clamp(0.65rem, 2vw, 1.35rem);
  color: var(--purple-deep);
  font-weight: 850;
}

.nav a {
  text-decoration: none;
}

.cart-button,
.filter,
.icon-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.cart-button {
  border-radius: 999px;
  color: var(--pink-hot);
  font-weight: 950;
  padding: 0.55rem 0.85rem;
}

#cart-count {
  display: inline-grid;
  min-width: 1.45rem;
  min-height: 1.45rem;
  margin-left: 0.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 1rem;
  min-height: calc(100vh - 72px);
  padding: clamp(1.25rem, 4vw, 4rem);
  background:
    linear-gradient(90deg, rgba(39, 20, 41, 0.66), rgba(39, 20, 41, 0.1)),
    url("/assets/body-by-cupcake-hero.png") center / cover;
}

.hero-copy {
  align-self: end;
  max-width: 780px;
  color: var(--white);
  padding-bottom: clamp(1rem, 8vh, 5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--pink-hot);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 1rem;
  font-size: clamp(3.3rem, 9vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.35rem;
}

.hero-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
  min-height: 3.1rem;
  padding: 0.82rem 1.1rem;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--yellow), #ff9fd2);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(240, 24, 136, 0.25);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.button.full {
  width: 100%;
}

.drop-card {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 248, 253, 0.88);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 1.1rem;
  backdrop-filter: blur(14px);
}

.drop-card span {
  display: inline-block;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-weight: 950;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

.drop-card strong {
  display: block;
  font-size: 1.35rem;
}

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

.marquee {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.marquee span {
  background: var(--yellow);
  color: var(--purple-deep);
  font-weight: 950;
  padding: 0.9rem;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1rem, 4vw, 3rem);
  background: var(--paper);
}

.intro p,
.section-head p,
.style-board p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-head {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filters {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  border-radius: 999px;
  color: var(--purple-deep);
  font-weight: 900;
  padding: 0.62rem 0.85rem;
}

.filter.is-active {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--white);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(104, 36, 114, 0.1);
}

.product-art {
  display: grid;
  min-height: 225px;
  place-items: center;
  background: linear-gradient(135deg, var(--art-a), var(--art-b));
  color: rgba(255, 255, 255, 0.95);
  font-size: 4.5rem;
  font-weight: 950;
}

.product-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

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

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 950;
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.size-row span {
  border-radius: 999px;
  background: var(--lilac);
  color: var(--purple-deep);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0.25rem 0.5rem;
}

.style-board {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  background: linear-gradient(135deg, var(--purple-deep), var(--pink-hot));
  color: var(--white);
}

.style-board .eyebrow,
.style-board p {
  color: var(--yellow);
}

.look-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.look-grid article {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 1rem;
}

.look-grid span {
  color: var(--yellow);
  font-weight: 950;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(39, 20, 41, 0.46);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  height: 100%;
  background: var(--paper);
  box-shadow: -22px 0 60px rgba(39, 20, 41, 0.18);
  padding: 1rem;
}

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

.icon-button {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  color: var(--pink-hot);
  font-weight: 950;
}

.cart-items {
  display: grid;
  gap: 0.75rem;
  overflow: auto;
  padding: 1rem 0;
}

.cart-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 0.85rem;
}

.cart-row p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.quantity {
  gap: 0.45rem;
}

.quantity button {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--purple-deep);
  cursor: pointer;
  font-weight: 950;
}

.cart-empty {
  border: 1px dashed rgba(240, 24, 136, 0.4);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  margin-block: 1rem;
  padding: 1rem;
}

.cart-empty strong {
  color: var(--ink);
}

.cart-summary {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.cart-summary div {
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.checkout {
  width: min(92vw, 560px);
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.checkout::backdrop {
  background: rgba(39, 20, 41, 0.55);
}

.checkout-card {
  position: relative;
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.close-dialog {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--purple-deep);
  font-weight: 900;
}

label.wide {
  grid-column: 1 / -1;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  min-height: 3rem;
  padding: 0.75rem;
}

.fine-print {
  color: var(--muted);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: min(92vw, 360px);
  transform: translateY(130%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 850;
  padding: 0.9rem 1rem;
  transition: transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
}

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

  .hero,
  .intro,
  .style-board {
    grid-template-columns: 1fr;
  }

  .drop-card {
    align-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.92rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .marquee,
  .product-grid,
  .look-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
