:root {
  --ivory: #fffdf8;
  --ivory-deep: #e8dfd0;
  --sand: #efe8dc;
  --beige: #e7dccb;
  /* Brand colours, taken from natural linen: oatmeal base, flax highlight, walnut for ink and buttons. */
  --walnut: #5a4a3a;
  --walnut-deep: #3d3228;
  --flax-soft: #e7dccb;
  --flax: #c9a96e;
  --terracotta: var(--walnut);
  --terracotta-deep: var(--walnut-deep);
  --white: #ffffff;
  --rose: #d3a5a5;
  --blush: #xffd1dc;
  --lilac: #c8a2c8;
  --sky: #87ceeb;
  --teal: var(--walnut);
  --mustard: var(--flax);
  --charcoal: #2f2922;
  --muted: #756a5d;
  --line: rgba(47, 41, 34, 0.13);
  --shadow: 0 18px 50px rgba(61, 50, 40, 0.1);
  --radius: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.icon-sprite {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(36, 36, 36, 0.08);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(36, 36, 36, 0.07);
}

.announcement {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(36, 36, 36, 0.07);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 18px;
}

.nav-shell {
  width: min(1440px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  color: #34271d;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #000;
  object-fit: cover;
  padding: 2px;
  border: 1px solid rgba(201, 169, 110, 0.82);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 0 0 3px rgba(201, 169, 110, 0.28),
    0 10px 24px rgba(61, 50, 40, 0.14);
}

.brand span {
  display: grid;
  gap: 5px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2vw, 2.18rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.primary-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 42px);
  color: rgba(36, 36, 36, 0.78);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.primary-nav a {
  position: relative;
  padding: 28px 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: var(--flax);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.wishlist {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 36, 36, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--charcoal);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.wishlist:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 128, 128, 0.35);
  background: var(--white);
}

.icon-button svg,
.wishlist svg,
.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bag-button {
  position: relative;
}

.bag-button span {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--mustard);
  color: var(--charcoal);
  font-size: 0.65rem;
  font-weight: 700;
}

.menu-button {
  display: none;
}

.mobile-panel,
.scrim {
  display: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.98;
}

h1 {
  max-width: 520px;
  margin-bottom: 22px;
  font-size: clamp(4.6rem, 8vw, 8.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 5.2vw, 5.2rem);
}

.feature-copy p,
.editorial-banner p,
.story-copy p,
.newsletter p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(36, 36, 36, 0.1);
}

.button-dark {
  background: var(--charcoal);
  color: var(--ivory);
}

.button-outline {
  border-color: rgba(36, 36, 36, 0.18);
  background: rgba(255, 255, 255, 0.38);
  color: var(--charcoal);
}

.button-light {
  background: var(--ivory);
  color: var(--charcoal);
}

.texture-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Home hero: a full-width campaign banner. Warm linen texture as the "wall", a tall fabric photo
   standing on the left, and a quiet three-part launch line across the right. */
.hero {
  position: relative;
  min-height: clamp(420px, 36vw, 600px);
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(120, 90, 60, 0.18), rgba(120, 90, 60, 0.06) 45%, rgba(120, 90, 60, 0.2)),
    linear-gradient(0deg, rgba(90, 64, 44, 0.22), transparent 30%),
    url("assets/fabric/hero-wall.jpg") center / cover,
    #d9c7b2;
}

