:root {
  --background: #f7f8f6;
  --surface: #ffffff;
  --surface-soft: #eef5f2;
  --surface-warm: #fff5f7;
  --text: #26302e;
  --muted: #65736f;
  --primary: #b64f6b;
  --primary-dark: #7d3d55;
  --sage: #59766f;
  --border: #dfe7e3;
  --radius: 12px;
  --shadow: 0 16px 38px rgb(55 76 68 / 9%);
  --container: 1180px;
  --page-container: 1720px;
  --hero-container: 1520px;
  --font-body: "Be Vietnam Pro", Arial, sans-serif;
  --font-display: "Lora", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
a,
input,
select,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

body.has-overlay {
  overflow: hidden;
}

.section {
  width: min(calc(100% - 48px), var(--page-container));
  margin-inline: auto;
}

main > section[id] {
  scroll-margin-top: 96px;
}

.site-header,
.shop-topbar {
  width: 100%;
  margin-inline: 0;
  padding-inline: max(24px, calc((100% - 1720px) / 2));
}

.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
  padding-block: 7px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, #f2f7f4 0%, #fff7fa 100%);
  color: var(--muted);
  font-size: 0.78rem;
}

.shop-topbar div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.shop-topbar a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.shop-topbar .shop-topbar__actions {
  justify-content: flex-end;
  margin-left: auto;
}

.shop-topbar .shop-topbar__social {
  color: var(--muted);
  font-weight: 600;
}

.shop-topbar .shop-topbar__social:hover {
  color: var(--primary);
}

.site-header {
  position: sticky;
  z-index: 15;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
  border-bottom: 1px solid rgb(223 231 227 / 78%);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 12px 28px rgb(55 76 68 / 7%);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 1px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 22px;
  padding: 5px;
  border: 1px solid rgb(223 231 227 / 78%);
  border-radius: 999px;
  background: rgb(238 245 242 / 70%);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: 180ms ease;
}

.main-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--primary);
}

.main-nav a:hover {
  background: var(--surface);
  box-shadow: 0 6px 16px rgb(55 76 68 / 8%);
}

.menu-button {
  display: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgb(55 76 68 / 9%);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
}

.section {
  padding-block: 56px;
}

.hero,
.shop-hero {
  display: grid;
  gap: 18px;
}

.shop-hero {
  position: relative;
  width: 100%;
  max-width: none;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0;
  margin-inline: 0;
  padding-top: 0;
}

.hero-categories,
.hero-service,
.hero-feature,
.category-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-categories {
  order: 2;
  position: absolute;
  z-index: 3;
  top: clamp(126px, 20svh, 190px);
  left: clamp(24px, 4vw, 80px);
  display: grid;
  align-content: start;
  width: 252px;
  gap: 8px;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 18px;
}

.hero-categories a {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-left: 0;
  text-decoration: none;
}

.hero-categories .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.hero-categories a:first-of-type {
  border-top: 0;
}

.hero-categories a:hover strong,
.category-card:hover strong {
  color: var(--primary);
}

.hero-categories strong,
.category-card strong {
  font-size: 0.92rem;
}

.hero-categories span,
.category-card span,
.hero-service p {
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-feature {
  position: relative;
  order: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(560px, calc(100svh - 132px), 760px);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.hero-feature::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(247 248 246 / 94%) 0%,
    rgb(247 248 246 / 88%) 34%,
    rgb(247 248 246 / 58%) 56%,
    rgb(247 248 246 / 12%) 78%,
    rgb(247 248 246 / 0%) 100%
  );
  content: "";
}

.hero-feature__copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(calc(100% - 48px), var(--hero-container));
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 92px) 0 clamp(86px, 10vw, 128px)
    clamp(300px, 22vw, 380px);
}

.hero-feature__copy h1 {
  max-width: 10.8ch;
  font-size: clamp(2.8rem, 5.3vw, 5.35rem);
}

.hero-feature__copy > p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-feature__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-left: 0;
  object-fit: cover;
  object-position: center right;
}

.hero-service {
  order: 3;
  display: grid;
  width: min(calc(100% - 48px), var(--page-container));
  align-content: start;
  align-self: start;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px auto 0;
  padding: 16px;
}

.hero-service div {
  padding: 14px;
  border-radius: 10px;
  background: var(--background);
}

