:root {
  --ink: #1c1712;
  --sand: #f6f0e7;
  --linen: #e7dccb;
  --clay: #c7a37a;
  --stone: #7a6f63;
  --paper: #fffdf9;
  --accent-ink: #3b2f23;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Times New Roman", Times, serif;
  color: var(--ink);
  background: linear-gradient(160deg, #f7f2e9 0%, #efe7da 45%, #f9f4ee 100%);
  line-height: 1.7;
  padding-top: 90px; /* space for fixed header */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 242, 233, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 23, 18, 0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.logo {
  font-size: 28px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.2s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-links-center {
  flex: 1;
  justify-content: center;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(28, 23, 18, 0.14);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--stone);
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.1;
}

h1 { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 18px; }
h1 span { color: var(--clay); font-weight: 400; }

section { padding: 70px 0; }

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

.section-head h2 { font-size: clamp(26px, 4vw, 34px); }
.section-head p { color: var(--stone); max-width: 520px; }

.text-section {
  padding: 60px 0;
}

.text-hero {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--ink);
}

.text-block {
  padding: 18px 0 8px;
  border-top: 1px solid rgba(28, 23, 18, 0.08);
}

.text-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.text-block p {
  color: var(--stone);
  margin-bottom: 10px;
}

.fabrics-section {
  padding: 60px 0;
}

.fabric-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 18px 0;
}

.fabric-block.reverse {
  flex-direction: row-reverse;
}

.fabric-copy,
.fabric-media {
  flex: 1;
}

.fabric-media {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

.fabric-block.reverse .fabric-media {
  justify-content: flex-start;
}

.fabric-keyword {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.fabric-keyword.light { color: #b79255; }
.fabric-keyword.breath { color: #5f8f7a; }
.fabric-keyword.comfort { color: #8a5f70; }

.fabric-lead {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.fabric-copy p {
  color: var(--stone);
  margin-bottom: 6px;
}

.fabric-video {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
  display: block;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  transform: scale(1.06);
}

.making-section {
  padding: 60px 0;
}

.making-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  height: 360px;
  transition: grid-template-columns 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: grid-template-columns;
}

.making-panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1), filter 1.05s ease;
  cursor: pointer;
}

.making-grid[data-active="1"] { grid-template-columns: 2.6fr 1fr 1fr 1fr; }
.making-grid[data-active="2"] { grid-template-columns: 1fr 2.6fr 1fr 1fr; }
.making-grid[data-active="3"] { grid-template-columns: 1fr 1fr 2.6fr 1fr; }
.making-grid[data-active="4"] { grid-template-columns: 1fr 1fr 1fr 2.6fr; }

.making-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.65) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0s;
  pointer-events: none;
}

.making-overlay h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}

.making-overlay p {
  font-size: 13px;
  line-height: 1.6;
}

.making-panel:hover .making-overlay {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.making-grid[data-active="1"] .making-panel:nth-child(1) .making-overlay,
.making-grid[data-active="2"] .making-panel:nth-child(2) .making-overlay,
.making-grid[data-active="3"] .making-panel:nth-child(3) .making-overlay,
.making-grid[data-active="4"] .making-panel:nth-child(4) .making-overlay {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.making-grid:hover .making-panel {
  transform: scale(0.995);
  filter: saturate(0.98);
}

.making-panel:hover {
  transform: scale(1.005);
  filter: saturate(1.01);
}

.btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(0,0,0,0.1); }

.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 20px; margin: 8px 0 10px; }
.card-body p { color: var(--stone); font-size: 14px; }
.card-body {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 210px;
}

.badge-row {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(28, 23, 18, 0.12);
  color: #2f2821;
}

.badge.new {
  background: #dceee0;
  border-color: rgba(33, 71, 46, 0.18);
}

.badge.best {
  background: #f6dede;
  border-color: rgba(87, 35, 35, 0.2);
  color: #3d2626;
  font-weight: 600;
}

.badge.empty { visibility: hidden; }

.product-link {
  color: inherit;
  text-decoration: none;
}

.product-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.product-grid .retail-card {
  width: 100%;
  flex: none;
}

