:root{--preference-paper:#fff;--preference-ink:#33373d;--preference-line:#e4dfda}
.preferences-bar{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0;max-width:100%;padding:0 2px 9px;color:var(--preference-ink);font:400 13px/1.4 'K2D','Segoe UI','Microsoft YaHei',sans-serif}
.preference-language{display:flex;align-items:center;gap:9px;min-width:0;max-width:calc(100% - 53px);margin:0;font:inherit}
.preference-language>span{font-size:22px;flex:none}
.preference-language select{margin:0;min-width:0;max-width:245px;width:100%;min-height:44px;background:var(--preference-paper);color:var(--preference-ink);border:1px solid var(--preference-line);padding:8px 28px 8px 11px;border-radius:22px;font:inherit;cursor:pointer}
.preference-theme{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid var(--preference-line);border-radius:50%;background:var(--preference-paper);color:var(--preference-ink);cursor:pointer}
.theme-symbol{font:26px/1 Georgia,serif}.preference-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.preferences-bar button:focus-visible,.preferences-bar select:focus-visible{outline:3px solid #bf8965;outline-offset:3px}
.admin-main>.preferences-bar{padding:10px 38px 0}.login-card>.preferences-bar{margin:-10px 0 24px;padding:0;justify-content:space-between}
:lang(zh-CN),:lang(zh-TW),:lang(ja){text-underline-offset:3px}
html[data-theme=dark]{--ink:#eee5dc;--muted:#b5b1aa;--cream:#1e2520;--peach:#3c2c24;--line:#3e4840;--white:#1a211c;--rust:#e2ac85;--rust-dark:#c88f67;--green:#9bc9a7;--preference-paper:#202822;--preference-ink:#eee5dc;--preference-line:#485148;color-scheme:dark;background:#151b17;scrollbar-color:#778276 #1c241e}
html[data-theme=dark] body{background:#151b17;color:var(--ink)}
html[data-theme=dark] .site-shell{border-color:var(--line);background:#171e19}
html[data-theme=dark] .site-header,html[data-theme=dark] .footer-main,html[data-theme=dark] .footer-bottom,html[data-theme=dark] .login-brand{background:#673f2b;color:#fff7ef}
html[data-theme=dark] .search-bar,html[data-theme=dark] .nav-pill,html[data-theme=dark] .nav-dropdown,html[data-theme=dark] .panel,html[data-theme=dark] .stat,html[data-theme=dark] .topbar,html[data-theme=dark] .sidebar,html[data-theme=dark] .drawer,html[data-theme=dark] .drawer>header,html[data-theme=dark] .user-menu,html[data-theme=dark] .auth-box,html[data-theme=dark] .summary-box,html[data-theme=dark] .cart-table tr,html[data-theme=dark] .cookie-banner,html[data-theme=dark] .quiz-option,html[data-theme=dark] .variant-row,html[data-theme=dark] .brand-index-card{background:#202822;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select,html[data-theme=dark] option{background:#1c241e;color:var(--ink);border-color:#5b665b}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#aaa99f;opacity:1}
html[data-theme=dark] .search-bar input{background:transparent;color:var(--ink)}html[data-theme=dark] .search-bar button{color:var(--ink)}
html[data-theme=dark] .btn,html[data-theme=dark] .primary{background:#98562f;border-color:#b87c55;color:#fff9f2}
html[data-theme=dark] .btn:hover,html[data-theme=dark] .primary:hover{background:#a76339}
html[data-theme=dark] .btn.outline,html[data-theme=dark] .secondary,html[data-theme=dark] .product-quick,html[data-theme=dark] .tab-buttons button,html[data-theme=dark] .mobile-filter,html[data-theme=dark] .filter-chip{background:#29342b;color:#f1d1b9;border-color:#69705b}
html[data-theme=dark] .btn.light{background:#f5e7d8;color:#64391f}
html[data-theme=dark] .nav-pill:hover,html[data-theme=dark] .nav-pill.active,html[data-theme=dark] .nav-dropdown a:hover,html[data-theme=dark] nav button.active,html[data-theme=dark] nav button:hover,html[data-theme=dark] .user-menu [role=menuitem]:hover,html[data-theme=dark] .user-menu [role=menuitem]:focus-visible{background:#3b3b2d;color:#f0c8a8}
html[data-theme=dark] .nav-submenu-toggle{color:var(--ink)}html[data-theme=dark] .mobile-menu-links .nav-submenu-toggle{background:#303a31;border-color:#667360}
html[data-theme=dark] .product-price,html[data-theme=dark] .product-name,html[data-theme=dark] .detail-info h1,html[data-theme=dark] .rich-text h2,html[data-theme=dark] .rich-text h3,html[data-theme=dark] .rich-text h4{color:var(--ink)}
html[data-theme=dark] .product-image,html[data-theme=dark] .detail-image{background:#f0ece6;border:1px solid #5b5e50}
html[data-theme=dark] .product-image .wishlist-button,html[data-theme=dark] .product-badge{background:#fff9f2;color:#65432c}
html[data-theme=dark] .image-thumbnails button{background:#ece7df;border-color:#796955}
html[data-theme=dark] .detail-short,html[data-theme=dark] .rich-text,html[data-theme=dark] .detail-meta,html[data-theme=dark] .detail-promise,html[data-theme=dark] .summary-note,html[data-theme=dark] .cart-product p{color:var(--muted)}
html[data-theme=dark] .detail-meta strong,html[data-theme=dark] .summary-row{color:var(--ink)}
html[data-theme=dark] .notice{background:#3b3021;border-color:#786044;color:#f0d2b0}
html[data-theme=dark] .notice.success,html[data-theme=dark] .notice.green,html[data-theme=dark] .payment-success{background:#1d3a29;border-color:#608d6a;color:#d5efdc}
html[data-theme=dark] .error,html[data-theme=dark] .form-error,html[data-theme=dark] .toast.failure{color:#ffc1b4!important}
html[data-theme=dark] .danger{background:#4c2927;color:#ffc3b7}
html[data-theme=dark] .badge.green,html[data-theme=dark] .status-badge.paid{background:#254634;color:#c0e8cb}
html[data-theme=dark] .badge.orange,html[data-theme=dark] .status-badge.pending{background:#4e4025;color:#f2d397}
html[data-theme=dark] .badge.red{background:#502b29;color:#f8c0b9}html[data-theme=dark] .badge.blue{background:#263e50;color:#c1ddf2}
html[data-theme=dark] th,html[data-theme=dark] .table-scroll-note,html[data-theme=dark] table.has-actions th:last-child{background:#28332a;color:#c4c5b8;border-color:var(--line)}
html[data-theme=dark] td,html[data-theme=dark] .cart-table td{border-color:var(--line)}
html[data-theme=dark] table.has-actions td:last-child{background:#202822;border-color:var(--line)}
html[data-theme=dark] tbody tr:hover,html[data-theme=dark] .toolbar input{background:#263228}
html[data-theme=dark] .detail-price,html[data-theme=dark] .product-brand,html[data-theme=dark] .eyebrow,html[data-theme=dark] .text-link,html[data-theme=dark] .table-action,html[data-theme=dark] .password-toggle{color:#e8b58f}
html[data-theme=dark] .brand-word{color:#cec1ad}
html[data-theme=dark] .hero-dot::after{background:#738274}html[data-theme=dark] .hero-dot.active::after{background:#e8b58f}
html[data-theme=dark] .product-thumb,html[data-theme=dark] .cart-product img,html[data-theme=dark] .drawer-item img{background:#ede8df}
html[data-theme=dark] .code-text{background:#151d17;color:#d8e5d8}html[data-theme=dark] .notes{background:#29362b}
html[data-theme=dark] .user-menu-toggle:hover,html[data-theme=dark] .user-menu-toggle[aria-expanded=true]{background:#313d31}
@media(max-width:900px){.admin-main>.preferences-bar{padding:9px 20px 0}.preferences-bar{font-size:13px}.preference-language select{font-size:16px;max-width:240px}html[data-theme=dark] .login-brand{background:transparent;color:var(--ink)}}
@media(max-width:600px){.preferences-bar{padding:0 2px 9px;gap:8px}.preference-language{flex:1;max-width:calc(100% - 52px)}.preference-language select{max-width:100%;width:100%;font-size:16px}.admin-main>.preferences-bar{padding:9px 14px 0}.login-card>.preferences-bar{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.preference-theme{transition:none}}

/* Store header: warm charcoal surfaces keep the brand accent restrained. */
html[data-theme=dark] #site-header{--preference-paper:#2b2926;--preference-ink:#f0e8df;--preference-line:#514b44}
html[data-theme=dark] #site-header .site-header{background:#242321;color:#f5efe8;border:1px solid #45413c;box-shadow:0 10px 32px #0000001f}
html[data-theme=dark] #site-header .search-bar{background:#32312e;border-color:#565049;box-shadow:inset 0 1px 1px #ffffff05}
html[data-theme=dark] #site-header .search-bar:focus-within{border-color:#bb9375;box-shadow:0 0 0 3px #bb937522}
html[data-theme=dark] #site-header .search-bar input{background:transparent;color:#f5efe8}
html[data-theme=dark] #site-header .search-bar input::placeholder{color:#bfb8af}
html[data-theme=dark] #site-header .search-bar button{color:#e6d8ca}
html[data-theme=dark] #site-header .search-bar button:hover{background:#403b35}
html[data-theme=dark] #site-header .nav-pill{background:transparent;color:#eee7de;box-shadow:inset 0 0 0 1px #514b44}
html[data-theme=dark] #site-header .nav-pill:hover,html[data-theme=dark] #site-header .nav-pill.active{background:#3b332d;color:#edcbb0;box-shadow:inset 0 0 0 1px #89694f}
html[data-theme=dark] #site-header .nav-submenu-toggle{background:transparent;color:#d2c5b8}
html[data-theme=dark] #site-header .nav-submenu-toggle:hover{background:#40362e;color:#edcbb0}
html[data-theme=dark] #site-header .nav-dropdown{background:#2c2a27;color:#eee7de;border-color:#514b44;box-shadow:0 16px 40px #00000059}
html[data-theme=dark] #site-header .nav-dropdown a:hover,html[data-theme=dark] #site-header .nav-dropdown a:focus-visible{background:#40362e;color:#edcbb0}
html[data-theme=dark] #site-header .cart-badge{background:#ead9c8;color:#493123}
html[data-theme=dark] #site-header .header-contact{color:#dccfc1}
html[data-theme=dark] #site-header .preference-language select,html[data-theme=dark] #site-header .preference-theme{background:#2b2926;color:#f0e8df;border-color:#514b44}
html[data-theme=dark] #site-header .preference-language option{background:#2b2926;color:#f0e8df}
html[data-theme=dark] #site-header .preference-theme:hover{background:#3b332d;border-color:#89694f;color:#edcbb0}
html[data-theme=dark] .mobile-navigation,html[data-theme=dark] .mobile-navigation .drawer-heading{background:#242321;color:#f5efe8;border-color:#45413c}
html[data-theme=dark] .mobile-navigation .mobile-menu-links .nav-item,html[data-theme=dark] .mobile-navigation .mobile-menu-account{border-color:#45413c}
html[data-theme=dark] .mobile-navigation .nav-pill{background:transparent;color:#eee7de}
html[data-theme=dark] .mobile-navigation .nav-pill:hover,html[data-theme=dark] .mobile-navigation .nav-pill.active,html[data-theme=dark] .mobile-navigation .mobile-menu-account a:hover{background:#3b332d;color:#edcbb0}
html[data-theme=dark] .mobile-navigation .nav-submenu-toggle{background:#32312e;border-color:#514b44;color:#ded3c6}
html[data-theme=dark] .mobile-navigation .nav-submenu-toggle:hover{background:#40362e;border-color:#89694f}
html[data-theme=dark] .mobile-navigation .nav-item.submenu-open>.nav-dropdown{background:#2e2c29;color:#eee7de}
html[data-theme=dark] .mobile-navigation .nav-dropdown a:hover,html[data-theme=dark] .mobile-navigation .nav-dropdown a:focus-visible{background:#40362e;color:#edcbb0}
/* Store controls share Contact on desktop and the search field on mobile. */
@media(min-width:1151px){
  #site-header .nav-row{display:flex;align-items:center;gap:12px}
  #site-header .main-nav{flex:1;min-width:0;gap:6px;justify-content:flex-start}
  #site-header .main-nav .nav-pill{padding:9px 12px;font-size:12px}
  #site-header .main-nav .nav-pill.with-submenu{padding-right:37px}
  #site-header .main-nav .nav-submenu-toggle{width:32px}
  #site-header .header-contact{display:flex;align-items:center;gap:12px;flex:none}
  #site-header .header-contact>.preferences-bar{display:inline-flex;align-items:center;gap:6px;padding:0;max-width:none}
  #site-header .header-contact .preference-language{flex:none;gap:0;max-width:none}
  #site-header .header-contact .preference-language>span{display:none}
  #site-header .header-contact .preference-language select{width:auto;min-width:130px;max-width:190px;min-height:40px;padding:7px 25px 7px 10px;font-size:12px}
  #site-header .header-contact .preference-theme{width:40px;height:40px;min-width:40px}
  #site-header .header-contact .theme-symbol{font-size:24px}
}
@media(max-width:1150px){
  #site-header .header-contact{display:none}
  #site-header .search-bar{align-items:center;height:46px;min-height:46px}
  #site-header .search-bar>input{flex:1 1 auto;width:0;min-width:90px;padding-right:6px}
  #site-header .search-bar>button{width:44px;min-width:44px;min-height:44px}
  #site-header .search-bar .preferences-in-search{display:inline-flex;flex:none;align-items:center;gap:0;height:44px;margin:0;padding:0;max-width:none;color:var(--ink)}
  #site-header .search-bar .preferences-in-search .preference-language{position:relative;flex:0 0 44px;width:44px;max-width:44px;height:44px;gap:0}
  #site-header .search-bar .preferences-in-search .preference-language>span{position:absolute;inset:0;display:grid;place-items:center;font-size:0;pointer-events:none;color:var(--ink)}
  #site-header .search-bar .preferences-in-search .preference-language select{position:relative;width:44px;max-width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;appearance:none;-webkit-appearance:none;background:transparent;color:transparent;font-size:16px}
  #site-header .search-bar .preferences-in-search .preference-language option{background:var(--preference-paper);color:var(--preference-ink)}
  #site-header .search-bar .preferences-in-search .preference-theme{width:44px;height:44px;min-width:44px;min-height:44px;background:transparent;color:var(--ink);border:0;border-radius:50%;padding:0}
  #site-header .search-bar .preferences-in-search .theme-symbol{font-size:25px}
  #site-header .search-bar .preferences-in-search .preference-theme:hover{background:#a25f3712}
  #site-header .search-bar .preferences-in-search select:focus-visible,#site-header .search-bar .preferences-in-search button:focus-visible{outline:2px solid var(--rust);outline-offset:-4px}
  html[data-theme=dark] #site-header .search-bar .preferences-in-search .preference-theme:hover{background:#40362e;color:#edcbb0}
}
@media(max-width:1150px){#site-header .search-bar .preferences-in-search .preference-language>span>svg{width:20px;height:20px;stroke-width:1.5}}
