/* GOATBUY gold theme (#F2B600). Loaded last.
   Yellow is too light for white text: everything sitting on the gold uses dark ink (#16110E),
   and gold text on white uses the darker --brand-600 (#8F6A00, 5:1 contrast). */
:root {
  --brand: #F2B600;
  --brand-hover: #E0A800;
  --brand-600: #8F6A00;
  --brand-700: #6B4F00;
  --brand-50: #FFF8E1;
  --brand-100: #FFECB0;
  --on-brand: #16110E;
}

/* buttons: gold with dark text */
.btn.primary { --b-bg: var(--brand); --b-fg: var(--on-brand); --b-bd: var(--brand); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 8px rgba(242,182,0,.35); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.primary svg { color: var(--on-brand); }

/* anything filled with gold gets dark ink on top */
.avatar.brand, .tl li.cur .dotc, .hsteps .s.cur i, .side.dark a.on, .side.dark a.on svg, .wh-card.sel .pick,
.howto-list button.on b, .chat-fab, .chat-fab svg, .hdr-search .hs-go, .hdr-search .hs-go svg, .bnav a.on .bi, .bnav a.on .bi svg,
.mb-badge { color: var(--on-brand); }
.chat-fab { box-shadow: 0 10px 30px rgba(242,182,0,.45), var(--sh-2); }
.tl li.cur .dotc { box-shadow: 0 0 0 5px rgba(242,182,0,.25); }

/* the "We buy it" tile */
.tile.brand { background: var(--brand); color: var(--on-brand); }
.tile.brand b, .tile.brand h3, .tile.brand svg.xl { color: var(--on-brand); }
.tile.brand p { color: #4A3800; }

/* small gold text on white: use the darker gold */
.step-body .n, .stars, .star-in button.on { color: var(--brand-600); }
.mock .pill.o { background: var(--brand); color: var(--on-brand); }

/* mobile: promotion card in black and gold */
@media (max-width: 760px) {
  .m-promo { background: radial-gradient(120% 90% at 90% 0%, rgba(242,182,0,.38) 0%, rgba(242,182,0,0) 55%), linear-gradient(135deg, #2A2116 0%, #16110E 70%); box-shadow: 0 14px 34px rgba(22,17,14,.3); }
  .m-promo::before { background: rgba(242,182,0,.12); }
  .m-promo::after { background: rgba(255,255,255,.05); }
  .mp-big { color: var(--brand); text-shadow: none; }
  .mp-off { color: #fff; }
  .mp-tx small { color: #D8CFC8; }
  .mp-cta { background: var(--brand); color: var(--on-brand); }
  .mp-goat { border-color: var(--brand); }

  /* shortcut icons: gold, green, red, blue */
  .m-tiles .g1 svg { background: linear-gradient(140deg, #FFD54A, #F2B600); color: var(--on-brand); }
  .m-tiles .g2 svg { background: linear-gradient(140deg, #4FD1A5, #16A37A); }
  .m-tiles .g3 svg { background: linear-gradient(140deg, #FF6B6B, #E2364A); }
  .m-tiles .g4 svg { background: linear-gradient(140deg, #5AA9FF, #2F6FE0); }

  .mcard.c1 { background: linear-gradient(135deg, #FFF3C8, #FFE08A); } .mcard.c1 .mcard-ic { color: #A67C00; }
  .ms-go { color: var(--on-brand); box-shadow: 0 8px 20px rgba(242,182,0,.35); }
  .ms-res b { color: var(--brand-700); }
  .hdr-search .hs-go { box-shadow: 0 6px 16px rgba(242,182,0,.45); }
  .bnav a.on { color: var(--brand-700); }
  .bnav a.on .bi { box-shadow: 0 8px 18px rgba(242,182,0,.45), 0 0 0 5px #fff; }
}

/* ---------- Confirm Payment ---------- */
.paypg { max-width: 600px; margin: 0 auto; padding: 20px var(--gut) 24px; display: grid; gap: 14px; }
.pp-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.pp-top h1 { margin: 0; text-align: center; font-size: 20px; letter-spacing: -0.01em; }
.pp-back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); transition: transform .15s var(--ease-out); }
.pp-back:active { transform: scale(.94); }
.pp-amount .pp-ref { display: block; font-size: 12px; margin-top: 2px; }
.pp-amount { text-align: center; padding: 6px 0 2px; }
.pp-amount b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 9vw, 44px); letter-spacing: -0.02em; color: var(--brand-600); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pp-amount small { color: var(--muted); font-size: 14px; }
.pp-card { background: var(--surface); border-radius: 16px; padding: 16px 16px 10px; box-shadow: var(--sh-1); }
.pp-card h2 { font-size: 16px; margin: 0 0 8px; letter-spacing: -0.01em; }
.pp-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.pp-row.sub { color: var(--muted); font-size: 13px; padding: 4px 0; }
.pp-row.disc .num { color: var(--ok); }
.pp-row.disc { font-size: 13px; padding: 4px 0; }
.pp-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 15px; }
.pp-row .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-methods { display: grid; }
.pp-m { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 22px; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pp-m:first-child { border-top: 0; }
.pp-m input { position: absolute; opacity: 0; pointer-events: none; }
.pp-logo { white-space: nowrap; width: 40px; height: 28px; border-radius: 7px; display: grid; place-items: center; font: 800 12px/1 var(--f-body); letter-spacing: -0.01em; background: var(--sunken); color: var(--ink); }
.pp-logo svg { width: 18px; height: 18px; }
.pl-applepay { background: #000; color: #fff; }
.pl-googlepay { font-size: 11px; background: #fff; color: #3C4043; box-shadow: inset 0 0 0 1px var(--line-2); }
.pl-bancontact { background: #005498; color: #fff; font-size: 13px; }
.pl-ideal { background: #CC0066; color: #fff; }
.pl-paypal { background: #003087; color: #fff; font-style: italic; font-size: 15px; }
.pl-klarna { background: #FFB3C7; color: #17120F; font-size: 14px; }
.pp-name { font-weight: 600; font-size: 15px; min-width: 0; }
.pp-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.pp-fee { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow .18s var(--ease-out), background .18s var(--ease-out); }
.pp-m input:checked ~ .pp-radio { background: var(--brand); box-shadow: inset 0 0 0 6px var(--brand), inset 0 0 0 11px var(--on-brand); }
.pp-m input:checked ~ .pp-fee { color: var(--brand-700); font-weight: 600; }
.pp-m input:focus-visible ~ .pp-radio { outline: 2px solid var(--brand-600); outline-offset: 3px; }
@media (hover: hover) { .pp-m:hover .pp-radio { box-shadow: inset 0 0 0 2px var(--brand-600); } }
.pp-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); margin: 4px calc(-1 * var(--gut)) 0; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -8px 24px rgba(22,17,14,.08); border-radius: 18px 18px 0 0; }
.pp-sum { display: grid; line-height: 1.15; }
.pp-sum small { color: var(--muted); font-size: 12px; }
.pp-sum b { font-size: 19px; font-variant-numeric: tabular-nums; }
.pp-bar .btn { flex: 1; justify-content: center; border-radius: 999px; }
.pp-fail { justify-self: center; }
@media (max-width: 760px) {
  body[data-route="pay"] .bnav, body[data-route="pay"] .ftr { display: none; }
  body[data-route="pay"] .chat-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body[data-route="pay"] { padding-bottom: 0; }
  body[data-route="pay"] .hdr .hdr-search { display: none; }
}

/* main nav: fits without sideways scrolling (Header.fit adds these steps only when needed).
   Icons stay as long as possible: spacing and size shrink first, icons go only at the last step before wrapping. */
.hdr-nav.fit1 a { padding: 0 8px; gap: 5px; } .hdr-nav.fit1 a::after { left: 8px; right: 8px; } .hdr-nav.fit1 .sep { margin: 12px 4px; }
.hdr-nav.fit2 a { padding: 0 6px; gap: 4px; font-size: 13.5px; } .hdr-nav.fit2 a::after { left: 6px; right: 6px; } .hdr-nav.fit2 a svg { width: 15px; height: 15px; }
.hdr-nav.fit3 a { padding: 0 5px; font-size: 13px; letter-spacing: -0.01em; } .hdr-nav.fit3 a svg { width: 14px; height: 14px; } .hdr-nav.fit3 .sep { margin: 12px 2px; }
.hdr-nav.fit4 a svg { display: none; }
.hdr-nav.fit5 { flex-wrap: wrap; height: auto; row-gap: 0; overflow: visible; } .hdr-nav.fit5 a { height: 38px; } .hdr-nav.fit5 .sep { display: none; } .hdr-nav.fit5 a svg { display: block; }

/* ---------- new user coupons (tickets) ---------- */
.tix { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tix-c { --bgp: var(--bg); position: relative; display: grid; grid-template-columns: 42% 58%; min-height: 128px; border-radius: 14px; background: var(--brand); color: var(--on-brand); overflow: hidden; }
.tix-c::before, .tix-c::after { content: ""; position: absolute; left: calc(42% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--bgp); }
.tix-c::before { top: -9px; } .tix-c::after { bottom: -9px; }
.tix-v { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 12px 14px 16px; border-right: 2px dashed rgba(22,17,14,.35); min-width: 0; }
.tix-v b { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 3.2vw, 30px); letter-spacing: -0.02em; line-height: 1.05; }
.tix-v small { font-size: 12px; color: #4A3800; }
.tix-r { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 12px; text-align: center; min-width: 0; }
.tix-r > b { font-weight: 700; font-size: 15px; line-height: 1.25; }
.tix-r small { font-size: 12px; color: #4A3800; }
.tix-b { margin-top: 2px; border: 0; border-radius: 999px; padding: 7px 20px; background: #fff; color: var(--brand-700); font: 600 13px/1 var(--f-body); cursor: pointer; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.tix-b:hover { box-shadow: 0 4px 12px rgba(22,17,14,.18); } .tix-b:active { transform: scale(.96); }
.tix-b.off { background: rgba(255,255,255,.55); color: #4A3800; cursor: default; box-shadow: none; }
.tix-c.used, .tix-c.expired { background: #E9E2D3; color: var(--muted); } .tix-c.used .tix-v, .tix-c.expired .tix-v { border-right-color: rgba(22,17,14,.18); }
.tix-c.used small, .tix-c.expired small { color: var(--muted); }
.co-cps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.co-cps .xs { width: 100%; }
.co-cp { display: inline-flex; align-items: baseline; gap: 6px; border: 1.5px dashed var(--brand-600); background: var(--brand-50); color: var(--brand-700); border-radius: 10px; padding: 6px 10px; font: 500 12px/1.2 var(--f-body); cursor: pointer; }
.co-cp b { font-size: 14px; } .co-cp.on { background: var(--brand); border-style: solid; border-color: var(--brand); color: var(--on-brand); }
.pl-goat { background: var(--brand); color: var(--on-brand); font-size: 11px; letter-spacing: -0.02em; }
.pl-cp { background: var(--brand-50); color: var(--brand-700); }

/* product page: original link + share */
.pdp-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 10px; }
.pdp-links a, .pdp-links button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font: 500 14px/1.2 var(--f-body); color: var(--brand-700); text-decoration: none; cursor: pointer; }
.pdp-links a:hover span, .pdp-links button:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pdp-links svg { width: 16px; height: 16px; }

.btn.is-loading { opacity: .7; pointer-events: none; }
.pp-m-nofee { grid-template-columns: 40px minmax(0, 1fr) 22px; }

/* log out in the menus */
.side-out, .mnav-out { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--bad); font: 500 14px/1.2 var(--f-body); cursor: pointer; text-align: left; }
.side-out svg, .mnav-out svg { width: 17px; height: 17px; }
.side-out:hover { background: var(--bad-50); }
.side.dark .side-out { color: #FFB4A8; } .side.dark .side-out:hover { background: rgba(255,255,255,.06); }
.mnav-out { font-size: 17px; padding: 14px 4px; border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; }
.mnav-out svg { width: 20px; height: 20px; }
@media (max-width: 1024px) {
  .side { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .side::-webkit-scrollbar { display: none; }
  .side-out { width: auto; flex: none; white-space: nowrap; }
}
@media (max-width: 760px) {
  /* promo: text, then the button, never on top of each other */
  .mp-cta { position: static; justify-self: start; margin-top: 10px; }
  .m-promo { min-height: 0; }
  /* shortcuts: labels wrap inside their column (Safari) */
  .m-tiles a { min-width: 0; }
  .m-tiles a > span:last-child { max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 1024px) { .tabs { scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } }

/* admin › Prices */
.prc-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.prc-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.prc-bi { width: 112px; } .prc-bi .input { min-height: 34px; }
.prc-t td { vertical-align: middle; padding-top: 6px; padding-bottom: 6px; }
.prc-t .input { min-height: 34px; max-width: 96px; padding: 6px 8px; } .prc-t .input.sm { max-width: 72px; }
.prc-t .prc-cost { background: var(--brand-50); }
.prc-t tr.prc-off td:not(:first-child):not(:nth-child(2)) { opacity: .45; }
.prc-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.prc-savebar { position: sticky; bottom: 0; z-index: 4; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
@media (max-width: 760px) { .prc-savebar { bottom: calc(76px + env(safe-area-inset-bottom)); } .prc-bulk .prc-sep { display: none; } }
@media (max-width: 760px) {
  /* shortcuts: bigger, every icon exactly in the middle of its tile (flex, not grid: Safari) */
  .m-tiles { gap: 10px; margin: 24px 0 8px; }
  .m-tiles a { width: 100%; font-size: 13px; gap: 9px; }
  .m-tiles .mt { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 78px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 24px; }
  .m-tiles .mt svg { display: block; flex: none; margin: 0; width: 28px; height: 28px; padding: 8px; border-radius: 14px; }
  .m-promo { min-height: 150px; }
}

/* home hero: the typed link was white on white */
.hero2 .bigsearch input { color: var(--ink); }
.hero2 .bigsearch input::placeholder { color: var(--muted); }

/* product options: tidy grid of chips, size number first, colour photo chips */
#pdp-opts .swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
#pdp-opts .sw { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-align: left; font-weight: 600; font-size: 14px; line-height: 1.2; transition: border-color .15s var(--ease-out), background .15s var(--ease-out), box-shadow .15s var(--ease-out), transform .12s var(--ease-out); }
#pdp-opts .sw.img { padding: 5px 10px 5px 5px; }
#pdp-opts .sw.img img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
#pdp-opts .sw-t { display: flex; flex-direction: column; min-width: 0; max-width: none; white-space: normal; overflow: visible; }
#pdp-opts .sw-t b { font-size: 15px; font-weight: 700; }
#pdp-opts .sw-t small { font-size: 11.5px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#pdp-opts .sw span { max-width: none; white-space: normal; }
@media (hover: hover) { #pdp-opts .sw:hover { border-color: var(--ink-2); box-shadow: 0 4px 12px rgba(22,17,14,.06); } }
#pdp-opts .sw.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand) inset; color: var(--ink); }
#pdp-opts .sw.on::after { content: ""; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316110E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: 0 0 0 2px #fff; }
#pdp-opts .sw.na { opacity: .38; }
#pdp-opts .sw.na .sw-t { text-decoration: line-through; }
@media (max-width: 760px) { #pdp-opts .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* warehouse address window: photo, address, map */
.wh-addr { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.wh-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.wh-lines { font-style: normal; font-weight: 600; line-height: 1.55; margin-top: 12px; }
.wh-map { display: block; width: 100%; height: 320px; border: 0; border-radius: 14px; margin-top: 18px; background: var(--sunken); }
@media (max-width: 640px) { .wh-addr { grid-template-columns: 1fr; } .wh-photo { aspect-ratio: 16 / 9; } .wh-map { height: 240px; } }

/* public parcel tracking page */
.trk { max-width: 820px; padding-top: 32px; padding-bottom: 64px; }
.trk-form { display: flex; gap: 8px; margin: 18px 0 24px; }
.trk-form .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.trk-own { padding: 14px; border-radius: 14px; background: var(--brand-50); margin-bottom: 14px; }

/* country picker */
.cpick { position: relative; }
.cpick-btn { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 500 15px/1.2 var(--f-body); cursor: pointer; text-align: left; transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.cpick-btn:hover { border-color: var(--ink-2); }
.cpick-btn[aria-expanded="true"], .cpick-btn:focus-visible { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(242,182,0,.22); outline: none; }
.cpick-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-btn svg { color: var(--muted); width: 18px; height: 18px; }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; background: var(--sunken); }
.cpick-pop { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); overflow: hidden; animation: pop .16s var(--ease-out); }
.cpick-s { position: relative; padding: 8px; border-bottom: 1px solid var(--line); }
.cpick-s svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.cpick-q { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 0; border-radius: 10px; background: var(--sunken); font: 500 14px var(--f-body); color: var(--ink); outline: none; }
.cpick-pop ul { list-style: none; margin: 0; padding: 6px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.cpick-pop li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; }
.cpick-pop li span { flex: 1; }
.cpick-pop li svg { width: 16px; height: 16px; color: var(--brand-600); }
.cpick-pop li:hover, .cpick-pop li.act { background: var(--sunken); }
.cpick-pop li[aria-selected="true"] { font-weight: 600; background: var(--brand-50); }
.calc-top .cpick { min-width: 220px; }
.ms-cp { padding: 0 !important; background: none !important; }
.ms-cp .cpick-btn { min-height: 48px; border-radius: 999px; border-color: transparent; background: var(--sunken); }
/* cargo category cards */
.cargo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cargo-o { position: relative; display: block; cursor: pointer; }
.cargo-o input { position: absolute; opacity: 0; pointer-events: none; }
.cargo-o span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s var(--ease-out), background .15s var(--ease-out); }
.cargo-o b { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.cargo-o small { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.cargo-o:hover span { border-color: var(--ink-2); }
.cargo-o input:checked + span { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand-600) inset; }
.cargo-o input:focus-visible + span { outline: 2px solid var(--brand-600); outline-offset: 2px; }
@media (max-width: 420px) { .cargo { grid-template-columns: 1fr; } }
.cpick-pop li[hidden] { display: none; }
.cargo-o small { overflow-wrap: anywhere; }

/* admin language switch (EN / 中文) */
.alang { display: flex; gap: 4px; margin: 4px 12px 12px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,.06); }
.alang button { flex: 1; height: 30px; border: 0; border-radius: 7px; background: transparent; color: rgba(255,255,255,.7); font: 600 13px var(--f-body); cursor: pointer; transition: background .15s var(--ease-out), color .15s var(--ease-out); }
.alang button[aria-pressed="true"] { background: var(--brand); color: #16110E; }
.alang button:hover:not([aria-pressed="true"]) { color: #fff; }

.cpick-ic { width: 22px; text-align: center; font-size: 17px; line-height: 1; flex: none; }
.cpick-pop li .cpick-ic, .cpick-btn .cpick-ic { flex: none; }
.cpick-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700, #8F6A00); }
.cpick-ic svg { width: 16px; height: 16px; }

/* ---------- QC Studio (admin): order cards, then one big card per item ---------- */
.qcs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.qcs-order { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s; }
.qcs-order:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 24px rgba(22,17,14,.08); }
.qcs-order:active { transform: translateY(0) scale(.99); }
.qcs-mosaic { display: grid; aspect-ratio: 4 / 3; background: var(--sunken); gap: 2px; }
.qcs-mosaic.n2 { grid-template-columns: 1fr 1fr; }
.qcs-mosaic.n3, .qcs-mosaic.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.qcs-mosaic.n3 .qcs-pic:first-child { grid-row: span 2; }
.qcs-pic { display: block; overflow: hidden; min-height: 0; }
.qcs-pic img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0; }
.qcs-meta { padding: 12px 14px 14px; display: grid; gap: 4px; }
.qcs-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; }
.qcs-item.todo { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.qcs-item.done { background: #FDFCFB; }
.qcs-prod { display: flex; gap: 14px; align-items: flex-start; }
.qcs-prod .thumb.lg { width: 96px; height: 96px; }
.qcs-prod h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.35; }
.qcs-wait, .qcs-req, .qcs-next { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r); background: var(--sunken); }
.qcs-wait > div { flex: 1; min-width: 180px; }
.qcs-req { background: var(--info-50); align-items: flex-start; }
.qcs-next { background: var(--ok-50); margin-bottom: 14px; }
.qcs-next > div { flex: 1; }
.qcs-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.qcs-cats button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.qcs-cats button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.qcs-cats button.bad.on { background: var(--bad); border-color: var(--bad); }
.qcs-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.qcs-add { aspect-ratio: 1; border: 2px dashed var(--brand); border-radius: 12px; background: var(--brand-50); display: grid; place-content: center; justify-items: center; gap: 4px; cursor: pointer; text-align: center; color: var(--ink); transition: background .15s, transform .15s var(--ease-out); }
.qcs-add:hover { background: #FFF1C2; }
.qcs-add:active { transform: scale(.97); }
.qcs-add svg { width: 30px; height: 30px; }
.qcs-add small { color: var(--muted); }
.qcs-ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); }
.qcs-ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.qcs-ph .tag { position: absolute; left: 6px; bottom: 6px; background: rgba(22,17,14,.75); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 5px; font-weight: 600; }
.qcs-ph .tag.bad { background: var(--bad); }
.qcs-ph .x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; }
.qcs-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qcs-actions .btn.lg { min-width: 150px; }
.btn.qcs-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.qcs-bad { background: var(--surface); border-color: var(--bad); color: var(--bad); }
.btn.qcs-ok:disabled, .btn.qcs-bad:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) { .qcs-actions .btn.lg { flex: 1; min-width: 0; } .qcs-prod .thumb.lg { width: 72px; height: 72px; } }

/* ---------- owner text editing on the site (Admin › Content › All texts) ---------- */
.txe-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(22,17,14,.25); font-size: 14px; max-width: calc(100vw - 32px); }
.txe-bar svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.txe-bar .btn { background: var(--brand); color: var(--ink); border-color: var(--brand); }
body:has(.txe-bar) main *:hover { outline: 1px dashed var(--brand); outline-offset: 2px; cursor: text; }

/* ---------- Mobile polish (2026-12-02): calmer and more professional, same layout and colours ----------
   One accent colour (gold) instead of four, flat bottom bar, quieter floating buttons, a slightly shorter header. */
@media (max-width: 760px) {
  /* header: less height before the content starts */
  .hdr-top { padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .lc-btn, .cur-btn, .menu-btn { width: 40px; height: 40px; box-shadow: none; }
  .hdr-search .input { min-height: 46px; box-shadow: none; }
  .hdr-search .hs-go { width: 46px; height: 46px; box-shadow: none; }

  /* promotion card: straight logo */
  .mp-goat { transform: none; box-shadow: 0 6px 14px rgba(0,0,0,.22); }

  /* shortcuts: one gold tint instead of four bright gradients */
  .m-tiles .mt { background: #fff; border: 1px solid var(--line); box-shadow: none; }
  .m-tiles .g1 svg, .m-tiles .g2 svg, .m-tiles .g3 svg, .m-tiles .g4 svg { background: var(--brand-50); color: var(--brand-700); }

  /* swipe cards: white cards instead of pink and purple pastels */
  .mcard.c1, .mcard.c2, .mcard.c3 { background: #fff; border: 1px solid var(--line); }
  .mcard.c1 .mcard-ic, .mcard.c2 .mcard-ic, .mcard.c3 .mcard-ic { color: var(--brand); opacity: .45; }

  /* bottom bar: flat, the current tab gets a soft gold pill (no floating circle over the content) */
  .bnav { border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); padding-top: 6px; }
  .bnav a { justify-content: center; gap: 2px; min-height: 50px; color: var(--muted); }
  .bnav a.on { color: var(--ink); font-weight: 700; }
  body .bnav a.on .bi { position: relative; top: auto; left: auto; margin-left: 0; width: 54px; height: 30px; border-radius: 999px; background: var(--brand-50); box-shadow: none; animation: none; }
  body .bnav a.on .bi, body .bnav a.on .bi svg { color: var(--brand-700); }
  body .bnav a.on .bi svg { width: 22px; height: 22px; }
  .bnav a.on .bi b { top: -5px; right: 6px; background: var(--brand-600); }

  /* chat button: smaller and quieter, hidden while the menu is open */
  .chat-fab { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(22,17,14,.12); }
  body .chat-fab svg { color: var(--ink); }
  body:has(.mnav) .chat-fab { display: none; }

  /* stacked buttons take the full width */
  .team-tx .row .btn { flex: 1 1 100%; justify-content: center; }
}

/* product page on phones: the price and Add to Cart stay at hand above the bottom bar (options lists can be long) */
.pdp-mbar { display: none; }
@media (max-width: 760px) {
  .pdp-mbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 60; padding: 10px var(--gut); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(22,17,14,.06); }
  .pmb-tx { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
  .pmb-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pmb-tx b { font-family: var(--f-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
  .pdp-mbar .btn { flex: none; min-height: 46px; padding: 0 18px; border-radius: 999px; }
  body[data-route="product"] { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  body[data-route="product"] .chat-fab { bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* ---------- Phone navigation (2026-12-02): fewer layers, everything one tap away ---------- */
.m-search, .m-back, table.t .tl { display: none; }
@media (max-width: 760px) {
  /* header: logo + search shortcut + bell + language/currency (one menu) + menu */
  .hdr-top { column-gap: 6px; }
  .hdr-actions { gap: 6px; }
  .cur-btn { display: none !important; }
  .hdr-actions > a.icon-btn[href="#/notifications"], .m-search { display: grid; place-items: center; position: relative; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); }
  .hdr-actions > a.icon-btn[href="#/notifications"] svg, .m-search svg { width: 20px; height: 20px; }
  .hdr-actions > a.icon-btn[href="#/notifications"] .dot { top: -2px; right: -2px; }
  /* the big link bar only where people start a purchase; elsewhere the round search button opens Search */
  body[data-route]:not([data-route="home"]):not([data-route="product"]) .hdr .hdr-search { display: none; }
  body[data-route="home"] .m-search, body[data-route="product"] .m-search, body[data-route="search"] .m-search { display: none; }

  /* account area: no sideways strip of 15 links on every page */
  .shell { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-top: 12px; }
  .shell > .side { display: none; }
  /* "Me" page: the same links as a clear list under the overview */
  body[data-route="account"] .shell > .side { display: block; order: 2; position: static; overflow: visible; max-height: none; padding: 6px; }
  body[data-route="account"] .shell > .side .who { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 4px; padding: 12px 10px; }
  body[data-route="account"] .shell > .side a, body[data-route="account"] .shell > .side .side-out { min-height: 48px; font-size: 15px; padding: 10px 12px; white-space: normal; }
  body[data-route="account"] .shell > .side a + a { border-top: 1px solid var(--sunken); border-radius: 0; }
  body[data-route="account"] .shell > .side a.on { display: none; }
  body[data-route="account"] .shell > .side :is(a[href="#/search"], a[href="#/cart"], a[href="#/orders"], a[href="#/warehouse"]) { display: none; }   /* already in the bottom bar / header */
  .m-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin: -4px 0 4px -6px; padding: 0 6px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
  .m-back svg { width: 18px; height: 18px; }

  /* dashboard numbers: 2 x 2, labels readable */
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px; }
  .stat .l { white-space: normal; }

  /* lists (orders, parcels, tickets, wallet): one card per row instead of a table that scrolls sideways */
  .table-wrap:has(> table.stack) { border: 0; background: none; box-shadow: none; overflow: visible; }
  table.stack, table.stack tbody { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
  table.stack td { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0; border: 0; min-width: 0; font-size: 14px; }
  table.stack td:first-child { font-size: 15px; display: block; }
  table.stack td .tl { display: inline; color: var(--muted); font-size: 12.5px; font-weight: 500; flex: none; }
  table.stack td > .row { min-width: 0; flex: 1; justify-content: flex-end; overflow: hidden; }
  table.stack td .small[style*="max-width"] { max-width: 150px !important; }
  table.stack tr.click:active { background: var(--sunken); }

  /* chat button only where people browse; in the account area Support is in the Me page */
  body:is([data-route="account"], [data-route="orders"], [data-route="warehouse"], [data-route="parcels"], [data-route="cart"], [data-route="checkout"], [data-route="pay"], [data-route="coupons"], [data-route="notifications"], [data-route="support"], [data-route="profile"], [data-route="settings"], [data-route="wallet"]) .chat-fab { display: none; }
}

/* an element marked hidden always stays hidden, even when its class sets a display (login code field) */
[hidden] { display: none !important; }
