:root {
  /* Colors */
  --color-canvas-mist: #f2f4f5;
  --color-pure-white: #ffffff;
  --color-ink-black: #000000;
  --color-faint-border: #ebebeb;
  --color-muted-gray: #787574;
  --color-cool-stone: #cccccc;
  --color-warm-fog: #acb0aa;
  --color-shop-violet: #5433eb;
  --color-violet-wash: #c0b5f3;
  --color-slate-ink: #332f2d;
  --color-ash-veil: #665a54;

  /* Typography — Inter substitute for GT Standard / Shopify Sans */
  --font-gt-standard: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-shopify-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --text-caption: 11px;
  --leading-caption: 1.33;
  --text-body-sm: 12px;
  --leading-body-sm: 1.33;
  --text-body: 14px;
  --leading-body: 1.33;
  --text-body-lg: 16px;
  --leading-body-lg: 1.33;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-6: 6px;
  --spacing-8: 8px;
  --spacing-10: 10px;
  --spacing-11: 11px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-38: 38px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-80: 80px;

  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 64px;
  --card-padding: 0px;
  --element-gap: 12px;
  --sidebar-width: 64px;

  /* Border Radius */
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl-2: 20px;
  --radius-3xl: 28px;
  --radius-3xl-2: 32px;
  --radius-full: 9999px;
  --radius-cards: 28px;
  --radius-chips: 9999px;
  --radius-pills: 20px;
  --radius-inputs: 9999px;
  --radius-search: 9999px;
  --radius-buttons: 9999px;

  /* Shadows */
  --shadow-sm: rgba(0, 0, 0, 0.06) 0px 2px 8px 0px;
  --shadow-sm-2: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
  --shadow-lg: rgba(0, 0, 0, 0.12) 0px 4px 24px 0px;
  --shadow-lg-2: rgba(69, 36, 219, 0.34) 0px 4px 24px 0px;

  /* Surfaces */
  --surface-canvas: #f2f4f5;
  --surface-surface: #ffffff;
  --surface-elevated-card: #ffffff;
  --surface-accent-product-image: #000000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-gt-standard);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-body-lg);
  line-height: 1.33;
  letter-spacing: -0.031em;
  color: var(--color-ink-black);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

/* ——— App download banner ——— */
.app-banner {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-12);
  height: 48px;
  padding: 0 var(--spacing-12);
  background: var(--color-ink-black);
  color: var(--color-pure-white);
  border-radius: 1px;
  font-family: var(--font-shopify-sans);
}

.app-banner__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.app-banner__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-banner__title {
  font-size: 14px;
  letter-spacing: -0.023em;
  font-weight: var(--font-weight-medium);
}

.app-banner__sub {
  font-size: 10px;
  letter-spacing: -0.023em;
  opacity: 0.75;
}

.app-banner__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ——— Shell ——— */
.shell {
  display: flex;
  min-height: calc(100vh - 48px);
}

/* ——— Sidebar ——— */
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--sidebar-width);
  min-height: calc(100vh - 48px);
  height: calc(100vh - 48px);
  padding: var(--spacing-16) 0;
  background: var(--color-pure-white);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
  flex: 1;
}

.sidebar__item {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-2xl-2);
  color: var(--color-ink-black);
  transition: background 160ms ease;
}

.sidebar__item:hover,
.sidebar__item.is-active {
  background: var(--color-canvas-mist);
}

.sidebar__item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-faint-border);
  object-fit: cover;
  margin-top: auto;
}

/* ——— Main ——— */
.main {
  flex: 1;
  min-width: 0;
  padding: 0 clamp(16px, 3vw, 40px) var(--spacing-64);
}

.wrap {
  width: min(100%, var(--page-max-width));
  margin: 0 auto;
}

/* ——— Hero constellation ——— */
.hero {
  position: relative;
  padding: var(--spacing-40) 0 var(--spacing-32);
  text-align: center;
}

.constellation {
  position: relative;
  height: clamp(280px, 42vw, 420px);
  max-width: 920px;
  margin: 0 auto var(--spacing-8);
}

.float-card {
  position: absolute;
  background: var(--surface-elevated-card);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm-2);
  overflow: hidden;
  text-align: left;
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}