.price {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.retail-bar {
  position: relative;
}

.retail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.retail-head h2 {
  font-size: clamp(26px, 4vw, 34px);
}

.retail-controls {
  display: flex;
  gap: 10px;
}

.retail-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(28, 23, 18, 0.2);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.retail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.retail-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.retail-track {
  --gap: 18px;
  display: flex;
  gap: var(--gap);
  transition: transform 0.35s ease;
  will-change: transform;
}

.retail-card {
  flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
  background: var(--paper);
  border: 1px solid rgba(28, 23, 18, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(28, 23, 18, 0.08);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.retail-card .img {
  height: 280px;
  background-size: cover;
  background-position: center;
}

.retail-card .card-body {
  padding: 18px 20px 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.retail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(28, 23, 18, 0.3);
  background: #e8dac8;
}

.product-page {
  padding: 60px 0 80px;
}

.product-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.product-breadcrumb {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.product-gallery {
  display: grid;
  gap: 18px;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(28, 23, 18, 0.08);
  background: #f2e9dc;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(28, 23, 18, 0.2);
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-btn:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.gallery-btn.prev { left: 12px; }
.gallery-btn.next { right: 12px; }

.product-main {
  display: grid;
  gap: 16px;
  align-content: start;
}

.product-title {
  font-size: clamp(24px, 3vw, 32px);
}

.product-price {
  font-size: 22px;
  font-weight: 600;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--stone);
}

.rating-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
}

.product-desc {
  color: var(--stone);
  font-size: 15px;
}

.color-row {
  display: grid;
  gap: 8px;
}

.color-row span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--stone);
}

.color-swatches {
  display: flex;
  gap: 10px;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(28, 23, 18, 0.3);
}

.size-row {
  display: grid;
  gap: 8px;
}

.size-row span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--stone);
}

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

.size-btn {
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(28, 23, 18, 0.18);
  background: #fff;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.size-btn:hover {
  background: var(--accent-ink);
  color: #fff;
  border-color: var(--accent-ink);
}

.size-btn.is-active {
  background: var(--accent-ink);
  color: #fff;
  border-color: var(--accent-ink);
}

.add-to-cart {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent-ink);
  background: var(--accent-ink);
  color: #fff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.product-notes {
  border-top: 1px solid rgba(28, 23, 18, 0.08);
  padding-top: 16px;
  color: var(--stone);
  font-size: 14px;
}

.video-hero {
  padding: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.video-shell {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  border: none;
  box-shadow: none;
}

.video-frame {
  width: 100%;
  height: clamp(340px, 60vh, 640px);
  object-fit: cover;
  display: block;
}

.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  background: var(--paper);
  border: 1px solid rgba(28, 23, 18, 0.08);
  border-radius: 26px;
  padding: 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(199, 163, 122, 0.16);
  color: #8b673c;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.story ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.story li {
  border: 1px solid rgba(28, 23, 18, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fdfaf6;
  font-size: 14px;
  color: var(--stone);
}

.story aside {
  background: linear-gradient(160deg, #f5efe7, #f1e6d7);
  border-radius: 20px;
  padding: 24px;
}

.story aside h3 { font-size: 22px; margin-bottom: 10px; }
.story aside p { color: #6a5f54; font-size: 14px; }

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

.contact-card {
  background: var(--paper);
  border: 1px solid rgba(28, 23, 18, 0.08);
  border-radius: 20px;
  padding: 24px;
}

.site-footer {
  padding: 36px 0 50px;
  border-top: 1px solid rgba(28, 23, 18, 0.08);
  color: var(--stone);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(28, 23, 18, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.footer-icon svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  text-align: right;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .story { grid-template-columns: 1fr; padding: 32px; }
  .contact { grid-template-columns: 1fr; }
  .retail-card { flex: 0 0 calc((100% - var(--gap)) / 2); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
  .product-layout { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fabric-block,
  .fabric-block.reverse {
    flex-direction: column;
    align-items: flex-start;
  }
  .making-grid {
    flex-direction: column;
    height: auto;
  }
  .making-panel {
    height: 180px;
  }
  .making-panel:hover {
    flex: 1;
  }
}
