/* ================================================
   SORA CardShop B2B
   Design: Apple · Linear · Arc — minimal, sharp
   ================================================ */

:root {
  /* Core palette — black dominant */
  --ink:         #111827;
  --ink-2:       #1a1a1a;
  --body:        #111827;
  --muted:       #737373;
  --dim:         #a3a3a3;

  /* Accent — gold */
  --accent:      #d4a017;
  --accent-dk:   #b8860b;
  --accent-lt:   #f0c040;
  --accent-bg:   rgba(212,160,23,0.06);
  --accent-glow: rgba(212,160,23,0.12);

  /* Brand gold */
  --gold:        #d4a017;
  --gold-dk:     #b8860b;
  --gold-bg:     rgba(212,160,23,0.06);
  --gold-glow:   rgba(212,160,23,0.12);

  /* Surfaces — pure white */
  --bg:          #ffffff;
  --surface:     #ffffff;
  --surface-2:   #fafafa;
  --surface-3:   #f4f4f4;

  /* Borders */
  --border:      #e5e5e5;
  --border-2:    #d4d4d4;

  /* Feedback */
  --success:     #16a34a;
  --success-bg:  rgba(22,163,74,0.06);
  --error:       #dc2626;
  --error-bg:    rgba(220,38,38,0.06);

  /* Backward-compat */
  --navy:        #111827;
  --navy-light:  #1a1a1a;
  --navy-2:      #1a1a1a;
  --navy-3:      #333333;
  --blue:        #111827;
  --blue-light:  #404040;
  --blue-hover:  #1a1a1a;
  --blue-glow:   rgba(0,0,0,0.06);
  --text:        #111827;
  --text-muted:  #595959;
  --text-dim:    #a3a3a3;

  /* Radii — minimal */
  --radius:      3px;
  --radius-lg:   4px;
  --radius-sm:   2px;
  --radius-xl:   6px;

  --tab-h: 56px;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv11';
  background: var(--bg);
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(212,160,23,0.22); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 0; }

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

/* ================================================
   SITE HEADER  —  Apple.com thin style
   ================================================ */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: rgba(0,0,0,0.12);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 44px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
  margin-right: 10px;
}
.header-logo img { display: block; }
.header-logo span { color: var(--ink); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-link {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 400;
  color: #555;
  transition: color 0.12s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after { transform: scaleX(1); }

.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
  border-radius: var(--radius);
}
.nav-cart:hover { opacity: 0.88; color: #fff; }

.cart-badge {
  background: white;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-login-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  border: 1px solid var(--border-2);
  background: transparent;
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
  white-space: nowrap;
  border-radius: var(--radius);
}
.nav-login-btn:hover { border-color: var(--ink); color: var(--ink); }

.btn-register {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.01em;
}
.btn-register:hover { opacity: 0.88; }

/* ================================================
   HAMBURGER
   ================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 0;
  transition: all 0.2s;
}

/* ================================================
   FLASH MESSAGES
   ================================================ */
.flash-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 44px 0;
}
.flash {
  padding: 11px 14px;
  border-radius: 0;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
}
.flash.success {
  background: var(--success-bg);
  border-color: rgba(22,163,74,0.2);
  color: #15803d;
}
.flash.error {
  background: var(--error-bg);
  border-color: rgba(220,38,38,0.2);
  color: #b91c1c;
}

/* ================================================
   AUTH SPLIT LAYOUT
   ================================================ */
.auth-split {
  display: flex;
  min-height: calc(100vh - 48px);
}

.auth-left {
  background: #000000;
  width: 420px;
  flex-shrink: 0;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-right {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 52px;
}

.auth-form-box {
  width: 100%;
  max-width: 400px;
}

.auth-brand-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.auth-brand-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-panel-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 0;
}

.auth-panel-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.auth-panel-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.8;
  margin-bottom: 32px;
}

.auth-trust-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.auth-trust-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 0;
}

.auth-panel-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  line-height: 1.8;
}

.auth-form-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  line-height: 1.1;
}
.auth-form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ================================================
   PAGE WRAPPER
   ================================================ */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 44px 56px;
}

.page-catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 44px calc(var(--tab-h) + 24px);
}

.page-header {
  margin-bottom: 36px;
  padding-left: 14px;
  border-left: 2px solid var(--ink);
}

