:root {
  --ink: #101010;
  --ink-soft: #3a3a3a;
  --muted: #6f6b66;
  --line: rgba(16, 16, 16, 0.1);
  --paper: #f0ece6;
  --paper-deep: #e4dfd7;
  --white: #ffffff;
  --accent: #1a2744;
  --sale: #8b2f2f;
  --header-h: 72px;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(16, 16, 16, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.65), transparent 40%),
    linear-gradient(180deg, #f7f4ef 0%, var(--paper) 38%, #ebe6df 100%);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

.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;
}

.container {
  width: min(1280px, 100% - 40px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  border: none;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-wrap input {
  width: min(220px, 28vw);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.cart-trigger {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: #111;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.18) 0%, rgba(16, 16, 16, 0.52) 68%, rgba(16, 16, 16, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 0 72px;
  color: #fff;
  max-width: 760px;
  animation: rise 0.9s ease both;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #fff;
  border-color: #fff;
}

.hero-eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  opacity: 0.86;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7.5rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 520px;
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: none;
  border-radius: var(--radius);
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-tryon {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-tryon:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.stylist {
  padding: 28px 0 0;
}

.stylist-shell {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(246, 241, 233, 0.92)),
    radial-gradient(circle at 90% 10%, rgba(26, 39, 68, 0.08), transparent 45%);
  box-shadow: 0 10px 36px rgba(16, 16, 16, 0.06);
  overflow: hidden;
  transition: box-shadow 0.35s ease;
}

.stylist-shell.is-open {
  box-shadow: var(--shadow);
}

.stylist-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.stylist-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stylist-heading {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.stylist-lead {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 440px;
  font-size: 0.95rem;
}

.stylist-trigger-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stylist-close-label { display: none; }
.stylist-shell.is-open .stylist-open-label { display: none; }
.stylist-shell.is-open .stylist-close-label { display: inline; }

.stylist-chevron {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  position: relative;
  transition: transform 0.35s ease, background 0.25s ease;
}

.stylist-chevron::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translate(-50%, -65%) rotate(45deg);
}

.stylist-shell.is-open .stylist-chevron {
  transform: rotate(180deg);
  background: var(--ink);
}

.stylist-shell.is-open .stylist-chevron::before {
  border-color: #fff;
}

.stylist-panel {
  border-top: 1px solid var(--line);
  padding: 18px;
  animation: fadeUp 0.4s ease both;
}

.stylist-panel-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 44%);
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  min-height: 560px;
}

.stylist-frame {
  min-height: 560px;
  background: #0f1117;
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.stylist-frame #qoyo-style-walozon {
  min-height: 560px;
}

.stylist-aside {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 239, 231, 0.95) 100%),
    radial-gradient(circle at 100% 0%, rgba(26, 39, 68, 0.06), transparent 50%);
}

.stylist-aside-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.stylist-aside-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.stylist-aside-lead {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 420px;
  line-height: 1.55;
}

.stylist-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.stylist-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.stylist-step-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.stylist-steps strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.stylist-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.stylist-aside-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

.stylist-aside-badge {
  display: inline-block;
  padding: 6px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stylist-aside-cta {
  margin-top: 18px;
  align-self: flex-start;
  min-width: 220px;
}

.catalog {
  padding: 56px 0 24px;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.catalog-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

.catalog-meta {
  margin: 6px 0 0;
  color: var(--muted);
}

.sort-wrap select {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  padding: 10px 12px;
  border-radius: var(--radius);
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 0 20px;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  padding: 9px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.92rem;
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

.product-card {
  cursor: pointer;
  animation: fadeUp 0.45s ease both;
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-deep);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.product-media img.alt-image {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-media img.primary-image {
  transform: scale(1.04);
}

.product-card:hover .product-media img.alt-image {
  opacity: 1;
}

.product-info {
  padding: 12px 2px 0;
}

.product-category {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-name {
  margin: 6px 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-meta {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.color-swatches--compact {
  margin-top: 8px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.color-swatches:not(.color-swatches--compact) .color-swatch {
  width: 44px;
  height: 44px;
}

.color-swatch.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 8px;
}

.product-price-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
}

.product-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.88rem;
}

.product-actions {
  margin-top: 10px;
}

.product-actions .btn {
  width: 100%;
  padding: 11px 14px;
}

.state-message,
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 16px;
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 28px 0 48px;
}

.pagination .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.perks {
  padding: 12px 0 72px;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.perks-grid h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
}

.perks-grid p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-copy,
.footer-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 8px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 16, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-head,
.drawer-foot {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); }

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 8px 20px 20px;
}

.icon-btn {
  border: none;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: var(--paper-deep);
}

.cart-item-title { font-weight: 600; font-size: 0.94rem; }
.cart-item-meta { color: var(--muted); font-size: 0.84rem; margin-top: 4px; }

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  border-radius: var(--radius);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.form-group textarea { min-height: 80px; resize: vertical; }

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 110;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-shell {
  position: relative;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  box-shadow: var(--shadow);
  animation: fadeUp 0.35s ease both;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.modal-gallery-main {
  aspect-ratio: 3 / 4;
  background: var(--paper-deep);
}

.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}

.modal-thumbs button {
  border: 1px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.modal-thumbs img {
  width: 64px;
  height: 80px;
  object-fit: cover;
}

.modal-thumbs button.active {
  border-color: var(--ink);
}

.modal-content { padding: 28px 28px 32px; }

.modal-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-content h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.modal-price {
  margin: 16px 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-desc {
  color: var(--muted);
  margin: 0 0 16px;
}

.size-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.size-btn {
  min-width: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  border-radius: var(--radius);
}

.size-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.modal-actions {
  display: grid;
  gap: 10px;
}

.modal-actions .btn { width: 100%; }

.success-box {
  text-align: center;
  padding: 48px 20px;
}

.success-box h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-row {
    grid-template-columns: 1fr auto auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(247, 244, 239, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 16px;
  }

  .main-nav.open { display: flex; }

  .menu-toggle { display: inline-grid; place-items: center; }

  .search-wrap input { width: 120px; }

  .cart-label { display: none; }

  .hero-content { padding-bottom: 48px; }

  .stylist-trigger {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 18px 16px;
  }

  .stylist-trigger-action {
    width: 100%;
    justify-content: space-between;
  }

  .stylist-panel-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .stylist-frame {
    min-height: 480px;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .stylist-frame #qoyo-style-walozon {
    min-height: 480px;
  }

  .stylist-aside {
    padding: 24px 20px 28px;
  }

  .stylist-aside-cta {
    width: 100%;
  }

  .catalog-head { flex-direction: column; align-items: stretch; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }

  .perks-grid, .footer-grid { grid-template-columns: 1fr; }

  .modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .container { width: min(1280px, 100% - 24px); }
  .product-grid { grid-template-columns: 1fr; }
}
