/* Independent AI storefront; shared checkout and account components retain their behavior. */
body.theme-ai{background:#fafafb;color:#242432;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.theme-ai .tokyo-page-frame{max-width:1240px;margin:auto;padding:0 32px}
.theme-ai .tokyo-nav-shell{background:transparent;box-shadow:none;border:0;position:relative}
.theme-ai .tokyo-nav-wrap{padding:22px 0;border-bottom:1px solid #ebebf1}
.theme-ai .tokyo-brand-chip{background:none;border:0;box-shadow:none;padding:0}
.theme-ai .tokyo-brand-name{font-size:20px;font-weight:750;color:#252335}
.theme-ai .tokyo-brand-mark{border-radius:12px;width:36px;height:36px}
.theme-ai .tokyo-nav-link{font-size:13px;color:#707080;border-radius:9px}
.theme-ai .tokyo-nav-link.is-active{color:#6452de;background:#f0edff}
.theme-ai .tokyo-shell{padding:38px 0 60px;max-width:none}
.theme-ai .tokyo-shop-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;align-items:start}
.ai-sidebar{position:sticky;top:24px;padding:8px 0;min-width:0}
.ai-sidebar-title{font-size:18px;font-weight:700;padding:0 14px 24px}
.ai-sidebar-title span{display:block;color:#9a98a8;font-size:12px;font-weight:400;margin-top:8px}
#store-categories{display:flex;flex-direction:column;gap:6px;max-height:calc(100vh - 210px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ai-brand{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:0;background:transparent;color:#666476;text-align:left;padding:13px 15px;border-radius:11px;font:inherit;font-size:14px;cursor:pointer;transition:background .15s}
.ai-brand:hover{background:#f1f0f7;color:#5543cd}.ai-brand.is-active{background:#eeebff;color:#5b45d6;font-weight:650}
.ai-count{font-size:11px;line-height:19px;border-radius:6px;background:#eeedf3;color:#858196;padding:0 6px;margin-left:8px}
.ai-brand.is-active .ai-count{background:#ded7ff;color:#5b45d6}
.ai-side-note{color:#a09dad;font-size:12px;line-height:1.9;margin:30px 14px;border-top:1px solid #eae9f1;padding-top:20px}
.theme-ai .tokyo-catalog-panel{border:0;background:transparent;box-shadow:none;border-radius:0;min-width:0}
.theme-ai .tokyo-catalog-heading{padding:0 0 25px;border:0;align-items:center;gap:18px;background:transparent}
.theme-ai .panel-kicker{font-size:10px;color:#a29ab8;letter-spacing:2px;margin-bottom:8px}
.theme-ai .tokyo-index-panel-title{font-size:24px;letter-spacing:-.6px;color:#252335}
.theme-ai .tokyo-catalog-tools{gap:8px;flex-wrap:wrap}
.theme-ai .tokyo-search-combo{border:1px solid #e8e6ef;border-radius:12px;background:white;box-shadow:none;max-width:340px}
.theme-ai .tokyo-searchbox input{font-size:13px;background:transparent;min-width:0}
.theme-ai .tokyo-searchbox{background:transparent;border:0}
.theme-ai .tokyo-button-dark{background:#6550df;border-color:#6550df;color:#fff;border-radius:9px}
.theme-ai #chirou-product-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 20px;padding:0}
.theme-ai #chirou-product-tags[hidden]{display:none}
.ai-filter-label{font-size:12px;color:#9792a7;margin-right:4px}
.theme-ai .catalog-tag-button{border:1px solid #e8e5f0;border-radius:8px;background:#fff;color:#777083;font-size:12px;padding:7px 10px;margin:0}
.theme-ai .catalog-tag-button.is-selected{color:#6149d9;background:#f0ecff;border-color:#dfd7ff}
.theme-ai .tokyo-catalog-body{padding:0;background:transparent}
.theme-ai .tokyo-commodity-table{border-collapse:separate;border-spacing:0 10px;table-layout:fixed;width:100%}
.theme-ai .tokyo-commodity-table thead{display:none}
.theme-ai .tokyo-commodity-table td{background:#fff;border:0;border-top:1px solid #eeedf3;border-bottom:1px solid #eeedf3;padding:22px 16px;vertical-align:middle}
.theme-ai .tokyo-commodity-table td:first-child{border-left:1px solid #eeedf3;border-radius:14px 0 0 14px}
.theme-ai .tokyo-commodity-table td:last-child{border-right:1px solid #eeedf3;border-radius:0 14px 14px 0}
.theme-ai .tokyo-commodity-row:hover td{background:#fdfcff}
.theme-ai .tokyo-commodity-name{font-size:14px;font-weight:550;color:#383244;line-height:1.7;overflow-wrap:anywhere}
.theme-ai .tokyo-commodity-anchor{gap:14px}
.theme-ai .tokyo-commodity-thumb{width:42px;height:42px;border-radius:12px;background:#f1eefb;color:#7a61db;flex-shrink:0}
.theme-ai .tokyo-commodity-price-main{font-size:17px;color:#5943ce;font-weight:700;white-space:nowrap}
.theme-ai .tokyo-commodity-muted{color:#8b8796;font-size:12px}
.theme-ai .tokyo-commodity-col-price{width:115px}.theme-ai .tokyo-commodity-col-stock{width:85px}
.theme-ai .tokyo-pill{font-size:10px;background:#f5f4f9;color:#928a9f;border:0;border-radius:5px}
.theme-ai .tokyo-pill-success{background:#edf8f3;color:#4e9d79}
.theme-ai .tokyo-footer{background:transparent;border-top:1px solid #ebe9f1;color:#9892a5;position:static}
.theme-ai button:focus-visible,.theme-ai a:focus-visible{outline:2px solid #8771ef;outline-offset:3px}
.theme-ai #chirou-products[aria-busy=true]{opacity:.55}
@media(max-width:900px){
.theme-ai .tokyo-page-frame{padding:0 18px}.theme-ai .tokyo-shop-layout{grid-template-columns:170px minmax(0,1fr);gap:22px}
.theme-ai .tokyo-catalog-heading{align-items:flex-start;flex-direction:column}.theme-ai .tokyo-search-combo{max-width:100%}
.theme-ai .tokyo-commodity-table td{padding:18px 12px}.theme-ai .tokyo-commodity-thumb{display:none}
}
@media(max-width:640px){
.theme-ai .tokyo-page-frame{padding:0 14px}.theme-ai .tokyo-nav-wrap{padding:16px 0}.theme-ai .tokyo-shell{padding:20px 0 35px}
.theme-ai .tokyo-shop-layout{display:block}.ai-sidebar{position:static;margin-bottom:26px;padding:0}
.ai-sidebar-title{padding:0 0 12px;font-size:14px}.ai-sidebar-title span,.ai-side-note{display:none}
#store-categories{flex-direction:row;max-height:none;overflow-y:hidden;overflow-x:auto;padding:3px 2px 9px;scrollbar-width:thin}.ai-brand{width:auto;flex:0 0 auto;padding:10px 13px;white-space:nowrap;font-size:13px;background:#fff;border:1px solid #eeedf4}.ai-brand.is-active{background:#eeebff;border-color:#e1d9ff}
.theme-ai .tokyo-index-panel-title{font-size:22px}.theme-ai .tokyo-catalog-tools,.theme-ai .tokyo-search-combo{width:100%}.theme-ai .tokyo-searchbox{flex:1;width:0}
.theme-ai .tokyo-catalog-heading{padding-bottom:18px}.theme-ai .tokyo-commodity-table td{border:1px solid #eeedf3!important;border-radius:12px!important;padding:18px!important}
.theme-ai .tokyo-commodity-name{font-size:13px}.theme-ai .tokyo-pill-mobile-price{color:#6049ce;font-size:14px;font-weight:700;background:none;padding-left:0}
.theme-ai .tokyo-commodity-row{display:table-row}.theme-ai .tokyo-commodity-main{width:100%}.theme-ai .tokyo-commodity-price,.theme-ai .tokyo-commodity-muted{display:none}
}
/* Neutralize the inherited storefront frame while keeping shared forms intact. */
body.theme-ai{background:#fafafb!important;--tokyo-bg:#fafafb}
.theme-ai .tokyo-nav{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
.theme-ai .tokyo-brand-name::after,.theme-ai .tokyo-brand-name::before{display:none!important}
.theme-ai .tokyo-cate-block,.theme-ai .tokyo-table-wrap{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.theme-ai .tokyo-search-combo{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;padding:5px!important}
.theme-ai .tokyo-searchbox-combo{display:flex!important;flex:1!important;width:auto!important;min-width:0!important;margin:0!important;padding:8px 10px!important}
.theme-ai .tokyo-searchbox-combo input{width:100%!important;min-width:0!important;flex:1!important;display:block!important}
.theme-ai .item-search-trigger{width:auto!important;flex:0 0 auto!important;margin:0!important;padding:10px 15px!important}
.theme-ai .tokyo-commodity-muted::before{content:'库存 ';font-size:10px}
@media(max-width:640px){
.theme-ai .tokyo-catalog-heading{gap:14px!important;margin-top:0!important}
.theme-ai .tokyo-catalog-panel{padding:0!important}
.theme-ai .tokyo-table-wrap{overflow:visible!important}
.theme-ai .tokyo-commodity-table{margin:0!important}
.theme-ai .tokyo-commodity-table td{padding:16px!important}
}

/* Local preset navigation icons; no external image requests. */
.ai-brand-icon{width:24px;height:24px;flex:0 0 24px;object-fit:contain;padding:4px;box-sizing:content-box;border-radius:9px;background:#fff}
.ai-brand-label{flex:1;min-width:0}.ai-brand{justify-content:flex-start;gap:11px}.ai-brand .ai-count{margin-left:auto}
@media(max-width:640px){.ai-brand-icon{width:20px;height:20px;flex-basis:20px;padding:2px;border-radius:6px}.ai-brand{gap:7px}.ai-brand-label{flex:initial}.ai-brand .ai-count{margin-left:2px}}

/* Size price and stock from their content, overriding inherited narrow columns. */
@media(min-width:641px){
.theme-ai .tokyo-commodity-table{table-layout:auto}
.theme-ai .tokyo-commodity-col-main{width:auto!important}
.theme-ai .tokyo-commodity-col-price,.theme-ai .tokyo-commodity-col-stock{width:1%!important}
.theme-ai .tokyo-commodity-table tbody td.tokyo-commodity-price{padding-left:18px!important;padding-right:18px!important;white-space:nowrap}
.theme-ai .tokyo-commodity-table tbody td.tokyo-commodity-muted{padding-left:8px!important;padding-right:16px!important;white-space:nowrap}
}

/* Normal category links retain the storefront navigation style. */
.ai-brand{text-decoration:none;box-sizing:border-box}.ai-brand-label{overflow-wrap:anywhere}

/* AiStore loading mark: local vector, no artificial wait, and a CSS escape if scripts fail. */
.ai-page-loader{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 46%,#f0ecff 0, #fafafb 48%);animation:ai-loader-release 0s 6s forwards}
.ai-page-loader[hidden]{display:none!important}
.ai-loader-content{display:flex;flex-direction:column;align-items:center;gap:10px;transform:translateY(-20px)}
.ai-loader-emblem{position:relative;width:128px;height:128px;display:grid;place-items:center;margin-bottom:12px}
.ai-loader-emblem img{display:block;border-radius:23px;box-shadow:0 12px 32px #6651dc24}
.ai-loader-orbit{position:absolute;inset:0;border:1px solid #ded7fa;border-top-color:#8870ed;border-right-color:#8870ed;border-radius:50%;animation:ai-loader-spin 2s linear infinite}
.ai-loader-orbit:after{content:"";position:absolute;top:17px;right:14px;width:7px;height:7px;background:#8c74eb;border:3px solid #f6f3ff;border-radius:50%;box-sizing:content-box}
.ai-loader-brand{font-size:20px;line-height:1.4;font-weight:700;letter-spacing:-.6px;color:#30294a}
.ai-loader-caption{display:flex;align-items:center;gap:7px;font-size:12px;color:#8b819e;letter-spacing:2px}
.ai-loader-dots{display:inline-flex;gap:3px}.ai-loader-dots i{width:3px;height:3px;border-radius:50%;background:#9480d4;animation:ai-loader-pulse 1.2s ease-in-out infinite}.ai-loader-dots i:nth-child(2){animation-delay:.15s}.ai-loader-dots i:nth-child(3){animation-delay:.3s}
@keyframes ai-loader-spin{to{transform:rotate(360deg)}}
@keyframes ai-loader-pulse{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@keyframes ai-loader-release{to{visibility:hidden;pointer-events:none}}
@media(prefers-reduced-motion:reduce){.ai-loader-orbit,.ai-loader-dots i{animation:none}}

/* Compact mobile category entry and a two-column bottom sheet. */
.ai-category-toggle{display:none}.ai-category-toggle[hidden]{display:none!important}
.ai-category-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:560px;max-height:85vh;max-height:85dvh;margin:0 auto;padding:0 18px max(18px,env(safe-area-inset-bottom));box-sizing:border-box;border:0;border-radius:24px 24px 0 0;background:#fafafb;color:#302c3c;box-shadow:0 -12px 60px #24203824;overflow:hidden}
.ai-category-sheet[open]{display:flex;flex-direction:column}.ai-category-sheet::backdrop{background:rgba(28,23,46,.38);backdrop-filter:blur(3px)}
.ai-sheet-handle{width:34px;height:4px;flex:none;background:#dcd7e8;border-radius:4px;margin:10px auto 20px}
.ai-sheet-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 2px 20px;flex:none}
.ai-sheet-heading h2{margin:0;font-size:20px;font-weight:700;letter-spacing:-.4px}.ai-sheet-heading p{margin:6px 0 0;font-size:12px;color:#938ba1}
.ai-sheet-close{width:34px;height:34px;flex:none;border:0;border-radius:50%;background:#efedf4;color:#7d738d;font:24px/1 sans-serif;cursor:pointer}
.ai-category-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:2px 2px 6px;scrollbar-width:thin}
.ai-category-sheet .ai-brand{display:grid;grid-template-columns:26px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:10px;row-gap:3px;width:100%;min-height:76px;padding:12px;border:1px solid #eeebf3;background:#fff;border-radius:14px;white-space:normal}
.ai-category-sheet .ai-brand.is-active{border-color:#cfc2fb;background:#eee8ff;color:#6247cf}
.ai-category-sheet .ai-brand:first-child{grid-column:1 / -1;min-height:68px}
.ai-category-sheet .ai-brand-icon{grid-row:1 / 3;width:24px;height:24px;flex-basis:24px;padding:0;border-radius:6px;background:transparent}
.ai-category-sheet .ai-brand-label{grid-column:2;font-size:12px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.ai-category-sheet .ai-count{grid-column:2;font-size:10px;line-height:1.3;font-weight:400;margin:0;padding:0;background:transparent;color:#9b92a9;justify-self:start}
.ai-category-sheet .ai-count:after{content:' 件商品'}.ai-category-sheet .is-active .ai-count{color:#9b86d0}
@media(max-width:640px){
.ai-category-enhanced .ai-sidebar-title,.ai-category-enhanced #store-categories{display:none}
.ai-category-enhanced .ai-sidebar{margin-bottom:22px}
.ai-category-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;padding:14px;border:1px solid #e9e3f4;border-radius:16px;background:linear-gradient(110deg,#f1edff,#fff 78%);text-align:left;box-sizing:border-box;color:#352d47}
.ai-category-toggle-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;background:white;color:#8065df;box-shadow:0 3px 8px #5941a908}
.ai-category-toggle-icon svg{width:21px;height:21px}.ai-category-toggle-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ai-category-toggle-copy>span{font-size:10px;color:#a198b2}.ai-category-toggle-copy strong{font-size:14px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}
.ai-category-toggle-action{display:flex;align-items:center;gap:3px;flex:none;font-size:11px;color:#8873b6}.ai-category-toggle-action svg{width:14px;height:14px}
}