/* A thin carved dado line near the floor, like the border painted on the reference wall. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  height: 14px;
  border-top: 1px solid rgba(255, 250, 242, 0.45);
  border-bottom: 1px solid rgba(90, 64, 44, 0.25);
  background: repeating-linear-gradient(90deg, rgba(255, 250, 242, 0.25) 0 2px, transparent 2px 12px);
  pointer-events: none;
}

.hero-figure {
  position: relative;
  z-index: 1;
  margin-left: clamp(24px, 7vw, 130px);
  padding-top: clamp(28px, 4vw, 56px);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  box-shadow: 18px 0 40px rgba(60, 40, 25, 0.28);
}

.hero-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(28px, 5vw, 90px);
  padding: 0 clamp(24px, 4vw, 64px);
  align-self: center;
  margin-bottom: 6%;
  color: #fffaf2;
  text-shadow: 0 2px 14px rgba(60, 40, 25, 0.35);
}

.hero-line h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-line__side {
  font-size: clamp(0.95rem, 1.3vw, 1.25rem);
  font-style: italic;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero-cta {
  position: absolute;
  right: clamp(24px, 6vw, 110px);
  bottom: calc(10% + 34px);
  z-index: 1;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: #fffaf2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-cta:hover {
  color: #fff;
  border-bottom-width: 2px;
}

.section {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 112px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-heading h2 {
  max-width: 760px;
}

.section-heading.split h2 {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--charcoal);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.text-link svg {
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, 23vw);
  gap: 18px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 36, 36, 0.09);
  background: var(--ivory-deep);
  box-shadow: 0 14px 34px rgba(75, 51, 41, 0.06);
}

.category-card.tall {
  grid-row: span 2;
}

.category-card.wide {
  grid-column: span 2;
}

.category-card img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transition: transform 520ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(36, 36, 36, 0.38));
}

.category-card span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(36, 36, 36, 0.28);
}

.category-card:hover img,
.product-card:hover .product-image img {
  transform: scale(1.045);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.product-card {
  position: relative;
}

.wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(12px);
}

.wishlist svg {
  width: 17px;
  height: 17px;
}

.wishlist.is-active,
.wishlist[aria-pressed="true"] {
  background: var(--walnut);
  color: var(--flax);
  border-color: var(--walnut);
}

.wishlist.is-active svg,
.wishlist[aria-pressed="true"] svg {
  fill: currentColor;
}

.product-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 0.82 / 1;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 36, 36, 0.08);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(75, 51, 41, 0.06);
}

.product-info {
  padding: 18px 4px 0;
}

.product-info h3 {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.08;
}

.product-info p,
.product-info span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-info strong {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
}

.fabric-feature {
  width: min(1380px, calc(100% - 48px));
  margin: clamp(20px, 3vw, 42px) auto;
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: 0.76fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(90, 74, 58, 0.14), transparent 40%),
    linear-gradient(45deg, rgba(230, 228, 240, 0.6), transparent 55%),
    rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.feature-copy h2 {
  max-width: 540px;
}

.feature-copy p {
  max-width: 520px;
}

.feature-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.texture-tile {
  min-height: clamp(210px, 25vw, 360px);
  display: flex;
  align-items: end;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(75, 51, 41, 0.06);
}

.texture-tile.rose {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 253, 248, 0.7) 0 2px, transparent 3px 100%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 36, 36, 0.07) 1px, transparent 1px),
    var(--flax);
  background-size: 42px 42px, 12px 12px, 12px 12px, auto;
}

.texture-tile.teal {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 253, 248, 0.9) 0 8%, transparent 9% 100%),
    repeating-linear-gradient(45deg, rgba(255, 253, 248, 0.28) 0 2px, transparent 2px 18px),
    var(--terracotta);
  background-size: 84px 88px, auto, auto;
}

.texture-tile.gold {
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 219, 88, 0.32) 12px 14px),
    linear-gradient(90deg, var(--walnut-deep), var(--walnut));
  position: relative;
}

.texture-tile.gold::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 219, 88, 0.42);
  border-radius: 12px;
}

/* Tiles with a real photo behind the label, darkened a little at the bottom so the label reads. */
.photo-tile {
  position: relative;
  background: var(--ivory-deep);
}

.photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(36, 28, 20, 0.35));
  pointer-events: none;
}

.photo-tile:hover img {
  transform: scale(1.05);
}

.texture-tile span {
  position: relative;
  z-index: 1;
  color: var(--charcoal);
  background: rgba(255, 253, 248, 0.78);
  border-radius: 999px;
  padding: 8px 12px;
}

.editorial-banner {
  position: relative;
  width: min(1480px, calc(100% - 48px));
  min-height: 540px;
  margin: clamp(62px, 8vw, 120px) auto;
  overflow: hidden;
  display: grid;
  align-items: end;
  border-radius: 16px;
  background: var(--charcoal);
  color: var(--ivory);
  box-shadow: var(--shadow);
}

.editorial-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 36, 36, 0.72), rgba(36, 36, 36, 0.2) 58%, rgba(36, 36, 36, 0.05));
}

.editorial-banner > div {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: clamp(28px, 6vw, 72px);
}

.editorial-banner .eyebrow {
  color: var(--mustard);
}

.editorial-banner h2 {
  margin-bottom: 16px;
  color: var(--ivory);
}

.editorial-banner p {
  color: rgba(255, 253, 248, 0.78);
}

.story-section {
  width: min(1380px, calc(100% - 48px));
  margin: clamp(48px, 8vw, 108px) auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.story-media {
  overflow: hidden;
  aspect-ratio: 1.06 / 1;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.story-copy h2 {
  max-width: 620px;
}

.story-copy p {
  max-width: 580px;
}

.story-copy .story-tagline {
  margin: 26px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--flax);
  color: var(--walnut);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.story-stats div {
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(36, 36, 36, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.story-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
}

.story-stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.newsletter {
  width: min(1060px, calc(100% - 48px));
  margin: clamp(52px, 8vw, 116px) auto;
  padding: clamp(34px, 6vw, 76px);
  text-align: center;
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(90, 74, 58, 0.12), transparent 48%),
    linear-gradient(45deg, rgba(230, 228, 240, 0.55), transparent 60%),
    rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.newsletter h2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter form {
  max-width: 620px;
  margin: 30px auto 0;
}

.newsletter label {
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.newsletter form > div {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(36, 36, 36, 0.11);
  border-radius: 999px;
  background: var(--ivory);
}

.newsletter input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px;
  color: var(--charcoal);
}

.newsletter input::placeholder {
  color: rgba(114, 107, 99, 0.72);
}

.footer {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 62px;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
  gap: 32px;
  border-top: 1px solid rgba(36, 36, 36, 0.1);
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin: 8px 0;
}

.footer-logo {
  display: block;
  width: min(220px, 100%);
  margin-bottom: 18px;
}

.footer-logo img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.footer > div:first-child p {
  max-width: 360px;
}

.reel-controls {
  display: flex;
  gap: 10px;
}

.reel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 18px) / 5);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.reel-track::-webkit-scrollbar {
  display: none;
}

.reel-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid rgba(36, 36, 36, 0.09);
  border-radius: var(--radius);
  background: var(--ivory-deep);
  box-shadow: 0 14px 34px rgba(75, 51, 41, 0.06);
  color: var(--ivory);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.reel-card img,
.reel-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transition: transform 520ms ease, opacity 260ms ease;
}

