:root {
  --page-bg: #ededeb;
  --panel-bg: rgba(247, 247, 245, 0.94);
  --surface: #d8d8d8;
  --surface-dark: #101113;
  --surface-muted: #f3f2ef;
  --text-main: #161719;
  --text-muted: #6a6d72;
  --text-inverse: #f4f2ef;
  --line: rgba(16, 17, 19, 0.12);
  --line-inverse: rgba(255, 255, 255, 0.1);
  --accent: #c47b2b;
  --heading-font: "Space Grotesk", sans-serif;
  --body-font: "DM Sans", sans-serif;
  --shadow-soft: 0 18px 44px rgba(14, 17, 22, 0.08);
  --shadow-card: 0 16px 40px rgba(12, 14, 17, 0.18);
  --container: min(1360px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--body-font);
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 38%),
    radial-gradient(circle at bottom right, rgba(196, 123, 43, 0.08), transparent 28%),
    var(--page-bg);
}

body.nav-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

svg {
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.announcement-bar {
  background: #101113;
  color: var(--text-inverse);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.announcement-bar__inner {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--heading-font);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.announcement-bar__inner p {
  margin: 0;
}

.announcement-bar__accent {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(196, 123, 43, 0.1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: var(--panel-bg);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}

.icon-button {
  border: 0;
  background: transparent;
  color: currentColor;
  padding: 0;
  cursor: pointer;
}

.menu-toggle {
  width: 24px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand__main {
  font-family: var(--heading-font);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.desktop-nav {
  display: flex;
  justify-self: center;
  gap: 24px;
  font-family: var(--heading-font);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.desktop-nav a,
.header-meta span,
.footer-heading,
.tile__label,
.assurance h2,
.nav-drawer__eyebrow,
.nav-drawer__label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-meta {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-family: var(--heading-font);
  font-size: 0.56rem;
}

.tool-button {
  width: 18px;
  height: 18px;
}

.tool-button svg,
.nav-drawer__close svg,
.assurance svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(86vw, 360px);
  padding: 24px 22px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 242, 239, 0.98)),
    var(--surface-muted);
  border-right: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(-104%);
  transition: transform 220ms ease;
}

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

.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-drawer__eyebrow {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.nav-drawer__close {
  width: 20px;
  height: 20px;
}

.nav-drawer__links {
  display: grid;
  gap: 14px;
}

.nav-drawer__links a {
  font-family: var(--heading-font);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-drawer__meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.nav-drawer__label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--heading-font);
  font-size: 0.55rem;
  color: var(--text-muted);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  border: 0;
  background: rgba(10, 11, 12, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.nav-open .scrim {
  opacity: 1;
  pointer-events: auto;
}

.page-main {
  padding: 18px 0 0;
}

.route-collection .catalog {
  display: none;
}

.route-collection .page-main {
  padding-top: 28px;
}

.catalog {
  padding-bottom: 20px;
}

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

.tile {
  opacity: 0;
  animation: tile-reveal 620ms ease forwards;
}

.tile:nth-child(2) { animation-delay: 40ms; }
.tile:nth-child(3) { animation-delay: 80ms; }
.tile:nth-child(4) { animation-delay: 120ms; }
.tile:nth-child(5) { animation-delay: 160ms; }
.tile:nth-child(6) { animation-delay: 200ms; }
.tile:nth-child(7) { animation-delay: 240ms; }
.tile:nth-child(8) { animation-delay: 280ms; }
.tile:nth-child(9) { animation-delay: 320ms; }
.tile:nth-child(10) { animation-delay: 360ms; }
.tile:nth-child(11) { animation-delay: 400ms; }
.tile:nth-child(12) { animation-delay: 440ms; }

.tile__link {
  position: relative;
  display: block;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #d6d6d4;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tile__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(6, 8, 10, 0) 0%, rgba(6, 8, 10, 0.55) 100%);
  pointer-events: none;
}

.tile__link:hover,
.tile__link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(18, 19, 21, 0.18);
  box-shadow: var(--shadow-card);
}

.tile__media {
  height: 100%;
}

.tile__media svg {
  width: 100%;
  height: 100%;
}

.tile__media--graphite {
  background: #1d2126;
}

.tile__media--obsidian {
  background: #111417;
}

.tile__media--pearl {
  background: #d8d8d8;
}

.tile__media--mist {
  background: #d4d4d4;
}

.tile__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--heading-font);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-inverse);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.tile.is-active .tile__link {
  border-color: rgba(17, 18, 20, 0.28);
  box-shadow: 0 18px 44px rgba(10, 12, 16, 0.18);
  transform: translateY(-2px);
}

.tile.is-active .tile__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.collection-header__eyebrow,
.collection-select span,
.product-card__account,
.product-card__extra {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.collection-header__eyebrow,
.collection-select span,
.product-card__extra {
  color: var(--text-muted);
}

.collection-header__title {
  margin: 0;
  font-family: var(--heading-font);
  letter-spacing: 0.03em;
}

.collection-select select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(17, 18, 20, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 14px;
  font: inherit;
  color: var(--text-main);
}

.collection-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(17, 18, 20, 0.12);
  background: #111214;
  color: var(--text-inverse);
  font-family: var(--heading-font);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible,
.collection-link:hover,
.collection-link:focus-visible {
  transform: translateY(-1px);
  background: #000;
}

.auth-error {
  margin: 0;
  color: #b32929;
  font-size: 0.92rem;
}

.collection-section {
  padding: 18px 0 42px;
}

.collection-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.collection-breadcrumb a {
  color: var(--text-main);
}

.collection-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  margin-bottom: 18px;
}

.collection-header__copy {
  display: grid;
  gap: 8px;
}

.collection-header__title {
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 2rem);
}

.collection-header__meta {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.collection-header__controls {
  display: flex;
  align-items: end;
  gap: 12px;
}

.collection-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.collection-models__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--heading-font);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.collection-models__link:hover,
.collection-models__link:focus-visible {
  border-color: rgba(17, 18, 20, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.collection-models__link.is-active {
  border-color: rgba(17, 18, 20, 0.7);
  background: #111317;
  color: var(--text-inverse);
}

.collection-select {
  display: grid;
  gap: 7px;
  min-width: 180px;
}

.collection-status {
  min-height: 22px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.collection-status.is-error {
  color: #a12626;
}

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

.product-card {
  display: grid;
  gap: 11px;
  color: inherit;
}

.product-card__media {
  overflow: hidden;
  border: 1px solid rgba(17, 18, 20, 0.08);
  background: #f1f2f3;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-card__media-main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: 1 / 1.05;
  background: #f1f2f3;
}

.product-card__media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__media-empty {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.product-card__thumbs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(17, 18, 20, 0.08);
}

.product-card__thumbs img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.product-card__plus {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 18, 20, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  font-family: var(--heading-font);
  font-size: 0.9rem;
}

.product-card__account {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 18, 20, 0.08);
}

.product-card__body {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.product-card__title {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.product-card__price {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.product-card__extra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-card__extra::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(17, 18, 20, 0.18);
}

.product-empty {
  grid-column: 1 / -1;
  padding: 34px 18px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-muted);
  text-align: center;
}

.product-skeleton {
  display: grid;
  gap: 11px;
}

.product-skeleton__media,
.product-skeleton__line {
  background: linear-gradient(90deg, rgba(223, 226, 229, 0.85), rgba(244, 245, 246, 0.95), rgba(223, 226, 229, 0.85));
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

.product-skeleton__media {
  aspect-ratio: 1 / 1.05;
}

.product-skeleton__line {
  height: 11px;
}

.product-skeleton__line--short {
  width: 48%;
}

.site-footer {
  background: #111214;
  color: var(--text-inverse);
}

.site-footer__assurances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line-inverse);
}

.assurance {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.assurance svg {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.assurance h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.62rem;
}

.assurance p {
  margin: 0;
  max-width: 18ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 34px 0 46px;
}

.footer-heading {
  margin: 0 0 18px;
  font-family: var(--heading-font);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-list a,
.footer-address a,
.footer-address p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-address p {
  margin: 0;
}

.footer-address {
  display: grid;
  gap: 4px;
}

@keyframes tile-reveal {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -20% 0;
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 18px;
  }

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

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

@media (max-width: 920px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

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

  .collection-header {
    align-items: start;
    flex-direction: column;
  }

  .collection-header__controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collection-select {
    min-width: 0;
  }

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

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

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 16px, 100%);
  }

  .announcement-bar__inner {
    min-height: 22px;
    font-size: 0.42rem;
    letter-spacing: 0.22em;
  }

  .header-inner {
    gap: 10px;
    min-height: 52px;
  }

  .brand__main {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }

  .brand__sub {
    font-size: 0.42rem;
    letter-spacing: 0.22em;
  }

  .header-meta {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  .tool-button {
    width: 16px;
    height: 16px;
  }

  .page-main {
    padding-top: 10px;
  }

  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .tile__link {
    min-height: 220px;
  }

  .tile__label {
    left: 11px;
    bottom: 11px;
    font-size: 0.6rem;
  }

  .collection-section {
    padding: 10px 0 30px;
  }

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

  .collection-breadcrumb,
  .collection-models__link {
    font-size: 0.52rem;
  }

  .collection-link {
    grid-column: 1 / -1;
  }

  .product-grid {
    gap: 14px 10px;
  }

  .product-card__title {
    font-size: 0.76rem;
  }

  .product-card__price {
    font-size: 0.74rem;
  }

  .product-card__account,
  .product-card__extra,
  .collection-select span,
  .collection-header__eyebrow {
    font-size: 0.5rem;
  }

  .site-footer__assurances,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .product-card__thumbs img {
    width: 28px;
    height: 28px;
  }

  .site-footer__assurances {
    padding: 26px 0 22px;
  }

  .site-footer__grid {
    padding: 28px 0 40px;
  }

  .assurance p {
    max-width: none;
  }
}

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

  .tile {
    opacity: 1;
    animation: none;
  }

  .tile__link,
  .auth-submit,
  .collection-link,
  .desktop-nav a::after,
  .nav-drawer,
  .scrim,
  .menu-toggle span {
    transition: none;
  }
}
