:root {
  --bg: #ffffff;
  --bg-soft: #faf8f8;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --line: #e7dddd;
  --line-strong: #cdbbbb;
  --text: #241f20;
  --muted: #6e6264;
  --accent: #d91f26;
  --accent-deep: #b8141b;
  --accent-soft: #f8d8d9;
  --sage: #8b8687;
  --mustard: #a58a8f;
  --dusty: #b49b9e;
  --info: #655d5f;
  --danger: #b8141b;
  --success: #7c676b;
  --shadow: 0 18px 40px rgba(60, 28, 30, 0.08);
  --shadow-soft: 0 10px 24px rgba(60, 28, 30, 0.05);
  --shadow-hover: 0 22px 44px rgba(60, 28, 30, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --max-width: 1240px;
  --font-editorial: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top left, rgba(217, 31, 38, 0.09), transparent 22%),
    radial-gradient(circle at top right, rgba(36, 31, 32, 0.04), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fbf8f8 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.wide-container {
  width: min(calc(100% - 44px), 1460px);
  margin: 0 auto;
}

.screen-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: clamp(20px, 3.2vw, 52px);
  padding-right: clamp(20px, 3.2vw, 52px);
}

.header-shell {
  width: min(calc(100% - 40px), 1480px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 10px 14px;
  background: var(--text);
  color: white;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(205, 187, 187, 0.34);
  box-shadow: 0 6px 22px rgba(60, 28, 30, 0.04);
}

.utility-bar {
  border-bottom: 1px solid rgba(205, 187, 187, 0.34);
  color: var(--muted);
  font-size: 0.85rem;
}

.utility-bar .header-shell,
.header-main .header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility-bar .header-shell {
  min-height: 42px;
}

.utility-locale {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.utility-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-dropdown {
  position: relative;
}

.utility-dropdown summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(205, 187, 187, 0.4);
  color: var(--muted);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.utility-dropdown summary::-webkit-details-marker {
  display: none;
}

.utility-dropdown summary::after {
  content: "▾";
  font-size: 0.8rem;
  color: var(--accent-deep);
}

.utility-dropdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.utility-dropdown-value {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.utility-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(205, 187, 187, 0.34);
  box-shadow: 0 18px 40px rgba(43, 36, 31, 0.12);
  display: grid;
  gap: 2px;
  z-index: 40;
}

.utility-dropdown-panel a,
.utility-dropdown-panel button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.83rem;
  text-align: left;
  cursor: pointer;
}

.utility-dropdown-panel a:hover,
.utility-dropdown-panel button:hover {
  background: rgba(248, 216, 217, 0.34);
}

.utility-pills,
.header-actions,
.nav-links,
.trust-badges,
.stat-row,
.product-swatches,
.meta-list,
.benefit-grid,
.footer-columns,
.category-rail,
.hero-actions,
.card-actions,
.selection-row,
.summary-lines,
.checkout-steps,
.payment-methods,
.product-grid,
.tile-grid,
.info-grid,
.projects-grid,
.related-grid,
.form-row,
.chips,
.selector-row,
.color-pills,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-pill,
.trust-chip,
.badge,
.meta-pill,
.chip,
.swatch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
}

.utility-pill,
.trust-chip,
.chip,
.swatch-label {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(205, 187, 187, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
}

.logo-text strong,
.logo-text span,
.mega-link,
.mega-col a,
.utility-bar,
.utility-pill,
.trust-chip,
.badge,
.chip,
.btn,
.field,
.select,
.textarea,
.selector-label,
.price,
.price-old {
  font-family: var(--font-ui);
}

.display {
  display: block;
  font-family: var(--font-editorial);
  letter-spacing: -0.02em;
}

.field-col {
  min-width: 0;
}

.field-col-220 {
  flex: 1 1 220px;
}

.field-col-180 {
  flex: 1 1 180px;
}

.field-col-full {
  flex: 1 1 100%;
}

.mt-16 {
  margin-top: 16px;
}

.mt-18 {
  margin-top: 18px;
}

.logo-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo-text span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.header-main {
  padding: 12px 0 10px;
}

.header-top-row {
  min-height: 74px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(205, 187, 187, 0.28);
}

.searchbar {
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(205, 187, 187, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.searchbar input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
}

.searchbar input::placeholder {
  color: #9b8f91;
}

.icon-button,
.menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(205, 187, 187, 0.5);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-cart .icon-svg {
  width: 20px;
  height: 20px;
}

.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(217, 31, 38, 0.28);
}

.icon-button:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 31, 38, 0.28);
  background: rgba(255, 255, 255, 1);
}

