:root {
  --fw-bg: #f6f3ee;
  --fw-surface: #ffffff;
  --fw-ink: #1a1a1a;
  --fw-muted: #6b6b6b;
  /* Maroon from Floor World logo circle outline */
  --fw-accent: #5b0f00;
  --fw-accent-dark: #3d0a00;
  --fw-accent-mid: #7a1a08;
  --fw-accent-soft: #f3e8e5;
  --fw-gold: #b8860b;
  /* Like heart: pale → deep red when saved */
  --fw-like: #f0b4b4;
  --fw-like-deep: #9b0c0c;
  --fw-radius: 18px;
  --fw-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  /* Uniform portrait frame for every flooring sample */
  --fw-sample-aspect: 3 / 5;
  --fw-sample-stage: #ece8e1;
}

* { box-sizing: border-box; }

html {
  /* Prevent iOS from zooming out when modal content briefly overflows */
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--fw-bg);
  color: var(--fw-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Modal / panel open: freeze page scroll without changing layout width */
body.fw-scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  /* top is set in JS to preserve scroll position */
}

img {
  max-width: 100%;
}

body.embed .fw-hero { display: none; }
body.embed .fw-footer { display: none; }
body.embed { background: var(--fw-bg); }

/* Compact intro bar (no logo — site chrome already brands the page on myfloorworld.com) */
.fw-hero {
  background: linear-gradient(135deg, var(--fw-accent-dark) 0%, var(--fw-accent) 55%, var(--fw-accent-mid) 100%);
  color: #fff;
  padding: 0.45rem 0.85rem 0.5rem;
  text-align: center;
}

.fw-hero-tagline {
  margin: 0 auto;
  max-width: 34rem;
  opacity: 0.9;
  line-height: 1.3;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0 0.25rem;
}

@media (min-width: 768px) {
  .fw-hero {
    padding: 0.75rem 1.25rem 0.85rem;
  }
  .fw-hero-tagline {
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

.fw-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.55rem 0.75rem 5.5rem;
  width: 100%;
  min-width: 0;
}

.fw-toolbar,
.fw-grid {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .fw-wrap {
    padding: 1rem 1rem 3rem;
  }
}

.fw-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0 0.55rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
  .fw-toolbar {
    padding: 0.75rem 0 1rem;
    margin-bottom: 1rem;
  }
}

.fw-search {
  width: 100%;
  border: 1px solid #ddd8d0;
  background: #fff;
  border-radius: 999px;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  font-size: 0.92rem;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%236b6b6b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
  background-size: 15px 15px;
}

@media (min-width: 768px) {
  .fw-search {
    padding: 0.85rem 1.1rem 0.85rem 2.75rem;
    font-size: 1rem;
    background-position: 1rem center;
    background-size: auto;
  }
}

.fw-search:focus {
  border-color: var(--fw-accent);
  box-shadow: 0 0 0 3px rgba(91, 15, 0, 0.14);
}

.fw-filters {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.45rem 0 0.15rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fw-filters::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .fw-filters {
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
  }
}