.reel-card video {
  opacity: 0;
}

.reel-card.is-playing video {
  opacity: 1;
}

.reel-card:hover img {
  transform: scale(1.045);
}

.reel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(36, 36, 36, 0.55));
  pointer-events: none;
}

.reel-play {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(12px);
  color: var(--charcoal);
  transition: opacity 260ms ease;
}

.reel-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.reel-card.is-playing .reel-play {
  opacity: 0;
}

.reel-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.reel-caption strong {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.05;
  text-shadow: 0 4px 18px rgba(36, 36, 36, 0.28);
}

.reel-caption small {
  font-size: 0.78rem;
  opacity: 0.88;
}

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(36, 36, 36, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.reel-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reel-modal__inner {
  position: relative;
  width: min(420px, 100%);
}

.reel-modal video {
  display: block;
  width: 100%;
  max-height: 82vh;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--charcoal);
}

.reel-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.reel-modal__caption {
  margin: 14px 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.4rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-line {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .reel-track {
    grid-auto-columns: calc((100% - 2 * 18px) / 3);
  }
}


@media (max-width: 1100px) {
  .nav-shell {
    grid-template-columns: auto auto 1fr;
  }

  .menu-button {
    display: grid;
  }

  .primary-nav {
    display: none;
  }

  .nav-actions {
    justify-self: end;
  }

  .fabric-feature,
  .story-section {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(380px, 88vw);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    background: var(--ivory);
    border-right: 1px solid var(--line);
    box-shadow: 28px 0 60px rgba(36, 36, 36, 0.13);
    transform: translateX(-104%);
    transition: transform 240ms ease;
  }

  .mobile-panel.is-open {
    transform: translateX(0);
  }

  .mobile-panel__head {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .mobile-panel a {
    padding: 16px 4px;
    border-bottom: 1px solid rgba(36, 36, 36, 0.08);
    font-family: var(--serif);
    font-size: 1.65rem;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(36, 36, 36, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .announcement {
    min-height: 38px;
    font-size: 0.66rem;
  }

  .nav-shell,
  .section,
  .fabric-feature,
  .editorial-banner,
  .story-section,
  .newsletter,
  .footer {
    width: min(100% - 28px, 1380px);
  }

  .nav-shell {
    min-height: 68px;
    gap: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    padding: 1px;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    letter-spacing: 0.13em;
  }

  /* The tagline pushes the cart off-screen on phones; the footer logo still carries it. */
  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 1.16rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .hide-sm {
    display: none;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 5.6rem);
  }

  h2 {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .hero-actions,
  .newsletter form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(180px, 48vw);
    gap: 12px;
  }

  .category-card.tall {
    grid-row: span 1;
  }

  .category-card.wide {
    grid-column: span 2;
  }

  .category-card span {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .product-grid {
    gap: 24px 12px;
  }

  .product-image {
    aspect-ratio: 0.76 / 1;
  }

  .product-info {
    padding-top: 13px;
  }

  .wishlist {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }

  .fabric-feature {
    padding: 24px;
  }

  .feature-tiles {
    grid-template-columns: 1fr;
  }

  .texture-tile {
    min-height: 160px;
  }

  .editorial-banner {
    min-height: 620px;
    align-items: end;
  }

  .editorial-banner::after {
    background: linear-gradient(180deg, rgba(36, 36, 36, 0.05), rgba(36, 36, 36, 0.78));
  }

  .editorial-banner img {
    object-position: 62% center;
  }

  .editorial-banner > div {
    padding: 24px;
  }

  .story-stats,
  .footer {
    grid-template-columns: 1fr;
  }

  .story-stats div {
    min-height: auto;
  }

  .newsletter {
    padding: 28px 18px;
  }

  .newsletter form > div {
    border-radius: 18px;
  }

  .newsletter input {
    min-height: 48px;
  }
}

/* ===== Multi-page components (shop, product, cart, wishlist, story, contact, help) ===== */

[hidden] {
  display: none !important;
}

.primary-nav a[aria-current="page"] {
  color: var(--charcoal);
  font-weight: 700;
}

.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.product-image {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info h3 a:hover {
  color: var(--teal);
}

.story-link {
  margin-top: 26px;
}

/* Linen banner at the top of every inner page, with a walnut-and-flax woven border. */
.page-hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) max(24px, calc((100% - 1380px) / 2)) clamp(56px, 8vw, 104px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(90, 74, 58, 0.14), rgba(90, 74, 58, 0.04) 50%, rgba(90, 74, 58, 0.16)),
    url("assets/fabric/hero-wall.jpg") center / cover,
    #cfc3b2;
  color: var(--charcoal);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background:
    linear-gradient(135deg, transparent 38%, rgba(61, 50, 40, 0.7) 40% 60%, transparent 62%) 0 0 / 22px 100%,
    repeating-linear-gradient(90deg, #5a4a3a 0 5px, #c9a96e 5px 8px, #3d3228 8px 11px);
}

.page-hero .eyebrow {
  color: var(--terracotta-deep);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.page-hero > p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(47, 41, 34, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: inherit;
  font-size: 0.8rem;
  opacity: 0.8;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.section-narrow {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

nav.breadcrumb.section-narrow {
  margin-top: 28px;
  color: var(--muted);
}

/* Shop toolbar */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--charcoal);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.chip:hover {
  border-color: rgba(36, 36, 36, 0.3);
}

.chip.is-active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
}

/* Sub-categories of the picked category (Linens > Solids, Executive...). */
.chips--sub .chip {
  padding: 6px 13px;
  font-size: 0.78rem;
  background: transparent;
}

.chips--sub .chip.is-active {
  border-color: var(--charcoal);
  background: rgba(36, 36, 36, 0.08);
  color: var(--charcoal);
}

.shop-toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.shop-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-field,
.sort-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.search-field {
  flex: 1 1 280px;
}

.search-field svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-field input,
.sort-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-size: 0.92rem;
}

.sort-field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.search-field:focus-within,
.sort-field:focus-within {
  border-color: var(--teal);
}

.shop-count {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.listing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 56px 20px;
  text-align: center;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.4;
}

.empty-state h1,
.empty-state h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
}

.cta-band {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto clamp(52px, 8vw, 96px);
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 10% 0%, #6e5c48, var(--walnut-deep) 75%);
  color: var(--ivory);
}

.cta-band .eyebrow {
  color: var(--flax);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

/* Product detail */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 24px 0 clamp(40px, 6vw, 80px);
}

.pd-gallery {
  display: grid;
  gap: 12px;
  align-content: start;
  position: sticky;
  top: calc(var(--header-h, 113px) + 20px);
}

.pd-main {
  overflow: hidden;
  aspect-ratio: 0.9 / 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ivory-deep);
  box-shadow: var(--shadow);
}

.pd-main img,
.pd-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, object-position 420ms ease;
}

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pd-thumbs button {
  overflow: hidden;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--ivory-deep);
  cursor: pointer;
}

