/* ==========================================================================
   LitKitz Wholesale — styles (mobile-first, desktop ≥1024px)
   ========================================================================== */
:root {
  --orange: #f4621f;
  --orange-deep: #e3530f;
  --orange-soft: #fff1ea;
  --yellow: #ffb800;
  --ink: #1c1c1c;
  --ink-2: #444;
  --ink-3: #777;
  --ink-4: #a3a3a3;
  --line: #ececec;
  --line-2: #dcdcdc;
  --bg: #f5f5f7;
  --card: #ffffff;
  --red: #d42a2a;
  --blue: #2457c5;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --tabbar-h: 58px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45; padding-bottom: var(--tabbar-h); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
dl { margin: 0; }
[hidden] { display: none !important; }
.dim { color: var(--ink-3); font-size: 12px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.icon { display: inline-flex; width: 22px; height: 22px; flex: none; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 14px; height: 14px; }
.badge { position: absolute; top: -4px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: filter .15s, transform .05s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--orange); height: 32px; padding: 0 14px; font-size: 12px; }
.iconbtn { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: var(--orange); }
.iconbtn:hover { background: var(--orange-soft); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px); transform: translate(-50%, 20px); background: rgba(0,0,0,.82); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- header ---------- */
#app-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.hdr-desktop { display: none; }
.hdr-row { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 46px; }
.hdr-title { text-align: center; font-size: 16px; font-weight: 600; }
.hdr-back { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink); }
.searchbar { display: flex; align-items: center; gap: 8px; margin: 0 12px 10px; height: 34px; padding: 0 12px; border-radius: 999px; background: #f2f2f2; color: var(--ink-4); }
.searchbar .icon { width: 18px; height: 18px; }
.searchbar input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 13px; color: var(--ink); min-width: 0; }
.searchbar input::placeholder { color: var(--ink-4); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.2px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 14px; font-weight: 900; }
.brand-name em { font-style: normal; color: var(--orange); font-weight: 600; }

/* ---------- tab bar (mobile) ---------- */
#app-tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: var(--ink-3); }
.tab .icon { width: 24px; height: 24px; }
.tab .badge { right: calc(50% - 20px); top: 6px; }
.tab.active { color: var(--yellow); }
.tab.active .icon svg { stroke-width: 2.2; }

/* ---------- floating buttons ---------- */
#app-floating { position: fixed; right: 8px; bottom: calc(var(--tabbar-h) + 70px); display: flex; flex-direction: column; gap: 8px; z-index: 40; }
.fab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); color: var(--yellow); font-size: 9px; font-weight: 700; }
.fab .icon { width: 22px; height: 22px; }
.fab span { color: var(--ink-2); }
.fab .badge { top: 2px; right: 2px; }

