/* Bonbba — Gen Z marketplace (Bboomm design language: ultra-minimal, monochrome) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800&display=swap');
:root {
  --bg: #ffffff;
  --ink: #111111;
  --gray: #666666;
  --gray-light: #999999;
  --hairline: #eeeeee;
  --bg-soft: #fafafa;
  --radius: 2px;
  --brand: #ff6b00;
  --brand-deep: #d45500;
  --brand-light: #fff4ec;
  --muted: #999999;
  --border: #eeeeee;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100vw; width: 100%; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-decoration: none; }

/* Micro-label */
.kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gray-light); margin-bottom: 16px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.logo img { height: 32px; width: auto; max-width: 120px; object-fit: contain; }
.search-bar { flex: 1; max-width: 400px; margin: 0 24px; }
.search-bar input { width: 100%; padding: 10px 20px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 14px; background: var(--bg-soft); }
.search-bar input:focus { outline: none; border-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-sell { background: var(--ink); color: #fff; padding: 10px 24px; border-radius: 999px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
.btn-sell:hover { background: #333; }
.cat-nav { display: flex; gap: 4px; padding: 0 32px; max-width: 1280px; margin: 0 auto; overflow-x: auto; }
.cat-nav button { background: none; border: none; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; padding: 14px 16px; cursor: pointer; color: var(--gray); white-space: nowrap; }
.cat-nav button:hover { color: var(--ink); }
.cat-nav button.active { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }

/* Hero */
.hero-new { max-width: 1280px; margin: 0 auto; padding: 100px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.hero-new h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 200; line-height: 1.03; letter-spacing: -0.035em; margin-bottom: 24px; }
.hero-new h1 em { font-style: normal; font-weight: 500; }
.hero-new p { font-size: 16px; color: var(--gray); max-width: 460px; margin-bottom: 32px; }
.btn-hero { display: inline-block; background: var(--ink); color: #fff; padding: 16px 36px; border-radius: var(--radius); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
.btn-hero:hover { background: #333; }
.hero-search { display: flex; gap: 8px; max-width: 480px; margin-bottom: 8px; }
.hero-search input { flex: 1; padding: 16px 24px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 16px; background: var(--bg-soft); }
.hero-search input:focus { outline: none; border-color: var(--ink); }
.hero-search button { padding: 16px 32px; background: var(--ink); color: #fff; border: none; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }

/* Listings */
.listings { padding: 40px 0 100px; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.5px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 28px; }
.product-card { cursor: pointer; }
.card-tag { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; padding: 2px 6px; vertical-align: 2px; }
.card-tag-sold { background: var(--ink); color: #fff; }
.product-img { width: 100%; aspect-ratio: 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 64px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-img img { transform: scale(1.045); }
.product-info { padding-top: 12px; }
.product-brand { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gray-light); margin-bottom: 4px; }
.product-info h3 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.product-meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.condition-tag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; }
.condition-tag.vintage { border: 1px solid var(--ink); padding: 2px 8px; }
.product-price-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--hairline); padding-top: 12px; }
.product-price { font-size: 15px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-social { font-size: 13px; margin-bottom: 16px; }
.footer-social a { color: var(--gray); }
.footer-social a:hover { color: var(--ink); }
.footer-grid h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gray-light); margin-bottom: 16px; }
.footer-grid a { display: block; font-size: 14px; color: var(--gray); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--ink); }
.copyright { font-size: 13px; color: var(--gray-light); border-top: 1px solid var(--hairline); padding-top: 24px; }

@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } .hero-new { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .search-bar { display: block; order: 3; flex-basis: 100%; max-width: none; margin: 12px 0 0; }
  .hero-new { padding: 48px 16px; gap: 0; }
  .hero-new h1 { font-size: 44px; }
  .hero-search { flex-direction: column; }
  .hero-search button { border-radius: 12px; }
  .item-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .main-nav { display: flex; gap: 16px; overflow-x: auto; padding: 8px 0; max-width: 100%; }
  .main-nav a { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* === Shared page styles (auth, sell, policy, item, messages, etc.) === */

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 14px; text-align: center; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #333; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Navigation */
.main-nav { display: flex; gap: 24px; overflow-x: auto; max-width: 100vw; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--gray); }
.main-nav a:hover { color: var(--ink); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--ink); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Auth page */
.auth-wrap { max-width: 440px; margin: 80px auto; padding: 0 24px; }
.auth-wrap h1 { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.auth-wrap .sub { color: var(--gray); margin-bottom: 32px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--hairline); margin-bottom: 32px; }
.auth-tabs button { flex: 1; padding: 12px; background: none; border: none; font-size: 14px; font-weight: 600; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.auth-error { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.auth-success { display: none; background: #111; border: 1px solid #111; color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }

/* Sell page */
.sell-hero { text-align: center; padding: 64px 24px 32px; }
.sell-hero h1 { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.sell-hero p { color: var(--gray); font-size: 17px; }
.sell-form-wrap { max-width: 640px; margin: 0 auto 24px; padding: 0 24px; }
.photo-drop { display: block; border: 2px dashed var(--hairline); border-radius: 12px; padding: 40px 24px; text-align: center; cursor: pointer; transition: border-color 0.2s; }
.photo-drop:hover { border-color: var(--ink); }
.photo-drop .big { font-size: 40px; margin-bottom: 8px; }
.photo-drop p { color: var(--gray); font-size: 14px; }
.photo-preview { display: none; max-width: 200px; border-radius: 8px; margin-top: 16px; }
.step-hint { font-size: 13px; color: var(--gray-light); margin-top: 6px; }
details.more { margin-bottom: 20px; border: 1px solid var(--hairline); border-radius: 8px; padding: 16px 20px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; }

/* Policy pages */
.policy-wrap { max-width: 720px; margin: 64px auto 80px; padding: 0 24px; }
.policy-wrap h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; }
.policy-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.policy-section h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.policy-section p { margin-bottom: 12px; line-height: 1.6; }
.policy-section ul, .policy-section ol { margin: 0 0 16px 20px; line-height: 1.7; }
.policy-section li { margin-bottom: 8px; }

/* Item detail */
.item-wrap { max-width: 1000px; margin: 48px auto 80px; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.item-img img { width: 100%; border-radius: 12px; }
.item-title { font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.item-price { font-size: 24px; font-weight: 600; margin: 16px 0; }
.item-desc { color: var(--gray); line-height: 1.6; margin: 16px 0; }
.item-details { border-top: 1px solid var(--hairline); padding-top: 16px; margin-top: 16px; }
.item-details p { font-size: 14px; margin-bottom: 8px; }

/* Messages */
.chat-pane { max-width: 720px; margin: 48px auto 80px; padding: 0 24px; }
.chat-head { padding-bottom: 16px; border-bottom: 1px solid var(--hairline); margin-bottom: 24px; }
.chat-body { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; min-height: 300px; }
.bubble { max-width: 70%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.bubble.mine { align-self: flex-end; background: var(--ink); color: #fff; }
.bubble.theirs { align-self: flex-start; background: var(--bg-soft); }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 14px; }
.conv-list { max-width: 720px; margin: 48px auto; padding: 0 24px; }
.conv-item { display: block; padding: 16px 0; border-bottom: 1px solid var(--hairline); }

/* Listings/orders */
.inv-stats { display: flex; gap: 24px; margin-bottom: 24px; }
.inv-stat { font-size: 14px; color: var(--gray); }
.inv-filters { display: flex; gap: 12px; margin-bottom: 24px; }
.inv-search { padding: 12px 16px; border: 1px solid var(--hairline); border-radius: 8px; font-size: 14px; }
.inv-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hairline); }

/* Empty states */
.empty-state { text-align: center; padding: 64px 24px; color: var(--gray); }

/* Success page */
.success-wrap { max-width: 480px; margin: 80px auto; padding: 0 24px; text-align: center; }

/* Star rating */
.stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }

@media (max-width: 640px) {
  .item-wrap { grid-template-columns: 1fr; padding: 0 16px; }
  .form-row { grid-template-columns: 1fr; }
  .main-nav { display: flex; gap: 16px; overflow-x: auto; padding: 8px 0; max-width: 100%; }
  .main-nav a { white-space: nowrap; }
  .sell-form-wrap { padding: 0 4px; }
}

/* Mobile bottom tab bar (monochrome) */
.mobile-tabs { display: none; }
@media (max-width: 640px) {
  .mobile-tabs { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: #fff; border-top: 1px solid var(--hairline); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 8px; color: var(--gray-light); }
  .mobile-tabs a svg { width: 22px; height: 22px; display: block; }
  .mobile-tabs a span { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; }
  .mobile-tabs a.active { color: var(--ink); }
}