.page-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.page-subtitle {
  font-size: 13px;
  color: var(--dim);
  margin-top: 3px;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  background: #000000;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 44px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 35% at 50% 0%, rgba(255,255,255,0.05), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(212,160,23,0.07), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 40px;
}
.hero-badge::before,
.hero-badge::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(212,160,23,0.45);
}

.hero-title {
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.32);
  max-width: 460px;
  margin: 0 auto 52px;
  line-height: 1.95;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #fff;
  color: #0a0a0a;
  padding: 14px 32px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
  letter-spacing: -0.01em;
}
.btn-hero-primary:hover { opacity: 0.84; color: #0a0a0a; }

.btn-hero-secondary {
  background: transparent;
  color: rgba(255,255,255,0.48);
  padding: 14px 32px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  display: inline-block;
  transition: all 0.15s;
}
.btn-hero-secondary:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.78);
}

/* legacy */
.hero-eyebrow { font-size: 11px; font-weight: 400; letter-spacing: 0.16em; color: rgba(255,255,255,0.28); text-transform: uppercase; margin-bottom: 16px; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.35); max-width: 500px; margin: 0 auto 36px; line-height: 1.8; }
.gradient-text { color: #fff; }

/* ================================================
   STATS
   ================================================ */
.stats-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 44px;
  text-align: center;
}

.stats-grid > div {
  padding: 52px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.stats-grid > div:hover { background: var(--surface-2); }
.stats-grid > div:hover .stat-number { color: var(--gold-dk); }
.stat-number { transition: color 0.2s; }
.stats-grid > div:last-child { border-right: none; }
.stats-grid > div:first-child { padding-left: 0; }
.stats-grid > div:last-child  { padding-right: 0; }

.stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ================================================
   FEATURES
   ================================================ */
.features-section {
  padding: 96px 44px;
  max-width: 1280px;
  margin: 0 auto;
}

.features-section .section-label { margin-bottom: 12px; }
.features-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.05em;
  margin-bottom: 56px;
  line-height: 1.05;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.feature-card {
  background: #fff;
  padding: 40px 36px;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.feature-card:hover { background: var(--surface-2); }
.feature-card::after { display: none; }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon i { width: 18px; height: 18px; color: var(--ink); transition: color 0.2s; }
.feature-card:hover .feature-icon i { color: var(--gold); }

.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 9px;
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.feature-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* ================================================
   PREVIEW GRID  (landing)
   ================================================ */
.preview-section {
  padding: 80px 44px;
  max-width: 1280px;
  margin: 0 auto;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 32px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.preview-card {
  background: #fff;
  overflow: hidden;
  transition: opacity 0.15s;
}
.preview-card:hover { opacity: 0.88; }

.preview-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface-2);
}
.preview-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s;
}
.preview-card:hover .preview-img img { transform: scale(1.03); }

.preview-body { padding: 12px 14px 16px; }

.preview-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  letter-spacing: -0.01em;
}

.preview-price-lock {
  font-size: 11px;
  color: var(--dim);
  margin-top: 5px;
}

/* ================================================
   CATALOG — CURRENCY BAR
   ================================================ */
.currency-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 44px;
}
.currency-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.currency-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.currency-select {
  padding: 5px 28px 5px 9px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}
.currency-select:focus { border-color: var(--ink); }
.currency-rate-display { font-size: 12px; color: var(--dim); }

/* ================================================
   CATALOG — SIDEBAR LAYOUT
   ================================================ */
.catalog-layout { display: flex; align-items: flex-start; }

.catalog-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 48px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px 14px;
  border-right: 1px solid var(--border);
  background: #fff;
  scrollbar-width: thin;
}

.catalog-main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 56px;
}

.sidebar-search { position: relative; margin-bottom: 24px; }
.sidebar-search input[type="text"] {
  width: 100%;
  padding: 8px 32px 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border-2);
  border-radius: 0;
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-appearance: none;
}
.sidebar-search input[type="text"]:focus { border-color: var(--ink); }
.sidebar-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--dim);
  padding: 0;
  line-height: 1;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  padding: 0 4px;
}
.sidebar-categories { display: flex; flex-direction: column; gap: 0; }
.sidebar-cat-link {
  display: block;
  padding: 7px 10px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}
.sidebar-cat-link:hover { background: var(--surface-2); color: var(--ink); }
.sidebar-cat-link.active {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  border-left: 2px solid var(--gold);
  padding-left: 8px;
}

