/* ==========================================================================
   Design 5 — Le Fil
   A single gold thread, drawn down the page as it scrolls. It starts under the
   logo, swings between looks placed left and right, and every look is knotted
   to it. Sizes hang on the thread as beads. Ivory ground, ink type, burgundy
   for the action; the thread is the only ornament.
   ========================================================================== */

.fil {
  --bg: var(--mk-ivory);
  --ink: var(--mk-black);
  --soft: var(--mk-stone-deep);
  --line: rgba(0, 0, 0, 0.14);
  --gold: var(--mk-gold-b);
  --accent: var(--mk-burgundy);
  --tile: #E9E2D8;
  --bar: 88px;
  --g0: clamp(18px, 4vw, 60px);
  --gutter: max(var(--g0), calc((100vw - 1640px) / 2));
  --gap: clamp(12px, 1.7vw, 26px);
  --k: clamp(30px, 3.6vw, 56px);          /* how far a knot sits from the edge of its picture */
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.75;
}
.fil :focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.fil h1, .fil h2 { font-family: var(--f-display); }

.fil .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 4px 36px 0;
  background: var(--accent); color: var(--mk-ivory);
  font-family: var(--f-head); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background-color 0.25s;
}
.fil .btn:hover { background: var(--mk-wine); }
.fil .btn:disabled { background: var(--mk-taupe); }
.fil .btn--wide { width: 100%; }
.f-under { font-family: var(--f-head); font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 2px; border-bottom: 1px solid var(--gold); transition: color 0.2s; }
.f-under:hover { color: var(--accent); }

/* ---- thread and knots -------------------------------------------------- */
[data-thread] { position: relative; }
[data-thread] > :not(.f-thread) { position: relative; z-index: 1; }
.f-thread { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.f-thread path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.f-thread__base { stroke: rgba(184, 168, 154, 0.55); stroke-width: 1; }
.f-thread__gold { stroke: var(--mk-gold-b); stroke-width: 1.5; }

.f-knot { display: block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); transition: background-color 0.5s ease, box-shadow 0.5s ease; }
.f-knot[data-tied], .f-knot--tied { background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.f-knot--lg { width: 15px; height: 15px; }

/* ---- header ------------------------------------------------------------ */
.f-header { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: var(--bar); padding-inline: var(--gutter); background: var(--bg); }
.f-header__side, .f-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.f-header__side--end { justify-content: flex-end; }
.f-nav a, .f-word { font-family: var(--f-head); font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; padding: 8px 0 5px; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.f-nav a:hover, .f-word:hover, .f-nav a[aria-current] { border-bottom-color: var(--gold); }
.f-menubtn { display: none; }
.f-paren::before { content: "("; }
.f-paren::after { content: ")"; }
.f-paren[data-empty] { display: none; }
.f-logo { display: block; }
.f-logo .mk-mark { width: 132px; }

/* ---- home hero --------------------------------------------------------- */
.f-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); align-items: center; padding: clamp(20px, 3vw, 44px) var(--gutter) clamp(56px, 8vw, 120px); }
.f-hero__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tile); }
.f-hero__img--l { margin-top: 22%; }
.f-hero__img--r { margin-bottom: 22%; }
.f-hero__img--l img { object-position: 50% 30%; }
.f-hero__img--r img { object-position: 50% 35%; }
.f-hero__text { display: grid; justify-items: center; gap: 22px; padding: 26px clamp(12px, 2vw, 34px) 30px; text-align: center; background: var(--bg); }
.f-hero__text h1 { font-size: clamp(36px, 4.7vw, 76px); line-height: 1.02; letter-spacing: -0.01em; max-width: 9.5em; }
.f-hero__text p { max-width: 27em; color: var(--soft); }
.f-hero__text .f-knot { margin-bottom: 8px; }