.float-card--bare {
  padding: 0;
  background: transparent;
  box-shadow: var(--shadow-sm-2);
}

.float-card--bare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-cards);
}

.float-card__media {
  border-radius: var(--radius-2xl-2);
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
}

.float-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-card__meta {
  padding: var(--spacing-12) var(--spacing-12) var(--spacing-16);
}

.float-card__brand {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.014em;
  color: var(--color-ink-black);
}

.float-card__rating {
  margin: var(--spacing-4) 0 0;
  font-size: 9px;
  letter-spacing: -0.058em;
  color: var(--color-muted-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.float-card__stars {
  color: #f5a524;
  letter-spacing: 0;
}

.float-card:nth-child(1) {
  width: 160px;
  top: 12%;
  left: 10%;
  z-index: 3;
  animation-delay: 0s;
}

.float-card:nth-child(2) {
  width: 118px;
  top: 4%;
  left: 32%;
  z-index: 1;
  animation-delay: 0.4s;
}

.float-card:nth-child(3) {
  width: 124px;
  top: 2%;
  right: 34%;
  left: auto;
  z-index: 1;
  animation-delay: 0.8s;
}

.float-card:nth-child(4) {
  width: 168px;
  top: 14%;
  right: 8%;
  left: auto;
  z-index: 3;
  animation-delay: 1.2s;
}

.float-card:nth-child(5) {
  width: 132px;
  bottom: 2%;
  left: 22%;
  top: auto;
  z-index: 2;
  animation-delay: 0.6s;
}

.float-card:nth-child(6) {
  width: 148px;
  bottom: 0;
  right: 22%;
  left: auto;
  top: auto;
  z-index: 2;
  animation-delay: 1s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.wordmark {
  position: relative;
  z-index: 4;
  display: inline-block;
  margin: -28px auto var(--spacing-24);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--color-shop-violet);
}

.wordmark__o {
  position: relative;
  display: inline-block;
}

.wordmark__dot {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 0.28em;
  height: 0.28em;
  margin: 0;
  border-radius: 50%;
  background: var(--color-shop-violet);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ——— Search ——— */
.search {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 4px 4px 4px 20px;
  background: var(--color-pure-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-search);
  box-shadow: var(--shadow-sm);
}

.search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--text-body-lg);
  letter-spacing: -0.031em;
  color: var(--color-ink-black);
}

.search__input::placeholder {
  color: var(--color-muted-gray);
}

.search__submit {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-shop-violet);
  color: var(--color-pure-white);
  box-shadow: var(--shadow-lg-2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.search__submit:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(69, 36, 219, 0.45);
}

.search__submit:active {
  transform: scale(0.98);
}

.search__submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes violetPulse {
  0%,
  100% {
    box-shadow: var(--shadow-lg-2);
  }
  50% {
    box-shadow: 0 4px 28px rgba(69, 36, 219, 0.5);
  }
}

.search__submit.is-ready {
  animation: violetPulse 2.8s ease-in-out infinite;
}

/* ——— Category pills ——— */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-12);
  margin: var(--spacing-32) auto 0;
  max-width: 920px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: 6px 16px 6px 6px;
  background: var(--color-pure-white);
  border: 1px solid var(--color-faint-border);
  border-radius: var(--radius-chips);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-body-lg);
  letter-spacing: -0.031em;
  color: var(--color-ink-black);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.pill__media {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.pill__media img,
.pill__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  border: 0;
}

/* ——— Category sections ——— */
.categories {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  margin-top: var(--spacing-80);
  padding-bottom: var(--spacing-48);
}

.category-head {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-6);
  margin: 0 0 var(--spacing-24);
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--color-ink-black);
}

.category-head svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-rail {
  position: relative;
}

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

.category-grid--pair {
  grid-template-columns: 1.35fr 1fr;
  gap: var(--spacing-16);
}

.mosaic {
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm-2);
  padding: var(--spacing-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-8);
}

.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl-2);
  overflow: hidden;
  background: var(--color-canvas-mist);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.2px;
  color: var(--color-ink-black);
  line-height: 1.2;
}

