/* yasuo layout: compact storefront + a consistent, calm member workspace. */
:root {
    --ys-accent: #525252;
    --ys-accent-dark: #3f3f3f;
    --ys-accent-soft: #f3f3f3;
    --ys-text: #353535;
    --ys-text-muted: #7d7d7d;
    --ys-line: #e6e6e6;
    --ys-header-height: 46px;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.ys-header.shop-header, .ys-header.shop-header.is-scrolled { min-height:46px; padding:0; background:rgba(255,255,255,.97); border-bottom:1px solid var(--ys-line); box-shadow:0 2px 12px #2f2f2f06; }
.ys-header.shop-header.is-scrolled { box-shadow:0 5px 20px #2f2f2f12; }
.ys-header .ys-navbar, .ys-header.is-scrolled .ys-navbar { min-height:45px; padding:0; gap:22px; flex-wrap:nowrap; }
.ys-header .ys-brand { display:inline-flex; align-items:center; gap:9px; margin:0; padding:0; font-size:17px; font-weight:750; line-height:1; letter-spacing:-.5px; color:var(--ys-text); white-space:nowrap; max-width:220px; }
.ys-header .ys-brand > span:last-child { overflow:hidden; text-overflow:ellipsis; }
.ys-header .ys-mark, .ys-header.is-scrolled .ys-mark { width:29px; height:29px; flex:0 0 29px; background:var(--ys-accent); color:#fff; border-radius:8px; font-size:17px; font-weight:750; box-shadow:none; transform:none; }
.ys-header .ys-nav-main { min-width:0; gap:20px; }
.ys-header .ys-nav-links { gap:4px; margin:0; flex:0 0 auto; }
.ys-header .nav-link { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:7px 11px; color:#707070; border-radius:8px; font-size:13px; line-height:1.3; transition:color .18s ease,background-color .18s ease; white-space:nowrap; }
.ys-header .nav-link::after { display:none; }
.ys-header .nav-link:hover, .ys-header .nav-link.active { color:var(--ys-accent); background:var(--ys-accent-soft); transform:none; }
.ys-header .ys-nav-actions { margin-left:auto; display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.ys-header .yasuo-platform-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;margin:0 4px 0 2px;border:1px solid var(--ys-line);border-radius:9px;background:#fafafa;list-style:none}
.ys-header .yasuo-platform-switch a{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:6px;color:#777;font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;transition:background-color .18s,color .18s}
.ys-header .yasuo-platform-switch a:hover{color:#111;background:#eee}
.ys-header .yasuo-platform-switch a.is-active{color:#fff;background:#111}
.ys-header .ys-nav-actions .ys-register { border:1px solid var(--ys-line); padding:6px 14px; }
.ys-header .ys-nav-actions .ys-register:hover { border-color:#c1c1c1; }
.ys-header .nav-member-chip { min-height:36px; gap:8px; padding:3px 6px!important; }
.ys-header .nav-member-avatar { background:var(--ys-accent-soft); color:var(--ys-accent); box-shadow:none; height:28px; width:28px; }
.ys-header .nav-member-chip:hover .nav-member-avatar { box-shadow:none; transform:scale(1.05); }
.ys-header .nav-member-copy strong { color:var(--ys-text); max-width:90px; font-size:12px; }
.ys-header .nav-member-copy small { color:var(--ys-text-muted); max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ys-header .ys-cart-link { gap:5px; }
.ys-header .cart-count-badge { background:var(--ys-accent); min-width:17px; padding:3px 4px; font-size:10px; }
.ys-header .shop-nav-search { margin:0 0 0 auto; padding:0 3px 0 10px; width:230px; max-width:230px; border:1px solid var(--ys-line); border-radius:9px; background:#f9f9f9; min-height:34px; gap:2px; flex:0 1 230px; }
.ys-header .shop-nav-search .form-control { border:0; background:transparent; box-shadow:none; padding:4px 0; min-width:0; min-height:32px; font-size:13px; margin:0; color:var(--ys-text); }
.ys-header .shop-nav-search:focus-within { border-color:#aaaaaa; box-shadow:0 0 0 3px #52525212; }
.ys-header .shop-nav-search .btn { display:inline-flex; align-items:center; justify-content:center; border:0; background:transparent; color:var(--ys-text-muted); min-height:28px; padding:4px 6px; border-radius:6px; box-shadow:none; }
.ys-header .shop-nav-search .btn:hover { color:var(--ys-accent); background:#ededed; transform:none; }
.ys-header .shop-nav-search [hidden] { display:none!important; }
.ys-header .ys-nav-toggle { display:none; }
.ys-catalog .category { top:var(--ys-header-height); }
.ys-header :is(a,button):focus-visible, .account-page :is(a,button,input,select):focus-visible { outline:2px solid #969696; outline-offset:3px; }

.account-page { background:#f8f8f8; padding:28px 0 64px; min-height:calc(100vh - var(--ys-header-height)); }
.account-hero { margin-bottom:22px; gap:18px; }
.account-hero h1 { font-size:28px; letter-spacing:-.6px; color:var(--ys-text); margin-top:6px; }
.account-hero p { color:var(--ys-text-muted); font-size:13px; margin-top:8px; }
.account-eyebrow { color:var(--ys-accent); font-size:11px; letter-spacing:.05em; }
.account-back-shop { border-color:#dbdbdb; border-radius:9px; color:#707070; font-size:12px; padding:8px 13px; box-shadow:none; }
.account-back-shop span { margin-left:8px; }
.account-layout { display:grid; grid-template-columns:212px minmax(0,1fr); gap:24px; align-items:start; }
.account-sidebar { position:sticky; top:calc(var(--ys-header-height) + 24px); min-width:0; border:1px solid var(--ys-line); border-radius:14px; background:#fff; padding:14px 10px 8px; box-shadow:0 4px 16px #2f2f2f04; }
.account-sidebar-profile { display:flex; align-items:center; gap:10px; padding:0 6px 16px; margin-bottom:10px; border-bottom:1px solid #f0f0f0; }
.account-profile-avatar { display:flex; align-items:center; justify-content:center; flex:0 0 36px; height:36px; border-radius:11px; background:#f1f1f1; color:var(--ys-accent); font-size:16px; font-weight:700; }
.account-sidebar-profile > div { min-width:0; }
.account-sidebar-profile strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ys-text); font-size:13px; font-weight:650; }
.account-sidebar-profile small { display:block; margin-top:3px; color:var(--ys-text-muted); font-size:11px; overflow-wrap:anywhere; }
.account-sidebar .account-nav { position:static; display:flex; flex-direction:column; align-items:stretch; padding:0; margin:0; gap:4px; border:0; border-radius:0; background:none; box-shadow:none; backdrop-filter:none; overflow:visible; }
.account-sidebar .account-nav::before { display:none; }
.account-sidebar .account-nav a { min-height:42px; border-radius:8px; padding:10px 12px; gap:11px; font-size:13px; color:#777777; font-weight:500; transition:color .18s ease,background .18s ease; }
.account-sidebar .account-nav a::before, .account-sidebar .account-nav a::after { display:none; }
.account-sidebar .account-nav a:hover { background:#f6f6f6; color:var(--ys-accent); transform:none; }
.account-sidebar .account-nav a.is-active { background:var(--ys-accent-soft); color:var(--ys-accent); box-shadow:none; font-weight:700; }
.account-sidebar .account-nav a.is-active::after { display:block; content:""; position:absolute; height:18px; width:3px; left:0; right:auto; top:50%; border:0; background:var(--ys-accent); border-radius:0 3px 3px 0; opacity:1; transform:translateY(-50%); }
.account-menu-icon { flex:0 0 18px; }
.account-sidebar-logout { padding:10px 5px 2px; margin-top:12px; border-top:1px solid #f0f0f0; }
.account-sidebar-logout button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:36px; border:0; background:none; border-radius:6px; padding:6px 7px; color:#939393; font-size:12px; transition:background .18s,color .18s; }
.account-sidebar-logout button:hover { color:#a33d36; background:#fff4f3; }
.account-menu-toggle { display:none; }
.account-section { min-width:0; padding:26px; border:1px solid var(--ys-line); border-radius:14px; box-shadow:0 4px 18px #2f2f2f04; margin:0; }
.account-section:hover { box-shadow:0 4px 18px #2f2f2f04; }
.account-section-heading { align-items:center; gap:14px; margin-bottom:24px; }
.account-section-heading h2 { font-size:20px; color:var(--ys-text); letter-spacing:-.3px; margin-top:6px; }
.account-section-note { color:var(--ys-text-muted); font-size:12px; max-width:260px; }
.account-stat { min-width:0; border-color:var(--ys-line); border-radius:11px; background:#fcfcfc; padding:20px; box-shadow:none; }
.account-stat:hover, .account-tool:hover { border-color:#cecece; box-shadow:0 6px 18px #2f2f2f07; transform:translateY(-2px); }
.account-stat-balance { background:#f4f4f4; border-color:#dcdcdc; }
.account-stat-balance strong { color:var(--ys-accent); font-size:30px; font-variant-numeric:tabular-nums; }
.account-stat strong { color:var(--ys-text); font-size:22px; }
.account-stat span, .account-stat small { color:var(--ys-text-muted); font-size:12px; }
.account-tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.account-tool { border-color:var(--ys-line); border-radius:11px; padding:22px; min-width:0; }
.account-transaction-tool { grid-column:1 / -1; }
.account-tool-heading h3 { color:var(--ys-text); font-size:15px; font-weight:650; }
.account-tool-heading p { color:var(--ys-text-muted); font-size:12px; }
.account-tool-icon { background:var(--ys-accent-soft); color:var(--ys-accent); border-color:#e3e3e3; border-radius:9px; }
.account-tool-icon-muted { background:#f7f7f7; color:#8d8d8d; border-color:var(--ys-line); }
.account-page .btn { min-height:38px; border-radius:9px; font-size:13px; font-weight:600; box-shadow:none; transition:background .18s,border-color .18s,box-shadow .18s; }
.account-page .btn:hover { transform:none; }
.account-page .btn-primary { background:var(--ys-accent); border-color:var(--ys-accent); }
.account-page .btn-primary:hover { background:var(--ys-accent-dark); border-color:var(--ys-accent-dark); }
.account-page .btn-outline-primary { color:var(--ys-accent); border-color:#c1c1c1; }
.account-page .btn-outline-primary:hover { background:var(--ys-accent-soft); border-color:var(--ys-accent); }
.account-page .btn-outline-secondary { border-color:#dbdbdb; color:#707070; }
.account-page .btn-outline-secondary:hover { background:#f4f4f4; color:var(--ys-accent); }
.account-page :is(.form-control,.form-select) { min-height:43px; border-color:#e0e0e0; border-radius:8px; font-size:14px; background-color:#fdfdfd; }
.account-page :is(.form-control,.form-select):focus { border-color:#aaaaaa; box-shadow:0 0 0 3px #52525212; }
.account-page .form-label { font-size:12px; color:#707070; font-weight:600; }
.account-page .input-group-text { border-color:#e0e0e0; background:#f5f5f5; color:#8b8b8b; }
.account-page .input-group > .form-control { border-top-left-radius:0; border-bottom-left-radius:0; }
.account-mini-list > div { border-color:#f1f1f1; }
.account-table-wrap { border-color:var(--ys-line); border-radius:10px; }
.account-table th { background:#f7f7f7; color:#7b7b7b; }
.account-table td { font-size:13px; overflow-wrap:anywhere; }
.account-table tbody tr { transition:background-color .18s ease; }
.account-table tbody tr:hover { background:#fcfcfc; }
.account-table a { color:var(--ys-accent); }
.account-order-status { background:#f1f1f1; color:#696969; }
.account-empty { color:#9c9c9c; }
.account-password-form { max-width:640px; padding:22px; background:#fcfcfc; border-color:var(--ys-line); border-radius:11px; }
.account-password-fields { grid-template-columns:1fr; gap:18px; }
.account-password-actions { gap:16px; align-items:flex-start; flex-direction:column; }
.account-password-actions .btn { align-self:flex-start; }
.account-password-actions small { font-size:12px; color:var(--ys-text-muted); }
.account-section.is-account-entering { animation:ysWorkspaceIn .22s ease-out both; }
.account-section.is-account-entering :is(.account-stat,.account-tool,.account-table-wrap,.account-password-form) { animation:none; }
@keyframes ysWorkspaceIn { from { opacity:.45; transform:translateY(6px); } to { opacity:1; transform:none; } }
.modal.fade .modal-dialog { transition:transform .22s ease-out; transform:translateY(12px); }
.modal.show .modal-dialog { transform:none; }
.modal-content { border-radius:14px; }

@media (max-width:1199.98px) {
    .ys-header .ys-navbar { gap:16px; }
    .ys-header .ys-cart-label { display:none; }
    .ys-header .ys-nav-main { gap:12px; }
}
@media (max-width:991.98px) {
    .ys-header .ys-navbar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:0 12px; min-height:51px; }
    .ys-header .ys-brand { grid-column:1; grid-row:1; max-width:200px; }
    .ys-header .ys-nav-actions { grid-column:2; grid-row:1; justify-self:end; margin:0; gap:6px; }
    .ys-header .ys-nav-toggle { grid-column:3; grid-row:1; display:flex!important; align-items:center; justify-content:center; width:36px; height:36px; min-height:36px; padding:7px; border:1px solid var(--ys-line); border-radius:8px; box-shadow:none; background:#fff; position:static; }
    .ys-header .navbar-toggler-icon { width:18px; height:18px; }
    .ys-header .ys-nav-main { grid-column:1 / -1; grid-row:2; min-width:0; width:100%; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
    .ys-header .ys-nav-main.show { padding:10px 0 12px; }
    .ys-header .ys-nav-links { flex-direction:column; align-items:stretch; gap:4px; margin:0 0 8px; }
    .ys-header .ys-nav-links .nav-link { display:flex; justify-content:flex-start; width:100%; min-height:40px; }
    .ys-header .yasuo-platform-switch{display:flex;margin:0 0 8px;padding:3px}
    .ys-header .yasuo-platform-switch a{flex:1;justify-content:center;min-height:36px}
    .ys-header .shop-nav-search { display:flex; width:100%; max-width:none; margin:0; min-height:40px; }
    .ys-header .shop-nav-search .form-control { font-size:16px; }
    .account-layout { grid-template-columns:184px minmax(0,1fr); gap:16px; }
    .account-section { padding:22px; }
    .account-stat-grid { grid-template-columns:1fr; }
    .account-stat { min-height:110px; }
    .account-tool-grid { grid-template-columns:1fr; }
    .account-transaction-tool { grid-column:auto; }
}
@media (max-width:767.98px) {
    :root { --ys-header-height:48px; }
    .ys-header.shop-header, .ys-header.shop-header.is-scrolled { min-height:48px; }
    .ys-header .ys-navbar { gap:0 8px; min-height:47px; }
    .ys-header .ys-brand { font-size:16px; max-width:170px; gap:7px; }
    .ys-header .nav-member-copy { display:none; }
    .ys-header .ys-nav-actions { gap:3px; }
    .ys-header .ys-nav-actions .nav-link { padding:7px 8px; }
    .ys-header .ys-nav-actions .ys-register { padding:6px 9px; }
    .account-page { padding:22px 0 44px; }
    .account-hero { flex-direction:row; align-items:center; gap:10px; margin-bottom:18px; }
    .account-hero h1 { font-size:24px; }
    .account-hero p { font-size:12px; max-width:230px; }
    .account-back-shop { flex:0 0 auto; }
    .account-layout { display:block; }
    .account-sidebar { position:static; padding:0; margin-bottom:14px; border-radius:11px; }
    .account-sidebar-profile { display:none; }
    .account-menu-toggle { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:46px; padding:10px 14px; border:0; border-radius:11px; background:#fff; color:var(--ys-text-muted); font-size:12px; }
    .account-menu-toggle strong { color:var(--ys-accent); font-weight:650; }
    .account-menu-toggle svg { transition:transform .18s ease; }
    .account-menu-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
    .account-sidebar .account-nav { flex-direction:column; align-items:stretch; overflow:visible; padding:6px 8px; margin:0; border-top:1px solid #f0f0f0; }
    .account-sidebar .account-nav a { min-height:43px; }
    .account-sidebar-logout { margin:0 8px 6px; padding:6px 0 0; }
    .account-sidebar.has-account-menu:not(.is-menu-expanded) :is(.account-nav,.account-sidebar-logout) { display:none; }
    .account-sidebar.is-menu-expanded .account-nav { animation:ysWorkspaceIn .18s ease-out both; }
    .account-section { padding:18px; border-radius:12px; }
    .account-section-heading { align-items:flex-start; gap:12px; margin-bottom:20px; }
    .account-section-heading h2 { font-size:19px; }
    .account-section-note { max-width:none; }
    .account-tool { padding:18px; }
    .account-stat-grid { grid-template-columns:1fr; }
    .account-stat { padding:18px; }
    .account-password-form { padding:16px; }
    .account-password-actions .btn { width:100%; }
    .account-table td { word-break:break-word; }
}
@media (max-width:359.98px) {
    .ys-header .ys-brand { font-size:14px; max-width:140px; gap:6px; }
    .ys-header .ys-nav-actions .nav-link { font-size:12px; padding:6px; }
    .ys-header .ys-nav-actions .ys-register { padding:6px; }
    .account-hero p { max-width:190px; }
    .account-back-shop span { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    .ys-header *, .account-page *, .modal.fade .modal-dialog { animation:none!important; transition:none!important; }
    .account-stat:hover, .account-tool:hover { transform:none; }
}
.ys-header .nav-member-chip.active .nav-member-copy strong { color:var(--ys-accent); }
.shop-scroll-progress { height:2px; background:var(--ys-accent); }
.shop-page-loader { background:var(--ys-accent); box-shadow:0 0 12px #52525224; }
@media (max-width:767.98px) { .account-sidebar:not(.has-account-menu) .account-menu-toggle { display:none; } }
@media (prefers-reduced-motion:reduce) { .modal.fade, .modal-backdrop.fade { transition:none!important; } }
/* The catalog template has a scoped sticky rule; keep it aligned with the measured header. */
.ys-catalog .category { top:var(--ys-header-height)!important; }

/* Product detail polish: keep the purchase flow compact, legible and touch-friendly. */
.buy-page .buy-card { overflow:hidden; border:1px solid #eaeaea; border-radius:14px; box-shadow:0 8px 28px rgba(24,55,40,.06); transition:box-shadow .22s ease, transform .22s ease; }
.buy-page .buy-card:hover { box-shadow:0 12px 34px rgba(24,55,40,.10); }
.buy-page .buy-media { height:100%; padding:18px; background:linear-gradient(145deg,#f9f9f9 0%,#f3f3f3 100%); }
.buy-page .buy-media > img { display:block; width:100%; max-height:300px; object-fit:contain; border-radius:12px; }
.buy-page .buy-media-status { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:14px; }
.buy-page .buy-media-status > div { min-width:0; padding:10px 9px; border:1px solid #e7e7e7; border-radius:9px; background:rgba(255,255,255,.78); }
.buy-page .buy-media-status span, .buy-page .buy-media-status strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.buy-page .buy-media-status span { color:#898989; font-size:11px; }
.buy-page .buy-media-status strong { margin-top:4px; color:var(--ys-text); font-size:12px; }
.buy-page .buy-body { padding:24px; }
.buy-page .buy-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.buy-page .buy-heading .card-title { margin-top:8px; color:var(--ys-text); font-size:22px; line-height:1.35; }
.buy-page .buy-price { flex:0 0 auto; padding:10px 13px; border-radius:10px; background:#f7f7f7; text-align:right; }
.buy-page .buy-price span { display:block; color:#898989; font-size:11px; }
.buy-page .buy-price strong { display:block; margin-top:2px; color:var(--ys-accent); font-size:22px; font-variant-numeric:tabular-nums; }
.buy-page .buy-form .input-group { display:flex; flex-wrap:nowrap; width:100%; min-width:0; }
.buy-page .buy-form .input-group > .btn { flex:0 0 42px; min-width:42px!important; }
.buy-page .buy-form .input-group > .form-control { flex:1 1 auto; min-width:42px; width:1%; text-align:center; }
.buy-page .buy-submit { transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.buy-page .buy-submit:not(:disabled):hover { transform:translateY(-1px); box-shadow:0 6px 14px rgba(33,97,72,.18); }
.buy-page .buy-submit.is-loading { cursor:wait; }
.buy-page .button-spinner { display:inline-block; width:14px; height:14px; margin-right:7px; vertical-align:-2px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:ysSpin .7s linear infinite; }
@keyframes ysSpin { to { transform:rotate(360deg); } }
@media (max-width:991.98px) {
    .ys-header .ys-navbar { display:grid!important; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:0 8px; min-height:51px; }
    .ys-header .ys-brand { grid-column:1; grid-row:1; order:0!important; justify-self:start; display:inline-flex!important; }
    .ys-header .ys-nav-main { grid-column:1 / -1; grid-row:2; order:1!important; }
    .ys-header .ys-nav-actions { grid-column:3; grid-row:1; order:2!important; display:flex!important; align-items:center; justify-self:end; margin:0!important; min-width:0; }
    .ys-header .ys-nav-toggle { grid-column:4; grid-row:1; order:3!important; }
}
@media (max-width:767.98px) {
    .buy-page .buy-media { padding:14px; }
    .buy-page .buy-media > img { max-height:220px; }
    .buy-page .buy-media-status { gap:6px; margin-top:10px; }
    .buy-page .buy-media-status > div { padding:8px 7px; }
    .buy-page .buy-media-status span { font-size:10px; }
    .buy-page .buy-media-status strong { font-size:11px; }
    .buy-page .buy-body { padding:18px 14px 16px; }
    .buy-page .buy-heading { display:block; }
    .buy-page .buy-heading .card-title { margin-bottom:12px; font-size:20px; }
    .buy-page .buy-price { display:flex; align-items:baseline; justify-content:space-between; padding:9px 12px; text-align:left; }
    .buy-page .buy-price span { display:inline; }
    .buy-page .buy-price strong { display:inline; margin-left:8px; font-size:20px; }
    .buy-page .buy-form .row > [class*="col-"] { width:100%; }
}
@media (max-width:359.98px) {
    .buy-page .buy-media-status { grid-template-columns:1fr; }
    .buy-page .buy-media-status > div { display:flex; align-items:center; justify-content:space-between; gap:8px; }
    .buy-page .buy-media-status strong { margin-top:0; }
}

/* Cart workspace: calm checkout controls with clear selection hierarchy. */
.cart-page { min-height:calc(100vh - var(--ys-header-height)); padding:34px 0 72px; background:#f8f8f8; }
.cart-page .cart-hero h1 { color:var(--ys-text); letter-spacing:-.5px; }
.cart-page .cart-eyebrow { color:var(--ys-accent); font-size:11px; letter-spacing:.08em; text-transform:uppercase; }
.cart-page .cart-hero p,.cart-page .cart-summary-note { color:var(--ys-text-muted); }
.cart-page .cart-layout,.cart-page .cart-checkout-layout { gap:22px; }
.cart-page .cart-items,.cart-page .cart-checkout-list { min-width:0; }
.cart-page .cart-bulk-toolbar { border-color:var(--ys-line); background:#fff; color:var(--ys-text-muted); box-shadow:0 3px 12px rgba(24,55,40,.04); }
.cart-page .cart-bulk-toolbar input[type=checkbox],.cart-page .cart-item-select input { accent-color:var(--ys-accent); }
.cart-page .cart-bulk-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.cart-page .cart-bulk-actions form { margin:0; }
.cart-page .cart-item,.cart-page .cart-checkout-item,.cart-page .cart-summary,.cart-page .cart-empty { border-color:var(--ys-line); border-radius:13px; box-shadow:0 4px 16px rgba(24,55,40,.04); }
.cart-page .cart-item { background:#fff; transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.cart-page .cart-item:hover { border-color:#cecece; box-shadow:0 8px 22px rgba(24,55,40,.07); transform:translateY(-1px); }
.cart-page .cart-item-title-row h2 a,.cart-page .cart-checkout-copy h2 { color:var(--ys-text); }
.cart-page .cart-item-meta strong,.cart-page .cart-summary-total strong { color:var(--ys-accent); }
.cart-page .cart-item-status.is-ready { background:#f3f3f3; color:var(--ys-accent); }
.cart-page .cart-stepper { border-color:#dfdfdf; border-radius:8px; overflow:hidden; }
.cart-page .cart-stepper-btn { color:var(--ys-accent); background:#fafafa; }
.cart-page .cart-stepper-btn:hover { background:var(--ys-accent-soft); }
.cart-page .cart-summary { top:calc(var(--ys-header-height) + 20px); background:#fff; }
.cart-page .cart-summary-total strong { font-variant-numeric:tabular-nums; }
.cart-page .btn-primary { background:var(--ys-accent); border-color:var(--ys-accent); }
.cart-page .btn-primary:hover { background:var(--ys-accent-dark); border-color:var(--ys-accent-dark); }
.cart-page .btn-outline-secondary { border-color:#d7d7d7; color:#707070; }
.cart-page .cart-empty-icon { color:var(--ys-accent); background:var(--ys-accent-soft); }
.cart-page .cart-checkout-index { background:var(--ys-accent-soft); color:var(--ys-accent); }
@media(max-width:767.98px) {
    .cart-page { padding:22px 0 50px; }
    .cart-page .cart-hero { align-items:flex-start; gap:14px; }
    .cart-page .cart-hero h1 { font-size:24px; }
    .cart-page .cart-bulk-toolbar { flex-wrap:wrap; }
    .cart-page .cart-bulk-actions { width:100%; margin-left:0; }
    .cart-page .cart-bulk-actions form { flex:1 1 0; }
    .cart-page .cart-bulk-actions .btn { width:100%; }
    .cart-page .cart-summary { position:static; }
}
@media(prefers-reduced-motion:reduce) { .cart-page .cart-item { transition:none; } .cart-page .cart-item:hover { transform:none; } }

/* Final yasuo polish: compact navigation and a calmer member workspace. */
:root { --ys-header-height:46px; }
.ys-header.shop-header,
.ys-header.shop-header.is-scrolled { min-height:46px; }
.ys-header .ys-navbar,
.ys-header.is-scrolled .ys-navbar { min-height:45px; gap:18px; }
.ys-header .ys-brand { font-size:16px; gap:8px; }
.ys-header .ys-mark,
.ys-header.is-scrolled .ys-mark { width:26px; height:26px; flex-basis:26px; border-radius:7px; font-size:15px; }
.ys-header .nav-link { min-height:32px; padding:6px 10px; font-size:12px; }
.ys-header .ys-nav-actions { gap:5px; }
.ys-header .nav-member-avatar { width:26px; height:26px; }
.ys-header .shop-nav-search { min-height:31px; border-radius:8px; }
.ys-header .shop-nav-search .form-control { min-height:29px; }
.ys-header .ys-nav-toggle { width:32px; height:32px; min-height:32px; padding:6px; }
.ys-header .ys-nav-toggle .navbar-toggler-icon { width:16px; height:16px; }

/* Member workspace: make the left rail read like a vertical app menu. */
.account-layout { grid-template-columns:224px minmax(0,1fr); gap:20px; }
.account-sidebar { top:calc(var(--ys-header-height) + 18px); padding:16px 10px 9px; border-radius:16px; box-shadow:0 10px 28px rgba(24,55,40,.055); }
.account-sidebar-profile { padding:0 7px 15px; margin-bottom:11px; }
.account-profile-avatar { width:38px; height:38px; flex-basis:38px; border-radius:12px; background:linear-gradient(145deg,#f2f2f2,#e9e9e9); }
.account-sidebar .account-nav { gap:3px; }
.account-sidebar .account-nav a { position:relative; min-height:44px; padding:11px 13px; border-radius:10px; }
.account-sidebar .account-nav a .account-menu-icon { opacity:.78; transition:opacity .18s ease, transform .18s ease; }
.account-sidebar .account-nav a:hover .account-menu-icon,
.account-sidebar .account-nav a.is-active .account-menu-icon { opacity:1; transform:scale(1.08); }
.account-sidebar .account-nav a.is-active { background:linear-gradient(90deg,#f2f2f2 0%,#f9f9f9 100%); }
.account-sidebar .account-nav a.is-active::after { width:4px; height:24px; left:-1px; border-radius:0 4px 4px 0; box-shadow:0 0 0 3px rgba(33,97,72,.08); animation:ysRailIn .2s ease-out both; }
@keyframes ysRailIn { from { opacity:0; transform:translate(-3px,-50%); } to { opacity:1; transform:translate(0,-50%); } }
.account-section { border-radius:16px; box-shadow:0 8px 26px rgba(24,55,40,.045); }
.account-section-heading { padding-bottom:16px; border-bottom:1px solid #f1f1f1; }
.account-stat,.account-tool { transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover:hover) and (pointer:fine) {
    .account-stat:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(24,55,40,.07); }
}
/* Interactive forms stay still while typing; only their border responds. */
.account-tool:hover { transform:none; box-shadow:none; }
.account-stat-balance strong { letter-spacing:-.7px; }
.account-page .btn { transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.account-page .btn:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(33,97,72,.10); }
.account-page .btn:active { transform:translateY(0); }

@media (max-width:991.98px) {
    .ys-header .ys-navbar { min-height:45px; gap:0 9px; }
    .ys-header .ys-nav-main.show { padding:8px 0 10px; }
    .account-layout { grid-template-columns:194px minmax(0,1fr); gap:14px; }
}
@media (max-width:767.98px) {
    :root { --ys-header-height:48px; }
    .ys-header.shop-header,
    .ys-header.shop-header.is-scrolled { min-height:48px; }
    .ys-header .ys-navbar,
    .ys-header.is-scrolled .ys-navbar { min-height:47px; }
    .ys-header .ys-brand { font-size:15px; }
    .ys-header .ys-mark,
    .ys-header.is-scrolled .ys-mark { width:25px; height:25px; flex-basis:25px; }
    .ys-header .ys-nav-toggle { width:32px; height:32px; min-height:32px; }
    .account-page { padding-top:18px; }
    .account-hero { margin-bottom:15px; }
    .account-sidebar { padding:0; box-shadow:0 6px 18px rgba(24,55,40,.05); }
    .account-section-heading { padding-bottom:13px; }
}
@media (prefers-reduced-motion:reduce) {
    .account-sidebar .account-nav a.is-active::after { animation:none; }
    .account-page .account-stat:hover,
    .account-page .account-tool:hover,
    .account-page .btn:hover,
    .account-sidebar .account-nav a .account-menu-icon,
    .ys-header .nav-member-chip:hover .nav-member-avatar { transform:none; }
}

/* Selected checkout: line items and a persistent, clearly separated summary. */
.cart-checkout-page .cart-checkout-layout { display:grid; grid-template-columns:minmax(0,1fr) 306px; align-items:start; }
.cart-checkout-page .cart-checkout-list { display:grid; gap:12px; }
.cart-checkout-page .cart-checkout-item { display:grid; grid-template-columns:26px 64px minmax(0,1fr) auto; align-items:center; gap:16px; padding:20px; border:1px solid var(--ys-line); background:#fff; transition:border-color .2s ease,box-shadow .2s ease; }
.cart-checkout-page .cart-checkout-item:hover { border-color:#cecece; box-shadow:0 8px 22px rgba(24,55,40,.07); }
.cart-checkout-page .cart-checkout-index { display:grid; place-items:center; width:26px; height:26px; border-radius:8px; font-size:12px; font-weight:700; }
.cart-checkout-page .cart-item-thumb { background:var(--ys-accent-soft); color:var(--ys-accent); border-radius:10px; }
.cart-checkout-page .cart-checkout-copy { min-width:0; }
.cart-checkout-page .cart-checkout-copy h2 { margin:0 0 8px; font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
.cart-checkout-page .cart-checkout-copy h2 a { color:inherit; text-decoration:none; }
.cart-checkout-page .cart-checkout-copy h2 a:hover { color:var(--ys-accent); }
.cart-checkout-page .cart-checkout-copy p { margin:0; color:var(--ys-text-muted); font-size:12px; line-height:1.8; }
.cart-checkout-page .cart-checkout-copy strong { color:var(--ys-accent); font-variant-numeric:tabular-nums; white-space:nowrap; }
.cart-checkout-page .cart-checkout-item > .btn { white-space:nowrap; font-size:12px; border-radius:9px; }
.cart-checkout-page .btn-outline-primary { color:var(--ys-accent); border-color:#cecece; background:#fff; }
.cart-checkout-page .btn-outline-primary:hover { color:var(--ys-accent-dark); border-color:var(--ys-accent); background:var(--ys-accent-soft); }
.cart-checkout-page .cart-summary-total { flex-wrap:wrap; gap:8px; }
.cart-checkout-page .cart-empty .btn { margin:4px; }
@media(max-width:991.98px) {
    .cart-checkout-page .cart-checkout-layout { grid-template-columns:minmax(0,1fr); }
    .cart-checkout-page .cart-summary { position:static; }
}
@media(max-width:575.98px) {
    .cart-checkout-page .cart-checkout-item { grid-template-columns:24px 48px minmax(0,1fr); gap:10px; padding:16px 12px; }
    .cart-checkout-page .cart-item-thumb { width:48px; height:48px; }
    .cart-checkout-page .cart-checkout-copy h2 { font-size:14px; margin-bottom:4px; }
    .cart-checkout-page .cart-checkout-item > .btn { grid-column:2 / -1; padding:9px 12px; }
    .cart-checkout-page .cart-checkout-index { width:24px; height:24px; }
}
@media(prefers-reduced-motion:reduce) {
    .cart-checkout-page .cart-checkout-item { transition:none; }
}

/* Clip horizontal paint without creating a non-scrolling sticky ancestor. */
@supports (overflow:clip) {
    html { overflow-x:clip; overflow-y:auto; }
    body { overflow-x:clip; overflow-y:visible; }
    .ys-catalog { overflow-x:clip; overflow-y:visible; }
}

/* Final compact header rhythm: keep the measured height across Bootstrap breakpoints. */
@media (max-width:991.98px) {
    .ys-header .ys-navbar { min-height:45px; }
}
@media (max-width:767.98px) {
    :root { --ys-header-height:48px; }
    .ys-header.shop-header,
    .ys-header.shop-header.is-scrolled { min-height:48px; }
    .ys-header .ys-navbar { min-height:47px; }
}

@media (hover:none), (pointer:coarse) {
    .account-page .account-stat:hover,.account-page .account-tool:hover,.account-page .btn:hover,
    .account-sidebar .account-nav a .account-menu-icon { transform:none; box-shadow:none; }
}

/* Storefront details use the same YaSuo neutral palette as the catalog. */
.buy-page .buy-heading > div:first-child { min-width:0; }
.buy-page .buy-heading .card-title { overflow-wrap:anywhere; }
.buy-page .buy-status.is-ready,.buy-page .buy-delivery-badge.bg-success { background:#f2f2f2!important; color:#202020!important; border-color:#e4e4e4; }
.buy-page .buy-description .card-body a,.buy-page .buy-form-tip a,.buy-page a.buy-form-tip { color:#202020; }
.buy-page .buy-cart-submit { color:#353535; border-color:#d7d7d7; background:#fff; }
.buy-page .buy-cart-submit:hover { color:#111; border-color:#aaa; background:#f3f3f3; }
.buy-page .buy-submit:not(:disabled):hover { box-shadow:0 6px 14px #11111118; }
.buy-page .buy-description { min-width:0; }
.buy-page .buy-description .card-body { min-width:0; overflow-wrap:anywhere; }
.buy-page .buy-description .card-body video,.buy-page .buy-description .card-body audio { display:block; max-width:100%; }
.buy-page .buy-description .card-body video { height:auto; }
.cart-page .cart-item-thumb { color:#353535; background:#f2f2f2; }
.cart-page :is(a,button,input):focus-visible,.buy-page :is(a,button,input,select):focus-visible { outline:2px solid #777; outline-offset:3px; }

.buy-page .buy-card:before { background:#555; }
.buy-page .buy-media { background:#f5f5f5; border-color:#e4e4e4; }
.buy-page .buy-total-preview { color:#353535; }
.buy-page .buy-payment-select { border-color:#d7d7d7; }
.buy-page .buy-form-cover { background:#fafafa; border-color:#e4e4e4; }
.buy-page #shop-number { min-height:38px; }
.buy-page .buy-form-cover,.buy-page .buy-form-cover strong { color:#353535; }
.buy-page .buy-media img { background:#f5f5f5; border-color:#e4e4e4; }
.buy-page .alert-info { background:#f2f2f2; border-color:#dedede; color:#353535; }
