/* Styles for native browser controls and small interaction surfaces. */
.desktop-only { display: none; }
.media-upload{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}.media-upload [role=status]{font-size:12px;color:#8b765f}.media-preview{display:flex;flex-wrap:wrap;gap:10px;width:100%}.media-preview img{width:96px;height:96px;object-fit:contain;background:#fafafa;border:1px solid #eee;border-radius:8px}.media-settings{margin-top:24px;padding:24px;border:1px solid #ddd;border-radius:12px;background:white}.media-settings h2{font-size:18px;font-weight:600}.media-settings p{font-size:13px;color:#888;margin:12px 0}.category-image{width:100%;height:100%;object-fit:cover;border-radius:50%}.payment-qr{display:block;width:180px;max-width:100%;height:auto;object-fit:contain;margin:16px auto}.order-edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.order-pick-list>div{display:flex;justify-content:space-between;gap:16px;padding:12px;border-bottom:1px solid #eee}.order-pick-list>div>span:first-child{flex:1}body[data-admin-view=true] #modal:has([data-order-edit]){width:min(880px,calc(100vw - 40px))}.native-actions{flex-wrap:wrap}@media(max-width:600px){.order-edit-fields{grid-template-columns:1fr}}
.address-empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; color: #d58b50; background: #fff1df; }
.address-empty-icon svg { width: 36px; height: 36px; }
.address-empty > button { margin-top: 24px; }
@media (max-width: 899px) {
  body[data-page="/addresses"] #root > nav[aria-label="底部导航"] { display: none; }
}
@media (min-width: 900px) {
  body[data-page="/addresses"] { background: #faf9f6; }
  body[data-page="/addresses"] #root > .shared-store-header { display: block; background: white; }
  body[data-page="/addresses"] #root > .address-page { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "heading action" "hint hint" "list list"; gap: 16px 24px; align-content: start; max-width: none; width: min(1440px, calc(100% - 80px)); margin: auto; padding: 32px 16px 64px; min-height: calc(100vh - 146px); background: transparent; }
  body[data-page="/addresses"] .address-header { grid-area: heading; position: static; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 0; border: 0; background: transparent; }
  body[data-page="/addresses"] .address-header > button { padding: 0; min-height: 28px; font-size: 13px; color: #998774; border: 0; background: transparent; }
  body[data-page="/addresses"] .address-header h1 { font-size: 28px; font-weight: 700; color: #3c3027; }
  body[data-page="/addresses"] .address-header h1::before { content: 'ADDRESS BOOK'; display: block; font-size: 10px; font-weight: 400; letter-spacing: 2px; color: #ac8e70; margin-bottom: 8px; }
  body[data-page="/addresses"] .address-hint { grid-area: hint; margin: 0 0 12px; padding: 0; color: #998b7c; font-size: 14px; }
  body[data-page="/addresses"] #root .address-footer { grid-area: action; align-self: end; position: static; transform: none; width: auto; padding: 0; border: 0; background: transparent; }
  body[data-page="/addresses"] .address-footer button { width: auto; min-height: 44px; border-radius: 10px; padding: 10px 20px; }
  body[data-page="/addresses"] .address-list { grid-area: list; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 0; }
  body[data-page="/addresses"] .address-card { display: flex; flex-direction: column; margin: 0; padding: 24px; border-radius: 16px; border-color: #eee5d9; box-shadow: 0 4px 18px #392b1a03; }
  body[data-page="/addresses"] .address-card:has(.address-default) { border-color: #ebc39d; background: #fffdf9; }
  body[data-page="/addresses"] .address-person { gap: 10px; }
  body[data-page="/addresses"] .address-person strong { font-size: 17px; }
  body[data-page="/addresses"] .address-person > span:not(.address-default) { color: #8c7e70; font-size: 13px; }
  body[data-page="/addresses"] .address-text { line-height: 1.9; margin: 20px 0; color: #67594b; }
  body[data-page="/addresses"] .address-tools { margin-top: auto; border-color: #f0e9e1; gap: 8px; padding-top: 18px; }
  body[data-page="/addresses"] .address-tools button { min-height: 36px; border-radius: 8px; }
  body[data-page="/addresses"] .address-tools .primary { flex-basis: 100%; min-height: 42px; }
  body[data-page="/addresses"] .address-empty { grid-column: 1/-1; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: white; border: 1px solid #eee5d9; border-radius: 18px; padding: 44px 24px; }
  body[data-page="/addresses"] .address-empty h2 { font-size: 21px; color: #514130; margin: 0 0 12px; }
  body[data-page="/addresses"] .address-empty-icon { width: 84px; height: 84px; margin-bottom: 22px; }
  body[data-page="/addresses"] .address-empty > button { border-radius: 10px; min-height: 44px; }
  body[data-page="/addresses"] #modal { width: min(680px, calc(100vw - 48px)); border-radius: 18px; padding: 30px; }
  body[data-page="/addresses"] #modal form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
  body[data-page="/addresses"] #modal .address-regions, body[data-page="/addresses"] #modal form > label:has([name="detail"]), body[data-page="/addresses"] #modal .native-actions { grid-column: 1/-1; }
  body[data-page="/addresses"] #modal .native-input { min-height: 44px; border-radius: 9px; }
}
@media (min-width:900px) and (max-width:1150px) {
  body[data-page="/addresses"] .address-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.checkout-main, .checkout-summary { display: contents; }
@media (max-width: 899px) {
  body[data-page="/checkout"] #root > nav[aria-label="底部导航"] { display: none; }
}
@media (min-width: 900px) {
  body[data-page="/checkout"] #root > .checkout-site-header { display: block; background: white; }
  body[data-page="/checkout"] #root > nav > .max-w-md,
  body[data-page="/checkout"] #root > .checkout-site-header > .desktop-store-header { width: min(1440px, calc(100% - 80px)); }
  body[data-page="/checkout"] #root > div.checkout-layout { width: min(1440px, calc(100% - 80px)); padding: 28px 16px 56px; }
  body[data-page="/checkout"] #root .checkout-summary { top: 170px; }
}
@media (min-width: 900px) {
  body[data-page="/checkout"] { background: #faf9f6; }
  body[data-page="/checkout"] #root > .checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 28px; width: min(1240px, calc(100% - 80px)); padding: 32px 0 56px; background: transparent; align-items: start; }
  .checkout-desktop-heading { display: block; grid-column: 1 / -1; padding-bottom: 6px; }
  .checkout-desktop-heading > a { color: #8e7e6d; font-size: 13px; display: inline-block; padding: 8px 0; }
  .checkout-desktop-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; }
  .checkout-desktop-heading p { font-size: 10px; letter-spacing: 2px; color: #aa8b6b; margin-bottom: 6px; }
  .checkout-desktop-heading h1 { font-size: 28px; font-weight: 700; color: #3d3025; }
  .checkout-desktop-heading ol { display: flex; gap: 28px; color: #b0a497; font-size: 13px; }
  .checkout-desktop-heading li[aria-current] { color: #e6661c; font-weight: 600; }
  .checkout-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .checkout-summary { display: flex; flex-direction: column; position: sticky; top: 24px; background: white; border: 1px solid #eee6dc; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 22px #432a1105; }
  body[data-page="/checkout"] [data-checkout-section] { margin: 0; border: 1px solid #eee6dc; border-radius: 16px; padding: 24px; background: white; }
  body[data-page="/checkout"] .checkout-main [data-checkout-section] > .mb-3 { margin-bottom: 20px; font-size: 17px; }
  body[data-page="/checkout"] [data-checkout-section="0"] > button { min-height: 52px; }
  body[data-page="/checkout"] [data-checkout-items] > div { padding: 14px 0; border-bottom: 1px solid #f2eee8; }
  body[data-page="/checkout"] [data-checkout-items] > div:last-child { border-bottom: 0; padding-bottom: 0; }
  body[data-page="/checkout"] [data-checkout-items] img { border-radius: 10px; }
  body[data-page="/checkout"] [data-checkout-section="2"] button { min-height: 50px; border-radius: 10px; }
  body[data-page="/checkout"] textarea { min-height: 96px; border-radius: 10px; padding: 12px; }
  body[data-page="/checkout"] .checkout-summary [data-checkout-section] { border: 0; border-radius: 0; }
  body[data-page="/checkout"] .checkout-summary [data-checkout-section="4"] { padding-bottom: 18px; }
  body[data-page="/checkout"] .checkout-summary [data-checkout-section="5"] { border-top: 1px solid #f1eae2; padding-top: 24px; padding-bottom: 8px; }
  body[data-page="/checkout"] .checkout-summary [data-checkout-section="6"] { position: static; padding: 16px 24px 24px; }
  body[data-page="/checkout"] #root [data-checkout-section="6"] > .max-w-md { width: 100%; max-width: none; padding: 0; display: block; }
  body[data-page="/checkout"] [data-checkout-section="6"] .text-right { display: none; }
  body[data-page="/checkout"] [data-checkout-section="6"] button { width: 100%; margin: 0; min-height: 48px; border-radius: 10px; font-size: 16px; }
  body[data-page="/checkout"] [data-checkout-section="4"] > button { width: 100%; min-height: 42px; background: #fff7ed; color: #c46a2c; border-color: #f0d8bc; border-radius: 9px; font-size: 13px; }
}
@media (min-width: 900px) {
  body[data-page="/mine"] { --store-width: min(1280px, calc(100% - 80px)); }
  body[data-page="/mine"] #root main > .account-desktop-grid { display: grid; grid-template-columns: 250px minmax(0,1fr); grid-template-areas: "heading heading" "profile orders" "menu recent" "footer footer"; gap: 22px 28px; padding: 32px 16px; }
  .account-heading { grid-area: heading; display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
  .account-heading p { font-size: 10px; letter-spacing: 2px; color: #ad8b6b; margin-bottom: 5px; }
  .account-heading h1 { font-size: 28px; font-weight: 700; color: #392f26; }
  .account-heading > span { color: #998b7e; font-size: 13px; }
  body[data-page="/mine"] .account-profile { grid-area: profile; margin: 0; padding: 25px 20px; background: #fff8ef; color: #483423; border: 1px solid #efdeca; border-radius: 16px; }
  body[data-page="/mine"] .account-profile > div { flex-direction: column; text-align: center; gap: 14px; }
  body[data-page="/mine"] .account-profile > div > div:first-child { background: #ffead4; color: #d97529; width: 62px; height: 62px; box-shadow: none; }
  body[data-page="/mine"] .account-profile svg { color: #d97529; }
  body[data-page="/mine"] .account-profile button { color: #483423; margin: auto; }
  body[data-page="/mine"] .account-profile p { color: #aa8c72; font-size: 12px; }
  body[data-page="/mine"] .account-orders { grid-area: orders; margin: 0; padding: 26px; border: 1px solid #eee7df; border-radius: 16px; box-shadow: 0 4px 18px #392f2603; }
  body[data-page="/mine"] .account-orders > div:first-child { margin-bottom: 22px; }
  body[data-page="/mine"] .account-orders > div:first-child > span { font-size: 18px; font-weight: 600; }
  body[data-page="/mine"] .account-orders .grid { gap: 12px; }
  body[data-page="/mine"] .account-orders .grid button { min-height: 96px; border: 1px solid #f0ebe5; border-radius: 12px; background: #fcfbf9; gap: 14px; justify-content: center; transition: background .2s, border-color .2s; }
  body[data-page="/mine"] .account-orders .grid button:not(:disabled):hover { background: #fff2e5; border-color: #f3cca8; }
  body[data-page="/mine"] .account-orders .grid svg { width: 24px; height: 24px; color: #aa784d; }
  body[data-page="/mine"] .account-orders .grid span { font-size: 13px; }
  body[data-page="/mine"] .account-menu { grid-area: menu; align-self: start; margin: 0; padding: 10px; border: 1px solid #eee7df; border-radius: 16px; }
  body[data-page="/mine"] .account-menu button { border: 0; border-radius: 10px; min-height: 54px; }
  body[data-page="/mine"] .account-menu button:hover { background: #fff5e9; }
  body[data-page="/mine"] .account-menu button svg:first-child { color: #a18a73; width: 18px; height: 18px; }
  .account-recent { grid-area: recent; display: block; border: 1px solid #eee7df; border-radius: 16px; padding: 26px; background: white; }
  .account-panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 10px; }
  .account-panel-title h2 { font-size: 18px; font-weight: 600; }
  .account-panel-title > span { color: #a09182; font-size: 12px; }
  .account-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .account-shortcut { display: flex; align-items: center; gap: 16px; padding: 20px; text-align: left; border-radius: 12px; border: 1px solid #eee7df; background: #fffdf9; }
  .account-shortcut:hover { border-color: #efbf92; background: #fff7ed; }
  .account-shortcut > svg { flex-shrink: 0; width: 26px; height: 26px; color: #d68a48; }
  .account-shortcut strong { font-size: 14px; font-weight: 600; }
  .account-shortcut p { font-size: 12px; color: #a09182; margin-top: 7px; line-height: 1.6; }
  .account-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #f0ebe5; }
  .account-welcome strong { font-size: 14px; font-weight: 500; }
  .account-welcome p { font-size: 12px; color: #a09182; margin-top: 6px; line-height: 1.6; }
  .account-welcome button { flex-shrink: 0; min-height: 42px; border-radius: 9px; }
  body[data-page="/mine"] .account-footer { grid-area: footer; margin: 10px 0; }
}
/* Desktop storefront: wide content, horizontal navigation and multi-column goods. */
@media (min-width: 900px) {
  body:not([data-page^="/admin"]) { --store-width: min(1440px, calc(100% - 80px)); }
  body:not([data-page^="/admin"]) #root .max-w-md { width: var(--store-width); max-width: none; }
  body:not([data-page^="/admin"]) #root > div > header { order: -2; }
  body:not([data-page^="/admin"]) #root > div > header > div { min-height: 72px; }
  body:not([data-page^="/admin"]) #root > div > header input { height: 42px; max-width: 640px; }
  body:not([data-page^="/admin"]) nav[aria-label="底部导航"] { position: sticky; top: 72px; bottom: auto; order: -1; border-top: 0; border-bottom: 1px solid var(--border); }
  body:not([data-page^="/admin"]) nav[aria-label="底部导航"] > div { justify-content: flex-start; gap: 12px; }
  body:not([data-page^="/admin"]) nav[aria-label="底部导航"] a { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 16px 26px; font-size: 15px; }
  body:not([data-page^="/admin"]) nav[aria-label="底部导航"] a:hover { background: #fff3e8; }
  body[data-page="/"] main > .max-w-md { padding-top: 24px; }
  body[data-page="/"] main > .max-w-md > .sticky { display: none; }
  body[data-page="/"] main .aspect-\[5\/2\] { aspect-ratio: auto; height: clamp(240px, 24vw, 360px); }
  body[data-page="/"] [data-home-categories] { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 16px; padding: 20px; border: 1px solid #ffedd5; border-radius: 12px; background: white; }
  body[data-page="/"] [data-home-categories] > * { flex: 1; min-width: 90px; padding: 8px; }
  body[data-page="/"] [data-home-categories] > .opacity-0 { display: none; }
  body[data-page="/"] [data-home-categories] span { font-size: 14px; }
  body[data-page="/"] [data-home-sections] > section { margin-top: 32px; }
  body[data-page="/"] [data-home-sections] h2, body[data-page="/category"] main h2 { font-size: 22px; }
  body[data-page="/"] [data-home-sections] section > div > a { font-size: 14px; }
  body[data-page="/"] [data-home-sections] .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  body[data-page="/category"] [data-category-products] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  body[data-page="/category"] main > .max-w-md { padding-top: 24px; }
  body[data-page="/category"] main aside { width: 190px; margin-right: 12px; border-radius: 12px; }
  body[data-page="/category"] main aside button { padding: 16px 20px; font-size: 15px; }
  body[data-page="/category"] main main { min-width: 0; }
  body:is([data-page="/"], [data-page="/category"]) .grid > a > .p-2 { padding: 16px; }
  body:is([data-page="/"], [data-page="/category"]) .grid > a h3 { font-size: 16px; }
  body:is([data-page="/"], [data-page="/category"]) .grid > a:hover { box-shadow: 0 8px 24px #00000012; }
  body:is([data-page="/cart"], [data-page="/checkout"], [data-page="/orders"], [data-page="/mine"]) { --store-width: min(1100px, calc(100% - 80px)); }
  body[data-page="/cart"] .fixed.bottom-16 { bottom: 0; }
  body[data-page="/product"] { --store-width: min(1200px, calc(100% - 80px)); }
  body[data-page="/product"] main > .max-w-md { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; align-content: start; margin-top: 24px; }
  body[data-page="/product"] main > .max-w-md > .relative.overflow-hidden { grid-column: 1; grid-row: 1 / 4; }
  body[data-page="/product"] main > .max-w-md > .bg-white:not(.fixed) { grid-column: 2; padding: 24px; }
  body[data-page="/product"] main > .max-w-md > .h-2 { display: none; }
  body[data-page="/product"] main > .max-w-md > .fixed.top-0 { top: 0; }
  body[data-page="/product"] main > .max-w-md > .fixed.top-0 > div { height: 72px; }
  body[data-page="/product"] main > .max-w-md > .fixed.bottom-0 > div { justify-content: flex-end; }
  body[data-page="/product"] main > .max-w-md > .fixed.bottom-0 > div > .flex-1 { flex: 0 1 240px; min-height: 44px; }
  body[data-page="/product"] .fixed.z-50 .max-w-md { max-width: 600px; }
  body[data-page="/addresses"] .address-page { max-width: 1100px; width: calc(100% - 80px); }
  body[data-page="/addresses"] .address-footer { width: min(1100px, calc(100% - 80px)); }
}
@media (min-width: 1250px) {
  body[data-page="/category"] [data-category-products] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  body:is([data-page="/"], [data-page="/category"], [data-page="/cart"], [data-page="/mine"]) #root > div { background: #faf9f6; }
  .store-header { background: #fff; border-bottom: 1px solid #eee9e2; }
  .store-header > div:not(.desktop-store-header) { display: none; }
  #root .store-header > .desktop-store-header { display: flex; width: var(--store-width); min-height: 92px; margin: auto; padding: 16px; gap: 40px; }
  .desktop-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: #302a25; }
  .desktop-brand-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #ed681b; color: white; }
  .desktop-brand-icon svg { width: 24px; height: 24px; }
  .desktop-brand-icon.has-logo { background: transparent; }
  .desktop-brand-icon img { display: none; width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
  .desktop-brand-icon.has-logo img { display: block; }
  .desktop-brand-icon svg[hidden] { display: none; }
  .desktop-brand strong { display: block; font-size: 22px; letter-spacing: .5px; }
  .desktop-brand small { display: block; margin-top: 4px; color: #9b8e80; font-size: 10px; letter-spacing: 1.3px; }
  .desktop-search { display: flex; flex: 1; align-items: center; max-width: 600px; margin-left: auto; border: 1px solid #e9dfd4; border-radius: 10px; background: #faf8f5; padding: 5px; }
  #root .desktop-search input { min-width: 0; flex: 1; max-width: none; height: 36px; background: transparent; padding: 0 14px; font-size: 14px; outline: none; }
  .desktop-search:focus-within { border-color: #ed681b; box-shadow: 0 0 0 3px #ed681b12; }
  .desktop-search button { background: #ed681b; color: white; border-radius: 7px; padding: 9px 25px; font-size: 14px; white-space: nowrap; }
  .desktop-account { align-self: center; font-size: 14px; white-space: nowrap; color: #554a40; }
  .desktop-account span { margin-left: 12px; color: #ed681b; }
  body:not([data-page^="/admin"]) nav[aria-label="底部导航"] { top: 92px; background: white; }
  body:not([data-page^="/admin"]) nav[aria-label="底部导航"] a { position: relative; padding: 16px 24px; font-weight: 500; }
  body:not([data-page^="/admin"]) nav[aria-label="底部导航"] a[aria-current="page"]::after { content: ''; position: absolute; bottom: 0; height: 3px; left: 24px; right: 24px; border-radius: 3px; background: #ed681b; }
  body[data-page="/"] .home-mobile-banner { display: none; }
  body[data-page="/"] .desktop-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 340px; margin: 4px 16px 20px; border-radius: 20px; overflow: hidden; background: #f3e8d8; }
  .desktop-hero-copy { padding: 40px 48px; position: relative; background: radial-gradient(ellipse at bottom left, #ffe0af, transparent 80%); }
  .desktop-eyebrow { color: #a76532; font-size: 11px; font-weight: 600; letter-spacing: 2px; }
  .desktop-hero h1 { margin: 15px 0; font-size: clamp(30px, 2.6vw, 43px); font-weight: 700; line-height: 1.35; letter-spacing: 1px; color: #432e1e; }
  .desktop-hero p { color: #88705a; font-size: 14px; line-height: 1.9; }
  .desktop-shop-link { display: inline-flex; align-items: center; gap: 32px; margin-top: 22px; padding: 12px 22px; border-radius: 8px; background: #ed681b; color: white; font-size: 14px; }
  .desktop-shop-link:hover, .desktop-search button:hover { background: #d9530b; }
  .desktop-hero-photo { position: relative; min-width: 0; overflow: hidden; }
  .desktop-hero-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 54%; }
  .desktop-hero-photo > span { position: absolute; bottom: 22px; right: 22px; color: white; padding: 9px 17px; border: 1px solid #ffffff60; border-radius: 30px; background: #34200d50; backdrop-filter: blur(8px); font-size: 12px; }
  body[data-page="/"] [data-home-categories] { margin-top: 20px; padding: 12px; border-color: #eee9e2; box-shadow: 0 4px 20px #33241103; }
  body[data-page="/"] [data-home-categories] > button { border-radius: 10px; transition: background .2s, transform .2s; }
  body[data-page="/"] [data-home-categories] > button:hover { background: #fff5e9; transform: translateY(-2px); }
  body[data-page="/"] [data-home-categories] > button > div { width: 48px; height: 48px; background: #faf5ed; }
  body[data-page="/"] [data-home-sections] h2 { color: #332c26; font-size: 22px; display: flex; align-items: center; gap: 10px; }
  body[data-page="/"] [data-home-sections] h2::before { content: ''; width: 4px; height: 20px; border-radius: 4px; background: #ed681b; }
  body:is([data-page="/"], [data-page="/category"]) .grid > a { border: 1px solid #eee9e2; border-radius: 14px; box-shadow: 0 2px 6px #2b1c0b03; transition: box-shadow .2s, transform .2s; }
  body:is([data-page="/"], [data-page="/category"]) .grid > a:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #2b1c0b12; }
  body:is([data-page="/"], [data-page="/category"]) .grid > a > .aspect-square { aspect-ratio: 1.2; }
  body:is([data-page="/"], [data-page="/category"]) .grid > a .items-baseline { padding-top: 8px; }
  body:is([data-page="/"], [data-page="/category"]) .grid > a .items-baseline > span:first-child { font-size: 22px; color: #e76520; }
  body:is([data-page="/"], [data-page="/category"]) .grid > a button { width: 34px; height: 34px; right: 12px; bottom: 12px; box-shadow: 0 3px 10px #b9552330; }
  body[data-page="/category"] main aside { background: white; border: 1px solid #eee9e2; padding: 10px; align-self: flex-start; }
  body[data-page="/category"] main aside button { border-radius: 8px; }
  body[data-page="/category"] main aside button.text-primary { background: #fff1e1; }
  body[data-page="/category"] main > .max-w-md > .sticky { position: static; border-radius: 12px; border: 1px solid #eee9e2; margin-bottom: 20px; box-shadow: none; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  #root .store-header > .desktop-store-header { gap: 20px; }
  .desktop-brand strong { font-size: 18px; }
  .desktop-account { display: none; }
  .desktop-hero-copy { padding: 30px; }
}
.admin-frame-layout aside nav > * + * { margin-top: 10px; }
.admin-frame-layout aside nav > a, .admin-frame-layout aside nav > div > button { padding-top: 12px; padding-bottom: 12px; }
.admin-frame-layout aside nav .pl-10 { padding-left: 24px; margin-top: 8px; }
.admin-frame-layout aside nav .pl-10 a { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.admin-frame-layout aside nav .pl-10 a + a { margin-top: 8px; }
.admin-frame-layout aside nav svg { flex-shrink: 0; }
.product-preview-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; color: var(--primary); font-size: 12px; white-space: nowrap; }
.product-preview-link:hover { background: #fff3e8; border-radius: 6px; }
.admin-frame-layout > div { height: 100vh; min-height: 0; overflow: hidden; }
.admin-frame-layout > div > aside { width: 220px !important; flex-shrink: 0; }
.admin-frame-layout > div > div { min-width: 0 !important; }
.admin-frame-layout header { height: 60px; flex-shrink: 0; }
.admin-content-frame { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #f8fafc; }
body[data-admin-view="true"] { background: #f8fafc; }
@media(max-width:700px) { .admin-frame-layout > div > aside { width: 160px !important; } .admin-frame-layout header { padding: 0 12px; } }
.product-editor { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.product-editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #fafafa; border-bottom: 1px solid var(--border); }
.product-editor-toolbar button { padding: 5px 9px; border: 1px solid #e5e5e5; border-radius: 4px; background: white; font-size: 13px; }
.product-editor-toolbar button:hover { color: var(--primary); border-color: var(--primary); }
.product-editor-body { min-height: 260px; padding: 14px; outline: none; }
.product-editor-body:focus { box-shadow: inset 0 0 0 1px var(--primary); }
.product-rich-content { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.product-rich-content h2 { font-size: 22px; font-weight: 700; margin: 12px 0; }
.product-rich-content h3 { font-size: 18px; font-weight: 600; }
.product-rich-content ul { list-style: disc; padding-left: 24px; }
.product-rich-content ol { list-style: decimal; padding-left: 24px; }
.product-rich-content img { max-width: 100%; height: auto; margin: 10px 0; }
.product-rich-content a { color: var(--primary); text-decoration: underline; }
[hidden] { display: none !important; }
button, a, [role="button"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
#toast { position: fixed; z-index: 20000; left: 50%; top: 22px; transform: translateX(-50%); border-radius: 8px; background: white; color: #1f2229; box-shadow: 0 4px 20px #0002; border: 1px solid #e4e4e7; padding: 12px 20px; font-size: 14px; display: none; }
#toast.visible { display: block; }
#toast.error { color: #d92d20; }
#modal { margin: auto; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 24px; border: 1px solid var(--border); border-radius: 12px; color: var(--foreground); background: white; box-shadow: 0 12px 50px #0003; overflow-y: auto; }
#modal::backdrop { background: #0008; }
#modal h2 { margin: 0 24px 18px 0; font-size: 18px; font-weight: 600; }
.modal-close { position: absolute; right: 16px; top: 13px; font-size: 22px; color: #8f949e; }
.native-field { display: grid; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.native-input { width: 100%; min-height: 36px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 6px; background: transparent; outline: none; font-size: 14px; }
.native-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px #ff680020; }
.address-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.address-regions .native-field { min-width: 0; }
.address-page { max-width: 448px; min-height: 100vh; margin: 0 auto; background: #f8f8f8; padding-bottom: 100px; }
.address-header { display: flex; align-items: center; gap: 18px; position: sticky; top: 0; z-index: 10; padding: 12px 16px; background: white; border-bottom: 1px solid var(--border); }
.address-header h1 { font-size: 16px; font-weight: 600; }
.address-hint { padding: 16px; font-size: 13px; color: #777; }
.address-list { padding: 0 12px; }
.address-card { padding: 16px; background: white; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.address-person { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.address-default { color: var(--primary); background: #fff3e8; padding: 2px 7px; border-radius: 4px; font-size: 12px; }
.address-text { font-size: 14px; line-height: 1.6; margin: 10px 0 14px; overflow-wrap: anywhere; }
.address-tools { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.address-tools button { font-size: 12px; padding: 6px 10px; }
.address-tools button:disabled { color: #999; }
.address-footer { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(448px, 100%); padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--border); }
.address-footer button { width: 100%; min-height: 42px; }
.address-regions select { background: white; padding-left: 7px; padding-right: 3px; }
.address-regions select:disabled { background: #f5f5f5; color: #999; cursor: not-allowed; }
@media (max-width: 420px) { .address-regions { grid-template-columns: 1fr; gap: 0; } }
.native-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.native-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); border-radius: 6px; padding: 7px 14px; font-size: 14px; background: white; }
.native-button.primary { background: var(--primary); border-color: var(--primary); color: white; }
.native-button.danger { color: #ef4444; }
.native-select-wrap { position: relative; }
.native-select-menu { position: fixed; z-index: 21000; background: white; border: 1px solid var(--border); border-radius: 6px; padding: 4px; box-shadow: 0 6px 18px #0002; max-height: 260px; overflow: auto; min-width: 140px; }
.native-select-menu button { display: block; width: 100%; padding: 7px 10px; text-align: left; font-size: 14px; border-radius: 4px; }
.native-select-menu button:hover, .native-select-menu button:focus, .native-select-menu button[aria-selected="true"] { background: #fff4eb; color: var(--primary); outline: none; }
[role="checkbox"][aria-checked="true"]::after { content: "✓"; display: block; font-size: 12px; line-height: 1; text-align: center; color: white; }
[role="checkbox"] > * { display: none; }
.native-empty { padding: 48px 16px; text-align: center; color: var(--muted-foreground); font-size: 14px; }
.native-empty h2 { color: var(--foreground); font-weight: 600; font-size: 18px; margin: 14px 0 8px; }
.native-order { background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 12px; font-size: 14px; }
.native-order-header { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.native-order-content { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 16px; }
.native-muted { color: var(--muted-foreground); font-size: 12px; }
.native-status { color: var(--primary); }
.native-spec { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 8px; }
.native-error { color: #dc2626; font-size: 13px; margin: 8px 0; }
.native-watermark { position: fixed; right: 12px; bottom: 12px; z-index: 9999; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 99px; color: #fff; background: #333; box-shadow: 0 2px 12px #0002; font-size: 12px; font-weight: 600; pointer-events: none; }
.native-watermark img { width: 16px; height: 16px; }
@media (max-width: 760px) {
  #root > .bg-slate-50 > aside { width: 176px; }
  #root > .bg-slate-50 > div { min-width: 600px; }
  .native-order-content { gap: 12px; }
}
/* Shop logo upload setting */
.logo-setting{width:100%}.logo-upload-card{display:flex;flex-wrap:nowrap;align-items:center;gap:20px;padding:20px;margin:12px 0 0;border:1px solid #e8e3de;border-radius:12px;background:#fdfcfb;width:100%;box-sizing:border-box}.logo-upload-card .logo-preview{width:104px;height:104px;flex:0 0 104px;display:grid;place-items:center;background:white;border:1px solid #ece7e2;border-radius:14px;padding:12px;box-sizing:border-box}.logo-upload-card .logo-preview:empty:after{content:'Logo';color:#aaa;font-size:16px}.logo-upload-card .logo-preview img{width:78px;height:78px;border:0;border-radius:10px;background:transparent;object-fit:contain}.logo-upload-content{min-width:0}.logo-upload-content strong{font-size:15px;color:#292524}.logo-upload-content p{font-size:12px;color:#8a817b;margin:5px 0 12px;line-height:1.6}.logo-upload-actions{display:flex;flex-wrap:wrap;gap:8px}.logo-upload-content [role=status]{display:block;margin-top:6px}.logo-upload-content [role=status]:empty{display:none}.logo-url-details{margin-top:10px}.logo-url-details summary{cursor:pointer;font-size:12px;color:#837970;width:fit-content}.logo-url-details input{margin-top:8px;width:100%}.logo-save-hint{font-size:12px;color:#9b8e80;margin:8px 0 0}@media(max-width:480px){.logo-upload-card{padding:14px;gap:14px}.logo-upload-card .logo-preview{width:80px;height:80px;flex-basis:80px;padding:8px}.logo-upload-card .logo-preview img{width:62px;height:62px}}
.banner-settings .banner-uploader{display:flex;align-items:center;gap:12px;margin:18px 0}.banner-settings .banner-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;order:3;width:100%;margin-top:6px}.banner-card{min-width:0;border:1px solid #e9e4df;border-radius:12px;overflow:hidden;background:white}.banner-grid .banner-card>img{display:block;width:100%;height:auto;aspect-ratio:5/2;object-fit:cover;border:0;border-radius:0;background:#f7f5f2}.banner-card-info{padding:12px}.banner-card-info strong{font-size:13px;font-weight:600}.banner-card-actions{display:flex;gap:6px;margin-top:10px}.banner-card-actions .native-button{font-size:12px;min-height:30px;padding:4px 10px}.banner-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:150px;padding:24px;text-align:center;border:1px dashed #ded5cb;border-radius:12px;background:#fdfbf8}.banner-empty strong{font-size:14px;font-weight:500;color:#54483e}.banner-empty span{font-size:12px;line-height:1.7;color:#988b7f}.banner-save-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;border-top:1px solid #eee8e2}.banner-save-bar span{font-size:12px;color:#988b7f}@media(max-width:480px){.banner-settings .banner-grid{grid-template-columns:1fr}.banner-save-bar{align-items:flex-start;flex-direction:column}}
.desktop-image-setting .media-preview img{width:min(100%,520px);height:auto;aspect-ratio:2/1;object-fit:cover;border-radius:12px}.desktop-image-setting .media-preview{order:-1}.desktop-image-setting .media-upload>button{background:#fa640b;color:white;border-color:#fa640b}
@media(min-width:900px){body:not([data-page^="/admin"]) nav[aria-label="底部导航"] > div > a:nth-child(3){margin-left:auto}}
.pickup-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.pickup-fields>div{min-width:0}.pickup-fields input{width:100%;margin-top:6px}.pickup-location{padding:12px;background:#faf7f3;border-radius:8px;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.checkout-payment-options{display:grid;gap:8px;margin:16px 0}.checkout-payment-option{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #e4e4e7;border-radius:8px;cursor:pointer;font-size:14px}.checkout-payment-option:has(input:checked){border-color:#fa640b;background:#fff6ed}.checkout-payment-option input{accent-color:#fa640b}.checkout-payment-note{padding:12px;margin:12px 0;background:#f7f7f9;border-radius:8px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:#716b65}.payment-note-setting{display:block;margin:16px 0;font-size:14px}.payment-note-setting textarea{display:block;width:100%;margin-top:8px}@media(max-width:600px){.pickup-fields{grid-template-columns:1fr}}

.native-order-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.native-order-header > .native-status { align-self: center; white-space: nowrap; }

/* Product classification supports multiple roots and their subcategories. */
.product-category-picker{border:1px solid #dee0e3;border-radius:8px;padding:12px;max-height:340px;overflow:auto}
.category-choice-group{padding:8px 0}.category-choice-group label{display:flex;align-items:center;gap:7px;font-size:14px;cursor:pointer}
.category-choice-group input{accent-color:#ea7c24;width:16px;height:16px}
.category-children:not([hidden]){display:flex;flex-wrap:wrap;gap:12px;padding:12px 0 0 24px}
body[data-page="/"] .animate-marquee{width:max-content;min-width:100%;padding-left:100%;box-sizing:content-box;animation:store-notice-scroll 22s linear infinite}
@keyframes store-notice-scroll{from{transform:translateX(0)}to{transform:translateX(-100%)}}
body[data-page="/"] .animate-marquee:hover{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){body[data-page="/"] .animate-marquee{animation:none;padding-left:0;width:auto;white-space:normal}}

body[data-page="/"] [data-home-categories]{display:grid;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:96px;grid-template-columns:none;gap:18px 12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:16px;}
body[data-page="/"] [data-home-categories]>button{min-width:0;scroll-snap-align:start;}
.category-scroll-controls{display:flex;justify-content:flex-end;gap:8px;margin:-12px 20px 16px}.category-scroll-controls[hidden]{display:none}.category-scroll-controls button{border:1px solid #eee0d2;background:white;border-radius:50%;width:32px;height:32px;cursor:pointer}.category-scroll-controls button:disabled{opacity:.35;cursor:default}
.home-unified-banner{display:block;margin-top:20px}.home-unified-banner a{display:block}
@media(min-width:1024px){body[data-page="/"] [data-home-categories]{grid-auto-columns:120px;gap:18px 16px}.home-unified-banner{margin:24px 16px 0}}
@media(max-width:600px){body[data-page="/"] [data-home-categories]{grid-auto-columns:76px;gap:14px 6px}}

.subcategory-filter{position:relative;margin-bottom:16px;font-size:14px;max-width:100%;}
.subcategory-filter summary,.product-category-picker summary{cursor:pointer;padding:8px 10px;border:1px solid #ddd;border-radius:6px;background:white;list-style:none;overflow-wrap:anywhere;}
.subcategory-panel{position:absolute;z-index:40;top:100%;left:0;width:290px;max-width:100%;background:white;border:1px solid #ddd;border-radius:8px;padding:12px;box-shadow:0 6px 20px #0002;}
.subcategory-options{max-height:240px;overflow-y:auto;margin:8px 0;}.subcategory-options label:not([hidden]){display:flex;gap:8px;align-items:center;padding:8px;cursor:pointer;}.subcategory-options input{accent-color:#ef7c25;}.subcategory-actions{display:flex;justify-content:space-between;gap:8px;}
.product-category-picker{overflow:visible;max-height:none;}.product-category-picker[open]{max-height:420px;overflow:auto;}.product-category-picker>p{margin-top:10px;}

.native-field[hidden]{display:none}