.pd-thumbs button.is-active {
  border-color: var(--charcoal);
}

.pd-info h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
}

.pd-type {
  margin: 0 0 18px;
  color: var(--muted);
}

.pd-price {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
}

.pd-uses {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.pd-uses > span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-uses > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pd-total {
  margin: 0;
  color: var(--muted);
}

.pd-total strong {
  margin-left: 8px;
  color: var(--charcoal);
  font-size: 1.3rem;
}

.pd-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.pd-actions .button {
  flex: 1;
}

.pd-actions .wishlist {
  position: static;
  width: 48px;
  height: 48px;
  flex: none;
}

.pd-perks {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.pd-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-perks svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
}

.pd-info details,
.help details {
  border-top: 1px solid var(--line);
}

.pd-info details:last-child {
  border-bottom: 1px solid var(--line);
}

.pd-info summary,
.help summary {
  padding: 16px 0;
  font-weight: 700;
  cursor: pointer;
}

.pd-info details p {
  color: var(--muted);
}

.pd-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 18px;
}

.pd-specs dt {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-specs dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.pd-guide {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.pd-guide li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.qty button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.qty button:hover {
  background: var(--ivory-deep);
}

.qty svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.qty output {
  min-width: 64px;
  text-align: center;
  font-weight: 700;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.cart-layout:has(.empty-state) {
  grid-template-columns: 1fr;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.cart-item img {
  width: 96px;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.cart-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-item__end {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-h, 113px) + 20px);
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 18px;
  background: var(--charcoal);
  color: var(--ivory);
}

.cart-summary h2 {
  margin: 0 0 6px;
  font-size: 2rem;
}

.cart-summary dl {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
}

.cart-summary dd {
  margin: 0;
  font-weight: 600;
}

.cart-summary__total {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 253, 248, 0.2);
  font-size: 1.15rem;
}

.cart-summary__note {
  margin: 0;
  color: #f1dc98;
  font-size: 0.84rem;
}

.cart-summary .button-dark {
  background: var(--ivory);
  color: var(--charcoal);
}

.cart-summary .button-outline {
  border-color: rgba(255, 253, 248, 0.35);
  background: transparent;
  color: var(--ivory);
}

/* Story values and contact info */
.value-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card,
.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
}

.value-card span {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
}

.value-card h3,
.info-card h3 {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
}

.value-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.info-card a {
  color: var(--teal);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.contact .info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enquiry {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.enquiry h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.enquiry label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
}

.enquiry input,
.enquiry select,
.enquiry textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  color: var(--charcoal);
  font: inherit;
  font-weight: 400;
}

.enquiry input:focus,
.enquiry select:focus,
.enquiry textarea:focus {
  border-color: var(--teal);
  outline: 0;
}

/* Help */
.help {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.help-nav {
  position: sticky;
  top: calc(var(--header-h, 113px) + 20px);
  display: grid;
  gap: 4px;
}

.help-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}

.help-nav a:hover {
  background: var(--ivory-deep);
  color: var(--charcoal);
}

.help-body {
  display: grid;
  gap: 48px;
}

.help-body article {
  scroll-margin-top: calc(var(--header-h, 113px) + 20px);
}

.help-body h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.help-body p,
.help-body li {
  color: var(--muted);
}

.help-body li {
  margin-bottom: 8px;
}

.help-body strong {
  color: var(--charcoal);
}

.help-body a {
  color: var(--teal);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.guide-table th,
.guide-table td {
  padding: 13px 16px;
  text-align: left;
}

.guide-table thead {
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-table tbody tr:nth-child(even) {
  background: var(--ivory);
}

/* Reels page: a wrapping grid on desktop (phones keep the coverflow). */
@media (min-width: 761px) {
  .reels-page .reel-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--charcoal);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  color: var(--ivory);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .pd,
  .contact,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .pd-gallery,
  .cart-summary {
    position: static;
  }

  .help {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .help-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  /* Phones: photo on the left third, launch line stacked beside it. */
  .hero {
    min-height: 460px;
    grid-template-columns: 38% 1fr;
  }

  .hero-figure {
    margin-left: 14px;
    padding-top: 28px;
  }

  .hero-line {
    padding: 0 14px;
    margin-bottom: 18%;
  }

  .hero-line h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    white-space: normal;
  }

  .hero-line__side {
    font-size: 0.9rem;
    white-space: normal;
  }

  .hero-cta {
    left: 38%;
    right: 0;
    margin: 0 auto;
    width: max-content;
    bottom: calc(10% + 26px);
  }

  .page-hero {
    padding: 36px 16px 48px;
  }

  .page-hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .section-narrow {
    width: calc(100% - 28px);
  }

  /* Listing pages stay a 2-column grid on phones (the home rows swipe instead). */
  .product-grid.is-listing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 22px 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .chips {
    flex-wrap: nowrap;
    margin: 0 -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .chip {
    flex: none;
  }

  .sort-field {
    flex: 1 1 100%;
  }

  .pd-specs,
  .value-grid,
  .info-grid,
  .contact .info-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .pd-price {
    font-size: 1.7rem;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .cart-item img {
    width: 76px;
    height: 90px;
  }

  .cart-item__end {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .guide-table th,
  .guide-table td {
    padding: 11px 10px;
    font-size: 0.86rem;
  }

  .cta-band {
    width: calc(100% - 28px);
  }

  .cta-band .button {
    width: 100%;
  }

  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100% - 32px);
    text-align: center;
  }
}

/* Scroll reveal: app.js adds .reveal to cards and sections, then .is-visible as they enter the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.tabbar {
  display: none;
}

.mobile-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}

.mobile-panel__brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.mobile-panel__note {
  margin: auto 0 8px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Phone polish: app-style bottom bar, swipeable product rows, compact sections. */
@media (max-width: 760px) {
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  h2 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  /* One-line scrolling ticker instead of a two-line announcement. */
  .announcement {
    min-height: 32px;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
  }

  .announcement__text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 16s linear infinite;
    /* Start part-way through so the text is already on screen when the page opens. */
    animation-delay: -6s;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 22px;
  }

  .section-heading .text-link {
    justify-self: start;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
  }

  /* Swipeable product rows with the next card peeking in. */
  .product-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    gap: 12px;
    margin: 0 -14px;
    padding: 0 14px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 14px;
    scrollbar-width: none;
  }

  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    scroll-snap-align: start;
  }

  .product-image {
    aspect-ratio: 0.8 / 1;
  }

  .product-info h3 {
    font-size: 1.3rem;
  }

  .product-info strong {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--ivory);
    font-size: 0.82rem;
  }

  .category-card span {
    font-size: 1.55rem;
  }

  .fabric-feature {
    padding: 22px;
  }

  .feature-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .texture-tile {
    min-height: 118px;
    justify-content: center;
    padding: 10px 6px;
  }

  .texture-tile span {
    padding: 5px 8px;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .editorial-banner {
    min-height: 520px;
  }

  .story-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .story-stats div {
    min-height: auto;
    padding: 14px 10px;
    text-align: center;
  }

  .story-stats strong {
    font-size: 1.8rem;
  }

  .story-stats span {
    margin-top: 6px;
    font-size: 0.7rem;
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding-bottom: 32px;
  }

  .footer > div:first-child {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .footer > div:last-child {
    grid-column: 1 / -1;
  }

  .tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(61, 50, 40, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .tabbar a,
  .tabbar button {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 6px 0;
    border: 0;
    border-radius: 14px;
    background: none;
    color: rgba(255, 253, 248, 0.6);
    font: inherit;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
  }

  .tabbar svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tabbar .is-active {
    background: rgba(201, 169, 110, 0.16);
    color: var(--flax);
  }

  .tabbar b {
    position: absolute;
    top: 1px;
    right: calc(50% - 20px);
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--mustard);
    color: var(--charcoal);
    font-size: 0.62rem;
  }

  .reel-modal {
    z-index: 110;
  }
}

.reel-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 16, 24, 0.45);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.reel-dots {
  display: none;
}

