@font-face {
  font-family: 'Sharpe Variable Bold';
  src: local('Sharpe Variable Bold'), local('Sharpe Variable');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f0ef;
  --bg-soft: #faf7f6;
  --ink: #7b2d2f;
  --ink-strong: #682325;
  --line: #d8c7c5;
  --line-dark: #b78f8f;
  --shadow: rgba(74, 26, 28, 0.16);
  --headline-font: 'Syne', 'League Spartan', sans-serif;
  --ui-font: 'Outfit', sans-serif;
  --texture-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  --texture-fiber: repeating-linear-gradient(45deg, rgba(116, 67, 67, 0.03) 0, rgba(116, 67, 67, 0.03) 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 6px);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-smooth: all 0.6s var(--ease-expo);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: var(--transition-smooth);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: var(--transition-smooth);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  font-family: var(--ui-font);
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    var(--texture-fiber),
    var(--texture-noise);
  background-size: 260px 260px, 190px 190px;
  background-attachment: fixed;
}

.top-nav,
.hero-carousel,
.hero-intro-center,
.hero-category-slide,
.hero-category-card,
.ticker-wrap,
.fit-card,
.product-card,
.testimonial-card,
.site-footer,
.sidebar,
.side-drawer,
.search-drawer,
.login-card {
  background-image:
    var(--texture-fiber),
    var(--texture-noise);
  background-size: 240px 240px, 170px 170px;
  background-blend-mode: multiply, multiply;
}

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

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

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

.page-shell {
  position: relative;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  height: 70px;
  padding: 0 2.4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background-color: rgba(246, 240, 239, 0.85);
  backdrop-filter: blur(8px);
  transition: background-color 0.4s ease, border-bottom 0.4s ease;
}

.top-nav.scrolled {
  background-color: color-mix(in srgb, var(--bg) 95%, white 5%);
  border-bottom-color: var(--line-dark);
}

.brand {
  justify-self: center;
  width: clamp(220px, 26vw, 390px);
}

.brand img {
  width: 100%;
  height: 66px;
  object-fit: contain;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-button {
  border: 0;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.icon-button:hover {
  background: rgba(123, 45, 47, 0.08);
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plain {
  width: 34px;
  height: 34px;
}

.count-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  line-height: 1;
  color: #fff;
  background: var(--ink-strong);
  border: 1px solid color-mix(in srgb, var(--ink-strong) 60%, white 40%);
}

.user-pill {
  position: absolute;
  right: -8px;
  bottom: -2px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink-strong);
  border-radius: 10px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 18px;
  height: 14px;
  display: none;
  place-items: center;
  padding: 0 3px;
}

.user-pill.show {
  display: grid;
}

.hero-carousel {
  position: relative;
  border-bottom: 1px solid var(--line);
  margin-top: 2px;
  min-height: clamp(500px, 72vh, 760px);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.hero-carousel-viewport {
  overflow: hidden;
  min-height: 100%;
}

.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.85s var(--ease-expo);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  min-height: clamp(500px, 72vh, 760px);
  display: grid;
  align-items: stretch;
}

.hero-slide .hero-intro-grid,
.hero-slide .hero-category-slide {
  opacity: 0.52;
  transform: scale(0.985) translateY(8px);
  transition: opacity 0.65s ease, transform 0.8s var(--ease-expo);
}

.hero-slide.active .hero-intro-grid,
.hero-slide.active .hero-category-slide {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-intro-grid {
  min-height: inherit;
  display: grid;
  grid-template-columns: 1fr 1.65fr 1fr;
}

.hero-intro-image {
  border-inline: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.hero-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.8) contrast(1.04);
}

.hero-intro-center {
  border-inline: 1px solid var(--line);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.hero-main-title {
  margin: 0;
  font-family: var(--headline-font);
  color: var(--ink-strong);
  font-size: clamp(2.4rem, 5.8vw, 6rem);
  letter-spacing: 0.01em;
  line-height: 0.88;
  text-transform: uppercase;
  font-weight: 900;
  text-align: center;
}

.hero-main-title span {
  display: block;
}

.hero-shop-btn {
  min-width: 132px;
}

.hero-category-slide {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(300px, 1.2fr) minmax(90px, 0.8fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 2.4vw, 2rem);
}

.hero-category-card {
  margin: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 90%, white 10%);
  width: min(420px, 100%);
  justify-self: center;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(64, 24, 26, 0.14);
}

.hero-category-card img {
  width: 100%;
  height: clamp(250px, 38vh, 390px);
  object-fit: cover;
}

.hero-category-card figcaption {
  padding: 1rem 1rem 1.2rem;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.hero-category-card h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.hero-category-slide-women .hero-category-card,
.hero-category-slide-men .hero-category-card {
  width: min(438px, 100%);
  aspect-ratio: auto;
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 0.88rem 0.88rem 5.2rem;
  background: #fcf9f8;
  border: 1px solid #e3d3d1;
  box-shadow:
    0 18px 34px rgba(56, 19, 21, 0.15),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  transform: rotate(-0.8deg);
}

.hero-category-slide-women .hero-category-card::before,
.hero-category-slide-men .hero-category-card::before {
  content: "";
  position: absolute;
  top: 0.36rem;
  left: 50%;
  transform: translateX(-50%) rotate(-1.8deg);
  width: 86px;
  height: 22px;
  border: 1px solid rgba(173, 146, 146, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(246, 237, 237, 0.58));
  z-index: 2;
  pointer-events: none;
}

.hero-category-slide-women .polaroid-carousel,
.hero-category-slide-men .polaroid-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddcccc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  outline: none;
}

.hero-category-slide-women .polaroid-track,
.hero-category-slide-men .polaroid-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s var(--ease-expo);
}

