/*
 * Lace pages (lace/*.php). Loaded after the site CSS, only on lace pages.
 * Matches the site (Montserrat / Dancing Script / Open Sans, red accent) with a softer "lace" look.
 * --lace-red is the brand red darkened for WCAG AA text contrast.
 */
.lace-page {
  --lace-red: #c8000e;
  --lace-red-soft: #fbe9ea;
  --lace-ink: #222;
  --lace-muted: #595959;
  --lace-line: #e7e1dc;
  --lace-paper: #faf7f4;
  --lace-blush: #f6ece8;
  --lace-gold: #8a6a12;
  --lace-radius: 14px;
  --lace-shadow: 0 2px 6px rgba(34, 20, 10, .06), 0 10px 30px rgba(34, 20, 10, .06);
  --lace-shadow-hover: 0 6px 14px rgba(34, 20, 10, .10), 0 22px 44px rgba(34, 20, 10, .14);
  --lace-ease: cubic-bezier(.2, .7, .2, 1);
  padding-bottom: 60px;
}
.lace-page *,
.lace-page *::before,
.lace-page *::after { box-sizing: border-box; }

.lace-page ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Page header: "New" pill + scalloped lace edge ---------- */
.lace-page-header .page_header_parallax {
  position: relative;
  padding-bottom: 56px;
}
.lace-page-header .page_header_parallax::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 18px;
  /* row of scallops with a pin-hole in each, like a lace edge */
  background:
    radial-gradient(circle at 14px 18px, #fff 13px, transparent 13.5px) 0 0 / 28px 18px repeat-x;
  pointer-events: none;
}
.lace-page-header .page_header_parallax::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 6px;
  background: radial-gradient(circle at 14px 3px, rgba(255, 255, 255, .85) 2px, transparent 2.5px) 0 0 / 28px 6px repeat-x;
  pointer-events: none;
}
.lace-kicker { margin: 18px 0 0; }
.lace-pill {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 6px 14px;
  border-radius: 999px;
  background: #c8000e;
  color: #fff;
  font: 700 11px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(200, 0, 14, .35);
}
.lace-pill::after { /* slow shimmer */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: lace-shimmer 4.5s ease-in-out infinite;
}
.lace-pill--soft {
  background: var(--lace-red-soft, #fbe9ea);
  color: #a3000b;
  box-shadow: none;
}
.lace-pill--soft::after { display: none; }
@keyframes lace-shimmer {
  0%, 60% { left: -60%; }
  100%    { left: 130%; }
}

/* ---------- Breadcrumb ---------- */
.lace-breadcrumb { margin: -50px 0 36px; }
.lace-breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.lace-breadcrumb li { font-weight: 600; color: var(--lace-muted); }
.lace-breadcrumb li + li::before { content: '/'; margin: 0 8px; color: #b5aca5; }
.lace-breadcrumb a { color: var(--lace-ink); text-decoration: underline; text-decoration-color: #d4c8bf; text-underline-offset: 3px; }
.lace-breadcrumb a:hover { color: var(--lace-red); text-decoration-color: currentColor; }

/* ---------- Headings / text ---------- */
.lace-h2 {
  position: relative;
  margin: 0 0 8px;
  font: 700 26px/1.25 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .02em;
  color: var(--lace-ink);
}
.lace-section-head { margin-bottom: 22px; }
.lace-section-head p { margin: 0; color: var(--lace-muted); }
.lace-page p { color: #222; }

/* ---------- Intro + stat tiles ---------- */
.lace-intro { margin-bottom: 56px; }
.lace-intro h2 { margin-top: 0; }
.lace-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 10px !important;
}
.lace-stats li {
  position: relative;
  padding: 22px 18px 18px;
  border: 1px solid var(--lace-line);
  border-radius: var(--lace-radius);
  background: var(--lace-paper);
  overflow: hidden;
  transition: transform .35s var(--lace-ease), box-shadow .35s var(--lace-ease);
}
.lace-stats li::before { /* scalloped top edge */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: radial-gradient(circle at 7px 0, var(--lace-red) 5px, transparent 5.5px) 0 0 / 14px 7px repeat-x;
  opacity: .8;
}
.lace-stats li:hover { transform: translateY(-3px); box-shadow: var(--lace-shadow); }
.lace-stats strong {
  display: block;
  font: 700 34px/1.1 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  color: var(--lace-ink);
  white-space: nowrap;
}
.lace-stats span { display: block; margin-top: 4px; color: var(--lace-muted); font-size: 13px; }
.lace-stats--2 { grid-template-columns: 1fr 1fr; }

/* ---------- Filters ---------- */
.lace-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}
.lace-filters[hidden] { display: none; }
.lace-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #cfc6bf;
  border-radius: 999px;
  background: #fff;
  color: var(--lace-ink);
  font: 600 13px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.lace-chip:hover { border-color: var(--lace-ink); transform: translateY(-1px); }
.lace-chip[aria-pressed="true"] { border-color: var(--lace-ink); background: var(--lace-ink); color: #fff; }
.lace-chip-range { font-weight: 500; opacity: .75; }
.lace-chip-n {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1ece8;
  color: var(--lace-ink);
  font-size: 11px;
  text-align: center;
}
.lace-chip[aria-pressed="true"] .lace-chip-n { background: rgba(255, 255, 255, .2); color: #fff; }
.lace-chip--toggle .fa { opacity: 0; width: 0; transition: opacity .2s, width .2s; }
.lace-chip--toggle[aria-pressed="true"] { border-color: var(--lace-red); background: var(--lace-red); }
.lace-chip--toggle[aria-pressed="true"] .fa { opacity: 1; width: 12px; }
.lace-empty { padding: 30px; border: 1px dashed #cfc6bf; border-radius: var(--lace-radius); text-align: center; }
.lace-linkbtn { padding: 0; border: 0; background: none; color: var(--lace-red); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- Card grid ---------- */
.lace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 26px;
  margin-bottom: 70px !important;
}
.lace-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lace-card { display: flex; }
.lace-card[hidden] { display: none; }
.lace-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--lace-line);
  border-radius: var(--lace-radius);
  background: #fff;
  box-shadow: var(--lace-shadow);
  overflow: hidden;
  transition: transform .45s var(--lace-ease), box-shadow .45s var(--lace-ease), border-color .3s;
}
.lace-card-inner:hover,
.lace-card-inner:focus-within {
  transform: translateY(-6px);
  border-color: #dccfc6;
  box-shadow: var(--lace-shadow-hover);
}

.lace-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #c9d6e3;
}
.lace-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--lace-ease), filter .6s;
}
.lace-card-inner:hover .lace-card-media img,
.lace-card-inner:focus-within .lace-card-media img {
  transform: scale(1.09);
  filter: saturate(1.08) contrast(1.03);
}
.lace-card-media::after { /* light sweep across the lace on hover */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.lace-card-inner:hover .lace-card-media::after,
.lace-card-inner:focus-within .lace-card-media::after {
  transform: translateX(120%);
  transition: transform 1.1s var(--lace-ease);
}
.lace-card-no { /* big outlined style number in the corner of the photo */
  position: absolute;
  right: 12px;
  bottom: 4px;
  color: transparent;
  font: 800 46px/1 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -.02em;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .18);
  pointer-events: none;
  transition: transform .5s var(--lace-ease), opacity .5s;
  opacity: .9;
}
.lace-card-inner:hover .lace-card-no { transform: translateY(-4px); opacity: 1; }

