/* Takara — Global Treasure Marketplace */
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #1a1a25;
  --surface3: #222230;
  --border: #2a2a3a;
  --border-light: #353548;
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --text-muted: #5a5a70;
  --accent: #f0c040;
  --accent2: #e0a020;
  --green: #34c770;
  --green-bg: rgba(52, 199, 112, 0.1);
  --red: #f06060;
  --blue: #4a9eff;
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Promo Bar ── */
.promo-bar {
  background: var(--accent); color: var(--bg); text-align: center;
  font-size: 13px; font-weight: 600; padding: 8px 16px;
  letter-spacing: 0.3px;
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: 3px;
  color: var(--accent); text-decoration: none;
}
.logo-sub { font-size: 13px; margin-left: 5px; opacity: 0.5; font-weight: 400; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero { padding: 72px 20px 56px; text-align: center; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 16px; font-weight: 600; }
.hero h1 {
  font-size: 44px; font-weight: 800; line-height: 1.12;
  background: linear-gradient(135deg, var(--accent) 20%, #fff 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin-top: 16px; font-size: 17px; color: var(--text-dim); max-width: 480px; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-outline { display: inline-block; padding: 14px 32px; border: 2px solid var(--border); color: var(--text); border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: all 0.15s; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-proof { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; font-size: 14px; color: var(--text-dim); }
.hero-proof strong { color: var(--text); }
.proof-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* ── Trust Strip ── */
.trust-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; }
.trust-strip-inner { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.ts-item { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.ts-icon { font-size: 14px; }

.hero-stats { display: flex; justify-content: center; gap: 40px; margin: 32px 0; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block; padding: 13px 32px;
  background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 15px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all 0.15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(240,192,64,0.25); color: var(--bg); }
.btn-full { width: 100%; text-align: center; font-size: 16px; padding: 15px; }
.btn-sm {
  padding: 8px 16px; background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
}
.btn-sm:hover { background: var(--surface3); }

/* ── Categories ── */
.categories { padding: 50px 0; }
.categories h2, .featured h2, .how-it-works h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.section-header h2 { margin-bottom: 0; }
.see-all { font-size: 14px; color: var(--text-dim); }
.see-all:hover { color: var(--accent); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; padding: 20px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.2s, transform 0.2s; text-decoration: none;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-icon { font-size: 28px; margin-bottom: 8px; }
.cat-name { font-size: 15px; font-weight: 600; color: var(--text); }
.cat-desc { font-size: 12px; color: var(--text-dim); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-count { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ── Product Grid ── */
.featured { padding: 50px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s; text-decoration: none; display: block;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.product-img { height: 200px; overflow: hidden; background: var(--surface2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
}
.product-emoji { font-size: 48px; opacity: 0.7; }

.product-img { position: relative; }

.product-info { padding: 14px 16px 16px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.product-origin { font-size: 12px; color: var(--text-dim); }
.product-condition { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.tag-New { background: rgba(52,199,112,0.15); color: var(--green); }
.tag-Like\ New { background: rgba(74,158,255,0.15); color: var(--blue); }
.tag-Good { background: rgba(240,192,64,0.15); color: var(--accent); }
.tag-Acceptable { background: rgba(136,136,160,0.15); color: var(--text-dim); }

.product-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.3; }
.product-subtitle { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.product-rating { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.stars { color: var(--accent); }
.review-count { color: var(--text-muted); }
.sold-count { margin-left: auto; color: var(--text-muted); font-size: 11px; }
.img-disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 8px; font-style: italic; }

.product-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 18px; font-weight: 700; color: var(--text); }

/* ── How It Works ── */
.how-it-works { padding: 60px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  text-align: center; padding: 28px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  width: 44px; height: 44px; line-height: 44px;
  border-radius: 50%; background: var(--accent); color: var(--bg);
  font-weight: 800; font-size: 18px; display: inline-block; margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ── Guarantees ── */
.guarantees { padding: 40px 0 60px; }
.guarantee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guarantee {
  text-align: center; padding: 24px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.guarantee-icon { font-size: 28px; margin-bottom: 10px; }
.guarantee h4 { font-size: 14px; margin-bottom: 6px; }
.guarantee p { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ── Page / List ── */
.page { padding: 28px 0 60px; }
.page-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.page-header h1 { font-size: 24px; }
.result-count { font-size: 14px; color: var(--text-dim); }

.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.search-form { display: flex; gap: 8px; }
.search-input {
  padding: 8px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px; width: 220px;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.sort-links { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.sort-links span { color: var(--text-dim); }
.sort-links a { color: var(--text-dim); padding: 4px 8px; border-radius: 4px; }
.sort-links a.active { color: var(--accent); background: rgba(240,192,64,0.1); font-weight: 600; }
.sort-links a:hover { color: var(--text); }

.empty { text-align: center; padding: 60px 0; color: var(--text-dim); }

.back-link { display: inline-block; margin-bottom: 20px; font-size: 13px; color: var(--text-dim); }
.back-link:hover { color: var(--text); }

/* ── Detail Page ── */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.detail-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.detail-img img { width: 100%; height: auto; display: block; min-height: 300px; object-fit: cover; }
.detail-img-placeholder {
  height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.detail-emoji { font-size: 80px; opacity: 0.6; }

.detail-breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.detail-title { font-size: 24px; line-height: 1.3; margin-bottom: 4px; }
.detail-subtitle { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }

.detail-rating { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.detail-origin { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.detail-condition { padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }

.price-box {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 16px; padding: 16px 0;
}
.price-now { font-size: 32px; font-weight: 700; color: var(--text); }
.price-shipping { font-size: 13px; color: var(--text-dim); margin-left: 8px; }

.detail-guarantees {
  display: flex; flex-direction: column; gap: 6px;
  margin: 16px 0; padding: 14px; background: var(--surface); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-dim);
}
.dg-item { display: flex; align-items: center; gap: 8px; }

.detail-section { margin-top: 20px; }
.detail-section h3 { font-size: 15px; margin-bottom: 8px; color: var(--text); }
.detail-section p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.detail-link { font-size: 13px; color: var(--accent); margin-top: 8px; display: inline-block; }

.shipping-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.shipping-table td { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.shipping-table td:last-child { text-align: right; }
.shipping-table td strong { color: var(--text); }

.mobile-hide { }
.desktop-hide { display: none; }

/* ── Prose (About, Shipping, Returns) ── */
.prose h1 { font-size: 28px; margin-bottom: 24px; }
.prose h2 { font-size: 20px; margin: 28px 0 12px; }
.prose p, .prose li { font-size: 15px; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

.info-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.info-table th { text-align: left; font-size: 13px; color: var(--text-dim); padding: 10px 12px; border-bottom: 2px solid var(--border); }
.info-table td { font-size: 14px; color: var(--text); padding: 10px 12px; border-bottom: 1px solid var(--border); }

/* ── Buy Button ── */
.btn-buy { font-size: 17px; padding: 16px; margin-bottom: 12px; }

/* ── Sticky Mobile Buy Bar ── */
.sticky-buy {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); padding: 12px 16px;
}
.sticky-buy-inner { display: flex; align-items: center; justify-content: space-between; max-width: 600px; margin: 0 auto; }
.sticky-now { font-size: 20px; font-weight: 700; color: var(--text); }
.btn-sticky { padding: 12px 32px; font-size: 15px; }

/* ── Footer ── */
.footer { padding: 48px 0 24px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { font-size: 18px; font-weight: 800; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.footer-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .promo-bar { font-size: 11px; padding: 6px 12px; }
  .hero h1 { font-size: 28px; }
  .hero-eyebrow { font-size: 11px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-proof { flex-direction: column; gap: 4px; }
  .proof-dot { display: none; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 22px; }
  .trust-strip-inner { flex-direction: column; align-items: center; gap: 6px; }
  .sticky-buy { display: block; }
  .detail-sidebar .btn-buy { display: none; }
  .steps { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-img-placeholder { height: 260px; }
  .mobile-hide { display: none; }
  .desktop-hide { display: block; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
  .sort-links { flex-wrap: wrap; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .product-img-placeholder { height: 130px; }
  .product-emoji { font-size: 36px; }
  .product-info { padding: 10px 12px 12px; }
  .product-title { font-size: 13px; }
  .product-price { font-size: 16px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
