:root {
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  color: #24251f;
  background: #f7f7f3;
  font-synthesis: none;
  --ink: #24251f;
  --muted: #898b82;
  --line: #e9e9e2;
  --paper: #fff;
  --canvas: #f7f7f3;
  --accent: #ef9e2f;
  --accent-deep: #d97719;
  --green: #56785c;
  --soft-green: #eaf0e8;
  --shadow: 0 12px 38px rgba(48, 47, 36, .07);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position:fixed; z-index:200; top:8px; left:8px; padding:10px 14px; background:var(--ink); color:#fff; border-radius:8px; transform:translateY(-150%); }
.skip-link:focus { transform:translateY(0); }
:focus-visible { outline:3px solid #47784d; outline-offset:3px; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--accent); border-radius: 15px; font-size: 23px; font-weight: 800; transform: rotate(-5deg); }
.topline { height: 34px; background: #272a22; color: #d8d9d2; font-size: 11px; }
.topline-inner, .nav-inner, .page, .footer-inner { width: min(1200px, calc(100% - 48px)); margin: auto; }
.topline-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.topline a { color: #f4c278; }
.nav-wrap { background: rgba(255,255,255,.92); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(230,230,222,.8); backdrop-filter: blur(14px); }
.nav-inner { height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand .brand-mark { width: 40px; height: 40px; }
.brand-name { font-weight: 800; letter-spacing: -.8px; font-size: 20px; line-height: 1; }
.brand-tag { color: var(--muted); font-size: 10px; margin-top: 5px; letter-spacing: .3px; }
.main-nav { display: flex; align-items: center; gap: 25px; white-space: nowrap; color: #66695e; font-size: 13px; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-deep); }
.nav-search { margin-left: auto; width: min(310px, 30vw); height: 42px; border: 1px solid var(--line); background: #f8f8f5; border-radius: 24px; display: flex; padding: 4px 5px 4px 16px; }
.nav-search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 40px; font-size: 12px; }
.nav-search button { border: 0; background: var(--ink); color: white; border-radius: 20px; padding: 0 15px; font-size: 12px; }
.nav-action { border: 0; background: transparent; color: #62645b; font-size: 12px; white-space: nowrap; }
.nav-action .nav-icon { display: block; font-size: 19px; text-align: center; margin-bottom: 2px; }
.nav-sell { display: flex; align-items: center; border: 0; background: var(--accent); color: #27271f; border-radius: 22px; padding: 11px 20px; font-weight: 700; font-size: 12px; white-space: nowrap; box-shadow: 0 5px 12px #ef9e2f33; }
.page { min-height: calc(100vh - 180px); }
.hero { position: relative; margin: 28px 0 26px; padding: 42px 52px; min-height: 276px; overflow: hidden; border-radius: 18px; background: #eee8d9; display: flex; align-items: center; }
.hero:before { content:""; position:absolute; width:410px; height:410px; border-radius:50%; right:45px; top:-174px; background:#e2d4b8; }
.hero:after { content:""; position:absolute; width:225px; height:225px; border-radius:50%; right:175px; bottom:-130px; background:#d5ddc8; }
.hero-copy { position:relative; z-index:1; max-width:515px; }
.eyebrow { color: #78816a; letter-spacing: 2px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.hero h1 { font-size: clamp(29px, 4vw, 45px); letter-spacing: -1.5px; line-height: 1.22; margin: 15px 0 12px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent-deep); }
.hero-copy p { color: #747469; font-size: 13px; line-height: 1.8; margin: 0; }
.hero-buttons { display: flex; gap: 10px; margin-top: 23px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--ink); color: white; border-radius: 24px; min-height: 42px; padding: 0 19px; font-weight: 600; font-size: 12px; }
.btn:hover { transform: translateY(-1px); }
.btn.warm { background: var(--accent); color: #26271f; }
.btn.light { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 11px; }
.hero-art { position: absolute; z-index: 2; right: 104px; bottom: 30px; width: 270px; height: 204px; }
.art-circle { position: absolute; right: 20px; bottom: 1px; border-radius: 50%; width: 205px; height: 205px; background: #d4dfcb; }
.art-card { position: absolute; width: 140px; height: 172px; left: 40px; top: 11px; border-radius: 16px; background: #fffdf6; transform: rotate(-8deg); box-shadow: 0 14px 26px #6c70401c; padding: 12px; }
.art-card .art-pic { height: 106px; border-radius: 10px; background: #dce5d8; display: grid; place-items: center; font-size: 56px; }
.art-card .art-price { font-size: 13px; font-weight: 800; margin-top: 9px; }
.art-card .art-line { height: 5px; border-radius: 6px; background: #e9e8df; margin-top: 6px; width: 73%; }
.art-card.two { left: 129px; top: 32px; width: 123px; height: 151px; transform: rotate(9deg); }
.art-card.two .art-pic { height: 91px; background:#f0d7b4; font-size:46px; }
.section { margin: 30px 0 38px; }
.section-head { display:flex; align-items:end; justify-content:space-between; margin-bottom: 16px; }
.section-title { margin:0; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.section-note { color: var(--muted); font-size: 11px; margin-top: 5px; }
.text-link { font-size: 12px; color: var(--green); font-weight: 600; }
.load-more { display:block; margin:18px auto 0; min-width:140px; }
.category-grid { display:grid; grid-template-columns: repeat(10,1fr); gap: 8px; }
.category { background:white; border:1px solid #efefe9; border-radius:12px; padding:12px 5px 10px; text-align:center; font-size:11px; color:#5f6259; transition:.18s; }
.category:hover { border-color:#e8bc78; transform:translateY(-2px); box-shadow:var(--shadow); }
.category .cat-icon { display:block; font-size:22px; margin-bottom:6px; }
.topic-row { display:flex; gap:8px; flex-wrap:wrap; }
.topic-chip { background:#fff; border:1px solid var(--line); color:#62645c; border-radius:18px; padding:8px 14px; font-size:11px; }
.topic-chip:hover { background:#f8edda; border-color:#ecd3a8; }
.feature-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.feature { background:white; border:1px solid var(--line); border-radius:13px; padding:17px 19px; display:flex; align-items:center; gap:14px; }
.feature-icon { width:43px; height:43px; display:grid; place-items:center; background:#f6eddc; border-radius:14px; font-size:21px; }
.feature strong { display:block; font-size:12px; }
.feature span { color:var(--muted); font-size:10px; display:block; margin-top:5px; }
.product-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.product-card { overflow:hidden; background:white; border-radius:13px; border:1px solid #eeeeea; transition:.2s; }
.product-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.product-image { height:178px; background:#ebe9df; position:relative; display:grid; place-items:center; overflow:hidden; }
.product-image .emoji { font-size:76px; filter: drop-shadow(0 10px 6px #00000012); }
.uploaded-image { display:block; width:100%; height:100%; object-fit:cover; }
.detail-gallery .uploaded-image { width:100%; height:100%; position:absolute; inset:0; object-fit:contain; }
.listing-thumb .uploaded-image { width:100%; height:100%; object-fit:cover; border-radius:9px; }
.product-card:nth-child(4n+2) .product-image { background:#f0e2d5; }
.product-card:nth-child(4n+3) .product-image { background:#e3e9df; }
.product-card:nth-child(4n+4) .product-image { background:#e9e3ef; }
.product-image .condition { position:absolute; left:11px; top:11px; background:#fffffff0; color:#64665d; border-radius:10px; padding:5px 8px; font-size:9px; }
.favorite { position:absolute; right:10px; top:10px; width:30px; height:30px; display:grid; place-items:center; border:0; border-radius:50%; background:#ffffffec; color:#888; font-size:15px; }
.favorite.saved { color:#e76e54; }
.product-info { padding:12px 13px 13px; }
.product-title { height:36px; overflow:hidden; font-size:12px; line-height:1.55; font-weight:600; }
.product-price-row { display:flex; align-items:baseline; gap:7px; margin-top:10px; }
.price { color:#d76832; font-size:19px; font-weight:800; }
.price small { font-size:11px; margin-right:2px; }
.old-price { color:#b6b7b0; text-decoration:line-through; font-size:10px; }
.product-meta { display:flex; justify-content:space-between; align-items:center; margin-top:11px; color:#999a91; font-size:9px; }
.seller-mini { display:flex; gap:5px; align-items:center; }
.avatar { flex:0 0 auto; width:23px; height:23px; display:inline-grid; place-items:center; border-radius:50%; background:#e8eddf; color:#52684f; font-size:10px; font-weight:700; }
.page-heading { padding:32px 0 20px; display:flex; align-items:end; justify-content:space-between; }
.page-heading h1 { margin:0; font-size:26px; letter-spacing:-.7px; }
.page-heading p { color:var(--muted); font-size:12px; margin:7px 0 0; }
.search-layout { display:grid; grid-template-columns:220px 1fr; gap:25px; padding-bottom:50px; }
.filters { background:white; border:1px solid var(--line); border-radius:13px; padding:18px; height:max-content; }
.filter-title { font-size:13px; font-weight:700; margin:0 0 15px; }
.filter-label { display:block; font-size:10px; color:#777970; margin:17px 0 8px; }
.filter-select,.field input,.field select,.field textarea,.price-input { width:100%; border:1px solid #e8e8e2; background:#fff; border-radius:8px; padding:10px 11px; outline:none; color:var(--ink); font-size:11px; }
.filter-select:focus,.field input:focus,.field select:focus,.field textarea:focus { border-color:#e4b263; }
.price-range { display:flex; gap:7px; align-items:center; }
.price-input { min-width:0; padding:9px 7px; }
.result-toolbar { display:flex; justify-content:space-between; align-items:center; margin:1px 0 14px; }
.result-count { font-size:11px; color:var(--muted); }
.sort-select { border:0; background:transparent; color:#65675f; font-size:11px; outline:0; }
.empty { text-align:center; background:white; padding:65px 20px; border-radius:14px; color:var(--muted); }
.empty .empty-icon { font-size:42px; margin-bottom:12px; }
.empty strong { color:var(--ink); display:block; font-size:14px; }
.empty p { font-size:11px; }
.detail-wrap { padding:28px 0 58px; }
.breadcrumbs { color:#92948b; font-size:10px; margin-bottom:16px; }
.detail-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:28px; }
.detail-gallery { background:#ebe9df; border-radius:16px; min-height:420px; display:grid; place-items:center; position:relative; overflow:hidden; }
.detail-gallery .emoji { font-size:140px; }
.detail-info { background:white; border:1px solid var(--line); border-radius:16px; padding:26px; }
.detail-info h1 { font-size:23px; line-height:1.45; margin:0 0 12px; }
.detail-price { font-size:31px; font-weight:800; color:#d76832; }
.detail-price small { font-size:15px; }
.detail-description { border-top:1px solid var(--line); margin-top:18px; padding-top:17px; color:#676960; font-size:12px; line-height:1.9; white-space:pre-line; }
.seller-box { display:flex; align-items:center; gap:10px; background:#f7f7f3; padding:12px; border-radius:10px; margin:18px 0; }
.seller-box .avatar { width:36px; height:36px; font-size:13px; }
.seller-box strong { font-size:11px; }
.seller-box small { display:block; color:var(--muted); font-size:9px; margin-top:4px; }
.detail-actions { display:flex; gap:9px; margin-top:18px; }
.detail-actions .btn { flex:1; }
.auth-card,.form-card,.panel { background:white; border:1px solid var(--line); border-radius:15px; padding:25px; }
.auth-layout { min-height:65vh; display:grid; place-items:center; }
.auth-card { width:min(440px,100%); padding:34px; }
.auth-card h1 { font-size:23px; margin:0 0 8px; }
.auth-card p { color:var(--muted); font-size:11px; line-height:1.8; }
.form-card { max-width:700px; margin:5px 0 45px; }
.field { margin:17px 0; }
.field label { display:block; font-size:11px; font-weight:600; margin-bottom:7px; }
.field textarea { min-height:115px; resize:vertical; line-height:1.7; }
.help { color:var(--muted); font-size:9px; margin-top:6px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.messages-layout { display:grid; grid-template-columns:300px 1fr; min-height:480px; background:white; border:1px solid var(--line); border-radius:14px; overflow:hidden; margin-bottom:40px; }
.chat-list { border-right:1px solid var(--line); }
.chat-list h3 { font-size:13px; padding:17px; margin:0; border-bottom:1px solid var(--line); }
.chat-entry { display:flex; align-items:center; gap:10px; border:0; width:100%; background:white; padding:13px 16px; text-align:left; border-bottom:1px solid #f1f1ec; }
.chat-entry.active,.chat-entry:hover { background:#f8f7f1; }
.chat-entry strong { display:block; font-size:11px; }
.chat-entry small { display:block; color:var(--muted); font-size:9px; margin-top:4px; }
.chat-main { display:flex; flex-direction:column; min-width:0; }
.chat-head { padding:14px 18px; border-bottom:1px solid var(--line); font-size:12px; font-weight:700; }
.chat-body { flex:1; padding:17px; overflow:auto; min-height:300px; display:flex; flex-direction:column; gap:9px; }
.bubble { max-width:75%; padding:10px 13px; border-radius:12px; background:#f2f2ed; font-size:11px; line-height:1.6; align-self:flex-start; }
.bubble.mine { align-self:flex-end; background:#e8f0e4; }
.chat-compose { border-top:1px solid var(--line); padding:12px; display:flex; gap:8px; }
.chat-compose input { flex:1; border:1px solid var(--line); border-radius:20px; padding:10px 14px; outline:0; font-size:11px; }
.tabs { display:flex; gap:6px; border-bottom:1px solid var(--line); margin-bottom:17px; }
.tab { border:0; background:transparent; color:#7e8078; padding:10px 12px; font-size:11px; border-bottom:2px solid transparent; }
.tab.active { color:var(--accent-deep); border-color:var(--accent); font-weight:700; }
.listing-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f0f0eb; }
.listing-thumb { flex:0 0 auto; width:53px; height:53px; display:grid; place-items:center; background:#f0eee5; border-radius:9px; font-size:24px; }
.listing-row-main { flex:1; min-width:0; }
.listing-row-main strong { display:block; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.listing-row-main small { color:var(--muted); font-size:9px; display:block; margin-top:5px; }
.badge { border-radius:12px; padding:5px 8px; background:#edf2e8; color:#5d7756; font-size:9px; white-space:nowrap; }
.service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; margin-bottom:40px; }
.service-card { background:white; border:1px solid var(--line); border-radius:14px; padding:20px; min-height:170px; }
.service-card .service-icon { font-size:28px; }
.service-card h3 { font-size:13px; margin:11px 0 6px; }
.service-card p { color:var(--muted); font-size:10px; line-height:1.7; margin:0; }
.notice { background:#fbf4e7; color:#7f6740; padding:12px 14px; border-radius:9px; font-size:10px; line-height:1.7; }
.modal { width:min(440px,calc(100% - 28px)); border:1px solid var(--line); border-radius:15px; padding:23px; color:var(--ink); box-shadow:0 20px 70px #17181135; }
.modal::backdrop { background:#20211880; backdrop-filter:blur(2px); }
.modal h2 { font-size:17px; margin:0; }
.modal p { color:var(--muted); font-size:10px; line-height:1.7; }
.modal textarea { min-height:80px; resize:vertical; }
.modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:17px; }
.error-notice { background:#faeae5; color:#9b4935; }
.seller-profile { display:flex; align-items:center; gap:15px; }
.seller-profile .avatar { width:56px; height:56px; font-size:20px; }
.seller-profile h2 { font-size:16px; margin:0; }
.seller-profile p { color:#777970; font-size:11px; margin:6px 0; }
.order-detail { max-width:760px; margin-bottom:40px; }
.order-detail h3 { font-size:13px; margin-top:22px; }
.timeline { list-style:none; padding:0 0 0 13px; margin:14px 0; border-left:1px solid #e6e8df; }
.timeline li { position:relative; padding:0 0 17px 13px; font-size:11px; }
.timeline li:before { content:""; position:absolute; left:-18px; top:3px; width:8px; height:8px; background:#8a9b78; border:2px solid white; box-shadow:0 0 0 1px #8a9b78; border-radius:50%; }
.timeline small { display:block; color:var(--muted); font-size:9px; margin-top:5px; }
.mobile-nav { display:none; }
.toast { position:fixed; z-index:100; left:50%; bottom:26px; transform:translate(-50%,20px); opacity:0; pointer-events:none; background:#25271f; color:white; padding:11px 17px; border-radius:22px; font-size:11px; box-shadow:var(--shadow); transition:.2s; }
.toast.show { transform:translate(-50%,0); opacity:1; }
footer { background:#272a22; color:#d3d4cc; padding:30px 0; margin-top:35px; }
.footer-inner { display:flex; justify-content:space-between; align-items:center; }
.footer-brand { font-weight:700; font-size:13px; }
.footer-note { color:#9da095; font-size:10px; margin-top:7px; }
.footer-links { display:flex; gap:18px; color:#b8baaf; font-size:10px; }
@media(max-width:980px) {
  .nav-inner { gap:16px; }
  .main-nav { gap:13px; }
  .hero-art { right:35px; transform:scale(.88); transform-origin:right bottom; }
  .category-grid { grid-template-columns:repeat(6,1fr); }
  .product-grid { grid-template-columns:repeat(3,1fr); }
}
@media(max-width:700px) {
  .topline { display:none; }
  .topline-inner,.nav-inner,.page,.footer-inner { width:calc(100% - 28px); }
  .nav-inner { height:62px; gap:10px; }
  .brand-tag,.main-nav,.nav-action { display:none; }
  .brand-name { font-size:17px; }
  .brand .brand-mark { width:34px; height:34px; font-size:19px; }
  .nav-search { width:auto; flex:1; height:37px; padding-left:11px; }
  .nav-search button { padding:0 11px; }
  .nav-sell { padding:10px 13px; font-size:11px; }
  body { padding-bottom:60px; }
  .mobile-nav { position:fixed; display:flex; align-items:center; justify-content:space-around; z-index:25; left:0; right:0; bottom:0; height:56px; background:#fff; border-top:1px solid var(--line); padding-bottom:env(safe-area-inset-bottom); }
  .mobile-nav a { display:grid; justify-items:center; gap:1px; color:#686a61; font-size:19px; line-height:1; min-width:48px; }
  .mobile-nav small { font-size:8px; }
  .hero { min-height:270px; padding:29px 23px; margin-top:15px; }
  .hero-copy { max-width:75%; }
  .hero h1 { font-size:29px; }
  .hero-copy p { font-size:11px; }
  .hero-art { transform:scale(.53); right:-2px; bottom:3px; }
  .hero-buttons { margin-top:17px; }
  .btn { min-height:38px; padding:0 14px; }
  .category-grid { grid-template-columns:repeat(5,1fr); gap:6px; }
  .category { font-size:9px; padding:10px 2px 8px; }
  .category .cat-icon { font-size:19px; }
  .feature-strip { grid-template-columns:1fr; gap:8px; }
  .feature { padding:12px; }
  .product-grid { grid-template-columns:repeat(2,1fr); gap:9px; }
  .product-image { height:140px; }
  .product-image .emoji { font-size:57px; }
  .product-info { padding:10px; }
  .product-title { font-size:11px; height:34px; }
  .price { font-size:17px; }
  .section { margin:24px 0 29px; }
  .section-title { font-size:16px; }
  .search-layout { display:block; }
  .filters { margin-bottom:14px; padding:13px; }
  .filter-row-mobile { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }
  .filter-title { margin-bottom:6px; }
  .filter-label { margin-top:9px; }
  .page-heading { padding:23px 0 15px; }
  .page-heading h1 { font-size:22px; }
  .detail-grid { grid-template-columns:1fr; gap:12px; }
  .detail-gallery { min-height:270px; }
  .detail-gallery .emoji { font-size:100px; }
  .detail-info { padding:19px; }
  .detail-info h1 { font-size:19px; }
  .messages-layout { grid-template-columns:115px 1fr; min-height:470px; }
  .chat-list h3 { padding:13px 9px; font-size:11px; }
  .chat-entry { padding:11px 7px; gap:5px; }
  .chat-entry .avatar { width:25px; height:25px; }
  .chat-entry strong { font-size:9px; }
  .chat-entry small { font-size:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .chat-head { padding:13px 11px; }
  .chat-body { padding:11px 8px; }
  .bubble { max-width:90%; font-size:10px; }
  .chat-compose { padding:8px; }
  .chat-compose input { min-width:0; }
  .form-row { grid-template-columns:1fr; gap:0; }
  .service-grid { grid-template-columns:1fr; }
  .footer-inner { align-items:flex-start; flex-direction:column; gap:18px; }
  .footer-links { flex-wrap:wrap; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
