/* Load after previous store layers: independent colors for each shop region. */
.theme-store .store-header{background:var(--header,var(--surface));color:var(--header-ink,var(--ink))}
.theme-store .header-actions a,.theme-store .header-actions .menu-toggle{color:var(--header-ink,var(--ink))}
.theme-store .topline{background:var(--topbar,var(--footer));color:var(--topbar-ink,var(--muted))}
.theme-store .topline a{color:inherit}
.theme-store .search{background:var(--search,var(--paper));color:var(--search-ink,var(--ink))}
.theme-store .search input{background:transparent;color:var(--search-ink,var(--ink))}
.theme-store .search input::placeholder{color:var(--search-ink,var(--muted));opacity:.65}
.theme-store .navigation-minimal{background:var(--nav,var(--surface));color:var(--nav-ink,var(--ink))}
.theme-store .navigation-minimal nav>.nav-bar-link,.theme-store .nav-bar-dropdown>summary{color:var(--nav-ink,var(--ink))}
.theme-store .nav-catalog>summary{background:var(--category,var(--paper));color:var(--category-ink,var(--primary))}
.theme-store .nav-catalog>summary>svg:first-child{color:inherit}
.theme-store .nav-panel{background:var(--menu,var(--surface));color:var(--menu-ink,var(--ink))}
.theme-store .nav-panel a,.theme-store .nav-panel summary,.theme-store .nav-panel-heading strong,.theme-store .nav-panel-heading small,.theme-store .nav-category-leaf>svg,.theme-store .nav-category-branch>summary>svg:first-child{color:var(--menu-ink,var(--ink))}
.theme-store .nav-panel a:hover,.theme-store .nav-panel summary:hover,.theme-store .nav-panel .nav-dropdown[open]>summary{background:color-mix(in srgb,var(--menu-ink) 8%,var(--menu));color:var(--menu-ink)}
.theme-store .store-hero{background:var(--hero,var(--paper));color:var(--hero-ink,var(--ink));border-radius:12px}
.theme-store .hero-copy h1,.theme-store .hero-copy p,.theme-store .hero-copy .eyebrow,.theme-store .hero-footnote,.theme-store .hero-caption,.theme-store .hero-caption a{color:var(--hero-ink,var(--ink))}
.theme-store .hero-copy h1 em{color:var(--hero-accent,var(--primary))}
.theme-store .product-card,.theme-store .card-media{background:var(--card,var(--surface));color:var(--card-ink,var(--ink))}
.theme-store .product-card .product-image,.theme-store .image-zoom,.theme-store .detail-image,.theme-store .thumbnails button{background:var(--card-image,var(--surface))}
.theme-store .card-body h3{color:var(--card-ink,var(--ink))}
.theme-store .card-pricing .price,.theme-store .product-price strong,.theme-store .cart-price{color:var(--price,var(--ink))}
.theme-store .button:not(.secondary),.theme-store .search button,.theme-store .button:not(.secondary):hover,.theme-store .search button:hover{color:var(--button-ink,var(--on-primary))}
.theme-store .button.secondary{background:var(--secondary,var(--surface));color:var(--secondary-ink,var(--ink))}
.theme-store .button.secondary:hover{background:var(--secondary,var(--surface));filter:brightness(.96)}
.theme-store .option-chip.selected,.theme-store .category-tabs a.active,.theme-store .pagination a.active{background:var(--selection,var(--primary));border-color:var(--selection,var(--primary));color:var(--selection-ink,var(--on-primary))}
.theme-store input,.theme-store select,.theme-store textarea{background-color:var(--input,var(--surface));color:var(--input-ink,var(--ink))}
.theme-store .catalog-focus .filters-details{background:var(--filter,var(--paper));color:var(--filter-ink,var(--ink))}
.theme-store .catalog-filters label,.theme-store .catalog-filters h3,.theme-store .pc-type-choice strong,.theme-store .pc-type-choice small,.theme-store .filter-group a{color:var(--filter-ink,var(--ink))}
.theme-store .stock-dot:not(.empty),.theme-store .product-stock:not(.empty){color:var(--success,var(--primary))}
.theme-store .stock-dot:not(.empty)::before{background:var(--success,var(--primary))}
.theme-store .site-footer,.theme-store .footer-grid p,.theme-store .footer-grid>div>a:not(.brand),.theme-store .footer-grid strong,.theme-store .footer-bottom{color:var(--footer-ink,var(--muted))}
.theme-store .view-all,.theme-store .text-button,.theme-store .product-price .selection-label{color:var(--link,var(--primary))}
.theme-store .card-cta{background:var(--secondary,var(--surface))!important;color:var(--secondary-ink,var(--ink))!important}
.theme-store .card-cta:hover{background:var(--primary)!important;color:var(--button-ink,var(--on-primary))!important}
.theme-store .empty-state,.theme-store .search-suggestions{background:var(--surface);color:var(--ink)}
/* A compact light-theme library and grouped controls keep every setting navigable. */
.appearance-workspace{grid-template-columns:minmax(350px,420px) minmax(0,1fr)}
.appearance-form .theme-choices{display:block}
.theme-toolbar{display:grid;gap:12px;margin-bottom:14px}
.theme-toolbar input{margin:0;font-size:13px;padding:10px 12px}
.theme-family-filters{display:flex;gap:5px;flex-wrap:wrap}
.theme-family-filters button{font-size:11px;border:1px solid #dce1e8;border-radius:20px;background:#fff;color:#657084;padding:6px 10px;transition:background .16s,color .16s}
.theme-family-filters button[aria-pressed=true]{background:#142440;color:#fff;border-color:#142440}
.theme-selection{font-size:11px;color:#657084}.theme-selection strong{color:#142440}
.theme-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:340px;overflow-y:auto;padding:3px;scrollbar-width:thin;scrollbar-gutter:stable}
.theme-choice-grid .theme-choice{padding:10px 8px;border-radius:9px;min-width:0;transition:background .16s,border-color .16s}
.theme-choice-grid .theme-choice[hidden],.theme-no-results[hidden]{display:none}
.theme-choice-grid .theme-choice input{top:8px;right:6px;width:13px;height:13px}
.theme-choice-grid .theme-choice strong{font-size:11px;margin-top:8px;overflow-wrap:anywhere}
.theme-choice-grid .theme-choice small{display:block;font-size:10px;color:#657084;line-height:1.5}
.theme-choice-grid .theme-swatches{gap:2px;padding-right:10px}
.theme-choice-grid .theme-swatches i{width:15px;height:15px}
.theme-library-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#657084}
.theme-library-meta .text-button,.theme-no-results .text-button{font-size:11px;padding:0}
.theme-no-results{padding:18px 10px;text-align:center;border:1px dashed #dce1e8;border-radius:9px}
.theme-no-results p{margin:0 0 6px}
.theme-choice-grid .theme-choice{padding:7px 7px 9px;background:#fff;transition:border-color .18s,box-shadow .18s,transform .18s}
.theme-choice-grid .theme-choice:has(input:checked){box-shadow:0 0 0 1px #142440;background:#f7f9fb}
.theme-choice-grid .theme-choice:focus-within{outline:2px solid #4362a2;outline-offset:2px}
.theme-family-filters button:focus-visible{outline:2px solid #4362a2;outline-offset:2px}
.theme-choice-grid .theme-choice input{top:11px;right:10px;z-index:1;background:#fff}
.theme-mini-preview{display:block;background:var(--preview-paper);border:1px solid #0000000a;border-radius:5px;overflow:hidden;height:64px}
.theme-mini-top{display:flex;justify-content:space-between;align-items:center;padding:6px;background:var(--preview-surface);height:15px}
.theme-mini-top i:first-child{width:14px;height:3px;border-radius:1px;background:var(--preview-primary)}
.theme-mini-top i:last-child{width:22px;height:2px;border-radius:1px;background:var(--preview-ink);opacity:.2;margin-right:12px}
.theme-mini-content{display:flex;align-items:center;justify-content:space-between;padding:8px 7px;gap:8px}
.theme-mini-copy{display:grid;gap:4px;flex:1}
.theme-mini-copy i{display:block;background:var(--preview-ink);height:3px;border-radius:1px}
.theme-mini-copy i:nth-child(2){width:70%;opacity:.3;height:2px}
.theme-mini-copy i:last-child{width:20px;height:6px;background:var(--preview-primary);margin-top:2px;border-radius:2px}
.theme-mini-device{width:20px;height:27px;border-radius:3px;background:var(--preview-surface);border:1px solid var(--preview-accent);box-shadow:2px 2px 0 var(--preview-accent);flex-shrink:0}
.theme-choice-caption{display:flex;align-items:center;justify-content:space-between;gap:2px;margin-top:8px}
.theme-choice-grid .theme-choice-caption strong{font-size:10px;margin:0;letter-spacing:0}
.theme-choice-grid .theme-choice-caption .theme-swatches{padding:0;gap:2px;flex-shrink:0}
.theme-choice-grid .theme-choice-caption .theme-swatches i{width:6px;height:6px;border:0}
.theme-choice-grid .theme-choice small{margin-top:3px;font-size:9px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.theme-choice-grid .theme-choice:hover{transform:translateY(-2px);border-color:#9aa8bb;box-shadow:0 3px 9px #1424400a}.theme-choice-grid .theme-choice:active{transform:translateY(0) scale(.98)}.theme-choice-grid .theme-choice:has(input:checked) .theme-mini-device{transform:translateY(-1px);box-shadow:3px 3px 0 var(--preview-accent)}}
.theme-mini-device{transition:transform .2s ease,box-shadow .2s ease}
.appearance-form .appearance-colors{display:block}
.appearance-color-group{border:1px solid #e1e4e9;border-radius:9px;margin-bottom:9px;background:#fff;overflow:hidden}
.appearance-color-group>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:13px 12px;font-size:12px;color:#142440;font-weight:600}
.appearance-color-group>summary::-webkit-details-marker{display:none}
.appearance-color-group>summary small{margin-left:auto;font-weight:400;font-size:10px;color:#657084;white-space:nowrap}
.appearance-color-group>summary::after{content:'+';font-size:18px;line-height:1;font-weight:400}.appearance-color-group[open]>summary::after{content:'−'}
.appearance-color-group[open]>summary{background:#f7f8fa;border-bottom:1px solid #e1e4e9}
.appearance-group-fields{padding:14px 12px 7px;animation:appearance-fields-in .16s ease-out}
.appearance-group-reset.text-button{font-size:10px;margin-bottom:7px}
.appearance-color-group .color-control{grid-template-columns:minmax(0,1fr) 33px 78px;gap:6px}
.appearance-color-group .color-control>span{font-size:11px;line-height:1.4}
.appearance-color-group .color-control input[type=color]{width:33px;height:32px}
.appearance-color-group .color-control .color-hex{width:78px;font-size:11px}
@keyframes appearance-fields-in{from{opacity:.5}to{opacity:1}}
@media(max-width:1100px){.appearance-workspace{grid-template-columns:350px minmax(0,1fr)}}
@media(max-width:850px){.appearance-workspace{grid-template-columns:1fr}.theme-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:280px}}
@media(max-width:480px){.theme-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-choice-grid .theme-choice{padding:11px 7px}.theme-choice-grid .theme-swatches i{width:13px;height:13px}}
@media(prefers-reduced-motion:reduce){.appearance-group-fields{animation:none}.theme-family-filters button,.theme-choice-grid .theme-choice,.theme-mini-device{transition:none}}
