:root{
  --bg:#f3eee4;--bg-alt:#e8e0d2;--paper:#faf7f1;--card:#fffdf8;--ink:#1a231c;--ink-soft:#5a6158;
  --forest:#24382c;--forest-mid:#3d5c45;--gold:#b08a4a;--line:#d7cebe;--terracotta:#8a4334;--danger:#a3332a;
  --shadow:0 16px 40px rgba(26,35,28,.08);--radius:14px;
  --serif:"Palatino Linotype",Palatino,"Iowan Old Style","Book Antiqua",Georgia,"Songti SC","Noto Serif CJK SC",serif;
  --sans:"Avenir Next","Segoe UI","Helvetica Neue",Helvetica,Arial,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--sans);background:var(--bg);color:var(--ink);line-height:1.55;min-width:320px}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
.wrap{width:min(1180px,calc(100% - 32px));margin:0 auto}
.narrow{max-width:820px}
.center{text-align:center}
.muted{color:var(--ink-soft)} .small{font-size:13px}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:100}
h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.15;color:var(--forest)}
h1{font-size:clamp(28px,4vw,40px);margin-bottom:12px}
h2{font-size:clamp(22px,2.6vw,28px);margin-bottom:12px}
.link{color:var(--forest-mid);text-decoration:underline;text-underline-offset:3px}
.linklike{background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-align:left}