.hero-category-slide-women .polaroid-slide,
.hero-category-slide-men .polaroid-slide {
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transform: none !important;
}

.hero-category-slide-women .polaroid-arrow,
.hero-category-slide-men .polaroid-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid rgba(123, 45, 47, 0.16);
  border-radius: 50%;
  color: var(--ink-strong);
  background: rgba(251, 247, 246, 0.78);
  backdrop-filter: blur(2px);
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-category-slide-women .polaroid-carousel:hover .polaroid-arrow,
.hero-category-slide-women .polaroid-carousel:focus-within .polaroid-arrow,
.hero-category-slide-men .polaroid-carousel:hover .polaroid-arrow,
.hero-category-slide-men .polaroid-carousel:focus-within .polaroid-arrow {
  opacity: 1;
}

.hero-category-slide-women .polaroid-arrow:hover,
.hero-category-slide-men .polaroid-arrow:hover {
  background: rgba(251, 247, 246, 0.95);
  border-color: rgba(123, 45, 47, 0.4);
}

.hero-category-slide-women .polaroid-prev,
.hero-category-slide-men .polaroid-prev {
  left: 0.4rem;
}

.hero-category-slide-women .polaroid-next,
.hero-category-slide-men .polaroid-next {
  right: 0.4rem;
}

.hero-category-slide-women .polaroid-dots,
.hero-category-slide-men .polaroid-dots {
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.32rem;
  z-index: 1;
}

.hero-category-slide-women .polaroid-dot,
.hero-category-slide-men .polaroid-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(123, 45, 47, 0.45);
  background: rgba(252, 247, 246, 0.75);
  padding: 0;
  cursor: pointer;
}

.hero-category-slide-women .polaroid-dot.active,
.hero-category-slide-men .polaroid-dot.active {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
}

.hero-category-slide-women .polaroid-carousel.is-static .polaroid-arrow,
.hero-category-slide-women .polaroid-carousel.is-static .polaroid-dots,
.hero-category-slide-men .polaroid-carousel.is-static .polaroid-arrow,
.hero-category-slide-men .polaroid-carousel.is-static .polaroid-dots {
  display: none;
}

.hero-category-slide-women .hero-category-card figcaption,
.hero-category-slide-men .hero-category-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.8rem;
  padding: 0 1rem;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.hero-category-slide-women .hero-category-card h3,
.hero-category-slide-men .hero-category-card h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.hero-category-slide-women .hero-category-card .ghost-btn,
.hero-category-slide-men .hero-category-card .ghost-btn {
  padding: 0.44rem 0.86rem;
  font-size: 0.68rem;
}

.hero-side-label-block,
.hero-side-note-block {
  position: relative;
  min-height: clamp(250px, 38vh, 390px);
  display: grid;
  align-items: center;
  justify-items: center;
}

.hero-category-slide-women .hero-side-label-block,
.hero-category-slide-men .hero-side-label-block {
  align-items: start;
  justify-items: start;
  padding: 0.8rem 0.2rem 0.2rem 0.6rem;
}

.hero-category-slide-women .hero-side-note-block,
.hero-category-slide-men .hero-side-note-block {
  align-items: end;
  justify-items: end;
  padding: 0.2rem 0.6rem 0.8rem 0.2rem;
}