/* ================================================
   CATALOG — PRODUCT GRID
   ================================================ */
.category-section { margin-bottom: 44px; }

.category-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  flex-shrink: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.product-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: none;
  transition: background 0.15s;
}
.product-card:hover { background: var(--surface-2); }

.product-img-wrap {
  aspect-ratio: 4/5;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 11px;
}

.oos-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--ink);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
}

.product-body {
  padding: 10px 11px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-code-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 0;
  letter-spacing: 0.04em;
  font-family: 'SFMono-Regular', 'Fira Code', monospace;
  width: fit-content;
}

.product-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
  min-height: calc(1.4em * 2);
}

.price-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.price-jpy {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.price-converted {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}
.price-locked {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  background: var(--surface-2);
  border: 1px dashed var(--border-2);
  border-radius: 0;
  padding: 6px 8px;
  text-align: center;
}

.stock-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 0;
  width: fit-content;
  letter-spacing: 0.02em;
}
.stock-tag.in-stock {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(22,163,74,0.18);
}
.stock-tag.oos {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid rgba(220,38,38,0.18);
}

.moq-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 0;
  width: fit-content;
}

.cart-form { display: flex; gap: 6px; margin-top: auto; }

.qty-input {
  width: 54px;
  padding: 7px 6px;
  border: 1px solid var(--border-2);
  border-radius: 0;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--surface-2);
  outline: none;
  text-align: center;
  -webkit-appearance: none;
}
.qty-input:focus { border-color: var(--ink); }

/* ================================================
   MOBILE BARS & TABS
   ================================================ */
.mobile-search-bar {
  display: none;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.mobile-price-updated {
  display: none;
  padding: 7px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.mobile-search-form { display: flex; gap: 6px; }
.mobile-search-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border-2);
  border-radius: 0;
  font-size: 14px;
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-appearance: none;
}
.mobile-search-input:focus { border-color: var(--ink); }
.mobile-search-btn {
  padding: 9px 16px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.search-result-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.search-result-bar a { color: var(--dim); font-size: 12px; text-decoration: underline; margin-left: auto; }

.catalog-tabs {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tab-h);
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tab-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  padding: 6px 4px;
  border-top: 2px solid transparent;
  letter-spacing: 0.01em;
}
.tab-link:hover { color: rgba(255,255,255,0.6); }
.tab-link.active { color: #fff; border-top-color: var(--gold); }

.mobile-category-tabs {
  display: none;
  overflow-x: auto;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-category-tabs::-webkit-scrollbar { display: none; }
.mobile-category-tabs a {
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.12s;
}
.mobile-category-tabs a.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ================================================
   BUTTONS  —  sharp edges
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Primary — gold accent */
.btn-accent {
  background: var(--gold);
  color: #fff;
}
.btn-accent:hover { background: var(--gold-dk); color: #fff; opacity: 1; }
.btn-accent:active { opacity: 0.85; }

/* Brand gold */
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-dk); color: #fff; }
.btn-gold:active { opacity: 0.9; }

/* Blue fill */
.btn-navy {
  background: var(--ink);
  color: #fff;
}
.btn-navy:hover { background: var(--ink-2); color: #fff; }

/* Ghost white — for dark bg */
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.36);
  color: rgba(255,255,255,0.88);
}

/* Ghost neutral */
.btn-ghost {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }

.btn-sm { padding: 6px 14px; font-size: 12px; }

.btn-danger {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(220,38,38,0.18);
}
.btn-danger:hover { background: rgba(220,38,38,0.1); }

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(22,163,74,0.18);
}
.btn-success:hover { background: rgba(22,163,74,0.1); }

/* ================================================
   FORMS  —  flat, radius 0
   ================================================ */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 40px;
  max-width: 520px;
}

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
label .req { color: var(--error); margin-left: 3px; }

.form-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin: 32px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* FLAT INPUTS — radius 0, clean black focus */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-2);
  border-radius: 0;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: none;
}
input::placeholder, textarea::placeholder { color: #c0c0c0; font-weight: 400; }
input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17,24,39,0.07);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.hint { font-size: 11px; color: var(--dim); margin-top: 5px; }

/* ================================================
   CART
   ================================================ */
