/* ============================================================
   ASANAMI ROPE WORKS — global stylesheet
   Palette: warm paper / ink / jute tan / oxblood
   ============================================================ */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d6;
  --card: #fbf7ee;
  --ink: #221b12;
  --ink-soft: #6b5f4e;
  --ink-faint: #9a8d78;
  --line: #e2d7c3;
  --jute: #b3854d;
  --jute-deep: #8f6a3a;
  --ox: #6e2b2b;
  --ox-deep: #572121;
  --ok: #3e6b4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 45, 25, 0.10);
  --shadow-sm: 0 4px 14px rgba(60, 45, 25, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jute-deep);
  margin-bottom: 14px;
  font-weight: 600;
}

.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }

.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-body);
  line-height: 1;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #3a3022; transform: translateY(-1px); }
.btn-ox { background: var(--ox); color: #f8f1e6; }
.btn-ox:hover { background: var(--ox-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.link-arrow {
  font-weight: 600;
  color: var(--jute-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: 15px;
}
.link-arrow:hover { color: var(--ox); }

/* ---------- announcement + header ---------- */
.announce {
  background: var(--ink);
  color: #e9dfcc;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand small {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--jute);
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.cart-badge {
  background: var(--ox);
  color: #fff;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 700;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--jute-deep); }
.hero p.lead { font-size: 18px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img-wrap { position: relative; }
.hero-img-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}
.hero-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(34, 27, 18, 0.82);
  color: #efe6d4;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.hero-trust {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-trust div { font-size: 13px; color: var(--ink-soft); }
.hero-trust strong { display: block; font-size: 15px; color: var(--ink); }

/* ---------- trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: none; }
.trust-item .t-icon { font-size: 20px; margin-bottom: 6px; }
.trust-item strong { display: block; font-size: 14px; margin-bottom: 3px; }
.trust-item span { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- product grid ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .pc-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .pc-img img { transform: scale(1.04); }
.pc-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: #efe6d4;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.pc-tag.ox { background: var(--ox); }
.pc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-body h3 { font-size: 19px; }
.pc-body .pc-sub { font-size: 13px; color: var(--ink-faint); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-weight: 700; font-size: 16.5px; }
.price .was { color: var(--ink-faint); text-decoration: line-through; font-weight: 400; font-size: 13.5px; margin-left: 7px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.15); }

/* ---------- split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img.rounded { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.split h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.split p { color: var(--ink-soft); margin-bottom: 14px; }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.step .num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--jute-deep);
  margin-bottom: 6px;
  display: block;
}
.step strong { font-size: 15px; display: block; margin-bottom: 4px; }
.step p { font-size: 13.5px; margin: 0; color: var(--ink-soft); }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.quote .stars { color: var(--jute); letter-spacing: 3px; font-size: 14px; margin-bottom: 12px; }
.quote p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.quote .who { font-size: 13px; font-weight: 600; }
.quote .who span { color: var(--ink-faint); font-weight: 400; }

/* ---------- guide / faq ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--jute-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 4px 22px; color: var(--ink-soft); max-width: 68ch; }

table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.spec th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 600; }
table.spec tr td:first-child { font-weight: 600; }

/* ---------- newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: #ece2cf;
  border-radius: 20px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter h2 { color: #f6f0e2; font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.newsletter p { color: #bfb299; font-size: 15px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 14px 20px;
  color: #f2ead9;
  font-size: 15px;
  font-family: var(--font-body);
}
.newsletter input::placeholder { color: #9a8d78; }
.newsletter .form-note { font-size: 12px; color: #8d8069; margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: #1b1610; color: #b8ab93; margin-top: 90px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 44px;
}
.site-footer h4 {
  color: #e9dfcc;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: #f0e7d5; }
.footer-brand { font-family: var(--font-display); font-size: 22px; color: #f0e7d5; margin-bottom: 12px; }
.footer-note { font-size: 13px; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0 26px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #857860;
}
.age-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- page hero (interior) ---------- */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 12px; }
.page-hero p { color: var(--ink-soft); max-width: 60ch; font-size: 17px; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 48px 0 20px; align-items: start; }
.pdp-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.pdp h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 8px; }
.pdp .jp { color: var(--ink-faint); font-size: 15px; letter-spacing: 0.3em; margin-bottom: 16px; }
.pdp .pdp-price { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.pdp .pdp-price .from { font-size: 13px; color: var(--ink-faint); font-weight: 400; margin-right: 6px; }
.pdp-desc { color: var(--ink-soft); margin-bottom: 26px; }

.opt-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); font-weight: 700; margin-bottom: 10px; }
.opt-label b { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 14px; }
.swatches { display: flex; gap: 12px; margin-bottom: 24px; }
.swatch-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  background: var(--paper-2);
  outline: 1px solid var(--line);
}
.swatch-btn.selected { border-color: var(--paper); outline: 2px solid var(--ink); }
.lengths { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.length-btn {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--ink);
  transition: all 0.15s ease;
}
.length-btn small { color: var(--ink-faint); margin-left: 6px; }
.length-btn.selected { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.length-btn.selected small { color: #c9bda6; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.qty button {
  width: 40px; height: 46px;
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: var(--ink-soft);
}
.qty input {
  width: 40px; text-align: center;
  border: none; background: none;
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  font-family: var(--font-body);
}
.buy-row .btn { flex: 1; padding: 15px 28px; }
.pdp-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 30px; }
.pdp-trust span::before { content: "✓ "; color: var(--ok); }

details.acc { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; overflow: hidden; }
details.acc summary {
  cursor: pointer; list-style: none;
  padding: 16px 18px;
  font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; color: var(--jute-deep); font-size: 18px; }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 18px 18px; font-size: 14.5px; color: var(--ink-soft); }
details.acc .acc-body ul { margin: 8px 0 0 18px; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; padding: 40px 0 20px; }
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  align-items: center;
}
.cart-row img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.cart-row h3 { font-size: 17px; margin-bottom: 2px; }
.cart-row .variant { font-size: 13px; color: var(--ink-faint); }
.cart-row .row-end { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.remove-btn { background: none; border: none; color: var(--ink-faint); font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.remove-btn:hover { color: var(--ox); }

.summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.summary-card h3 { font-size: 20px; margin-bottom: 18px; }
.sum-line { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; color: var(--ink-soft); }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-size: 18px; font-weight: 700; color: var(--ink); }
.free-ship { margin: 16px 0 6px; }
.free-ship .bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.free-ship .bar i { display: block; height: 100%; background: var(--jute); border-radius: 3px; transition: width 0.3s ease; }
.free-ship p { font-size: 13px; color: var(--ink-soft); }
.free-ship .done { color: var(--ok); font-weight: 600; }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; padding: 40px 0 20px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; }
.form-card h3 { font-size: 19px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--jute); border-color: transparent; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 14px; cursor: pointer; background: #fffdf8; }
.radio-pill input { accent-color: var(--ox); }
.pay-note {
  background: var(--paper-2);
  border: 1px dashed var(--jute);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.order-confirmation {
  text-align: center;
  padding: 70px 24px;
}
.order-confirmation .ok-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.order-confirmation h1 { font-size: 34px; margin-bottom: 12px; }
.order-confirmation .order-no { font-family: var(--font-display); font-size: 20px; color: var(--jute-deep); margin-bottom: 14px; }

/* ---------- age gate ---------- */
.age-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 15, 9, 0.78);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.age-card {
  background: var(--paper);
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  padding: 44px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.age-card .glyph { font-size: 30px; margin-bottom: 14px; }
.age-card h2 { font-size: 26px; margin-bottom: 12px; }
.age-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 26px; }
.age-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #efe6d4;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: #d8b98a; text-decoration: underline; }