.hero-side-label,
.hero-side-note {
  margin: 0;
  font-family: "Caveat", cursive;
  color: color-mix(in srgb, var(--ink) 88%, #fff 12%);
  font-size: clamp(3.0rem, 5vw, 5rem);
  line-height: 1;
  text-align: center;
  letter-spacing: 0.01em;
}

.hero-category-slide-women .hero-side-label,
.hero-category-slide-men .hero-side-label {
  text-align: left;
}

.hero-category-slide-women .hero-side-note,
.hero-category-slide-men .hero-side-note {
  text-align: right;
}

.hero-side-note {
  font-size: clamp(2.7rem, 4.5vw, 4.3rem);
}

.hero-category-slide-women .hero-side-label-block::after,
.hero-category-slide-men .hero-side-label-block::after,
.hero-category-slide-women .hero-side-note-block::before,
.hero-category-slide-men .hero-side-note-block::before,
.hero-category-slide-women .hero-side-note-block::after,
.hero-category-slide-men .hero-side-note-block::after {
  content: none;
}

.hero-side-image {
  margin: 0;
  border: 1px solid var(--line);
  height: clamp(250px, 38vh, 390px);
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
}

.hero-side-image figcaption {
  position: absolute;
  left: 0.55rem;
  bottom: 0.4rem;
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  color: color-mix(in srgb, var(--ink) 88%, #fff 12%);
  background: rgba(248, 243, 242, 0.78);
  padding: 0.16rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  color: var(--ink-strong);
  background: rgba(123, 45, 47, 0.08);
  opacity: 0.35;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(123, 45, 47, 0.16);
  opacity: 0.75;
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

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

.carousel-arrow-left {
  left: 0.4rem;
}

.carousel-arrow-right {
  right: 0.4rem;
}

.hero-carousel-footer {
  border-top: 1px solid var(--line);
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.carousel-dot {
  border: 1px solid var(--line-dark);
  background: transparent;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
}

.carousel-status {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: color-mix(in srgb, var(--ink) 84%, #fff 16%);
}

.ticker-wrap {
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-soft);
  display: flex;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  gap: 0;
  animation: ticker-scroll 35s linear infinite;
  will-change: transform;
}

.ticker-track span {
  flex-shrink: 0;
  padding-inline: 1rem;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--ink) 90%, #fff 10%);
  text-transform: uppercase;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tryon-section,
.fit-section,
.product-section,
.testimonial-section {
  width: min(1200px, 94vw);
  margin-inline: auto;
}

.tryon-section {
  --tryon-pad-height: clamp(560px, 70vh, 800px);
  --tryon-dial-size: var(--tryon-pad-height);
  --tryon-dial-panel-width: calc(var(--tryon-pad-height) / 2 + 16px);
  margin-top: 2rem;
  padding: 1.4rem;
  border: 1px solid color-mix(in srgb, var(--line-dark) 62%, white 38%);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 20%, rgba(121, 45, 47, 0.09) 0%, transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(81, 47, 29, 0.07) 0%, transparent 24%),
    repeating-linear-gradient(0deg, rgba(82, 40, 30, 0.06) 0, rgba(82, 40, 30, 0.06) 1px, transparent 1px, transparent 34px),
    repeating-linear-gradient(90deg, rgba(82, 40, 30, 0.06) 0, rgba(82, 40, 30, 0.06) 1px, transparent 1px, transparent 34px),
    color-mix(in srgb, var(--bg-soft) 86%, white 14%);
  overflow: hidden;
}

.tryon-head {
  text-align: center;
  margin-bottom: 1rem;
}

.tryon-script {
  margin: 0;
  font-family: "Caveat", cursive;
  color: color-mix(in srgb, var(--ink) 86%, #fff 14%);
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  line-height: 1;
}

.tryon-head h2 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--headline-font);
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.tryon-head p:last-child {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 76%, #fff 24%);
  font-size: 0.96rem;
}

.tryon-layout {
  display: grid;
  grid-template-columns: var(--tryon-dial-panel-width) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.tryon-dial-panel {
  position: relative;
  height: var(--tryon-pad-height);
  border-radius: 999px 0 0 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 50%, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(248, 239, 235, 0.52) 100%);
  border-top: 1px solid color-mix(in srgb, var(--line-dark) 46%, white 54%);
  border-bottom: 1px solid color-mix(in srgb, var(--line-dark) 46%, white 54%);
  border-left: 1px solid color-mix(in srgb, var(--line-dark) 46%, white 54%);
  border-right: 2px solid color-mix(in srgb, var(--line-dark) 70%, white 30%);
  box-shadow:
    inset 12px 0 24px rgba(64, 22, 25, 0.12),
    inset -10px 0 16px rgba(255, 255, 255, 0.24);
}

.tryon-dial-caption {
  display: none;
}

.tryon-dial {
  --dial-rotation: 0deg;
  width: var(--tryon-dial-size);
  aspect-ratio: 1;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: calc(var(--tryon-dial-size) / -2 + 1px);
  transform: translateY(-50%);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at center, #fff8f4 0 31%, #ead7cd 31% 55%, #b88f86 55% 62%, #8a5457 62% 100%);
  border: 2px solid rgba(111, 58, 61, 0.62);
  box-shadow:
    inset 0 10px 22px rgba(255, 255, 255, 0.38),
    inset 0 -22px 24px rgba(55, 20, 20, 0.26),
    0 22px 26px rgba(47, 15, 19, 0.23);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.tryon-dial::before {
  content: "";
  position: absolute;
  inset: 5.4%;
  border-radius: 50%;
  border: 1px solid rgba(255, 244, 240, 0.8);
  box-shadow: inset 0 0 0 1px rgba(109, 45, 53, 0.18);
  pointer-events: none;
  z-index: 1;
}

.tryon-dial::after {
  content: "";
  position: absolute;
  inset: 2.2%;
  border-radius: 50%;
  border: 1px solid rgba(66, 19, 24, 0.2);
  pointer-events: none;
  z-index: 1;
}

.tryon-dial-glass {
  position: absolute;
  inset: 4% 3.4% 3.8% 4.2%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 27% 19%, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 33%),
    radial-gradient(circle at 67% 74%, rgba(255, 246, 242, 0.24) 0%, rgba(255, 246, 242, 0) 46%);
  pointer-events: none;
  z-index: 2;
}

.tryon-dial.dragging {
  cursor: grabbing;
}

.tryon-dial-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: rotate(var(--dial-rotation));
  transition: transform 0.1s cubic-bezier(0.25, 0.7, 0.25, 1);
  z-index: 3;
}

.tryon-dial.dragging .tryon-dial-ring {
  transition: none;
}

.tryon-dial-tick {
  --tick-radius: calc(var(--tryon-dial-size) / 2 - clamp(16px, 2.2vw, 24px));
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: clamp(10px, 1.4vw, 14px);
  border-radius: 999px;
  background: rgba(96, 38, 47, 0.36);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--tick-radius) * -1));
  transform-origin: center;
  pointer-events: none;
}