.fw-pill {
  flex: 0 0 auto;
  border: 1px solid #ddd8d0;
  background: #fff;
  color: var(--fw-ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

@media (min-width: 768px) {
  .fw-pill {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
  }
}

.fw-pill:hover { border-color: var(--fw-accent); }
.fw-pill.active {
  background: var(--fw-accent);
  border-color: var(--fw-accent);
  color: #fff;
}

.fw-subfilters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* Hide non-functional sort control on phones — saves a full filter row */
.fw-subfilters #fw-sort {
  display: none;
}

@media (min-width: 520px) {
  .fw-subfilters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 780px) {
  .fw-subfilters {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .fw-subfilters #fw-sort {
    display: block;
  }
}

.fw-select {
  border: 1px solid #ddd8d0;
  border-radius: 12px;
  padding: 0.45rem 0.55rem;
  background: #fff;
  font-size: 0.82rem;
}

@media (min-width: 768px) {
  .fw-select {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }
}

.fw-stats {
  font-size: 0.75rem;
  color: var(--fw-muted);
  margin: 0.35rem 0 0;
}

@media (min-width: 768px) {
  .fw-stats {
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
  }
}

.fw-grid {
  display: grid;
  /* Two columns on phones so sample faces fill the viewport */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .fw-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 768px) {
  .fw-grid { gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

.fw-card {
  background: var(--fw-surface);
  border-radius: var(--fw-radius);
  overflow: hidden;
  box-shadow: var(--fw-shadow);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(26, 26, 26, 0.12);
}

.fw-card-img {
  aspect-ratio: var(--fw-sample-aspect);
  background: var(--fw-sample-stage);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: 100%;
}

.fw-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Sheet Vinyl keeps full-frame faces — show entire photo, no CSS crop */
.fw-card-img.fw-img-full img,
.fw-modal-img.sample.fw-img-full img,
.fw-board-thumb.fw-img-full img,
.fw-compare-img.fw-img-full img {
  object-fit: contain;
  object-position: center center;
  background: var(--fw-sample-stage);
}

.fw-card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(255,255,255,0.94);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fw-accent);
}

/* Made in the USA corner sticker (also baked onto sample faces when flagged) */
.fw-usa-badge {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: min(42%, 7.5rem);
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.fw-usa-badge-modal {
  width: min(38%, 9rem);
  right: 0.55rem;
  bottom: 0.55rem;
}

@media (min-width: 768px) {
  .fw-usa-badge { width: min(36%, 8.5rem); }
  .fw-usa-badge-modal { width: min(32%, 10rem); }
}

.fw-card-body {
  padding: 0.55rem 0.6rem 0.65rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .fw-card-body {
    padding: 0.9rem 1rem 1rem;
  }
}

.fw-card-mfg {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fw-muted);
  font-weight: 700;
}

@media (min-width: 768px) {
  .fw-card-mfg { font-size: 0.72rem; }
}

.fw-card-color {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0.12rem 0 0.2rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .fw-card-color {
    font-size: 1.05rem;
    margin: 0.2rem 0 0.35rem;
    line-height: 1.25;
  }
}

.fw-card-meta {
  font-size: 0.68rem;
  color: var(--fw-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fw-card-price {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fw-maroon, #5b0f00);
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .fw-card-meta {
    font-size: 0.8rem;
    line-height: 1.35;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

.fw-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--fw-muted);
}

/* Detail modal — always capped to the device width (phones especially) */
.fw-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .fw-modal-backdrop { align-items: center; padding: 1.5rem; }
}

.fw-modal {
  background: #fff;
  width: 100%;
  max-width: min(920px, 100%);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 20px 20px 0 0;
  box-shadow: var(--fw-shadow);
  /* Stay inside the phone frame; no horizontal scroll */
  min-width: 0;
}

@media (max-width: 767px) {
  .fw-modal {
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 16px 16px 0 0;
  }
}

@media (min-width: 768px) {
  .fw-modal { border-radius: 20px; max-height: 90vh; max-height: 90dvh; }
}

.fw-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 0.85rem 0.85rem 0;
  gap: 0.75rem;
  min-width: 0;
}

.fw-modal-header > div {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fw-modal-header h2 {
  font-size: clamp(1.1rem, 4.5vw, 1.5rem) !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fw-modal-close {
  border: none;
  background: #f1ede6;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  flex: 0 0 auto;
}

.fw-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .fw-modal-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1rem;
    padding: 1rem;
  }
}

/* Secondary face angles + installed rooms — full modal width under primary + specs */
.fw-modal-wide-gallery {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
  padding-top: 0.15rem;
  border-top: 1px solid #f0ebe3;
  margin-top: 0.15rem;
}

.fw-modal-img {
  border-radius: 14px;
  overflow: hidden;
  background: #ece8e1;
  min-width: 0;
  max-width: 100%;
}

.fw-modal-img img {
  width: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.fw-modal-sample-stack {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
}

.fw-modal-img-label {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.fw-modal-img.sample {
  position: relative;
  aspect-ratio: var(--fw-sample-aspect);
  width: 100%;
  max-width: 100%;
}

/* Phone: keep sample photos within the screen, not taller than the viewport */
@media (max-width: 767px) {
  .fw-modal-img.sample {
    max-height: min(52dvh, 70vw * 5 / 3);
    margin-inline: auto;
  }
}

.fw-modal-img.sample img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

.fw-modal-img.sample.fw-img-full {
  /* Let natural aspect show more of the sample; still capped on mobile */
  aspect-ratio: auto;
  background: var(--fw-sample-stage);
}

.fw-modal-img.sample.fw-img-full img {
  height: auto;
  max-height: min(70dvh, 900px);
  width: 100%;
  object-fit: contain;
}

/* Portrait installed (left column) — same portrait frame as sample faces */
.fw-modal-img.installed.installed-portrait {
  position: relative;
  aspect-ratio: var(--fw-sample-aspect);
  width: 100%;
  max-width: 100%;
}

.fw-modal-img.installed.installed-portrait img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 767px) {
  .fw-modal-img.installed.installed-portrait {
    max-height: min(52dvh, 70vw * 5 / 3);
    margin-inline: auto;
  }
}

/* Landscape 2nd face + landscape installed — full width under specs, natural aspect */
.fw-modal-img.fw-img-wide,
.fw-modal-img.installed.fw-img-wide,
.fw-modal-img.wide-sample {
  position: relative;
  aspect-ratio: auto;
  width: 100%;
  max-width: 100%;
  max-height: none;
  background: var(--fw-sample-stage, #ece8e1);
}

.fw-modal-img.fw-img-wide img,
.fw-modal-img.installed.fw-img-wide img,
.fw-modal-img.wide-sample img {
  height: auto;
  width: 100%;
  max-width: 100%;
  max-height: min(70dvh, 720px);
  object-fit: contain;
  object-position: center center;
  display: block;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .fw-modal-img.fw-img-wide img,
  .fw-modal-img.installed.fw-img-wide img,
  .fw-modal-img.wide-sample img {
    max-height: min(55dvh, 480px);
  }
}

.fw-modal-img.spec { aspect-ratio: 4/3; margin-top: 0.75rem; }

.fw-spec-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  min-width: 0;
}

.fw-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 100px) minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f0ebe3;
  min-width: 0;
}