.cart-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .cart-table-wrap { overflow-x: auto; }
  .cart-table { min-width: 620px; }
}
.cart-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cart-table th {
  background: var(--surface-2);
  color: var(--dim);
  padding: 9px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: middle;
}
.cart-table tr:last-child td { border-bottom: none; }

.cart-thumb { width: 44px; height: 55px; object-fit: contain; border-radius: 0; border: 1px solid var(--border); background: var(--surface-2); }
.cart-thumb-placeholder {
  width: 44px; height: 55px; background: var(--surface-2); border-radius: 0; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--dim);
}

.moq-warning { font-size: 11px; color: var(--error); margin-top: 4px; }

.cart-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 22px 26px;
  max-width: 400px;
  margin-left: auto;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-size: 15px; font-weight: 800; color: var(--ink); padding-top: 14px; }

/* ================================================
   ORDERS
   ================================================ */
.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 6px;
}
.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s;
}
.order-header:hover { background: var(--surface-2); }

.order-id { font-size: 13px; font-weight: 700; color: var(--ink); }

.order-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 0;
}
.status-pending  { background: var(--gold-bg); color: #854d0e; border: 1px solid rgba(212,160,23,0.25); }
.status-confirmed { background: var(--success-bg); color: var(--success); border: 1px solid rgba(22,163,74,0.18); }

.order-body { display: none; padding: 0 18px 14px; border-top: 1px solid var(--border); }
.order-body.open { display: block; }

.order-items-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
.order-items-table th {
  text-align: left; padding: 6px 9px; font-size: 10px; font-weight: 600;
  color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.order-items-table td { padding: 8px 9px; border-bottom: 1px solid var(--border); color: var(--muted); }
.order-items-table tr:last-child td { border-bottom: none; }
@media (max-width: 768px) {
  .order-body { overflow-x: auto; }
  .order-items-table { min-width: 480px; }
}

/* ================================================
   ADMIN
   ================================================ */
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.admin-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }

.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--error); color: white; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 99px; padding: 0 4px; margin-left: 6px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 14px;
}
.admin-table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 780px; }
.admin-table th {
  background: var(--surface-2); color: var(--dim); padding: 9px 13px;
  text-align: left; font-weight: 600; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td { padding: 9px 13px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,0,0,0.01); }

.admin-thumb { width: 40px; height: 50px; object-fit: contain; border-radius: 0; border: 1px solid var(--border); background: var(--surface-2); }
.admin-thumb-placeholder {
  width: 40px; height: 50px; border-radius: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--dim);
}

.admin-input {
  padding: 6px 9px;
  border: 1px solid var(--border-2);
  border-radius: 0;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.12s;
  -webkit-appearance: none;
}
.admin-input:focus { border-color: var(--ink); }
.w-price { width: 100px; }
.w-moq   { width: 70px; }
.w-notes { width: 160px; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 34px; height: 19px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--surface-3); border-radius: 99px; cursor: pointer;
  transition: background 0.2s; border: 1px solid var(--border-2);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 13px; height: 13px; left: 2px; top: 50%;
  transform: translateY(-50%);
  background: white; border-radius: 50%;
  transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--ink); border-color: var(--ink); }
.toggle input:checked + .toggle-slider::before { transform: translateX(15px) translateY(-50%); }

.settings-bar {
  background: #fff; border: 1px solid var(--border); border-radius: 0;
  padding: 14px 20px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.save-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 0; }

.user-card {
  background: #fff; border: 1px solid var(--border); border-radius: 0;
  padding: 14px 18px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.user-info { flex: 1; min-width: 200px; }
.user-company { font-size: 14px; font-weight: 700; color: var(--ink); }
.user-email { font-size: 12px; color: var(--dim); margin-top: 2px; }
.user-meta { font-size: 11px; color: var(--dim); margin-top: 4px; }

.status-badge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 0; }
.status-badge.pending  { background: var(--gold-bg); color: #854d0e; border: 1px solid rgba(212,160,23,0.25); }
.status-badge.approved { background: var(--success-bg); color: var(--success); border: 1px solid rgba(22,163,74,0.18); }
.status-badge.rejected { background: var(--error-bg); color: var(--error); border: 1px solid rgba(220,38,38,0.18); }
.user-actions { display: flex; gap: 8px; }

/* ================================================
   EMPTY / PENDING STATES
   ================================================ */
.empty-state { text-align: center; padding: 80px 20px; color: var(--dim); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.2; }
.empty-state p { font-size: 14px; line-height: 1.8; }

.pending-box {
  max-width: 440px; margin: 72px auto;
  background: #fff; border: 1px solid var(--border);
  border-radius: 0; padding: 52px; text-align: center;
}
.pending-icon {
  width: 48px; height: 48px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}

/* ================================================
   INSTAGRAM FEED
   ================================================ */
.instagram-section {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  overflow: hidden;
}

.instagram-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 44px 0;
}