/* ---- the path of looks ------------------------------------------------- */
.f-path { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(48px, 7vw, 120px); padding: clamp(24px, 4vw, 64px) var(--gutter) clamp(56px, 8vw, 120px); }
.f-look { min-width: 0; }
.f-look--l { grid-column: 1 / 6; }
/* the right-hand look starts low enough for the left look's beads to hang clear before the thread swings across */
.f-look--r { grid-column: 8 / 13; margin-top: clamp(336px, 25vw, 410px); }
.f-look--l.f-look--inset { grid-column: 2 / 6; }
.f-look--r.f-look--tall { grid-column: 8 / 12; }
.f-look__frame { position: relative; }
.f-look__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tile); }
.f-look--tall .f-look__img { aspect-ratio: 4 / 5; }
.f-look__img > a { display: block; height: 100%; }
.f-look__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease; }
.f-look__img img.alt { opacity: 0; }
.f-look__save { position: absolute; top: 8px; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.4)); }
.f-look--l .f-look__save { left: 8px; }
.f-look--r .f-look__save { right: 8px; }
.f-look__save[aria-pressed="true"] .mk-icon, .f-pdp__save[aria-pressed="true"] .mk-icon { fill: currentColor; }

/* knot and beads sit in the gutter beside the picture, on the thread */
.f-look .f-knot { position: absolute; top: 16%; transform: translate(-50%, -50%); z-index: 2; }
.f-look--l .f-knot { left: calc(100% + var(--k)); }
.f-look--r .f-knot { left: calc(var(--k) * -1); }
/* an invisible strip joins the picture to its beads, so the pointer can travel between them without the beads closing */
.f-look__frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc(var(--k) + 26px); }
.f-look--l .f-look__frame::after { left: 100%; }
.f-look--r .f-look__frame::after { right: 100%; }
.f-beads { position: absolute; top: calc(16% + 24px); z-index: 3; display: grid; gap: 8px; pointer-events: none; }
.f-look--l .f-beads { left: calc(100% + var(--k) - 17px); }
.f-look--r .f-beads { left: calc(var(--k) * -1 - 17px); }
.f-beads .size { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: transparent; transition: color 0.2s, background-color 0.25s, box-shadow 0.25s; }
.f-beads .size::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--gold); transition: opacity 0.2s; }
.f-beads .size:disabled::before { background: var(--bg); box-shadow: inset 0 0 0 1px var(--mk-taupe); }
.f-look:focus-within .f-beads, .f-look[data-quick] .f-beads { pointer-events: auto; }
.f-look:focus-within .f-beads .size, .f-look[data-quick] .f-beads .size { color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--gold); }
.f-look:focus-within .f-beads .size::before, .f-look[data-quick] .f-beads .size::before { opacity: 0; }
@media (hover: hover) {
  .f-look:hover .f-look__img img.alt { opacity: 1; }
  .f-look:hover .f-beads { pointer-events: auto; }
  .f-look:hover .f-beads .size { color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--gold); }
  .f-look:hover .f-beads .size::before { opacity: 0; }
}
.fil .f-beads .size:hover:not(:disabled), .fil .f-beads .size:focus-visible { background: var(--accent); color: var(--mk-ivory); box-shadow: none; }
.fil .f-beads .size:disabled { color: transparent; }
.f-look:focus-within .f-beads .size:disabled, .f-look[data-quick] .f-beads .size:disabled, .f-look:hover .f-beads .size:disabled { color: #A39C95; text-decoration: line-through; box-shadow: inset 0 0 0 1px var(--mk-taupe); }

.f-look__cap { padding-top: 14px; }
.f-look__no { font-family: var(--f-head); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); }
.f-look__name { font-family: var(--f-display); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.1; margin: 2px 0 4px; }
.f-look__name a:hover { color: var(--accent); }
.f-look__meta { display: flex; gap: 16px; font-size: 13.5px; }
.f-look__meta > span:first-child { color: var(--soft); }
.f-look__add { margin-top: 10px; }
.f-look--r .f-look__cap { text-align: right; }
.f-look--r .f-look__meta { justify-content: flex-end; }
.f-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 22px; padding: 30px 0 60px; text-align: center; font-size: 17px; }