.fw-spec-row dt,
.fw-spec-row dd {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fw-spec-row dt { color: var(--fw-muted); font-weight: 600; }
.fw-spec-row dd { margin: 0; font-weight: 500; }

.fw-spec-row-supplier dd {
  padding: 0.15rem 0;
}

.fw-supplier-logo {
  display: block;
  max-height: 52px;
  width: auto;
  max-width: 100%;
}

.fw-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  background: var(--fw-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.fw-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--fw-muted);
  font-size: 0.85rem;
}

.fw-loading {
  text-align: center;
  padding: 3rem;
  color: var(--fw-muted);
}

/* Sample board */
.fw-like-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(240, 180, 180, 0.55);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--fw-like);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}

.fw-like-btn:hover { transform: scale(1.06); color: #e07070; }
.fw-like-btn.active {
  background: #fff5f5;
  color: var(--fw-like-deep);
  border-color: var(--fw-like-deep);
  box-shadow: 0 6px 18px rgba(155, 12, 12, 0.22);
}

.fw-board-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 1.5rem);
  padding: 0.45rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(26,26,26,0.14);
}

.fw-board-bar-btn {
  border: none;
  background: #f3efe8;
  color: var(--fw-ink);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fw-board-bar-cta {
  background: var(--fw-accent);
  color: #fff;
}

.fw-board-bar-compare { background: var(--fw-accent-soft); }

.fw-board-count {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.fw-board-bar-cta .fw-board-count { background: rgba(255,255,255,0.2); }

.fw-board-toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  background: var(--fw-accent-dark);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  z-index: 45;
  max-width: min(92vw, 26rem);
  text-align: center;
}

.fw-board-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fw-panel-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 55;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: contain;
}

@media (min-width: 768px) {
  .fw-panel-backdrop { align-items: center; padding: 1rem; }
}

