/* ============ IEUM — light gray + chrome theme (easy on the eyes) ============ */
:root {
  --bg: #eceef1;
  --bg-2: #e4e6ea;
  --panel: #f7f8fa;
  --line: #d6d9df;
  --line-2: #c3c7cf;
  --text: #17181b;
  --muted: #696e78;
  /* gunmetal for chrome text, soft silver for chrome buttons */
  --chrome: linear-gradient(180deg, #2b2e34 0%, #6d727c 45%, #23252a 60%, #5b6069 100%);
  --chrome-btn: linear-gradient(100deg, #b9bdc4 0%, #eef0f3 22%, #c9ccd2 45%, #f7f8fa 58%, #b4b8bf 80%, #e3e5e9 100%);
  --serif: "Cinzel", "Noto Serif KR", serif;
  --sans: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  --tab-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.chrome {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.15));
}
.serif { font-family: var(--serif); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 14px;
  background: rgba(236,238,241,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-actions { display: flex; justify-content: flex-end; gap: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; }
.badge-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--chrome-btn); color: #eceef1; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-en { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: .06em; }
.logo-left { align-items: flex-start; }
.desktop-nav { display: none; }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(236,238,241,0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.tabbar a.active { color: #17181b; }
.tabbar a.active svg { stroke-width: 2; filter: drop-shadow(0 0 6px rgba(255,255,255,0)); }

/* ---------- Common ---------- */
.page { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.container { padding: 0 14px; }
.section-title { font-family: var(--serif); font-size: 20px; letter-spacing: .12em; margin: 34px 14px 14px; display: flex; justify-content: space-between; align-items: baseline; }
.section-title a { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .05em; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; border-radius: 4px;
  font-size: 15px; letter-spacing: .08em; transition: transform .15s, filter .2s;
}
.btn:active { transform: scale(.98); }
.btn-chrome {
  background: var(--chrome-btn); background-size: 200% 100%;
  color: #e1e3e6; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0), inset 0 -2px 4px rgba(0,0,0,0.087), 0 0 18px rgba(255,255,255,0);
}
.btn-outline { border: 1px solid #28292c; color: #17181b; }
.btn-outline:hover { background: rgba(23,24,27,0.06); }

.chip {
  display: inline-block; font-size: 10px; letter-spacing: .06em; padding: 3px 8px;
  background: rgba(0,0,0,.65); border: 1px solid rgba(23,24,27,0.4);
}
.chip.light { background: #17181b; color: #eceef1; border-color: #17181b; }

/* ---------- Home ---------- */
.circle-btn { width: 44px; height: 44px; border: 1px solid #242528; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.circle-btn:hover { background: rgba(23,24,27,0.12); }


.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-top: 30px; white-space: nowrap; }
.marquee div { display: inline-block; animation: marquee 22s linear infinite; font-family: var(--serif); font-size: 13px; letter-spacing: .3em; color: #414346; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Shop ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 7px 12px; font-size: 13px; color: #313235; border: 1px solid transparent; border-radius: 3px; }
.tabs a.active { background: #17181b; color: #eceef1; font-weight: 500; }
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 14px 12px; font-size: 14px; }
.select { background: var(--bg); color: var(--text); border: 1px solid var(--line-2); padding: 6px 10px; font: inherit; font-size: 12px; border-radius: 3px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; padding: 0 14px; }
.card { position: relative; }
.card-img { position: relative; aspect-ratio: 3 / 4.6; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; }
.card:hover .card-img img { transform: scale(1.05); filter: brightness(1.12); }
.card-img .chip { position: absolute; top: 8px; left: 8px; }
.heart { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; display: grid; place-items: center; z-index: 2; }
.heart svg { filter: drop-shadow(0 1px 2px #000); }
.heart.on svg { fill: #17181b; }
.card-info { padding-top: 10px; }
.card-info .en { font-size: 11px; letter-spacing: .04em; color: #303134; text-transform: uppercase; }
.card-info .kr { font-size: 12px; color: var(--muted); margin-top: 3px; }
.price { font-family: var(--serif); font-weight: 600; font-size: 16px; margin-top: 6px; letter-spacing: .02em; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; line-height: 1.8; }

/* ---------- Product detail ---------- */
.pd-gallery { display: grid; grid-template-columns: 1fr 64px; gap: 8px; padding: 14px 14px 0; }
.pd-main { aspect-ratio: 3 / 4.4; overflow: hidden; border: 1px solid var(--line); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; flex-direction: column; gap: 8px; }
.pd-thumbs button { aspect-ratio: 3 / 4.4; overflow: hidden; border: 1px solid var(--line); opacity: .55; transition: opacity .2s; }
.pd-thumbs button.active, .pd-thumbs button:hover { opacity: 1; border-color: #242528; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 18px 14px; }
.pd-title { display: flex; justify-content: space-between; gap: 10px; }
.pd-title h1 { font-weight: 400; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.pd-title p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pd-title .actions { display: flex; }
.pd-title .actions .on svg { fill: #17181b; }
.pd-price { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 10px 0 20px; }
.opt-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.opt-row > label { width: 52px; font-size: 12px; letter-spacing: .08em; color: #313235; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid #a2a3a6; outline-offset: 1px; }
.swatch.active { outline: 2px solid #17181b; }  /* swatches show the real product colors */
.swatch[data-c="silver"] { background: radial-gradient(circle at 30% 30%, #fff, #8f8f8f 60%, #d9d9d9); }
.swatch[data-c="gunmetal"] { background: radial-gradient(circle at 30% 30%, #9a9a9a, #3c3c3c 60%, #6b6b6b); }
.swatch[data-c="black"] { background: #000; }
.size { min-width: 44px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); font-size: 12px; }
.size.active { border-color: #17181b; background: #17181b; color: #eceef1; }
.size-guide { margin-left: auto; font-size: 11px; text-decoration: underline; color: #313235; }
.pd-buttons { display: grid; gap: 10px; margin: 22px 0 18px; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; padding: 14px 2px; font-size: 13px; letter-spacing: .06em; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 18px; line-height: 1; color: #bbb; }
.accordion details[open] summary::after { content: "−"; }
.accordion .acc-body { padding: 0 2px 16px; color: #494a4d; font-size: 13px; line-height: 1.8; }

/* ---------- Cart ---------- */
.big-chrome-title {
  display: grid; place-items: center; height: 130px; margin: 14px; border: 1px solid var(--line); overflow: hidden; position: relative;
  background:
    repeating-linear-gradient(-12deg, transparent 0 18px, rgba(23,24,27,0.07) 18px 19px),
    radial-gradient(ellipse at center, #cacccf, #eaecef 70%);
}
.big-chrome-title h1 { font-family: "Pirata One", var(--serif); font-weight: 400; font-size: 46px; letter-spacing: .04em; transform: skewX(-4deg); }
.cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 78px; height: 100px; object-fit: cover; border: 1px solid var(--line); }
.cart-item .en { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.cart-item .kr { font-size: 12px; color: var(--muted); margin: 3px 0; }
.cart-item .opt { font-size: 11px; color: var(--muted); }
.cart-item .price { font-size: 15px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); margin-top: 8px; }
.qty button { width: 28px; height: 26px; }
.qty span { width: 30px; text-align: center; font-size: 12px; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); line-height: 26px; }
.cart-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-side svg { width: 20px; height: 20px; }
.coupon { display: grid; grid-template-columns: 1fr 70px; gap: 8px; margin: 18px 0; }
.input {
  width: 100%; height: 44px; padding: 0 12px; background: #e6e8eb; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 3px; font: inherit; font-size: 13px; outline: none; transition: border-color .2s;
}
.input:focus { border-color: #313235; }
.coupon button { border: 1px solid #242528; border-radius: 3px; font-size: 13px; }
.summary { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 8px; font-size: 13px; }
.summary div { display: flex; justify-content: space-between; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-size: 16px; }
.summary .total b { font-family: var(--serif); font-size: 22px; }
.summary .discount { color: #313235; }

/* ---------- Lookbook ---------- */
.subtabs { display: flex; gap: 22px; padding: 14px 16px 0; border-bottom: 1px solid var(--line); }
.subtabs a { padding-bottom: 10px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.subtabs a.active { color: #17181b; border-bottom: 1px solid #17181b; }
.look { position: relative; padding: 14px; }
.look-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.look-row img { width: 100%; height: 100%; aspect-ratio: 3/4.4; object-fit: cover; }
.look-quote { display: flex; align-items: center; padding: 0 0 0 14px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; letter-spacing: .02em; }
.look-quote span { font-family: "Pirata One", serif; font-style: normal; font-size: 26px; }
.look-row.second { margin-top: -40px; }
.look-row.second .look-text { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 14px 14px 0; }
.look-text h2 { font-family: "Noto Serif KR", serif; font-weight: 400; font-size: 19px; line-height: 1.6; }
.look-text small { display: block; margin-top: 22px; font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.list-plain { list-style: none; }
.list-plain li { border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 13px; line-height: 1.6; }
.list-plain li small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.about-text { padding: 20px 16px; line-height: 2; color: #313235; font-size: 14px; }
.about-text h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 14px; color: #17181b; }

/* ---------- Login ---------- */
.my-hero { position: relative; display: grid; place-items: center; padding: 26px 0 6px; }
/* login / member page title: crisp type instead of a picture */
.my-mark { display: grid; justify-items: center; gap: 2px; padding: 18px 0 4px; font-family: var(--serif); }
.my-mark small { font-size: 13px; letter-spacing: .55em; padding-left: .55em; color: var(--muted); }
.my-mark b { font-size: 46px; font-weight: 600; letter-spacing: .14em; padding-left: .14em; line-height: 1.1; }
.my-line { display: flex; align-items: center; gap: 10px; width: 180px; margin-bottom: 10px; color: #8a8f98; }
.my-line::before, .my-line::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #b4b8bf); }
.my-line::after { background: linear-gradient(90deg, #b4b8bf, transparent); }
.my-line i { font-style: normal; font-size: 12px; }
.login-sub { text-align: center; color: #313235; font-size: 13px; margin-bottom: 26px; }
.form { padding: 0 16px; display: grid; gap: 14px; }
.form label { font-size: 12px; color: #313235; display: grid; gap: 7px; }
.form .links { display: flex; justify-content: center; gap: 16px; font-size: 12px; color: #313235; }
.or { text-align: center; color: var(--muted); font-size: 12px; position: relative; }
.social { display: grid; gap: 10px; }
.social .btn { height: 44px; font-size: 13px; letter-spacing: 0; border: 1px solid var(--line-2); position: relative; }
.social .btn:hover { border-color: #242528; }
.social .btn .s-ico { position: absolute; left: 16px; font-weight: 700; font-size: 18px; display: grid; place-items: center; }
.social .btn .s-ico svg { width: 20px; height: 20px; }

/* ---------- My page ---------- */
.profile { display: flex; align-items: center; gap: 18px; padding: 24px 16px; border-bottom: 1px solid var(--line); }
.profile img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 1px solid #737477; box-shadow: 0 0 0 4px #111, 0 0 0 5px #444; }
.profile b { font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: .08em; }
.profile p { font-size: 12px; color: #313235; margin-top: 4px; line-height: 1.5; }
.menu-list { list-style: none; padding: 0 16px; }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.menu-list a::after { content: "›"; margin-left: auto; font-size: 20px; color: #aaa; line-height: 1; }
.menu-list svg { width: 20px; height: 20px; }
.menu-list .count { color: var(--muted); font-size: 12px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute; top: 0; left: 0; height: 100%; height: 100dvh; width: min(88vw, 380px);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
  background: #eaecef; border-right: 1px solid var(--line); padding: 16px 18px calc(40px + env(safe-area-inset-bottom));
  transform: translateX(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.drawer.open .drawer-panel { transform: none; }
/* while the menu is open the page behind it doesn't scroll (iOS otherwise scrolls the page instead of the menu) */
html.no-scroll, html.no-scroll body { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 22px; padding: 0 14px; height: 42px; margin-bottom: 14px; }
.search svg { width: 18px; height: 18px; color: #535457; flex: none; }
.search input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 13px; }
.drawer-list { list-style: none; }
.drawer-list a { display: flex; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.drawer-list li:not(:first-child) a::after { content: "›"; color: #888; }
.drawer-list li:first-child a { font-weight: 500; }
.socials { display: flex; justify-content: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.socials a { display: grid; place-items: center; width: 28px; height: 28px; }
.socials .naver { font-weight: 700; font-size: 20px; font-family: Arial, sans-serif; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--chrome-btn); color: #eceef1; padding: 12px 20px; border-radius: 3px;
  font-size: 13px; font-weight: 500; white-space: nowrap; transition: .3s; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* member button lives in the bottom tab bar on phones, in the header on desktop */
.account-link { display: none; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .account-link { display: inline-flex; width: auto; gap: 6px; padding: 0 6px; }
  .account-label { font-size: 11px; letter-spacing: .12em; color: #313235; }
  .chat-fab { bottom: 24px; }
  .chat-box { bottom: 88px; }
  .header { padding: 0 32px; grid-template-columns: auto auto 1fr auto; gap: 24px; height: 76px; }
  .header .logo { flex-direction: row; align-items: baseline; gap: 10px; }
  .desktop-nav { display: flex; justify-content: flex-end; gap: 28px; font-size: 13px; letter-spacing: .14em; }
  .desktop-nav a { color: #313235; transition: color .2s; }
  .desktop-nav a:hover { color: #17181b; }
  #app { max-width: 1240px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 30px 18px; padding: 0 24px; }
  .tabs, .toolbar { padding-left: 24px; padding-right: 24px; }
  .pd-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: 30px 24px; }
  .pd-gallery { padding: 0; grid-template-columns: 1fr 90px; }
  .pd-info { padding: 0; }
  .narrow { max-width: 560px; margin: 0 auto; }
  .look-row img { aspect-ratio: 3/3.4; }
  .toast { bottom: 30px; }
}
.icon-btn.on svg { fill: #17181b; }
.badge-count[hidden] { display: none; }

/* ---------- v2 additions ---------- */
body[data-lang="zh"] { font-family: "Noto Sans TC", var(--sans); }
[hidden] { display: none !important; }
.announce { background: var(--chrome-btn); color: #e1e3e6; text-align: center; font-size: 11px; letter-spacing: .08em; padding: 6px 10px; font-weight: 500; }
.loading { display: grid; place-items: center; height: 60vh; font-family: var(--serif); font-size: 40px; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .3; } to { opacity: 1; } }
.spacer { height: 40px; }
.muted { color: var(--muted); margin-top: 14px; }
.mt { margin-top: 10px; } .mt-lg { margin-top: 34px; }
s { color: var(--muted); font-size: .75em; font-weight: 400; margin-left: 6px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.lang-switch button { padding: 5px 9px; font-size: 11px; color: var(--muted); }
.lang-switch button + button { border-left: 1px solid var(--line-2); }
.lang-switch button.active { background: #17181b; color: #eceef1; font-weight: 500; }
.header .lang-switch { display: none; align-self: center; margin-right: 6px; }
.drawer-lang { display: flex; margin-top: 22px; }
.drawer-lang button { flex: 1; padding: 9px 0; font-size: 12px; }

.btn:disabled { opacity: .35; cursor: not-allowed; animation: none; }
.btn-lg { font-size: 17px; height: 54px; }
.size:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.swatch-text { width: auto; min-width: 30px; border-radius: 15px; padding: 0 10px; font-size: 11px; background: #d9dbde; }
#sizes { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.stock-note { color: #9a6b12; font-size: 12px; min-height: 16px; margin-top: -6px; }
.warn { color: #c0392b; font-size: 11px; margin-top: 4px; }
.cart-item.unavailable img { opacity: .4; }
.qty button:disabled { opacity: .3; }

.status { display: inline-block; font-family: var(--sans); font-size: 11px; letter-spacing: .04em; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 10px; color: #242528; }
.st-pending { color: #9a6b12; border-color: #d9c9a3; }
.st-paid, .st-processing { color: #1f5f8b; border-color: #8fb6d3; }
.st-shipped { color: #5b3fa8; border-color: #b7a6e0; }
.st-completed { color: #1f7a32; border-color: #9cc9a5; }
.st-cancelled, .st-refunded { color: #636467; }

.section-title.flush { margin-left: 0; margin-right: 0; }
.form.flush { padding: 0; }
.form textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.form-head { font-size: 12px; letter-spacing: .12em; color: #17181b; margin-top: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.row2 { display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.mini-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.mini-line img { width: 48px; height: 60px; object-fit: cover; border: 1px solid var(--line); }
.mini-line small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.mini-line b { font-family: var(--serif); font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv span { color: var(--muted); } .kv b { font-weight: 400; }
.addr { font-size: 13px; line-height: 1.8; color: #313235; margin: 10px 0; }
.pay-banner { margin: 16px 0 0; padding: 14px; border: 1px solid #d9c9a3; color: #9a6b12; font-size: 13px; text-align: center; }
.pay-banner.ok { border-color: #333538; color: #e1e3e6; background: var(--chrome-btn); font-weight: 500; }
.order-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.order-row img { width: 52px; height: 66px; object-fit: cover; border: 1px solid var(--line); }
.order-row b { font-weight: 500; }
.order-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.order-row .right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.order-row .right b { font-family: var(--serif); }
.menu-list > li > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 13px; text-align: left; }
.menu-list .lang-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.menu-list .lang-row .lang-switch { margin-left: auto; }
.menu-list a > span:not(.count) { flex: 1; }
.menu-list a::after { margin-left: 4px; }
.menu-list .count { margin-left: 0; }
.accordion summary small { margin-left: auto; margin-right: 12px; color: var(--muted); font-size: 11px; }
.look-row img.framed { border: 6px solid var(--bg); }
.form .links a { text-decoration: underline; }

@media (min-width: 900px) {
  .header .lang-switch { display: inline-flex; }
}
.lang-switch button { white-space: nowrap; }

/* social login buttons */
.social .btn.s-line { background: #06C755; border-color: #06C755; color: #fff; font-weight: 500; }
.social .btn.s-google { background: #fff; border-color: #fff; color: #222; font-weight: 500; }
.social .btn.s-kakao { background: #FEE500; border-color: #FEE500; color: #191919; font-weight: 500; }
.social .btn:hover { filter: brightness(1.05); }
#socialBtns { display: grid; gap: 10px; }

/* ---------- checkout options, store pickup, bank transfer, after-sales ---------- */
.opts { display: grid; gap: 8px; }
.opts .opt { display: flex !important; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); cursor: pointer; font-size: 13px !important; color: var(--text) !important; }
.opts .opt:has(input:checked) { border-color: #28292c; background: rgba(23,24,27,0.04); }
.opts .opt input { accent-color: #191a1d; width: 16px; height: 16px; }
.store-box { display: grid; gap: 6px; padding: 14px; border: 1px dashed var(--line-2); font-size: 13px; }
.store-box small { color: var(--muted); font-size: 12px; }
.store-box .btn { margin-top: 6px; }
.bank-box { border: 1px solid var(--line-2); padding: 4px 14px; background: rgba(23,24,27,0.02); }
.bank-box .kv:last-child { border-bottom: 0; }
.bank-box .copy { user-select: all; font-family: var(--serif); letter-spacing: .06em; }
.as-card { border: 1px solid var(--line); padding: 14px; margin-top: 12px; display: grid; gap: 8px; }
.as-head { display: flex; align-items: center; gap: 10px; }
.as-head small { margin-left: auto; color: var(--muted); font-size: 11px; }
.as-card .addr { margin: 0; }
.thread { display: grid; gap: 8px; margin-top: 4px; }
.msg { padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; line-height: 1.6; max-width: 92%; }
.msg.me { justify-self: end; border-color: var(--line-2); background: rgba(23,24,27,0.05); }
.msg.system { justify-self: center; background: none; border-style: dashed; color: var(--muted); font-size: 12px; text-align: center; }
.msg small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.as-item { display: grid !important; grid-template-columns: 18px 44px 1fr 64px; gap: 10px; align-items: center; font-size: 13px !important; color: var(--text) !important; }
.as-item img { width: 44px; height: 54px; object-fit: cover; border: 1px solid var(--line); }
.as-item small { display: block; color: var(--muted); font-size: 11px; }
.as-item .input { padding: 0 8px; }
.btn-link { font-size: 12px; color: var(--muted); text-decoration: underline; justify-self: start; }
.status.st-verifying, .status.as-pending, .status.as-shipped_back { border-color: #d9c9a3; color: #9a6b12; }
.status.as-rejected { border-color: #e2a9a2; color: #c0392b; }
.support-thread { max-height: 60vh; overflow-y: auto; padding: 4px 2px; }
.msg.admin { justify-self: start; }
.msg-order { display: inline-block; font-size: 11px; color: #313235; border: 1px solid var(--line-2); padding: 1px 6px; margin-bottom: 4px; }
.menu-list .count.dot { background: var(--chrome-btn); color: #e1e3e6; border-radius: 10px; padding: 0 7px; font-weight: 600; }
.center { text-align: center; }
.promo-hint { margin: 14px 0 0; padding: 10px 12px; border: 1px dashed var(--line-2); font-size: 12px; color: #191a1d; text-align: center; letter-spacing: .02em; }
.coupon-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line-2); padding: 16px 14px; margin-top: 12px;
  background: linear-gradient(90deg, rgba(23,24,27,0.05), transparent 40%); position: relative; }
.coupon-card::before { content: ''; position: absolute; left: 104px; top: 10px; bottom: 10px; border-left: 1px dashed var(--line-2); }
.cc-value { font-family: var(--serif); font-size: 20px; font-weight: 700; text-align: center; line-height: 1.2; }
.cc-info { display: grid; gap: 3px; padding-left: 8px; }
.cc-info b { letter-spacing: .08em; }
.cc-info small { color: var(--muted); font-size: 11px; }
.coupon-card .btn { padding: 0 14px; height: 36px; font-size: 12px; }
.preorder-box { display: grid; gap: 4px; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line-2); background: rgba(23,24,27,0.03); font-size: 13px; }
.preorder-box b { font-family: var(--serif); letter-spacing: .1em; font-size: 12px; }
.preorder-box small { color: var(--muted); }
.preorder-box .warn { color: #c0392b; }
.pre-tag { display: inline-block; margin-top: 4px; font-size: 11px; color: #9a6b12; letter-spacing: .02em; }
.pre-tag.ps-arrived { color: #1f7a32; }
.mini-line small.pre-tag { display: block; }

/* ---------- floating chat ---------- */
.chat-fab { position: fixed; right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  background: var(--chrome-btn); color: #e1e3e6; display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0,0,0,0.125); }
.chat-fab svg { width: 24px; height: 24px; stroke-width: 1.8; }
.chat-dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #ff5d5d; color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.chat-dot[hidden] { display: none; }
.chat-box { position: fixed; right: 16px; bottom: calc(var(--tab-h) + 80px + env(safe-area-inset-bottom)); z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(540px, 66vh); border-radius: 16px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-2); display: flex; flex-direction: column; box-shadow: 0 16px 50px rgba(0,0,0,0.175); }
.chat-box[hidden] { display: none; }
.chat-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-head b { font-family: var(--serif); letter-spacing: .08em; }
.chat-head small { color: var(--muted); font-size: 11px; }
.chat-x { margin-left: auto; color: var(--muted); }
.chat-thread { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-thread .msg { max-width: 82%; }
.chat-thread .msg.me { align-self: flex-end; }
.chat-thread .msg.admin { align-self: flex-start; }
.chat-thread .msg small { margin: 4px 0 0; text-align: right; }
.msg-img { max-width: 200px; max-height: 220px; border: 1px solid var(--line); margin: 2px 0 4px; }
.chat-form { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: end; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { resize: none; min-height: 38px; max-height: 110px; background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 9px 10px; font: inherit; font-size: 14px; }
.chat-attach, .chat-send { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.chat-attach.on { color: #17181b; border-color: #242528; }
.chat-send { background: var(--chrome-btn); color: #e1e3e6; border: 0; }
.chat-ref { grid-column: 1 / -1; font-size: 11px; color: #313235; }
.chat-ref button { color: var(--muted); margin-left: 6px; }
.chat-empty { flex: 1; display: grid; place-content: center; gap: 14px; text-align: center; padding: 20px; color: #313235; }
/* phones: a small window above the chat button, not the whole screen */
@media (max-width: 600px) {
  .chat-box { right: 12px; left: 12px; width: auto; bottom: calc(var(--tab-h) + 76px + env(safe-area-inset-bottom)); height: min(480px, 58vh); }
}
/* keyboard open (set from app.js): sit right above the keyboard */
body.kb-open .chat-box { bottom: calc(var(--kb, 0px) + 10px); height: min(480px, calc(var(--vvh, 100vh) - 24px)); }
body.kb-open.chat-open .chat-fab { display: none; }

/* avatar */
.avatar-edit { position: relative; cursor: pointer; flex: none; }
.avatar-edit .cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--chrome-btn); color: #e1e3e6;
  display: grid; place-items: center; box-shadow: 0 0 0 3px #0b0b0c; }
.avatar-edit .cam svg { width: 15px; height: 15px; stroke-width: 1.8; }
.avatar-row { display: flex; align-items: center; gap: 16px; margin: 4px 0 20px; }
.avatar-row img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid #737477; }
.avatar-row .btn { width: auto; padding: 0 16px; height: 38px; font-size: 12px; cursor: pointer; }
.bag-count { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.cart-item .en { font-size: 13px; letter-spacing: .02em; text-transform: none; }
.cart-item .opt { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .06em; }
.pay-conflict { margin-top: 14px; padding: 12px 14px; border: 1px solid #d9c9a3; color: #9a6b12; font-size: 12px; line-height: 1.8; }
.pay-conflict b { display: block; margin-bottom: 4px; font-weight: 500; }
.pay-conflict small { margin-left: 6px; color: #313235; }
.sel-all { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #313235; padding: 6px 0 4px; }
.sel-all small { margin-left: auto; color: var(--muted); }
.sel-all input, .cart-item .pick input { accent-color: #191a1d; width: 17px; height: 17px; }
.cart-item { grid-template-columns: 22px 78px 1fr auto; }
.cart-item .pick { display: flex; align-items: center; }
.cart-item.off > a img, .cart-item.off > div:not(.cart-side) { opacity: .45; }
.chat-form { grid-template-columns: auto 1fr auto; position: relative; }
.chat-plus { width: 38px; height: 38px; border: 1px solid var(--line); color: #242528; font-size: 20px; line-height: 1; }
.chat-menu { position: absolute; left: 10px; bottom: 56px; z-index: 2; display: grid; min-width: 200px; background: #dcdee1; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.chat-menu[hidden] { display: none; }
.chat-menu button { text-align: left; padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.chat-menu button:last-child { border-bottom: 0; }
.chat-menu button:hover { background: rgba(23,24,27,0.05); }
.chat-prod { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); padding: 6px; margin: 2px 0 6px; background: rgba(23,24,27,0.03); }
.chat-prod img { width: 40px; height: 50px; object-fit: cover; }
.chat-prod span { display: grid; font-size: 12px; } .chat-prod b { font-family: var(--serif); font-weight: 500; }
.tr-tag { color: var(--muted); font-size: 10px; }
.chat-search { padding: 10px; border-bottom: 1px solid var(--line); }
.pick-list { gap: 0; padding: 0; }
.pick-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pick-row img { width: 40px; height: 50px; object-fit: cover; border: 1px solid var(--line); }
.pick-row small { display: block; color: var(--muted); font-size: 11px; }
.pick-row:hover { background: rgba(23,24,27,0.04); }
.claim-input { text-align: center; font-size: 18px !important; letter-spacing: .14em; text-transform: uppercase; height: 52px; }

/* ---------- 面交 picker ---------- */
.meetup-box { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--line-2); }
.meetup-box .mini-head { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin: 6px 0 0; }
.meet-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.meet-loc { text-align: left; display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line-2); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.meet-loc small { color: var(--muted); font-size: 11px; }
.meet-loc.on { border-color: #17181b; background: rgba(23,24,27,0.08); }
.meet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.meet-chip { padding: 7px 12px; border: 1px solid var(--line-2); background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 13px; display: inline-grid; justify-items: center; }
.meet-chip small { font-size: 10px; color: var(--muted); }
.meet-chip.on { border-color: #17181b; background: #17181b; color: #eceef1; }
.meet-chip.on small { color: #a2a3a6; }

/* ---------- product description formatting ---------- */
.rich p { margin: 0 0 10px; }
.rich .rt-h1 { font-size: 18px; color: var(--text); margin: 18px 0 8px; font-weight: 600; letter-spacing: .02em; }
.rich .rt-h2 { font-size: 15px; color: var(--text); margin: 14px 0 6px; font-weight: 600; }
.rich .rt-small { font-size: 11.5px; color: var(--muted); }
.rich b { color: var(--text); }
.rich mark { background: rgba(23,24,27,0.14); color: var(--text); padding: 0 3px; }
.rich ul { margin: 0 0 10px; padding-left: 18px; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.rich figure { margin: 12px 0; }
.rich figure img { width: 100%; display: block; }

/* ---------- size chart ---------- */
.sc { display: grid; gap: 14px; }
.sc-pic { display: flex; justify-content: center; color: #313235; }
.sc-svg { width: 100%; max-width: 280px; height: auto; }
.sc-out { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; opacity: .75; }
.sc-line { stroke: currentColor; stroke-width: 1; opacity: .55; }
.sc-arrow { fill: currentColor; opacity: .7; }
.sc-mk circle { fill: #c8102e; stroke: #fff; }
.sc-mk text { fill: #fff; stroke: none; font: 700 14px var(--sans); }
.sc-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sc-table table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 12.5px; text-align: center; }
.sc-table th, .sc-table td { border-bottom: 1px solid var(--line); padding: 9px 6px; white-space: nowrap; }
.sc-table thead th { color: var(--text); font-weight: 500; line-height: 1.35; }
.sc-table thead th small { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0 auto 4px; border-radius: 50%;
  background: #c8102e; color: #fff; font-size: 11.5px; font-weight: 700; }
.sc-line { stroke-width: 1.3 !important; opacity: .8 !important; }
.sc-table tbody th { color: var(--text); font-weight: 500; }
.sc-table td { color: #313235; }
.sc-note { font-size: 11.5px; color: var(--muted); margin: 0; }

/* ---------- wish pool ---------- */
.wish-hero { text-align: center; padding: 28px 8px 18px; display: grid; gap: 12px; justify-items: center; }
.wish-hero h2 { font-family: var(--serif); font-size: 26px; letter-spacing: .12em; margin: 0; }
.wish-hero p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 520px; margin: 0; }
.wish-tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 6px 0 16px; padding: 0 2px; }
.wish-tabs a { padding: 10px 0; font-size: 13px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.wish-tabs a.active { color: var(--text); border-color: var(--text); }
.wish-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 820px) { .wish-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.wish-card { position: relative; display: grid; background: var(--panel); border: 1px solid var(--line); }
.wish-img { position: relative; aspect-ratio: 1; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.wish-img img { width: 100%; height: 100%; object-fit: cover; }
.wish-img > span { font-size: 28px; color: #8a8f98; }
.wish-badge { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: 10px; letter-spacing: .06em; padding: 3px 7px; background: #17181b; color: #eceef1; }
.wish-badge + .wish-badge { top: 32px; }
.wish-badge.st-listed { background: #1f7a32; color: #fff; } .wish-badge.st-failed { background: #a2a3a6; color: #17181b; }
.wish-h .wish-badge { position: static; vertical-align: middle; }
.wish-body { padding: 10px 10px 12px; display: grid; gap: 4px; font-size: 13px; }
.wish-body b { font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wish-body small { color: var(--muted); font-size: 11px; }
.wish-votes { font-size: 12px; margin-top: 2px; }
.wish-plus { position: absolute; right: 8px; bottom: 8px; min-width: 40px; height: 32px; border-radius: 16px; border: 1px solid rgba(23,24,27,.18); background: rgba(255,255,255,.94); color: #17181b; font: 600 12px var(--sans); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.wish-plus.on { background: #17181b; color: #eceef1; border-color: #17181b; }
.row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.field-like { display: grid; gap: 7px; font-size: 12px; color: #313235; }
.wish-prev { display: flex; gap: 10px; flex-wrap: wrap; }
.wish-prev .wp { position: relative; width: 88px; height: 88px; border: 1px solid var(--line-2); }
.wish-prev .wp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wish-prev .wp button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #17181b; font-size: 11px; cursor: pointer; }
.wish-prev .add { display: grid; place-items: center; font-size: 26px; color: var(--muted); border-style: dashed; cursor: pointer; }
.wish-prev .add:hover { color: var(--text); border-color: var(--text); }
.wish-detail { display: grid; gap: 12px; padding-top: 12px; }
.wish-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.wish-gallery img { width: 82%; max-width: 420px; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; flex: none; }
.wish-gallery img:only-child { width: 100%; }
.wish-h { font-size: 19px; font-weight: 500; margin: 4px 0 0; line-height: 1.4; }
.wish-meta { font-size: 13px; color: var(--muted); margin: 0; }
.wish-meta .status { margin-right: 6px; }
.wish-note { font-size: 13px; color: #36373a; line-height: 1.8; margin: 0; }
.wish-vote { border-top: 1px solid var(--line); padding-top: 14px; }
.kvs { display: grid; gap: 2px; }
/* contact links */
.contact-head { font-size: 13px; letter-spacing: .1em; margin: 26px 0 10px; color: var(--text); }
.contact-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contact-list a { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); padding: 9px 14px; font-size: 13px; }
.contact-list svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* sign-in from the home-screen app */
.app-login { text-align: center; padding: 40px 20px 60px; display: grid; gap: 12px; justify-items: center; }
.app-login .al-icon { border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.app-login h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: .04em; }
.app-login p { margin: 0; line-height: 1.7; color: #313235; max-width: 340px; }
.app-login .al-code { font-size: 34px; font-weight: 800; letter-spacing: 10px; padding: 10px 18px 10px 28px; border: 1px solid #b2b3b6; border-radius: 14px; background: #e1e3e6; }
.app-login .btn { margin-top: 10px; max-width: 320px; border: 1px solid #b2b3b6; }
.app-code { margin: 18px 16px 0; padding: 14px; border: 1px solid #cacccf; border-radius: 12px; display: grid; gap: 10px; }
.app-code p { margin: 0; font-size: 13px; color: #313235; }
.app-code .row-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.app-code .row-code .input { letter-spacing: 4px; font-size: 16px; }
.app-code .row-code .btn { width: auto; padding-left: 18px; padding-right: 18px; }

/* ---------- light theme details ---------- */
.header { background: rgba(236,238,241,.94); }
.chrome { filter: none; }
.btn-chrome { box-shadow: none; font-weight: 500; border: 1px solid #b4b8bf; }
.btn-chrome, .announce, .chat-fab, .pay-banner.ok, .chat-send, .avatar-edit .cam, .menu-list .count.dot { color: #141518; }
.announce { background: #dfe2e7; }
.badge-count { background: #17181b; color: #fff; }
.chat-fab { box-shadow: 0 4px 14px rgba(0,0,0,.15); }
/* text on photos stays light */
.chip:not(.light) { color: #f4f4f4; border-color: rgba(255,255,255,.45); background: rgba(0,0,0,.6); }
/* nothing smaller than 11px */
.chip, .tabbar a, .tr-tag, .msg small, .meet-chip small, .look-text small { font-size: 11px; }
.card-info .en, .size-guide, .cart-item .en, .cart-item .opt, .list-plain li small, .mini-line small, .order-row small,
.status, .lang-switch button, .account-label, .msg-order, .chat-ref { font-size: 12px; }
.hint { font-size: 13px; }
.app-login .al-code { background: var(--panel); }
html.no-scroll .chat-fab, html.no-scroll .chat-box { display: none; }

/* ---------- home slideshow ---------- */
.ss { position: relative; margin: 14px; border-radius: 4px; overflow: hidden; background: var(--panel); }
.ss-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.ss-track::-webkit-scrollbar { display: none; }
.ss-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; aspect-ratio: 12 / 5; }
.ss-slide picture, .ss-slide img { display: block; width: 100%; height: 100%; }
.ss-slide img { object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ss-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.ss-dots button { pointer-events: auto; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(0,0,0,.18); padding: 0; transition: transform .2s, background .2s; }
.ss-dots button.on { background: #17181b; box-shadow: 0 0 0 2px #fff; transform: scale(1.1); }
@media (max-width: 700px) {
  .ss { margin: 12px 12px 0; }
  .ss-slide { aspect-ratio: 16 / 9; }
  .ss-square .ss-slide { aspect-ratio: 1 / 1; }
}
@media (min-width: 900px) { .ss { margin: 20px 24px 0; } }

/* ---------- terms / privacy agreement (read to the end, then agree) ---------- */
.lg-gate { position: fixed; inset: 0; z-index: 200; background: rgba(23,24,27,.55); display: grid; place-items: center; padding: 14px; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.lg-box { width: min(640px, 100%); height: min(88vh, 900px); display: flex; flex-direction: column; background: var(--panel); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.lg-box header { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.lg-box header h2 { margin: 0; font-size: 17px; }
.lg-box header p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.lg-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.lg-steps span { font-size: 12px; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); }
.lg-steps span.on { background: #17181b; color: #fff; border-color: #17181b; }
.lg-steps span.done { color: #1f7a32; border-color: #9cc9a5; }
.lg-legend { display: flex; gap: 10px; font-size: 12px; }
.lg-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 18px 24px; font-size: 14px; line-height: 1.8; }
.lg-body h3 { font-size: 15px; margin: 16px 0 4px; }
.lg-body p { margin: 4px 0; }
.lg-body .lg-li { padding-left: 1.1em; text-indent: -1.1em; margin: 2px 0; }
.lg-body .lg-li::before { content: "・"; }
.lg-gap { height: 8px; }
.lg-date { color: var(--muted); font-size: 12px; }
.lg-end { text-align: center; color: var(--muted); font-size: 11px; letter-spacing: .3em; margin-top: 18px; }
.lg-box ins, .lg-legend ins { background: #d7f0dc; color: #145a26; text-decoration: none; border-radius: 3px; padding: 0 2px; }
.lg-box del, .lg-legend del { background: #fbe1df; color: #a1271c; text-decoration: line-through; border-radius: 3px; padding: 0 2px; }
.lg-chg { border-left: 3px solid #e7b04a; padding-left: 8px; margin-left: -11px; }
.lg-box footer { padding: 12px 18px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.lg-hint { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.lg-box footer .btn:disabled { opacity: .45; filter: grayscale(1); }
.lg-out { font-size: 12px; color: var(--muted); text-decoration: underline; justify-self: center; }

/* product options: long names stay on one line and wrap to the next row instead of squeezing */
.opt-row { align-items: flex-start; }
.opt-row > label { flex: none; width: auto; min-width: 52px; padding-top: 8px; white-space: nowrap; }
.opt-choices { display: flex; flex-wrap: wrap; gap: 8px 10px; flex: 1; min-width: 0; }
.opt-choices .swatch { flex: none; }
.opt-choices .swatch-text { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 12px; white-space: nowrap; color: #17181b; }
.opt-choices .size { flex: none; height: 34px; white-space: nowrap; }
.opt-row .size-guide { flex: none; padding-top: 9px; }
.dl-list { list-style: none; padding: 0; margin: 0 0 8px; }
.dl-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.dl-list b { font-weight: 500; }
.dl-free { font-size: 12px; color: #313235; margin-bottom: 6px; }

/* swipeable pictures: product cards and product page */
.card-img, .pd-main { position: relative; }
.slides { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides > img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; user-select: none; -webkit-user-drag: none; }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.sl-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 2px rgba(0,0,0,.45); transition: background .2s, transform .2s; }
.sl-dots i.on { background: #fff; transform: scale(1.25); }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(247,248,250,.85);
  color: #17181b; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.sl-nav.prev { left: 8px; } .sl-nav.next { right: 8px; }
.card-img:hover .sl-nav, .pd-main:hover .sl-nav { opacity: 1; }
@media (hover: none) { .sl-nav { display: none; } }
.sl-count { position: absolute; right: 10px; bottom: 10px; font-size: 11px; letter-spacing: .05em; color: #fff; background: rgba(23,24,27,.55); padding: 3px 8px; border-radius: 10px; }
.pd-main .sl-dots { bottom: 14px; }
.card:hover .card-img .slides img { transform: none; }
/* option 1 as a dropdown */
.opt-select { position: relative; display: block; flex: 1; max-width: 360px; }
.opt-select select { width: 100%; appearance: none; -webkit-appearance: none; height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--line-2); border-radius: 0;
  background: var(--panel, #f4f5f7); color: #17181b; font: 14px var(--sans); }
.opt-select::after { content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid #17181b; border-bottom: 1.5px solid #17181b; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
/* product page: one full-width carousel, no thumbnail strip */
.pd-gallery { grid-template-columns: 1fr !important; }
.pd-gallery .pd-thumbs { display: none; }
.pd-main .sl-dots { bottom: 12px; }
.sl-dots i { background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.sl-dots i.on { background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.6); }
.pd-main .sl-dots i { width: 7px; height: 7px; }

/* long option names must not stretch the page */
.opt-choices .opt-select { flex: 1 1 0; min-width: 0; width: 100%; }
.opt-select select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
/* product page: even spacing; labels line up with their controls */
.pd-info .preorder-box { margin-bottom: 18px; }
.opt-row { align-items: center; margin-bottom: 14px; }
.opt-row > label { padding-top: 0; }
.opt-row .size-guide { padding-top: 0; }
.stock-note:empty { display: none; }
.pd-buttons { margin-top: 18px; }

/* purchase limits on the product page */
.buy-limits { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.buy-limits span { font-size: 12px; padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; opacity: .75; }
/* 買家自填連結 */
.fill-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.fill-line img { width: 56px; height: 70px; object-fit: cover; border-radius: 6px; flex: none; }
.fill-line .grow { flex: 1; min-width: 0; display: grid; gap: 6px; }
.fill-line .grow b { font-weight: 500; font-size: 14px; }
.fill-line select.input { padding: 8px 10px; font-size: 13px; }
.fill-line .qty { flex: none; margin-top: 0; }
.fill-pick { margin-top: 12px; display: grid; gap: 8px; }
.fill-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fill-prod { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px dashed rgba(0,0,0,.25); border-radius: 8px; padding: 6px; background: none; font: inherit; color: inherit; cursor: pointer; }
.fill-prod img { width: 40px; height: 50px; object-fit: cover; border-radius: 4px; flex: none; }
.fill-prod span { font-size: 13px; line-height: 1.3; display: grid; min-width: 0; }
.fill-prod small { opacity: .6; font-size: 11px; }
.fill-prod:disabled { opacity: .4; cursor: default; }
.myship-box .btn { display: flex; justify-content: center; margin: 10px 0 4px; }
.hint.ok { color: #2f7a46; }
