:root {
  --black: #212121;
  --ink: #000;
  --white: #fff;
  --grey: #aaaaaa;
  --light-grey: #d0d0d0;
  --very-light-grey: #f3f3f3;
  --pink: #ebcde0;
  --accent: #f10195;
  --content: 1280px;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans TC", Lato, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font-family: inherit;
}

h1, h2, h3, h4 {
  font-family: "Noto Sans TC", "Schibsted Grotesk", Lato, sans-serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.container {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
}

/* Top bar */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 8px 20px;
  font-weight: 400;
  gap: 0;
}

.topbar span {
  position: relative;
  padding: 0 14px;
  line-height: 1.4;
}

.topbar span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0.75em;
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-50%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--very-light-grey);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 2;
}

.logo img {
  width: 118px;
  height: auto;
}

.nav-toggle {
  justify-self: start;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: none;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.search-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  justify-self: end;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 0.16em;
  font-weight: 400;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav a {
  position: relative;
  padding: 6px 0;
}

.header-nav a:hover,
.header-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--grey);
}

.header-tools span {
  color: var(--ink);
  font-weight: 700;
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
}

.site-search input {
  width: 220px;
  border: 0;
  border-bottom: 1px solid var(--light-grey);
  padding: 8px 32px 8px 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--ink);
}

.site-search input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.site-search button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
  display: flex;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, 86vw);
  background: #fff;
  border: 1px solid var(--very-light-grey);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  z-index: 140;
  padding: 6px 0;
}

.search-suggest a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.search-suggest a:hover,
.search-suggest a.is-active {
  background: var(--very-light-grey);
}

.search-suggest img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: var(--very-light-grey);
  flex: 0 0 44px;
}

.search-suggest small {
  display: block;
  color: var(--grey);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.search-suggest .empty {
  padding: 14px;
  color: var(--grey);
  font-size: 13px;
}

.nav-drawer .site-search {
  display: none;
}

/* Page hero */
.page-hero {
  padding: 56px 0 28px;
  text-align: center;
}

.page-hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.3;
}

.page-hero h1 em {
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.page-hero p {
  margin: 18px auto 0;
  max-width: 640px;
  color: #555;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .size-chip {
  display: inline-block;
  padding: 14px 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.hero-actions .size-chip.is-ghost {
  background: transparent;
  color: var(--ink);
}

/* Hair types */
.type-banner {
  position: relative;
  min-height: min(52vw, 460px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: #1a1a1a;
}

.type-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.12) 55%, transparent 80%);
}

.type-banner .copy {
  position: relative;
  z-index: 1;
  padding: 56px 0 44px;
}

.type-banner .eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.type-banner h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.type-banner p {
  margin: 14px 0 0;
  color: #fff;
  letter-spacing: 0.04em;
  font-size: 16px;
}

.type-section-head {
  padding: 48px 0 28px;
  text-align: center;
}

.type-section-head h2 {
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.type-products {
  padding-top: 48px;
}

.type-teaser {
  padding: 0 0 48px;
}

.type-teaser-card {
  display: block;
  position: relative;
  min-height: min(42vw, 380px);
  overflow: hidden;
  color: #fff;
}

.type-teaser-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-teaser-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
}

.type-teaser-card span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(42vw, 380px);
  padding: 36px 0;
  letter-spacing: 0.04em;
  font-size: 20px;
}

.type-teaser-card small {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}

.type-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  padding: 28px 0 8px;
}

.type-link,
a.filter-btn {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--grey);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 400;
}

.filter-btn {
  letter-spacing: 0.12em;
}

.type-link:hover,
.type-link.is-active,
.filter-btn:hover,
.filter-btn.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.page-intro {
  text-align: center;
  max-width: 760px;
  margin: 8px auto 12px;
  color: #555;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

.rec-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px auto 28px;
  padding: 18px 22px;
  border-top: 1px solid var(--light-grey);
  border-bottom: 1px solid var(--light-grey);
}

.rec-bar > span {
  letter-spacing: 0.04em;
  font-size: 13px;
  color: #555;
}

.rec-bar div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rec-bar a {
  display: inline-flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  letter-spacing: 0.1em;
  font-size: 14px;
}

.rec-bar a small {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.group-block {
  padding-bottom: 12px;
}

.group-title {
  font-size: 15px;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 12px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--very-light-grey);
}

.group-block .product-grid {
  padding-bottom: 36px;
}

.browse-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px 0 70px;
}

.browse-paths a {
  display: block;
  padding: 8px 8px 4px 0;
  border-top: 1px solid var(--ink);
}

