
/* Shared legibility, touch targets and independently selectable display preferences. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{line-height:1.8}*,*::before,*::after{box-sizing:border-box}img{max-width:100%}input,select,textarea,button{font:inherit}a,button,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,input,select,textarea,summary{touch-action:manipulation}:focus-visible{outline:3px solid #548590;outline-offset:3px}main,fieldset,.form-grid>*,.admin-workspace{min-width:0}fieldset{max-width:100%}[hidden]{display:none!important}.display-preferences{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid #dce3df;background:#f4f6f2}.display-preferences label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.display-preferences select{width:auto;padding:6px 10px;min-height:40px;background:#fff;color:#293d3b;border:1px solid #c5d1ca;border-radius:10px}.upload-preview{display:block;width:160px;height:180px;object-fit:contain;margin:12px 0;border:1px solid #cbd5ce;border-radius:12px}.product-save-bar{display:flex;gap:12px;align-items:center;margin-top:20px;padding:14px;background:#f3f5ef;border:1px solid #dce2d8;border-radius:14px}.product-save-bar>*{flex:1;text-align:center}.variant-draft{padding:18px;border:1px solid #dce2d8;border-radius:14px;margin:15px 0;background:#fafbf8}.admin-body .product-editor h2{font-size:20px}.admin-body .product-editor summary{padding:14px;line-height:1.9}.admin-mobile-dock{display:none}.pwa-install{position:fixed;z-index:2000;bottom:calc(84px + env(safe-area-inset-bottom));inset-inline:16px;margin:auto;max-width:510px;padding:20px;background:#fffef9;color:#243a38;border:1px solid #a9bcb1;border-radius:20px;box-shadow:0 10px 45px #122d3026}.pwa-install p{font-size:14px!important;line-height:1.9;margin:8px 0}.pwa-install-actions{display:flex;gap:10px;margin-top:12px}.pwa-install-actions button{flex:1;min-height:44px}.connection-status{position:fixed;inset:0 0 auto;z-index:3000;text-align:center;background:#fff0cd;color:#583b00;padding:12px;font-size:15px}.otp-timer{font-variant-numeric:tabular-nums;padding:10px 14px;background:#f2f6f3;border-radius:12px}.otp-resend{margin-top:14px}button:disabled{opacity:.65;cursor:wait}.storefront main p,.storefront main label{line-height:1.9}.storefront .ph-hero-copy{min-width:0;overflow-wrap:anywhere}.storefront .ph-hero-copy h2{line-height:1.65!important}.storefront .ph-hero-copy p{line-height:1.8!important}.storefront .ph-hero-copy .button{white-space:normal;max-width:100%}.storefront .ph-promotions a>div{overflow-wrap:anywhere;min-width:0}
html[data-visual-theme=calm]{color-scheme:light}html[data-visual-theme=calm] body{--accent:#526f62!important;--page:#f6f7f3!important;--ink:#283b38!important;background:#f6f7f3;color:#283b38}html[data-visual-theme=calm] .storefront :is(.ph-topbar,.account-sidebar,.cart-summary,.account-stats a){background:#edf2ed;color:#304b42}html[data-visual-theme=calm] :is(button,.button):not(.danger){background:#526f62;color:#fff;box-shadow:none}html[data-visual-theme=calm] :is(button,.button).secondary{background:#e8eee7;color:#304d40}html[data-visual-theme=calm] .admin-body .admin-sidebar{background:#203b3c}html[data-visual-theme=calm] .admin-sidebar nav a[aria-current=page]{background:#dce7de;color:#203f36;box-shadow:none}html[data-visual-theme=calm] .admin-body .admin-topbar{background:#f3f6f0;border-color:#dce3dc}html[data-visual-theme=calm] .admin-body .dashboard-metric{--metric:#54786b;--metric-tint:#edf3ed}html[data-visual-theme=calm] .admin-body .customer-avatar{background:#dce5d7;color:#3a5848}
html[data-visual-theme=dark]{color-scheme:dark}html[data-visual-theme=dark] body{--accent:#91b4a2!important;--page:#182326!important;--ink:#e3ebe6!important;background:#182326!important;color:#e3ebe6!important}html[data-visual-theme=dark] :is(.panel,.section.auth,.dashboard-panel,.dashboard-metric,.dashboard-welcome,.store-header,.ph-topbar,.account-sidebar,.account-main,.account-order,.cart-summary,.product-card,.display-preferences,.admin-topbar,.admin-mobile-dock,.pwa-install,.product-save-bar,.variant-draft,.subform,.form-grid,.inventory-overview>div,.inventory-quick-grid section,.table-wrap,.settings-panel){background:#223034!important;color:#e3ebe6!important;border-color:#425558!important}html[data-visual-theme=dark] :is(input,select,textarea){background:#182629!important;color:#e9f0ec!important;border-color:#59716c!important}html[data-visual-theme=dark] :is(h1,h2,h3,h4,label,strong,b,legend,summary){color:inherit}html[data-visual-theme=dark] :is(.muted,small,.eyebrow,.metric-change,.dashboard-caption,.dashboard-panel-title>a,.inventory-tabs a,.sizes span){color:#bfd0c6!important}html[data-visual-theme=dark] :is(.metric-change,.dashboard-panel-title>a,.sizes span,.otp-timer,.inventory-tabs a){background:#2a403d!important}html[data-visual-theme=dark] :is(button,.button){background:#8ab19d!important;color:#122b24!important;box-shadow:none!important}html[data-visual-theme=dark] :is(button,.button).secondary{background:#364d49!important;color:#e0ebe4!important}html[data-visual-theme=dark] .admin-sidebar{background:#142427!important}html[data-visual-theme=dark] .storefront .price,html[data-visual-theme=dark] .storefront .featured-tabs a{color:#b8d7c5!important}html[data-visual-theme=dark] :is(th,td){border-color:#435755!important}html[data-visual-theme=dark] :is(thead,.account-stats a,.quick-actions a){background:#2a3e40!important;color:#e3ebe6!important}html[data-visual-theme=dark] .admin-sidebar nav a[aria-current=page]{background:#39564d!important;color:#f1f7f2!important}
@media(min-width:901px){.admin-body :is(label,input,select,textarea,button,td,th){font-size:15px}.admin-sidebar nav a{font-size:14px}.admin-body .dashboard-metric>div>span,.admin-body .dashboard-customer b,.admin-body .dashboard-activity b{font-size:13px}.admin-body .dashboard-caption,.admin-body .dashboard-status,.admin-body .dashboard-order small{font-size:12px}}
@media(max-width:900px){.admin-body{font-size:15px;padding-bottom:calc(82px + env(safe-area-inset-bottom))}.admin-topbar{position:sticky;top:0;z-index:100;min-height:68px;flex-wrap:wrap}.admin-global-search{order:4;flex-basis:100%;max-width:none}.admin-global-search input{font-size:16px;min-height:44px}.admin-manager{margin-inline-start:auto}.admin-manager>span:last-child{display:flex;font-size:13px}.admin-sidebar.is-open{position:fixed;inset:0 0 0 auto;width:min(86vw,340px);height:100dvh;overflow-y:auto;z-index:400;padding-bottom:100px;box-shadow:-20px 0 50px #0004}.admin-sidebar nav{grid-template-columns:1fr}.admin-sidebar nav a{min-height:48px;font-size:15px}.admin-sidebar.is-open:before{content:'برای بستن، دکمه منو یا Escape';display:block;color:#d8e6dd;font-size:12px;text-align:center;padding:12px}.admin-menu-toggle{min-width:44px;min-height:44px}.admin-mobile-dock{display:flex;position:fixed;inset:auto 0 0;z-index:120;background:#fffffc;border-top:1px solid #cbd8cd;padding:9px 8px calc(9px + env(safe-area-inset-bottom));gap:5px;justify-content:space-around;box-shadow:0 -5px 20px #142d320c}.admin-mobile-dock a{display:grid;place-items:center;min-height:46px;padding:8px;font-size:13px;border-radius:12px}.admin-mobile-dock .dock-add{background:#526f62;color:white;font-weight:bold}.admin-body .panel{padding:16px}.admin-body :is(input,select,textarea){font-size:16px;min-height:46px;max-width:100%}.admin-body :is(input[type=checkbox],input[type=radio]){min-height:22px;min-width:22px;width:22px;height:22px}.admin-body :is(label,p,summary){font-size:15px;line-height:1.9}.admin-body :is(button,.button){min-height:46px;font-size:15px;padding:10px 14px;white-space:normal}.admin-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.admin-body .form-grid .full{grid-column:1/-1}.admin-body .product-editor .size-measure-inputs{grid-column:1/-1}.admin-body .product-editor :is(fieldset,.size-chart-settings){padding:12px;margin-inline:0}.admin-body .product-editor textarea{min-height:100px}.product-save-bar{position:sticky;bottom:calc(80px + env(safe-area-inset-bottom));z-index:80}.admin-body .dashboard-metric>div>span,.admin-body .dashboard-caption,.admin-body .metric-change,.admin-body .quick-actions b,.admin-body .dashboard-status,.admin-body .dashboard-order b,.admin-body .dashboard-order small,.admin-body .dashboard-customer b,.admin-body .dashboard-customer small,.admin-body .dashboard-activity b,.admin-body .dashboard-activity small,.admin-body .inventory-quick-product b,.admin-body .inventory-quick-product small{font-size:13px;white-space:normal;overflow-wrap:anywhere}.admin-body .quick-actions>div{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-body .inventory-quick-grid{grid-template-columns:1fr}.admin-body .inventory-quick-grid>section:last-child .inventory-quick-product{display:flex;width:100%}.admin-body .inventory-tabs a{font-size:14px}.admin-body .dashboard-order{grid-template-columns:40px minmax(0,1fr);gap:10px}.admin-body .dashboard-order>:nth-child(n+3){grid-column:2}.admin-body .dashboard-status-body{flex-wrap:wrap}.admin-body .table-wrap{max-width:100%;overflow:auto}.admin-body .mobile-cards,.admin-body .mobile-cards tbody{display:block;min-width:0;width:100%}.admin-body .mobile-cards thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.admin-body .mobile-cards tr{display:block;padding:12px;border:1px solid #dce2d8;border-radius:14px;margin-bottom:14px}.admin-body .mobile-cards td{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%;white-space:normal;padding:10px 0;border:0;overflow-wrap:anywhere}.admin-body .mobile-cards td::before{content:attr(data-label);font-weight:bold;min-width:80px;color:#597062}.admin-body .mobile-cards td[data-label=عمليات]::before{flex-basis:100%}.admin-body .mobile-cards td form{margin:0}.admin-body .admin-thumbnail{width:64px;height:76px;object-fit:contain}.admin-body .section-title{gap:12px;flex-wrap:wrap}.admin-body h1{font-size:24px}.display-preferences{justify-content:space-between;padding:10px 12px;gap:8px}.display-preferences label{font-size:12px}.display-preferences select{font-size:14px;padding:6px;min-height:44px}}
@media(max-width:700px){.storefront{font-size:16px}.storefront :is(main p,main label){font-size:15px}.storefront :is(input,select,textarea){font-size:16px!important;min-height:44px}.storefront :is(input[type=checkbox],input[type=radio]){min-height:20px;width:20px;height:20px}.storefront :is(button,.button,summary){min-height:44px;font-size:15px}.storefront .product-card h3{font-size:15px;line-height:1.8}.storefront .price{font-size:15px}.storefront .ph-category-strip b{font-size:15px!important}.storefront .ph-hero .ph-campaign:not([hidden]){display:flex!important;flex-direction:column!important;aspect-ratio:auto!important;min-height:0!important;height:auto!important;position:relative}.storefront .ph-hero .ph-campaign>picture{display:block;position:relative!important;width:100%;height:auto!important}.storefront .ph-hero .ph-campaign .campaign-art{position:relative!important;inset:auto!important;display:block;width:100%!important;height:auto!important;object-fit:contain!important;transform:none!important;aspect-ratio:auto!important}.storefront .ph-hero .ph-hero-copy{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;min-height:0;padding:18px 24px 24px!important;background:var(--page,#fffaf6);text-align:center}.storefront .ph-hero-copy .hero-brand{display:none}.storefront .ph-hero-copy h2{font-size:clamp(20px,5vw,28px)!important;line-height:1.7!important;margin:8px 0}.storefront .ph-hero-copy p{font-size:15px!important;line-height:1.9!important;margin:10px 0}.storefront .ph-slider-controls{pointer-events:none}.storefront .ph-slider-controls button{pointer-events:auto;width:44px;height:44px}.storefront .account-sidebar a{font-size:15px;min-height:44px}.storefront .login-setup-dialog :is(p,label,small){font-size:14px}.storefront .login-setup-dialog input{font-size:16px}.storefront .mobile-bottom-nav{padding-bottom:env(safe-area-inset-bottom)}.pwa-install{padding:16px;inset-inline:12px}.display-preferences label{flex:1}.display-preferences select{min-width:0;max-width:145px}.storefront .ph-actions .wallet-head,.storefront .admin-head{font-size:13px;min-height:44px;line-height:1.5}.storefront .ph-actions{flex-wrap:wrap}.storefront .ph-search{min-width:0}.storefront .ph-search input{width:100%;min-width:0}.storefront .ph-search select{min-width:100px;max-width:120px;font-size:14px!important}}
@media(max-width:420px){.admin-body .form-grid{grid-template-columns:1fr}.admin-body .form-grid .full{grid-column:auto}.admin-body .dashboard-metrics{gap:8px}.admin-body .dashboard-metric{padding:12px 10px}.admin-body .dashboard-metric strong{font-size:21px}.admin-body .dashboard-bestsellers{gap:8px}.display-preferences label{flex-basis:100%;justify-content:space-between}.display-preferences select{min-width:170px}.product-save-bar{padding:10px;gap:8px}}
html[data-text-size=large] :is(.storefront,.admin-body) :is(main p,main label,main input,main select,main textarea,main button,main td,main th,main summary){font-size:18px!important}html[data-text-size=large] .product-card h3{font-size:18px!important}html[data-text-size=large] .admin-sidebar nav a{font-size:17px!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

.admin-menu-close{display:none}@media(max-width:900px){.admin-menu-close{display:block;width:100%;margin-bottom:15px}.admin-sidebar.is-open:before{display:none}}html[data-visual-theme=dark] .storefront :is(.store-frame,.account-content,.cart-panel,.cart-page,.account-shell,.ph-benefits,.account-stats>a,.account-sidebar nav a){background:#223034!important;color:#e3ebe6!important}html[data-visual-theme=dark] .storefront .ph-search{background:#182629!important}html[data-visual-theme=dark] .storefront :is(.ph-header,.ph-nav,.account-identity){background:#223034!important;color:#e3ebe6!important}@media(max-width:700px){.storefront .ph-promotions img{max-width:100%!important}.storefront .mobile-dock{padding-bottom:env(safe-area-inset-bottom)}.storefront .featured-tabs a{font-size:14px!important}.storefront .account-stats span,.storefront .recent-order b{font-size:14px}.storefront .account-stats strong{font-size:20px}}

html[data-visual-theme=dark] .admin-global-search{background:#182629!important;border-color:#59716c}html[data-visual-theme=dark] .dashboard-brand-banner>div{background:#fff6e7ee;color:#3b342b}html[data-visual-theme=dark] .dashboard-brand-banner h2{color:#3b342b!important}@media(max-width:700px){.storefront .ph-slider-controls{position:relative!important;inset:auto!important;height:60px;display:flex;align-items:center;justify-content:space-between;padding:8px 14px;background:var(--page,#fffaf6)}}

/* Optional ivory and bronze visual theme. Existing themes and saved brand settings are unchanged. */
html[data-visual-theme=ivory]{color-scheme:light}
html[data-visual-theme=ivory] .storefront{
  --accent:#79562e!important;--page:#f7f2eb!important;--ink:#322b25!important;
  --ph-bg:#f7f2eb;--ph-surface:#fffdfa;--ph-ink:#322b25;--ph-muted:#665b50;
  --ph-gold:#79562e;--ph-gold-hover:#5f421f;--ph-border:#ded2c3;--ph-blush:#f3e5d8;
  background:var(--ph-bg);color:var(--ph-ink)
}
html[data-visual-theme=ivory] .storefront :focus-visible,
html[data-visual-theme=ivory] .admin-body :focus-visible{outline:3px solid #79562e;outline-offset:3px}
html[data-visual-theme=ivory] .storefront .store-frame,
html[data-visual-theme=ivory] .storefront :is(.ph-header,.ph-navigation,.product-card,.cart-panel,.account-content){background:var(--ph-surface);color:var(--ph-ink)}
html[data-visual-theme=ivory] .storefront :is(.ph-header,.ph-navigation){border-color:var(--ph-border)}
html[data-visual-theme=ivory] .storefront .ph-topbar{background:#ebdfcf;color:#493728}
html[data-visual-theme=ivory] .storefront .ph-search{background:#faf6ef;border-color:var(--ph-border)}
html[data-visual-theme=ivory] .storefront .ph-search input{color:var(--ph-ink)}
html[data-visual-theme=ivory] .storefront .ph-search input::placeholder{color:var(--ph-muted)}
html[data-visual-theme=ivory] .storefront :is(.ph-category-strip a,.ph-benefits,.shop-filters,.cart-summary,.checkout-form,.product-detail,.product-detail .gallery,.size-detail-card){border-color:var(--ph-border)}
html[data-visual-theme=ivory] .storefront .ph-category-strip a{background:#f3e8dc}
html[data-visual-theme=ivory] .storefront .ph-category-strip a:nth-child(3n+2){background:#eee6db}
html[data-visual-theme=ivory] .storefront .ph-category-strip a:nth-child(3n+3){background:#f6eadd}
html[data-visual-theme=ivory] .storefront .ph-featured .product-image,
html[data-visual-theme=ivory] .storefront .product-detail :is(.gallery,.zoom-open){background:#f4eee6}
html[data-visual-theme=ivory] .storefront .account-shell{background:linear-gradient(120deg,#f0e7db,#faf6f0 58%,#fffdfa)}
html[data-visual-theme=ivory] .storefront .account-sidebar{background:#fffaf4;border-color:var(--ph-border)}
html[data-visual-theme=ivory] .storefront .account-sidebar nav a.active{background:#eddfca;color:#533c25}
html[data-visual-theme=ivory] .storefront .account-sidebar nav a .icon{color:var(--ph-gold)}
html[data-visual-theme=ivory] .storefront .account-welcome{background:#f3e5d8}
html[data-visual-theme=ivory] .storefront .account-stats>a{border-color:var(--ph-border)}
html[data-visual-theme=ivory] .storefront .stat-wallet{background:#f5ead7;color:#69471f}
html[data-visual-theme=ivory] .storefront .stat-orders{background:#e9eee7;color:#365542}
html[data-visual-theme=ivory] .storefront .stat-favorites{background:#f4e6e1;color:#70483d}
html[data-visual-theme=ivory] .storefront :is(footer,.mobile-dock){background:#f4ece1;border-color:var(--ph-border);color:var(--ph-ink)}
html[data-visual-theme=ivory] .storefront :is(.sale-pill,.ph-hero-copy .button,.cart-checkout .button){background:var(--ph-gold);color:#fff}
html[data-visual-theme=ivory] .admin-body{
  --admin-gold:#79562e;--admin-line:#ded2c3;
  background:#f7f2eb;color:#322b25
}
html[data-visual-theme=ivory] .admin-body .admin-sidebar{background:linear-gradient(165deg,#3d332a,#2b2724 75%);color:#f8f2e9}
html[data-visual-theme=ivory] .admin-body .admin-sidebar nav a[aria-current=page]{background:#e9d9c2;color:#35291e;box-shadow:none}
html[data-visual-theme=ivory] .admin-body :is(.admin-topbar,.dashboard-panel,.dashboard-metric,.dashboard-welcome,.panel,.settings-panel,.admin-mobile-dock,.display-preferences){background:#fffdfa;color:#322b25;border-color:#ded2c3}
html[data-visual-theme=ivory] .admin-body .dashboard-metric{--metric:#79562e;--metric-tint:#f3e9da}
html[data-visual-theme=ivory] .admin-body .admin-global-search{background:#faf6ef;border-color:#ded2c3}
html[data-visual-theme=ivory] .admin-body .admin-global-search input{background:transparent;color:#322b25}
html[data-visual-theme=ivory] .admin-body .customer-avatar{background:#ead9c3;color:#533c25}
html[data-visual-theme=ivory] .admin-body :is(.button,form>button:not(.secondary):not(.danger)){background:#79562e;color:#fff;box-shadow:none}
html[data-visual-theme=ivory] .admin-body :is(.button,form>button:not(.secondary):not(.danger)):hover{background:#5f421f}
html[data-visual-theme=ivory] .admin-body :is(input,select,textarea){border-color:#c9b8a4}
@media(max-width:700px){
  html[data-visual-theme=ivory] .storefront .ph-search{min-width:0}
  html[data-visual-theme=ivory] .storefront .ph-search input{min-width:0}
  html[data-visual-theme=ivory] .storefront .mobile-dock a{color:#79562e}
  html[data-visual-theme=ivory] .admin-body .admin-mobile-dock a{min-height:44px}
}
/* Three optional, independent light palettes for the storefront and management UI. */
html[data-visual-theme=pearl]{--visual-bg:#f1f5f6;--visual-surface:#ffffff;--visual-ink:#243541;--visual-muted:#536571;--visual-accent:#24526b;--visual-accent-hover:#193d52;--visual-border:#cbd8df;--visual-soft:#e5eef2;--visual-sidebar:#213b4d;--visual-active-bg:#d9e8ee;--visual-active-ink:#1d3d52;color-scheme:light}
html[data-visual-theme=clay]{--visual-bg:#faf2eb;--visual-surface:#fffdfa;--visual-ink:#392b26;--visual-muted:#6b574e;--visual-accent:#87503d;--visual-accent-hover:#693a2c;--visual-border:#e4cfc3;--visual-soft:#f4e3d8;--visual-sidebar:#4b312a;--visual-active-bg:#f2dfd3;--visual-active-ink:#4b312a;color-scheme:light}
html[data-visual-theme=orchid]{--visual-bg:#f5f1f7;--visual-surface:#fffdff;--visual-ink:#332c3a;--visual-muted:#675d6d;--visual-accent:#684979;--visual-accent-hover:#4d345b;--visual-border:#dfd4e4;--visual-soft:#eee5f2;--visual-sidebar:#342a42;--visual-active-bg:#eaddf1;--visual-active-ink:#463354;color-scheme:light}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront{
  --accent:var(--visual-accent)!important;--page:var(--visual-bg)!important;--ink:var(--visual-ink)!important;
  --ph-bg:var(--visual-bg);--ph-surface:var(--visual-surface);--ph-ink:var(--visual-ink);
  --ph-muted:var(--visual-muted);--ph-gold:var(--visual-accent);--ph-gold-hover:var(--visual-accent-hover);
  --ph-border:var(--visual-border);--ph-blush:var(--visual-soft);
  background:var(--visual-bg);color:var(--visual-ink)
}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) :is(.storefront,.admin-body) :focus-visible{outline:3px solid var(--visual-accent);outline-offset:3px}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront :is(.store-frame,.ph-header,.ph-navigation,.shop-filters,.product-card,.product-detail,.cart-panel,.cart-summary,.checkout-form,.account-content,.account-sidebar,.ph-benefits){background:var(--visual-surface);color:var(--visual-ink);border-color:var(--visual-border)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-topbar{background:var(--visual-soft);color:var(--visual-ink)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-search{background:var(--visual-surface);border-color:var(--visual-border)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-search input{color:var(--visual-ink)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-search input::placeholder{color:var(--visual-muted)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-hero{background:var(--visual-soft)!important;border-color:var(--visual-border)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-hero-copy{background:linear-gradient(270deg,var(--visual-bg),color-mix(in srgb,var(--visual-bg) 75%,transparent) 62%,transparent)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-hero-copy :is(h2,p){color:var(--visual-ink)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront :is(.ph-category-strip a,.ph-featured .product-image,.product-detail .gallery,.product-detail .zoom-open,.account-welcome,.stat-wallet,.stat-orders,.stat-favorites,.size-detail-card){background:var(--visual-soft);border-color:var(--visual-border);color:var(--visual-ink)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-promotions :is(.promo-boy,.promo-baby,.promo-sale){background:var(--visual-soft)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-promotions span{background:var(--visual-accent);color:#fff}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .account-shell{background:var(--visual-bg)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .account-sidebar nav a.active{background:var(--visual-soft);color:var(--visual-accent)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .account-sidebar nav a .icon{color:var(--visual-accent)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront :is(.sale-pill,.ph-hero-copy .button,.cart-checkout .button){background:var(--visual-accent);color:#fff}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront :is(button:not(.secondary):not(.danger),.button:not(.secondary)){color:#fff}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront :is(.ph-search button,.ph-slider-controls button,.card-favorite,.product-detail .thumbnails button){color:var(--visual-accent)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront :is(input,select,textarea){border-color:var(--visual-border)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront :is(footer,.mobile-dock){background:var(--visual-soft);border-color:var(--visual-border);color:var(--visual-ink)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body{
  --admin-gold:var(--visual-accent);--admin-line:var(--visual-border);
  background:var(--visual-bg);color:var(--visual-ink)
}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body .admin-sidebar{background:var(--visual-sidebar);color:#fff}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body .admin-sidebar nav a[aria-current=page]{background:var(--visual-active-bg);color:var(--visual-active-ink);box-shadow:none}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body :is(.admin-topbar,.dashboard-panel,.dashboard-metric,.dashboard-welcome,.panel,.settings-panel,.admin-mobile-dock,.display-preferences){background:var(--visual-surface);color:var(--visual-ink);border-color:var(--visual-border)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body .dashboard-metric{--metric:var(--visual-accent);--metric-tint:var(--visual-soft)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body .admin-global-search{background:var(--visual-surface);border-color:var(--visual-border)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body .admin-global-search input{background:transparent;color:var(--visual-ink)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body .customer-avatar{background:var(--visual-soft);color:var(--visual-accent)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body :is(.button,form>button:not(.secondary):not(.danger)){background:var(--visual-accent);color:#fff;box-shadow:none}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body :is(.button,form>button:not(.secondary):not(.danger)):hover{background:var(--visual-accent-hover)}
html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body :is(input,select,textarea){border-color:var(--visual-border)}
@media(max-width:700px){
  html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-hero-copy{background:var(--visual-bg)!important}
  html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-search{min-width:0}
  html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .ph-search input{min-width:0}
  html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .storefront .mobile-dock a{color:var(--visual-accent)}
  html:is([data-visual-theme=pearl],[data-visual-theme=clay],[data-visual-theme=orchid]) .admin-body .admin-mobile-dock a{min-height:44px}
}