:root {
  --bg: #121417;
  --bg-elevated: #1b1e23;
  --bg-card: #1e2228;
  --border: #2b2f36;
  --text: #e8eaed;
  --text-muted: #9aa0a8;
  --accent: #ff7a2f;
  --accent-hover: #ff8f50;
  --green: #3ecf6e;
  --header-h: 108px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.demo-badge {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--accent); color: #111; text-align: center;
  font-size: 12px; padding: 4px 8px; font-weight: 700; letter-spacing: .5px;
}

header.site-header {
  margin-top: 22px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 22px; z-index: 50;
}
.header-top {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.logo { font-size: 22px; font-weight: 800; white-space: nowrap; }
.logo .eco { color: var(--green); }
.logo .tto { color: var(--accent); }
.logo-sub { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; }
.search-box { flex: 1; min-width: 180px; display: flex; }
.search-box input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px 0 0 6px; padding: 10px 14px; color: var(--text); font-size: 14px;
}
.search-box button {
  background: var(--accent); border: none; color: #111; padding: 0 18px;
  border-radius: 0 6px 6px 0; font-weight: 700; cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link { position: relative; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--accent); color: #111; font-size: 11px; font-weight: 800;
  border-radius: 999px; min-width: 18px; height: 18px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 5px;
}
nav.main-nav {
  max-width: 1200px; margin: 0 auto; padding: 0 20px 12px;
  display: flex; gap: 22px; font-size: 14px; color: var(--text-muted); overflow-x: auto;
}
nav.main-nav a { padding: 6px 2px; white-space: nowrap; }
nav.main-nav a.active, nav.main-nav a:hover { color: var(--accent); border-bottom: 2px solid var(--accent); }

.hero {
  background: linear-gradient(135deg, #1a1d22 0%, #262016 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px;
}
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero-inner h1 { font-size: 26px; margin: 0 0 8px; }
.hero-inner p { color: var(--text-muted); margin: 0; font-size: 14px; }

.section { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.section h2 { font-size: 18px; margin: 0 0 16px; border-left: 4px solid var(--accent); padding-left: 10px; }

.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar button {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; cursor: pointer;
}
.filter-bar button.active { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0e1013; }
.product-info { padding: 10px 12px; }
.product-title {
  font-size: 13px; line-height: 1.4; margin: 0 0 8px; height: 36px; overflow: hidden;
}
.product-price { font-size: 16px; font-weight: 800; color: var(--accent); }
.product-tag { font-size: 11px; color: var(--green); margin-top: 4px; }
.no-results {
  grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: #9aa0a8; font-size: 14px;
}

footer.site-footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 20px;
  background: var(--bg-elevated); color: var(--text-muted); font-size: 13px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-methods span {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; font-size: 12px;
}
.footer-copy { width: 100%; text-align: center; margin-top: 18px; font-size: 11px; color: #555c66; }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); display: none;
  align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px;
  max-width: 760px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--text-muted); font-size: 22px; cursor: pointer;
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.modal-grid img { border-radius: 8px; }
.modal-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.modal-price { font-size: 24px; color: var(--accent); font-weight: 800; margin-bottom: 16px; }
.modal-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.btn-primary {
  background: var(--accent); color: #111; border: none; padding: 13px 22px;
  border-radius: 8px; font-weight: 800; font-size: 15px; cursor: pointer; width: 100%;
}
.btn-primary:hover { background: var(--accent-hover); }
@media (max-width: 600px) {
  .modal-grid { grid-template-columns: 1fr; }
}

/* cart page */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.cart-item-info { display: flex; gap: 12px; align-items: center; }
.cart-item-info img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.qty-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); width: 26px; height: 26px; border-radius: 4px; cursor: pointer; }
.remove-btn { color: var(--text-muted); font-size: 12px; cursor: pointer; background: none; border: none; text-decoration: underline; }
.cart-summary { max-width: 320px; margin-left: auto; margin-top: 20px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-muted); }
.cart-summary-row.total { color: var(--text); font-weight: 800; font-size: 17px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--text-muted); }