.browse-paths small {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.browse-paths strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.browse-paths span {
  display: block;
  color: #555;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.step-card {
  position: relative;
}

.step-no {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.16em;
  background: #fff;
  padding: 4px 8px;
}

.search-page-list {
  display: grid;
  gap: 0;
  margin-bottom: 40px;
}

.search-page-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--very-light-grey);
}

.search-page-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
}

.search-page-item strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.search-page-item small,
.search-page-item span {
  display: block;
  color: #666;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.search-empty {
  text-align: center;
  color: #666;
  padding: 20px 0 60px;
}

.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 90px;
}

.about-page h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 40px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--very-light-grey);
}

.about-page h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.about-page p {
  margin: 0 0 16px;
  color: #444;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.about-page a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about-dl {
  margin: 0;
}

.about-dl dt {
  margin-top: 18px;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.08em;
}

.about-dl dt:first-child {
  margin-top: 0;
}

.about-dl dd {
  margin: 4px 0 0;
  color: #222;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.about-values {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.about-values li {
  padding: 12px 0;
  border-top: 1px solid var(--very-light-grey);
  color: #333;
  letter-spacing: 0.04em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 24px;
  padding-bottom: 80px;
}

.card-grid.is-3 {
  grid-template-columns: repeat(3, 1fr);
}

.related .card-grid {
  padding-bottom: 0;
}

.card-grid.is-3-2 .cover-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.card-grid.is-routines .cover-card img {
  background: transparent;
  padding: 0;
  border: 1px solid var(--very-light-grey);
  box-sizing: border-box;
}

.cover-card {
  display: block;
  color: inherit;
  background: transparent;
}

.cover-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--very-light-grey);
}

.cover-card .copy {
  display: flex;
  flex-direction: column;
  padding: 16px 0 0;
}

.cover-card small {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  font-size: 12px;
}

.cover-card strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.cover-card em {
  font-style: normal;
  font-size: 14px;
  color: #555;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.cover-card:hover strong {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  padding: 8px 0 36px;
}

.filter-btn {
  border: 0;
  background: transparent;
  color: var(--grey);
  font-size: 15px;
  letter-spacing: 0.2em;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 400;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  padding-bottom: 80px;
}

.product-card {
  display: block;
  color: inherit;
}

.product-card .thumb {
  background: var(--very-light-grey);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}

.product-card .thumb img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
}

.product-card:hover .thumb img {
  transform: scale(1.04);
}

.product-card h3 {
  font-family: Lato, "Noto Sans TC", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.product-card .zh {
  display: block;
  margin-top: 8px;
  color: #4a4a4a;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.product-card.hidden {
  display: none;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--grey);
  padding: 28px 0 8px;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  padding: 12px 0 72px;
  align-items: start;
}