.brand-hero {
  position: relative;
  border-radius: var(--radius-cards);
  overflow: hidden;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface-accent-product-image);
  box-shadow: var(--shadow-sm-2);
}

.brand-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-hero__overlay {
  position: absolute;
  inset: 0;
  padding: var(--spacing-24);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 45%);
  color: var(--color-pure-white);
  text-align: left;
}

.brand-hero__name {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.brand-hero__rating {
  margin-top: var(--spacing-8);
  font-size: var(--text-body);
  letter-spacing: -0.014em;
  opacity: 0.95;
}

.spotlight {
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-sm-2);
  overflow: hidden;
}

.spotlight__media {
  aspect-ratio: 1;
  border-radius: var(--radius-2xl-2);
  overflow: hidden;
}

.spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight__body {
  padding: var(--spacing-12) var(--spacing-16) var(--spacing-16);
}

.spotlight__brand {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.2px;
}

.spotlight__rating {
  margin: var(--spacing-4) 0 0;
  font-size: 9px;
  letter-spacing: -0.5px;
  color: var(--color-muted-gray);
}

.spotlight__thumbs {
  display: flex;
  gap: 2px;
  margin-top: var(--spacing-12);
}

.spotlight__thumbs img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-lg);
  color: var(--color-ink-black);
}

.carousel-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-row {
  display: flex;
  gap: var(--spacing-12);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row > * {
  flex: 0 0 min(260px, 72vw);
  scroll-snap-align: start;
}

/* ——— Cookie ——— */
.cookie {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
  max-width: min(420px, calc(100vw - 32px));
  padding: var(--spacing-16) var(--spacing-20);
  background: var(--color-pure-white);
  border: 1px solid var(--color-faint-border);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg);
}

.cookie__text {
  margin: 0;
  font-size: var(--text-body);
  letter-spacing: -0.014em;
  line-height: 1.4;
  color: var(--color-ink-black);
}

.cookie__text a {
  text-decoration: underline;
}

.cookie__actions {
  display: flex;
  gap: var(--spacing-8);
  flex-shrink: 0;
}

.cookie__btn {
  padding: 6px 16px;
  border-radius: var(--radius-buttons);
  border: 1px solid var(--color-faint-border);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.017em;
  white-space: nowrap;
}

.cookie.is-hidden {
  display: none;
}

/* ——— Footer ——— */
.footer {
  background: var(--color-ink-black);
  color: var(--color-pure-white);
  margin-left: var(--sidebar-width);
  padding: var(--spacing-64) clamp(16px, 3vw, 40px) var(--spacing-40);
}

.footer__grid {
  width: min(100%, var(--page-max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-32);
}

.footer__title {
  margin: 0 0 var(--spacing-16);
  font-size: var(--text-body-sm);
  letter-spacing: -0.017em;
  color: var(--color-cool-stone);
  font-weight: var(--font-weight-medium);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-10);
}

.footer__list a {
  font-size: var(--text-body);
  letter-spacing: -0.014em;
  opacity: 0.92;
}

.footer__list a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__bottom {
  width: min(100%, var(--page-max-width));
  margin: var(--spacing-48) auto 0;
  padding-top: var(--spacing-24);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-16);
  font-size: var(--text-body-sm);
  color: var(--color-cool-stone);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid--pair {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .float-card:nth-child(5),
  .float-card:nth-child(6) {
    display: none;
  }
}

@media (max-width: 720px) {
  .sidebar {
    display: none;
  }

  .footer {
    margin-left: 0;
  }

  .constellation {
    height: 260px;
  }

  .float-card:nth-child(1) {
    width: 110px;
    left: 0;
  }

  .float-card:nth-child(2) {
    width: 96px;
    left: 24%;
  }

  .float-card:nth-child(3) {
    width: 104px;
    right: 22%;
  }

  .float-card:nth-child(4) {
    width: 112px;
    right: 0;
  }

  .wordmark {
    margin-top: -20px;
    font-size: 44px;
  }

  .pills {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .pills::-webkit-scrollbar {
    display: none;
  }

  .cookie {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie__actions {
    justify-content: flex-end;
  }
}