/* ---- quote, craft, end ------------------------------------------------- */
.f-quote { display: grid; justify-items: center; gap: 30px; padding: clamp(40px, 6vw, 96px) var(--gutter); text-align: center; }
.f-quote blockquote { max-width: 13em; padding: 20px clamp(12px, 3vw, 44px); background: var(--bg); font-family: var(--f-display); font-size: clamp(30px, 4.5vw, 70px); line-height: 1.06; }
.f-craft { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding: clamp(40px, 6vw, 96px) var(--gutter); }
.f-craft img { grid-column: 1 / 6; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.f-craft__text { grid-column: 8 / 13; position: relative; display: grid; justify-items: start; gap: 16px; }
.f-craft__text .f-knot { position: absolute; left: calc(var(--k) * -1); top: 22px; transform: translate(-50%, -50%); }
.f-craft__text h2, .f-end h2, .f-value__text h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.06; }
.f-craft__text p, .f-value__text p { color: var(--soft); max-width: 32em; }
.f-end { display: grid; justify-items: center; gap: 26px; padding: clamp(48px, 7vw, 110px) var(--gutter) clamp(72px, 10vw, 150px); text-align: center; }
.f-end h2 { max-width: 13em; padding: 8px 24px; background: var(--bg); }
.f-end p { max-width: 38em; color: var(--soft); padding: 0 24px; background: var(--bg); }

/* ---- shop -------------------------------------------------------------- */
.f-pagehead { display: grid; justify-items: center; gap: 12px; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(20px, 3vw, 40px); text-align: center; }
.f-pagehead h1 { font-size: clamp(44px, 6.4vw, 104px); line-height: 0.98; letter-spacing: -0.01em; padding: 10px 28px 14px; background: var(--bg); }
.f-pagehead > p { font-family: var(--f-head); font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 0 16px; background: var(--bg); }
.f-pagehead--story h1 { max-width: 11em; }
.f-pagehead--story > p { font-family: var(--f-body); font-size: 16px; letter-spacing: 0; text-transform: none; max-width: 40em; color: var(--soft); padding: 12px 24px; }
.f-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin: 0 var(--gutter); padding: 13px 0; border-block: 1px solid var(--line); background: var(--bg); }
.f-tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.f-tabs a { font-family: var(--f-head); font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 0 3px; color: var(--soft); border-bottom: 1px solid transparent; }
.f-tabs a:hover { color: var(--ink); }
.f-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }
.f-sort { display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 13.5px; }
.f-sort select { border: 0; background: transparent; padding: 6px 2px; color: var(--ink); cursor: pointer; }

/* ---- product page ------------------------------------------------------ */
.f-pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); column-gap: clamp(28px, 6vw, 110px); align-items: start; padding: 12px var(--gutter) clamp(56px, 8vw, 120px); }
/* pictures stack like prints laid one on another: each stays put while the next slides over it */
.f-stack img { position: sticky; top: calc(var(--bar) + 12px); display: block; width: 100%; height: calc(100vh - var(--bar) - 48px); min-height: 420px; object-fit: cover; background: var(--tile); box-shadow: 0 -1px 0 var(--bg), 0 -14px 30px -18px rgba(0, 0, 0, 0.35); }
.f-stack img:first-child { box-shadow: none; }
.f-stack img:nth-child(2) { top: calc(var(--bar) + 24px); }
.f-stack img:nth-child(3) { top: calc(var(--bar) + 36px); }
.f-stack img:nth-child(4) { top: calc(var(--bar) + 48px); }
.f-pdp__info { position: sticky; top: calc(var(--bar) + 12px); padding: 8px 0 24px; }
/* on product, service and checkout pages the thread is a plain line down the left of the text, knotted at each part */
.f-step { position: relative; display: grid; gap: 14px; padding: 0 0 34px clamp(26px, 3vw, 44px); border-left: 1px solid var(--gold); }
.f-step:last-child { padding-bottom: 6px; }
.f-step > .f-knot { position: absolute; left: 0; top: 9px; transform: translate(-50%, -50%); background: var(--gold); box-shadow: 0 0 0 5px var(--bg); }
.f-pdp__no { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--f-head); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.f-pdp__no .f-under { color: var(--ink); }
.f-pdp__info h1 { font-size: clamp(42px, 5vw, 82px); line-height: 0.98; letter-spacing: -0.01em; padding-bottom: 0.06em; }
.f-pdp__price { display: flex; align-items: baseline; gap: 16px; font-size: 18px; }
.f-pdp__price > span:last-child { font-size: 14px; color: var(--soft); }
.f-pdp__desc { color: var(--soft); max-width: 36em; }
.f-pdp__sizehead { display: flex; justify-content: space-between; align-items: baseline; }
.f-pdp__sizehead strong { font-weight: 500; }
.f-string { position: relative; display: flex; flex-wrap: wrap; gap: 10px 14px; padding-block: 4px; }
.f-string::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--gold); }
.f-string .size { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--gold); font-size: 13px; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.f-string .size:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.f-string .size:disabled { color: #A39C95; text-decoration: line-through; box-shadow: inset 0 0 0 1px var(--mk-taupe); }
.f-string .size[aria-pressed="true"] { background: var(--accent); color: var(--mk-ivory); box-shadow: none; }
.f-pdp__error { color: #A32020; }
.f-pdp__sold { color: var(--soft); }
.f-pdp__save { justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; }
.f-pdp__save:hover { color: var(--accent); }
.f-notes > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.f-notes > div:first-child { border-top: 0; padding-top: 0; }
.f-notes dt { font-family: var(--f-head); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 1px; }
.f-notes dd { color: var(--soft); }
.f-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: clamp(28px, 4vw, 52px) var(--gutter); border-top: 1px solid var(--gold); }
.f-pager a { display: grid; gap: 4px; }
.f-pager a:last-child { text-align: right; }
.f-pager a:hover strong { color: var(--accent); }
.f-pager span:not(.f-knot) { font-family: var(--f-head); font-size: 13px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--soft); }
.f-pager strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 54px); line-height: 1.02; transition: color 0.2s; }
.f-pager .f-knot { margin-top: -1px; }

