/* Estilos personalizados. Se aplican por dispositivo; no afectan ventas ni stock. */
.theme-toolbar{display:flex;justify-content:flex-end;margin-top:14px}
.theme-open{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:12px;padding:11px 16px;font-size:12px;font-weight:750;min-height:43px;box-shadow:0 3px 15px #00000008}
.theme-open:hover{border-color:var(--theme-accent,#b84337)}
.theme-login{width:100%;margin-top:12px}
.theme-dialog{border:1px solid var(--line);border-radius:22px;padding:25px;width:min(660px,calc(100% - 28px));max-height:min(85vh,760px);background:var(--paper);color:var(--ink);box-shadow:0 24px 80px #0005}
.theme-dialog::backdrop{background:#1119;backdrop-filter:blur(5px)}
.theme-dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}
.theme-dialog-top h2{margin:8px 0}.theme-dialog-top p{color:var(--muted);font-size:13px;line-height:1.6;margin:0}
.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.theme-option{position:relative;padding:10px;display:flex;flex-direction:column;text-align:left;gap:12px;background:var(--paper);border:2px solid var(--line);border-radius:16px;color:var(--ink);min-width:0}
.theme-option:hover,.theme-option.selected{border-color:var(--theme-accent,#b84337)}
.theme-option.selected{box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent,#b84337) 17%,transparent)}
.theme-preview{display:flex;height:96px;width:100%;background:var(--sw-bg);border-radius:10px;overflow:hidden;border:1px solid #00000010}
.theme-preview-sidebar{background:var(--sw-side);width:28%;padding:10px;position:relative}
.theme-preview-sidebar:before,.theme-preview-sidebar:after{content:'';display:block;border-radius:3px;height:8px;background:var(--sw-highlight);margin-bottom:13px;width:90%}
.theme-preview-sidebar:after{opacity:.4;width:60%}
.theme-preview-content{padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:12px 1fr;gap:8px;width:72%}
.theme-preview-content i{background:var(--sw-highlight);border-radius:5px;opacity:.7}
.theme-preview-content i:first-child{background:var(--sw-accent);grid-column:span 2;height:10px;width:65%}
.theme-preview-content i:nth-child(2){background:var(--sw-side)}
.theme-preview-content i:nth-child(3){background:var(--sw-accent)}
.theme-preview-content i:last-child{display:none}
.theme-option-info{display:flex;flex-direction:column;gap:4px;padding:0 2px 3px}
.theme-option-info strong{font-size:14px}.theme-option-info small{font-size:11px;color:var(--muted)}
.theme-selected-icon{position:absolute;right:18px;bottom:16px;color:var(--theme-accent,#b84337);opacity:0;font-size:17px;font-weight:900}.theme-option.selected .theme-selected-icon{opacity:1}
:root{--theme-accent:#b84337}
/* Shared token overrides; brand.css provides the default classic design. */
:root[data-theme="midnight"]{--bg:#12151d;--paper:#1d2531;--ink:#f3f0e9;--muted:#abb5c4;--green:#121b28;--lime:#e6be76;--line:#384354;--red:#f17973;--soft:#2b3545;--theme-accent:#e6be76;color-scheme:dark}
:root[data-theme="neon"]{--bg:#10101a;--paper:#232239;--ink:#f8f5ff;--muted:#bbb7d0;--green:#191426;--lime:#c6ff61;--line:#45405e;--red:#ff819b;--soft:#35304a;--theme-accent:#ae83ff;color-scheme:dark}
:root[data-theme="ocean"]{--bg:#edf5fa;--paper:#fff;--ink:#15324b;--muted:#647d90;--green:#133450;--lime:#80e0dc;--line:#d5e6ef;--red:#bd5a61;--soft:#ddf5f5;--theme-accent:#18b5b3}
:root[data-theme="minimal"]{--bg:#f7f8fa;--paper:#fff;--ink:#252d32;--muted:#727e86;--green:#252d32;--lime:#b2d7bd;--line:#e2e6eb;--red:#a95454;--soft:#f0f3f5;--theme-accent:#568b68}
:root[data-theme="burgundy"]{--bg:#f7eff1;--paper:#fffafa;--ink:#4c1e32;--muted:#946979;--green:#4c1e32;--lime:#f0d7a9;--line:#ebd5dc;--red:#ae4a66;--soft:#f7e6eb;--theme-accent:#a84667}
:root[data-theme]:not([data-theme="classic"]) body{background:var(--bg);color:var(--ink)}
:root[data-theme]:not([data-theme="classic"]) .main{background:var(--bg)}
:root[data-theme]:not([data-theme="classic"]) .sidebar{background:var(--green);border-right-color:var(--line)}
:root[data-theme]:not([data-theme="classic"]) .auth-story{background:var(--green)}
:root[data-theme]:not([data-theme="classic"]) .auth-story:after{display:none}
:root[data-theme]:not([data-theme="classic"]) .auth-form .primary,
:root[data-theme]:not([data-theme="classic"]) .primary.lime{background:var(--theme-accent);color:var(--green)}
:root[data-theme]:not([data-theme="classic"]) .primary.lime:hover,
:root[data-theme]:not([data-theme="classic"]) .auth-form .primary:hover{filter:brightness(.9)}
:root[data-theme]:not([data-theme="classic"]) .nav-item.active{background:var(--lime);color:var(--green)}
:root[data-theme]:not([data-theme="classic"]) .stat.featured{background:var(--green);border-color:var(--line)}
:root[data-theme]:not([data-theme="classic"]) .stat.featured .stat-number{color:var(--lime)}
:root[data-theme]:not([data-theme="classic"]) .stat.featured:after{background:var(--theme-accent)}
:root[data-theme]:not([data-theme="classic"]) .add-product{background:var(--green);color:var(--lime)}
:root[data-theme]:not([data-theme="classic"]) .add-product:hover{background:var(--theme-accent);color:var(--green)}
:root[data-theme]:not([data-theme="classic"]) .sellers .payment.active{background:var(--green);border-color:var(--green);color:var(--lime)}
:root[data-theme]:not([data-theme="classic"]) .payment.active{border-color:var(--theme-accent);background:var(--soft);color:var(--ink)}
:root[data-theme]:not([data-theme="classic"]) .product-card,
:root[data-theme]:not([data-theme="classic"]) .cart,
:root[data-theme]:not([data-theme="classic"]) .panel,
:root[data-theme]:not([data-theme="classic"]) .stat,
:root[data-theme]:not([data-theme="classic"]) .table-wrap{background:var(--paper);border-color:var(--line)}
:root[data-theme]:not([data-theme="classic"]) .cart-header,
:root[data-theme]:not([data-theme="classic"]) .cart-total,
:root[data-theme]:not([data-theme="classic"]) .demo-banner,
:root[data-theme]:not([data-theme="classic"]) .callout{background:var(--soft);color:var(--ink);border-color:var(--line)}
:root[data-theme]:not([data-theme="classic"]) .callout b{color:var(--ink)}
:root[data-theme]:not([data-theme="classic"]) .stock-warning{background:var(--soft);color:var(--ink);border-color:var(--line)}
:root[data-theme]:not([data-theme="classic"]) .stock-warning button{color:var(--ink)}
:root[data-theme]:not([data-theme="classic"]) .product-art{background:#fff}
:root[data-theme]:not([data-theme="classic"]) .product-photo{mix-blend-mode:normal}
:root[data-theme]:not([data-theme="classic"]) .mobile-nav{background:var(--paper);border-color:var(--line)}
:root[data-theme]:not([data-theme="classic"]) .mobile-nav .nav-item.active{background:var(--soft);color:var(--ink)}
:root[data-theme]:not([data-theme="classic"]) input,
:root[data-theme]:not([data-theme="classic"]) select,
:root[data-theme]:not([data-theme="classic"]) .secondary,
:root[data-theme]:not([data-theme="classic"]) .search{background:var(--paper);color:var(--ink);border-color:var(--line)}
:root[data-theme]:not([data-theme="classic"]) .chip.active{background:var(--green);color:var(--lime)}
:root[data-theme]:not([data-theme="classic"]) .install-button{background:var(--soft);border-color:var(--line);color:var(--ink)}
:root[data-theme]:not([data-theme="classic"]) .mobile-brand span{color:var(--ink)}
:root[data-theme]:not([data-theme="classic"]) .auth-shell{background:var(--bg)}
:root[data-theme]:not([data-theme="classic"]) .auth-divider span{background:var(--bg);color:var(--muted)}
:root[data-theme]:not([data-theme="classic"]) .tag{background:var(--soft);color:var(--ink)}
:root[data-theme]:not([data-theme="classic"]) .app-footer{color:var(--muted)}
:root[data-theme]:not([data-theme="classic"]) .top-header{border-color:var(--line)}
:root[data-theme]:not([data-theme="classic"]) .product-price small{color:var(--muted)}
:root[data-theme]:not([data-theme="classic"]) .auth-story h1 em{color:var(--lime)}
:root[data-theme]:not([data-theme="classic"]) .stat.featured .stat-label,
:root[data-theme]:not([data-theme="classic"]) .stat.featured small{color:#dadde6}
:root[data-theme]:not([data-theme="classic"]) .auth-story p{color:#d1cfd6}
:root[data-theme]:not([data-theme="classic"]) .auth-story .eyebrow{color:var(--lime)}
:root[data-theme]:not([data-theme="classic"]) .story-bottom{color:#ccc7d3}
@media(max-width:650px){.theme-toolbar{margin-top:10px}.theme-open{width:100%}.theme-grid{gap:9px}.theme-preview{height:75px}.theme-dialog{padding:16px}.theme-option{padding:7px}.theme-option-info strong{font-size:12px}.theme-option-info small{font-size:10px}.theme-selected-icon{right:12px;bottom:12px}}