.tryon-dial-tick.major {
  width: 3px;
  height: clamp(14px, 2vw, 20px);
  background: rgba(96, 38, 47, 0.62);
}

.tryon-dial-mini {
  --mini-size: clamp(28px, 3.2vw, 42px);
  --mini-radius: calc(var(--tryon-dial-size) / 2 - clamp(52px, 6.2vw, 74px));
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--mini-size);
  height: var(--mini-size);
  border-radius: 50%;
  border: 2px solid rgba(239, 219, 212, 0.92);
  background: #f5e8e2;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--mini-radius) * -1)) rotate(calc(var(--angle) * -1));
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.58),
    0 3px 8px rgba(74, 25, 32, 0.22);
  pointer-events: none;
}

.tryon-dial-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  display: block;
  opacity: 0.78;
  filter: saturate(0.84) contrast(0.92);
}

.tryon-dial-hole {
  --hole-size: clamp(56px, 6.4vw, 82px);
  --hole-radius: calc(var(--tryon-dial-size) / 2 - clamp(78px, 8.6vw, 104px));
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--hole-size);
  height: var(--hole-size);
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(109, 45, 53, 0.44);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 48%),
    #f4e6e0;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--hole-radius) * -1)) rotate(calc(var(--angle) * -1));
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.56),
    inset 0 -4px 6px rgba(74, 25, 32, 0.2),
    0 5px 12px rgba(69, 20, 24, 0.28);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tryon-dial-hole::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 241, 236, 0.74);
  pointer-events: none;
}

.tryon-dial-hole img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  display: block;
  filter: saturate(0.9) contrast(0.96);
}

.tryon-dial-hole.active {
  border-color: rgba(133, 42, 53, 0.78);
  box-shadow:
    inset 0 0 0 2px rgba(248, 241, 238, 0.8),
    0 8px 15px rgba(71, 20, 26, 0.38);
}

.tryon-dial-stop {
  position: absolute;
  right: calc(var(--tryon-dial-size) * 0.08);
  bottom: calc(var(--tryon-dial-size) * 0.18);
  width: clamp(22px, 2.6vw, 32px);
  height: clamp(62px, 7.4vw, 88px);
  border-radius: 999px;
  border: 2px solid rgba(116, 42, 52, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(219, 187, 176, 0.92) 100%);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.68),
    0 5px 11px rgba(61, 20, 25, 0.24);
  z-index: 6;
  pointer-events: none;
}

.tryon-dial-spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 34%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(121, 40, 48, 0.1) 0%, rgba(121, 40, 48, 0.64) 100%);
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 5;
}

.tryon-dial-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(58px, 6.2vw, 82px);
  height: clamp(58px, 6.2vw, 82px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #6e2a34 0%, #4d1820 100%);
  border: 3px solid rgba(247, 233, 225, 0.78);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.42),
    0 5px 12px rgba(33, 10, 15, 0.38);
  pointer-events: none;
  z-index: 7;
}

.tryon-dial-label {
  display: none;
}

.tryon-stage {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--line-dark) 58%, white 42%);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--bg-soft) 78%, white 22%);
  box-shadow: 0 20px 34px rgba(63, 22, 26, 0.14);
  overflow: hidden;
  display: grid;
}

.tryon-stage-frames {
  position: relative;
  height: var(--tryon-pad-height);
  background:
    radial-gradient(circle at 8% 14%, rgba(121, 45, 47, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(248, 238, 234, 0.92) 100%);
}

.tryon-stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.16s linear;
  pointer-events: none;
}

.tryon-stage-image.active {
  opacity: 1;
}

.tryon-stage-caption {
  border-top: 1px solid color-mix(in srgb, var(--line-dark) 52%, white 48%);
  padding: 0.85rem 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
}

.tryon-stage-caption h3 {
  margin: 0;
  color: var(--ink-strong);
  letter-spacing: 0.02em;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.tryon-stage-caption p {
  margin: 0.22rem 0 0;
  color: color-mix(in srgb, var(--ink) 78%, #fff 22%);
  font-size: 0.93rem;
}

.tryon-stage-caption .card-btn {
  min-width: 178px;
  border-color: color-mix(in srgb, var(--line-dark) 64%, white 36%);
  background: color-mix(in srgb, var(--bg-soft) 88%, white 12%);
}

.fit-section {
  padding-block: 2.6rem 2.1rem;
}

.fit-section h2,
.testimonial-section h2,
.product-section h2 {
  margin: 0 0 1.8rem;
  text-align: center;
  color: var(--ink-strong);
  font-family: var(--headline-font);
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

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

.fit-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--bg-soft) 88%, white 12%);
  display: grid;
  grid-template-rows: minmax(320px, 360px) auto;
  position: relative;
  isolation: isolate;
}

.fit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(0.9) contrast(0.95);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 86%, white 14%);
}

.fit-card-text {
  padding: 1.12rem 1rem 1.35rem;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg-soft) 84%, white 16%) 0%,
      color-mix(in srgb, var(--bg-soft) 94%, white 6%) 100%);
}

