/* Store palette tokens. NAY original keeps its existing appearance. */
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]){color-scheme:light}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) body:not(.admin-shell){background:var(--site-background);color:var(--site-ink)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(.header,.product-card,.account-tile,.account-intro,.cart-item,.order-card,dialog,.modal-panel){background:var(--site-surface);border-color:var(--site-line);color:var(--site-ink)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(.category-chip,.category-directory .category-tile,.category-directory .category-all,.loyalty){background:var(--site-card-fill,linear-gradient(120deg,var(--site-primary),var(--site-deep)));border-color:color-mix(in srgb,var(--site-primary) 65%,white);color:#fff;box-shadow:inset 0 1px 0 #ffffff26,0 4px 12px color-mix(in srgb,var(--site-primary) 10%,transparent)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(.primary,.badge,.product-action,.category-filter-tabs button.active){background:var(--site-primary);border-color:var(--site-primary);color:#fff}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(button,input,select,textarea){border-color:var(--site-line)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(input,select,textarea){background:var(--site-surface);color:var(--site-ink);accent-color:var(--site-primary)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(.icon-button,.account-tile-icon,.category-directory .category-tile-icon,.notice,.search-box,.product-badge,.category-filter-tabs button){background:var(--site-soft);color:var(--site-primary)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(.section-eyebrow,.category-store-name,.heart[aria-pressed=true]){color:var(--site-primary)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront .bottom-nav{background:color-mix(in srgb,var(--site-surface) 80%,transparent);border-color:var(--site-line);box-shadow:0 6px 24px color-mix(in srgb,var(--site-primary) 13%,transparent)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront .bottom-nav button{color:var(--site-muted)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront .bottom-nav button.active{background:var(--site-soft);color:var(--site-primary)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront .nay-tab-count{background:var(--site-primary);color:#fff;border-color:var(--site-surface)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront #nav.nay-tabbar{background:color-mix(in srgb,var(--site-surface) 80%,transparent);border-color:var(--site-line);box-shadow:0 6px 24px color-mix(in srgb,var(--site-primary) 13%,transparent)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront #nav.nay-tabbar .nay-tab{color:var(--site-muted)!important;background:transparent!important}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront #nav.nay-tabbar .nay-tab.active{background:var(--site-soft)!important;color:var(--site-primary)!important}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront #nav.nay-tabbar .nay-tab:not(.active):hover{background:var(--site-soft)!important;color:var(--site-ink)!important}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront .category-3d-icon{filter:var(--site-icon)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront .branch-whatsapp{background:var(--site-surface);border-color:var(--site-line);box-shadow:0 3px 12px color-mix(in srgb,var(--site-primary) 15%,transparent)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(.choices button.selected,.choices button[aria-pressed=true]){background:var(--site-soft);border-color:var(--site-primary);color:var(--site-primary)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(.popular button,.browse-tools button,.shop-category-filter select,.category-change-store){color:var(--site-ink)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .floating-entry{background:var(--site-background)!important;color:var(--site-ink)!important}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .floating-entry :is(h1,h2,.eyebrow,.card-copy,.description,#hint,.floating-label,footer){color:var(--site-ink)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .floating-entry :is(.glass-card,.phone-screen,#language){background:color-mix(in srgb,var(--site-surface) 85%,transparent);border-color:var(--site-line);color:var(--site-ink)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .floating-entry :is(.mini-grid div,.screen-line){background:var(--site-soft)}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .floating-entry .halo{background:radial-gradient(ellipse,color-mix(in srgb,var(--site-primary) 10%,transparent),transparent 70%)}
/* Explicit error, deletion and sale colors retain their meaning. */
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront .account-delete{color:#9d2442;background:#fff5f6;border-color:#edc9d0}
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront [role=alert]{color:#a7233b}
.site-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.site-theme-option{padding:14px;border:1px solid #e0dce1;border-radius:18px;background:#fff}.site-theme-option h3{font-size:16px;margin:12px 0 0}.site-theme-option p{font-size:12px;color:#716773;margin:2px 0 12px}.site-theme-option button{width:100%;border-radius:10px;background:var(--preview-primary);color:#fff;border:0;padding:11px;min-height:44px;cursor:pointer}.site-theme-option button:disabled{opacity:1;background:var(--preview-soft);color:var(--preview-primary);cursor:default;border:1px solid var(--preview-primary)}.site-theme-option:has(button[aria-pressed=true]){border-color:var(--preview-primary);box-shadow:inset 0 0 0 1px var(--preview-primary)}.site-theme-sample{padding:12px;border-radius:12px;background:var(--preview-soft);color:var(--preview-ink)}.site-theme-sample-header{display:flex;align-items:center;gap:5px;margin-bottom:10px}.site-theme-sample-header span{width:28px;height:5px;margin-inline-end:auto;background:var(--preview-primary);border-radius:4px}.site-theme-sample-header i{width:8px;height:8px;border:1px solid var(--preview-primary);border-radius:50%}.site-theme-sample-banner{height:46px;background:linear-gradient(115deg,var(--preview-primary),var(--preview-deep));border-radius:9px}.site-theme-sample-chips{display:flex;gap:5px;margin:8px 0}.site-theme-sample-chips i{flex:1;height:15px;background:var(--preview-primary);border-radius:5px}.site-theme-sample-nav{display:flex;justify-content:space-around;padding:6px;background:#fff;border-radius:9px}.site-theme-sample-nav i{width:7px;height:7px;border:1px solid var(--preview-primary);border-radius:2px}.site-theme-option button:focus-visible{outline:3px solid var(--preview-primary);outline-offset:3px}@media(max-width:850px){.site-theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.site-theme-options{gap:10px}.site-theme-option{padding:10px}}

.site-theme-panel{padding:24px}.site-theme-panel>h2{margin-top:0}.site-theme-panel>.note{line-height:1.9}@media(max-width:440px){.site-theme-panel{padding:16px}}
.theme-family{display:inline-block;margin-top:10px;font-size:10px;color:#6d6470}.site-theme-option[data-finish=velvet] .site-theme-sample-banner{background:radial-gradient(ellipse at 10% 0%,#ffffff40,transparent 65%),repeating-linear-gradient(92deg,#ffffff04 0 1px,transparent 1px 3px),linear-gradient(120deg,var(--preview-primary),var(--preview-deep))}
.appearance-setting{margin:22px 0;max-width:520px}.appearance-switch{display:flex;align-items:center;gap:13px;width:100%;padding:16px 18px;border-radius:17px;border:1px solid var(--line);background:var(--site-surface,#fff);color:var(--ink);text-align:start;min-height:76px;cursor:pointer}.appearance-switch strong{display:block;font-size:15px}.appearance-switch small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.appearance-icon{display:grid;place-items:center;color:var(--red)}.appearance-icon svg{width:25px;height:25px}.appearance-track{margin-inline-start:auto;flex:none;width:44px;height:26px;border-radius:20px;padding:3px;background:var(--line);display:flex;align-items:center;justify-content:flex-start}.appearance-track i{width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 1px 4px #0003}.appearance-switch[aria-pressed=true] .appearance-track{background:var(--site-primary);justify-content:flex-end}.appearance-switch:focus-visible{outline:2px solid var(--red);outline-offset:3px}
html[data-nay-theme][data-nay-mode=dark]{color-scheme:dark!important}
html[data-nay-theme][data-nay-mode=dark] body:not(.admin-shell){background:var(--site-background);color:var(--site-ink)}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront :is(.empty,.cart-row,.account-avatar,.page-heading>.muted,.choices button,.browse-tools button,.branches button,.categories button){background:var(--site-soft);color:var(--site-ink);border-color:var(--site-line)}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront :is(.product-info h3,.price,.price-original,.price-discounted,.account-intro h1,.product-description){color:var(--site-ink)}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront :is(.account-tile-icon,.icon-button,.notice,.section-heading button,.category-store-name){color:var(--site-accent)}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront #nav.nay-tabbar .nay-tab.active{color:var(--site-accent)!important}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront .category-directory .category-tile-icon{background:#f5f0f3}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront .account-delete{background:#39212b;color:#ffb6c9;border-color:#6b3646}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront [role=alert]{color:#ffabb9}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront .header .brand img,html[data-nay-theme][data-nay-mode=dark] .floating-entry .brand img,html[data-nay-theme][data-nay-mode=dark] .floating-entry .phone-brand img{background:#fff;border-radius:10px}
html[data-nay-theme][data-nay-mode=dark] .site-theme-panel,html[data-nay-theme][data-nay-mode=dark] .site-theme-option{background:var(--site-surface);border-color:var(--site-line)}
html[data-nay-theme][data-nay-mode=dark] .site-theme-option h3{color:var(--site-ink)}html[data-nay-theme][data-nay-mode=dark] :is(.theme-family,.site-theme-option p){color:var(--site-muted)}

/* Keep night-mode accents readable without lightening white-label buttons. */
html[data-nay-theme]:is(:not([data-nay-theme=nay]),[data-nay-mode=dark]) .nay-storefront :is(.primary,.badge,.product-action){background:var(--site-primary)!important;color:#fff!important}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront :is(.account-tile-icon,.icon-button,.notice,.section-heading button,.category-store-name){color:var(--site-accent)!important}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront .choices button.active{background:var(--site-soft)!important;color:var(--site-accent)!important;border-color:var(--site-accent)}
html[data-nay-theme][data-nay-mode=dark] .nay-storefront [role=alert]{color:#ffabb9!important}
