/* =========================================================
   Hashira Ltd — shared stylesheet
   Style: Gradient SaaS (design direction 03)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

:root {
  --ink: #0c0a1d;
  --body: #4b4869;
  --muted: #8b87a8;
  --line: #ece9f5;
  --line-2: #ded7f0;
  --soft: #faf9ff;

  --g1: #6366f1;
  --g2: #a855f7;
  --g3: #ec4899;
  --grad: linear-gradient(120deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, #eff0fe 0%, #f7ecfe 50%, #fdeaf3 100%);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --sh-sm: 0 4px 14px rgba(99, 102, 241, .08);
  --sh: 0 10px 30px rgba(99, 102, 241, .10);
  --sh-lg: 0 24px 60px rgba(99, 102, 241, .18);

  --max: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", Inter, Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 680;
  letter-spacing: -.025em;
}

p { margin: 0; }

/* ---------- accessibility ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--g1);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.section { padding: 88px 0; position: relative; }
.section--soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tight { padding: 64px 0; }

.sec-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.sec-head--left { text-align: left; margin-left: 0; }
.sec-head h2 { font-size: 38px; margin-bottom: 16px; }
.sec-head p { font-size: 16.5px; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- ambient blobs ---------- */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}
.blob--a { width: 520px; height: 520px; background: #c7d2fe; top: -180px; right: -140px; opacity: .5; }
.blob--b { width: 420px; height: 420px; background: #fbcfe8; top: 140px; left: -180px; opacity: .42; }
.blob--c { width: 460px; height: 460px; background: #ddd6fe; bottom: -200px; right: 8%; opacity: .4; }
.blob--d { width: 380px; height: 380px; background: #c7d2fe; top: -120px; left: -120px; opacity: .38; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(236, 233, 245, .9);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.03em;
  color: var(--ink);
  flex: 0 0 auto;
}
.logo__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 14.5px;
}
.nav a { color: var(--body); transition: color .2s; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* The icon controls read as one cluster; the primary CTA is a different kind
   of thing and gets extra separation so the row doesn't look crammed. */
.header-actions > .btn { margin-left: 14px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  text-align: center;
}
.btn--primary {
  background: var(--grad);
  /* Gradient buttons get a 1px fringe at the rounded corners when the fill
     reaches the transparent border ring. Clipping to the padding box keeps
     the fill inside the curve. */
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, .32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(139, 92, 246, .42); }
.btn--ghost {
  background: rgba(255, 255, 255, .75);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--line-2); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--g1);
  font-size: 14.5px;
}
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- hero ---------- */

.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero--center { text-align: center; }
.hero--center .hero__inner { max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: 54px; margin-bottom: 22px; }
.hero--center h1 { font-size: 56px; }
.hero__lead { font-size: 18.5px; max-width: 620px; margin: 0 auto 34px; }
.hero--left .hero__lead { margin-left: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(99, 102, 241, .08);
  margin-bottom: 26px;
}
.pill b { font-weight: 700; }

/* ---------- cards ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--sh-sm);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--line-2); }

.card--glass {
  background: rgba(255, 255, 255, .74);
  border-color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh);
}

.card__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
  color: var(--g2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex: 0 0 auto;
  transition: transform .26s ease, box-shadow .26s ease, color .26s ease;
}
.card__icon svg { width: 23px; height: 23px; display: block; }
.card:hover .card__icon {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, .20);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  padding: 4px 11px;
  border-radius: 999px;
}
.chip--muted { color: var(--muted); background: var(--soft); border-color: var(--line); }

/* ---------- trust strip ---------- */

.trust {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.trust .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust__item b {
  display: block;
  font-size: 26px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.03em;
}
.trust__item span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band { position: relative; padding: 96px 0; text-align: center; overflow: hidden; }
.cta-band__box {
  padding: 64px 40px;
  border-radius: var(--r-xl);
  background: var(--grad);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(139, 92, 246, .35);
}
.cta-band__box::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  top: -200px; right: -100px;
}
.cta-band h2 { color: #fff; font-size: 38px; margin-bottom: 16px; position: relative; }
.cta-band p {
  color: rgba(255, 255, 255, .92);
  max-width: 540px;
  margin: 0 auto 30px;
  font-size: 17px;
  position: relative;
}
.cta-band .btn { position: relative; background: #fff; color: #6d28d9; }
.cta-band .btn:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }

/* ---------- page header (sub pages) ---------- */

.page-head {
  position: relative;
  padding: 72px 0 56px;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head h1 { font-size: 44px; margin-bottom: 18px; }
.page-head p { font-size: 18px; max-width: 660px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--g1); }

/* ---------- prose (legal pages) ---------- */

.prose { max-width: 780px; }
.prose h2 {
  font-size: 25px;
  margin: 46px 0 14px;
  padding-top: 8px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; font-size: 16px; }
.prose a { color: var(--g1); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 650; }

.callout {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--g2);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  margin: 0 0 28px;
  font-size: 15px;
}
.callout p:last-child { margin-bottom: 0; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  background: #fff;
  box-shadow: var(--sh-sm);
}
.toc h2 {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 10px; font-size: 14px; }
.toc a { color: var(--body); display: flex; gap: 9px; }
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--muted);
  font-size: 12px;
  flex: 0 0 auto;
  padding-top: 2px;
}
.toc a:hover { color: var(--g1); }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; margin-bottom: 24px; border-radius: var(--r); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--soft);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); font-weight: 650; }