.menu-toggle {
  display: none;
}

.mega-nav {
  width: 100%;
}

.mega-nav-list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  position: relative;
  padding-top: 8px;
}

.mega-item {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.mega-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.mega-link:hover,
.mega-link:focus-visible,
.mega-item:hover > .mega-link,
.mega-item:focus-within > .mega-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.mega-link-standalone {
  position: relative;
  top: 0;
}

.mega-item-highlight > .mega-link {
  color: var(--accent-deep);
  background: rgba(248, 216, 217, 0.42);
}

.mega-panel {
  position: absolute;
  left: 0;
  top: calc(100% - 4px);
  min-width: 760px;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(205, 187, 187, 0.42);
  box-shadow: var(--shadow);
}

.mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.mega-item:hover .mega-panel,
.mega-item:focus-within .mega-panel {
  display: grid;
}

.mega-panel-highlight {
  min-width: 820px;
  background:
    radial-gradient(circle at top right, rgba(217, 31, 38, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.985);
}

.mega-col {
  display: grid;
  gap: 11px;
}

.mega-col strong {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-family: var(--font-ui);
  font-weight: 800;
}

.mega-col a {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.95rem;
}

.mega-col a:hover,
.mega-col a:focus-visible {
  color: var(--text);
}

.page-main {
  padding: 36px 0 92px;
}

.hero {
  padding: 34px 0 18px;
}

.hero-banner {
  padding-top: 0;
}

.full-bleed-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 22px;
  margin-bottom: 18px;
}

.full-bleed-banner-link {
  display: block;
  width: 100%;
  min-height: 72vh;
  max-height: 920px;
  overflow: hidden;
  background: #f6f1f1;
  position: relative;
}

.full-bleed-banner-image {
  width: 100%;
  height: min(72vh, 920px);
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
}

.hero-panel,
.section-panel,
.category-card,
.product-card,
.feature-card,
.content-card,
.summary-card,
.form-card,
.checkout-card,
.cart-item,
.empty-state,
.filter-card,
.gallery-card,
.product-detail-panel,
.accordion-card,
.footer-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(205, 187, 187, 0.34);
  box-shadow: var(--shadow);
}

.hero-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-track {
  position: relative;
}

.hero-slide {
  display: none;
  width: 100%;
  animation: heroFade 0.45s ease;
}

.hero-slide.is-active {
  display: block;
}

.hero-panel-banner {
  min-height: 620px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.hero-visual-banner {
  min-height: 620px;
}

.hero-accent-wool .hero-visual {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), transparent 50%),
    radial-gradient(circle at 34% 24%, rgba(217, 31, 38, 0.16), transparent 24%),
    linear-gradient(135deg, #fff7f7 0%, #f8d7d9 52%, #d91f26 100%);
}

.hero-accent-pdf .hero-visual {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), transparent 50%),
    radial-gradient(circle at 38% 22%, rgba(217, 31, 38, 0.12), transparent 24%),
    linear-gradient(135deg, #fff7f8 0%, #efd7dc 50%, #cf7d84 100%);
}

.hero-accent-fabric .hero-visual {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), transparent 50%),
    radial-gradient(circle at 34% 24%, rgba(36, 31, 32, 0.08), transparent 24%),
    linear-gradient(135deg, #f8f4f4 0%, #e3d4d6 52%, #b9adb0 100%);
}