/* header */
.announce{background:var(--forest);color:#f4efe6;font-size:12.5px;letter-spacing:.04em;text-align:center;padding:8px 12px}
.header{position:sticky;top:0;z-index:40;background:rgba(243,238,228,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;gap:14px;min-height:68px}
.brand{display:flex;flex-direction:column;min-width:0}
.brand-en{font-family:var(--serif);font-size:20px;letter-spacing:.06em;font-weight:600;line-height:1.1;color:var(--forest);white-space:nowrap}
.brand-en.light{color:#f4efe6}
.brand-cn{font-size:11px;letter-spacing:.2em;color:var(--terracotta);margin-top:2px}
.nav{display:none}
.nav a{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.nav a:hover{color:var(--ink)}
.tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.seg{display:flex;border:1px solid var(--line);background:var(--paper);border-radius:999px;overflow:hidden}
.seg a{font-size:11px;letter-spacing:.06em;padding:6px 8px;color:var(--ink-soft)}
.seg a.on{background:var(--forest);color:#f6f1e8}
.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:999px;background:var(--paper);position:relative;cursor:pointer}
.cart-count{position:absolute;top:-4px;right:-4px;background:var(--terracotta);color:#fff;font-size:11px;min-width:18px;height:18px;border-radius:9px;display:grid;place-items:center;padding:0 4px}
.cart-count[hidden]{display:none}
.menu-btn{display:inline-flex;flex-direction:column;gap:4px;justify-content:center;align-items:center}
.menu-btn span{display:block;width:16px;height:1.5px;background:var(--ink)}
.hide-sm{display:none}
.nav.open{display:flex;flex-direction:column;gap:14px;position:absolute;left:0;right:0;top:100%;background:var(--paper);padding:18px 20px;border-bottom:1px solid var(--line);box-shadow:var(--shadow)}
.nav-mobile-switch{display:flex;align-items:center;gap:10px}
.nav-mobile-switch .label{font-size:12px;color:var(--ink-soft)}
@media(min-width:900px){
  .menu-btn{display:none}
  .nav{display:flex;gap:22px;margin-left:18px;flex:1}
  .nav-mobile-switch{display:none}
  .hide-sm{display:flex}
  .brand-en{font-size:22px}
}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--forest);background:var(--forest);color:#f6f1e8;padding:12px 22px;border-radius:999px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;transition:.15s}
.btn:hover{background:var(--forest-mid)}
.btn.ghost{background:transparent;color:var(--forest)}
.btn.ghost:hover{background:var(--bg-alt)}
.btn.light{background:#f4efe6;color:var(--forest);border-color:#f4efe6}
.btn.outline-light{background:transparent;color:#f4efe6;border-color:rgba(244,239,230,.6)}
.btn.block{width:100%;margin:14px 0 8px}
.btn[disabled]{opacity:.6;cursor:wait}

/* hero */
.hero{background:radial-gradient(1200px 500px at 85% 20%,#3d5c45 0,transparent 60%),linear-gradient(135deg,#1f3226,#2c4434);color:#f4efe6}
.hero-inner{padding:64px 0 56px}
.hero h1{color:#f8f4ec;font-size:clamp(34px,6vw,60px);max-width:14em;margin:10px 0 16px}
.kicker{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:#d4c4a0}
.lead{max-width:36em;font-size:17px;color:#e4ddcf}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 18px}
.hero-note{font-size:12px;color:#cfc6b4;letter-spacing:.03em}

/* sections */
.section{padding:44px 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.crumbs{font-size:13px;color:var(--ink-soft);margin-bottom:16px}
.crumbs a{text-decoration:underline;text-underline-offset:3px}
.cats{display:grid;gap:14px;grid-template-columns:1fr;margin-top:12px}
@media(min-width:700px){.cats{grid-template-columns:repeat(3,1fr)}}
.cat{display:flex;gap:16px;align-items:center;padding:20px;border-radius:var(--radius);border:1px solid var(--line);transition:.15s}
.cat:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.cat strong{display:block;font-family:var(--serif);font-size:20px;color:var(--forest)}
.cat span{font-size:13px;color:var(--ink-soft)}
.cat-apparel{background:#dfe6dc}.cat-accessories{background:#eadfd6}.cat-home{background:#e8e3d3}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.chip{border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:13px;background:var(--paper)}
.chip.on{background:var(--forest);color:#fff;border-color:var(--forest)}

/* product grid */
.grid{display:grid;gap:16px;grid-template-columns:repeat(2,1fr);margin-top:18px}
@media(min-width:900px){.grid{grid-template-columns:repeat(4,1fr);gap:22px}}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.15s}
.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.card-img{position:relative;aspect-ratio:1/1;background:var(--bg-alt)}
.card-img img{width:100%;height:100%;object-fit:cover}
.badge{position:absolute;top:10px;left:10px;background:rgba(255,253,248,.92);border:1px solid var(--line);font-size:10px;letter-spacing:.12em;text-transform:uppercase;padding:3px 8px;border-radius:999px;color:var(--terracotta)}
.badge.static{position:static}
.media-ai-label{position:absolute;left:0;right:0;bottom:0;margin:0;padding:8px 10px;background:linear-gradient(180deg,transparent,rgba(20,16,12,.84));color:#fff;font-size:11px;line-height:1.4;pointer-events:none;z-index:2}
.card-body{padding:12px 14px 16px}
.eyebrow{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft)}
.card h3{font-size:16px;margin:4px 0 6px;color:var(--ink)}
.price{font-weight:600}
.price.big{font-size:24px;margin:6px 0}
.tax-note{font-weight:400;font-size:11.5px;color:var(--ink-soft)}

/* features */
.features{background:var(--bg-alt);padding:36px 0;margin-top:20px}
.features-grid{display:grid;gap:14px;grid-template-columns:1fr}
@media(min-width:700px){.features-grid{grid-template-columns:repeat(4,1fr)}}
.feature{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.feature strong{display:block;color:var(--forest);margin-bottom:4px}
.feature p{font-size:13px;color:var(--ink-soft)}

/* pdp */
.pdp{display:grid;gap:26px;grid-template-columns:1fr}
@media(min-width:900px){.pdp{grid-template-columns:1.1fr 1fr;gap:48px}}
.pdp-img{position:relative;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:var(--bg-alt)}
.pdp-gallery{display:flex;flex-direction:column;gap:8px;min-width:0}
.pdp-gal-radio{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.pdp-stage{position:relative;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:var(--bg-alt)}
.pdp-slide{display:none;position:relative;width:100%;aspect-ratio:1;margin:0}
.pdp-slide img{width:100%;height:100%;object-fit:cover;display:block}
.pdp-gallery input:nth-of-type(1):checked ~ .pdp-stage .pdp-slide:nth-child(1),
.pdp-gallery input:nth-of-type(2):checked ~ .pdp-stage .pdp-slide:nth-child(2),
.pdp-gallery input:nth-of-type(3):checked ~ .pdp-stage .pdp-slide:nth-child(3),
.pdp-gallery input:nth-of-type(4):checked ~ .pdp-stage .pdp-slide:nth-child(4),
.pdp-gallery input:nth-of-type(5):checked ~ .pdp-stage .pdp-slide:nth-child(5),
.pdp-gallery input:nth-of-type(6):checked ~ .pdp-stage .pdp-slide:nth-child(6),
.pdp-gallery input:nth-of-type(7):checked ~ .pdp-stage .pdp-slide:nth-child(7),
.pdp-gallery input:nth-of-type(8):checked ~ .pdp-stage .pdp-slide:nth-child(8){display:block}
.pdp-thumbs{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:2px}
.pdp-thumbs label{flex:none;cursor:pointer;position:relative}
.thumb-ai{position:absolute;right:4px;bottom:4px;background:rgba(20,16,12,.82);color:#fff;font-size:9px;letter-spacing:.04em;line-height:1;padding:3px 4px;border-radius:3px}
.pdp-thumbs img{width:64px;height:64px;object-fit:cover;border-radius:8px;border:2px solid var(--line)}
.pdp-gallery input:nth-of-type(1):checked ~ .pdp-thumbs label:nth-child(1) img,
.pdp-gallery input:nth-of-type(2):checked ~ .pdp-thumbs label:nth-child(2) img,
.pdp-gallery input:nth-of-type(3):checked ~ .pdp-thumbs label:nth-child(3) img,
.pdp-gallery input:nth-of-type(4):checked ~ .pdp-thumbs label:nth-child(4) img,
.pdp-gallery input:nth-of-type(5):checked ~ .pdp-thumbs label:nth-child(5) img,
.pdp-gallery input:nth-of-type(6):checked ~ .pdp-thumbs label:nth-child(6) img,
.pdp-gallery input:nth-of-type(7):checked ~ .pdp-thumbs label:nth-child(7) img,
.pdp-gallery input:nth-of-type(8):checked ~ .pdp-thumbs label:nth-child(8) img{border-color:var(--forest)}
.pdp-info p{margin:10px 0}
.pdp-media{display:flex;flex-direction:column;gap:12px;min-width:0}
.pdp-media-overlay{position:absolute;left:0;right:0;bottom:0;margin:0;padding:10px 12px 12px;background:linear-gradient(180deg,transparent,rgba(20,16,12,.84));color:#fff;font-size:12px;line-height:1.45;font-weight:500;text-transform:none;letter-spacing:0;pointer-events:none;z-index:2}
.pdp-video-frame{position:relative;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:#111}
.pdp-video video{width:100%;max-height:min(80vh,720px);display:block;border:0;border-radius:0;background:#111}
.pdp-video-overlay{top:0;bottom:auto;background:linear-gradient(180deg,rgba(20,16,12,.84),transparent);padding:12px 12px 18px}
.pdp-image-notes .pdp-image-note{display:none}
.pdp-gallery input:nth-of-type(1):checked ~ .pdp-image-notes .pdp-image-note[data-i="0"],
.pdp-gallery input:nth-of-type(2):checked ~ .pdp-image-notes .pdp-image-note[data-i="1"],
.pdp-gallery input:nth-of-type(3):checked ~ .pdp-image-notes .pdp-image-note[data-i="2"],
.pdp-gallery input:nth-of-type(4):checked ~ .pdp-image-notes .pdp-image-note[data-i="3"],
.pdp-gallery input:nth-of-type(5):checked ~ .pdp-image-notes .pdp-image-note[data-i="4"],
.pdp-gallery input:nth-of-type(6):checked ~ .pdp-image-notes .pdp-image-note[data-i="5"],
.pdp-gallery input:nth-of-type(7):checked ~ .pdp-image-notes .pdp-image-note[data-i="6"],
.pdp-gallery input:nth-of-type(8):checked ~ .pdp-image-notes .pdp-image-note[data-i="7"]{display:block}
.pdp-image-note,.pdp-video-note{font-size:13px;color:var(--ink-soft);margin:8px 0 0;line-height:1.5}
.video-edit{border:1px solid var(--line);border-radius:12px;padding:8px;background:var(--paper);margin-bottom:12px}
.video-edit video{width:100%;max-height:240px;border-radius:8px;background:#111;display:block}

.opt{border:0;margin:16px 0}
.opt legend{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:8px}
.opt-values{display:flex;flex-wrap:wrap;gap:8px}
.pill input{position:absolute;opacity:0;pointer-events:none}
.pill span{display:inline-block;min-width:44px;text-align:center;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:var(--paper);cursor:pointer;font-size:14px}
.pill input:checked+span{background:var(--forest);color:#fff;border-color:var(--forest)}
.pill input:focus-visible+span{outline:2px solid var(--gold);outline-offset:2px}
.qty-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:12px}
.qty-row label{display:flex;flex-direction:column;font-size:12px;color:var(--ink-soft);gap:4px}
.qty-row input{width:80px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.qty-row .btn{flex:1;min-width:180px}
.pdp-points{margin:22px 0 10px 18px;font-size:14px;color:var(--ink-soft)}
.pdp-points li{margin:6px 0}
.form-error{color:var(--danger);font-size:14px;margin:8px 0}

/* cart / checkout */
.cart-layout,.checkout-layout{display:grid;gap:24px;grid-template-columns:1fr}
@media(min-width:900px){.cart-layout,.checkout-layout{grid-template-columns:1.6fr 1fr;align-items:start}}
.wrap.narrow .cart-layout{max-width:none}
.section.narrow{max-width:1100px}
.line{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.line img{width:64px;height:64px;border-radius:10px;border:1px solid var(--line);object-fit:cover}
.line-ctrl{display:flex;gap:8px;align-items:center;margin-top:6px}
.line-ctrl input{width:64px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.summary{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;position:sticky;top:90px}
.summary h2{font-size:20px}
.totals{display:grid;grid-template-columns:1fr auto;gap:8px 12px;margin-top:12px;font-size:14px}
.totals dd{text-align:right}
.totals .grand{font-size:18px;font-weight:700;color:var(--forest);border-top:1px solid var(--line);padding-top:10px}
.notice{background:#fbf1dc;border:1px solid #e4cf9e;border-radius:10px;padding:10px 12px;font-size:13px;margin:12px 0}
.sandbox-banner{background:#1a1a1a;color:#ffd21f;text-align:center;font-weight:800;letter-spacing:.08em;padding:8px 14px;font-size:13px}
.admin .sandbox-banner{position:sticky;top:0;z-index:20}
.demo-banner{background:#fde8e4;border:2px dashed var(--terracotta);color:var(--terracotta);font-weight:700;border-radius:10px;padding:12px 14px;margin:12px 0 18px;letter-spacing:.02em}
.demo-banner.big{font-size:17px}
.checkout-form{display:flex;flex-direction:column;gap:12px}
.checkout-form h2{font-size:20px;margin-top:8px;margin-bottom:0}
.field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--ink-soft)}
.field input,.field select,.field textarea{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font-size:15px}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--gold);outline-offset:1px}
.two,.three{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:800px){.two{grid-template-columns:1fr 1fr}.three{grid-template-columns:repeat(3,1fr)}}
.field input,.field select,.field textarea{width:100%}
.check{display:flex;gap:10px;align-items:flex-start;font-size:13.5px}
.check input{margin-top:3px;width:18px;height:18px;flex:none}
.check a{text-decoration:underline}
.success-head{text-align:center;margin-bottom:20px}
.check-circle{width:64px;height:64px;border-radius:50%;background:var(--forest);color:#fff;display:grid;place-items:center;font-size:30px;margin:0 auto 14px}
.status{display:inline-block;padding:2px 10px;border-radius:999px;font-size:13px;background:var(--bg-alt)}
.status-paid{background:#dcebdc;color:#1f5130}.status-demo_paid{background:#fde8e4;color:var(--terracotta)}
.status-cancelled{background:#eee;color:#666}.status-review{background:#fde8e4;color:#8a2b16}.status-pending{background:#fbf1dc;color:#7a5a17}
.order-lines{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:8px 20px 20px;margin:16px 0}
.demo-actions{display:flex;gap:12px;flex-wrap:wrap}
.empty{padding:40px 0;text-align:center}

/* legal */
.legal h2{font-size:20px;margin-top:26px}
.legal p{margin:8px 0}
.template-warning{background:#fff4d6;border:2px solid #d9a521;color:#6a4d00;padding:12px 16px;border-radius:10px;font-weight:600;margin-bottom:20px}

/* footer */
.footer{background:#17241b;color:#e6dfd2;margin-top:40px;padding:40px 0 20px}
.footer-grid{display:grid;gap:24px;grid-template-columns:1fr 1fr}
@media(min-width:900px){.footer-grid{grid-template-columns:2fr 1fr 1fr 1.4fr}}
.footer-grid>div:first-child{grid-column:1/-1}
@media(min-width:900px){.footer-grid>div:first-child{grid-column:auto}}
.footer h4{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#d4c4a0;margin-bottom:10px}
.footer a,.footer .linklike{display:block;font-size:14px;margin:6px 0;color:#e6dfd2}
.muted-light{color:#b9b2a4;font-size:14px;margin-top:8px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:28px;padding-top:16px;font-size:12px;color:#a49d90}

/* consent */
.consent{position:fixed;left:12px;right:12px;bottom:12px;z-index:60;display:flex;justify-content:center}
.consent[hidden]{display:none}
.consent-inner{position:relative;max-width:720px;width:100%;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.2);padding:18px 20px}
.consent h2{font-size:18px;margin-bottom:6px}
.consent p{font-size:13.5px;color:var(--ink-soft)}
.consent p a{text-decoration:underline}
.consent-options{display:flex;gap:18px;margin:12px 0;font-size:14px;flex-wrap:wrap}
.consent-options[hidden]{display:none}
.consent-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:12px}
.consent-actions .btn{padding:10px 16px;font-size:12px}
.consent-actions [hidden]{display:none}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;background:var(--forest);color:#fff;padding:12px 20px;border-radius:999px;z-index:70;font-size:14px;box-shadow:var(--shadow)}
.toast[hidden]{display:none}

/* admin */
body.admin{background:#f6f3ec}
.admin-head{background:var(--paper);border-bottom:1px solid var(--line)}
.admin-head-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;flex-wrap:wrap}
.admin-head nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:14px}
.admin-head nav a{text-decoration:underline;text-underline-offset:3px}
.admin-login{margin:40px auto;max-width:400px}
.table-wrap{overflow-x:auto;background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.table th{font-size:12px;color:var(--ink-soft);font-weight:600;background:var(--paper)}
.table .num{text-align:right;white-space:nowrap}
.thumb{width:44px;height:44px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}
.order-detail{padding:8px 0;display:grid;gap:4px;min-width:360px}
.admin-form{display:flex;flex-direction:column;gap:16px;max-width:1000px}
.admin-form .field span{font-size:13.5px;line-height:1.35}
.price-block,.photo-block{border:1px solid var(--line);border-radius:var(--radius);padding:14px;background:var(--card);display:flex;flex-direction:column;gap:12px}
.price-block legend,.photo-block legend{font-family:var(--serif);font-weight:600;color:var(--forest);padding:0 6px}
.price-note{font-size:13px;color:var(--ink-soft);line-height:1.5}
.admin-active{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;background:#e8f0e8;border:2px solid var(--forest-mid);border-radius:12px;font-size:16px;font-weight:600;color:var(--forest)}
.admin-active input{width:22px;height:22px;margin-top:2px;flex:none;accent-color:var(--forest)}
.admin-active .hint{display:block;font-weight:400;font-size:13px;color:var(--ink-soft);margin-top:2px}
.image-edit{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.image-edit figure{border:1px solid var(--line);border-radius:12px;padding:8px;background:var(--paper);display:flex;flex-direction:column;gap:6px}
.image-edit img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:var(--bg-alt)}
.file-field input[type=file]{padding:18px 12px;border:2px dashed var(--forest-mid);background:var(--paper);border-radius:12px;min-height:64px;font-size:16px}
.admin-form{padding-bottom:88px}
.form-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;position:fixed;left:0;right:0;bottom:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(246,243,236,.96);border-top:1px solid var(--line);z-index:30;backdrop-filter:blur(8px)}
.form-actions .btn{min-height:48px;min-width:140px;font-size:15px}
summary{cursor:pointer}
code{background:var(--bg-alt);padding:1px 6px;border-radius:6px;font-size:13px}

/* mobile header fixes */
.brand{flex:1 1 auto;overflow:hidden}
.brand-en{overflow:hidden;text-overflow:ellipsis}
.icon-btn{flex:none}
.cur-mini{font-size:11px;letter-spacing:.06em;border:1px solid var(--line);border-radius:999px;padding:6px 9px;background:var(--paper);color:var(--ink-soft)}
@media(max-width:420px){.brand-en{font-size:15px;letter-spacing:.02em}.brand-cn{font-size:10px;letter-spacing:.12em}.header-inner{gap:10px}}
@media(min-width:900px){.brand{flex:none}.cur-mini{display:none}}

.delete-product{margin:16px 0 80px;padding-top:8px}
.delete-product .danger{color:var(--danger)}
.admin-form.compressing .form-actions .btn{opacity:.7;cursor:wait}
.compress-status{font-size:13px;color:var(--ink-soft);margin:0 8px}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* AI customer-service widget */
.gt-chat{position:fixed;right:16px;bottom:16px;z-index:50;font-size:14px}
.gt-chat-toggle{width:52px;height:52px;border:0;border-radius:50%;background:var(--forest);color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.22);cursor:pointer;display:flex;align-items:center;justify-content:center}
.gt-chat-toggle:focus-visible,.gt-chat-x:focus-visible,.gt-chat-composer button:focus-visible{outline:3px solid #c9a227;outline-offset:2px}
.gt-chat-toggle[aria-expanded=true]{background:var(--ink)}
.gt-chat-panel{position:absolute;right:0;bottom:64px;width:min(380px,calc(100vw - 24px));max-height:min(560px,calc(100vh - 100px));background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 48px rgba(0,0,0,.2);display:flex;flex-direction:column;overflow:hidden;isolation:isolate}
.gt-chat-panel[hidden]{display:none}
.gt-chat-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:var(--forest);color:#fff}
.gt-chat-head h2{margin:0;font-size:15px;font-weight:600}
.gt-chat-x{border:0;background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:4px 8px}
.gt-chat-notice{margin:0;padding:8px 12px;background:#f4efe3;color:var(--ink);font-size:12.5px;border-bottom:1px solid var(--line)}
.gt-chat-log{flex:1;overflow:auto;padding:10px 12px;display:flex;flex-direction:column;gap:8px;min-height:140px;background:#fff}
.gt-chat-msg{max-width:90%;padding:8px 10px;border-radius:12px;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.gt-chat-msg.user{align-self:flex-end;background:var(--forest);color:#fff}
.gt-chat-msg.assistant{align-self:flex-start;background:var(--bg-alt);color:var(--ink)}
.gt-chat-lookup,.gt-chat-handoff{padding:8px 12px;border-top:1px solid var(--line);display:grid;gap:6px;background:#fff}
.gt-chat-lookup-title{margin:0;font-weight:600;font-size:13px}
.gt-chat-lookup label,.gt-chat-handoff label{display:grid;gap:2px;font-size:12px;color:var(--ink-soft)}
.gt-chat-lookup input,.gt-chat-handoff input,.gt-chat-handoff textarea,.gt-chat-composer textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font:inherit;background:#fff}
.gt-chat-composer{display:flex;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:#fff;align-items:flex-end}
.gt-chat-composer textarea{resize:none;min-height:40px;max-height:96px;flex:1}
.gt-chat .btn.small{padding:8px 12px;font-size:13px;min-height:40px}
.gt-chat-handoff[hidden],.gt-chat-lookup[hidden]{display:none}
.clip{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ticket-body,.transcript pre{white-space:pre-wrap;word-break:break-word;background:var(--bg-alt);padding:10px;border-radius:8px;font:inherit}
.transcript{list-style:none;padding:0;display:grid;gap:10px}
.transcript .role-user pre{border-left:3px solid var(--forest)}
.admin-chat-toggle{margin:16px 0 40px}
@media(max-width:520px){
  .gt-chat{right:10px;bottom:10px}
  .gt-chat-panel{width:calc(100vw - 20px);max-height:min(80vh,calc(100vh - 84px));bottom:62px}
}

.story{padding-top:8px}
.story-inner{max-width:40rem}
.story-inner h2{margin-bottom:14px}
.story-inner p{color:var(--ink-soft);line-height:1.65;margin:0 0 12px}

.consent-gpc{margin:8px 0 0;font-size:13px;color:var(--ink-soft)}

.consent-close{position:absolute;top:8px;right:8px;width:40px;height:40px;border:0;background:transparent;color:var(--ink);font-size:24px;line-height:1;cursor:pointer;border-radius:8px}
.consent-close:hover{background:var(--bg-alt)}
.footer-seller{display:block;margin-top:10px;font-style:normal;font-size:13px;color:var(--muted-light, #cfc6b4);line-height:1.5}
.checkout-withdraw{margin:10px 0 14px}

.footer-withdraw{font-weight:600}
.details-safety{margin-top:28px}
.details-safety h2{font-size:1.15rem;margin-bottom:10px}
.details-safety dl{display:grid;gap:10px}
.details-safety .detail-row{display:grid;gap:2px}
.details-safety dt{font-weight:600;font-size:13px}
.details-safety dd{margin:0;white-space:pre-wrap;font-size:14px}
.seller-placeholder{background:#fff3bf;padding:0 4px}
.withdraw-items{margin:16px 0;display:grid;gap:8px}
.receipt-items{white-space:pre-wrap;background:var(--bg-alt,#f4efe6);padding:12px;border-radius:8px}
.review-dl{margin:16px 0}
.compliance-block{margin:20px 0;padding:12px 0}
@media print{
  header,.footer,.consent,.chat,.form-actions,.crumbs{display:none!important}
  .receipt-page{box-shadow:none}
}

.paypal-buttons{min-height:48px;margin-top:12px}