/* Phone reels: warm glowing stage with a 3D coverflow. app.js sets --d (signed distance of each card
   from the centre, in card widths) and --ad (its absolute value) as the track scrolls. */
@media (max-width: 760px) {
  .section.reels {
    width: 100%;
    margin: 28px 0;
    padding: 54px 0 42px;
    overflow: hidden;
    background:
      radial-gradient(60% 38% at 12% 8%, rgba(90, 74, 58, 0.28), transparent 70%),
      radial-gradient(55% 40% at 92% 30%, rgba(201, 169, 110, 0.3), transparent 70%),
      radial-gradient(80% 45% at 50% 105%, rgba(255, 255, 255, 0.6), transparent 70%),
      #ebe3d6;
    color: var(--charcoal);
  }

  .reels .section-heading {
    justify-items: center;
    margin-bottom: 4px;
    padding: 0 16px;
    text-align: center;
  }

  .reels .section-heading h2 {
    margin: 0;
    color: var(--charcoal);
  }

  .reels .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 11px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--walnut), #8a7458);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.3),
      0 12px 30px rgba(90, 74, 58, 0.38);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .reels .eyebrow::before {
    content: "✦";
    font-size: 1rem;
  }

  .reel-track {
    grid-auto-columns: 60vw;
    gap: 0;
    padding: 30px 20vw 34px;
    scroll-snap-type: x mandatory;
  }

  .reel-card {
    border-color: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(90, 60, 40, 0.3);
    scroll-snap-align: center;
    opacity: calc(1 - var(--ad, 0) * 0.28);
    transform:
      perspective(900px)
      translateX(calc(var(--d, 0) * -24%))
      rotateY(calc(var(--d, 0) * -30deg))
      scale(calc(1 - var(--ad, 0) * 0.18));
    transition: box-shadow 300ms ease;
    will-change: transform;
  }

  .reel-card.is-center {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.8),
      0 30px 60px rgba(90, 74, 58, 0.35);
  }

  .reel-card:not(.is-center) .reel-play,
  .reel-card:not(.is-center) .reel-caption small {
    opacity: 0;
  }

  .reel-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
  }

  .reel-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(47, 41, 34, 0.22);
    transition: width 260ms ease, background 260ms ease;
  }

  .reel-dots button.is-active {
    width: 24px;
    background: var(--flax);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .announcement__text {
    padding-left: 0;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ===== Brand colour: walnut buttons and prices, flax highlights ===== */
.button-dark {
  background: var(--walnut);
  color: var(--ivory);
}

.button-dark:hover {
  background: var(--walnut-deep);
  box-shadow: 0 16px 34px rgba(61, 50, 40, 0.25);
}

.button-outline:hover {
  border-color: var(--walnut);
  color: var(--walnut);
}

.chip.is-active {
  border-color: var(--walnut);
  background: var(--walnut);
}

.product-badge {
  background: var(--flax);
  color: var(--walnut-deep);
}

.product-info strong,
.pd-price,
.pd-total strong {
  color: var(--walnut);
}

.eyebrow {
  color: var(--walnut);
}

.announcement {
  background: var(--walnut);
  color: rgba(255, 253, 248, 0.88);
  border-bottom-color: transparent;
}

.brand-mark {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 0 0 3px rgba(201, 169, 110, 0.58),
    0 10px 24px rgba(61, 50, 40, 0.14);
}

.cart-summary {
  background: var(--walnut-deep);
}

.cart-summary__note {
  color: var(--flax);
}

.hero-cta {
  border-bottom-color: var(--flax);
}

.hero-cta:hover {
  color: var(--flax);
}

.qty output {
  color: var(--walnut);
}

.guide-table thead {
  background: var(--walnut);
}

.value-card span {
  color: var(--flax);
}

.footer {
  border-top: 3px solid var(--walnut);
}

.footer h3 {
  color: var(--walnut);
}

@media (max-width: 760px) {
  .product-info strong {
    background: var(--walnut);
    color: var(--ivory);
  }

  .reels .eyebrow {
    color: #fff;
  }
}

/* Faint linen weave on the dark walnut panels. */
.announcement,
.cart-summary,
.cta-band,
.tabbar {
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 250, 240, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 250, 240, 0.04) 0 1px, transparent 1px 4px);
}