.hero-carousel-controls {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-nav,
.hero-dot {
  border: 1px solid rgba(205, 187, 187, 0.48);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.hero-nav:hover,
.hero-dot:hover {
  border-color: rgba(217, 31, 38, 0.28);
}

.hero-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.35rem;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--accent);
  border-color: var(--accent);
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  padding: 58px 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

h1,
h2,
.display {
  margin: 0 0 14px;
  line-height: 1.02;
  font-family: var(--font-editorial);
  font-weight: 700;
}

h3 {
  margin: 0 0 14px;
  line-height: 1.18;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.9rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: var(--muted);
  font-family: var(--font-ui);
}

.hero-copy p {
  font-size: 1.06rem;
  max-width: 58ch;
}

.hero-visual {
  min-height: 520px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), transparent 50%),
    radial-gradient(circle at 34% 24%, rgba(217, 31, 38, 0.14), transparent 24%),
    linear-gradient(135deg, #fff6f6 0%, #f6d8da 52%, #d91f26 100%);
  position: relative;
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-visual::before {
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.62);
  top: 48px;
  right: 44px;
}

.hero-visual::after {
  width: 300px;
  height: 300px;
  background: rgba(36, 31, 32, 0.06);
  left: 26px;
  bottom: 34px;
}

.hero-photo-shell {
  position: absolute;
  inset: 38px;
  z-index: 1;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-still-life,
.placeholder-still-life {
  position: absolute;
  inset: auto 56px 52px 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  z-index: 1;
}

.skein,
.fabric-roll,
.needle-card {
  min-height: 160px;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.skein {
  background: linear-gradient(180deg, #ffe8e9, #d91f26);
}

.fabric-roll {
  background: linear-gradient(180deg, #f5f2f2, #b9acaf);
}

.needle-card {
  background: linear-gradient(180deg, #ffffff, #d7cfd1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  text-transform: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 16px 28px rgba(184, 98, 66, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-deep);
}

.btn-secondary {
  background: rgba(255, 253, 250, 0.8);
  border-color: rgba(205, 187, 187, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(205, 187, 187, 0.55);
}

.btn-secondary:hover,
.btn-ghost:hover {
  box-shadow: var(--shadow-soft);
}

.section {
  padding-top: 42px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head p,
.section-title p {
  max-width: 60ch;
}

.section-head .btn {
  margin-bottom: 2px;
}

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

.intent-grid,
.learning-grid,
.community-grid,
.project-state-grid,
.review-grid,
.account-dashboard-grid {
  display: grid;
  gap: 18px;
}

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

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

.community-grid,
.project-state-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.intent-card,
.learning-card,
.community-card,
.project-state-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
}

.intent-card {
  background:
    radial-gradient(circle at top right, rgba(217, 31, 38, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.96);
}

.learning-card {
  background:
    radial-gradient(circle at top right, rgba(217, 31, 38, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 248, 0.98));
}

.community-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 247, 0.96));
}

.project-state-card {
  background:
    radial-gradient(circle at top right, rgba(217, 31, 38, 0.07), transparent 28%),
    rgba(255, 255, 255, 0.97);
}

.intent-card h3,
.learning-card h3,
.community-card h3 {
  margin-bottom: 10px;
}

.intent-card p,
.learning-card p,
.community-card p,
.project-state-card p {
  max-width: 34ch;
}

.project-state-count {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-deep);
}

.club-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(205, 187, 187, 0.34);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top right, rgba(217, 31, 38, 0.09), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 246, 0.96));
}

.auth-grid {
  align-items: start;
}

.auth-card {
  min-height: 100%;
}

.account-layout-compact {
  grid-template-columns: 0.95fr 1.05fr;
}

.project-state-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-state-toggle button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(205, 187, 187, 0.44);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-state-toggle button.active {
  border-color: rgba(217, 31, 38, 0.34);
  background: rgba(248, 216, 217, 0.46);
  color: var(--accent-deep);
}

.library-item-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-deep);
}

.text-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(2px);
}

.category-card {
  padding: 24px;
  min-height: 196px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 31, 38, 0.16);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  right: -16px;
  bottom: -12px;
  opacity: 0.18;
}

