/* ─────────────────────────────────────────────────────────────────────────
   Commerce surfaces — catalog grid, item detail, cart, checkout, orders,
   payment ledger, and the business order console.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Product grid ─────────────────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
.prod {
  display: flex; flex-direction: column; text-align: left;
  border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden;
  background: var(--paper); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 28%, var(--hairline)); }
.prod.out { opacity: .62; }
.prod.out:hover { transform: none; }
.prod-thumb {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent) 35%, #fff));
  display: grid; place-items: center;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb .ph { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.prod-thumb .ph svg { width: 34px; height: 34px; }
.prod-flag {
  position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
}
.prod-flag.right { left: auto; right: 8px; }
.prod-flag.oos { background: var(--red); }
.prod-info { padding: 12px 13px 13px; flex: 1; display: flex; flex-direction: column; }
.prod-name { font-weight: 700; color: var(--ink); font-size: 14px; line-height: 1.3; }
.prod-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.prod-price { font-weight: 800; color: var(--accent-2); font-size: 15px; letter-spacing: -.01em; }
.prod-price.enquire { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.prod-rate { font-size: 12px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.prod-rate svg { width: 12px; height: 12px; fill: var(--star); }
.prod-add { padding: 9px 12px; margin: 0 13px 13px; }

/* ── Shop toolbar ─────────────────────────────────────────────────────── */
.shopbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.searchbox { position: relative; flex: 1; min-width: 220px; }
.searchbox svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--subtle); pointer-events: none; }
.searchbox .input { padding-left: 38px; }

/* ── Search ───────────────────────────────────────────────────────────── */
.searchbar { display: flex; gap: 10px; align-items: center; }
.searchbar .searchbox { flex: 1; }
.searchbar .btn { flex-shrink: 0; }

.filter-bar {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 20px;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.filter-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.filter-bar .select { padding-top: 9px; padding-bottom: 9px; }

.prod-seller {
  display: flex; align-items: center; gap: 6px;
  margin: 0 13px 10px; padding-top: 9px;
  border-top: 1px solid var(--divider);
  font-size: 12px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod-seller:hover { color: var(--accent-2); }
.prod-seller svg { width: 13px; height: 13px; flex-shrink: 0; }

.shop-results { display: flex; flex-direction: column; gap: 10px; }
.shop-result {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.shop-result:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--hairline));
}
.sr-tx { flex: 1; min-width: 0; }
.sr-name { font-weight: 700; color: var(--ink); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-result .lr-go { color: var(--subtle); flex-shrink: 0; }
.shop-result .lr-go svg { width: 16px; height: 16px; }

.shop-hero {
  display: flex; align-items: center; gap: 18px; padding: 20px;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-top: 24px;
}
.shop-hero-tx { min-width: 0; flex: 1; }
.shop-hero-name { font-size: 21px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-hero-sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.shop-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }

/* ── Item detail ──────────────────────────────────────────────────────── */
.item-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: start; margin: 26px 0 60px; }
.gallery-main {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--hairline); display: grid; place-items: center; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main .ph { color: var(--subtle); }
.gallery-main .ph svg { width: 56px; height: 56px; }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 11px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gthumb { width: 66px; height: 66px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; border: 2px solid transparent; background: var(--bg-2); padding: 0; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb.on { border-color: var(--accent); }

.item-title { font-size: 27px; font-weight: 900; letter-spacing: -.028em; color: var(--ink); line-height: 1.15; }
.item-owner { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.item-owner b { color: var(--ink); font-weight: 700; }
.item-price { font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -.03em; margin-top: 16px; font-variant-numeric: tabular-nums; }
.item-price .cur { font-size: 21px; font-weight: 800; }
.item-price.enquire { font-size: 19px; color: var(--muted); font-weight: 700; }
.item-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.item-desc { margin-top: 18px; color: var(--body); font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.item-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--divider); }
.item-block-title { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 11px; }

/* Variation chips */
.varlist { display: flex; flex-wrap: wrap; gap: 9px; }
.varchip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--hairline);
  background: var(--paper); text-align: left; transition: border-color .14s, background .14s, box-shadow .14s;
}
.varchip:hover:not(:disabled) { background: var(--bg-2); }
.varchip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--paper)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.varchip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.varchip .v-label { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.varchip .v-price { font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: 999px; background: var(--paper); overflow: hidden; }
.qty-btn { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); transition: background .12s; }
.qty-btn:hover:not(:disabled) { background: var(--bg-2); }
.qty-btn:disabled { color: var(--subtle); cursor: not-allowed; }
.qty-btn svg { width: 15px; height: 15px; }
.qty-val { min-width: 40px; text-align: center; font-weight: 800; color: var(--ink); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.qty.sm .qty-btn { width: 30px; height: 30px; }
.qty.sm .qty-btn svg { width: 13px; height: 13px; }
.qty.sm .qty-val { min-width: 32px; font-size: 13.5px; }

.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 170px; }