.instagram-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.instagram-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.instagram-handle {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: block;
  text-decoration: none;
  transition: opacity 0.15s;
}
.instagram-handle:hover { opacity: 0.6; }

.instagram-follow-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
}
.instagram-follow-link:hover { color: var(--ink); border-color: var(--ink); }

/* SnapWidget iframe container */
.instagram-feed-wrap {
  overflow: hidden;
  line-height: 0;
}
.instagram-feed-wrap iframe {
  display: block;
  border: none;
  overflow: hidden;
}

/* Fallback grid — shown when widget ID not configured */
.instagram-fallback-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}

.instagram-fallback-item {
  aspect-ratio: 1;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: opacity 0.15s;
}
.instagram-fallback-item:hover { opacity: 0.7; }

.instagram-fallback-item svg {
  width: 24px;
  height: 24px;
  color: var(--border-2);
  opacity: 0.6;
}

.instagram-setup-note {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface-2);
  border: 1px dashed var(--border-2);
  color: var(--dim);
  font-size: 12px;
  line-height: 1.8;
}
.instagram-setup-note code {
  font-family: 'SFMono-Regular', monospace;
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 0;
  font-size: 11px;
  color: var(--ink);
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: #000000;
  color: rgba(255,255,255,0.38);
  padding: 64px 44px 40px;
  font-size: 13px;
  margin-top: 0;
}
footer span { color: var(--gold); }
footer a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.12s; }
footer a:hover { color: rgba(255,255,255,0.75); }

.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand { min-width: 220px; max-width: 280px; }
.footer-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-address {
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.28);
}
.footer-email {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  display: inline-block;
}
.footer-email:hover { color: rgba(255,255,255,0.72); }

.footer-links { display: flex; gap: 56px; }
.footer-col-title {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.12s;
}
.footer-col a:hover { color: rgba(255,255,255,0.72); }

.footer-social { }
.footer-social-icons { display: flex; gap: 6px; }
.footer-social-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.footer-social-icon:hover { background: rgba(255,255,255,0.1); }

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.18);
}

/* ================================================
   FAQ
   ================================================ */
.faq-cat-link {
  padding: 5px 13px; border-radius: 99px; font-size: 12px; font-weight: 500;
  color: var(--muted); background: #fff; border: 1px solid var(--border);
  text-decoration: none; transition: all 0.12s; white-space: nowrap;
}
.faq-cat-link:hover { background: var(--ink); color: white; border-color: var(--ink); }

.faq-section-title {
  font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.faq-item { border: 1px solid var(--border); border-radius: 0; margin-bottom: 4px; overflow: hidden; background: #fff; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border: none; background: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink); text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; transition: background 0.1s; line-height: 1.5;
  letter-spacing: -0.01em;
}
.faq-question:hover { background: var(--surface-2); }
.faq-question.open { border-bottom: 1px solid var(--border); }
.faq-arrow { font-size: 11px; color: var(--dim); transition: transform 0.2s; flex-shrink: 0; }
.faq-answer { display: none; padding: 16px 18px; font-size: 13px; color: var(--muted); line-height: 1.85; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 8px 0 12px 20px; padding: 0; }
.faq-answer li { margin-bottom: 6px; line-height: 1.7; }
.faq-answer strong { color: var(--ink); }

/* ================================================
   PRODUCT CARD LINK WRAPPER
   ================================================ */
.product-card-link { display: contents; text-decoration: none; color: inherit; }
.product-card-link .product-card { cursor: pointer; }

/* ================================================
   PREORDER
   ================================================ */
.preorder-badge {
  position: absolute; top: 0; left: 0;
  background: #d97706; color: white; font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 0; letter-spacing: .06em;
}
.preorder-section .category-label { color: #d97706; }
.preorder-card { border-color: rgba(245,158,11,0.25) !important; }

/* ================================================
   CART SIDEBAR
   ================================================ */
.cart-sidebar {
  position: fixed; top: 0; right: -400px;
  width: 400px; height: 100vh;
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0,0,0,0.06);
  z-index: 1000;
  display: flex; flex-direction: column;
  transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}
.cart-sidebar.open { right: 0; }
.cart-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em;
}
.cart-sidebar-close {
  background: none; border: none; font-size: 16px;
  cursor: pointer; color: var(--dim); padding: 4px; transition: color 0.1s; line-height: 1;
}
.cart-sidebar-close:hover { color: var(--ink); }
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-sidebar-footer { padding: 14px 20px; border-top: 1px solid var(--border); }
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.15); z-index: 999; }
.cart-overlay.open { display: block; }

