/* ============================================================
   Art supplies storefront — "paper, ink & pigment"
   ============================================================ */
:root {
  --paper: #f6f1e8;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --ink: #1f1c19;
  --ink-2: #4a443d;
  --muted: #8a7f73;
  --line: #e4dacb;
  --vermilion: #b8382a;
  --vermilion-2: #d4553f;
  --indigo: #2c3d5a;
  --ochre: #c9912f;
  --sage: #7c8b6f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 28, 25, .05), 0 8px 24px -12px rgba(31, 28, 25, .18);
  --serif: 'Fraunces', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --sans: 'Inter', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { /* faint paper grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer, .announce { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.12; margin: 0 0 .5em; }
.lang-zh h1, .lang-zh h2, .lang-zh h3 { letter-spacing: .01em; font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 56ch; }

/* ---------- announcement + header ---------- */
.announce { background: var(--ink); color: #f3ece0; text-align: center; font-size: 12.5px; letter-spacing: .04em; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 241, 232, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.seal { width: 34px; height: 34px; color: var(--vermilion); display: inline-block; }
.seal svg { width: 100%; height: 100%; }
.seal.big { width: 56px; height: 56px; margin: 0 auto 18px; display: block; }
.wordmark { font-family: var(--serif); font-size: 21px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; display: flex; flex-direction: column; }
.wordmark small { font-family: 'Noto Serif SC', serif; font-size: 11px; letter-spacing: .5em; text-transform: none; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; gap: 22px; font-size: 14px; flex: 1; white-space: nowrap; overflow: hidden; }
.main-nav a { color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover { color: var(--ink); border-color: var(--vermilion); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; height: 40px; width: 220px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(31, 28, 25, .06); }
.search input { border: 0; background: transparent; outline: 0; flex: 1; font: inherit; font-size: 14px; min-width: 0; }
.search button { border: 0; background: none; width: 30px; height: 30px; display: grid; place-items: center; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.search svg, .bag-btn svg, .menu-btn svg { width: 20px; height: 20px; }
.lang { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--card); }
.bag-btn, .menu-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.bag-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--vermilion); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.bag-count.has { transform: scale(1); }
.bag-count.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }
.mobile-nav[hidden] { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px clamp(16px, 4vw, 40px) 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.mobile-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 500; font-size: 15px; transition: transform .15s, background .2s, color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fbf7f0; }
.btn-ink:hover { background: #000; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-arrow { font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 100px); }
.wash { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; }
.wash-a { width: 520px; height: 420px; background: #e9b8a2; top: -120px; right: 8%; }
.wash-b { width: 460px; height: 380px; background: #b7c4d6; bottom: -160px; right: 30%; opacity: .45; }
.wash-c { width: 300px; height: 300px; background: #e8d49a; top: 30%; left: -120px; opacity: .35; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--vermilion); font-weight: 600; margin-bottom: 18px; }
.lang-zh .kicker { letter-spacing: .3em; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.02; margin-bottom: 22px; }
.lang-zh .hero h1 { line-height: 1.18; font-size: clamp(2.2rem, 4.8vw, 4rem); }
.hero h1 em { font-style: italic; color: var(--vermilion); font-weight: 300; }
.lang-zh .hero h1 em { font-style: normal; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-collage { position: relative; height: clamp(380px, 44vw, 560px); }
.collage-item { position: absolute; background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(31, 28, 25, .45); overflow: hidden; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-item.c0 { width: 58%; aspect-ratio: 1; top: 0; left: 4%; transform: rotate(-3deg); z-index: 2; }
.collage-item.c1 { width: 44%; aspect-ratio: 1; top: 12%; right: 0; transform: rotate(4deg); }
.collage-item.c2 { width: 46%; aspect-ratio: 1; bottom: 0; left: 36%; transform: rotate(-1deg); z-index: 3; }
.collage-item:hover { transform: rotate(0) translateY(-6px) scale(1.02); z-index: 5; }
.collage-tag { position: absolute; left: 10px; bottom: 10px; right: 10px; background: rgba(255, 253, 249, .92); backdrop-filter: blur(6px); border-radius: 12px; padding: 7px 11px; font-size: 12px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: .3s; }
.collage-tag b { color: var(--ink); font-size: 14px; }
.collage-tag s { color: var(--muted); }
.collage-item:hover .collage-tag, .collage-item.c0 .collage-tag { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px); }
.section-tight { padding-top: 12px; padding-bottom: 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.cat-img { position: absolute; inset: 0; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20, 17, 14, .72)); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fbf7f0; display: flex; flex-direction: column; }
.cat-label span { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.cat-label small { opacity: .8; font-size: 12px; letter-spacing: .04em; margin-top: 3px; }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px 20px; }
.card { position: relative; display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-img img { transform: scale(1.05); }
.img-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--paper-2), #fff); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 4px 8px; border-radius: 6px; background: rgba(255, 253, 249, .94); color: var(--ink); backdrop-filter: blur(4px); }
.badge-save { background: var(--vermilion); color: #fff; }
.badge-bestseller { background: var(--ink); color: #fbf7f0; }
.badge-pro, .badge-limited { background: var(--indigo); color: #fff; }
.quick-add { position: absolute; top: calc(100% - 0px); right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5); transform: translateY(-58px) scale(.8); opacity: 0; transition: .25s cubic-bezier(.3, 1.4, .5, 1); }
.card-img + .quick-add { position: absolute; top: auto; }
.card .quick-add { top: 0; margin-top: calc(min(100%, 100%) - 54px); }
.card:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: translateY(0) scale(1); }
.quick-add svg { width: 20px; height: 20px; stroke-width: 2; }
.card-body { padding: 14px 2px 0; }
.card-brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.card-title { font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.4; margin: 0 0 3px; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { color: var(--vermilion); }
.card-spec { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 7px; }
.price { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.compare { color: var(--muted); text-decoration: line-through; font-size: .9rem; }

/* ---------- why band ---------- */
.why { background: var(--ink); color: #efe7da; padding: clamp(56px, 8vw, 110px) 0; position: relative; overflow: hidden; margin-top: 40px; }
.why::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(184, 56, 42, .35), transparent 65%); top: -300px; right: -150px; }
.why h2 { color: #fbf7f0; margin-bottom: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.why-num { font-family: var(--serif); font-size: 13px; color: var(--vermilion-2); letter-spacing: .1em; display: block; margin-bottom: 14px; border-top: 1px solid rgba(239, 231, 218, .2); padding-top: 18px; }
.why h3 { font-size: 1.45rem; color: #fbf7f0; }
.why p { color: #bfb5a7; }

/* ---------- listing ---------- */
.list-hero { padding: 44px 0 20px; }
.list-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; font-size: 13.5px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); transition: .2s; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fbf7f0; border-color: var(--ink); }
.sort label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sort select { font: inherit; font-size: 13.5px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--card); }
.count { font-size: 13px; margin: 0 0 22px; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* ---------- product page ---------- */
.pdp { padding-top: 28px; padding-bottom: 40px; }
.pdp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery-main { background: #fff; border-radius: 22px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { flex: 0 0 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; }
.thumb.on { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 10px; }
.tagline { font-size: 1.08rem; color: var(--ink-2); }
.pdp-price { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; }
.pdp-price .price { font-size: 2rem; }
.save-pill { background: #f7dcd6; color: var(--vermilion); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.compare-note { margin: 0 0 8px; }
.facts { margin: 22px 0; border-top: 1px solid var(--line); }
.facts div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts dt { width: 84px; color: var(--muted); flex-shrink: 0; }
.facts dd { margin: 0; }
.buy-row { display: flex; gap: 12px; margin: 26px 0 18px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); height: 50px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 18px; }
.qty input { width: 34px; text-align: center; border: 0; background: none; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.assure { list-style: none; padding: 0; margin: 0 0 28px; font-size: 13.5px; color: var(--ink-2); }
.assure li { padding: 5px 0 5px 24px; position: relative; }
.assure li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 1.6px solid var(--sage); border-bottom: 1.6px solid var(--sage); transform: rotate(-45deg); }
.desc { border-top: 1px solid var(--line); padding-top: 22px; }
.desc h3 { font-size: 1.25rem; }
.desc p { color: var(--ink-2); }

/* ---------- messages / checkout ---------- */
.message { padding: 70px 0 100px; }
.message-card { max-width: 620px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 48px clamp(20px, 5vw, 56px); box-shadow: var(--shadow); }
.message-card h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.message-card .lede { margin: 0 auto 24px; }
.etransfer { text-align: left; background: var(--paper); border-radius: 16px; padding: 18px 22px; margin: 0 0 24px; }
.etransfer h3 { font-size: 1.15rem; margin-bottom: 6px; }
.checkout { padding: 40px clamp(16px, 4vw, 40px) 90px; }
.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 24px; align-items: start; }
.checkout-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field select { font: inherit; font-size: 15px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.field input, .field textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); outline: 0; }
.field input:focus, .field textarea:focus { border-color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 12px; }
.checkout-summary { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: sticky; top: 96px; }

/* ---------- prose ---------- */
.prose { max-width: 760px; padding-bottom: 90px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p { color: var(--ink-2); font-size: 1.02rem; }

/* ---------- bag drawer ---------- */
.bag { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.bag-scrim { position: absolute; inset: 0; background: rgba(20, 17, 14, .35); opacity: 0; transition: opacity .3s; }
.bag-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .3); }
.bag.open { pointer-events: auto; }
.bag.open .bag-scrim { opacity: 1; }
.bag.open .bag-panel { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 12px; }
.bag-head h3 { margin: 0; font-size: 1.5rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 22px; line-height: 1; }
.bag-free { margin: 0 24px 6px; font-size: 13px; color: var(--ink-2); }
.bag-free .bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.bag-free .bar i { display: block; height: 100%; background: var(--vermilion); border-radius: 4px; transition: width .4s; }
.bag-lines { flex: 1; overflow-y: auto; padding: 6px 24px; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-line img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: #fff; }
.bag-line .n { font-size: 14px; font-weight: 500; line-height: 1.35; }
.bag-line .sp { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bag-line .ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; }
.bag-line .mini-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.bag-line .mini-qty button { width: 28px; height: 28px; border: 0; background: none; }
.bag-line .mini-qty span { min-width: 18px; text-align: center; font-weight: 600; }
.bag-line .rm { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 12.5px; padding: 0; }
.bag-line .lp { font-family: var(--serif); font-size: 1.05rem; }
.bag-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--card); }
.bag-foot .row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 3px 0; }
.bag-foot .row.total { font-size: 1.1rem; font-weight: 600; padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line); }
.bag-prov { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.bag-prov select { font: inherit; font-size: 13.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.bag-foot textarea { width: 100%; margin: 12px 0; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); resize: none; outline: 0; }
.bag-foot .secure { font-size: 11.5px; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.5; }
.bag-empty { padding: 60px 0; text-align: center; color: var(--muted); }
.bag-err { color: var(--vermilion); font-size: 13px; margin-top: 8px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fbf7f0; padding: 12px 20px; border-radius: 999px; font-size: 14px; transition: .3s; pointer-events: none; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; margin-top: 20px; background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; font-weight: 600; }
.footer-grid a, .footer-grid span { display: block; font-size: 14px; padding: 3px 0; color: var(--ink-2); }
.footer-grid a:hover { color: var(--vermilion); }
.brand-foot { margin-bottom: 14px; }
.footer-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 860px) {
  .hero-grid, .pdp-grid, .checkout-grid { grid-template-columns: 1fr; }
  .hero-collage { height: 92vw; max-height: 480px; }
  .gallery { position: static; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search { display: none; }
  .header-row { height: 62px; gap: 12px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .checkout-summary { position: static; }
  .quick-add { opacity: 1; transform: none; width: 36px; height: 36px; }
  .card .quick-add { margin-top: calc(100% - 46px); right: 8px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wordmark { font-size: 17px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .buy-row { flex-direction: column; }
  .qty { align-self: flex-start; }
  .card-title { font-size: 14px; }
  .price { font-size: 1.08rem; }
  .lang-zh .hero h1 { font-size: 1.95rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
