:root { --ink:#1f2933; --muted:#6b7280; --line:#e5e7eb; --bg:#fafaf7; --brand:#0f766e; --brand2:#f59e0b; --err:#b91c1c; --ok:#047857; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 16px; height: 56px; }
.logo { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); margin-right: auto; }
.langs a { margin-left: 8px; text-decoration: none; color: var(--muted); font-size: 14px; }
.langs a.on { color: var(--ink); font-weight: 700; }
.cartlink { text-decoration: none; font-weight: 600; white-space: nowrap; }
.badge { background: var(--brand2); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 13px; }
.hero { text-align: center; padding: 28px 0 12px; }
.hero h1 { margin: 0 0 4px; font-size: 28px; }
.hero p { margin: 0 0 16px; color: var(--muted); }
#q { width: min(520px, 100%); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.cats a { white-space: nowrap; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; font-size: 14px; }
.cats a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sec { font-size: 20px; margin: 20px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile, .pp > div { min-width: 0; }
html, body { overflow-x: hidden; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s; }
.tile:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3f4f6; }
.tb { padding: 10px 12px 12px; }
.tb h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin: 0; font-weight: 700; color: var(--brand); }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; }
.price.big { font-size: 26px; }
.save { background: #fef3c7; color: #92400e; font-size: 13px; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.crumb { font-size: 14px; color: var(--muted); }
.pp { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 32px; }
.gallery #main { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.info h1 { font-size: 24px; margin: 0 0 8px; }
.summary { color: #374151; }
.buy { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--brand); background: #fff; color: var(--brand); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.wide { width: 100%; padding: 14px; font-size: 17px; }
.note { background: #ecfdf5; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.desc li, .inc li, .files li { margin: 4px 0; }
.files { list-style: none; padding: 0; font-size: 14px; color: #374151; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.err { color: var(--err); font-weight: 600; } .ok { color: var(--ok); font-weight: 600; }
.line { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.line img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.line .n { flex: 1; text-decoration: none; color: var(--ink); }
.line .x { border: 0; background: none; color: var(--err); cursor: pointer; }
form label { display: block; margin: 12px 0; font-size: 14px; font-weight: 600; }
form input[type=text], form input:not([type]), form input[type=email], form input[type=tel] { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; font-weight: 400; }
#co, .narrow { max-width: 520px; }
.chk { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.chk input { margin-top: 4px; }
.total { font-size: 18px; }
.dl { list-style: none; padding: 0; }
.dl li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.dl .n { flex: 1; min-width: 200px; word-break: break-all; }
.policy { max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 24px 16px; margin: 20px 0; }
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0; font-size: 14px; color: var(--muted); background: #fff; }
.foot nav a { margin-right: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.adm { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.adm th, .adm td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.s-ready td:nth-child(6) { color: var(--ok); } .s-fulfil_error td:nth-child(6), .s-error td:nth-child(6) { color: var(--err); font-weight: 700; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .pp { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bar { gap: 8px; }
  .logo { font-size: 16px; }
  .cartlink .lbl { display: none; }
  .tb h3 { font-size: 14px; }
  .cartlink { font-size: 14px; }
  .langs a { margin-left: 4px; }
}