/* Badges */
.lace-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 20px);
}
.lace-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font: 700 10px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.lace-badge--galloon { background: linear-gradient(135deg, #fff6d8, #f0d58a); color: #5a4300; }
.lace-badge--widest  { background: #222; color: #fff; }
.lace-badge--ruffled { background: #fff; color: #a3000b; }
.lace-badge--metallic { background: linear-gradient(135deg, #fff, #d9dde2 55%, #f4f5f7); color: #333; }

/* Card body */
.lace-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}
.lace-card-title {
  margin: 0 0 2px;
  font: 700 19px/1.25 Montserrat, 'Helvetica Neue', Arial, sans-serif;
}
.lace-card-title a { color: var(--lace-ink); }
.lace-card-title a::after { /* whole card is the link */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--lace-radius);
}
.lace-card-title a:focus-visible { outline: 0; }
.lace-card-title a:focus-visible::after { outline: 3px solid #0b57d0; outline-offset: 2px; }
.lace-card-inner:hover .lace-card-title a { color: var(--lace-red); }
.lace-card-pattern { margin: 0 0 12px !important; color: var(--lace-muted) !important; font-size: 13px !important; line-height: 1.45 !important; }

.lace-card-width { display: flex; align-items: center; gap: 10px; }
.lace-card-width-text {
  flex: 0 0 auto;
  font: 700 14px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  color: var(--lace-ink);
}
.lace-card-meta { margin: 4px 0 12px !important; color: var(--lace-muted) !important; font-size: 12px !important; line-height: 1.4 !important; }

.lace-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--lace-line);
}
.lace-card-colors { color: var(--lace-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lace-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--lace-red);
  font: 700 11px/1 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lace-card-cta .fa { transition: transform .35s var(--lace-ease); }
.lace-card-inner:hover .lace-card-cta .fa { transform: translateX(6px); }

/* Width ruler (decorative bar, scaled to 5") */
.lace-ruler {
  position: relative;
  display: block;
  flex: 1 1 auto;
  height: 8px;
  min-width: 60px;
  border-radius: 99px;
  background: #efe9e4;
  overflow: hidden;
}
.lace-ruler-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #e26b74, var(--lace-red, #c8000e));
  transform-origin: left center;
  transition: transform .6s var(--lace-ease);
}
.lace-ruler i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .9);
}
.lace-card-inner:hover .lace-ruler-fill { animation: lace-ruler-grow .7s var(--lace-ease); }
@keyframes lace-ruler-grow { from { transform: scaleX(.2); } to { transform: scaleX(1); } }

/* Color dots */
.lace-dots { display: inline-flex; align-items: center; }
.lace-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
  vertical-align: middle;
}
.lace-dots .lace-dot + .lace-dot { margin-left: -4px; }
.lace-card-inner:hover .lace-dots .lace-dot + .lace-dot { margin-left: 1px; }
.lace-dots .lace-dot { transition: margin .35s var(--lace-ease); }
.lace-dots-more { margin-left: 4px; color: var(--lace-muted); font-size: 11px; font-weight: 700; }

