/* Preferences and shared semantic surfaces. Photos keep their original color in both themes. */
:root{--surface:#fff;--surface-raised:#fff;--surface-soft:#f4f4f5;--text:#101012;--text-secondary:#626267;--border:#0000001a;--control:#000;--control-text:#fff;--focus:#5368e8}
:root[data-theme="dark"]{--ink:#f3f3f4;--paper:#111113;--soft:#202024;--muted:#aaaab1;--line:#ffffff1f;--surface:#17171a;--surface-raised:#202024;--surface-soft:#25252a;--text:#f3f3f4;--text-secondary:#aaaab1;--border:#ffffff1f;--control:#f1f1f3;--control-text:#151518;--red:#ff7777;--green:#70dba0;color-scheme:dark}
body{color:var(--text);background:var(--paper)}
.preference-bar{border-bottom:1px solid var(--border);background:var(--surface);min-height:38px}
.preference-bar>.container{display:flex;justify-content:flex-end;align-items:center;min-height:38px}
.preference-controls{display:flex;align-items:center;gap:12px;color:var(--text-secondary);font-size:11px}
.language-control{display:flex;align-items:center;gap:6px;border-radius:7px;min-height:30px}
.language-control>.icon{width:14px;height:14px}
.language-control select{border:0;background:transparent;color:var(--text);font-size:11px;font-weight:500;padding:4px 15px 4px 2px;cursor:pointer;max-width:110px;border-radius:5px}
.language-control select option{background:var(--surface);color:var(--text)}
.preference-divider{height:14px;width:1px;background:var(--border)}
.theme-toggle{min-height:30px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--text);font-size:11px;border-radius:7px;padding:3px 5px}
.theme-toggle:hover{background:var(--surface-soft)}
.theme-toggle>.icon{height:15px;width:15px;stroke-width:1.6}
.theme-toggle>span{white-space:nowrap}
.theme-toggle:focus-visible,.language-control:focus-within{outline:2px solid var(--focus);outline-offset:3px}
.language-control select:focus-visible{outline:0}
.admin-topbar-actions{display:flex;align-items:center;gap:28px}
.admin-topbar-actions>a{display:flex;align-items:center;gap:9px;color:var(--text)}
.admin-topbar .preference-controls{font-size:11px}
.site-header,.mobile-nav,.auth-page,.filters,.order-summary,.cart-list,.order-card,.panel,.table-wrap,.admin-sidebar,.admin-topbar,.modal{background:var(--surface);color:var(--text)}
.button{background:var(--control);border-color:var(--control);color:var(--control-text)}
.button:hover{background:var(--text-secondary);border-color:var(--text-secondary);color:var(--paper)}
.button-outline{background:transparent;border-color:var(--border);color:var(--text)}
.button-outline:hover{background:var(--surface-soft);border-color:var(--border);color:var(--text)}
.button-white{background:#fff;border-color:#fff;color:#111}
.button-white:hover{background:#e5e5e5;border-color:#e5e5e5;color:#111}
.button-danger{background:#b72c37;border-color:#b72c37;color:white}
.button-danger:hover{background:#98232d;color:white;border-color:#98232d}
.icon-button:hover{background:var(--surface-soft)}
.field input,.field textarea,.field select,.order-status-label select,td select{background:var(--surface);color:var(--text);border-color:var(--border)}
.field input:focus,.field textarea:focus{border-color:var(--text-secondary)}
input::placeholder,textarea::placeholder{color:var(--text-secondary);opacity:.85}
.search-form,.mobile-search,.quantity,.size-pill,.pill-option span,.note-icon,.details-panel dl div,.promo-form label,.mobile-filter,.page-number.active{background:var(--surface-soft);color:var(--text-secondary)}
.search-form>.icon{color:var(--text-secondary)}
.quantity,.quantity button{color:var(--text)}
.cart-count{background:var(--control);color:var(--control-text);border-color:var(--surface)}
.category-option,.catalog-toolbar,.breadcrumbs,.product-description,.delivery-note,.product-options p,.details-panel>p,.details-panel dd,.review-empty,.review-empty>span,.cart-item-info p span,.order-summary dt,.shipping-note,.continue-link,.checkout-form>.muted,.auth-form>p,.order-items small,.order-address,.info-page>p,.faq-list details p,.filter-group h3>span,.reset-link,.order-status-label,.boot{color:var(--text-secondary)}
.catalog-toolbar select{background:var(--surface);color:var(--text)}
.category-option:has(input:checked),.breadcrumbs a:hover,.breadcrumbs [aria-current],.product-options p strong,.review-empty>p,.order-summary .summary-total,.summary-total dt,.continue-link:hover,.auth-switch a,.boot h1{color:var(--text)}
.size-pill.selected,.pill-option input:checked+span{background:var(--control);color:var(--control-text)}
.swatch{box-shadow:0 0 0 3px var(--surface)}
.swatch.selected{outline-color:var(--text)}
.thumbnail.active{border-color:var(--text)}
.product-tabs button{color:var(--text-secondary)}
.product-tabs button.active{border-color:var(--text);color:var(--text)}
.price del{color:var(--text-secondary)}
.rating-value>span{color:var(--text-secondary)}
.discount{color:var(--red)}
.note-card p,.section-heading .eyebrow,.footer-brand p,.footer-columns>div>a:not(.wordmark),.footer-bottom,.payment-method p,.catalog-heading .eyebrow,.product-info .eyebrow,.promo-hint,.faq-list details p{color:var(--text-secondary)}
.footer-columns a:hover{color:var(--text)}
.form-error{color:var(--red)}
.product-image,.main-product-image,.thumbnail,.cart-image{background:#f0eeed;color:#111}
.main-product-image img,.product-image img,.cart-image img,.thumbnail img{color:#111}
.wish-button,.quick-add{color:#111}
.wish-button.saved .icon{fill:#111}
.admin-app{background:var(--paper)}
.admin-sidebar,.admin-topbar,.table-wrap,.order-card,.panel{border-color:var(--border)}
.admin-sidebar nav a{color:var(--text-secondary)}
.admin-sidebar nav a:hover{background:var(--surface-soft)}
.admin-sidebar nav a.active{background:var(--control);color:var(--control-text)}
.admin-sidebar-bottom a,.admin-sidebar-bottom button,.admin-title .eyebrow,.admin-title p,.admin-topbar,.admin-badge,.metric>div,.empty-admin>p,.settings-form .muted{color:var(--text-secondary)}
.metric{background:var(--surface);border-color:var(--border)}
.metric .icon{color:var(--text)}
th{background:var(--surface-soft);color:var(--text-secondary)}
td,th{border-color:var(--border)}
.status{background:var(--surface-soft);color:var(--text-secondary)}
.status-new,.status-shipped{background:#5062a51c;color:#627bc5}
.status-processing{background:#b78b201a;color:#a27a20}
.status-delivered{background:#138b4220;color:var(--green)}
.status-cancelled{background:#ba34461c;color:var(--red)}
.modal{color:var(--text);border:1px solid var(--border)}
.modal>p,.modal .muted,.editor-sizes legend{color:var(--text-secondary)}
.editor-sizes{border-color:var(--border)}
.settings-translations,.product-translations{border:1px solid var(--border);border-radius:14px;margin:24px 0;padding:18px;background:var(--surface-soft)}
.translation-heading{font-size:14px;font-weight:700;margin:0 0 6px}
.translation-hint{font-size:12px;color:var(--text-secondary);margin:0 0 15px}
.translation-locale{margin-top:18px;padding-top:15px;border-top:1px solid var(--border)}
.translation-locale h3{font-size:12px;color:var(--text-secondary);letter-spacing:.5px;margin-bottom:12px}
.settings-translations .field input,.settings-translations .field textarea,.product-translations .field input,.product-translations .field textarea{background:var(--surface)}
:root[lang="ru"] .display{font-family:Satoshi,Arial,sans-serif;font-weight:700;letter-spacing:-1.3px}
:root[lang="ru"] .hero h1{font-size:58px;font-weight:700;line-height:1.08}
:root[lang="ru"] .newsletter h2{font-family:Satoshi,Arial,sans-serif;font-weight:700;font-size:34px;letter-spacing:-.7px}
:root[lang="uz"] .hero h1{font-size:56px;line-height:1.12}
:root[lang="uz"] .desktop-nav,:root[lang="ru"] .desktop-nav{font-size:13px;gap:18px}
:root[lang="uz"] .hero-stats>div,:root[lang="ru"] .hero-stats>div{padding-inline:21px}
:root[lang="uz"] .hero-stats>div:first-child,:root[lang="ru"] .hero-stats>div:first-child{padding-left:0}
:root[lang="uz"] .hero-stats p,:root[lang="ru"] .hero-stats p{font-size:12px}
:root[data-theme="dark"] .hero{background:#1b1b1e}
:root[data-theme="dark"] .hero-copy>p,:root[data-theme="dark"] .hero-stats p,:root[data-theme="dark"] .hero-copy .eyebrow{color:#b4b4bb}
:root[data-theme="dark"] .hero-stats>div{border-color:#ffffff26}
:root[data-theme="dark"] .hero-visual{background:#f2f0f1;border-radius:22px 22px 0 0;margin-top:24px}
:root[data-theme="dark"] .hero-models{mix-blend-mode:normal}
:root[data-theme="dark"] .brand-strip,:root[data-theme="dark"] .newsletter{background:#080809}
:root[data-theme="dark"] .newsletter{border:1px solid var(--border)}
:root[data-theme="dark"] .brand-directory div{border:1px solid var(--border)}
:root[data-theme="dark"] .hero-stats strong{color:#f5f5f5}
:root[data-theme="dark"] .style-card{background:#eee;color:#111}
:root[data-theme="dark"] .star-track{color:#ffffff28}
:root[data-theme="dark"] .style-section{background:var(--surface-raised)}
:root[data-theme="dark"] .toast{background:#f1f1f3;color:#151518;border-color:#fff}
:root[data-theme="dark"] .toast.error{background:#a7333e;color:#fff;border-color:#a7333e}
:root[data-theme="dark"] .empty-state>.icon{color:var(--text-secondary)}
:root[data-theme="dark"] .status-new,:root[data-theme="dark"] .status-shipped{background:#627bc529;color:#aabcf6}
:root[data-theme="dark"] .status-processing{background:#a9842529;color:#e9cb7e}
:root[data-theme="dark"] .account-quicklinks>a:hover{background:var(--surface-soft)}
:root[data-theme="dark"] .filter-open .filter-title{background:var(--surface)}
@media(min-width:901px) and (max-width:1150px){:root[lang="uz"] .hero h1,:root[lang="ru"] .hero h1{font-size:48px}:root[lang="uz"] .desktop-nav,:root[lang="ru"] .desktop-nav{font-size:11px;gap:12px}:root[lang="ru"] .hero-stats p,:root[lang="uz"] .hero-stats p{font-size:10px}}
@media(max-width:900px){:root[lang="uz"] .hero h1,:root[lang="ru"] .hero h1{font-size:40px}:root[lang="uz"] .hero-stats>div,:root[lang="ru"] .hero-stats>div{padding-inline:12px}:root[lang="ru"] .hero-stats p,:root[lang="uz"] .hero-stats p{font-size:9px}:root[lang="ru"] .newsletter h2{font-size:27px}.admin-topbar{flex-wrap:wrap;height:auto;min-height:82px;padding-block:12px;gap:12px}.admin-topbar-actions{gap:15px}}
@media(max-width:700px){.preference-bar,.preference-bar>.container{min-height:35px}.preference-controls{gap:10px;font-size:10px}.language-control select{font-size:11px;max-width:110px}.theme-toggle{font-size:10px}.theme-toggle>.icon{width:14px;height:14px}.preference-bar>.container{justify-content:flex-end}.language-control{min-height:30px}.admin-topbar-actions{justify-content:space-between;width:100%;flex-wrap:wrap;gap:15px}.admin-topbar{min-height:62px}.admin-topbar-actions>a{font-size:10px}.admin-topbar-actions .status{display:none}:root[lang="uz"] .hero h1,:root[lang="ru"] .hero h1{font-size:37px;line-height:1.12}:root[lang="uz"] .hero-stats>div,:root[lang="ru"] .hero-stats>div{padding-inline:20px}:root[lang="uz"] .hero-stats p,:root[lang="ru"] .hero-stats p{font-size:11px}:root[lang="ru"] .newsletter h2{font-size:29px}:root[data-theme="dark"] .hero-visual{border-radius:0;margin-top:15px}.settings-translations,.product-translations{padding:14px}.product-translations .form-grid{grid-template-columns:1fr}.catalog-toolbar{flex-wrap:wrap;row-gap:10px}.catalog-toolbar label{margin-left:auto}.product-name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:2.6em}.cart-item-info h2{overflow-wrap:anywhere}.price{column-gap:7px}.header-inner .wordmark{overflow-wrap:normal}.order-bottom{flex-wrap:wrap}}
@media(max-width:370px){:root[lang="uz"] .hero h1,:root[lang="ru"] .hero h1{font-size:32px}:root[lang="ru"] .hero-stats p,:root[lang="uz"] .hero-stats p{font-size:10px}.theme-toggle>span{font-size:9px}.admin-topbar-actions .preference-controls{gap:7px}.product-card .price{font-size:17px;line-height:1.4}.product-info h1{font-size:24px}}