.fit-card-text h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.25vw, 2.25rem);
  letter-spacing: 0.03em;
  color: var(--ink-strong);
  line-height: 1.04;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fit-card-text p {
  margin: 0.38rem 0 1.05rem;
  color: color-mix(in srgb, var(--ink-strong) 86%, #fff 14%);
  font-size: 1.02rem;
  font-weight: 500;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin-bottom: 0;
  text-align: left;
}

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

.filter-btn,
.ghost-btn,
.solid-btn {
  border-radius: 2px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-family: var(--ui-font);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter-btn {
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #f8f2f1;
}

.solid-btn {
  border: 1px solid var(--ink-strong);
  color: #f8f2f1;
  background: var(--ink-strong);
}

.solid-btn:hover {
  background: color-mix(in srgb, var(--ink-strong) 88%, black 12%);
}

.ghost-btn {
  border: 1px solid var(--line-dark);
  color: var(--ink-strong);
  background: transparent;
}

.ghost-btn:hover {
  background: rgba(123, 45, 47, 0.09);
}

.solid-btn:active,
.ghost-btn:active,
.filter-btn:active {
  transform: scale(0.98);
}

/* Premium Buttons */
.solid-btn,
.ghost-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.solid-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(104, 35, 37, 0.2);
}

.ghost-btn:hover {
  border-color: var(--ink-strong);
  transform: translateY(-2px);
}

.card-btn {
  min-width: 206px;
  background: color-mix(in srgb, var(--bg-soft) 90%, white 10%);
  border-color: color-mix(in srgb, var(--ink) 42%, #fff 58%);
}

.fit-card .card-btn:hover {
  background: color-mix(in srgb, var(--bg-soft) 76%, white 24%);
}

/* Premium Cards */
.fit-card,
.product-card,
.testimonial-card {
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.fit-card:hover,
.product-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.fit-card img,
.product-card-image img {
  transition: transform 0.8s var(--ease-expo);
}

.fit-card:hover img {
  transform: scale(1.02);
}

.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

.product-section {
  border-top: 1px solid var(--line);
  padding: 2rem 1.15rem 2.35rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.65) 0%, transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(123, 45, 47, 0.08) 0%, transparent 34%),
    color-mix(in srgb, var(--bg-soft) 88%, white 12%);
  position: relative;
  overflow: hidden;
}

.product-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.18rem;
  align-items: stretch;
}

.product-grid .empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-dark);
  border-radius: 14px;
  padding: 1.05rem;
  background: color-mix(in srgb, var(--bg-soft) 88%, white 12%);
}

.product-section .section-head {
  margin-bottom: 0;
}

.section-head-copy {
  display: grid;
  gap: 0.42rem;
}

.section-head-copy h2 {
  margin: 0;
  line-height: 0.95;
}

.section-subtitle {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 76%, #fff 24%);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.product-section .fit-filters {
  padding: 0.34rem;
  border: 1px solid color-mix(in srgb, var(--line-dark) 74%, white 26%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-soft) 92%, white 8%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.product-section .filter-btn {
  border-radius: 999px;
  border-color: transparent;
  padding: 0.6rem 1rem;
  letter-spacing: 0.08em;
}

.product-section .filter-btn:hover {
  background: color-mix(in srgb, var(--ink) 12%, white 88%);
  border-color: transparent;
  color: var(--ink-strong);
}

.product-section .filter-btn.active {
  background: var(--ink-strong);
  color: #fff;
  border-color: var(--ink-strong);
  box-shadow: 0 7px 14px rgba(104, 35, 37, 0.24);
}

.product-card {
  border: 1px solid color-mix(in srgb, var(--line-dark) 58%, white 42%);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.9) 100%),
    color-mix(in srgb, var(--bg-soft) 84%, white 16%);
  padding: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(74, 26, 28, 0.09);
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--ink) 45%, #fff 55%);
  box-shadow: 0 18px 34px rgba(74, 26, 28, 0.15);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 5, 6, 0.14) 100%);
  pointer-events: none;
}

.product-card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 30%;
  border: 0;
}

.product-fit-chip {
  position: absolute;
  left: 0.75rem;
  top: 0.72rem;
  z-index: 1;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line-dark) 60%, #fff 40%);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-strong);
  padding: 0.32rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}

.heart-btn {
  position: absolute;
  top: 0.62rem;
  right: 0.62rem;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  z-index: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.heart-btn:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: color-mix(in srgb, var(--ink) 54%, #fff 46%);
}

.heart-btn.active {
  background: var(--ink-strong);
  color: #fff;
  border-color: var(--ink-strong);
}

.heart-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.product-meta {
  padding: 0.95rem 1rem 0.45rem;
}

.product-meta h3 {
  margin: 0;
  color: var(--ink-strong);
  letter-spacing: 0.03em;
  line-height: 1.15;
  font-size: clamp(1.35rem, 2.05vw, 2rem);
}

.product-meta p {
  margin: 0.4rem 0;
  color: color-mix(in srgb, var(--ink) 88%, #fff 12%);
  font-size: 0.95rem;
  line-height: 1.35;
}

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding: 0.48rem 1rem 1rem;
}

.product-row .price {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.18rem, 1.5vw, 1.48rem);
  color: var(--ink-strong);
}