/* ---------- Ruffled feature ---------- */
.lace-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin: 0 0 70px;
  padding: 28px;
  border-radius: calc(var(--lace-radius) + 6px);
  background: var(--lace-blush);
}
.lace-feature-media {
  position: relative;
  border-radius: var(--lace-radius);
  overflow: hidden;
  box-shadow: var(--lace-shadow);
}
.lace-feature-media img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--lace-ease); }
.lace-feature:hover .lace-feature-media img { transform: scale(1.05); }
.lace-feature-body .lace-kicker { margin: 0 0 10px; }
.lace-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px !important; }
.lace-tags a {
  display: inline-flex;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #e2cfc7;
  border-radius: 999px;
  background: #fff;
  color: var(--lace-ink);
  font: 700 13px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  transition: transform .2s, border-color .2s, color .2s;
}
.lace-tags a span { color: var(--lace-muted); font-weight: 500; }
.lace-tags a:hover { transform: translateY(-2px); border-color: var(--lace-red); color: var(--lace-red); }

/* ---------- Buttons ---------- */
.lace-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 22px;
  border: 2px solid var(--lace-ink, #222);
  border-radius: 999px;
  background: var(--lace-ink, #222);
  color: #fff !important;
  font: 700 12px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.lace-btn:hover,
.lace-btn:focus { border-color: var(--lace-red, #c8000e); background: var(--lace-red, #c8000e); color: #fff !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200, 0, 14, .25); }
.lace-btn--outline { background: transparent; color: var(--lace-ink, #222) !important; }
.lace-btn--light { border-color: #fff; background: #fff; color: #222 !important; }
.lace-btn--ghost { border-color: rgba(255, 255, 255, .7); background: transparent; }

/* ---------- CTA band ---------- */
.lace-cta {
  position: relative;
  margin-top: 10px;
  padding: 40px;
  border-radius: calc(var(--lace-radius) + 6px);
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .07) 2px, transparent 2.5px) 0 0 / 24px 24px,
    linear-gradient(135deg, #1e1b1a, #3a2522);
  color: #fff;
  overflow: hidden;
}
.lace-cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.lace-cta-title { margin: 0 0 6px; color: #fff; font: 400 40px/1.1 'Dancing Script', cursive; }
.lace-cta p { margin: 0; color: #f1e9e6 !important; }
.lace-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Product (style) page ---------- */
.lace-product {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 40px;
  margin-bottom: 40px;
}
.lace-stage { margin: 0; }
.lace-stage-frame {
  position: relative;
  border-radius: var(--lace-radius);
  background: #c9d6e3;
  overflow: hidden;
  box-shadow: var(--lace-shadow);
}
.lace-stage-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .3s ease;
}
.lace-stage-frame img.is-loading { opacity: .35; }
.lace-stage-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 34, 34, .82);
  color: #fff;
  font: 700 12px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  backdrop-filter: blur(4px);
}
.lace-stage-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 10px;
  color: var(--lace-muted);
  font-size: 13px;
  font-weight: 600;
}
.lace-stage-caption strong { color: var(--lace-ink); }
.lace-swatch-title { margin: 28px 0 12px; font: 700 15px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.lace-swatch-title span { color: var(--lace-muted); font-weight: 600; }
.lace-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}
.lace-thumb {
  display: block;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: transform .25s var(--lace-ease), box-shadow .25s, border-color .2s;
}
.lace-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 30 / 17; object-fit: cover; }
.lace-thumb:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.lace-thumb[aria-current="true"] { border-color: var(--lace-red); box-shadow: 0 0 0 3px var(--lace-red-soft); }
.lace-thumb-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 7px;
  color: var(--lace-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.lace-thumb-label .lace-dot { flex: 0 0 auto; width: 13px; height: 13px; border-width: 1px; }
.lace-thumb-label small { color: var(--lace-muted); font-size: 10px; }

/* Spec sheet */
/* Sticky only where the whole card fits on screen; top = measured sticky header (lace.js) */
.lace-spec { position: static; }
@media (min-width: 992px) and (min-height: 1000px) {
  .lace-spec { position: sticky; top: var(--lace-sticky-top, 190px); }
}
.lace-spec-card {
  position: relative;
  padding: 26px 26px 24px;
  border: 1px solid var(--lace-line);
  border-radius: calc(var(--lace-radius) + 4px);
  background: #fff;
  box-shadow: var(--lace-shadow);
}
.lace-spec-card::before { /* lace scallop along the top */
  content: '';
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 8px;
  background: radial-gradient(circle at 8px 0, var(--lace-red) 6px, transparent 6.5px) 0 0 / 16px 8px repeat-x;
}
.lace-spec-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.lace-spec-top .lace-badges { position: static; max-width: none; }
.lace-spec-top .lace-badge--ruffled { background: var(--lace-red-soft); box-shadow: none; }
.lace-spec-no { color: var(--lace-muted); font: 700 12px/1 Montserrat, 'Helvetica Neue', Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.lace-spec-title { margin: 6px 0 2px; font: 700 34px/1.15 Montserrat, 'Helvetica Neue', Arial, sans-serif; color: var(--lace-ink); }
.lace-spec-pattern { margin: 0 0 18px !important; color: var(--lace-muted) !important; }
.lace-spec-ruler { margin: 0 0 20px; padding: 14px 16px 10px; border-radius: 12px; background: var(--lace-paper); }
.lace-spec-ruler-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--lace-muted); }
.lace-spec-ruler-head strong { color: var(--lace-ink); font: 700 20px/1 Montserrat, 'Helvetica Neue', Arial, sans-serif; }
.lace-spec-ruler .lace-ruler { height: 14px; }
.lace-spec-ruler-scale { display: flex; justify-content: space-between; margin-top: 5px; color: var(--lace-muted); font-size: 11px; font-weight: 600; }
.lace-spec-list { margin: 0 0 18px; }
.lace-spec-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--lace-line); }
.lace-spec-list dt { color: var(--lace-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lace-spec-list dd { margin: 0; color: var(--lace-ink); font-weight: 600; }
.lace-spec-list dd a { margin-left: 6px; color: var(--lace-red); text-decoration: underline; font-size: 13px; }
.lace-spec-sub { margin: 0 0 10px; font: 700 13px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.lace-spec-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.lace-spec-colors li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--lace-line);
  border-radius: 999px;
  font-size: 12px;
}
.lace-spec-colors .lace-dot { width: 14px; height: 14px; border-width: 1px; }
.lace-spec-note { margin: 10px 0 18px !important; color: var(--lace-muted) !important; font-size: 13px !important; }
.lace-spec-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lace-spec-actions .lace-btn { flex: 1 1 160px; }

/* Prev / next */
.lace-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin: 10px 0 60px;
}
.lace-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--lace-line);
  border-radius: var(--lace-radius);
  background: #fff;
  color: var(--lace-ink);
  transition: transform .3s var(--lace-ease), box-shadow .3s, border-color .3s;
}
.lace-pager-next { text-align: right; }
.lace-pager-link:hover { transform: translateY(-3px); border-color: #dccfc6; box-shadow: var(--lace-shadow); color: var(--lace-ink); }
.lace-pager-dir { color: var(--lace-red); font: 700 11px/1 Montserrat, 'Helvetica Neue', Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.lace-pager-name { font: 700 17px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif; }
.lace-pager-name small { color: var(--lace-muted); font-weight: 600; }
.lace-pager-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--lace-radius);
  background: var(--lace-paper);
  color: var(--lace-ink);
  font-weight: 700;
}
.lace-pager-all:hover { background: var(--lace-blush); color: var(--lace-red); }
.lace-related .lace-h2 { margin-bottom: 20px; }