.cta-band {
  background-color: var(--walnut-deep);
}

/* ---------- Header: links split around a centred logo ---------- */
.nav-shell {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
}

.nav-side {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  min-width: 0;
}

.nav-side--left {
  justify-self: start;
}

.nav-side--right {
  justify-self: end;
}

.nav-shell .brand {
  justify-self: center;
  transform: translateX(-2px);
}

.nav-shell .primary-nav {
  justify-self: auto;
  gap: clamp(18px, 2vw, 32px);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.nav-shell .nav-actions {
  gap: 10px;
}

@media (max-width: 1100px) {
  .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
  }

  .nav-shell .nav-actions {
    justify-self: auto;
  }

  .nav-shell .primary-nav {
    gap: 18px;
    font-size: 0.74rem;
  }
}

@media (max-width: 900px) {
  .nav-shell .primary-nav {
    display: none;
  }

  .nav-side--left {
    justify-self: start;
  }

  .nav-side--right {
    justify-self: end;
  }

  .menu-button {
    display: grid;
  }
}

/* Home hero slider: the Linen Edit banner plus full-bleed cloth photos. Slides sit side by side in a
   scroll-snapping track, so swiping works natively on phones; app.js adds autoplay, arrows and dots. */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-track > .hero {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.hero--photo {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: end;
  background: #2b2b2b;
}

.hero--photo::after {
  content: none;
}

/* Darkens the right side so the copy stays readable over the photo. */
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 16, 12, 0.05) 25%, rgba(20, 16, 12, 0.6) 100%);
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-right: clamp(24px, 9vw, 160px);
  color: #fffaf2;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.hero-copy .hero-cta {
  position: static;
  margin: 18px 0 0;
  width: auto;
}