.hero-service span {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-service strong {
  display: block;
  margin-top: 4px;
  font-size: 0.94rem;
}

.hero-service p {
  margin: 4px 0 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero__content > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.category-showcase {
  padding-top: 18px;
}

.category-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  display: grid;
  min-height: 132px;
  align-content: end;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
}

.category-card span {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
}

.category-card strong {
  max-width: 220px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--primary);
  color: #fff;
}

.button--primary:hover {
  background: var(--primary-dark);
}

.button--secondary {
  color: var(--primary);
}

.button--full {
  width: 100%;
}

.image-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-content: center;
  padding: 24px;
  border: 1px dashed #cbb9a7;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 45%), transparent),
    var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.image-placeholder span {
  font-weight: 700;
}

.image-placeholder small {
  display: block;
}

.hero__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__image-wrap::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 36px;
}

.section-heading--wide {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading--wide .section-description {
  margin-bottom: 0;
}

.section-description {
  max-width: 620px;
  color: var(--muted);
}

.chart-section {
  padding-top: 36px;
}

.chart-section[hidden] {
  display: none;
}

.chart-topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 46px;
}

.chart-topic-grid[hidden] {
  display: none;
}

.chart-topic-card,
.chart-card,
.chart-instruction-panel,
.chart-material-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chart-topic-card {
  display: grid;
  min-height: 152px;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  text-decoration: none;
}

.chart-topic-card span,
.chart-card__meta {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-topic-card strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.1;
}

.chart-topic-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-topic-card:hover strong,
.chart-card:hover h3 {
  color: var(--primary);
}

.chart-topic-card.is-active {
  border-color: rgb(182 79 107 / 45%);
  background: var(--surface-warm);
  box-shadow: 0 18px 42px rgb(182 79 107 / 12%);
}

.chart-library {
  display: grid;
  gap: 72px;
}

.chart-review-group {
  scroll-margin-top: 150px;
}

.chart-review-group__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.chart-review-group__copy .eyebrow {
  margin-bottom: 6px;
}

.chart-review-group__heading h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.chart-review-group__heading > p {
  max-width: 520px;
  margin-bottom: 2px;
  color: var(--muted);
  text-align: right;
}

.chart-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chart-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.chart-card[hidden] {
  display: none;
}

.chart-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
}

.chart-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.chart-card:hover img {
  transform: scale(1.025);
}

.chart-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
}

.chart-card h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.25;
}

.chart-card h3 a {
  color: inherit;
  text-decoration: none;
}

.chart-card p:not(.chart-card__meta) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.chart-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 8px;
}

.text-link--muted {
  color: var(--muted);
}

.chart-review-group__footer {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

.chart-review-group__toggle {
  min-width: 164px;
}

.chart-review-note {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.chart-review-note strong {
  display: block;
  margin-bottom: 6px;
}

.chart-review-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.chart-material-panel [data-chart-reference-link] {
  display: block;
  margin-top: 14px;
}

.chart-material-panel [data-chart-reference-link][hidden] {
  display: none;
}

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

.chart-page {
  width: min(calc(100% - 48px), var(--page-container));
  margin-inline: auto;
  padding-block: 28px 80px;
}

.chart-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 56px;
  align-items: center;
}

.chart-detail__copy > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.chart-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chart-meta-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 700;
}

.chart-detail__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.chart-detail__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 22px;
  margin-top: 42px;
}

.chart-instruction-panel,
.chart-material-panel {
  padding: 28px;
}

.chart-instruction-panel h2 {
  max-width: 720px;
}