/* ---------- Ruffled page ---------- */
.lace-notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--lace-red);
  border-radius: 8px;
  background: var(--lace-blush);
}
.lace-notice .fa { margin-top: 5px; color: var(--lace-red); }
.lace-table-wrap { margin: 16px 0 60px; overflow-x: auto; border: 1px solid var(--lace-line); border-radius: var(--lace-radius); box-shadow: var(--lace-shadow); }
.lace-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; font-size: 14px; }
.lace-table th,
.lace-table td { padding: 13px 16px; border-bottom: 1px solid var(--lace-line); text-align: left; vertical-align: middle; }
.lace-table thead th { background: var(--lace-paper); color: var(--lace-muted); font: 700 11px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.lace-table tbody th { font: 700 16px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif; }
.lace-table tbody tr:last-child th,
.lace-table tbody tr:last-child td { border-bottom: 0; }
.lace-table tbody tr { transition: background-color .2s; }
.lace-table tbody tr:hover { background: #fdf9f7; }
.lace-table td .lace-ruler { display: inline-block; width: 90px; margin-left: 10px; vertical-align: middle; }
.lace-table a { color: var(--lace-red); font-weight: 700; text-decoration: underline; }

/* ---------- Scroll reveal (only with JS and motion allowed) ---------- */
.lace-js .lace-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--lace-ease), transform .7s var(--lace-ease); }
.lace-js .lace-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .lace-product { grid-template-columns: 1fr; }
  .lace-spec { position: static; }
  .lace-feature { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  .lace-breadcrumb { margin-top: -40px; }
  .lace-stats strong { font-size: 28px; }
  .lace-cta { padding: 28px 22px; }
  .lace-cta-title { font-size: 34px; }
  .lace-pager { grid-template-columns: 1fr 1fr; }
  .lace-pager-all { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: 12px; }
  .lace-feature { padding: 18px; }
  .lace-page-header h1 { font-size: 54px; line-height: 1.1; }
  .lace-page-header .as-h3 { font-size: 22px; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  .lace-page *,
  .lace-page *::before,
  .lace-page *::after,
  .lace-pill::after {
    animation: none !important;
    transition: none !important;
  }
  .lace-card-inner:hover,
  .lace-card-inner:focus-within { transform: none; }
  .lace-card-inner:hover .lace-card-media img { transform: none; }
  .lace-js .lace-reveal { opacity: 1; transform: none; }
}
.lace-grid--ruffled .lace-badge--ruffled { display: none; }

/* ---------- Main photo: enlarge link + lightbox ---------- */
.lace-zoom { display: block; height: 100%; cursor: zoom-in; }
.lace-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #222;
  font: 700 12px/1.2 Montserrat, 'Helvetica Neue', Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  opacity: .9;
  transition: opacity .25s, transform .25s;
}
.lace-zoom:hover .lace-zoom-hint,
.lace-zoom:focus-visible .lace-zoom-hint { opacity: 1; transform: translateY(-2px); }
.lace-zoom:focus-visible { outline: 3px solid #0b57d0; outline-offset: -3px; }
.lace-zoom img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
.lace-zoom:hover img { transform: scale(1.02); }
/* the site header is z-index 99990; keep the lightbox above it */
.mfp-bg.lace-mfp { z-index: 100040; opacity: .9; }
.mfp-wrap.lace-mfp { z-index: 100050; }
.lace-mfp .mfp-title { font-weight: 600; }
