:root {
  --ink: #121417;
  --ink-2: #2a2e35;
  --paper: #f6f3ec;
  --paper-2: #efe9de;
  --white: #fffcf7;
  --line: #ddd6c8;
  --muted: #6d675e;
  --teal: #1aa7a1;
  --teal-ink: #0d6e6a;
  --red: #e23b2c;
  --lime: #7fb53d;
  --shadow: 0 18px 50px rgba(18, 20, 23, 0.1);
  --radius: 16px;
  --header: 72px;
  --max: 1240px;
  --font: "Noto Sans SC", "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Syne", "Noto Sans SC", "Manrope", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  flex-shrink: 0;
}

.logo-img {
  height: 56px;
  width: auto;
  border-radius: 8px;
  background: #000;
}
.logo-shop {
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--teal-ink);
}

.nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.18s;
}
.nav-link:hover { color: var(--teal-ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-caret { display: block; margin-top: 1px; opacity: 0.55; }

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
}
.nav-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 188px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  z-index: 30;
}
.nav-item:hover .nav-mega,
.nav-item:focus-within .nav-mega { display: block; }
.nav-mega a {
  display: block;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}
.nav-mega a:hover { background: var(--paper); color: var(--teal-ink); }

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  width: 200px;
  height: 38px;
  position: relative;
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 20;
}
.search-results.open { display: block; }
.search-results a,
.search-results .empty {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.search-results a:first-child { border-top: 0; }
.search-results a:hover { background: var(--paper); }
.search-results .sku { color: var(--muted); margin-left: 6px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  color: inherit;
}

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  place-items: center;
}
.cart-count.show { display: grid; }