/* ---------- utility ---------- */
.muted { color: var(--ink-faint); font-size: 13.5px; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.badge-pill {
  display: inline-block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 6px 8px 0;
}
.discreet-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 26px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .split, .grid-2 { grid-template-columns: 1fr; }
  .pdp, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 40px 28px; }
  .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
}

/* ---------- language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--ink-faint); color: var(--ink); }
.lang-btn .globe { font-size: 13px; color: var(--jute-deep); }
.lang-btn .caret { font-size: 9px; opacity: 0.6; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 158px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 80;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.lang-menu button:hover { background: var(--paper-2); }
.lang-menu button.active { font-weight: 700; color: var(--jute-deep); }
.lang-menu button b { color: var(--jute-deep); font-size: 12px; }

@media (max-width: 960px) {
  .header-actions { gap: 10px; }
  .lang-btn { padding: 6px 9px; font-size: 11.5px; }
  .lang-btn .globe { display: none; }
}

/* ---------- Stripe checkout ---------- */
.pay-note.live {
  border-style: solid;
  border-color: rgba(62, 107, 79, 0.35);
  background: #f2f6f1;
}
.pay-methods {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin: -4px 0 14px;
}
.pay-fine {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-faint);
  margin-top: 12px;
}
.pay-error {
  margin-top: 14px;
  background: #fdf1ee;
  border: 1px solid #e3b9ab;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #8a3a28;
}
#payBtn:disabled { opacity: 0.6; cursor: progress; }

