/* KI International — modern rebuild */

:root {
  --ink: #16181d;
  --ink-soft: #3a3d45;
  --paper: #faf8f5;
  --paper-dim: #f0ede7;
  --line: #e4e0d8;
  --accent: #e8622c;
  --accent-dark: #c74d1c;
  --accent-tint: #fdece2;
  --navy: #1c2530;
  --gold: #c9a24b;
  --white: #ffffff;
  --success: #2f7d5f;
  --shadow-sm: 0 1px 3px rgba(22, 24, 29, 0.08);
  --shadow-md: 0 8px 24px rgba(22, 24, 29, 0.1);
  --shadow-lg: 0 24px 60px rgba(22, 24, 29, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: 0.01em; font-weight: 400; line-height: 1.05; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(232, 98, 44, 0.32);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.22); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 2px 18px rgba(22, 24, 29, 0.05);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-inner .brand { min-width: 0; flex-shrink: 1; }
.header-inner .header-actions,
.header-inner .main-nav { flex-shrink: 0; }
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}
.brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--accent);
  font-size: 1.1rem;
  margin-right: 4px;
}
.brand small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: var(--paper-dim); border-color: var(--ink-soft); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-count.is-visible { display: inline-flex; }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  height: calc(100vh - var(--header-h));
  background: var(--paper);
  z-index: 55;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow-y: auto;
  padding: 20px 24px 40px;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 85% 15%, rgba(232, 98, 44, 0.35), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(201, 162, 75, 0.18), transparent 60%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 76px 0 90px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.98;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--white); }
.hero-stat span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.hero-visual .tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0f151d;
}
.hero-visual .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .tile.tall { grid-row: span 2; aspect-ratio: 3/4; }
.hero-visual .tile.short { aspect-ratio: 4/3; }
.hero-badge {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(22, 24, 29, 0.72);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dim { background: var(--paper-dim); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.section-head p { color: var(--ink-soft); max-width: 480px; margin-top: 10px; }
.section-dark .section-head p { color: rgba(255,255,255,0.65); }
.section-link { font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.section-link:hover { color: var(--accent-dark); }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.category-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.92) brightness(0.82);
}
.category-card:hover img { transform: scale(1.08); filter: saturate(1) brightness(0.7); }
.category-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,24,29,0) 30%, rgba(22,24,29,0.85) 100%);
}
.category-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  z-index: 2;
  color: var(--white);
}
.category-card-body span.count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.category-card-body h3 { font-size: 1.5rem; margin: 4px 0 4px; }
.category-card-body p { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--paper-dim);
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
}
.product-badge.sale { background: var(--navy); }
.product-quick-add {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.product-card:hover .product-quick-add { opacity: 1; transform: translateY(0); }
.product-quick-add:hover { background: var(--ink); color: var(--white); }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); }
.product-name { font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.product-sub { font-size: 0.82rem; color: var(--ink-soft); }
.product-price-row { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.price { font-weight: 800; font-size: 1.05rem; }
.price-strike { text-decoration: line-through; color: #9c988e; font-size: 0.86rem; }
.price-save { font-size: 0.72rem; color: var(--success); font-weight: 700; }

/* ---------- Embroidery band ---------- */
.embroidery-band {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.embroidery-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 100% at 100% 0%, rgba(232,98,44,0.28), transparent 60%);
}
.embroidery-band-copy { position: relative; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.embroidery-band-copy h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 16px; }
.embroidery-band-copy p { color: rgba(255,255,255,0.72); margin-bottom: 26px; max-width: 440px; }
.embroidery-band-media { position: relative; }
.embroidery-band-media img { width: 100%; height: 100%; object-fit: cover; }
.embroidery-feature-list { display: grid; gap: 12px; margin-bottom: 30px; }
.embroidery-feature-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.embroidery-feature-list svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Live embroidery preview widget ---------- */
.embroidery-preview {
  background: var(--paper);
  border-radius: 16px;
  padding: 22px;
  color: var(--ink);
}
.embroidery-preview-canvas {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #efe9dd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.embroidery-preview-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embroidery-preview-text {
  position: relative;
  z-index: 2;
  font-family: "Noto Serif JP", var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  padding: 10px 18px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
  max-width: 90%;
  text-align: center;
  word-break: break-word;
}
.embroidery-controls { display: grid; gap: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input[type="text"],
.field select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.92rem;
  color: var(--ink);
}
.field input[type="text"]:focus,
.field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.thread-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.thread-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.thread-swatch.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }

/* ---------- Community / trust ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip div strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--ink); }
.stat-strip div span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 0.88rem; max-width: 260px; color: rgba(255,255,255,0.55); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; font-size: 0.8rem; color: rgba(255,255,255,0.42);
  flex-wrap: wrap; gap: 12px;
}
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icons span {
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* ---------- Cart drawer ---------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(17, 18, 22, 0.5);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 { font-size: 1.3rem; }
.cart-drawer-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 1.1rem; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { margin: auto; text-align: center; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cart-empty svg { color: var(--line); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: flex-start; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--paper-dim); }
.cart-item-name { font-weight: 700; font-size: 0.9rem; }
.cart-item-meta { font-size: 0.76rem; color: var(--ink-soft); margin-top: 2px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item-price { font-weight: 700; font-size: 0.88rem; }
.cart-item-remove { background: none; border: none; font-size: 1.2rem; color: var(--ink-soft); line-height: 1; padding: 4px; }
.cart-item-remove:hover { color: var(--accent); }
.qty-stepper {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty-stepper button { width: 30px; height: 30px; background: none; border: none; font-size: 1rem; }
.qty-stepper button:hover { background: var(--paper-dim); }
.qty-stepper span { min-width: 26px; text-align: center; font-weight: 700; font-size: 0.86rem; }
.qty-stepper-sm button { width: 24px; height: 24px; font-size: 0.85rem; }
.cart-drawer-footer { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.cart-drawer-footer .cart-total-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-weight: 700; }
.cart-drawer-footer .cart-note { font-size: 0.76rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* ---------- Toast ---------- */
.toast-holder { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--ink); color: var(--white);
  padding: 12px 20px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw; text-align: center;
}
.toast.is-shown { opacity: 1; transform: translateY(0); }