.account { position: relative; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.account-btn:hover { border-color: #c9c2b4; }
.account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 30;
}
.account-menu.open { display: block; }
.account-menu a {
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid var(--line);
}
.account-menu a:first-child { border-top: 0; }
.account-menu a:hover { background: var(--paper); }

.menu-btn { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  color: #f7f3ea;
  background: #17191d;
}

.hero-slides { position: relative; }

.hero-slide {
  display: none;
  background:
    radial-gradient(900px 420px at 80% 20%, rgba(26, 167, 161, 0.18), transparent 55%),
    linear-gradient(180deg, #17191d 0%, #23262c 100%);
}
.hero-slide.is-active { display: block; animation: heroFade 0.45s ease; }

@keyframes heroFade {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.hero-slide-photo {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 56px 0 72px;
}

.hero-inner-overlay {
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 20, 23, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: rgba(18, 20, 23, 0.7); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,0.35);
}
.hero-dots button.is-active { background: #fff; }

.kicker {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  max-width: 11ch;
}

.hero p.lead {
  color: #c9c3b6;
  font-size: 17px;
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #062524; }
.btn-ghost { background: transparent; color: #fff; border-color: #5b5e64; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { background: var(--white); border-color: var(--line); }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #34383f;
}
.hero-stats b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
}
.hero-stats span { color: #9a9488; font-size: 13px; }

.hero-visual {
  position: relative;
  background: linear-gradient(180deg, #f7f4ee, #ece6d8);
  border-radius: 28px;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-visual img {
  width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.18));
}
.hero-chip {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.hero-chip b { display: block; font-size: 16px; }
.chip-a { left: 18px; bottom: 28px; }
.chip-b { right: 18px; top: 28px; }

.section { padding: 84px 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.section .sub { color: var(--muted); margin: 0 0 32px; }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.sec-head .sub { margin: 0; }

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-art {
  height: 92px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}
.cat h3 { margin: 0 0 8px; font-size: 20px; }
.cat p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.cat .more {
  margin-top: 16px;
  color: var(--teal-ink);
  font-weight: 700;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  background: #f3efe6;
  height: 210px;
  display: grid;
  place-items: center;
  position: relative;
}
.card-media img { max-height: 180px; width: auto; max-width: 86%; object-fit: contain; }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
}
.badge.popular { background: var(--teal-ink); }
.badge.value { background: var(--red); }
.badge.new { background: #2f6b2f; }

.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .btn { width: 100%; }
.card-type { color: var(--teal-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.card h3 a:hover { color: var(--teal-ink); }
.card .sku { color: var(--muted); font-size: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  background: var(--paper);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--ink-2);
}
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price strong { font-size: 20px; }
.price s { color: var(--muted); font-size: 13px; }
.stock { color: #3d7a32; font-size: 12px; font-weight: 700; }

.sizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.size {
  background: var(--ink);
  color: #f4efe6;
  border-radius: 18px;
  padding: 22px;
  min-height: 140px;
}
.size b { display: block; font-family: var(--display); font-size: 28px; }
.size span { color: #b8b2a6; font-size: 13px; }

.finder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}
.fields { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 700; }
select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--paper);
}
.field-actions { display: flex; gap: 10px; margin-top: 8px; }
.matches { display: grid; gap: 10px; align-content: start; }
.match {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.match img { width: 72px; height: 54px; object-fit: contain; background: var(--paper); border-radius: 8px; }

.home-map {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.home-map img { width: 100%; height: auto; }
.rooms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.rooms a { padding: 16px 18px; border-right: 1px solid var(--line); }
.rooms a:last-child { border-right: 0; }
.rooms strong { display: block; }
.rooms span { color: var(--muted); font-size: 13px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.split article {
  min-height: 320px;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(18,20,23,0.1), rgba(18,20,23,0.72)),
    center/cover no-repeat;
}
.split h3 { font-family: var(--display); font-size: 32px; margin: 0 0 8px; }
.split p { margin: 0 0 16px; color: #e6e0d4; max-width: 36ch; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.why .n {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #d8f3f1;
  color: var(--teal-ink);
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.why h3 { margin: 0 0 8px; font-size: 18px; }
.why p { margin: 0; color: var(--muted); font-size: 14px; }

.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.stars { color: #d89a1a; letter-spacing: 2px; }
.review h3 { font-size: 16px; margin: 8px 0; }
.review p { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.review .who { color: var(--muted); font-size: 12px; }

.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-height: 220px;
}
.guide .tag { color: var(--teal-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.guide h3 { font-size: 20px; margin: 10px 0; }
.guide p { color: var(--muted); margin: 0; }

.footer {
  background: var(--ink);
  color: #d8d2c6;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer .logo-img { height: 80px; }
.footer .logo-shop { color: #7fdad5; }
.footer h4 { color: #fff; margin: 0 0 12px; }
.footer a { display: block; padding: 4px 0; color: #b8b2a6; }
.js-cat-footer { display: flex; flex-direction: column; }
.footer a:hover { color: #fff; }
.copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid #2c3036; font-size: 12px; color: #8c867b; }

.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(18,20,23,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 50;
}
.drawer-bg.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--white);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head, .drawer-foot { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); display: block; }
.drawer-items { padding: 12px 16px; overflow: auto; flex: 1; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 72px; height: 56px; object-fit: contain; background: var(--paper); border-radius: 8px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.empty { color: var(--muted); padding: 28px 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 70;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mobile-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
}
.mobile-nav a { display: block; padding: 12px 0; font-weight: 700; border-bottom: 1px solid var(--line); }

@media (max-width: 1180px) {
  .search { display: none; }
  .nav-link { padding: 0 10px; }
  .nav-link::after { left: 10px; right: 10px; }
}

@media (max-width: 1080px) {
  .cats, .grid, .why, .reviews, .sizes { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; min-height: 520px; }
  .hero-visual { min-height: 320px; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }
  .finder, .split, .guides, .footer-grid { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav, .search { display: none; }
  .menu-btn { display: grid; }
  .header-inner { grid-template-columns: 1fr auto; }
  .logo-shop { display: none; }
  .logo-img { height: 48px; }
  .account-btn { padding: 0 10px; font-size: 12px; }
  .hero h1 { max-width: none; }
  .hero-visual { min-height: 300px; }
  .hero-chip { font-size: 12px; padding: 8px 10px; }
  .chip-b { display: none; }
  .grid, .cats, .why, .reviews, .sizes, .rooms { grid-template-columns: 1fr; }
  .mobile-nav.open { display: block; }
  .hero-stats { flex-direction: column; gap: 12px; }
}