.category-card.wool::after { background: #d91f26; }
.category-card.fabric::after { background: #d0c4c6; }
.category-card.pdf::after { background: #e79da1; }
.category-card.tools::after { background: #baa8ab; }
.category-card.new::after { background: #c93a40; }
.category-card.sale::after { background: #f1b6b9; }

.category-card h3,
.product-card h3,
.feature-card h3,
.content-card h3 {
  margin-bottom: 8px;
}

.category-card p,
.product-body p,
.content-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-grid,
.projects-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 31, 38, 0.16);
}

.product-media,
.project-media,
.gallery-main,
.gallery-thumb,
.account-visual,
.empty-illustration {
  background: linear-gradient(135deg, #fff6f6, #e5c6c8);
}

.product-media {
  aspect-ratio: 0.9;
  position: relative;
  overflow: hidden;
}

.product-media.pdf {
  background: linear-gradient(135deg, #fdecef, #cf7d84);
}

.product-media.fabric {
  background: linear-gradient(135deg, #f6f2f2, #c7b8bb);
}

.product-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  min-height: 248px;
}

.product-body h3 a {
  display: inline-block;
}

.product-body h3,
.content-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-body .card-actions {
  margin-top: auto;
}

.badge {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.new { background: #fff1f1; color: var(--accent-deep); }
.badge.sale { background: #ffe9ea; color: var(--accent-deep); }
.badge.pdf { background: #fff4f4; color: #9b454a; }
.badge.out { background: #f9eeee; color: var(--danger); }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 14px;
}

.price {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-old {
  text-decoration: line-through;
  color: var(--muted);
}

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

.small {
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(43, 36, 31, 0.16);
}

.section-panel {
  padding: 24px;
}

.feature-grid,
.checkout-grid,
.cart-layout,
.account-layout,
.catalog-layout,
.product-layout,
.pattern-layout {
  display: grid;
  gap: 30px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.content-card,
.summary-card,
.form-card,
.checkout-card,
.filter-card,
.gallery-card,
.product-detail-panel,
.accordion-card,
.cart-item {
  padding: 26px;
}

.project-media {
  aspect-ratio: 1.15;
  border-radius: 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff5f5, #d91f26);
}

.media-photo,
.gallery-photo,
.gallery-thumb-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media.fabric {
  background: linear-gradient(135deg, #f6f3f3, #b9adb0);
}

.project-media.pdf {
  background: linear-gradient(135deg, #fff0f1, #d78288);
}

.account-page {
  padding-top: 8px;
}

.account-benefit-list,
.dashboard-list {
  display: grid;
  gap: 12px;
}

.account-dashboard-section {
  margin-top: 10px;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(205, 187, 187, 0.34);
  background: rgba(255, 255, 255, 0.74);
}

.dashboard-row strong {
  display: block;
  margin-bottom: 4px;
}

.dashboard-row a {
  white-space: nowrap;
  color: var(--accent-deep);
  font-weight: 700;
}

.dashboard-row a:hover {
  color: var(--accent);
}

.newsletter {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.newsletter-copy {
  padding: 42px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.field,
.select,
.textarea {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(205, 187, 187, 0.56);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 16px;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.btn:focus-visible,
.icon-button:focus-visible,
.menu-toggle:focus-visible,
.searchbar:focus-within {
  outline: 3px solid rgba(217, 31, 38, 0.18);
  outline-offset: 2px;
}

.field-error {
  border-color: rgba(162, 70, 56, 0.62);
}

.helper,
.error-text {
  font-size: 0.88rem;
}

.error-text {
  color: var(--danger);
}

.newsletter-art {
  min-height: 320px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, #d91f26 0%, #f2b7ba 100%);
}

.site-footer {
  padding-bottom: 36px;
}

.footer-panel {
  padding: 32px;
}

.footer-columns {
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 180px;
}

.footer-col a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--text);
}

.page-hero {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  padding: 18px 0 34px;
}

.page-hero-copy {
  max-width: 760px;
}

.page-hero h1,
.detail-header h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-hero-chips {
  margin-top: 18px;
}

.page-hero-sheet {
  max-width: 320px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.catalog-layout {
  grid-template-columns: 336px minmax(0, 1fr);
  align-items: start;
}

.filter-card {
  position: sticky;
  top: 122px;
  border-radius: 28px;
}

.filter-group + .filter-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(205, 187, 187, 0.3);
}

.filter-options {
  display: grid;
  gap: 12px;
}

.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(205, 187, 187, 0.34);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 31, 38, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 18px rgba(43, 36, 31, 0.05);
}

.filter-chip.active {
  border-color: rgba(217, 31, 38, 0.22);
  background: linear-gradient(180deg, rgba(255, 248, 248, 1), rgba(248, 216, 217, 0.72));
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(217, 31, 38, 0.18), 0 10px 18px rgba(217, 31, 38, 0.08);
}

.filter-chip:focus-visible {
  outline: 2px solid rgba(217, 31, 38, 0.26);
  outline-offset: 2px;
}

.checkbox {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(205, 187, 187, 0.26);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.checkbox input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.checkbox-ui {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid rgba(186, 168, 171, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 239, 0.98));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.checkbox-ui svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.checkbox-label {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}

.checkbox:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 31, 38, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 18px rgba(43, 36, 31, 0.05);
}

.checkbox input:focus-visible + .checkbox-ui {
  outline: 2px solid rgba(217, 31, 38, 0.28);
  outline-offset: 2px;
}

.checkbox input:checked + .checkbox-ui {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 16px rgba(217, 31, 38, 0.18);
}

.checkbox input:checked + .checkbox-ui svg {
  opacity: 1;
  transform: scale(1);
}

.checkbox input:checked ~ .checkbox-label {
  color: var(--text);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(205, 187, 187, 0.34);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.results-summary {
  color: var(--muted);
  margin-top: 8px;
}

.filter-drawer-toggle,
.mobile-only {
  display: none;
}

.empty-state {
  padding: 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
}

.section-empty-panel {
  margin-top: 28px;
}

.empty-illustration {
  min-height: 160px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff3f3, #d91f26);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.pagination a {
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(205, 187, 187, 0.5);
  background: rgba(255, 255, 255, 0.92);
}

.pagination a.active {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.pagination a:hover:not(.active) {
  border-color: rgba(217, 31, 38, 0.24);
}

.product-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
}

.pattern-layout {
  grid-template-columns: 1fr;
  align-items: start;
}

.pattern-main {
  display: grid;
  gap: 24px;
}

.pattern-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 30px;
  align-items: start;
}

.pattern-hero-card,
.pattern-detail-panel,
.pattern-materials-panel,
.pattern-summary {
  border-radius: 30px;
}

.pattern-hero-image-wrap {
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff4f4, #d91f26);
}

.pattern-hero-image {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.pattern-meta-stack {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.pattern-aside {
  gap: 20px;
}

.pattern-summary {
  position: sticky;
  top: 118px;
}

.pattern-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}

.pattern-option-block + .pattern-option-block {
  margin-top: 22px;
}

.pattern-material-list {
  display: grid;
  gap: 16px;
}

.pattern-material-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(205, 187, 187, 0.32);
}

.pattern-material-media {
  min-height: 132px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff4f4;
}

.pattern-material-copy h3 {
  margin-bottom: 6px;
}

.pattern-material-copy p {
  margin-bottom: 6px;
}

.pattern-material-qty {
  min-width: 150px;
}

.pattern-line-total {
  margin-top: 10px;
  margin-bottom: 0;
}

.pattern-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.catalog-page .product-grid,
.product-page .related-grid,
.product-page .projects-grid {
  gap: 20px;
}

.catalog-page .page-hero-copy {
  max-width: 820px;
}

.product-page .detail-aside {
  gap: 22px;
}

.product-page .gallery-card,
.product-page .product-detail-panel,
.product-page .section-panel,
.product-page .accordion-card {
  border-radius: 30px;
}

.home-editorial .section-panel,
.home-editorial .feature-card {
  border-radius: 30px;
}

.screen-shell .section-panel,
.screen-shell .gallery-card,
.screen-shell .product-detail-panel,
.screen-shell .accordion-card,
.screen-shell .filter-card,
.screen-shell .panel-sheet,
.screen-shell .toolbar {
  backdrop-filter: blur(8px);
}

.gallery-main {
  min-height: 560px;
  border-radius: 28px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.38), transparent 14%),
    linear-gradient(135deg, #fff4f4, #d91f26);
}

.gallery-main::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 0 8%, transparent 8% 14%, rgba(255,255,255,0.12) 14% 21%, transparent 21% 100%);
  border-radius: 28px;
}

.gallery-main {
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.gallery-main .gallery-photo {
  position: relative;
  z-index: 1;
  transition: opacity 0.18s ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.01);
}

.gallery-zoom-hint {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(205, 187, 187, 0.4);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(43, 36, 31, 0.08);
}

.gallery-main.is-zooming .gallery-zoom {
  opacity: 1;
}

.gallery-main.is-zooming .gallery-photo {
  opacity: 0;
}

.gallery-main.is-zooming .gallery-zoom-hint {
  opacity: 0;
}

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

.gallery-thumb {
  min-height: 110px;
  border-radius: 20px;
  border: 1px solid rgba(205, 187, 187, 0.4);
  overflow: hidden;
  background: white;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  transform: translateY(-1px);
  border-color: rgba(217, 31, 38, 0.3);
  box-shadow: var(--shadow-soft);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 4px;
}

.detail-header-copy {
  max-width: 560px;
}

.rating-wrap {
  text-align: right;
}

.rating {
  color: var(--mustard);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.detail-price-block {
  padding: 18px 0 4px;
  border-top: 1px solid rgba(205, 187, 187, 0.24);
  border-bottom: 1px solid rgba(205, 187, 187, 0.24);
  margin: 18px 0 22px;
}

.detail-availability {
  margin: -6px 0 0;
  font-size: 0.96rem;
  color: var(--muted);
}

.variant-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.variant-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(205, 187, 187, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wishlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 2px;
}

.wishlist-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.wishlist-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--accent-deep);
  background: transparent;
  border: 0;
  padding: 0;
}

.wishlist-link::before {
  content: "♡";
  font-size: 1rem;
}

.wishlist-link.is-saved::before {
  content: "♥";
}

.remove-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-weight: 700;
}

.remove-link:hover,
.remove-link:focus-visible {
  color: var(--accent-deep);
}

.btn.is-saved {
  border-color: rgba(217, 31, 38, 0.38);
  background: rgba(248, 216, 217, 0.46);
  color: var(--accent-deep);
}

.loyalty-inline-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 248, 248, 0.96);
  border: 1px solid rgba(205, 187, 187, 0.34);
  display: grid;
  gap: 10px;
}

.review-card {
  padding: 20px;
}

.review-media {
  aspect-ratio: 1.12;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff6f6, #e5c6c8);
}

.review-copy h3 {
  margin: 8px 0 4px;
}

.loyalty-summary-card p {
  margin: 0;
}

.checkout-summary-line > div {
  display: grid;
  gap: 8px;
}

.checkout-item-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
}

.checkout-item-status .meta-pill {
  min-height: 30px;
  font-size: 0.74rem;
}

.checkout-library-card p,
.checkout-library-card .notice {
  margin-bottom: 0;
}

.checkout-card > .small:first-of-type {
  margin-top: -2px;
}

.selector-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-weight: 700;
}

.color-pills button {
  min-width: 84px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(205, 187, 187, 0.55);
  background: rgba(255, 255, 255, 0.94);
}

.color-pills button.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.yarn-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.variant-secondary-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid rgba(205, 187, 187, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 241, 0.96));
}

.variant-secondary-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.variant-secondary-item p {
  margin: 0;
  color: var(--text);
}

.yarn-swatch {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(205, 187, 187, 0.55);
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
  position: relative;
}

.yarn-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 31, 38, 0.28);
  box-shadow: 0 10px 22px rgba(43, 36, 31, 0.07);
}

.yarn-swatch.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 14px 26px rgba(217, 31, 38, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 249, 249, 1));
}