.chart-instruction-panel ol {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.chart-instruction-panel li,
.chart-material-panel p {
  color: var(--muted);
}

.category-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.category-tab {
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.category-tab span {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.category-tab small {
  font-size: 0.76rem;
}

.category-tab.is-active {
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgb(154 93 81 / 8%);
}

.category-tab.is-active span {
  color: var(--primary);
}

.category-panel[hidden] {
  display: none;
}

.category-panel__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.category-panel__heading h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0;
}

.category-panel__heading > p {
  max-width: 400px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.material-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.material-category-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.material-category-card__visual {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.material-category-card__visual--yarn {
  background: linear-gradient(145deg, #ead5d0, #f7eee8);
}

.material-category-card__visual--accessories {
  background: linear-gradient(145deg, #dbe0d4, #f1eee3);
}

.material-category-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.material-category-card p:not(.product-card__category) {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.category-status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card .image-placeholder {
  border: 0;
  border-bottom: 1px dashed #cbb9a7;
  border-radius: 0;
}

.product-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-bottom: 1px solid var(--border);
  object-fit: cover;
}

.product-card__image-link {
  display: block;
  overflow: hidden;
}

.product-card__image-link .product-card__image {
  transition: transform 240ms ease;
}

.product-card__image-link:hover .product-card__image {
  transform: scale(1.025);
}

.product-title-link {
  text-decoration: none;
}

.product-title-link:hover {
  color: var(--primary);
}

.product-card__body > .button + .button {
  margin-top: 8px;
}

.product-card__body {
  padding: 22px;
}

.product-card__category {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.85rem;
}

.product-card h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0;
}

.product-card__price {
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 700;
}

.product-card__price span {
  display: block;
}

.product-card__price span + span {
  margin-top: 2px;
}

.product-card__description {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-image-placeholder {
  border: 0;
  border-bottom: 1px dashed #cbb9a7;
  border-radius: 0;
}

.product-image-placeholder small {
  margin-top: 4px;
}

.material-group__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.material-group__heading h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.material-group__heading > p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.material-group .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.material-group--spaced {
  margin-top: 48px;
}

.material-empty {
  padding: 28px;
  border: 1px dashed #cbb9a7;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 45%);
  color: var(--muted);
  text-align: center;
}

.material-empty p {
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 600;
}

.material-empty span {
  font-size: 0.78rem;
}

.product-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.product-options label,
.field {
  display: grid;
  gap: 6px;
}

.product-options label > span,
.field > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.product-options select,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.product-options select {
  height: 42px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.product-options select:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(154 93 81 / 12%);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b64135;
  box-shadow: 0 0 0 3px rgb(182 65 53 / 10%);
}

.field-error {
  display: block;
  min-height: 1.1em;
  color: #a4372d;
  font-size: 0.72rem;
  line-height: 1.4;
}

.field-error:empty {
  min-height: 0;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 64px;
}

.about > p {
  color: var(--muted);
  font-size: 1.15rem;
}

.order {
  margin-block: 40px 80px;
  padding: 64px;
  border-radius: 16px;
  background: #26302e;
  color: #fff;
}

.order h2 {
  max-width: 820px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 25%);
}

.steps span {
  display: block;
  margin-bottom: 10px;
  color: #d9b2aa;
  font-size: 0.82rem;
}

.cart-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  visibility: hidden;
  background: rgb(47 41 37 / 46%);
  opacity: 0;
  transition: 220ms ease;
}

.cart-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  z-index: 21;
  top: 0;
  right: 0;
  display: grid;
  width: min(460px, 100%);
  height: 100dvh;
  grid-template-rows: auto 1fr auto;
  padding: 24px;
  background: var(--surface);
  box-shadow: -20px 0 60px rgb(47 41 37 / 18%);
  transform: translateX(105%);
  transition: 250ms ease;
}

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

.cart-drawer__header,
.dialog-header,
.cart-total-row,
.cart-item__top,
.cart-item__actions,
.checkout-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-drawer__header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__header h2,
.dialog-header h2 {
  margin: 0;
  font-size: 2rem;
}

.icon-button {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--background);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

.cart-items {
  overflow-y: auto;
  padding-block: 8px;
}

.cart-item {
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.cart-item__variant,
.cart-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-item__price {
  white-space: nowrap;
  color: var(--primary);
  font-size: 0.9rem;
}

.cart-item__actions {
  margin-top: 12px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.quantity-control button,
.quantity-control span {
  display: grid;
  height: 34px;
  place-items: center;
  border: 0;
  background: var(--surface);
}

.quantity-control button:hover {
  background: var(--surface-soft);
}

.remove-item,
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.cart-empty {
  place-self: center;
  color: var(--muted);
  text-align: center;
}

.cart-drawer__footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.cart-total-row strong {
  color: var(--primary);
  font-size: 1.2rem;
}

.cart-note {
  margin-bottom: 14px;
}

.order-guide {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.order-guide li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.order-guide span,
.checkout-guide__item span {
  display: grid;
  flex: 0 0 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.checkout-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 90px rgb(47 41 37 / 28%);
}

.checkout-dialog::backdrop {
  background: rgb(47 41 37 / 56%);
  backdrop-filter: blur(3px);
}

.checkout-form {
  padding: 28px;
}

.dialog-header {
  margin-bottom: 24px;
}

.checkout-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.checkout-guide__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border-radius: 12px;
  background: var(--background);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.checkout-guide__item.is-current {
  background: var(--surface-soft);
  color: var(--text);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  padding: 11px 12px;
}

.field textarea {
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.consent input {
  margin-top: 4px;
}

.consent.has-error {
  color: #a4372d;
}

.consent-error {
  margin-top: -14px;
  margin-bottom: 16px;
}

.checkout-actions {
  justify-content: flex-end;
}

.copy-success {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cbd8c4;
  border-radius: 16px;
  background: #f4f8f1;
}

.copy-success[hidden] {
  display: none;
}

.copy-success__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
}

.copy-success__content strong {
  font-size: 0.9rem;
}

.copy-success__content p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.toast {
  position: fixed;
  z-index: 50;
  bottom: 24px;
  left: 50%;
  visibility: hidden;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #2f2925;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: 180ms ease;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 34px;
  width: 100%;
  margin-top: 72px;
  padding: 54px max(24px, calc((100% - var(--page-container)) / 2)) 86px;
  border-top: 0;
  background:
    linear-gradient(135deg, rgb(182 79 107 / 14%) 0%, transparent 32%),
    linear-gradient(135deg, #22302d 0%, #293d37 58%, #3b2e36 100%);
  color: rgb(236 243 240 / 76%);
}

.site-footer p {
  margin: 0;
}

.footer-brand,
.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-brand strong,
.footer-column strong {
  color: #fff;
}

.footer-brand strong {
  max-width: 340px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.15;
}

.footer-column strong {
  margin-bottom: 4px;
  color: rgb(255 255 255 / 92%);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 380px;
  color: rgb(236 243 240 / 78%);
}

.footer-brand span,
.footer-column span,
.footer-column a,
.footer-column button {
  color: rgb(236 243 240 / 72%);
  font-size: 0.84rem;
  text-align: left;
  text-decoration: none;
}

.footer-column a:hover,
.footer-column button:hover {
  color: #fff;
}

.footer-column button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(0 0 0 / 14%);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.site-footer .footer-cta:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.product-footer {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 48px;
  padding-block: 34px;
}

.floating-socials {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 9px;
}

.floating-social {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgb(31 38 36 / 20%);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgb(31 38 36 / 28%);
}

.floating-social svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.floating-social--facebook {
  background: #1877f2;
}

.floating-social--tiktok {
  background: #171417;
}

.floating-social--zalo {
  background: #0f78ff;
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 1160px) {
  .hero-categories {
    position: relative;
    top: auto;
    left: auto;
    width: min(calc(100% - 32px), var(--container));
    grid-template-columns: repeat(4, 1fr);
    margin: -42px auto 0;
  }

  .hero-categories a {
    padding: 10px 16px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .hero-categories a:first-of-type {
    border-left: 0;
  }

  .hero-feature__copy {
    width: min(calc(100% - 32px), var(--container));
    padding-left: 0;
  }

  .hero-feature__copy h1 {
    max-width: 11ch;
  }

  .category-showcase__grid,
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 960px) {
  .hero-feature {
    min-height: clamp(520px, calc(100svh - 116px), 680px);
  }

  .hero-feature::before {
    background: linear-gradient(
      90deg,
      rgb(247 248 246 / 98%) 0%,
      rgb(247 248 246 / 90%) 44%,
      rgb(247 248 246 / 42%) 72%,
      rgb(247 248 246 / 0%) 100%
    );
  }

  .hero-feature__copy {
    padding: clamp(44px, 8vw, 76px) 0 clamp(82px, 12vw, 112px);
  }

  .hero-feature__copy h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 8vw, 4.8rem);
  }

  .hero-categories {
    grid-template-columns: 1fr 1fr;
  }

  .hero-categories a,
  .hero-categories a:first-of-type {
    border-left: 0;
  }

  .hero-categories a {
    border-top: 1px solid var(--border);
  }

  .hero-categories a:nth-of-type(1),
  .hero-categories a:nth-of-type(2) {
    border-top: 0;
  }

  .hero-categories a:nth-of-type(even) {
    border-left: 1px solid var(--border);
  }

  .hero-categories .eyebrow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .section {
    width: min(calc(100% - 24px), var(--container));
  }

  .site-header,
  .shop-topbar {
    width: 100%;
    padding-inline: 16px;
  }

  .shop-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .shop-topbar .shop-topbar__actions {
    justify-content: flex-start;
    margin-left: 0;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    right: 16px;
    display: none;
    width: min(260px, 100%);
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .cart-button {
    font-size: 0;
  }

  .cart-count {
    font-size: 0.75rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 12px;
  }

  .section {
    padding-block: 48px;
  }

  .hero,
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .shop-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }

  .hero-categories {
    width: min(calc(100% - 24px), var(--container));
    grid-template-columns: 1fr;
    margin-top: 12px;
    padding: 14px;
  }

  .hero-categories a {
    padding: 12px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .hero-categories a:first-of-type {
    border-top: 0;
  }

  .hero-categories a:nth-of-type(2) {
    border-top: 1px solid var(--border);
  }

  .hero-categories a:nth-of-type(even) {
    border-left: 0;
  }

  .hero-feature {
    display: block;
    min-height: auto;
  }

  .hero-feature::before {
    inset: 0 0 auto;
    height: clamp(280px, 72vw, 360px);
    background: linear-gradient(
      180deg,
      rgb(247 248 246 / 0%) 0%,
      rgb(247 248 246 / 15%) 46%,
      var(--background) 100%
    );
  }

  .hero-feature__image {
    inset: 0 0 auto;
    height: clamp(280px, 72vw, 360px);
    max-height: none;
    border-left: 0;
    aspect-ratio: auto;
    object-position: center 58%;
  }

  .hero-feature__copy {
    width: min(calc(100% - 24px), var(--container));
    padding: calc(clamp(280px, 72vw, 360px) + 22px) 0 34px;
  }

  .hero-feature__copy h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .hero-feature__copy > p:not(.eyebrow) {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .hero-service {
    width: min(calc(100% - 24px), var(--container));
    grid-template-columns: 1fr;
    margin-top: 12px;
    padding: 12px;
  }

  .category-showcase {
    padding-top: 0;
  }

  .section-heading--wide,
  .chart-review-group__heading,
  .chart-detail__hero,
  .chart-detail__body {
    grid-template-columns: 1fr;
  }

  .section-heading--wide,
  .chart-review-group__heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .chart-card-grid {
    grid-template-columns: 1fr;
  }

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

  .chart-card__media {
    aspect-ratio: 4 / 3;
  }

  .chart-review-group__heading > p {
    max-width: none;
    text-align: left;
  }

  .chart-library {
    gap: 56px;
  }

  .chart-page {
    width: min(calc(100% - 24px), var(--container));
    padding-bottom: 56px;
  }

  .chart-detail__hero {
    gap: 28px;
  }

  .chart-detail__body {
    gap: 14px;
  }

  .category-showcase__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__image-wrap {
    aspect-ratio: 4 / 3;
  }

  .hero__image {
    object-position: center 65%;
  }

  .product-grid,
  .steps,
  .material-category-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    grid-template-columns: 1fr;
  }

  .category-panel__heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .category-panel__heading > p {
    text-align: left;
  }

  .material-group__heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .material-group__heading > p {
    text-align: left;
  }

  .material-group .product-grid {
    grid-template-columns: 1fr;
  }

  .material-category-card {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .product-options,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-guide {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .cart-drawer {
    padding: 20px 16px;
  }

  .checkout-form {
    padding: 22px 18px;
  }

  .checkout-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-actions .js-close-checkout {
    order: 3;
  }

  .copy-success {
    grid-template-columns: auto 1fr;
  }

  .copy-success .button {
    grid-column: 1 / -1;
  }

  .order {
    width: min(calc(100% - 24px), var(--container));
    margin-bottom: 48px;
    padding: 36px 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 48px;
    padding: 42px 16px 82px;
  }

  .footer-brand strong {
    font-size: 1.9rem;
  }

  .product-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .floating-socials {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-auto-flow: column;
    gap: 7px;
  }

  .floating-social {
    width: 44px;
    height: 44px;
  }

  .floating-social svg {
    width: 20px;
    height: 20px;
  }

  .floating-social--zalo {
    font-size: 0.68rem;
  }

  .brand span {
    display: none;
  }

  .hero-feature__copy h1 {
    font-size: clamp(2.1rem, 12vw, 2.8rem);
  }

  .hero-feature .button-row {
    flex-direction: column;
    gap: 10px;
  }

  .hero-feature .button {
    width: 100%;
  }

  .category-showcase__grid {
    grid-template-columns: 1fr;
  }

  .chart-topic-card {
    min-height: 116px;
    padding: 14px;
  }

  .chart-topic-card strong {
    font-size: 1.35rem;
  }

  .chart-review-group__toggle {
    width: 100%;
  }

  .material-category-card {
    grid-template-columns: 1fr;
  }

  .material-category-card__visual {
    aspect-ratio: 16 / 9;
  }
}