/* ---- story ------------------------------------------------------------- */
.f-values { display: grid; gap: clamp(48px, 7vw, 110px); padding: clamp(32px, 5vw, 72px) var(--gutter); }
.f-value { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.f-value img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.f-value--l img { grid-column: 1 / 6; }
.f-value--l .f-value__text { grid-column: 8 / 13; }
.f-value--r img { grid-column: 8 / 13; grid-row: 1; }
.f-value--r .f-value__text { grid-column: 1 / 6; grid-row: 1; text-align: right; justify-items: end; }
.f-value__text { position: relative; display: grid; gap: 14px; }
.f-value__text .f-knot { position: absolute; top: 22px; transform: translate(-50%, -50%); }
.f-value--l .f-knot { left: calc(var(--k) * -1); }
.f-value--r .f-knot { left: calc(100% + var(--k)); }

/* ---- service pages, checkout ------------------------------------------- */
.f-info, .f-checkout { --gutter: var(--g0); max-width: 1180px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(72px, 10vw, 150px); }
.f-info { max-width: 860px; }
.f-info h1, .f-checkout h1 { font-size: clamp(44px, 6vw, 92px); line-height: 0.98; letter-spacing: -0.01em; }
.f-info__intro { font-size: 18px; margin: 16px 0 40px; max-width: 32em; }
.f-info .f-step h2, .f-checkout .f-step h2, .f-sum h2 { font-family: var(--f-head); font-size: 15px; letter-spacing: 0.17em; text-transform: uppercase; }
.f-info .f-step { gap: 6px; }
.f-info .f-step p { color: var(--soft); }
.f-info__sample { margin-top: 26px; font-size: 12.5px; color: var(--soft); }
.f-info--center { display: grid; justify-items: center; text-align: center; }
.f-info--center .f-info__intro { margin-inline: auto; }
.f-info--center .f-knot { margin-bottom: 26px; }

.f-checkout__cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: clamp(28px, 6vw, 100px); margin-top: clamp(28px, 4vw, 52px); align-items: start; }
/* a step's knot fills in once nothing in that step is left to correct */
.f-step--form > .f-knot { background: var(--bg); box-shadow: 0 0 0 5px var(--bg), inset 0 0 0 1px var(--gold); border: 0; transition: background-color 0.4s; }
.f-step--form:not(:has(:invalid)) > .f-knot { background: var(--gold); }
.f-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fil .field { display: grid; gap: 5px; }
.fil .field--full { grid-column: 1 / -1; }
.fil .field label { font-size: 13px; color: var(--soft); }
.fil .field input { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; }
.fil .field input:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.fil .field.is-invalid input { border-bottom-color: #A32020; box-shadow: 0 1px 0 #A32020; }
.fil .delivery { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.fil .delivery:first-child { border-top: 0; padding-top: 0; }
.fil .delivery input { grid-row: 1 / 3; width: 16px; height: 16px; accent-color: var(--accent); }
.fil .delivery__name { font-weight: 500; }
.fil .delivery__detail { grid-column: 2; font-size: 13px; color: var(--soft); }
.fil .delivery__cost { grid-column: 3; grid-row: 1 / 3; }
.f-checkout__note { color: var(--soft); max-width: 40em; }
.f-sum { position: sticky; top: calc(var(--bar) + 24px); padding: 26px 28px 28px; border: 1px solid var(--gold); }
.f-sum__lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.f-sum__name { font-family: var(--f-display); font-size: 21px; line-height: 1.15; }
.f-sum__meta { font-size: 12.5px; color: var(--soft); }
.f-sum__totals { margin-top: 14px; display: grid; gap: 7px; }
.f-sum__totals div { display: flex; justify-content: space-between; gap: 16px; }
.f-sum__grand { font-size: 17px; padding-top: 8px; }
.f-sum--plain { position: static; width: min(100%, 520px); margin-bottom: 30px; text-align: left; }

/* ---- footer ------------------------------------------------------------ */
.f-footer { border-top: 1px solid var(--gold); padding: clamp(40px, 5vw, 72px) var(--gutter) 24px; }
.f-footer__cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 32px var(--gap); }
.f-footer h2 { font-family: var(--f-head); font-size: 14px; letter-spacing: 0.17em; text-transform: uppercase; margin-bottom: 12px; }
.f-footer li { margin-bottom: 5px; }
.f-footer li a:hover, .f-footer li button:hover { color: var(--accent); }
.f-footer__news p { color: var(--soft); max-width: 26em; }
.fil .newsletter { display: flex; max-width: 440px; margin-top: 16px; border-bottom: 1px solid var(--gold); }
.fil .newsletter input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; }
.fil .newsletter input:focus { outline: none; }
.fil .newsletter:focus-within { box-shadow: 0 1px 0 var(--gold); }
.fil .newsletter .btn { min-height: 44px; padding: 3px 0 0 18px; background: none; color: var(--ink); }
.fil .newsletter .btn:hover { color: var(--accent); background: none; }
.fil .newsletter.is-invalid { border-bottom-color: #A32020; }
.fil .form-done { margin-top: 16px; max-width: 30em; }
.f-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: clamp(36px, 5vw, 64px); padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--soft); }

