:root {
  --brand: #d64000;
  --brand-2: #fa6400;
  --text: #222;
  --sub: #999;
  --bg: #fff;
  --line: #eee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #fff; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.top {
  height: 45px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; font-size: 20px; font-weight: 700;
}
.top .lang { position: relative; font-size: 13px; font-weight: 600; }
.lang-btn {
  background: rgba(255,255,255,.18); border: 0; color: #fff;
  border-radius: 12px; padding: 4px 8px; cursor: pointer;
}
.lang-menu {
  display: none; position: absolute; right: 0; top: 32px; background: #fff; color: #222;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16); min-width: 150px; padding: 6px; z-index: 20;
}
.lang-menu.open { display: grid; }
.lang-menu button { background: 0; border: 0; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.lang-menu button.active, .lang-menu button:hover { background: #fff3ee; color: var(--brand); }

.exclusive { background: var(--brand); padding: 0 0 10px; }
.scroll {
  display: flex; gap: 4px; padding: 0 12px; align-items: stretch;
}
.mini {
  flex: 1 1 0; min-width: 0;
  background: #fff; border-radius: 8px; padding: 6px; cursor: pointer;
}
.mini .pic {
  position: relative; width: 100%; padding-top: 100%;
  border-radius: 4px; overflow: hidden; margin: 0 0 4px; background: #f6f6f6;
}
.mini .pic::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.05); pointer-events: none; }
.mini img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff;
}
.mini .name {
  font-size: 12px; line-height: 1.25; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px;
}
.mini .price { font-size: 13px; font-weight: 700; }
.mini .moq { font-size: 11px; color: var(--sub); }

.like-bar {
  background: var(--brand); color: #fff; font-size: 20px; font-weight: 700;
  padding: 10px 12px 12px;
}
.grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 4px;
  padding: 8px 12px 12px; background: #fff;
}
.more-wrap { padding: 4px 12px 88px; text-align: center; }
.btn-more {
  width: 100%; max-width: 420px; margin: 0 auto;
  height: 42px; border: 1px solid #ddd; background: #fff; color: #333;
  border-radius: 22px; font-weight: 700; cursor: pointer;
}
.dl-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: #fff; border-top: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 12px 12px;
}
.dl-bar span { font-size: 13px; color: #555; line-height: 1.3; flex: 1; }
.dl-bar .btn { width: auto; padding: 0 18px; height: 40px; flex: 0 0 auto; }
.app-box {
  display: none; position: fixed; left: 16px; right: 16px; top: 50%;
  transform: translateY(-50%); z-index: 50; background: #fff;
  border-radius: 16px; padding: 22px 18px 18px; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.app-box.show { display: block; }
.app-box h3 { font-size: 18px; margin-bottom: 8px; }
.app-box p { color: #666; font-size: 14px; margin-bottom: 16px; }
.card { display: flex; flex-direction: column; cursor: pointer; }
.card .pic {
  position: relative; width: 100%; padding-top: 100%;
  background: #f5f5f5; border-radius: 4px; overflow: hidden;
}
.card .pic::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.04); pointer-events: none; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card .name {
  margin-top: 6px; font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px;
}
.card .price { font-size: 16px; font-weight: 700; margin-top: 2px; }
.card .moq { font-size: 12px; color: var(--sub); }

.mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; }
.mask.show { display: block; }
.sheet {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-radius: 12px 12px 0 0; max-height: 92vh; overflow: auto;
}
.sheet.show { display: block; }
.sheet-img { width: 100%; aspect-ratio: 1; background: #f6f6f6; }
.sheet-img img { width: 100%; height: 100%; object-fit: contain; }
.sheet-body { padding: 12px 14px 20px; }
.sheet-body h2 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.sheet-body .price { font-size: 22px; font-weight: 700; }
.sheet-body .moq { color: var(--sub); font-size: 13px; margin: 4px 0 12px; }
.badges { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.badges img { height: 22px; width: auto; }
.actions { display: grid; gap: 8px; }
.btn {
  display: flex; align-items: center; justify-content: center; height: 44px;
  border: 0; border-radius: 22px; font-weight: 700; cursor: pointer; width: 100%;
}
.btn-orange { background: var(--brand); color: #fff; }
.btn-line { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.close {
  position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border: 0;
  border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer;
}
.sheet { position: fixed; }
.sheet-img { position: relative; }

.formbox { display: none; padding-top: 8px; }
.formbox.show { display: grid; gap: 8px; }
.formbox input, .formbox textarea, .formbox select {
  width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px;
}
.ok { display: none; color: #0d8046; font-size: 13px; }

.about {
  padding: 8px 12px 24px; color: #999; font-size: 12px; line-height: 1.5;
}
.about b { color: #666; }

@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(4, 1fr); max-width: 980px; margin: 0 auto; } .scroll { max-width: 980px; margin: 0 auto; } .top, .like-bar { padding-left: calc(50% - 490px); padding-right: calc(50% - 490px); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(5, 1fr); } }