.hero-arrow {
  position: absolute;
  bottom: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.5);
  border-radius: 50%;
  background: rgba(20, 16, 12, 0.25);
  color: #fffaf2;
  cursor: pointer;
  transition: background 200ms ease;
}

.hero-arrow:hover {
  background: rgba(20, 16, 12, 0.5);
}

.hero-arrow--prev {
  left: calc(50% - 86px);
}

.hero-arrow--next {
  right: calc(50% - 86px);
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.55);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.hero-dots button.is-active {
  width: 24px;
  background: #fffaf2;
}

@media (max-width: 760px) {
  .hero--photo {
    justify-items: center;
  }

  .hero--photo::before {
    background: rgba(20, 16, 12, 0.45);
  }

  .hero-copy {
    margin: 0 20px;
  }

  .hero-copy h2 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track {
    scroll-behavior: auto;
  }
}

/* Home trust strip: four promises in a row at the end of the home page, above the footer. */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 18px;
  color: var(--charcoal);
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

a.trust-item:hover strong {
  color: var(--walnut);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust-item svg {
  flex: none;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--walnut);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

/* Home metre calculator: intro, choices and a walnut result panel side by side. */
.calc-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: stretch;
  padding: clamp(24px, 3.5vw, 48px);
  border-radius: var(--radius);
  background: var(--sand);
}

.calc-intro h2 {
  margin-bottom: 14px;
}

.calc-intro p:not(.eyebrow) {
  color: var(--muted);
}

.calc-form {
  display: grid;
  gap: 18px;
}

.calc-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.calc-form legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-options span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.calc-options span:hover {
  border-color: var(--walnut);
}

.calc-options input:checked + span {
  border-color: var(--walnut);
  background: var(--walnut);
  color: var(--ivory);
}

.calc-options input:focus-visible + span {
  outline: 2px solid var(--flax);
  outline-offset: 2px;
}

.calc-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--walnut);
  color: var(--ivory);
}