.fw-panel {
  width: 100%;
  max-width: min(560px, 100%);
  max-height: 88vh;
  max-height: 88dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--fw-shadow);
  min-width: 0;
}

@media (min-width: 768px) {
  .fw-panel { border-radius: 20px; }
}

.fw-panel-checkout { max-width: 640px; }

.fw-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.fw-panel-header h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.fw-panel-lead {
  color: var(--fw-muted);
  line-height: 1.5;
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.fw-board-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.fw-board-list.compact .fw-board-item { padding: 0.55rem; }

.fw-board-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid #efe9df;
  border-radius: 14px;
  background: #fcfaf7;
}

.fw-board-thumb {
  width: 56px;
  aspect-ratio: 3/5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--fw-sample-stage);
}

.fw-board-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fw-board-name { font-weight: 700; font-size: 0.95rem; }
.fw-board-meta { color: var(--fw-muted); font-size: 0.8rem; margin-top: 0.15rem; }

.fw-board-remove {
  border: none;
  background: #f1ede6;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.fw-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  min-width: 0;
  max-width: 100%;
}

.fw-modal-actions .fw-cta,
.fw-modal-actions .fw-cta-secondary {
  max-width: 100%;
}

.fw-cta-like.active {
  background: var(--fw-like-deep);
  color: #fff;
}
.fw-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d2c7;
  background: #fff;
  color: var(--fw-ink);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
}

.fw-cta-secondary.active {
  border-color: var(--fw-accent);
  background: var(--fw-accent-soft);
  color: var(--fw-accent);
}

.fw-cta-full { width: 100%; justify-content: center; border: none; cursor: pointer; }

.fw-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.fw-compare-card {
  border: 1px solid #efe9df;
  border-radius: 14px;
  padding: 0.65rem;
  background: #fcfaf7;
}

.fw-compare-img {
  aspect-ratio: 3/5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--fw-sample-stage);
  margin-bottom: 0.5rem;
}

.fw-compare-img img { width: 100%; height: 100%; object-fit: cover; }
.fw-compare-title { font-weight: 700; font-size: 0.9rem; }
.fw-compare-meta { color: var(--fw-muted); font-size: 0.78rem; margin: 0.2rem 0 0.5rem; }

.fw-link-btn {
  border: none;
  background: none;
  color: var(--fw-accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 0.82rem;
}

.fw-checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.fw-checkout-steps span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fw-muted);
  background: #f3efe8;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.fw-checkout-steps span.active {
  background: var(--fw-accent-soft);
  color: var(--fw-accent);
}

.fw-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.fw-field { display: grid; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--fw-muted); }
.fw-field-full { grid-column: 1 / -1; }

.fw-field input,
.fw-field textarea,
.fw-select {
  font: inherit;
  font-weight: 500;
  color: var(--fw-ink);
}

.fw-field input,
.fw-field textarea {
  border: 1px solid #ddd8d0;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.fw-visit-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fw-visit-card {
  display: grid;
  gap: 0.25rem;
  border: 2px solid #e7e1d8;
  border-radius: 16px;
  padding: 0.9rem 1rem 0.9rem 2.5rem;
  cursor: pointer;
  position: relative;
  background: #fff;
}

.fw-visit-card input {
  position: absolute;
  left: 1rem;
  top: 1.1rem;
}

.fw-visit-card strong { font-size: 0.98rem; }
.fw-visit-card span { color: var(--fw-muted); font-size: 0.86rem; line-height: 1.45; }
.fw-visit-card.active {
  border-color: var(--fw-accent);
  background: var(--fw-accent-soft);
}

.fw-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.fw-slot-btn {
  border: 1px solid #ddd8d0;
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}

.fw-slot-btn.active,
.fw-slot-btn:hover {
  border-color: var(--fw-accent);
  background: var(--fw-accent-soft);
}