/* ---- panels ------------------------------------------------------------ */
.f-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.36); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
body[data-open="bag"] .f-scrim, body[data-open="sizes"] .f-scrim, body[data-open="account"] .f-scrim, body[data-open="search"] .f-scrim { opacity: 1; pointer-events: auto; }

.f-drawer { --gutter: 30px; position: fixed; top: 0; bottom: 0; right: 0; z-index: 60; width: min(470px, 100vw); display: flex; flex-direction: column; background: var(--bg); transform: translateX(100%); visibility: hidden; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s 0.45s; }
body[data-open="bag"] .f-drawer { transform: none; visibility: visible; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.f-drawer__head, .f-modal__head { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 30px 14px; }
.f-drawer__head h2, .f-modal__head h2 { font-size: 38px; line-height: 1; }
.f-drawer__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* pieces in the bag are strung on the same thread */
.f-lines { flex: 1; overflow-y: auto; padding: 8px 30px 0 36px; }
.f-line { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 0 0 22px 24px; border-left: 1px solid var(--gold); }
.f-line::before { content: ""; position: absolute; left: 0; top: 14px; width: 9px; height: 9px; margin-left: -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.f-line__img img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tile); }
.f-line__body { min-width: 0; display: grid; align-content: start; gap: 3px; }
.f-line__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 12px; }
.f-line__name { font-family: var(--f-display); font-size: 22px; line-height: 1.15; }
.f-line__meta { font-size: 13px; color: var(--soft); }
.f-line__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.f-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 18px; }
.f-qty button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.f-qty span { min-width: 22px; text-align: center; }
.f-line__remove { font-size: 12.5px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.f-line__remove:hover { color: var(--accent); }
.f-bag__foot { padding: 20px 30px 28px; border-top: 1px solid var(--gold); display: grid; gap: 10px; }
.f-bag__total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-size: 26px; }
.f-bag__total .mk-price { font-family: var(--f-body); font-size: 17px; }
.f-bag__foot p { font-size: 13px; color: var(--soft); margin-bottom: 6px; }
.f-bag__empty { margin: auto; padding: 40px 30px; display: grid; justify-items: center; gap: 22px; text-align: center; font-size: 16px; }