/* ── Cart ─────────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; margin-bottom: 60px; }
.cart-groups { display: flex; flex-direction: column; gap: 18px; }
.cart-biz { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--divider); }
.cart-biz-name { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.cart-biz-sub { font-size: 12px; color: var(--muted); }
.cart-biz .spacer { flex: 1; }

.cart-line { display: flex; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--divider); align-items: flex-start; }
.cart-line:first-child { border-top: none; }
.cart-line.gone { background: color-mix(in srgb, var(--red) 4%, var(--paper)); }
.cl-thumb { width: 78px; height: 78px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-2); display: grid; place-items: center; }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-thumb .ph svg { width: 24px; height: 24px; color: var(--subtle); }
.cl-tx { flex: 1; min-width: 0; }
.cl-name { font-weight: 700; color: var(--ink); font-size: 14.5px; line-height: 1.35; }
.cl-var { font-size: 12.5px; color: var(--accent-2); font-weight: 700; margin-top: 3px; }
.cl-unit { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cl-ctrls { display: flex; align-items: center; gap: 10px; margin-top: 11px; flex-wrap: wrap; }
.cl-right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cl-total { font-weight: 800; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cl-x { width: 30px; height: 30px; border-radius: 8px; color: var(--subtle); display: grid; place-items: center; }
.cl-x:hover { background: var(--red-soft); color: var(--red); }
.cl-x svg { width: 15px; height: 15px; }

.summary { position: sticky; top: 80px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 14px; }
.sum-row .k { color: var(--muted); font-weight: 600; }
.sum-row .v { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-row.total { border-top: 1px solid var(--divider); margin-top: 8px; padding-top: 13px; }
.sum-row.total .k { color: var(--ink); font-weight: 800; font-size: 15px; }
.sum-row.total .v { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.sum-note { font-size: 11.5px; color: var(--subtle); line-height: 1.5; margin-top: 12px; }
.disabled-link { opacity: .45; pointer-events: none; }

/* ── Checkout ─────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-bottom: 60px; }
.mini-line { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-top: 1px solid var(--divider); }
.mini-line:first-child { border-top: none; padding-top: 0; }
.mini-thumb { width: 44px; height: 44px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: var(--bg-2); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-tx { flex: 1; min-width: 0; }
.mini-name { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-amt { font-size: 13.5px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mini-line.gone { opacity: .55; }
.mini-line.gone .mini-sub { color: var(--red); font-weight: 700; }

/* ── Order list ───────────────────────────────────────────────────────── */
.order-list { display: flex; flex-direction: column; gap: 13px; }
.order-card {
  display: block; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .14s, box-shadow .14s;
}
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.oc-head { display: flex; align-items: center; gap: 11px; padding: 13px 17px; border-bottom: 1px solid var(--divider); flex-wrap: wrap; }
.oc-id { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.oc-head .spacer { flex: 1; }
.oc-date { font-size: 12px; color: var(--subtle); font-weight: 600; }
.oc-body { display: flex; gap: 14px; padding: 15px 17px; align-items: center; }
.oc-thumb { width: 58px; height: 58px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-2); display: grid; place-items: center; }
.oc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.oc-thumb .ph svg { width: 22px; height: 22px; color: var(--subtle); }
.oc-tx { flex: 1; min-width: 0; }
.oc-title { font-weight: 700; color: var(--ink); font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-party { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.oc-right { text-align: right; flex-shrink: 0; }
.oc-amt { font-weight: 900; color: var(--ink); font-size: 17px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.oc-count { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ── Order detail ─────────────────────────────────────────────────────── */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-bottom: 60px; }
.order-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.order-hero-tx { min-width: 0; flex: 1; }
.order-hero h1 { font-size: 25px; font-weight: 900; letter-spacing: -.026em; color: var(--ink); }
.order-hero .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }

.oline { display: flex; gap: 13px; padding: 14px 18px; border-top: 1px solid var(--divider); align-items: center; }
.oline:first-child { border-top: none; }
.oline-thumb { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--bg-2); display: grid; place-items: center; }
.oline-thumb img { width: 100%; height: 100%; object-fit: cover; }
.oline-thumb .ph svg { width: 20px; height: 20px; color: var(--subtle); }
.oline-tx { flex: 1; min-width: 0; }
.oline-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.oline-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.oline-cut { color: var(--red); font-weight: 700; }
.oline-amt { font-weight: 800; color: var(--ink); font-size: 14.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* Status timeline */
.tl { display: flex; flex-direction: column; }
.tl-step { display: flex; gap: 13px; position: relative; padding-bottom: 18px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px;
  background: var(--divider);
}
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: color-mix(in srgb, var(--green) 40%, var(--divider)); }
.tl-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; z-index: 1;
  display: grid; place-items: center; background: var(--bg-2);
  border: 2px solid var(--hairline); color: var(--subtle);
}
.tl-dot svg { width: 13px; height: 13px; }
.tl-step.done .tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.tl-step.now .tl-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.tl-step.bad .tl-dot { background: var(--red); border-color: var(--red); color: #fff; }
.tl-tx { min-width: 0; padding-top: 2px; }
.tl-name { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.tl-step:not(.done):not(.now):not(.bad) .tl-name { color: var(--subtle); }
.tl-when { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Payment ledger */
.ledger { display: flex; flex-direction: column; }
.led-row { display: flex; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--divider); align-items: flex-start; }
.led-row:first-child { border-top: none; }
.led-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.led-ic svg { width: 17px; height: 17px; }
.led-ic.ok { background: var(--green-soft); color: var(--green); }
.led-ic.wait { background: var(--amber-soft); color: #9A5F00; }
.led-tx { flex: 1; min-width: 0; }
.led-amt { font-weight: 800; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.led-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.led-note { font-size: 12.5px; color: var(--body); margin-top: 5px; background: var(--bg-2); padding: 7px 10px; border-radius: 8px; word-break: break-word; }
.led-acts { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }

/* Pay-to methods */
.paymethod { display: flex; gap: 12px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--divider); }
.paymethod:first-child { border-top: none; }
.pm-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; }
.pm-ic svg { width: 17px; height: 17px; }
.pm-tx { flex: 1; min-width: 0; }
.pm-k { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pm-v { font-size: 14px; font-weight: 700; color: var(--ink); word-break: break-all; font-variant-numeric: tabular-nums; }
.pm-copy { flex-shrink: 0; }
.pm-qr { width: 130px; border-radius: var(--r-sm); border: 1px solid var(--hairline); }

/* Address block */
.addr { font-size: 14px; line-height: 1.6; color: var(--body); }
.addr b { color: var(--ink); font-weight: 700; display: block; margin-bottom: 3px; }
.addr .ph { color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.addr .ph svg { width: 14px; height: 14px; }

/* Action bar */
.act-bar { display: flex; flex-direction: column; gap: 9px; }
.act-bar .btn { width: 100%; }
.act-split { display: flex; gap: 9px; }
.act-split .btn { flex: 1; }

/* Partial-availability editor */
.partial-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--divider); }
.partial-row:first-child { border-top: none; padding-top: 0; }
.partial-tx { flex: 1; min-width: 0; }
.partial-name { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.partial-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Auth ─────────────────────────────────────────────────────────────── */
.auth-wrap { max-width: 470px; margin: 0 auto; padding: 46px 24px 70px; }
.auth-wrap.wide { max-width: 640px; }
.auth-mark { width: 54px; height: 54px; border-radius: 15px; overflow: hidden; margin: 0 auto 18px; box-shadow: 0 8px 20px rgba(240,138,46,.3); }
.auth-mark img { width: 100%; height: 100%; object-fit: cover; }
.auth-title { font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); text-align: center; line-height: 1.15; }
.auth-sub { color: var(--muted); text-align: center; margin-top: 7px; font-size: 14px; }
.auth-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 24px; margin-top: 26px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.auth-alt a { color: var(--accent-2); font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }
.auth-legal { margin-top: 22px; font-size: 11.5px; color: var(--subtle); text-align: center; line-height: 1.6; }
.auth-legal a { color: var(--muted); text-decoration: underline; }
.auth-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.auth-step { flex: 1; height: 4px; border-radius: 999px; background: var(--divider); }
.auth-step.on { background: var(--accent); }
.captcha-mount { display: flex; justify-content: center; min-height: 68px; align-items: center; }

/* ── Social sign-in ───────────────────────────────────────────────────── */
.social-block { margin-top: 22px; }
.social-block.social-busy { opacity: .55; pointer-events: none; }
.social-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--subtle); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px;
}
.social-divider::before, .social-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--hairline);
}
.social-buttons { display: flex; flex-direction: column; gap: 10px; align-items: center; }
/* Google Identity Services renders its own button into an iframe; the slot just
   reserves the row so the card doesn't jump while the SDK loads. */
