:root {
  --ink: #1a1a1a;
  --ink-soft: #5c5652;
  --paper: #faf8f7;
  --card: #ffffff;
  --line: #e8e2e0;
  --accent: #8b1010;
  --accent-dark: #6c0000;
  --accent-ink: #ffffff;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.logo { display: flex; align-items: center; gap: 3px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; color: inherit; }
.logo img { height: 42px; width: auto; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; font-weight: 500; }
.nav-links > a { text-decoration: none; color: var(--ink-soft); }
.nav-links > a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  padding: 9px 18px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; font-size: 0.82rem; font-weight: 700;
}
.lang-toggle button {
  background: transparent; border: none; padding: 7px 12px; cursor: pointer;
  color: var(--ink-soft);
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none; border: none; font: inherit; color: var(--ink-soft);
  cursor: pointer; padding: 0; display: flex; align-items: center; gap: 4px;
}
.nav-dropdown-trigger:hover { color: var(--ink); }
.nav-dropdown-trigger::after { content: '▾'; font-size: 0.7em; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 14px); left: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1); padding: 8px; min-width: 190px; z-index: 30;
  max-height: 75vh; overflow-y: auto;
}
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none;
  color: var(--ink-soft); font-size: 0.9rem; font-weight: 500;
}
.nav-dropdown-menu a:hover { background: var(--paper); color: var(--ink); }
.nav-dropdown-menu .divider { border-top: 1px solid var(--line); margin: 6px 4px; }
.nav-dropdown-menu--grouped { min-width: 220px; }
.dropdown-group-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); padding: 8px 12px 2px;
}
.dropdown-group a { padding-left: 18px; }

.system-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  max-width: 1050px; margin: 0 auto 14px;
}
.system-tab {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 9px 20px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
}
.system-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.hero {
  padding: 80px 24px 64px;
  text-align: center;
}
.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: #f5dede; border-radius: 999px;
  padding: 6px 14px; margin-bottom: 20px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.hero p.lead {
  font-size: 1.1rem; color: var(--ink-soft); max-width: 560px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }

.page-head {
  padding: 56px 24px 8px; text-align: center;
}
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--ink-soft); margin: 0 auto; max-width: 560px; }

.placeholder-note {
  background: #fff8ec; border: 1px dashed #e0c48a; color: #8a6a1f;
  font-size: 0.85rem; border-radius: 10px; padding: 12px 16px;
  max-width: 640px; margin: 0 auto 8px;
}

section { padding: 56px 24px; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-head h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 900px; margin: 0 auto;
}
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: left;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.brand-strip {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  max-width: 800px; margin: 0 auto;
}
.brand-chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 10px 20px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
}

.brand-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  max-width: 1050px; margin: 0 auto 32px;
}
.brand-tab {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 9px 20px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
}
.brand-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px; max-width: 1050px; margin: 0 auto;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-media {
  aspect-ratio: 4/3; background: repeating-linear-gradient(45deg, #eee, #eee 10px, #e4e4e4 10px, #e4e4e4 20px);
  display: flex; align-items: center; justify-content: center;
  color: #9a9a94; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.card-tag { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
.card-title { font-weight: 700; font-size: 1rem; }
.card-desc { color: var(--ink-soft); font-size: 0.86rem; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card-price { font-weight: 800; font-size: 1.05rem; }
.card-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 8px 16px; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.card-btn.added { background: var(--ink); }

.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(20,16,15,0.6);
  z-index: 100; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border-radius: 20px; max-width: 920px; width: 100%;
  max-height: 88vh; overflow-y: auto; position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) { .modal { grid-template-columns: 1fr; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,0.9); border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.modal-gallery { background: #f1efed; }
.modal-main-img {
  aspect-ratio: 1/1; width: 100%; object-fit: cover; display: block;
}
.modal-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.modal-thumbs img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; flex-shrink: 0;
}
.modal-thumbs img.active { border-color: var(--accent); }
.modal-info { padding: 32px; display: flex; flex-direction: column; }
.modal-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 8px; }
.modal-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 12px; }
.modal-desc { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 20px; line-height: 1.6; }
.modal-meta { display: flex; gap: 16px; margin-bottom: 20px; font-size: 0.85rem; color: var(--ink-soft); }
.modal-price { font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; }
.modal-addcart {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 14px 26px; font-size: 1rem; font-weight: 700; cursor: pointer;
  margin-top: auto;
}
.modal-addcart.added { background: var(--ink); }

.cart-box {
  background: var(--card); border-radius: 20px; max-width: 480px; width: 100%;
  max-height: 88vh; overflow-y: auto; position: relative; padding: 32px;
}
.cart-box h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 20px; }
.cart-empty { color: var(--ink-soft); font-size: 0.92rem; padding: 20px 0; text-align: center; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-price { color: var(--ink-soft); font-size: 0.82rem; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 0.95rem; line-height: 1;
}
.cart-qty-num { min-width: 16px; text-align: center; font-size: 0.9rem; font-weight: 600; }
.cart-remove { background: none; border: none; color: var(--ink-soft); font-size: 0.78rem; cursor: pointer; text-decoration: underline; margin-left: 8px; }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ink);
  font-weight: 800; font-size: 1.1rem;
}

.custom-cta {
  max-width: 900px; margin: 0 auto; background: var(--ink); color: #fff;
  border-radius: 20px; padding: 44px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.custom-cta h2 { font-size: 1.5rem; margin: 0 0 8px; font-weight: 800; }
.custom-cta p { margin: 0; color: #c8c8c4; max-width: 420px; font-size: 0.94rem; }
.custom-cta .btn-primary { background: #fff; color: var(--ink); }

footer {
  border-top: 1px solid var(--line); padding: 32px 24px; text-align: center;
  color: var(--ink-soft); font-size: 0.85rem;
}