.yarn-swatch-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(252, 250, 249, 1), rgba(246, 241, 238, 1));
}

.yarn-swatch-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yarn-swatch-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(43, 36, 31, 0.12);
  border: 1px solid rgba(217, 31, 38, 0.12);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.yarn-swatch-check svg {
  width: 16px;
  height: 16px;
}

.yarn-swatch.active .yarn-swatch-check {
  opacity: 1;
  transform: scale(1);
}

.yarn-swatch-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 2.9rem;
}

.yarn-swatch-code {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yarn-swatch-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(205, 187, 187, 0.55);
}

.quantity-selector button,
.quantity-selector input {
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  text-align: center;
}

.detail-aside {
  display: grid;
  gap: 18px;
}

.detail-notice-list {
  margin-top: 20px;
}

.notice {
  border-radius: 22px;
  padding: 18px;
  background: rgba(248, 216, 217, 0.44);
  border: 1px solid rgba(217, 31, 38, 0.2);
}

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

.info-tile {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(205, 187, 187, 0.34);
  min-height: 124px;
}

.accordion-card details + details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(205, 187, 187, 0.3);
}

.accordion-card summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.accordion-card summary::-webkit-details-marker {
  display: none;
}

.account-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.account-visual {
  min-height: 680px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 66% 22%, rgba(255, 255, 255, 0.34), transparent 12%),
    linear-gradient(135deg, #fff3f3, #d91f26);
}