.add-btn {
  border: 1px solid var(--ink-strong);
  background: color-mix(in srgb, var(--bg-soft) 92%, white 8%);
  color: var(--ink-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--ui-font);
  font-weight: 700;
  padding: 0.58rem 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.add-btn:hover {
  background: var(--ink-strong);
  color: #fff;
  box-shadow: 0 7px 18px rgba(104, 35, 37, 0.2);
  transform: translateY(-1px);
}

.testimonial-section {
  border-top: 1px solid var(--line);
  padding-block: 1.9rem 2.4rem;
}

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

.testimonial-card {
  border: 1px solid var(--line);
  padding: 1.35rem 1rem;
  background-color: color-mix(in srgb, var(--bg-soft) 87%, white 13%);
}

.testimonial-card .stars {
  margin: 0;
  letter-spacing: 0.26em;
  font-size: 1.05rem;
}

.testimonial-card h3 {
  margin: 0.7rem 0 0.55rem;
  color: var(--ink-strong);
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.testimonial-card p {
  margin: 0;
  line-height: 1.45;
  color: color-mix(in srgb, var(--ink) 84%, #fff 16%);
}

.testimonial-card span {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  width: min(1200px, 94vw);
  margin: 0 auto 2rem;
  padding-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: 0.07em;
}

.site-footer h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.18rem 0;
  color: color-mix(in srgb, var(--ink) 78%, #fff 22%);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 8, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 35;
}

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

.panel {
  position: fixed;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

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

.sidebar {
  left: 0;
  top: 0;
  height: 100dvh;
  width: min(340px, 92vw);
  border-right: 1px solid var(--line);
  background-color: color-mix(in srgb, var(--bg-soft) 94%, white 6%);
  padding: 1rem;
  transform: translateX(-100%);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sidebar-head h2,
.drawer-head h2,
.search-head h2,
.login-head h2 {
  margin: 0;
  font-family: var(--headline-font);
  font-size: 2rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.4rem;
}

.sidebar-nav a,
.sidebar-nav .dropdown-toggle,
.sidebar-nav .dropdown-content button {
  border: 0;
  border-bottom: 1px solid rgba(183, 143, 143, 0.4);
  text-align: left;
  padding: 0.78rem 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-nav .dropdown-toggle {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease;
}

.dropdown-content.open {
  max-height: 250px;
}

.dropdown-content button {
  width: 100%;
  cursor: pointer;
  padding-left: 0.8rem;
}

.side-drawer {
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(390px, 95vw);
  border-left: 1px solid var(--line);
  background-color: color-mix(in srgb, var(--bg-soft) 93%, white 7%);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
}

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

.product-detail-drawer {
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(980px, 100vw);
  border-left: 1px solid var(--line);
  background-color: color-mix(in srgb, var(--bg-soft) 95%, white 5%);
  transform: translateX(100%);
  display: grid;
  grid-template-rows: auto 1fr;
}

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

.product-detail-drawer .drawer-head {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 247, 246, 0.92);
  backdrop-filter: blur(4px);
}

.product-detail-content {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.95fr);
  gap: 1rem;
  padding: 1rem;
  overflow: auto;
}

.product-detail-gallery {
  display: grid;
  gap: 0.72rem;
}

.product-detail-main {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 5;
}

.product-detail-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

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

.detail-thumb {
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.detail-thumb.active {
  border-color: var(--ink-strong);
  box-shadow: 0 0 0 1px var(--ink-strong);
}

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

.product-detail-info {
  display: grid;
  align-content: start;
  gap: 0.78rem;
}

.detail-fit-tag {
  margin: 0;
  display: inline-flex;
  justify-self: start;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: color-mix(in srgb, var(--bg-soft) 85%, white 15%);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-detail-info h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--ink-strong);
  line-height: 0.95;
}

.detail-price {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.detail-description {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 85%, #fff 15%);
}

.detail-group,
.detail-qty-wrap {
  display: grid;
  gap: 0.42rem;
}

.detail-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: color-mix(in srgb, var(--ink) 85%, #fff 15%);
}

.detail-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail-option {
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink-strong);
  min-width: 46px;
  height: 36px;
  padding: 0 0.65rem;
  cursor: pointer;
  font-weight: 700;
}

.detail-option.active {
  border-color: var(--ink-strong);
  background: var(--ink-strong);
  color: #fff;
}

.detail-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.detail-color {
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink-strong);
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.5rem 0.56rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.82rem;
}

.detail-color.active {
  border-color: var(--ink-strong);
  background: color-mix(in srgb, var(--ink-strong) 7%, #fff 93%);
}

.detail-color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--swatch, #4d6480);
  flex-shrink: 0;
}

.detail-qty {
  border: 1px solid var(--line-dark);
  background: #fff;
  width: fit-content;
  min-width: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.34rem 0.44rem;
}

.detail-qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.detail-cta-row {
  margin-top: 0.15rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.detail-cta-row .solid-btn,
.detail-cta-row .ghost-btn {
  height: 44px;
}

.detail-points {
  margin: 0.2rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.4rem;
  color: color-mix(in srgb, var(--ink) 80%, #fff 20%);
  font-size: 0.84rem;
}

.search-drawer {
  top: 0;
  left: 50%;
  transform: translate(-50%, -102%);
  width: min(830px, 96vw);
  border: 1px solid var(--line);
  background-color: color-mix(in srgb, var(--bg-soft) 94%, white 6%);
  padding: 1rem;
}

.search-drawer.open {
  transform: translate(-50%, 18px);
}

.search-head,
.drawer-head,
.login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.search-input-wrap input {
  width: 100%;
  border: 1px solid var(--line-dark);
  padding: 0.74rem 0.8rem;
  margin-top: 0.5rem;
  font-family: var(--ui-font);
  color: var(--ink-strong);
  background: #fff;
}

.search-results {
  margin-top: 0.8rem;
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 0.5rem;
}

.search-item {
  border: 1px solid var(--line);
  padding: 0.6rem;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  background: #fff;
  cursor: pointer;
}

.search-item:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}

.search-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.search-item h4 {
  margin: 0;
  font-size: 0.88rem;
}

.search-item p {
  margin: 0.18rem 0 0;
  color: color-mix(in srgb, var(--ink) 74%, #fff 26%);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drawer-content {
  padding: 0.8rem;
  overflow: auto;
  flex: 1;
}

.drawer-item {
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.65rem;
  padding: 0.55rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.drawer-item:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 2px;
}

.drawer-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
}

.drawer-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.drawer-item p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 78%, #fff 22%);
  font-size: 0.8rem;
}

.drawer-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.52rem;
}

.mini-btn {
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink-strong);
  min-width: 26px;
  height: 26px;
  cursor: pointer;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.45rem;
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.drawer-foot p {
  margin: 0;
  font-weight: 700;
}

.login-modal {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 8, 8, 0.15);
}

.login-card {
  width: min(410px, 92vw);
  background-color: color-mix(in srgb, var(--bg-soft) 90%, white 10%);
  border: 1px solid var(--line);
  padding: 1rem;
  box-shadow: 0 18px 40px var(--shadow);
}

.login-card form {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.7rem;
}

.login-card label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-card input {
  border: 1px solid var(--line-dark);
  background: #fff;
  padding: 0.6rem 0.7rem;
  color: var(--ink-strong);
}

.login-message {
  margin: 0.62rem 0 0;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--ink) 80%, #fff 20%);
}