/* ---------- Page header (shop/product/embroidery) ---------- */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 40px;
}
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--white); }
.page-banner h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.shop-filters { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 28px; }
.filter-group h4 { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.filter-option {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 9px 0; font-size: 0.9rem; color: var(--ink-soft);
  background: none; border: none;
}
.filter-option:hover { color: var(--ink); }
.filter-option.is-active { color: var(--accent-dark); font-weight: 700; }
.filter-option span.n { font-size: 0.76rem; color: #a29c8f; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.shop-toolbar .result-count { font-size: 0.86rem; color: var(--ink-soft); }
.shop-toolbar select {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-size: 0.86rem;
}
.filter-toggle-mobile { display: none; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--paper-dim); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumbs button {
  width: 74px; height: 74px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; padding: 0; background: var(--paper-dim);
}
.gallery-thumbs button.is-active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .product-cat { margin-bottom: 8px; }
.pd-info h1 { font-family: var(--font-body); font-weight: 800; font-size: 1.7rem; margin-bottom: 6px; }
.pd-info .pd-sub { color: var(--ink-soft); margin-bottom: 18px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.pd-price-row .price { font-size: 1.9rem; }
.pd-desc { color: var(--ink-soft); margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }

.option-block { margin-bottom: 20px; }
.option-block label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.option-block select, .option-block input[type="text"] {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 0.95rem;
}
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pill {
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-size: 0.85rem; font-weight: 600;
}
.option-pill.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.pd-purchase-row { display: flex; align-items: center; gap: 14px; margin: 26px 0; }
.pd-total-line { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--paper-dim); border-radius: 12px; margin-bottom: 18px; }
.pd-total-line strong { font-size: 1.3rem; }
.pd-trust { display: grid; gap: 10px; margin-top: 22px; }
.pd-trust li { display: flex; gap: 10px; align-items: center; font-size: 0.86rem; color: var(--ink-soft); }
.pd-trust svg { color: var(--accent); flex-shrink: 0; }

.tabs { margin-top: 20px; }
.tab-list { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab-btn { padding: 12px 4px; margin-right: 24px; background: none; border: none; font-weight: 700; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.tab-btn.is-active { color: var(--ink); border-color: var(--accent); }
.tab-panel { display: none; color: var(--ink-soft); }
.tab-panel.is-active { display: block; }
.size-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.size-table th, .size-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.size-table th { color: var(--ink-soft); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; }

.related-grid { padding: 20px 0 90px; }

/* ---------- Embroidery hero video ---------- */
.embroidery-hero-video { background: var(--ink); }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.15) 0%, rgba(22, 24, 29, 0.55) 60%, rgba(22, 24, 29, 0.92) 100%);
}
.video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 44px;
  color: var(--white);
}
.video-caption h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); margin: 10px 0 12px; }
.video-caption p { max-width: 480px; color: rgba(255, 255, 255, 0.78); }