.form-card label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
}

.notice strong,
.panel-sheet strong,
.summary-card strong {
  color: var(--text);
}

.form-stack {
  display: grid;
  gap: 18px;
}

.cart-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 18px;
  align-items: start;
}

.cart-media {
  min-height: 132px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff4f4, #d91f26);
  overflow: hidden;
}

.checkout-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.checkout-steps {
  gap: 16px;
}

.step-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(205, 187, 187, 0.42);
  color: var(--muted);
  font-weight: 700;
}

.step-pill.active {
  color: var(--accent-deep);
  border-color: rgba(217, 31, 38, 0.36);
  background: rgba(248, 216, 217, 0.5);
}

.summary-card.sticky {
  position: sticky;
  top: 122px;
}

.divider {
  height: 1px;
  background: rgba(205, 187, 187, 0.3);
  margin: 20px 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.total-line {
  font-size: 1.15rem;
  font-weight: 800;
}

.notice-list,
.link-list {
  display: grid;
  gap: 10px;
}

.panel-sheet {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(205, 187, 187, 0.36);
  padding: 18px;
}

[data-mobile-menu],
[data-filter-drawer] {
  display: none;
}

@media (max-width: 1120px) {
  .hero-panel,
  .newsletter,
  .product-layout,
  .pattern-layout,
  .pattern-overview,
  .catalog-layout,
  .cart-layout,
  .checkout-grid,
  .account-layout,
  .feature-grid,
  .product-grid,
  .projects-grid,
  .related-grid,
  .tile-grid,
  .intent-grid,
  .learning-grid,
  .community-grid,
  .project-state-grid,
  .review-grid,
  .account-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout,
  .cart-layout,
  .checkout-grid,
  .account-layout,
  .product-layout,
  .pattern-layout,
  .pattern-overview {
    grid-template-columns: 1fr;
  }

  .filter-card,
  .summary-card.sticky {
    position: static;
  }

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

@media (max-width: 860px) {
  .utility-bar {
    display: none;
  }

  .header-main .header-shell {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav,
  .desktop-only {
    display: none;
  }

  [data-mobile-menu].open,
  [data-filter-drawer].open {
    display: block;
  }

  .mobile-panel {
    margin-top: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(205, 187, 187, 0.34);
    box-shadow: var(--shadow);
  }

  .mobile-panel .nav-links {
    flex-direction: column;
    gap: 4px;
  }

  .header-shell {
    width: min(calc(100% - 20px), 1480px);
  }

  .wide-container {
    width: min(calc(100% - 24px), 1460px);
  }

  .screen-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mobile-menu-groups {
    display: grid;
    gap: 10px;
  }

  .mobile-group {
    border: 1px solid rgba(205, 187, 187, 0.34);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    padding: 0 16px;
  }

  .mobile-group summary {
    list-style: none;
    cursor: pointer;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
  }

  .mobile-group summary::after {
    content: "+";
    color: var(--accent-deep);
    font-size: 1.1rem;
  }

  .mobile-group[open] summary::after {
    content: "−";
  }

  .mobile-group summary::-webkit-details-marker {
    display: none;
  }

  .mobile-submenu {
    display: grid;
    gap: 10px;
    padding: 0 0 16px;
  }

  .mobile-submenu a {
    color: var(--muted);
  }

  .mobile-links-flat {
    margin-top: 4px;
    padding: 0;
  }

  .hero-panel,
  .newsletter,
  .empty-state,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .hero-panel-banner,
  .hero-visual-banner {
    min-height: 0;
  }

  .hero-copy,
  .newsletter-copy {
    padding: 28px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .full-bleed-banner-link,
  .full-bleed-banner-image {
    min-height: 48vh;
    height: 48vh;
  }

  .hero-photo-shell {
    inset: 22px;
    border-radius: 24px;
  }

  .hero-still-life {
    inset: auto 28px 28px 28px;
  }

  .feature-grid,
  .product-grid,
  .projects-grid,
  .related-grid,
  .tile-grid,
  .intent-grid,
  .learning-grid,
  .community-grid,
  .project-state-grid,
  .review-grid,
  .account-dashboard-grid,
  .info-grid,
  .pattern-meta-grid,
  .pattern-support-grid,
  .gallery-thumbs {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-hero,
  .section-head,
  .toolbar,
  .detail-header {
    flex-direction: column;
    align-items: start;
  }

  .rating-wrap,
  .wishlist-row {
    text-align: left;
    align-items: start;
    justify-content: start;
    flex-direction: column;
  }

  .library-item-actions {
    justify-items: start;
  }

  .club-banner {
    flex-direction: column;
    align-items: start;
  }

  .filter-drawer-toggle,
  .mobile-only {
    display: inline-flex;
  }

  .catalog-layout > .filter-card.desktop-filter {
    display: none;
  }
}

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

  .wide-container {
    width: min(calc(100% - 20px), 1460px);
  }

  .screen-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-main {
    padding-bottom: 56px;
  }

  .feature-grid,
  .product-grid,
  .projects-grid,
  .related-grid,
  .tile-grid,
  .intent-grid,
  .learning-grid,
  .community-grid,
  .project-state-grid,
  .review-grid,
  .account-dashboard-grid,
  .gallery-thumbs,
  .info-grid,
  .variant-secondary-panel,
  .pattern-meta-grid,
  .pattern-support-grid {
    grid-template-columns: 1fr;
  }

  .yarn-swatches {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dashboard-row {
    flex-direction: column;
    align-items: start;
  }

  .hero-copy {
    padding: 24px;
  }

  .full-bleed-banner {
    margin-top: 12px;
  }

  .hero-carousel-controls {
    gap: 10px;
  }

  .hero-nav {
    width: 42px;
    height: 42px;
  }

  .hero-copy p,
  p {
    font-size: 0.98rem;
  }

  .gallery-main {
    cursor: default;
  }

  .gallery-zoom,
  .gallery-zoom-hint {
    display: none;
  }

  .searchbar {
    order: 3;
    width: 100%;
  }

  .brand-logo {
    width: 108px;
  }

  .cart-layout,
  .checkout-grid {
    gap: 18px;
  }

  .product-body,
  .feature-card,
  .content-card,
  .summary-card,
  .form-card,
  .checkout-card,
  .filter-card,
  .gallery-card,
  .product-detail-panel,
  .accordion-card,
  .cart-item {
    padding: 20px;
  }

  .footer-panel {
    padding: 24px;
  }
}
