:root {
  --bg: #fff7ef;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #161227;
  --muted: #5d5775;
  --line: rgba(26, 17, 58, 0.12);
  --shadow: 0 20px 45px rgba(31, 16, 74, 0.15);
  --radius-lg: 6px;
  --radius-md: 4px;
  --rainbow: linear-gradient(
    135deg,
    #ff5f6d 0%,
    #ffb347 18%,
    #ffe66d 34%,
    #5dd39e 50%,
    #49b6ff 68%,
    #7c6cff 84%,
    #ff67c4 100%
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 102, 149, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(87, 169, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, #fff0eb 55%, #fff7ef 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  box-shadow: 0 14px 30px rgba(255, 101, 151, 0.24);
}

.brand strong,
.toolbar h2,
.about h2,
.product-title {
  font-family: "Public Sans", Arial, sans-serif;
}

.brand strong {
  display: block;
  font-size: 1.3rem;
}

.brand small {
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #24124d, #5c2fb6);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.header-menu-row {
  display: flex;
  align-items: center;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(124, 108, 255, 0.12);
}

.eyebrow,
.section-label,
.product-category,
.product-badge {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow,
.section-label {
  color: #7a42d1;
}

.toolbar,
.product-meta,
.product-footer,
.about {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button-primary,
.button-card {
  color: white;
  background: linear-gradient(135deg, #24124d 0%, #7c38ea 100%);
}

.button-card:hover,
.button-card:focus-visible {
  background: linear-gradient(135deg, #ff5f6d 0%, #ffb347 45%, #7c6cff 100%);
  box-shadow: none;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 8px 4px 0;
  scroll-margin-top: 150px;
}

.toolbar h2,
.about h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.search-field input {
  width: min(360px, 100%);
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(26, 17, 58, 0.12);
  border-radius: var(--radius-md);
  font: inherit;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.header-search {
  flex: 0 1 360px;
  min-width: 280px;
}

.header-search input {
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-image-link {
  display: block;
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(20, 13, 49, 0.24)),
    var(--product-image),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(20, 13, 49, 0.08)),
    var(--product-gradient, var(--rainbow));
  background-position:
    center,
    var(--product-image-position, center center),
    center,
    center;
  background-size: cover;
  outline: 0 solid rgba(255, 179, 71, 0);
  outline-offset: -8px;
  transition: filter 180ms ease, outline-color 180ms ease, outline-width 180ms ease;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.product-image-link:hover .product-image,
.product-image-link:focus-visible .product-image,
.product-image-link:active .product-image {
  filter: saturate(1.08) contrast(1.03);
  outline-color: rgba(255, 179, 71, 0.82);
  outline-width: 4px;
}

.product-image-link:hover .product-image::after,
.product-image-link:focus-visible .product-image::after,
.product-image-link:active .product-image::after {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 2px rgba(124, 108, 255, 0.5);
}

.product-badge {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: white;
  background: rgba(18, 12, 49, 0.35);
  backdrop-filter: blur(8px);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.product-meta,
.product-footer {
  justify-content: space-between;
}

.product-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.05;
}

.product-description {
  margin: 0;
  flex: 1;
  color: var(--muted);
  line-height: 1.6;
}

.product-description a {
  color: #5c2fb6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-footer {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.button-card {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  text-align: center;
}

.about {
  align-items: stretch;
  margin-top: 24px;
}

.about-card {
  flex: 1;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.checklist {
  padding-left: 18px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    margin-left: 0;
  }

  .about {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 12px;
  }

  .site-header {
    top: 10px;
    padding: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-lockup {
    gap: 14px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-search {
    min-width: 0;
  }

  .site-nav {
    display: none;
    flex-direction: column;
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .search-field,
  .search-field input {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