.f-over { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s; }
body[data-open="menu"] .f-over { opacity: 1; visibility: visible; transition: opacity 0.35s; }
.f-over__bar { display: flex; align-items: center; justify-content: flex-end; height: 68px; padding-inline: var(--g0); }
.f-over__nav { display: grid; margin: 8px var(--g0) 0 calc(var(--g0) + 6px); padding-left: 26px; border-left: 1px solid var(--gold); }
.f-over__nav a { position: relative; font-family: var(--f-display); font-size: clamp(38px, 10.5vw, 80px); line-height: 1.14; }
.f-over__nav a::before { content: ""; position: absolute; left: -26px; top: 50%; width: 9px; height: 9px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.f-over__nav a:hover { color: var(--accent); }
.f-over__foot { display: flex; gap: 26px; padding: 34px var(--g0) 48px; }

.f-search { --gutter: var(--g0); position: fixed; left: 0; right: 0; top: 0; z-index: 60; max-height: 88vh; max-height: 88dvh; overflow-y: auto; background: var(--bg); transform: translateY(-102%); visibility: hidden; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s 0.45s; }
body[data-open="search"] .f-search { transform: none; visibility: visible; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.f-search__form { display: flex; align-items: flex-end; gap: 20px; padding: clamp(22px, 4vh, 44px) var(--gutter) 0; }
.f-search__form input { flex: 1; min-width: 0; padding: 6px 0 12px; border: 0; border-bottom: 1px solid var(--gold); background: transparent; font-family: var(--f-display); font-size: clamp(30px, 4.6vw, 64px); line-height: 1.05; }
.f-search__form input::placeholder { color: #B5ACA3; }
.f-search__form input:focus { outline: none; box-shadow: 0 1px 0 var(--gold); }
.f-search__form .f-under { margin-bottom: 14px; }
.f-search__results { padding: 22px var(--gutter) 44px; }
.f-search__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--soft); }
.f-search__hint button { padding: 7px 16px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
.f-search__hint button:hover { border-color: var(--gold); }
.f-search__count { margin-bottom: 12px; color: var(--soft); }
.f-search__none { font-size: 17px; max-width: 34em; }
.f-hits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 64px); }
.f-hit { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.f-hit:hover { color: var(--accent); }
.f-hit img { grid-row: 1 / 3; width: 56px; aspect-ratio: 3 / 4; object-fit: cover; }
.f-hit__name { font-family: var(--f-display); font-size: 22px; line-height: 1.15; align-self: end; }
.f-hit__meta { grid-column: 2; font-size: 13px; color: var(--soft); align-self: start; }
.f-hit__price { grid-column: 3; grid-row: 1 / 3; }

.f-modal { position: fixed; z-index: 60; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--bg); border: 1px solid var(--gold); transform: translate(-50%, -46%); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s; }
body[data-open="sizes"] .f-modal[data-panel="sizes"], body[data-open="account"] .f-modal[data-panel="account"] { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity 0.3s, transform 0.3s; }
.f-modal__lead { padding: 0 30px; color: var(--soft); }
.fil .sizeguide { width: calc(100% - 60px); margin: 8px 30px 0; }
.fil .sizeguide th, .fil .sizeguide td { padding: 12px 6px; text-align: center; font-weight: 400; border-bottom: 1px solid var(--line); }
.fil .sizeguide thead th { font-family: var(--f-head); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; border-bottom-color: var(--gold); }
.fil .sizeguide__note { padding: 18px 30px 28px; font-size: 13px; color: var(--soft); }
.fil .account { display: grid; gap: 10px; padding: 18px 30px 28px; }
.fil .account label { font-size: 13px; color: var(--soft); }
.fil .account input { padding: 13px 14px; border: 1px solid var(--line); background: transparent; }
.fil .account.is-invalid input { border-color: #A32020; }
.fil .f-modal .form-done { padding: 0 30px 28px; margin: 0; }

/* ---- responsive -------------------------------------------------------- */
@media (min-width: 1700px) {
  .f-stack img { max-height: 1100px; }
}
@media (max-width: 1000px) {
  .f-nav { display: none; }
  .f-menubtn { display: block; }
  .f-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-footer__news { grid-column: 1 / -1; }
}
/* narrow screens: one column, with the thread running down the left margin */
@media (max-width: 820px) {
  .fil { --bar: 72px; --k: 22px; }
  .f-logo .mk-mark { width: 108px; }
  .f-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 8px; }
  .f-hero__text { grid-column: 1 / -1; grid-row: 1; padding-inline: 0; }
  .f-hero__img--l, .f-hero__img--r { margin: 0; }
  .f-hero__img--r { margin-top: 18%; }
  .f-path { display: block; padding-left: calc(var(--g0) + 44px); }
  .f-look, .f-look--r { margin: 0 0 clamp(44px, 12vw, 72px); }
  .f-look--l .f-knot, .f-look--r .f-knot { left: calc(var(--k) * -1); }
  .f-look--l .f-beads, .f-look--r .f-beads { left: calc(var(--k) * -1 - 17px); }
  .f-look--l .f-look__frame::after, .f-look--r .f-look__frame::after { left: auto; right: 100%; width: 48px; }
  .f-look--r .f-look__save { right: auto; left: 8px; }
  .f-look--r .f-look__cap { text-align: left; }
  .f-look--r .f-look__meta { justify-content: flex-start; }
  .f-craft, .f-value { display: block; padding-left: calc(var(--g0) + 44px); }
  .f-values { padding-inline: 0; }
  .f-value { padding-right: var(--g0); }
  .f-craft img, .f-value img { margin-bottom: 22px; }
  .f-craft__text .f-knot, .f-value--l .f-knot, .f-value--r .f-knot { left: calc(var(--k) * -1); }
  .f-value--r .f-value__text { text-align: left; justify-items: start; }
  .f-pdp { grid-template-columns: minmax(0, 1fr); }
  .f-stack { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--g0) * -1) 28px; padding-inline: var(--g0); scrollbar-width: none; }
  .f-stack img, .f-stack img:nth-child(n) { position: static; flex: 0 0 86%; height: auto; min-height: 0; aspect-ratio: 3 / 4; scroll-snap-align: center; box-shadow: none; }
  .f-pdp__info { position: static; padding-left: 8px; }
  .f-checkout__cols { grid-template-columns: minmax(0, 1fr); }
  .f-sum { position: static; }
  .f-hits { grid-template-columns: minmax(0, 1fr); }
  .f-pager strong { font-size: 24px; }
}
@media (max-width: 560px) {
  .f-hide-sm { display: none; }
  .f-header { gap: 8px; }
  .f-fields { grid-template-columns: minmax(0, 1fr); }
  .f-footer__cols { grid-template-columns: minmax(0, 1fr); }
  .f-drawer__head, .f-modal__head { padding-inline: 20px; }
  .f-lines { padding: 8px 20px 0 26px; }
  .f-bag__foot { padding-inline: 20px; }
  .f-line { grid-template-columns: 68px 1fr; padding-left: 18px; }
  .f-line__img img { width: 68px; }
  .f-info .f-step, .f-checkout .f-step { padding-left: 20px; }
}