/* ---------- home ---------- */
.home-top { background: #fff; padding-bottom: 6px; }
#banner { position: relative; margin: 0 10px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 1; background: #eee; }
.banner-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.banner-slide { flex: 0 0 100%; height: 100%; position: relative; display: flex; }
.banner-slide.promo { background: linear-gradient(120deg, #ff7a2f, #f4621f 45%, #ffb36b); color: #fff; padding: 16px; overflow: hidden; }
.promo-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; max-width: 62%; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; opacity: .9; }
.promo-copy h2 { font-size: clamp(20px, 5.5vw, 34px); line-height: 1.05; font-weight: 900; }
.promo-copy p { font-size: 12px; opacity: .95; }
.promo-copy .btn { align-self: flex-start; margin-top: 4px; }
.promo-art { position: absolute; right: -6px; top: 8px; bottom: 8px; width: 44%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; transform: rotate(6deg); opacity: .92; }
.promo-art img { width: 100%; height: 100%; object-fit: contain; }
.banner-slide.notice { background: linear-gradient(135deg, #ff8a3d, #f4621f); padding: 12px; align-items: center; justify-content: center; }
.notice-card { width: 100%; background: #fff; border-radius: var(--radius-sm); padding: 14px 14px 10px; text-align: left; }
.notice-card h2 { text-align: center; font-size: clamp(20px, 6vw, 32px); letter-spacing: 2px; }
.notice-card small { display: block; text-align: center; letter-spacing: 4px; font-size: 9px; color: var(--ink-3); margin-bottom: 8px; }
.notice-card p { color: var(--red); font-weight: 700; font-size: clamp(11px, 3.2vw, 15px); line-height: 1.4; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 5px; }
.banner-dots button { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.25); padding: 0; }
.banner-dots button.on { background: #fff; width: 14px; border-radius: 3px; }

.tiles { display: grid; grid-template-columns: repeat(var(--tile-cols-m, 4), 1fr); gap: 12px 6px; padding: 14px 8px 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tile-img { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile-badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid var(--red); border-radius: 4px; color: var(--red); font-weight: 900; font-size: 15px; letter-spacing: 1px; background: #fff; }
.tile-label { font-size: 11px; color: var(--ink-2); line-height: 1.2; max-width: 80px; }

.home-sec { background: #fff; margin-top: 10px; padding: 12px 10px 14px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { flex: 1; text-align: center; font-size: 16px; }
.sec-head h2 small { display: block; font-size: 11px; color: var(--ink-4); font-weight: 400; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-3); }
.more .icon { width: 14px; height: 14px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.pcard { display: block; min-width: 0; }
.pcard-img { position: relative; aspect-ratio: 6 / 7; border-radius: var(--radius-sm); overflow: hidden; background: #f3f4f6; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-tag { position: absolute; top: 6px; left: 6px; background: var(--orange); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 3px; }
.pcard-name { margin-top: 6px; font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-sku { font-size: 11px; color: var(--ink-4); text-align: center; }
.pcard-price { color: var(--orange); font-weight: 700; font-size: 14px; }

/* ---------- category page ---------- */
.cat-toolbar { position: sticky; top: 90px; z-index: 30; display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); }
.cat-chip { font-weight: 600; font-size: 13px; max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sort { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--ink-2); }
.sort.on { color: var(--yellow); font-weight: 600; }
.sort .dir { font-size: 11px; }
.cat-toolbar .spacer { flex: 1; }
.filter-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); }
.filter-btn .icon { width: 16px; height: 16px; }
.cat-layout { display: grid; grid-template-columns: 86px 1fr; min-height: 70vh; }
.side-cats { background: #f7f7f7; border-right: 1px solid var(--line); position: sticky; top: 132px; align-self: start; max-height: calc(100vh - 132px - var(--tabbar-h)); overflow: auto; }
.side-cats button { display: flex; align-items: center; justify-content: center; gap: 2px; width: 100%; padding: 14px 6px; font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.25; border-left: 3px solid transparent; }
.side-cats button.active { background: #fff; color: var(--ink); font-weight: 600; border-left-color: var(--orange); }
.result-count { padding: 8px 10px 0; font-size: 11px; color: var(--ink-4); }
.plist { padding: 6px 8px 20px; display: flex; flex-direction: column; gap: 8px; }
.lcard { display: grid; grid-template-columns: 108px 1fr; gap: 10px; background: #fff; border-radius: var(--radius-sm); padding: 8px; box-shadow: var(--shadow); }
.lcard-img { aspect-ratio: 6 / 7; border-radius: 4px; overflow: hidden; background: #f3f4f6; }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; }
.lcard-body { display: flex; flex-direction: column; min-width: 0; }
.lcard-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.lcard-sku { font-size: 11px; color: var(--ink-4); margin: 2px 0 4px; }
.attrs { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; font-size: 11.5px; }
.attrs dt { color: var(--ink-4); }
.attrs dd { margin: 0; color: var(--ink-2); }
.lcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { color: var(--orange); font-weight: 700; font-size: 15px; }
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 60px auto; width: 110px; height: 110px; background: rgba(0,0,0,.72); color: #fff; border-radius: 10px; font-size: 12px; }
.spinner { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 50px 20px; color: var(--ink-4); text-align: center; }
.empty .icon { width: 44px; height: 44px; }
.empty.small { padding: 24px; grid-column: 1 / -1; }

/* filter panel (bottom sheet mobile / dialog desktop) */
.filter-panel { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 80; display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .2s; }
.filter-panel.open { opacity: 1; pointer-events: auto; }
.fp-body { width: 100%; background: #fff; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(20px); transition: transform .25s; }
.filter-panel.open .fp-body { transform: none; }
.fp-body h3 { font-size: 16px; margin-bottom: 8px; }
.fp-body h4 { font-size: 12px; color: var(--ink-3); margin: 12px 0 6px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 6px 12px; border-radius: 999px; background: #f2f2f2; font-size: 12px; color: var(--ink-2); border: 1px solid transparent; }
.chips button.on { background: var(--orange-soft); color: var(--orange); border-color: var(--orange); font-weight: 600; }
.fp-actions { display: flex; gap: 10px; margin-top: 18px; }
.fp-actions .btn { flex: 1; }

/* ---------- product page ---------- */
body[data-page="product"] { padding-bottom: 64px; }
.pd-gallery { background: #fff; }
.gal-main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f4f6; }
.gal-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.gal-slide { flex: 0 0 100%; height: 100%; }
.gal-slide img { width: 100%; height: 100%; object-fit: contain; }
.gal-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: var(--shadow); display: none; align-items: center; justify-content: center; }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-thumbs { display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumbs button { flex: 0 0 48px; height: 56px; border-radius: 4px; overflow: hidden; border: 2px solid transparent; background: #f3f4f6; }
.gal-thumbs button.on { border-color: var(--orange); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { background: #fff; padding: 12px 12px 16px; }
.pd-pricerow { display: flex; align-items: flex-end; justify-content: space-between; }
.pd-list { color: var(--ink-4); font-size: 13px; }
.pd-price { color: var(--orange); font-size: 24px; font-weight: 800; line-height: 1.1; }
.pd-actions { display: flex; gap: 14px; }
.pd-actions button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--ink-3); }
.pd-actions .icon { width: 24px; height: 24px; color: var(--orange); }
.pd-actions #act-fav .icon { color: var(--ink-4); }
.pd-actions #act-fav.on .icon { color: var(--yellow); }
.pd-actions #act-fav.on .icon svg { fill: var(--yellow); }
.pd-namechip { display: inline-block; margin-top: 10px; padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: 4px; font-weight: 700; font-size: 14px; }
.pd-sku { font-size: 12px; color: var(--ink-3); margin: 6px 0 10px; }
.pd-attrs { font-size: 13px; gap: 4px 12px; }
.pd-attrs dt { color: var(--ink); font-weight: 600; }
.pd-crumbs { font-size: 11px; color: var(--ink-4); margin-top: 10px; }
.ribbon { position: relative; display: inline-block; margin: 18px 0 10px; padding: 6px 22px 6px 12px; background: var(--orange); color: #fff; font-size: 14px; font-weight: 700; border-radius: 0 14px 0 0; }
.ribbon::after { content: ""; position: absolute; left: 0; right: -40px; bottom: -3px; height: 2px; background: var(--orange); opacity: .35; }
.spec { border-top: 1px solid var(--line); }
.spec-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-k { font-size: 13px; font-weight: 600; }
.spec-k em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.spec-k.right { color: var(--ink-3); font-weight: 400; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 40px; height: 40px; border-radius: 4px; overflow: hidden; border: 2px solid var(--line-2); background: #fff; }
.swatches button.on { border-color: var(--orange); }
.spec-row.sizes .chips button { background: #e8f1fb; color: var(--blue); }
.spec-row.sizes .chips button.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.spec-price { font-weight: 600; font-size: 14px; }
.qty-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.qty button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.qty button .icon { width: 16px; height: 16px; }
.qty input { width: 44px; height: 32px; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: center; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.pd-desk-cta { display: none; }
.pd-details { background: #fff; margin-top: 10px; padding: 4px 12px 18px; }
.spec-card { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center; background: linear-gradient(135deg, #1f4fb8, #2f7bd8); color: #fff; border-radius: 8px; padding: 14px; }
.spec-card-no { font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.spec-card-title { font-size: 13px; opacity: .9; margin-bottom: 8px; }
.spec-card ul { list-style: none; margin: 0; padding: 0; font-size: 11.5px; display: grid; gap: 2px; }
.spec-card b { opacity: .8; font-weight: 600; margin-right: 4px; }
.feat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.feat span { font-size: 10px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; }
.detail-block { margin-top: 18px; }
.detail-block h4 { font-size: 14px; margin-bottom: 10px; padding-left: 8px; border-left: 3px solid var(--orange); }
.detail-block p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.detail-block a { color: var(--orange); font-weight: 600; }
.lineup, .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lineup figure, .shots figure { margin: 0; text-align: center; font-size: 11px; color: var(--ink-3); }
.lineup img, .shots img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 6px; background: #f3f4f6; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; }
.sizechart { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; }
.sizechart th, .sizechart td { border: 1px solid var(--line); padding: 7px 6px; }
.sizechart th { background: #f7f7f7; font-weight: 600; }
.sizechart td:first-child { font-weight: 700; color: var(--blue); }
.pd-related { background: #fff; margin-top: 10px; padding: 12px 10px 16px; }
.pd-bar { position: fixed; left: 0; right: 0; bottom: 0; height: 56px; display: grid; grid-template-columns: 54px 54px 54px 1fr 1fr; background: #fff; border-top: 1px solid var(--line); z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
.pd-bar > a, .pd-bar > button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10px; color: var(--ink-2); }
.pd-bar .icon { width: 22px; height: 22px; color: var(--orange); }
.pd-bar .badge { top: 4px; right: 8px; }
.bar-btn { font-size: 13px !important; font-weight: 700; color: #fff !important; line-height: 1.15; text-align: center; padding: 0 6px; }
.bar-btn.primary { background: var(--orange); }
.bar-btn.dark { background: var(--ink); }

/* ---------- design page ---------- */
.design-wrap { display: grid; gap: 12px; padding: 12px; }
.d-canvas { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; align-items: center; justify-content: center; }
.d-svg { width: min(100%, 340px); height: auto; }
.d-panel { background: #fff; border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 12px; color: var(--ink-3); }
.field > label { font-weight: 600; color: var(--ink-2); }
.field input[type=text], .field select { height: 38px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 10px; font-size: 14px; color: var(--ink); background: #fff; }
.field.row { grid-template-columns: 1fr 1fr; }
.d-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.d-colors button { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.d-colors button.on { box-shadow: 0 0 0 2px var(--orange); }
.switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.d-summary { font-size: 12px; color: var(--ink-2); background: var(--orange-soft); border-radius: 6px; padding: 10px; line-height: 1.6; }
.d-actions { display: flex; gap: 8px; }
.d-actions .btn { flex: 1; }
input[type=color] { width: 40px; height: 32px; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px; background: #fff; }

/* ---------- cart ---------- */
.cart-wrap { padding: 12px; display: grid; gap: 12px; }
.cart-list { display: grid; gap: 8px; }
.ccard { display: grid; grid-template-columns: 84px 1fr; gap: 10px; background: #fff; border-radius: var(--radius-sm); padding: 8px; box-shadow: var(--shadow); }
.ccard-img { aspect-ratio: 6 / 7; border-radius: 4px; overflow: hidden; background: #f3f4f6; }
.ccard-img img { width: 100%; height: 100%; object-fit: cover; }
.ccard-body { display: flex; flex-direction: column; min-width: 0; }
.ccard-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.ccard-foot .price { flex: 1; }
.chip-mini { display: inline-block; background: var(--orange-soft); color: var(--orange); padding: 0 6px; border-radius: 3px; font-size: 11px; }
.summary { background: #fff; border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; font-size: 13px; }
.summary .row { display: flex; justify-content: space-between; }
.summary .total { font-size: 16px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; }
.summary .total span:last-child { color: var(--orange); }
.summary .btn { margin-top: 4px; }
.summary .link { text-align: center; font-size: 12px; color: var(--ink-3); }

/* ---------- account ---------- */
.acc-hero { background: linear-gradient(135deg, #ff8a3d, #f4621f); color: #fff; padding: 22px 16px 24px; display: flex; align-items: center; gap: 14px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; border: 2px solid rgba(255,255,255,.7); }
.acc-hero h2 { font-size: 18px; }
.acc-hero p { font-size: 12px; opacity: .9; }
.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; margin: -12px 12px 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 0; text-align: center; position: relative; }
.acc-stats b { display: block; font-size: 18px; }
.acc-stats span { font-size: 11px; color: var(--ink-3); }
.menu { background: #fff; margin: 12px; border-radius: var(--radius); overflow: hidden; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.menu a:last-child { border-bottom: 0; }
.menu .icon { color: var(--orange); }
.menu .chev { margin-left: auto; color: var(--ink-4); width: 16px; height: 16px; }
.acc-sec { margin: 12px; background: #fff; border-radius: var(--radius); padding: 12px 10px; }

/* ---------- footer ---------- */
#app-footer { display: none; }

/* ==========================================================================
   Tablet ≥ 768px
   ========================================================================== */
@media (min-width: 768px) {
  .tiles { grid-template-columns: repeat(calc(var(--tile-cols-m, 4) + 2), 1fr); }
  .pgrid { grid-template-columns: repeat(4, 1fr); }
  .cat-layout { grid-template-columns: 160px 1fr; }
  .plist { display: grid; grid-template-columns: repeat(2, 1fr); }
  .lineup, .shots { grid-template-columns: repeat(5, 1fr); }
  .design-wrap { grid-template-columns: 1fr 1fr; }
  .cart-wrap { grid-template-columns: 1fr 300px; align-items: start; }
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  body { padding-bottom: 0; font-size: 15px; display: flex; flex-direction: column; min-height: 100vh; }
  body > main { flex: 1; width: 100%; }
  body[data-page="product"] { padding-bottom: 0; }
  #app-tabbar, .pd-bar { display: none; }
  #app-floating { bottom: 40px; right: 20px; }
  .hdr-mobile { display: none; }
  .hdr-desktop { display: block; }
  .hdr-desk-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; height: 68px; }
  .hdr-desk-row .searchbar { margin: 0 auto; width: min(520px, 100%); height: 40px; background: #f2f2f2; }
  .desk-nav { display: flex; gap: 6px; }
  .desk-nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
  .desk-nav a:hover { background: #f5f5f5; }
  .desk-nav a.active { color: var(--orange); background: var(--orange-soft); font-weight: 600; }
  .desk-nav .icon { width: 20px; height: 20px; }
  .desk-nav .badge { top: -1px; left: 22px; right: auto; transform: scale(.88); }
  .desk-catbar { display: flex; gap: 4px; height: 40px; align-items: center; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .desk-catbar::-webkit-scrollbar { display: none; }
  .desk-catbar a { white-space: nowrap; font-size: 13px; color: var(--ink-2); padding: 5px 10px; border-radius: 6px; }
  .desk-catbar a:hover { color: var(--orange); background: var(--orange-soft); }
  .desk-catbar a.hot { color: var(--red); font-weight: 700; }
  .toast { bottom: 40px; }

  /* home */
  .home-top { background: transparent; padding: 18px 0 0; }
  #banner { max-width: 1200px; margin: 0 auto; aspect-ratio: 1200 / 380; border-radius: 14px; }
  .banner-slide.promo { padding: 40px 56px; }
  .promo-copy { gap: 12px; max-width: 50%; }
  .promo-copy h2 { font-size: 48px; }
  .promo-copy p { font-size: 17px; }
  .promo-copy .btn { height: 40px; font-size: 14px; padding: 0 20px; }
  .promo-art { right: 40px; top: 24px; bottom: 24px; width: 36%; gap: 12px; }
  .notice-card { max-width: 720px; padding: 26px 34px 20px; }
  .banner-dots { bottom: 14px; }
  .banner-dots button { width: 8px; height: 8px; }
  .banner-dots button.on { width: 22px; }
  .tiles { max-width: 1200px; margin: 18px auto 0; grid-template-columns: repeat(var(--tile-cols-d, 8), 1fr); gap: 18px 10px; padding: 22px 16px; background: #fff; border-radius: 14px; }
  .tile-img { width: 70px; height: 70px; }
  .tile-label { font-size: 13px; max-width: 120px; }
  .tile:hover .tile-label { color: var(--orange); }
  .home-sec { max-width: 1200px; margin: 18px auto 0; border-radius: 14px; padding: 20px 22px 24px; }
  .sec-head { margin-bottom: 16px; }
  .sec-head h2 { text-align: left; font-size: 20px; display: flex; align-items: baseline; gap: 8px; }
  .sec-head h2 small { display: inline; font-size: 13px; }
  .more { font-size: 13px; padding: 6px 10px; border-radius: 999px; }
  .more:hover { background: var(--orange-soft); color: var(--orange); }
  .pgrid { grid-template-columns: repeat(6, 1fr); gap: 18px 14px; }
  .pcard { background: #fff; border-radius: 8px; transition: transform .15s, box-shadow .15s; }
  .pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .pcard-name { font-size: 13px; padding: 0 6px; }
  .pcard-sku { text-align: left; padding: 0 6px; }
  .pcard-price { padding: 0 6px 8px; font-size: 16px; }

  /* category */
  .cat-page { max-width: 1200px; margin: 18px auto 40px; padding: 0 12px; }
  .cat-toolbar { position: static; background: #fff; border-radius: 12px 12px 0 0; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--line); }
  .cat-chip { font-size: 16px; max-width: none; }
  .cat-layout { grid-template-columns: 220px 1fr; background: #fff; border-radius: 0 0 12px 12px; }
  .side-cats { border-radius: 0 0 0 12px; }
  .side-cats { top: 120px; max-height: calc(100vh - 140px); background: #fafafa; }
  .side-cats button { justify-content: space-between; text-align: left; padding: 13px 16px; font-size: 14px; }
  .side-cats button:hover { color: var(--ink); background: #f2f2f2; }
  .result-count { padding: 14px 18px 0; font-size: 12px; }
  .plist { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 12px 18px 24px; }
  .lcard { grid-template-columns: 1fr; box-shadow: none; border: 1px solid var(--line); padding: 10px; transition: box-shadow .15s; }
  .lcard:hover { box-shadow: var(--shadow-lg); }
  .lcard-name { font-size: 14px; }
  .attrs { font-size: 12.5px; }
  .filter-panel { align-items: center; justify-content: center; }
  .fp-body { width: 420px; border-radius: 14px; transform: translateY(0) scale(.97); }

  /* product */
  .pd-page { max-width: 1200px; margin: 18px auto 40px; padding: 0 12px; }
  .pd-grid { display: grid; grid-template-columns: 520px 1fr; gap: 28px; background: #fff; border-radius: 14px; padding: 24px; }
  .pd-gallery { position: sticky; top: 128px; align-self: start; }
  .gal-main { border-radius: 10px; }
  .gal-main:hover .gal-nav { display: flex; }
  .gal-thumbs { padding: 10px 0 0; flex-wrap: wrap; }
  .gal-thumbs button { flex-basis: 60px; height: 70px; }
  .pd-info { padding: 0; }
  .pd-price { font-size: 32px; }
  .pd-actions button { font-size: 11px; }
  .pd-namechip { font-size: 18px; padding: 6px 14px; }
  .pd-attrs { font-size: 14px; }
  .pd-desk-cta { display: flex; gap: 10px; margin-top: 22px; }
  .pd-desk-cta .btn { height: 46px; padding: 0 22px; font-size: 15px; }
  .pd-details, .pd-related { max-width: 1200px; margin: 18px auto 0; border-radius: 14px; padding: 10px 28px 28px; }
  .spec-card { grid-template-columns: 1fr 220px; padding: 24px 28px; }
  .spec-card-no { font-size: 30px; }
  .spec-card ul { font-size: 13.5px; grid-template-columns: 1fr 1fr; }
  .lineup, .shots { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .sizechart { font-size: 13.5px; }

  /* design */
  .design-page { max-width: 1100px; margin: 18px auto 40px; padding: 0 12px; }
  .design-wrap { grid-template-columns: 1.1fr .9fr; gap: 20px; padding: 0; }
  .d-canvas { padding: 40px; min-height: 520px; }
  .d-svg { width: min(100%, 440px); }
  .d-panel { padding: 22px; }

  /* cart */
  .cart-page { max-width: 1000px; margin: 18px auto 40px; padding: 0 12px; }
  .cart-wrap { grid-template-columns: 1fr 320px; gap: 20px; padding: 0; }
  .ccard { grid-template-columns: 110px 1fr; padding: 12px; }
  .summary { position: sticky; top: 128px; }

  /* account */
  .acc-page { max-width: 1000px; margin: 18px auto 40px; padding: 0 12px; }
  .acc-hero { border-radius: 14px; padding: 30px; }
  .acc-stats { margin: -16px 24px 0; }
  .menu, .acc-sec { margin: 16px 0 0; }
  .menu { display: grid; grid-template-columns: repeat(3, 1fr); }
  .menu a { border-right: 1px solid var(--line); }
  .menu a:nth-child(3n) { border-right: 0; }
  .menu a:nth-last-child(-n+3) { border-bottom: 0; }
  .acc-sec .pgrid { grid-template-columns: repeat(5, 1fr); }

  /* footer */
  #app-footer { display: block; background: #fff; border-top: 1px solid var(--line); margin-top: 30px; padding: 34px 0 0; color: var(--ink-2); font-size: 13px; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
  .foot-grid p { margin-top: 12px; line-height: 1.6; color: var(--ink-3); max-width: 320px; }
  .foot-grid h4 { font-size: 14px; margin-bottom: 10px; }
  .foot-grid a:not(.brand) { display: block; padding: 4px 0; color: var(--ink-3); }
  .foot-grid a:not(.brand):hover { color: var(--orange); }
  .foot-bottom { border-top: 1px solid var(--line); margin-top: 26px; padding: 16px 12px; font-size: 12px; color: var(--ink-4); text-align: center; }
}

/* ==========================================================================
   v2 additions — dashboard-driven storefront features
   ========================================================================== */

/* language switcher */
.lang-sel { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.lang-sel .icon { width: 18px; height: 18px; }
.lang-sel select { border: 0; background: transparent; font-size: 12px; color: var(--ink-2); outline: 0; max-width: 86px; }
.lang-sel.compact { justify-self: end; padding-right: 10px; }
.hdr-row .lang-sel { justify-content: flex-end; }

/* small buttons */
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; }

/* contact strip (tweak 8) */
.contact-strip { background: #fff; margin-top: 10px; padding: 16px 12px 18px; }
.contact-strip h3 { font-size: 15px; margin-bottom: 12px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.contact-grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; }
.contact-grid .icon { color: var(--orange); width: 24px; height: 24px; }
.contact-grid span { font-size: 12.5px; font-weight: 600; }
.contact-grid small { font-size: 10.5px; color: var(--ink-3); overflow-wrap: anywhere; }

/* video chip (tweak 5) */
.video-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; vertical-align: middle; }
.video-chip .icon { width: 14px; height: 14px; }

/* colour swatches — endless, scrollable (tweak 3) */
.swatches.many { max-height: 132px; overflow-y: auto; padding: 2px; }

/* MOQ & price tiers (tweak 10) */
.moq { margin-top: 16px; border: 1.5px solid var(--orange); border-radius: var(--radius); overflow: hidden; background: #fff; }
.moq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px 6px; }
.moq-head b { font-size: 14px; }
.moq-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 12px 8px; }
.moq-tabs button { padding: 9px 6px; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; background: #fff; }
.moq-tabs button small { display: block; font-weight: 400; font-size: 10px; color: var(--ink-3); }
.moq-tabs button.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.moq-tabs button.on small { color: rgba(255,255,255,.85); }
.moq-note { margin: 0 12px 8px; padding: 6px 10px; background: var(--orange-soft); color: var(--orange-deep); font-size: 11.5px; border-radius: 6px; }
.moq-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.moq-table th { text-align: left; font-size: 10.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; padding: 6px 8px; border-top: 1px solid var(--line); }
.moq-table td { padding: 10px 8px; border-top: 1px solid var(--line); }
.moq-table th:first-child, .moq-table td:first-child { width: 30px; padding-left: 12px; }
.moq-table tr { cursor: pointer; }
.moq-table tr.on { background: var(--orange-soft); }
.moq-price { font-weight: 700; }
.moq-table .best { display: block; font-size: 10px; color: #16a34a; font-weight: 700; }
.radio { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; flex: none; }
.radio.on { border-color: var(--orange); box-shadow: inset 0 0 0 3.5px #fff, inset 0 0 0 10px var(--orange); }
.moq-sel { margin: 0; padding: 10px 12px; background: #f7f7f9; font-size: 12.5px; border-top: 1px solid var(--line); }
.moq-sel b { color: var(--orange-deep); }

/* bulk colour × size matrix (tweak 4) */
.matrix-det { margin-top: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.matrix-det summary { display: flex; align-items: center; gap: 8px; padding: 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; list-style: none; }
.matrix-det summary::-webkit-details-marker { display: none; }
.matrix-det summary .icon { color: var(--orange); }
.matrix-det summary .dim { font-weight: 400; }
.matrix-wrap { overflow: auto; max-height: 340px; border-top: 1px solid var(--line); }
.matrix { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 4px; text-align: center; white-space: nowrap; }
.matrix thead th { position: sticky; top: 0; background: #f7f7f7; z-index: 2; font-size: 11px; }
.matrix tbody th { position: sticky; left: 0; background: #fff; text-align: left; padding: 4px 8px; font-weight: 600; z-index: 1; }
.mx-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px rgba(0,0,0,.15); margin-right: 6px; }
.matrix input { width: 46px; height: 30px; border: 1px solid transparent; border-radius: 4px; text-align: center; outline: 0; background: #fafafa; -moz-appearance: textfield; }
.matrix input:focus { border-color: var(--orange); background: #fff; }
.matrix input::-webkit-inner-spin-button { display: none; }
.matrix-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* customization chips + trust row (tweaks 8, 14) */
.ct-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ct-chip { padding: 6px 12px; border-radius: 999px; background: #f2f2f2; font-size: 12px; }
.ct-chip b { color: var(--orange-deep); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust-row > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; text-align: center; color: var(--ink-2); }
.trust-row .icon { width: 26px; height: 26px; color: var(--ink); }
.wa-block { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid #25d366; border-radius: var(--radius); background: #f2fcf5; font-size: 12.5px; line-height: 1.5; }
.wa-block .icon { width: 28px; height: 28px; color: #25d366; }

/* cart tier note */
.tier-note { font-size: 11px; color: var(--orange-deep); background: var(--orange-soft); display: inline-block; padding: 1px 8px; border-radius: 3px; margin-top: 3px; }
.summary .field { font-size: 12px; display: grid; gap: 4px; }
.summary .field label { color: var(--ink-3); font-weight: 600; }
.summary .field select { height: 36px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 8px; background: #fff; font-size: 13px; }

/* design roster (tweak 14) */
.roster { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.roster th { text-align: left; font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; padding: 4px 6px; }
.roster td { padding: 3px 4px; }
.roster input, .roster select { width: 100%; height: 34px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 8px; font-size: 13px; background: #fff; }
.roster td:first-child { width: 24px; color: var(--ink-4); text-align: center; }
.roster td:nth-child(3) { width: 62px; }
.roster td:nth-child(4) { width: 84px; }
.roster td:last-child { width: 38px; }
.d-roster-actions { display: flex; gap: 8px; margin-top: 8px; }
#d-paste { width: 100%; margin-top: 8px; border: 1px dashed var(--line-2); border-radius: 6px; padding: 8px; font-size: 12.5px; font-family: inherit; }
.d-preview-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); text-align: center; }
.d-canvas { flex-direction: column; }

/* checkout (tweaks 9, 12, 13, 15) */
.co-page { padding: 12px; }
.co-grid { display: grid; gap: 12px; }
.co-col { display: grid; gap: 12px; align-content: start; }
.co-card { background: #fff; border-radius: var(--radius); padding: 16px 14px; display: grid; gap: 12px; }
.co-card h3 { font-size: 15px; }
.co-card .field input, .co-card .field select { height: 40px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 10px; font-size: 14px; background: #fff; }
.pay-list { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt.on { border-color: var(--orange); background: var(--orange-soft); }
.pay-opt small { display: block; color: var(--ink-3); font-size: 11.5px; }
.usdt-box { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px; text-align: center; display: grid; gap: 4px; }
.usdt-amt { font-size: 20px; font-weight: 800; color: #16a34a; }
.usdt-addr { display: block; background: #f5f5f5; border-radius: 4px; padding: 8px; font-size: 11px; overflow-wrap: anywhere; }
.escrow-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); background: #eef6ff; font-size: 12.5px; line-height: 1.5; }
.escrow-note .icon { color: var(--blue); flex: none; width: 24px; height: 24px; }
.co-done { background: #fff; border-radius: var(--radius); padding: 40px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.co-done .icon.big { width: 64px; height: 64px; color: #16a34a; }
.co-done a:not(.btn) { color: var(--orange); font-weight: 600; }
.co-done-cta { display: flex; gap: 10px; margin-top: 6px; }

/* track page (tweak 11) */
.trk-page { padding: 12px; display: grid; gap: 12px; }
.trk-search { background: #fff; border-radius: var(--radius); padding: 18px 14px; text-align: center; }
.trk-search h2 { font-size: 18px; margin-bottom: 4px; }
.trk-form { display: flex; gap: 8px; margin-top: 12px; }
.trk-form input { flex: 1; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; font-size: 14px; outline: 0; min-width: 0; }
.trk-form input:focus { border-color: var(--orange); }
.trk-card { background: #fff; border-radius: var(--radius); padding: 16px 14px; }
.trk-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.trk-dest { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 13px; }
.trk-dest p { color: var(--ink-2); margin-top: 2px; }
.trk-pin { width: 18px; height: 18px; border-radius: 50%; background: #f43f2e; flex: none; margin-top: 2px; box-shadow: 0 0 0 4px #fde8e6; }
.timeline { list-style: none; margin: 6px 0 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 22px 4px; }
.timeline li::before { content: ""; position: absolute; left: 17px; top: 26px; bottom: -2px; width: 4px; background: var(--line); border-radius: 2px; }
.timeline li.done::before { background: #22c55e; }
.timeline li:last-child::before { display: none; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--line-2); flex: none; display: flex; align-items: center; justify-content: center; z-index: 1; }
.timeline li.done .tl-dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.tl-body b { font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
.trk-none { text-align: center; padding: 10px 0; }

/* status chips + order cards (account/admin) */
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: capitalize; background: #eee; color: var(--ink-2); }
.st-placed { background: #fef3c7; color: #92400e; }
.st-confirmed { background: #e0e7ff; color: #3730a3; }
.st-production { background: #fae8ff; color: #86198f; }
.st-shipped { background: #dbeafe; color: #1d4ed8; }
.st-delivered { background: #dcfce7; color: #166534; }
.st-cancelled { background: #fee2e2; color: #991b1b; }
.order-list { display: grid; gap: 10px; }
.ocard { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 6px; background: #fff; }
.ocard-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ocard-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ocard-foot .price { margin-right: auto; }
.demo-note { margin-bottom: 4px; }

/* ---------- v2 responsive ---------- */
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-row { grid-template-columns: repeat(4, 1fr); }
  .co-grid { grid-template-columns: 1fr 320px; align-items: start; }
}
@media (min-width: 1024px) {
  .contact-strip { max-width: 1200px; margin: 18px auto 0; border-radius: 14px; }
  .co-page, .trk-page { max-width: 1000px; margin: 18px auto 40px; padding: 0 12px; width: 100%; }
  .co-grid { gap: 20px; }
  .co-summary { position: sticky; top: 128px; }
  .trk-search { padding: 26px; }
  .trk-form { max-width: 520px; margin: 14px auto 0; }
  .hdr-desk-row { grid-template-columns: auto 1fr auto auto; }
  .swatches.many { max-height: 180px; }
}