.gallery {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.gallery-main {
  background: var(--very-light-grey);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbs button {
  border: 1px solid transparent;
  background: var(--very-light-grey);
  aspect-ratio: 1;
  padding: 8px;
  cursor: pointer;
}

.gallery-thumbs button.is-active,
.gallery-thumbs button:hover {
  border-color: var(--ink);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-info .en-name {
  font-family: Lato, "Schibsted Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-info .zh-name {
  font-family: "Noto Sans TC", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: #333;
  margin-top: 10px;
  line-height: 1.6;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.size-chip {
  border: 1px solid var(--ink);
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.06em;
  margin: 0 0 22px;
  color: #333;
}

.meta-list {
  margin: 12px 0 32px;
  padding: 0;
  list-style: none;
}

.meta-item {
  padding: 22px 0;
}

.meta-item:first-child {
  padding-top: 4px;
}

.meta-item strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: none;
  margin: 0 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.meta-item p {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: 0.04em;
  color: #666;
}

.meta-note {
  margin: 0;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: #555;
  background: var(--very-light-grey);
}

.meta-list li {
  padding: 0;
  border-top: 0;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.score-row {
  display: flex;
  gap: 24px;
  margin: 8px 0 20px;
}

.score {
  flex: 1;
}

.score span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: none;
  margin-bottom: 6px;
  font-weight: 500;
}

.score b {
  font-size: 28px;
  font-family: "Schibsted Grotesk", sans-serif;
}

.bar {
  height: 3px;
  background: var(--very-light-grey);
  margin-top: 8px;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--ink);
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.75;
}

.benefits li {
  display: flex;
  gap: 8px;
}

.benefits li em {
  font-style: normal;
  font-weight: 700;
  min-width: 1.4em;
}

.tips {
  margin: 0 0 24px;
  padding-left: 18px;
}

.tips li {
  margin: 10px 0;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.accordion {
  border-top: 1px solid var(--light-grey);
}

.acc-item + .acc-item {
  border-top: 1px solid var(--very-light-grey);
}

.acc-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 500;
}

.acc-item summary::-webkit-details-marker {
  display: none;
}

.acc-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
}

.acc-item[open] summary::after {
  content: "–";
}

.acc-item .acc-body {
  padding: 0 0 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: #444;
}

/* Related */
.related {
  padding: 20px 0 90px;
}

.related h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.related h2 em {
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.related .product-grid {
  padding-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 28px;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.site-footer h4,
.site-footer p,
.site-footer li,
.site-footer address,
.footer-copy {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.site-footer address {
  font-style: normal;
  margin: 0;
}

.site-footer address strong {
  display: block;
  font-weight: 500;
}

.site-footer address span {
  display: block;
}

.site-footer h4 {
  font-weight: 500;
  margin-bottom: 16px;
  color: #aaa;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 10px 0;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-brand img {
  width: 118px;
  margin-bottom: 18px;
}

.footer-brand p,
.footer-copy {
  color: #ddd;
}

.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 16px 8px 12px;
  background: #666;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.footer-line svg {
  display: block;
  flex-shrink: 0;
}

.footer-line:hover {
  text-decoration: none;
  background: #7a7a7a;
}

.go-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #666;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.go-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.go-top:hover {
  background: #7a7a7a;
}

.go-top svg {
  display: block;
}

.footer-copy {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #3a3a3a;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mobile nav */
.nav-drawer {
  display: none;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.is-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .search-toggle {
    display: flex;
  }
  .header-nav {
    display: none;
  }
  .header-inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    min-height: 56px;
    gap: 0;
    padding-top: 8px;
    padding-bottom: 12px;
  }
  .header-tools {
    display: none;
  }
  .logo {
    justify-content: center;
  }
  .logo img {
    width: 92px;
  }
  .nav-drawer {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--very-light-grey);
    padding: 4px 4px 22px;
    letter-spacing: 0.12em;
    font-size: 16px;
  }
  .nav-drawer.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav-drawer > a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--very-light-grey);
  }
  .nav-drawer > a.is-active {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  .nav-drawer .site-search {
    display: flex;
    width: 100%;
    margin-top: 16px;
  }
  .nav-drawer .site-search input {
    width: 100%;
    font-size: 15px;
    padding: 10px 36px 10px 0;
  }
  .browse-paths {
    grid-template-columns: 1fr;
    padding-bottom: 40px;
  }
  .topbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    row-gap: 2px;
    column-gap: 0;
  }
  .topbar span {
    padding: 1px 8px;
    text-align: center;
  }
  .topbar span:nth-child(odd)::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
  }
  .site-footer {
    padding: 32px 0 18px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 8px;
    margin: 0;
    border: 0;
  }
  .footer-brand img {
    width: 92px;
    margin: 0 auto;
  }
  .footer-brand p {
    display: none;
  }
  .footer-col {
    grid-row: 2;
  }
  .site-footer h4 {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .site-footer li {
    margin: 7px 0;
    line-height: 1.65;
  }
  .site-footer p,
  .site-footer li,
  .site-footer address,
  .footer-copy {
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1.7;
  }
  .footer-contact {
    display: contents;
  }
  .footer-contact h4 {
    display: block;
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    margin: 8px 0 0;
    padding-top: 16px;
    border-top: 1px solid #3a3a3a;
  }
  .footer-contact address {
    grid-column: 1 / -1;
    grid-row: 4;
    padding-top: 2px;
    border-top: 0;
  }
  .footer-contact address strong {
    font-size: 13px;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
  }
  .footer-line {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    align-self: end;
    margin: 24px 0 0;
    padding: 8px 12px 8px 10px;
    font-size: 13px;
    background: transparent;
    border: 1px solid #888;
  }
  .footer-line svg {
    width: 16px;
    height: 16px;
  }
  .footer-line:hover {
    background: transparent;
    border-color: #bbb;
  }
  .footer-copy {
    margin-top: 18px;
    padding-top: 14px;
    gap: 0;
    flex-direction: column;
    line-height: 1.7;
  }
  .footer-copy-en {
    display: none;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .search-page-item {
    grid-template-columns: 88px 1fr;
  }
  .header-nav {
    position: static;
    transform: none;
  }
  .product-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gallery {
    position: static;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
  }
  .benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-hero {
    padding-top: 36px;
  }
  .page-hero h1,
  .page-hero h1 em,
  .related h2,
  .related h2 em {
    letter-spacing: 0.04em;
  }
  .card-grid,
  .card-grid.is-3 {
    grid-template-columns: 1fr;
  }
  .go-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}