/* ================================================
   HOW TO ORDER
   ================================================ */
.hto-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
  .stats-grid > div { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 16px; }
  .stats-grid > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .stats-grid > div:last-child { border-bottom: none; }
  .stats-grid > div:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .product-detail-wrap { max-width: 100% !important; padding: 0 !important; }
  .product-detail-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .catalog-sidebar { display: none; }
  .instagram-fallback-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Header mobile */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; height: 48px; }
  .header-logo img { height: 32px !important; }
  .header-logo span { font-size: 13px !important; }
  .hamburger { display: flex; }

  .nav-links {
    display: none !important;
    position: fixed;
    top: 48px; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column !important;
    padding: 4px 0;
    z-index: 999;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav-links.open { display: flex !important; }
  .nav-links .nav-link {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    font-weight: 400;
  }
  .nav-links .btn-accent { margin: 14px 20px 0; text-align: center; padding: 14px; }
  .nav-links .btn-gold { margin: 14px 20px 0; text-align: center; padding: 14px; }
  .nav-links .nav-login-btn { margin: 8px 20px 0; text-align: center; padding: 14px; font-size: 15px; color: var(--ink); border-color: var(--border-2); }
  .nav-links .nav-cart { margin: 8px 20px 0; justify-content: center; padding: 14px; font-size: 15px; border-radius: 0; }
}
@media (min-width: 769px) {
  .hamburger { display: none !important; }
}

/* Auth mobile */
@media (max-width: 768px) {
  .auth-split { flex-direction: column; min-height: auto; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 24px; justify-content: flex-start; }
  .auth-form-box { max-width: 100%; }
}