.gis-slot { width: 100%; min-height: 44px; display: flex; justify-content: center; }
.gis-slot > div { max-width: 100%; }

/* Apple's Human Interface Guidelines: black fill, white logo + label, and the
   logo must keep its proportions next to the text. */
.btn-apple { background: #000; color: #fff; height: 44px; font-size: 14.5px; font-weight: 600; }
.btn-apple:hover:not(:disabled) { background: #1a1a1a; }
.btn-apple svg { width: 17px; height: 17px; }
@media (prefers-color-scheme: dark) {
  .btn-apple { background: #fff; color: #000; }
  .btn-apple:hover:not(:disabled) { background: #f0f0f0; }
}

/* ── Home ─────────────────────────────────────────────────────────────── */
.home-hero { text-align: center; padding: 66px 0 44px; }
.home-hero h1 { font-size: 44px; font-weight: 900; letter-spacing: -.04em; color: var(--ink); line-height: 1.06; }
.home-hero h1 .hl { color: var(--orange); }
.home-hero p { color: var(--muted); font-size: 16.5px; margin: 16px auto 0; max-width: 520px; line-height: 1.55; }
.home-actions { display: flex; gap: 11px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.home-find { max-width: 460px; margin: 30px auto 0; display: flex; gap: 9px; }
.home-find .searchbox { flex: 1; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; margin: 46px 0 70px; }
.home-tile { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.home-tile-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-deep); display: grid; place-items: center; margin-bottom: 14px; }
.home-tile-ic svg { width: 20px; height: 20px; }
.home-tile h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -.015em; }
.home-tile p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .item-layout, .cart-layout, .checkout-layout, .order-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .home-hero { padding: 42px 0 30px; }
  .home-hero h1 { font-size: 32px; }
  .home-hero p { font-size: 15px; }
  .item-title { font-size: 22px; }
  .item-price { font-size: 25px; }
  .cart-line { padding: 14px; gap: 11px; }
  .cl-thumb { width: 62px; height: 62px; }
  .shop-hero { flex-direction: column; align-items: flex-start; }
  .auth-wrap { padding: 30px 16px 60px; }
}
