/* Visitor display preferences: persisted locally and available on every storefront page. */
:root[data-theme="light"]{
  --bg:#f7f5f1;--surface:#fffdf9;--surface2:#f1eee8;--ink:#201e1b;--muted:#6d6861;
  --line:rgba(32,30,27,.16);--soft:#201e1b;--shadow:0 20px 55px rgba(35,29,20,.12);
}
:root[data-theme="light"] body{background:var(--bg);color:var(--ink)}
:root[data-theme="light"] body:before{filter:invert(1);opacity:.025}
:root[data-theme="light"] ::selection{background:#6f0d16;color:#fff}
:root[data-theme="light"] .topbar,:root[data-theme="light"] .topbar.scrolled{background:rgba(255,253,249,.9);border-color:var(--line)}
:root[data-theme="light"] .v63-nav-row,:root[data-theme="light"] .v64-info-row,:root[data-theme="light"] .n335-collections,:root[data-theme="light"] .products-section,:root[data-theme="light"] .collection-section{background:var(--bg)!important}
:root[data-theme="light"] .product-card,:root[data-theme="light"] .form-card,:root[data-theme="light"] .drawer,:root[data-theme="light"] .shop405-dialog{background:var(--surface)!important;border-color:var(--line)!important}
:root[data-theme="light"] .n335-caption,:root[data-theme="light"] .v97-trust-strip,:root[data-theme="light"] .lux-footer{background:#ebe6dd!important;color:var(--ink)}
:root[data-theme="light"] input,:root[data-theme="light"] select,:root[data-theme="light"] textarea{background:#fff!important;color:#201e1b!important;border-color:#c8c1b7!important}
:root[data-theme="light"] :is(.n335-theme,.instrument-page,.guitars-page,.form-page,.account-page,.checkout-page,.search-page,.category-page,.accessory-page){background:#f7f5f1!important;color:#201e1b!important}
:root[data-theme="light"] :is(.v64-store-header,.v64-main-nav,.v63-nav-row,.v64-info-row,.n335-toolbar,.n335-collection-heading,.section-heading,.collection-heading,.edu-page main,.guitars-page main,.category-page main,.accessory-page main){background:#f7f5f1!important;color:#201e1b!important;border-color:var(--line)!important}
:root[data-theme="light"] :is(.n335-collection,.instrument-card,.product-card,.v97-trust-grid article,.edu-badges span,.v64-mega-menu,.v64-mega-primary,.v64-mega-detail,.accHub284,.v224-shop-main,.shop405-results,.shop405-dialog,.showroom408-room,.virtual406-modal){background:#fffdf9!important;color:#201e1b!important;border-color:var(--line)!important;box-shadow:none!important}
:root[data-theme="light"] :is(.n335-caption,.n335-collection .n335-caption,.v97-trust-strip,.lux-footer,.footer-bottom,.drawer-head,.drawer){color:#201e1b!important}
:root[data-theme="light"] :is(p,small,.muted,.n335-kicker,.v97-trust-grid span,.footer-bottom,.main-links a,.v64-nav-links a,.v64-info-inner,a.icon-link){color:#625d56!important}
:root[data-theme="light"] :is(.n335-caption h3,.v64-nav-links a:hover,.main-links a:hover){color:#201e1b!important}
:root[data-theme="light"] :is(.product-img,.n335-art,.instrument-card .product-img){background:#f0ece5!important}
:root[data-theme="light"] :is(button,.ghost,.cart-btn,.primary,.lux-btn){border-color:#bdb5aa!important}
:root[data-theme="light"] :is(.primary,.lux-btn){background:#201e1b!important;color:#fff!important}
:root[data-theme="light"] :is(.primary:hover,.lux-btn:hover){background:#6f0d16!important;border-color:#6f0d16!important;color:#fff!important}
.site-preferences{position:fixed;z-index:1001;left:18px;bottom:18px;display:flex;align-items:center;gap:5px;padding:6px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--surface) 88%,transparent);box-shadow:var(--shadow);backdrop-filter:blur(14px);direction:ltr}
.site-preferences button{appearance:none;border:0;background:transparent;color:var(--ink);min-width:32px;height:32px;padding:0 8px;border-radius:999px;cursor:pointer;font:600 11px/1 Arial,sans-serif}
.site-preferences button:hover,.site-preferences button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.site-preferences [data-theme]{font-size:17px;padding-bottom:2px}
.site-preferences [data-theme]{transition:transform .3s ease,background-color .3s ease,color .3s ease}
.site-preferences [data-theme]:active{transform:rotate(35deg) scale(.9)}
::view-transition-old(root),::view-transition-new(root){animation-duration:.25s;animation-timing-function:ease}
@media(prefers-reduced-motion:reduce){html.theme-changing body,html.theme-changing body *,.site-preferences [data-theme]{transition:none!important}}
.site-preferences button:focus-visible{outline:2px solid #a82b35;outline-offset:2px}
html[dir="ltr"] .site-preferences{left:auto;right:18px}
@media(max-width:600px){.site-preferences{left:10px;bottom:10px}.site-preferences button{min-width:29px;padding:0 6px}}
html[data-theme="light"]{background:#f7f5f1;color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
html[dir] body{direction:inherit}
html[data-theme="light"] body{background:#f7f5f1!important;color:#201e1b!important;--n-ink:#201e1b;--n-paper:#f7f5f1}
html[data-theme="light"] :is(.topbar,.topbar.scrolled,.v63-header-main,.v64-mega-panel,.product-detail-copy,.filter-bar,.v65-info-cards article,.empty,.nr-spec-table,.detail-main,.product-detail-gallery){background:#fffdf9!important;color:#201e1b!important;border-color:#c8c1b7!important}
html[data-theme="light"] :is(.product-card h3,.product h3,.v64-panel-head b,.v64-mega-group b,.nr-spec-table th,.nr-spec-table td,.price,.detail-price,.detail-meta){color:#201e1b!important}
html[data-theme="light"] .nr-spec-table th{background:#ebe6dd!important}
html[data-theme="light"] input::placeholder{color:#625d56!important;opacity:1}
html[data-theme="light"] :is(.edu-hero-copy,.n335-hero,.haunt-sign) :is(p,small,.n335-kicker){color:#eee5d7!important}
.site-preferences{bottom:max(18px,env(safe-area-inset-bottom));background-color:var(--surface)}

/* Whitewashed wood: reuse the store's existing grain under a white finish. */
html[data-theme="light"]{--bg:#f7f7f4;--surface:#ffffff;--surface2:#eeeee9;--ink:#111;--muted:#303030;--n-ink:#111;--white-wood:linear-gradient(#fffffff0,#ffffffe8),url('/images/wood347.svg')}
html[data-theme="light"] body,
html[data-theme="light"] :is(.topbar,.topbar.scrolled,.v63-header-main,.v63-nav-row,.v64-info-row,.n335-collections,.lux-footer,.n335-caption){background-color:#f7f7f4!important;background-image:var(--white-wood)!important;background-size:auto,900px 900px!important;color:#111!important}
html[data-theme="light"] body:before{display:none!important}
html[data-theme="light"] :is(.product-card,.form-card,.v65-info-cards article,.drawer,.v64-mega-menu,.product-detail-copy){background-color:#fff!important;color:#111!important}
html[data-theme="light"] :is(.n335-caption,.product-card,.form-card,.v65-info-cards,.drawer,.v64-mega-menu,.product-detail-copy,.section-heading,.footer-bottom,.v97-trust-grid) :is(h1,h2,h3,h4,p,small,b,strong,label),
html[data-theme="light"] :is(.main-links a,.v64-nav-links a,.v64-info-inner,.n335-collection-heading h2){color:#111!important}
/* The existing logo has an opaque dark backdrop; preserve it and turn the
   gold/red lettering and outlines into a neutral white/silver treatment. */
html[data-theme="light"] .nooraei-site-logo{filter:grayscale(1) brightness(1.35) contrast(1.1)!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:none!important}

/* Hide display controls during the welcome screen and intro video. */
html.intro-video-active .site-preferences {
  visibility: hidden !important;
  pointer-events: none !important;
}