/* touch: text-sized links and buttons get a taller hit area; beads open from the "Add to bag" control */
@media (pointer: coarse), (max-width: 860px) {
  .f-under { padding-top: 9px; }
  .f-footer li a, .f-footer li button, .f-look__name a, .f-line__name { display: inline-block; padding-block: 5px; }
  .f-footer li { margin-bottom: 0; }
  .f-line__remove { padding-block: 8px; }
  .f-logo { padding-block: 6px; }
  .f-beads .size { width: 38px; height: 38px; }
  .f-beads { gap: 6px; }
  .f-tabs a { display: inline-block; min-width: 32px; padding-block: 8px 6px; text-align: center; }
}

/* a phone on its side: the bag gives its height to the list */
@media (max-height: 560px) {
  .f-drawer__head { padding: 10px 30px 6px; }
  .f-drawer__head h2 { font-size: 26px; }
  .f-line { grid-template-columns: 56px 1fr; padding-bottom: 12px; }
  .f-line__img img { width: 56px; }
  .f-line__row { margin-top: 4px; }
  .f-bag__foot { padding: 10px 30px 12px; gap: 8px; }
  .f-bag__foot p { display: none; }
  .f-bag__total { font-size: 22px; }
  .fil .f-bag__foot .btn { min-height: 44px; }
}