#logoutBtn {
  margin-top: 0.65rem;
  width: 100%;
  display: none;
}

#logoutBtn.show {
  display: block;
}

.empty-state {
  margin: 0.2rem 0;
  text-align: center;
  color: color-mix(in srgb, var(--ink) 72%, #fff 28%);
}

@media (max-width: 1040px) {


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

  .tryon-section {
    --tryon-pad-height: clamp(460px, 60vw, 640px);
  }

  .tryon-layout {
    grid-template-columns: var(--tryon-dial-panel-width) minmax(0, 1fr);
    gap: 0;
  }

  .tryon-stage {
    width: 100%;
  }

  .product-section {
    padding-inline: 0.9rem;
    border-radius: 22px;
  }

  .product-section .fit-filters {
    width: 100%;
    justify-content: flex-start;
    border-radius: 18px;
  }

  .product-section .filter-btn {
    padding-inline: 0.92rem;
  }

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

@media (max-width: 760px) {
  .top-nav {
    grid-template-columns: auto 1fr auto;
    padding: 0 0.75rem;
    height: 72px;
  }

  .brand {
    justify-self: center;
    width: 150px;
  }

  .brand img {
    height: 32px;
  }


  .carousel-arrow {
    width: 24px;
    height: 24px;
    opacity: 0.26;
  }

  .hero-carousel-footer {
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
  }

  .fit-grid,
  .product-grid,
  .testimonial-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .tryon-section {
    --tryon-pad-height: clamp(280px, 80vw, 520px);
    --tryon-dial-size: var(--tryon-pad-height);
    --tryon-dial-panel-width: calc(var(--tryon-pad-height) / 2 + 6px);
    margin-top: 1rem;
    padding: 0.8rem 0.46rem;
    border-radius: 14px;
  }

  .tryon-head {
    margin-bottom: 0.45rem;
  }

  .tryon-script {
    font-size: clamp(1.5rem, 8vw, 2.1rem);
  }

  .tryon-head h2 {
    font-size: clamp(1.2rem, 6.2vw, 1.8rem);
  }

  .tryon-head p:last-child {
    font-size: 0.76rem;
  }

  .tryon-layout {
    grid-template-columns: var(--tryon-dial-panel-width) minmax(0, 1fr);
    gap: 0;
  }

  .tryon-dial-panel {
    border-radius: 999px 0 0 999px;
    width: auto;
    height: var(--tryon-pad-height);
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid color-mix(in srgb, var(--line-dark) 46%, white 54%);
    border-bottom: 1px solid color-mix(in srgb, var(--line-dark) 46%, white 54%);
    border-left: 1px solid color-mix(in srgb, var(--line-dark) 46%, white 54%);
    border-right: 2px solid color-mix(in srgb, var(--line-dark) 70%, white 30%);
    display: block;
  }

  .tryon-dial {
    position: absolute;
    top: 50%;
    right: calc(var(--tryon-dial-size) / -2 + 1px);
    transform: translateY(-50%);
    width: var(--tryon-dial-size);
  }

  .tryon-dial-hole {
    --hole-size: calc(var(--tryon-dial-size) * 0.11);
    --hole-radius: calc(var(--tryon-dial-size) / 2 - var(--tryon-dial-size) * 0.18);
  }

  .tryon-dial-mini {
    --mini-size: calc(var(--tryon-dial-size) * 0.055);
    --mini-radius: calc(var(--tryon-dial-size) / 2 - var(--tryon-dial-size) * 0.12);
  }

  .tryon-dial-stop {
    display: block;
    width: calc(var(--tryon-dial-size) * 0.05);
    height: calc(var(--tryon-dial-size) * 0.14);
    right: calc(var(--tryon-dial-size) * 0.07);
    bottom: calc(var(--tryon-dial-size) * 0.17);
  }

  .tryon-stage {
    border-radius: 0 10px 10px 0;
    border-left: 0;
  }

  .tryon-stage-frames {
    height: var(--tryon-pad-height);
  }

  .tryon-stage-caption {
    padding: 0.52rem 0.6rem 0.58rem;
    gap: 0.4rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tryon-stage-caption h3 {
    font-size: clamp(1rem, 4vw, 1.28rem);
  }

  .tryon-stage-caption p {
    font-size: 0.72rem;
  }

  .tryon-stage-caption .card-btn {
    min-width: 90px;
    padding: 0.38rem 0.48rem;
    font-size: 0.64rem;
  }

  .product-section {
    padding: 1.6rem 0.68rem 1.9rem;
    border-radius: 18px;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .product-section .fit-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    border-radius: 14px;
  }

  .product-section .filter-btn {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.52rem 0.6rem;
  }

  .product-card-image {
    aspect-ratio: 16 / 12;
  }

  .product-meta h3 {
    font-size: clamp(1.25rem, 5.7vw, 1.7rem);
  }

  .product-row {
    gap: 0.55rem;
  }

  .product-row .price {
    font-size: 1.25rem;
  }

  .fit-card {
    grid-template-rows: 270px auto;
  }

  .section-head h2 {
    text-align: center;
  }

  .section-head {
    justify-content: center;
  }

  .product-section .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .product-detail-drawer {
    width: 100vw;
  }

  .product-detail-content {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .detail-colors {
    grid-template-columns: 1fr;
  }

  .detail-cta-row {
    grid-template-columns: 1fr;
  }

  .search-drawer {
    width: 100vw;
    border-inline: 0;
    border-top: 0;
    left: 0;
    transform: translateY(-102%);
  }

  .search-drawer.open {
    transform: translateY(0);
  }
}

/* Mobile: keep desktop composition for landing carousel only */
@media (max-width: 1040px) {
  :root {
    --landing-carousel-desktop-width: 1200;
    --landing-carousel-scale: clamp(0.3, calc((100vw - 8px) / (var(--landing-carousel-desktop-width) * 1px)), 1);
  }

  body {
    overflow-x: hidden;
  }

  #home.hero-carousel {
    width: calc(var(--landing-carousel-desktop-width) * 1px);
    max-width: none;
    margin-inline: 0;
    margin-left: 50%;
    transform: translateX(-50%) scale(var(--landing-carousel-scale));
    transform-origin: top center;
    min-height: clamp(500px, 72vh, 760px);
    margin-bottom: calc((1 - var(--landing-carousel-scale)) * -1 * clamp(500px, 72vh, 760px));
  }

  #home .hero-intro-grid {
    grid-template-columns: 1fr 1.65fr 1fr;
    min-height: inherit;
  }

  #home .hero-intro-image {
    height: auto;
  }

  #home .hero-intro-center {
    grid-column: auto;
    min-height: 0;
    border-inline: 1px solid var(--line);
  }

  #home .hero-main-title {
    font-size: clamp(2.4rem, 5.8vw, 6rem);
  }

  #home .hero-category-slide {
    grid-template-columns: minmax(90px, 0.8fr) minmax(300px, 1.2fr) minmax(90px, 0.8fr);
    justify-items: stretch;
    text-align: initial;
    gap: clamp(1rem, 3vw, 2rem);
    padding: clamp(1rem, 2.4vw, 2rem);
  }

  #home .hero-side-label-block,
  #home .hero-side-note-block {
    min-height: clamp(250px, 38vh, 390px);
    width: auto;
  }

  #home .hero-category-slide-women .hero-side-label-block,
  #home .hero-category-slide-men .hero-side-label-block {
    align-items: start;
    justify-items: start;
    padding: 0.8rem 0.2rem 0.2rem 0.6rem;
  }

  #home .hero-category-slide-women .hero-side-note-block,
  #home .hero-category-slide-men .hero-side-note-block {
    align-items: end;
    justify-items: end;
    padding: 0.2rem 0.6rem 0.8rem 0.2rem;
  }

  #home .hero-category-card {
    width: min(420px, 100%);
  }

  #home .hero-category-slide-women .hero-category-card,
  #home .hero-category-slide-men .hero-category-card {
    width: min(438px, 100%);
    transform: rotate(-0.8deg);
    padding: 0.88rem 0.88rem 5.2rem;
  }

  #home .hero-category-slide-women .hero-category-card::before,
  #home .hero-category-slide-men .hero-category-card::before {
    width: 86px;
    height: 22px;
    top: 0.36rem;
  }

  #home .hero-category-slide-women .polaroid-arrow,
  #home .hero-category-slide-men .polaroid-arrow {
    width: 30px;
    height: 30px;
    opacity: 0.82;
  }

  #home .hero-category-slide-women .hero-category-card figcaption,
  #home .hero-category-slide-men .hero-category-card figcaption {
    bottom: 0.8rem;
  }

  #home .hero-side-label,
  #home .hero-side-note {
    font-size: clamp(3rem, 5vw, 5rem);
  }

  #home .hero-side-note {
    font-size: clamp(2.7rem, 4.5vw, 4.3rem);
  }

  #home .carousel-arrow {
    width: 28px;
    height: 28px;
    opacity: 0.35;
  }

  #home .hero-carousel-footer {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }
}