/* ---------- Embroidery gallery page ---------- */
.gallery-masonry {
  columns: 4 220px;
  column-gap: 16px;
}
.gallery-masonry img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  break-inside: avoid;
  box-shadow: var(--shadow-sm);
}

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { padding: 26px 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.process-step .num { font-family: var(--font-display); font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.process-step h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Misc pages ---------- */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-tint); color: var(--accent-dark); font-size: 0.78rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- Contact page ---------- */
.contact-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 84px 0 70px;
  overflow: hidden;
  text-align: center;
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(232, 98, 44, 0.3), transparent 65%);
}
.contact-hero .wrap { position: relative; }
.contact-hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  margin: 18px 0 16px;
}
.contact-hero-title span { color: var(--accent); }
.contact-hero-lead {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.floating-kanji {
  position: absolute;
  font-family: var(--font-display);
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
  animation: kanji-float 10s ease-in-out infinite;
}
.fk1 { top: 8%; left: 6%; animation-delay: 0s; }
.fk2 { top: 55%; left: 12%; font-size: 6rem; animation-delay: 1.5s; }
.fk3 { top: 12%; right: 8%; font-size: 7rem; animation-delay: 0.8s; }
.fk4 { bottom: 8%; right: 14%; font-size: 5.5rem; animation-delay: 2.2s; }
@keyframes kanji-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(-4deg); }
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.contact-card-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.contact-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; margin-bottom: 4px; }
.contact-card p { font-weight: 700; color: var(--accent-dark); font-size: 0.92rem; }
.contact-card-sub { display: block; font-size: 0.76rem; color: var(--ink-soft); margin-top: 6px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 16px;
}
.contact-form-title { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 2px; }

/* Punch wiggle for cards / buttons on hover */
@keyframes punch-wiggle {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.04) rotate(-1.5deg); }
  60% { transform: scale(1.02) rotate(1.5deg); }
  100% { transform: scale(1) rotate(0); }
}
.punch-wiggle { animation: punch-wiggle 0.32s ease; }

/* ---------- Karate cursor ---------- */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select {
  cursor: none;
}
.karate-cursor { position: fixed; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 9999; }
.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.karate-cursor.is-hover .cursor-ring { width: 54px; height: 54px; background: rgba(232, 98, 44, 0.14); }
.karate-cursor.is-down .cursor-ring { width: 22px; height: 22px; border-color: var(--accent-dark); }

/* ---------- Impact burst (on click) ---------- */
.impact-burst {
  position: fixed;
  z-index: 9998;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.impact-ring {
  position: absolute;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: impact-ring-grow 0.45s ease-out forwards;
}
@keyframes impact-ring-grow {
  0% { width: 10px; height: 10px; opacity: 0.9; }
  100% { width: 70px; height: 70px; opacity: 0; }
}
.impact-line {
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: center 30px;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg));
  animation: impact-line-shoot 0.4s ease-out forwards;
}
@keyframes impact-line-shoot {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-26px); }
}

/* ---------- Kiai flash (on form submit) ---------- */
.kiai-flash {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  z-index: 9999;
  pointer-events: none;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
  animation: kiai-pop 0.85s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes kiai-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-6deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(2deg); }
  40% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .embroidery-band { grid-template-columns: 1fr; }
  .embroidery-band-media { min-height: 260px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { columns: 3 180px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; padding: 50px 0 60px; }
  .hero-visual { order: -1; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; display: none; }
  .shop-filters.is-open { display: flex; }
  .filter-toggle-mobile { display: inline-flex; }
  .split-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .brand { font-size: 1.15rem; gap: 6px; }
  .brand .brand-mark { width: 32px; height: 32px; font-size: 0.95rem; }
  .brand small { display: none; }
  .header-actions { gap: 6px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2 140px; }
  .section { padding: 60px 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
  .floating-kanji { font-size: 3.5rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-kanji { animation: none; }
  .punch-wiggle { animation: none; }
}