/* ---------- info rows ---------- */

.info-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--muted); margin: 0; }
.info-row dd { color: var(--ink); font-weight: 600; margin: 0; text-align: right; }

/* ---------- forms ---------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
/* Text inputs only. Checkboxes and radios inside a .field must keep their
   native size - a blanket `input { width: 100% }` makes them eat the row and
   squeezes the adjacent label into a one-character column. */
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--g1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .16);
}
.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  accent-color: var(--g1);
}
.field--row { grid-template-columns: 1fr 1fr; gap: 18px; }
.field--row > * { min-width: 0; }

.form-note { font-size: 13px; color: var(--muted); }

/* ---------- contact cards ---------- */

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  flex: 0 0 auto;
}
.contact-item b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; font-weight: 650; }
.contact-item a { color: var(--g1); }
.contact-item span { font-size: 14.5px; }

/* ---------- footer ---------- */

.site-footer {
  padding: 64px 0 32px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.site-footer h2 {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--g1); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.footer-brand .logo__mark { width: 28px; height: 28px; }
.footer-legal {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- header language switcher (globe) ---------- */

.lang-switch { position: relative; flex: 0 0 auto; }

.lang-switch > details > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.lang-switch > details > summary::-webkit-details-marker { display: none; }
.lang-switch > details > summary::marker { content: ""; }
.lang-switch > details > summary:hover { border-color: var(--line-2); background: var(--soft); }
.lang-switch > details[open] > summary { border-color: var(--line-2); background: var(--soft); }
.lang-switch__globe { width: 16px; height: 16px; flex: 0 0 auto; color: var(--g1); }
.lang-switch__caret {
  width: 9px; height: 9px; flex: 0 0 auto;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.lang-switch > details[open] .lang-switch__caret {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 178px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 18px 44px rgba(12, 10, 29, .14);
}
.lang-switch__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--body);
  transition: background .16s, color .16s;
}
.lang-switch__menu a:hover { background: var(--soft); color: var(--ink); }
.lang-switch__menu a[aria-current="true"] {
  color: var(--g1);
  font-weight: 600;
  background: #f5f3ff;
}
.lang-switch__menu a[aria-current="true"]::after {
  content: "\2713";
  font-size: 12px;
}

/* ---------- storefront ---------- */

.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 46px; }
.cat-nav a {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--body);
  background: #fff;
  transition: border-color .2s, color .2s, background .2s;
}
.cat-nav a:hover { border-color: var(--line-2); color: var(--ink); background: var(--soft); }