/* Catalog mobile */
@media (max-width: 768px) {
  .mobile-category-tabs { display: flex; }
  .catalog-sidebar { display: none !important; }
  .catalog-main { padding: 12px 12px calc(var(--tab-h) + 16px) !important; }
  .catalog-tabs { display: flex; }
  .mobile-search-bar { display: block; }
  .mobile-price-updated { display: block; }
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1px !important; }
  .flash-wrap { padding: 10px 16px 0; }
  .page { padding: 22px 20px 32px; }
  .page-catalog { padding: 16px 16px calc(var(--tab-h) + 16px); }
}
@media (min-width: 769px) {
  .mobile-category-tabs { display: none !important; }
  .mobile-price-updated { display: none !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Hero mobile */
@media (max-width: 768px) {
  .hero { padding: 80px 24px 64px; min-height: 80vh; }
  .hero-title { font-size: 44px !important; letter-spacing: -0.04em; }
  .hero-desc { font-size: 14px; margin-bottom: 40px; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; padding: 14px; }
}

/* Stats mobile */
@media (max-width: 768px) {
  .stat-number { font-size: 36px; }
}

/* Features mobile */
@media (max-width: 768px) {
  .features-section { padding: 56px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px 22px; }
}

/* Forms mobile */
@media (max-width: 768px) {
  .form-card { padding: 28px 20px; max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .cart-summary { max-width: 100%; }
  .settings-bar { flex-direction: column; align-items: flex-start; }
}

/* Product card body mobile */
@media (max-width: 640px) {
  .product-body { padding: 7px 8px 10px; gap: 4px; }
  .product-name { font-size: 11px; }
  .price-jpy { font-size: 13px; }
  .price-converted { font-size: 10px; }
}

/* Preview grid mobile */
@media (max-width: 640px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Page header mobile */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .page-header { padding: 0 4px; }
  .page-title { font-size: 17px; }
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="tel"], select, textarea {
    font-size: 16px !important;
  }
}

/* Product detail mobile */
@media (max-width: 768px) {
  .product-detail-img-wrap img { height: 240px !important; }
}

/* Cart sidebar mobile */
@media (max-width: 768px) {
  .cart-sidebar { width: 100% !important; right: -100% !important; }
  .cart-sidebar.open { right: 0 !important; }
}

/* FAQ mobile */
@media (max-width: 768px) {
  .faq-cat-link { font-size: 11px; padding: 4px 10px; }
  .faq-question { font-size: 13px; padding: 13px 15px; }
  .faq-answer { padding: 13px 15px; }
}

/* Footer mobile */
@media (max-width: 768px) {
  footer { padding: 40px 20px 28px; }
  .footer-top { gap: 32px; flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 28px; }
  .footer-brand { max-width: 100%; }
  .instagram-section { padding: 48px 0 0; }
  .instagram-section-inner { padding: 0 20px 0; }
  .instagram-fallback-grid { grid-template-columns: repeat(3, 1fr); }
}

/* HowToOrder mobile */
@media (max-width: 640px) {
  .hto-services-grid { grid-template-columns: 1fr; }
}

/* Related products mobile */
@media (max-width: 768px) {
  div[style*="grid-template-columns:repeat(6"] { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(6"] { grid-template-columns: repeat(2, 1fr) !important; }
  .product-grid { gap: 1px; }
  .instagram-fallback-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Inline 2-column grids (About+Contact on home, About page, Account page, etc.)
   collapse at the same breakpoint the header switches to mobile nav, so the
   content layout and header layout never disagree and overflow horizontally. */
@media (max-width: 768px) {
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 400px) {
  .hero-title { font-size: 36px !important; }
}

/* ================================================
   ANIMATIONS — minimal
   ================================================ */
.site-header {
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: rgba(0,0,0,0.12);
}

.hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4 {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-anim-1 { animation-delay: 0.05s; }
.hero-anim-2 { animation-delay: 0.14s; }
.hero-anim-3 { animation-delay: 0.26s; }
.hero-anim-4 { animation-delay: 0.38s; }
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.05s; }
.fade-up.d2 { transition-delay: 0.1s; }
.fade-up.d3 { transition-delay: 0.15s; }
.fade-up.d4 { transition-delay: 0.2s; }
.fade-up.d5 { transition-delay: 0.25s; }
.fade-up.d6 { transition-delay: 0.3s; }

.product-img-wrap img { transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }

@keyframes statPop {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.stat-number.animated {
  animation: statPop 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="url"],
input[type="date"], select, textarea {
  transition: border-color 0.15s ease;
}

.auth-form-box {
  animation: authIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.06s;
}
@keyframes authIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.product-card-link .product-card { cursor: pointer; }

/* ================================================
   POLISH PACK (2026-06)
   ================================================ */

/* Hero primary button — crisp hover */
.btn-hero-primary {
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover {
  opacity: 1;
  background: #f2f2f2;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 8px 32px rgba(255,255,255,0.08);
}

/* Tactile button press */
.btn:active, .btn-hero-primary:active, .btn-hero-secondary:active, .nav-cart:active {
  transform: translateY(1px);
}

/* Product card — name underline hint */
.product-card:hover .product-name { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* Preview cards — match product hover */
.preview-card { transition: background 0.15s; }
.preview-card:hover { opacity: 1; background: var(--surface-2); }

/* FAQ — gold open state */
.faq-question.open { box-shadow: inset 2px 0 0 var(--gold); }
.faq-item { transition: border-color 0.15s; }
.faq-item:hover { border-color: var(--border-2); }

/* Auth panel — faint gold glow on the dark side */
.auth-left {
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 30% 110%, rgba(212,160,23,0.08), transparent 70%);
  pointer-events: none;
}
.auth-left > * { position: relative; z-index: 1; }

/* Cart overlay — fade instead of pop */
.cart-overlay {
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* Tables — row hover slightly clearer */
.cart-table tr:hover td, .order-items-table tr:hover td { background: rgba(0,0,0,0.012); }

/* Keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 2px;
}

/* Header logo hover */
.header-logo { transition: opacity 0.15s; }
.header-logo:hover { opacity: 0.7; }

/* Footer social icons — gold border on hover */
.footer-social-icon { transition: background 0.15s, border-color 0.15s; }
.footer-social-icon:hover { border-color: rgba(212,160,23,0.4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up, .hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4 { opacity: 1 !important; transform: none !important; }
}