.notice-banner {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--jute);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 20px 0 -4px;
}

.ok-items {
  max-width: 460px;
  margin: 0 auto 4px;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.ok-items h4 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.ok-items .sum-line { font-size: 13.5px; }
.order-confirmation .muted-circle {
  background: var(--ink-faint);
  font-size: 26px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .order-confirmation { padding: 46px 16px; }
  .order-confirmation h1 { font-size: 28px; }
  .order-confirmation .btn { margin: 6px 0 0 !important; display: inline-block; }
}

/* ============================================================
   v2 — accessibility, mobile buy bar, sizing calculator
   ============================================================ */

/* lifted contrast: --ink-faint was 2.6:1 on paper (WCAG fail) */
:root {
  --ink-faint: #6f6253;
  --ink-soft: #5d5344;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 300;
  background: var(--card);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
}
:focus-visible {
  outline: 2px solid var(--ox);
  outline-offset: 3px;
  border-radius: 4px;
}
.qty button:focus-visible, .btn:focus-visible { outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile sticky buy bar (PDP) ---------- */
.buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: none;
  gap: 12px;
  align-items: center;
  z-index: 90;
  box-shadow: 0 -6px 20px rgba(60, 45, 25, 0.10);
  transform: translateY(120%);
  transition: transform 0.22s ease;
}
.buy-bar.show { transform: translateY(0); }
.buy-bar .bb-price { font-family: var(--font-display); font-size: 19px; line-height: 1; }
.buy-bar .bb-meta { font-size: 10.5px; color: var(--ink-faint); line-height: 1.3; }
.buy-bar .btn { flex: 1; padding: 13px 18px; font-size: 14px; }
@media (max-width: 860px) { .buy-bar { display: flex; } }
body.has-buy-bar { padding-bottom: 72px; }

/* ---------- rope length calculator ---------- */
.calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.calc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .calc-grid { grid-template-columns: 1fr; gap: 20px; } }
.calc-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
  background: #fffdf8;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.calc-opt:hover { border-color: var(--jute); }
.calc-opt:has(input:checked) { border-color: var(--ox); background: #fbf3f1; }
.calc-opt input { accent-color: var(--ox); }
.calc-opt small { color: var(--ink-faint); margin-left: auto; font-size: 12px; white-space: nowrap; }
.calc-size { display: flex; gap: 8px; margin: 14px 0 18px; }
.calc-size button {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
}
.calc-size button.on { border-color: var(--ox); background: var(--ox); color: #fff; font-weight: 600; }
.calc-result {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
}
.calc-meters { font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--ox); }
.calc-unit { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.calc-hanks { font-size: 14px; margin-top: 12px; }
.calc-hanks b { color: var(--ox); }
.calc-note { font-size: 11.5px; color: var(--ink-faint); line-height: 1.5; margin-top: 14px; }

/* ---------- cart upsell + PDP calculator link ---------- */
.upsell {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed var(--jute);
  background: #faf6ee;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
}
.upsell strong { display: block; font-size: 13px; line-height: 1.35; }
.upsell span { font-size: 11.5px; color: var(--ink-faint); }
.upsell .btn { padding: 8px 14px; font-size: 12.5px; white-space: nowrap; }
.calc-link { font-size: 12.5px; color: var(--ink-faint); margin: 8px 0 18px; }
.calc-link a { color: var(--jute-deep); text-decoration: underline; }

/* ---------- v2 fixes: long-word overflow (de), mobile nav ---------- */
.spec td, .spec th { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter form input { min-width: 0; flex: 1 1 180px; }
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 4px;
    row-gap: 0;
  }
  /* nav returns on mobile as a swipeable row instead of being hidden */
  .nav {
    display: flex;
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 4px 0 10px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 12px; font-size: 13px; border-radius: 8px; }
  .nav a.active { background: var(--paper-2); }
}