.products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--sh-sm);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--line-2); }

.product__media {
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  border-radius: var(--r-sm);
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g1);
  overflow: hidden;
}
.product__media svg { width: 26px; height: 26px; }

.product__name { font-size: 14px; line-height: 1.35; margin-bottom: 4px; }
.product__sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .03em;
  margin-bottom: 7px;
}
.product__desc { font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; flex: 1; }
.product__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 2px;
}
.product__tax { font-size: 10.5px; color: var(--muted); margin-bottom: 10px; }
.product .btn { width: 100%; font-size: 12.5px; padding: 8px 10px; }

.stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #0f7a4d;
  margin-bottom: 8px;
}
.stock::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #16a34a; }

/* cart button in the header */
.cart-link,
.account-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.cart-link:hover,
.account-link:hover { border-color: var(--line-2); background: var(--soft); }
.cart-link svg,
.account-link svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

/* add-to-cart toast */
.cart-flash {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: calc(100vw - 40px);
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 16px 38px rgba(12, 10, 29, .3);
}

/* cart page */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table th, .cart-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table th {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.cart-table td:last-child, .cart-table th:last-child { text-align: right; }
.cart-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.qty button {
  width: 32px; height: 34px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.qty button:hover { background: var(--soft); }
.qty input {
  width: 46px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.link-danger {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-danger:hover { color: #b91c1c; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }

.summary {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.summary h2 { font-size: 17px; margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; padding: 8px 0; }
.summary__row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.summary__total span:last-child { font-variant-numeric: tabular-nums; }
.summary .btn { margin-top: 20px; }

.cart-empty { text-align: center; padding: 64px 20px; }

/* checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 34px; }
legend {
  padding: 0 0 14px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #fff;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.option:hover { border-color: var(--g1); }
.option input { margin: 3px 0 0; flex: 0 0 auto; width: auto; accent-color: var(--g1); }
.option b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }
.option span { font-size: 13.5px; }
.option__price { margin-left: auto; font-weight: 600; color: var(--ink); white-space: nowrap; }

.callout--warn { border-left-color: #f59e0b; background: #fffbf0; border-color: #f7e3b5; }

/* compact page header for utility pages */
.page-head--compact { padding: 38px 0 32px; }
.page-head--compact h1 { font-size: 33px; margin-bottom: 10px; }
.page-head--compact p { font-size: 15.5px; max-width: 720px; }

/* ---------- shop with filter rail ---------- */

.shop-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-sm);
}
.filters__title {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.filter-group { padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; }
.filter-group h3 { font-size: 14px; margin-bottom: 10px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--body);
  cursor: pointer;
}
.check input { accent-color: var(--g1); flex: 0 0 auto; margin: 0; }
.check__count { margin-left: auto; font-size: 12.5px; color: var(--muted); }

.price-row { display: flex; align-items: center; gap: 8px; }
.price-row input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
}
.price-row input:focus { outline: none; border-color: var(--g1); box-shadow: 0 0 0 3px rgba(99,102,241,.16); }
.price-row span { color: var(--muted); font-size: 13px; }

.filter-actions { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.filter-actions .btn { flex: 1; }

.filter-status { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.filter-empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.filter-empty h3 { font-size: 18px; margin-bottom: 8px; }

/* category blocks - tight vertical rhythm between categories */
.cat-block { margin-bottom: 32px; scroll-margin-top: 96px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-block__head { margin-bottom: 14px; }
.cat-block__head h2 { font-size: 20px; margin-bottom: 4px; }
.cat-block__head p { font-size: 13.5px; color: var(--body); }

.product--out .product__media { opacity: .45; }
.product--out .product__name,
.product--out .product__price { color: var(--muted); }
.product--out .btn { background: var(--soft); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.stock--out { color: #b45309; }
.stock--out::before { background: #f59e0b; }

/* ---------- product detail page ---------- */

.product__link { display: block; }
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.product__name a { color: inherit; }
.product__name a:hover { color: var(--g1); }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}
.pdp__gallery {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-sm);
}
.pdp__gallery img { width: 100%; height: auto; display: block; }

/* Product gallery: a stage plus a thumbnail strip. The strip only exists on
   products that carry more than one shot, so single-image products render
   exactly as they always did. */
.pdp__stage { background: #fff; }
.pdp__thumbs {
  display: flex; gap: 8px; padding: 10px;
  border-top: 1px solid var(--line);
  overflow-x: auto; background: #fbfcfe;
}
.pdp__thumb {
  flex: 0 0 auto; width: 72px; height: 72px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp__thumb:hover { border-color: var(--g1); }
.pdp__thumb.is-active {
  border-color: var(--g1);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, .18);
}
.pdp__thumb:focus-visible { outline: 2px solid var(--g1); outline-offset: 2px; }

/* Contact form status line, filled in by main.js after a submit. */
.formnote {
  margin: 14px 0 0; padding: 12px 16px; border-radius: 10px;
  font-size: 14px; background: #f3f5fa; color: var(--body);
  border: 1px solid var(--line);
}
.formnote--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.formnote--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.pdp__info h1 { font-size: 30px; margin-bottom: 8px; letter-spacing: -.03em; }
.pdp__sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.pdp__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  margin-top: 14px;
}
.pdp__tax { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.pdp__desc { font-size: 16px; margin-bottom: 24px; }

.pdp__buy { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.pdp__buy .btn { min-width: 160px; }

.pdp__points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pdp__points li {
  position: relative;
  padding: 11px 0 11px 24px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.pdp__points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 18px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--g1);
  border-bottom: 2px solid var(--g1);
  transform: rotate(-45deg);
}

.pdp-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

table.specs th {
  width: 42%;
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  white-space: normal;
}
table.specs td { font-size: 14.5px; color: var(--ink); }

.includes { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.includes li {
  position: relative;
  padding: 13px 18px 13px 40px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.includes li:last-child { border-bottom: 0; }
.includes li::before {
  content: "";
  position: absolute;
  left: 18px; top: 20px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--g1);
  border-bottom: 2px solid var(--g1);
  transform: rotate(-45deg);
}

.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.related a:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.related img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.related span { display: block; padding: 14px 16px 4px; font-size: 14px; color: var(--ink); }
.related b { display: block; padding: 0 16px 16px; font-size: 15px; color: var(--ink); }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-cols { grid-template-columns: 1fr; gap: 32px; }
  .pdp__info h1 { font-size: 24px; }
  .pdp__price { font-size: 26px; }
  .related { grid-template-columns: 1fr 1fr; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(12, 10, 29, .08);
    padding: 8px 28px 20px;
  }
  .site-header.is-open .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .site-header.is-open .nav a:last-child { border-bottom: 0; }

  .hero h1, .hero--center h1 { font-size: 38px; }
  .hero { padding: 64px 0 56px; }
  .page-head h1 { font-size: 32px; }
  .page-head { padding: 48px 0 40px; }
  .sec-head h2 { font-size: 29px; }
  .section { padding: 64px 0; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }

  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }

  .cta-band h2 { font-size: 30px; }
  .cta-band__box { padding: 44px 26px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field--row { grid-template-columns: 1fr; }

  .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .summary { position: static; }

  .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; }
  .cat-block { margin-bottom: 26px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .cart-table td { border: 0; padding: 5px 0; text-align: left !important; }
  .cart-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: 12.5px;
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero h1, .hero--center h1 { font-size: 31px; }
  .hero__lead { font-size: 17px; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust .wrap { gap: 22px; }
  .trust__item { flex: 1 1 40%; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .header-actions > .btn { display: none; }
  .lang-switch > details > summary { padding: 8px 10px; }
  .lang-switch__label { display: none; }
}

/* product grid density - steps down as the viewport narrows.
   Listed after the 980px block so the narrower rules win. */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product__desc { display: none; }
}
@media (max-width: 460px) {
  .products { grid-template-columns: 1fr; }
  .product__desc { display: block; }
}