.calc-result > span {
  color: var(--flax);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.calc-result strong {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
}

.calc-result p {
  margin-bottom: 14px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.88rem;
}

/* Home reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.review-stars {
  display: flex;
  gap: 3px;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--flax);
  stroke: var(--flax);
  stroke-width: 1;
  stroke-linejoin: round;
}

.review-card blockquote {
  flex: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
}

.review-author {
  margin: 0;
}

.review-author strong {
  display: block;
  font-size: 0.9rem;
}

.review-author span {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 1100px) {
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(3) {
    border-left: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .trust-item {
    justify-content: flex-start;
  }

  .calc-card {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  }

  .calc-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .trust-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 14px;
  }

  .trust-item svg {
    width: 24px;
    height: 24px;
  }

  .calc-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 16px;
  }

  .calc-result {
    padding: 22px;
  }

  .review-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -14px;
    padding: 0 14px;
  }

  .review-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
}

/* Product page "See it stitched": illustrated model on the left, style and fabric choices on the right. */
.stitch-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.stitch-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  /* Matches the drawing's wall edge and floor (floor starts at 560 of 600) so wide stages blend in. */
  background: linear-gradient(#ddd0bc 93.33%, #a07a55 93.33%);
  box-shadow: var(--shadow);
}

.stitch-svg {
  display: block;
  width: 100%;
  max-height: 680px;
  margin: 0 auto;
}

.stitch-svg .seam {
  fill: none;
  stroke: rgba(20, 14, 10, 0.35);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stitch-svg .fold {
  fill: none;
  stroke-linecap: round;
}

.stitch-svg .fold--dark {
  stroke: #000;
  stroke-opacity: 0.3;
  stroke-width: 3.2;
}

.stitch-svg .fold--light {
  stroke: #fff;
  stroke-opacity: 0.2;
  stroke-width: 4;
}

.stitch-outfit.is-in {
  animation: stitch-in 320ms ease;
}

@keyframes stitch-in {
  from {
    opacity: 0;
  }
}

.stitch-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.85);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stitch-step {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stitch-outfits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.stitch-outfits button {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.stitch-outfits button:hover {
  border-color: var(--walnut);
}

.stitch-outfits button.is-active {
  border-color: var(--walnut);
  background: var(--walnut);
  color: var(--ivory);
}

.stitch-pieces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stitch-pieces button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.stitch-pieces button:hover {
  border-color: var(--walnut);
}

.stitch-pieces button.is-active {
  border-color: var(--walnut);
  box-shadow: 0 0 0 1px var(--walnut);
}

.stitch-pieces img {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.stitch-pieces span {
  min-width: 0;
}

.stitch-pieces strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
}

.stitch-pieces small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-picked {
  margin: -16px 0 24px;
  color: var(--muted);
  font-size: 0.82rem;
}

.stitch-lines {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.stitch-lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.stitch-lines li span:first-child {
  color: var(--muted);
}

.stitch-lines strong {
  display: block;
  color: var(--charcoal);
  font-weight: 600;
}

.stitch-lines li span:last-child {
  font-weight: 600;
  white-space: nowrap;
}

.stitch-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-weight: 600;
}

.stitch-total strong {
  font-family: var(--serif);
  font-size: 1.6rem;
}

.stitch-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.stitch-swatches button {
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.stitch-swatches button:hover {
  transform: translateY(-2px);
}

.stitch-swatches button.is-active {
  border-color: var(--walnut);
  box-shadow: 0 0 0 2px var(--ivory), 0 0 0 4px var(--walnut);
}

.stitch-swatches img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stitch-summary {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--sand);
}

.stitch-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .stitch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .stitch-stage {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ---------- Shop dropdown: categories and sub-categories from the database ---------- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown__icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.nav-dropdown:hover .nav-dropdown__icon,
.nav-dropdown:focus-within .nav-dropdown__icon {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: -28px;
  z-index: 60;
  width: max-content;
  max-width: min(920px, calc(100vw - 48px));
  padding: 26px 30px 18px;
  background: #ffffff;
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 24px 48px rgba(36, 36, 36, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-menu__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, auto));
  gap: 22px 42px;
}

.primary-nav .nav-menu a {
  display: block;
  padding: 5px 0;
  color: rgba(36, 36, 36, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.primary-nav .nav-menu a::after {
  display: none;
}

.primary-nav .nav-menu a:hover {
  color: var(--charcoal);
}

.primary-nav .nav-menu .nav-menu__title {
  margin-bottom: 4px;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-menu__foot {
  display: flex;
  gap: 26px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 36, 36, 0.08);
}

.primary-nav .nav-menu .nav-menu__foot a {
  color: var(--walnut);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

/* Phone menu: collapsible category list */
.mobile-cats {
  border-bottom: 1px solid rgba(36, 36, 36, 0.08);
}

.mobile-cats summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  font-family: var(--serif);
  font-size: 1.65rem;
  cursor: pointer;
  list-style: none;
}

.mobile-cats summary::-webkit-details-marker {
  display: none;
}

.mobile-cats summary::after {
  content: "+";
  color: var(--muted);
}

.mobile-cats[open] summary::after {
  content: "\2212";
}

.mobile-cats__list {
  display: flex;
  flex-direction: column;
  padding: 0 4px 12px 14px;
}

.mobile-panel .mobile-cats__list a {
  padding: 8px 0;
  border-bottom: 0;
  font-family: inherit;
  font-size: 1rem;
}

.mobile-panel .mobile-cats__list .mobile-cats__main {
  font-weight: 600;
}

.mobile-panel .mobile-cats__list .mobile-cats__sub {
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Razorpay checkout form in the cart summary */
.checkout-form { display: grid; gap: 10px; margin-top: 16px; }
.checkout-form h3 { margin: 0; font-size: 1.1rem; }
.checkout-form input, .checkout-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #d8d0c4; border-radius: 8px;
  background: #fff; color: inherit; font: inherit;
}
.checkout-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-form__error { margin: 0; color: #b3261e; font-size: 0.9rem; }
.checkout-form button[disabled] { opacity: 0.6; cursor: wait; }