.fw-checkout-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.fw-confirm-box {
  background: #fcfaf7;
  border: 1px solid #efe9df;
  border-radius: 14px;
  padding: 1rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.fw-confirm-divider {
  height: 1px;
  background: #efe9df;
  margin: 0.65rem 0;
}

.fw-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.fw-fine-print {
  color: var(--fw-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 0.75rem;
}

.fw-success {
  text-align: center;
  padding: 1rem 0.5rem 0.5rem;
}

.fw-success-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--fw-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.fw-success h4 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.fw-loading-inline {
  color: var(--fw-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

body { padding-bottom: 5.5rem; }
body.embed { padding-bottom: 0; }

/* ── SEO: crawlable directory + product/landing pages ───────────────────── */
.fw-seo-directory,
.fw-seo-page {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--fw-ink, #1a1a1a);
  background: var(--fw-bg, #f6f3ee);
}

.fw-seo-directory {
  border-top: 1px solid rgba(91, 15, 0, 0.12);
  margin-top: 2rem;
  padding: 2.5rem 1.25rem 4rem;
}

.fw-seo-inner,
.fw-seo-landing,
.fw-seo-product {
  max-width: 1100px;
  margin: 0 auto;
}

.fw-seo-directory h1,
.fw-seo-landing h1,
.fw-seo-product h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--fw-accent, #5b0f00);
}

.fw-seo-directory h2,
.fw-seo-landing h2,
.fw-seo-product h2,
.fw-seo-directory h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  margin: 2rem 0 0.5rem;
  color: var(--fw-ink, #1a1a1a);
}

.fw-seo-intro,
.fw-seo-lead {
  color: var(--fw-muted, #6b6b6b);
  line-height: 1.55;
  max-width: 52rem;
  margin: 0 0 1rem;
}

.fw-seo-nav {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0.5rem 0 1rem;
}

.fw-seo-nav a,
.fw-seo-directory a,
.fw-seo-landing a,
.fw-seo-product a {
  color: var(--fw-accent, #5b0f00);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fw-seo-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 700px) {
  .fw-seo-list { columns: 1; }
}

.fw-seo-list li {
  break-inside: avoid;
  margin: 0.35rem 0;
  line-height: 1.4;
}

.fw-seo-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  color: var(--fw-muted, #6b6b6b);
}

.fw-seo-crumbs {
  font-size: 0.85rem;
  color: var(--fw-muted, #6b6b6b);
  margin: 0 0 1rem;
}

.fw-seo-page {
  margin: 0;
  padding: 1.5rem 1.25rem 3rem;
  min-height: 100vh;
}

.fw-seo-kicker {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fw-accent, #5b0f00);
  margin: 0 0 0.35rem;
}

.fw-seo-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin-top: 1.25rem;
}

@media (max-width: 800px) {
  .fw-seo-product-grid { grid-template-columns: 1fr; }
}

.fw-seo-product-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--fw-sample-stage, #ece8e1);
  box-shadow: var(--fw-shadow, 0 12px 40px rgba(26, 26, 26, 0.08));
}

.fw-seo-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.fw-seo-specs th,
.fw-seo-specs td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

.fw-seo-specs th {
  width: 38%;
  color: var(--fw-muted, #6b6b6b);
  font-weight: 500;
}

.fw-seo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

.fw-seo-btn {
  display: inline-block;
  background: var(--fw-accent, #5b0f00);
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.fw-seo-btn-secondary {
  background: transparent;
  color: var(--fw-accent, #5b0f00) !important;
  border: 1.5px solid var(--fw-accent, #5b0f00);
}

.fw-seo-local {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fw-muted, #6b6b6b);
}

.fw-seo-card-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.fw-seo-card a {
  display: block;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--fw-shadow, 0 12px 40px rgba(26, 26, 26, 0.08));
  height: 100%;
}

.fw-seo-card img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  display: block;
  background: var(--fw-sample-stage, #ece8e1);
}

.fw-seo-card-title {
  display: block;
  font-weight: 600;
  padding: 0.65rem 0.75rem 0.15rem;
  color: var(--fw-ink, #1a1a1a);
}

.fw-seo-card-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--fw-muted, #6b6b6b);
  padding: 0 0.75rem 0.85rem;
}

/* Hide heavy SEO directory when embedded in iframe */
body.embed .fw-seo-directory { display: none; }