@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url('fonts/montserrat-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url('fonts/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Philosopher;font-style:normal;font-weight:400;font-display:swap;src:url('fonts/philosopher-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Philosopher;font-style:normal;font-weight:400;font-display:swap;src:url('fonts/philosopher-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{font-family:Montserrat,sans-serif;font-size:16px;font-weight:400;color:#262020;background:#f7f5f1;font-synthesis:none;--ink:#262020;--brown:#604438;--brown-2:#765b4f;--cream:#f7f5f1;--paper:#fffdfa;--line:#d8d0c8;--muted:#746d68;--panel:#eee9df;scrollbar-gutter:stable}
*{box-sizing:border-box}html{scroll-behavior:auto}body{margin:0;min-width:320px;background:var(--cream);overflow-x:hidden}:where(body:not(.cat-shell),.cat-main,dialog) button,:where(body:not(.cat-shell),.cat-main,dialog) input,:where(body:not(.cat-shell),.cat-main,dialog) select,:where(body:not(.cat-shell),.cat-main,dialog) summary,:where(body:not(.cat-shell),.cat-main,dialog) .button{font:inherit}:where(body:not(.cat-shell),.cat-main,dialog) button,:where(body:not(.cat-shell),.cat-main,dialog) select,:where(body:not(.cat-shell),.cat-main,dialog) .button,:where(body:not(.cat-shell),.cat-main,dialog) summary{cursor:pointer}:where(body:not(.cat-shell),.cat-main,dialog) button,:where(body:not(.cat-shell),.cat-main,dialog) .button{border:1px solid var(--brown);border-radius:30px;background:transparent;color:var(--ink);padding:11px 18px;min-height:48px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .18s,color .18s,border-color .18s}:where(body:not(.cat-shell),.cat-main,dialog) button:hover,:where(body:not(.cat-shell),.cat-main,dialog) .button:hover{background:var(--brown);color:#fff}.primary,.order-button{background:var(--brown);color:#fff}.primary:hover,.order-button:hover{background:#493229}.order-button span{font-size:22px}:where(body:not(.cat-shell),.cat-main,dialog) button:disabled{opacity:.5;cursor:wait}:where(body:not(.cat-shell),.cat-main,dialog) button:focus-visible,:where(body:not(.cat-shell),.cat-main,dialog) a:focus-visible,:where(body:not(.cat-shell),.cat-main,dialog) input:focus-visible,:where(body:not(.cat-shell),.cat-main,dialog) select:focus-visible,:where(body:not(.cat-shell),.cat-main,dialog) summary:focus-visible{outline:3px solid #b79683;outline-offset:3px}:where(body:not(.cat-shell),.cat-main,dialog) input,:where(body:not(.cat-shell),.cat-main,dialog) select{border:1px solid #bfb5ad;border-radius:30px;min-height:48px;padding:11px 17px;background:#fff;color:inherit;max-width:100%}:where(body:not(.cat-shell),.cat-main,dialog) input[type=checkbox]{width:22px;height:22px;min-height:22px;padding:0;accent-color:var(--brown)}:where(body:not(.cat-shell),.cat-main,dialog) input[type=color]{padding:4px;width:76px}:where(body:not(.cat-shell),.cat-main,dialog) label{display:flex;gap:9px;align-items:center;min-width:0}:where(body:not(.cat-shell),.cat-main,dialog) a{color:var(--brown)}:where(body:not(.cat-shell),.cat-main,dialog) h1,:where(body:not(.cat-shell),.cat-main,dialog) h2{font-family:Philosopher,sans-serif;font-weight:400;text-transform:uppercase;color:var(--ink);margin:0}:where(body:not(.cat-shell),.cat-main,dialog) h1{font-size:clamp(42px,5.3vw,76px);line-height:.98;max-width:950px}:where(body:not(.cat-shell),.cat-main,dialog) h2{font-size:clamp(32px,3vw,48px);line-height:1}:where(body:not(.cat-shell),.cat-main,dialog) p{line-height:1.45}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.masthead{max-width:1440px;margin:auto;padding:22px 20px;display:grid;grid-template-columns:230px 1fr auto;align-items:center;gap:28px;border-bottom:1px solid var(--line)}.brand img{display:block;width:216px;height:auto}.site-nav{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2vw,34px)}.site-nav a{font-size:15px;color:var(--ink);text-decoration:none;white-space:nowrap}.site-nav a:hover,.site-nav .current{color:var(--brown);text-decoration:underline;text-underline-offset:6px}.header-actions{display:flex;gap:10px;align-items:center}.header-actions>a:not(.button){font-size:14px}.favorite-button{white-space:nowrap}
.cat-main{max-width:1440px;padding:0 20px 50px;margin:auto}.intro{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;padding:68px 0 46px}.eyebrow{font-size:13px;letter-spacing:.16em;color:var(--brown);margin:0 0 13px}.subtitle{color:var(--muted);margin:22px 0 0;max-width:740px;font-size:18px}.collection-label{font-size:13px;letter-spacing:.12em;line-height:1.8;color:var(--muted);white-space:nowrap;text-align:right}.collection-label strong{font-family:Philosopher,sans-serif;font-size:52px;font-weight:400;color:var(--ink);letter-spacing:0}
.filters{position:sticky;top:0;z-index:12;display:flex;gap:10px;flex-wrap:wrap;background:#f7f5f1f2;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}.filters .search{flex:1;min-width:240px}.search input{width:100%}.filters select{min-width:180px}.mobile-categories{display:none}
.pattern-theme-picker{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:25px;background:var(--paper)}.pattern-theme-picker button{gap:6px;min-height:40px;padding:6px 9px;border:0;border-radius:21px;font-size:12px;white-space:nowrap}.pattern-theme-picker button:hover{background:#eee8e1;color:var(--ink)}.pattern-theme-picker button[aria-pressed=true]{background:var(--brown);color:#fff}.theme-sample{width:18px;height:18px;flex:0 0 18px;border:1px solid #81766e;border-radius:50%;background-color:var(--sample-bg);background-image:radial-gradient(circle at 35% 32%,var(--sample-ink) 0 2px,transparent 2.5px),linear-gradient(135deg,transparent 38%,var(--sample-ink) 39% 60%,transparent 61%)}.room-sample{--sample-bg:#d8d3cc;--sample-ink:#eee9df}.light-sample{--sample-bg:#242321;--sample-ink:#f7f4ec}.dark-sample{--sample-bg:#f7f4ec;--sample-ink:#242321}.pattern-theme-picker button[aria-pressed=true] .theme-sample{border-color:#fff}
.admin-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0;font-size:15px}.admin-tools details{position:relative}.backup-actions{display:flex;flex-wrap:wrap;gap:8px;padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:18px}.backup-actions p{width:100%;max-width:720px;margin:4px 0}.category-manager{margin:22px 0;padding:24px;background:#efe9e2;border-radius:30px;display:grid;grid-template-columns:minmax(220px,.7fr) minmax(320px,1fr);gap:20px 32px}.category-manager h2{font-size:36px}.category-manager p{margin:8px 0;color:var(--muted)}#category-create{display:flex;align-items:center;justify-content:flex-end;gap:9px}#category-create label{flex:1}#category-create input{width:100%}.category-manage-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}.category-manage-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:7px;padding:8px 9px 8px 15px;background:var(--paper);border:1px solid var(--line);border-radius:16px}.category-manage-row strong{font-size:14px}.category-manage-row span{font-size:13px;color:var(--muted)}.category-manage-row button{min-height:38px;padding:6px 11px;font-size:13px}.category-manage-row .delete:hover{background:#8c3f35;border-color:#8c3f35}
.bulk{position:sticky;top:78px;z-index:11;display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#e7ddd4;padding:12px;border:1px solid #bca99b;border-radius:18px;margin:14px 0;font-size:14px}.bulk details{max-width:100%}.bulk details[open]{flex-basis:100%}.category-checks{display:grid;gap:6px;margin:12px 0}.bulk .category-checks{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));max-height:240px;overflow:auto}.category-checks label{padding:7px 9px;font-size:14px;line-height:1.3;min-height:40px;border-radius:10px}.category-checks label:hover{background:#eee7df}.check{cursor:pointer}.note{font-size:13px;color:var(--muted)}
.catalog-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:28px}.category-panel{padding-top:28px}.category-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;font-family:Philosopher,sans-serif;font-size:22px;text-transform:uppercase}.category-panel-head button{display:none}.category-list{display:grid;gap:5px;position:sticky;top:88px;max-height:calc(100dvh - 110px);overflow:auto;padding-right:7px;overscroll-behavior:contain}.category-list button{width:100%;min-height:42px;padding:8px 12px;border:0;border-radius:14px;text-align:left;justify-content:space-between;color:var(--ink)}.category-list button:hover,.category-list button:focus-visible,.category-list button:active,.category-list button[aria-pressed=true]{background:var(--brown);color:#fff}.category-list .count{font-size:12px;opacity:.72}.catalog-content{min-width:0}.results-line{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:15px;margin:27px 0 16px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;align-items:start}.grid.compact{grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:12px}.card{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:20px;overflow:hidden;position:relative;contain:layout paint style;content-visibility:auto;contain-intrinsic-size:auto 390px}.card.selected{outline:3px solid var(--brown);outline-offset:2px}.card-open{display:block;border:0;border-radius:0;padding:0;width:100%;text-align:left;background:none;color:inherit}.card-open:hover{background:none;color:inherit}.scene{background:radial-gradient(circle at 25% 8%,#fff 0,transparent 42%),linear-gradient(135deg,#e9e6df,#d8d3cc);position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;isolation:isolate}.card .scene{aspect-ratio:4/5;padding:30px 26px 36px}.grid.compact .card .scene{aspect-ratio:4/5;padding:22px 18px 27px}.scene:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#fff3,transparent 30%,#9d938820);pointer-events:none}.scene:after{content:'';position:absolute;bottom:0;height:8%;left:0;right:0;z-index:-1;background:linear-gradient(#8e847816,transparent);border-top:1px solid #fff8}.panel-shadow{position:relative;width:100%;height:100%;max-width:100%;max-height:100%;filter:drop-shadow(12px 17px 8px #4b403655) drop-shadow(2px 3px 1px #332a2455)}.material{width:100%;height:100%;background-color:var(--finish,#eee9df);mask-image:var(--mask);-webkit-mask-image:var(--mask);mask-size:contain;-webkit-mask-size:contain;mask-position:center;-webkit-mask-position:center;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}.material.solid,.material.custom{background-image:none}.material.wood{background-image:url('textures/birch-plywood.svg');background-size:320px 640px;background-blend-mode:multiply}.card-info{padding:15px 17px 18px}.card-number{display:block;font-family:Philosopher,sans-serif;font-size:23px;line-height:1;font-weight:400;color:var(--ink);padding-right:44px}.card-categories{display:block;font-size:13px;line-height:1.45;color:var(--muted);margin-top:9px;min-height:38px}.card-metric{display:block;font-size:14px;color:var(--brown);margin-top:8px}.heart{position:absolute;right:10px;bottom:78px;border-radius:50%;padding:0;width:46px;min-height:46px;font-size:25px;background:#fffdf3e8;z-index:3}.heart[aria-pressed=true]{color:#9a3e32}.selection{position:absolute;top:12px;left:12px;padding:8px;background:#fffdf3ee;border-radius:10px;z-index:4}.card-status{font-size:12px;color:var(--muted);padding:0 17px 15px}.badge{color:#9b4e39}#sentinel{height:44px}#status:not(:empty),#detail-status:not(:empty){background:#fff0d9;padding:12px;border-radius:12px}.error{color:#842f29!important}.category-scrim{display:none}
.luminance-mask{mask-mode:luminance;-webkit-mask-source-type:luminance}.engraved-panel{filter:drop-shadow(9px 13px 7px #4b403647)!important}.engraved-surface{position:relative;overflow:hidden;border-radius:2px;mask-image:none!important;-webkit-mask-image:none!important;background-color:var(--finish,#eee9df)}.engraved-surface:after{content:'';position:absolute;inset:0;background:linear-gradient(145deg,#fff3 0,#684d4088 3%,#352825a3 100%);mask-image:var(--engraving-mask);mask-size:contain;mask-position:center;mask-repeat:no-repeat;-webkit-mask-image:var(--engraving-mask);-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;filter:drop-shadow(1px 1px 1px #fff8) drop-shadow(-1px -1px 1px #251b1888);pointer-events:none}
.preview-watermark{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-24deg);font-family:Philosopher,sans-serif;font-size:clamp(14px,2vw,28px);letter-spacing:.08em;color:#fff9;text-shadow:0 1px 3px #0008;pointer-events:none;white-space:nowrap}.photo-gallery #photo-main{position:relative}.photo-gallery #photo-main[data-watermark]:not([data-watermark=""]):after,.lightbox-stage[data-watermark]:not([data-watermark=""]):after{content:attr(data-watermark);position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-24deg);font-family:Philosopher,sans-serif;font-size:clamp(18px,4vw,48px);letter-spacing:.08em;color:#fff9;text-shadow:0 1px 4px #000;pointer-events:none;white-space:nowrap}
body[data-pattern-theme="light-on-dark"] .scene{background:#242321}body[data-pattern-theme="dark-on-light"] .scene{background:#f7f4ec}body[data-pattern-theme="light-on-dark"] .scene:before,body[data-pattern-theme="light-on-dark"] .scene:after,body[data-pattern-theme="dark-on-light"] .scene:before,body[data-pattern-theme="dark-on-light"] .scene:after{opacity:0}body[data-pattern-theme="light-on-dark"] .panel-shadow,body[data-pattern-theme="dark-on-light"] .panel-shadow{filter:none!important}body[data-pattern-theme="light-on-dark"] .material{background-color:#f7f4ec!important;background-image:none!important}body[data-pattern-theme="dark-on-light"] .material{background-color:#242321!important;background-image:none!important}
.cat-footer{max-width:1440px;margin:0 auto;border-top:1px solid var(--line);padding:34px 20px;display:flex;gap:30px;justify-content:space-between;color:var(--muted);font-size:14px}.cat-footer img{width:190px;height:auto}.footer-links{display:flex;flex-direction:column;gap:8px}
dialog{border:0;border-radius:24px;padding:0;width:calc(100vw - 28px);height:calc(100dvh - 28px);max-width:1900px;max-height:none;background:var(--cream);color:inherit;overflow:hidden;box-shadow:0 20px 80px #221b1866}dialog::backdrop{background:#262020d4;backdrop-filter:blur(5px)}.detail-top{height:68px;padding:9px 18px 9px 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}.detail-top strong{font-family:Philosopher,sans-serif;font-size:27px;font-weight:400}.detail-top>div{display:flex;gap:6px}.detail-top button{font-size:20px;padding:7px 13px;min-height:46px}.detail-layout{height:calc(100% - 68px);display:grid;grid-template-columns:minmax(0,1fr) 350px}.detail-layout>.scene{padding:34px 50px 52px;min-height:0}.detail-layout .panel-shadow{filter:drop-shadow(18px 25px 12px #40372f66) drop-shadow(3px 4px 1px #2c241f5c)}.detail-controls{padding:24px 22px;overflow-y:auto;overscroll-behavior:contain;font-size:15px}.detail-controls>label{display:flex;flex-direction:column;align-items:stretch;margin:18px 0;gap:8px}.detail-controls>label.check{flex-direction:row;align-items:center}.detail-controls select{width:100%}.detail-controls>p:first-child{margin-top:0;color:var(--muted)}.open-area{font-size:20px;color:var(--brown);font-weight:600}.swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.swatch{padding:8px 5px;font-size:11px;display:flex;flex-direction:column;gap:6px;min-width:0;min-height:76px;border-color:var(--line)}.swatch:before{content:'';display:block;width:34px;height:34px;border-radius:50%;background-color:var(--color);background-image:var(--texture,none);background-blend-mode:multiply;background-size:80px 160px;box-shadow:inset 0 0 0 1px #0002}.swatch[aria-pressed=true]{outline:2px solid var(--brown);background:#e9dfd6}.wall{background:radial-gradient(circle at 25% 8%,#fff 0,transparent 42%),linear-gradient(135deg,#e9e6df,#d8d3cc)}.login{max-width:520px;margin:12vh auto;padding:34px}.login h1{font-size:44px}.login form{display:grid;gap:20px}.login label{flex-direction:column;align-items:stretch}body.modal-open,body.categories-open{overflow:hidden}
@media(min-width:1700px){.grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}}
@media(max-width:1100px){.masthead{grid-template-columns:200px 1fr auto}.brand img{width:190px}.site-nav{display:none}.catalog-layout{grid-template-columns:220px minmax(0,1fr)}.detail-layout{grid-template-columns:minmax(0,1fr) 310px}.category-manager{grid-template-columns:1fr}}
@media(max-width:760px){.masthead{padding:15px 16px;grid-template-columns:1fr auto;gap:12px}.brand img{width:165px}.header-actions>a:not(.button){display:none}.order-button{display:none}.header-actions button{min-height:44px;padding:8px 13px;font-size:13px}.cat-main{padding:0 14px 35px}.intro{padding:36px 0 28px;align-items:flex-start}.collection-label{display:none}h1{font-size:clamp(38px,11vw,58px)}.subtitle{font-size:16px;margin-top:16px}.filters{gap:8px;padding:10px 0}.mobile-categories{display:inline-flex}.filters .search{order:3;flex-basis:100%;min-width:0}.filters label:not(.search){flex:1}.filters select{width:100%;min-width:0;font-size:14px}.filters #refresh{font-size:0;padding:8px 14px}.filters #refresh:first-letter{font-size:20px}.view-control{display:none}.category-manager{padding:19px;border-radius:22px;display:block}.category-manager form{margin:16px 0;display:grid}.category-manage-list{grid-template-columns:1fr}.bulk{top:120px;position:sticky}.catalog-layout{display:block}.category-panel{position:fixed;z-index:31;left:0;top:0;bottom:0;width:min(88vw,390px);padding:18px;background:var(--cream);transform:translateX(-105%);transition:transform .22s ease;box-shadow:10px 0 40px #26202033}.categories-open .category-panel{transform:translateX(0)}.category-panel-head{font-size:25px}.category-panel-head button{display:inline-flex;min-height:44px;padding:6px 13px}.category-list{position:static;max-height:calc(100dvh - 80px);padding-right:4px}.category-list button{min-height:48px;font-size:16px}.category-scrim{display:block;position:fixed;z-index:30;inset:0;background:#26202080}.results-line{font-size:14px;margin:20px 0 13px}.results-line span:last-child{display:none}.grid,.grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.card,.grid.compact .card{contain-intrinsic-size:auto 330px}.card .scene,.grid.compact .card .scene{padding:18px 14px 23px}.card-info{padding:13px 11px 15px}.card-number{font-size:21px}.card-categories{font-size:12px;min-height:34px}.card-metric{font-size:13px}.heart{right:6px;bottom:72px;width:44px;min-height:44px}.card-status{padding:0 11px 12px;font-size:11px}.cat-footer{flex-direction:column;padding:28px 16px}dialog{width:100%;height:100dvh;max-width:100%;border-radius:0;margin:0}.detail-top{height:58px;padding:5px 8px 5px 14px}.detail-top strong{font-size:22px}.detail-top button{min-height:42px;padding:5px 10px}.detail-layout{height:calc(100% - 58px);display:flex;flex-direction:column;overflow:auto}.detail-layout>.scene{flex:0 0 62dvh;min-height:420px;padding:24px 26px 38px}.detail-controls{overflow:visible;padding:20px 16px 34px}.swatches{grid-template-columns:repeat(3,1fr)}}
@media(max-width:380px){.grid,.grid.compact{gap:8px}.card .scene,.grid.compact .card .scene{padding:14px 10px 18px}.card-number{font-size:19px}.card-categories{font-size:11px}.card-info{padding-left:9px;padding-right:9px}.heart{bottom:69px}.detail-layout>.scene{min-height:360px;flex-basis:58dvh}}
@media(max-width:340px){.favorite-button{font-size:0;width:48px;padding:0;overflow:hidden}.favorite-button:before{content:'♡';font-size:20px}.favorite-button #favorite-count{display:none}.brand img{width:160px}.masthead{gap:8px}}
@media(max-width:339px){.grid,.grid.compact{grid-template-columns:1fr}}
body{min-width:0}
@media(max-width:760px){.filters #refresh{font-size:0;padding:0;width:48px}.filters #refresh:before{content:'↻';font-size:20px}}
.category-manager{display:block;padding:0}.category-manager>summary{list-style:none;padding:18px 23px;display:flex;align-items:center;justify-content:space-between;border-radius:30px}.category-manager>summary::-webkit-details-marker{display:none}.category-manager>summary:after{content:'+';font-family:Philosopher,sans-serif;font-size:32px}.category-manager[open]>summary:after{content:'−'}.category-manager>summary span{display:flex;flex-direction:column;gap:3px}.category-manager>summary b{font-family:Philosopher,sans-serif;font-size:25px;font-weight:400;text-transform:uppercase}.category-manager>summary small{color:var(--muted);font-size:13px}.category-manager-body{padding:4px 24px 24px;display:grid;grid-template-columns:minmax(220px,.7fr) minmax(320px,1fr);gap:20px 32px}
@media(max-width:1100px){.category-manager-body{grid-template-columns:1fr}}
@media(max-width:760px){.category-manager{padding:0}.category-manager-body{padding:2px 18px 18px;display:block}.category-manager>summary{padding:16px 18px}}
.material.wood{background-size:cover;background-position:center;background-repeat:no-repeat}
.swatch:before{background-size:cover;background-position:center;background-repeat:no-repeat}
body[data-admin="true"] .admin-tools{font-size:16px;line-height:1.45}
.category-manager>summary{cursor:pointer;padding:21px 26px}.category-manager>summary b{font-size:28px;line-height:1.12;letter-spacing:.01em}.category-manager>summary small{font-size:14px;line-height:1.45}.category-manager-body{padding:10px 26px 28px;grid-template-columns:minmax(260px,.72fr) minmax(420px,1.28fr);gap:24px 36px}.category-manager h2{font-size:clamp(36px,3.2vw,46px);line-height:1.05}.category-manager p{font-size:16px;line-height:1.5;max-width:540px}#category-create{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}#category-create input{min-height:50px;font-size:16px;padding-inline:18px}#category-create button{min-height:50px;padding-inline:20px;font-size:15px;white-space:nowrap}.category-manage-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.category-manage-row{display:flex;flex-direction:column;align-items:stretch;gap:16px;min-width:0;min-height:132px;padding:17px 17px 15px;border-radius:18px;overflow:hidden}.category-manage-row>div:first-child{min-width:0}.category-manage-row strong{display:block;font-size:16px;font-weight:500;line-height:1.38;overflow-wrap:anywhere}.category-manage-row span{display:block;margin-top:5px;font-size:14px;line-height:1.35}.category-manage-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.category-manage-actions button{min-height:40px;padding:7px 13px;font-size:14px;line-height:1;white-space:nowrap}.category-manage-actions .delete{margin-left:auto}
@media(max-width:1180px){.category-manager-body{grid-template-columns:1fr}.category-manage-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.category-manager>summary{padding:18px}.category-manager>summary b{font-size:24px}.category-manager>summary small{font-size:13px}.category-manager-body{padding:4px 18px 20px}.category-manager h2{font-size:36px}#category-create{grid-template-columns:1fr;margin:18px 0 22px}#category-create button{width:100%}.category-manage-list{grid-template-columns:1fr;gap:10px}.category-manage-row{min-height:0;padding:16px}.category-manage-actions button{flex:1 1 135px}.category-manage-actions .delete{margin-left:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.detail-theme-control{margin:20px 0}.control-title{display:block;margin-bottom:8px}.detail-theme-control .pattern-theme-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:18px}.detail-theme-control .pattern-theme-picker button{min-width:0;padding:7px 4px;flex-direction:column;border-radius:14px;font-size:10px}.finish-settings>label{display:flex;flex-direction:column;align-items:stretch;margin:18px 0;gap:8px}body[data-pattern-theme="light-on-dark"] .finish-settings,body[data-pattern-theme="dark-on-light"] .finish-settings{display:none}
@media(max-width:760px){.catalog-theme-picker{order:4;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-theme-picker button{min-width:0;padding:6px 4px}}
.pattern-theme-picker button.active{background:#604438!important;color:#fff!important}.pattern-theme-picker button:not(.active):hover{background:#eee8e1;color:var(--ink)}
.user-badge{font-size:13px;color:var(--muted);white-space:nowrap}.card-metric.ratio{color:var(--muted)}.horizontal-heading{grid-column:1/-1;margin:42px 0 4px;padding-top:26px;border-top:1px solid var(--line)}.horizontal-card .scene{aspect-ratio:16/10}.horizontal-card .panel-shadow{max-width:100%;max-height:100%}.photo-gallery{margin-top:24px}.photo-gallery h3{font-family:Philosopher,sans-serif;font-size:24px;font-weight:400;text-transform:uppercase}.photo-gallery #photo-main img{display:block;width:100%;max-height:55vh;object-fit:contain;border-radius:14px}.photo-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.photo-thumbs>div{min-width:0}.photo-thumbs button{padding:3px;min-height:44px;width:100%;border-radius:10px}.photo-thumbs img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px}.photo-thumbs>div>div{display:flex;flex-wrap:wrap;gap:3px;margin-top:4px}.photo-thumbs>div>div button{font-size:10px;padding:4px;min-height:30px}.form-dialog{max-width:680px;height:auto;max-height:90dvh}.form-body{padding:28px;display:grid;gap:20px}.form-body label{display:grid;gap:8px}.form-body pre{white-space:pre-wrap;max-height:45vh;overflow:auto;background:#efe9e2;padding:16px;border-radius:14px}
.photo-lightbox{background:#171514;color:#fff}.lightbox-top{height:58px;display:flex;align-items:center;justify-content:space-between;padding:7px 12px 7px 22px}.lightbox-top button{color:#fff;border-color:#fff8}.lightbox-stage{position:relative;height:calc(100% - 58px);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 20px 26px;touch-action:pan-y}.lightbox-stage>button{color:#fff;border-color:#fff8;font-size:24px}.lightbox-stage figure{margin:0;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.lightbox-stage img{display:block;max-width:100%;max-height:calc(100% - 38px);object-fit:contain}.lightbox-stage figcaption{min-height:24px;text-align:center;color:#eee}

/* Photo actions keep their original behavior, with usable hit targets and honest disabled states. */
body[data-admin="true"] .photo-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-item{min-width:0}.photo-thumb-button{padding:4px;min-height:52px}.photo-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;margin-top:7px!important}.photo-controls button{width:100%!important;min-height:42px!important;padding:7px 8px!important;font-size:12px!important;line-height:1.15!important;border-radius:12px!important}.photo-controls .photo-main{grid-column:1/-1}.photo-controls button:disabled{cursor:not-allowed}.photo-item.is-busy{opacity:.72}.photo-item.is-busy .photo-controls{pointer-events:none}
@media(max-width:760px){.user-badge{display:none}.horizontal-heading{font-size:30px;margin-top:30px}.horizontal-card .scene{aspect-ratio:16/11}.photo-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-admin="true"] .photo-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}.lightbox-stage{grid-template-columns:1fr;padding:8px 10px 20px}.lightbox-stage>button{position:absolute;z-index:2;top:50%;width:48px;padding:0;background:#171514b8}.lightbox-stage>#photo-lightbox-prev{left:8px}.lightbox-stage>#photo-lightbox-next{right:8px}.lightbox-stage figure{width:100%}}
@media(max-width:420px){body[data-admin="true"] .photo-thumbs{grid-template-columns:1fr}.photo-controls button{min-height:44px!important;font-size:13px!important}}

/* Product type is the top catalog level; pattern categories remain independent. */
.product-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.product-types button{min-height:72px;border-radius:20px;padding:13px 20px;justify-content:space-between;text-align:left;background:var(--paper);font-family:Philosopher,sans-serif;font-size:24px}.product-types button small{font-family:Montserrat,sans-serif;font-size:13px;color:var(--muted)}.product-types button:hover,.product-types button:focus-visible,.product-types button:active,.product-types button[aria-pressed=true]{background:var(--brown);color:#fff}.product-types button:hover small,.product-types button:focus-visible small,.product-types button:active small,.product-types button[aria-pressed=true] small{color:#ffffffd9}

/* Calm, uniform matrix for vertical and neutral formats. */
.grid{align-items:stretch}.card{height:100%}.card-open{height:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}.card .scene{aspect-ratio:auto;height:330px;padding:20px 18px 26px}.card-info{min-height:126px}.card-open .card-info{flex:1}.product-type-label{display:block;margin-top:9px;color:var(--brown);font-size:13px}.heart{top:calc(var(--scene-height,330px) + 11px);bottom:auto}

/* Horizontal products live in their own full-width block instead of the main matrix. */
.horizontal-section{margin-top:44px;padding-top:28px;border-top:1px solid var(--line)}.horizontal-section h2{font-size:clamp(30px,3vw,44px);margin:0 0 20px}.horizontal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}.horizontal-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.horizontal-grid .card .scene{height:auto;aspect-ratio:16/9;padding:18px 22px}.horizontal-grid .panel-shadow{max-width:100%;max-height:100%}.horizontal-grid .card-info{min-height:112px}

/* Universal relief renderer: one mask + the selected material, no surface gradient. */
.relief-scene{background:#ddd8d2}.relief-scene:before{background:none}.relief-scene:after{opacity:.16}.relief-panel{filter:drop-shadow(11px 16px 10px #4b40364a) drop-shadow(1px 2px 1px #332a2440)!important}.relief-surface{--relief-floor-brightness:.86;--relief-light-x:1.25px;--relief-light-y:1.3px;--relief-wall-x:-1.5px;--relief-wall-y:-1.5px;--relief-contact-x:-2.45px;--relief-contact-y:-2.55px;position:relative;overflow:hidden;border-radius:3px;isolation:isolate;mask-image:none!important;-webkit-mask-image:none!important;background-color:var(--finish,#eee9df);box-shadow:inset 1px 1px 0 #ffffff9c,inset -1px -1px 0 #00000028}.relief-surface:before{content:none}.relief-cut{display:none}.relief-surface>.relief-cut{display:block;position:absolute;z-index:2;inset:0;filter:brightness(var(--relief-floor-brightness)) saturate(.94) drop-shadow(var(--relief-wall-x) var(--relief-wall-y) .15px #3f2f27d2) drop-shadow(var(--relief-light-x) var(--relief-light-y) .12px #fffffff5) drop-shadow(var(--relief-contact-x) var(--relief-contact-y) .38px #211915d8);pointer-events:none}.relief-cut:before{content:'';position:absolute;inset:0;background-color:var(--finish,#eee9df);mask-image:var(--engraving-mask);mask-size:contain;mask-position:center;mask-repeat:no-repeat;-webkit-mask-image:var(--engraving-mask);-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat}.relief-surface[data-relief-depth="soft"]{--relief-floor-brightness:.93;--relief-light-x:.7px;--relief-light-y:.75px;--relief-wall-x:-.8px;--relief-wall-y:-.8px;--relief-contact-x:-1.3px;--relief-contact-y:-1.4px}.relief-surface[data-relief-depth="strong"]{--relief-floor-brightness:.76;--relief-light-x:1.75px;--relief-light-y:1.85px;--relief-wall-x:-2px;--relief-wall-y:-2px;--relief-contact-x:-3.6px;--relief-contact-y:-3.8px}.detail-layout .relief-cut{filter:url('#relief-recess-medium')}.detail-layout .relief-surface[data-relief-depth="soft"] .relief-cut{filter:url('#relief-recess-soft')}.detail-layout .relief-surface[data-relief-depth="strong"] .relief-cut{filter:url('#relief-recess-strong')}.detail-layout .relief-panel{filter:drop-shadow(20px 27px 14px #40372f59) drop-shadow(3px 4px 1px #2c241f40)!important}.relief-card .product-type-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase}.relief-filter-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}

/* Admin cards stay concise; categories are edited in detail view, not repeated here. */
body[data-admin="true"] .card-open{height:auto}body[data-admin="true"] .card-info{min-height:108px;padding-bottom:11px}body[data-admin="true"] .horizontal-grid .card-info{min-height:100px}body[data-admin="true"] .card-status{padding-top:2px}

/* Saved contrast preferences must never turn a relief panel into a cut-through preview. */
body[data-product-type="relief_panel"] .relief-scene{background:#ddd8d2!important}body[data-product-type="relief_panel"] .relief-surface{background-color:var(--finish,#eee9df)!important}body[data-product-type="relief_panel"] .relief-surface.wood{background-image:none!important}.detail-layout .relief-surface.wood:after{content:'';position:absolute;z-index:3;inset:0;border-radius:inherit;background:url('textures/birch-plywood-detail.svg') center/cover no-repeat;mix-blend-mode:multiply;opacity:.62;pointer-events:none;transform-origin:center}.detail-layout .relief-surface.wood[data-wood-axis="horizontal"]:after{transform:rotate(90deg) scale(var(--wood-scale-x),var(--wood-scale-y))}

@media(max-width:1180px){.horizontal-grid,.horizontal-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.card .scene{height:300px}}
@media(max-width:760px){.product-types{gap:8px;margin-bottom:12px}.product-types button{min-height:62px;padding:10px 12px;font-size:18px;line-height:1.1;flex-direction:column;align-items:flex-start}.catalog-theme-picker:not([hidden]){display:grid}.catalog-theme-picker button,.detail-theme-control .pattern-theme-picker button{min-height:44px}.card .scene,.grid.compact .card .scene{height:245px;aspect-ratio:auto;padding:13px 10px 17px}.card-info{min-height:122px}.horizontal-section{margin-top:32px;padding-top:22px}.horizontal-grid,.horizontal-grid.compact{grid-template-columns:1fr;gap:12px}.horizontal-grid .card .scene,.horizontal-grid.compact .card .scene{height:auto;aspect-ratio:16/10;padding:14px 16px}.horizontal-grid .card-info{min-height:104px}}
@media(max-width:380px){.card .scene,.grid.compact .card .scene{height:220px}.product-types button{font-size:17px}}
@media(max-width:340px){.header-actions .favorite-button{font-size:0!important;width:48px;min-width:48px;padding:0}.header-actions .favorite-button:before{content:'♡';font-size:20px}.header-actions .favorite-button #favorite-count{display:none!important}}

/* Keep native checkboxes identical across admin cards, detail and mobile layouts. */
:where(body:not(.cat-shell),.cat-main,dialog) input[type=checkbox]{box-sizing:border-box;width:22px;height:22px;min-width:22px;min-height:22px;max-width:22px;max-height:22px;flex:0 0 22px;margin:0;padding:0;border:1px solid #8f837b;border-radius:4px;font-size:16px;line-height:1;vertical-align:middle;transform:none;zoom:1;accent-color:var(--brown)}

/* Catalog cards use a calmer relief level; detail keeps its SVG-filter depth. */
.relief-card .relief-panel{filter:drop-shadow(7px 10px 9px #4b40362b) drop-shadow(1px 1px 1px #332a2426)!important}.relief-card .relief-surface{--relief-floor-brightness:.94;--relief-light-x:.55px;--relief-light-y:.6px;--relief-wall-x:-.65px;--relief-wall-y:-.65px;--relief-contact-x:-1.05px;--relief-contact-y:-1.1px;box-shadow:inset 1px 1px 0 #ffffff82,inset -1px -1px 0 #00000018}.relief-card .relief-surface>.relief-cut{filter:brightness(var(--relief-floor-brightness)) saturate(.97) drop-shadow(var(--relief-wall-x) var(--relief-wall-y) .12px #3f2f276b) drop-shadow(var(--relief-light-x) var(--relief-light-y) .1px #ffffffad) drop-shadow(var(--relief-contact-x) var(--relief-contact-y) .25px #21191573)}

/* The preview alpha describes material: transparent cut-outs become relief recesses. */
.relief-cut:before{mask-image:linear-gradient(#fff 0 0),var(--engraving-mask);mask-size:100% 100%,contain;mask-position:center,center;mask-repeat:no-repeat,no-repeat;mask-composite:exclude;-webkit-mask-image:linear-gradient(#fff 0 0),var(--engraving-mask);-webkit-mask-size:100% 100%,contain;-webkit-mask-position:center,center;-webkit-mask-repeat:no-repeat,no-repeat;-webkit-mask-composite:xor}.relief-surface.invert-relief-mask .relief-cut:before{mask-image:var(--engraving-mask);mask-size:contain;mask-position:center;mask-repeat:no-repeat;mask-composite:add;-webkit-mask-image:var(--engraving-mask);-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-composite:source-over}

/* Public previews are opaque WebP composites. Raw alpha masks remain server-side. */
.material.safe-preview,body[data-pattern-theme] .material.safe-preview{background-color:transparent!important;background-image:var(--safe-preview)!important;background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;mask-image:none!important;-webkit-mask-image:none!important;box-shadow:none}.safe-preview-shadow,.panel-shadow:has(.safe-preview){filter:none!important}.material.safe-preview:before,.material.safe-preview:after,.material.safe-preview>.relief-cut{display:none!important}

/* Public cards use prebuilt opaque scenes; SVG masks and the dynamic renderer stay in admin. */
.static-scene{padding:0!important}.static-scene:before,.static-scene:after{display:none!important}.static-preview{position:absolute;z-index:1;inset:0;width:100%;height:100%;display:block;object-fit:contain}.static-preview[hidden]{display:none!important}body[data-admin="false"] .finish-settings{display:none!important}
.mobile-grid-picker{display:none}
@media(max-width:760px){.mobile-grid-picker{display:flex;gap:3px;margin-left:auto}.mobile-grid-picker button{width:44px;min-width:44px;padding:9px;border-color:var(--line)}.mobile-grid-picker svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}.mobile-grid-picker button[aria-pressed=true]{background:var(--brown);color:#fff}body[data-mobile-columns="1"] .grid,body[data-mobile-columns="1"] .grid.compact,body[data-mobile-columns="1"] .horizontal-grid,body[data-mobile-columns="1"] .horizontal-grid.compact{grid-template-columns:minmax(0,1fr)}body[data-mobile-columns="2"] .grid,body[data-mobile-columns="2"] .grid.compact,body[data-mobile-columns="2"] .horizontal-grid,body[data-mobile-columns="2"] .horizontal-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-mobile-columns="1"] .card .scene{height:360px}body[data-mobile-columns="2"] .card-info{padding-right:50px}.card-info,.card-metric{overflow-wrap:anywhere}.horizontal-grid .card .scene{min-width:0}body[data-mobile-columns="2"] .horizontal-grid .card-number{font-size:19px}.filters{min-width:0}.mobile-grid-picker button{min-height:44px}}
.batch-dialog{max-width:1000px}.batch-dialog .form-body{gap:15px}.batch-dialog #batch-settings>label{display:grid;gap:8px}.batch-list-wrap{overflow:auto;max-height:40vh;margin:18px 0}.batch-dialog table{border-collapse:collapse;width:100%;font-size:14px}.batch-dialog th,.batch-dialog td{padding:10px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}.batch-dialog td:first-child{max-width:240px}.batch-dialog td select{max-width:260px;width:100%;font-size:13px}.batch-dialog progress{width:100%;accent-color:var(--brown)}.batch-shapes{display:flex;gap:8px;margin-bottom:14px}.batch-dialog .checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.batch-dialog .checks label{display:flex;align-items:center}.batch-dialog pre{font-size:13px}.batch-dialog .detail-top strong{font-size:24px}@media(max-width:760px){.batch-dialog{width:100%;height:100dvh;max-height:100dvh}.batch-dialog .form-body{padding:18px}.batch-dialog .checks{grid-template-columns:1fr}.batch-dialog .detail-top strong{font-size:19px}.batch-dialog td select{min-width:155px}.batch-dialog th,.batch-dialog td{padding:8px;font-size:12px}}
.preview-error{position:absolute;z-index:3;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;text-align:center;font-size:13px;background:var(--cream);color:var(--muted)}.preview-error button{font-size:13px;min-height:44px}

/* A draft relief can differ from the catalogue tab and its saved contrast. */
body[data-admin="true"] #detail-scene.relief-scene{background:#ddd8d2!important}
body[data-admin="true"] #detail-scene.relief-scene:before{opacity:1}
body[data-admin="true"] #detail-scene.relief-scene:after{opacity:.16}
body[data-admin="true"] #detail-scene.relief-scene .relief-surface{background-color:var(--finish,#eee9df)!important;background-image:none!important}
body[data-admin="true"] #detail-scene.relief-scene .relief-panel{filter:drop-shadow(20px 27px 14px #40372f59) drop-shadow(3px 4px 1px #2c241f40)!important}
body[data-admin="true"] #detail:has(#detail-scene.relief-scene) .finish-settings{display:block!important}

/* Public categories are presented as compact multi-select tags. Admin category tools stay unchanged. */
body[data-admin="false"] .catalog-layout{display:block}
.tag-filter-bar{position:relative;margin:14px 0 0;padding:12px 0;border-bottom:1px solid var(--line)}
.tag-filter-main{display:flex;align-items:center;gap:8px;min-width:0}.popular-tags-heading{display:grid;gap:1px;margin-right:5px;white-space:nowrap}.popular-tags-heading strong{font-family:Philosopher,sans-serif;font-size:19px;font-weight:400;text-transform:uppercase}.popular-tags-heading small{font-size:10px;color:var(--muted);letter-spacing:.02em}
.popular-tag-list{display:flex;flex-wrap:nowrap;gap:7px;flex:1;min-width:0;overflow:hidden;padding:2px 1px}.tag-pill,.active-tag,.tags-clear{min-height:38px;padding:7px 13px;font-size:13px;white-space:nowrap}.tag-pill small{font-size:10px;opacity:.68;margin-left:2px}.tag-pill[aria-pressed=true],.active-tag{background:var(--brown);color:#fff}.tag-pill[aria-pressed=true] small{opacity:.82}
#all-tags-toggle{min-height:40px;padding:8px 16px;white-space:nowrap}
.active-tags{display:flex;align-items:center;gap:7px;min-height:0;margin-top:0;overflow-x:auto;scrollbar-width:thin}.active-tags:not(:empty){margin-top:10px;padding-bottom:3px}.active-tags-label{font-size:13px;color:var(--muted);white-space:nowrap}.tags-clear{border-color:transparent;text-decoration:underline;text-underline-offset:3px}
body[data-admin="false"] .category-panel{display:none;position:absolute;z-index:32;right:0;top:calc(100% + 8px);width:min(560px,calc(100vw - 40px));max-height:min(68dvh,650px);padding:20px;background:var(--cream);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 55px #2620202b}
body[data-admin="false"].categories-open .category-panel{display:flex;flex-direction:column}
body[data-admin="false"] .category-panel-head{flex:0 0 auto;margin-bottom:10px}body[data-admin="false"] .category-panel-head button{display:inline-flex;min-height:42px;padding:6px 12px}
body[data-admin="false"] .category-list{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:7px 10px;min-height:0;max-height:none;overflow:auto;padding:2px 6px 10px 1px}
.tag-choice{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:start;height:max-content;min-height:58px;padding:10px;border-radius:12px;cursor:pointer;line-height:1.35}.tag-choice input{margin-top:2px}.tag-choice>span:not(.count){min-width:0;overflow-wrap:anywhere}.tag-choice:hover{background:#eee7df}.tag-choice .count{align-self:start;padding-top:2px;font-size:12px;color:var(--muted);white-space:nowrap}
.tag-panel-footer{display:flex;gap:8px;flex:0 0 auto;padding-top:12px;border-top:1px solid var(--line)}.tag-panel-footer button{flex:1;min-height:46px;padding:9px 13px;font-size:13px}
body[data-admin="false"] .category-scrim{display:block;position:fixed;z-index:30;inset:0;background:#2620204d}
#empty{padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:16px}#empty button{min-height:40px;margin-left:8px;padding:7px 13px}

@media(max-width:760px){
 .tag-filter-bar{margin-top:5px;padding:8px 0}.tag-filter-main{display:none}.active-tags:not(:empty){margin-top:0;padding:2px 0 5px}
 body[data-admin="false"] .category-panel{display:flex;position:fixed;z-index:31;left:0;right:auto;top:0;bottom:0;width:min(90vw,390px);max-height:none;padding:18px 16px 0;border:0;border-radius:0;visibility:hidden;pointer-events:none;transform:translateX(-105%);transition:transform .22s ease,visibility 0s linear .22s;box-shadow:10px 0 40px #26202033}
 body[data-admin="false"].categories-open .category-panel{visibility:visible;pointer-events:auto;transform:translateX(0);transition-delay:0s}
 body[data-admin="false"] .category-list{grid-template-columns:1fr;flex:1;overscroll-behavior:contain;padding-right:4px}.tag-choice{min-height:50px;font-size:15px}
 .tag-panel-footer{position:sticky;bottom:0;margin:0 -16px;padding:11px 16px max(11px,env(safe-area-inset-bottom));background:var(--cream);box-shadow:0 -10px 22px #f7f5f1}.tag-panel-footer button{font-size:12px;padding-inline:9px}
 #empty{display:grid;gap:10px}#empty button{margin-left:0;width:max-content}
}


/* ===== Витрина в оболочке сайта (body.cat-shell) =====
   Шапка и подвал приходят из сборки сайта (config/shell.php), стили сайта лежат в слое `site`,
   поэтому всё ниже и весь остальной файл сильнее них. Здесь только переменные и оформление под сайт. */
html:has(body.cat-shell){background:#fff}
/* Высота fixed-шапки сайта (замер: 103 / ≤991 — 83 / ≤650 — 73); main отступает на неё. */
body.cat-shell{--cat-head:103px}@media(max-width:991px){body.cat-shell{--cat-head:83px}}@media(max-width:650px){body.cat-shell{--cat-head:73px}}
body.cat-shell{--ink:#262020;--brown:#352727;--brown-2:#604438;--accent:#c68c74;--cream:#fff;--paper:#fff;--line:#e3dfda;--muted:#6e6d6d;--panel:#f1f0ed;display:block;height:auto;min-height:100vh;background:#fff;color:var(--ink);font-family:Montserrat,sans-serif;font-size:16px;line-height:1.4;overflow-x:hidden}
/* Шапка сайта fixed, как на сайте; main уходит под неё отступом --cat-head. */
body.cat-shell .cat-main{max-width:1440px;padding:var(--cat-head,102px) 60px 60px;margin:0 auto;font-size:16px;line-height:1.4;color:var(--ink)}
body.cat-shell dialog{font-size:16px;line-height:1.4}
body.cat-shell .intro{padding:56px 0 40px}
/* Заголовки — как `.title h1/h2` темы: Philosopher, капс, ступени 65/45/34 и 56/35/28. */
body.cat-shell h1{font-size:65px;line-height:1;max-width:900px}
body.cat-shell h2{font-size:56px;line-height:1.2}
@media(max-width:1300px){body.cat-shell h1{font-size:45px}body.cat-shell h2{font-size:35px}}
@media(max-width:550px){body.cat-shell h1{font-size:34px}body.cat-shell h2{font-size:28px}}
body.cat-shell .material{padding:0;position:static;overflow:visible}
body.cat-shell .subtitle{font-size:clamp(15px,1.4vw,18px);color:var(--muted)}
body.cat-shell .collection-label strong{font-size:clamp(34px,3.6vw,52px)}
body.cat-shell .cat-main button,body.cat-shell dialog button,body.cat-shell .button{border-radius:16px;border-color:var(--brown);min-height:48px}
body.cat-shell .cat-main input,body.cat-shell .cat-main select,body.cat-shell dialog select{border-radius:16px;border-color:#d4cfc9}
body.cat-shell .heart{border-radius:50%;min-height:46px}
body.cat-shell .primary,body.cat-shell .tryon-button,body.cat-shell .tryon-link{background:var(--brown);color:#fff;font-weight:700;border-color:var(--brown)}
body.cat-shell .primary:hover,body.cat-shell .tryon-button:hover,body.cat-shell .tryon-link:hover{background:var(--brown-2);border-color:var(--brown-2)}
body.cat-shell .filters{top:var(--cat-head);background:#fffffff2;border-color:var(--line)}
body.cat-shell .tag-filter-bar{border-color:var(--line)}
body.cat-shell .pattern-theme-picker{border-radius:18px;background:#fff}
body.cat-shell .pattern-theme-picker button{border-radius:14px;min-height:44px}
body.cat-shell .pattern-theme-picker button[aria-pressed=true],body.cat-shell .pattern-theme-picker button.active{background:var(--brown)!important;color:#fff!important}
body.cat-shell .product-types button{border-radius:16px;background:#fff}
body.cat-shell .product-types button:hover,body.cat-shell .product-types button[aria-pressed=true]{background:var(--brown);color:#fff}
body.cat-shell .tag-pill,body.cat-shell .active-tag,body.cat-shell .tags-clear{min-height:44px}
body.cat-shell #all-tags-toggle{min-height:44px}
body.cat-shell .card{border-radius:16px;background:#fff;display:flex;flex-direction:column}
body.cat-shell .card-open{flex:1}
body.cat-shell .card-number{padding-right:50px}
body.cat-shell .tryon-link{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0 12px 12px;padding:8px 12px;border:1px solid var(--brown);border-radius:16px;text-decoration:none;font-size:14px}
body.cat-shell .tryon-button{display:inline-flex;width:100%;margin:6px 0 14px;text-decoration:none}
body.cat-shell .category-panel,body.cat-shell #empty{border-radius:16px}
body.cat-shell .filters .favorite-button{white-space:nowrap}
body.cat-shell dialog{background:#fff;border-radius:16px}
@media(max-width:900px){body.cat-shell .cat-main{padding:var(--cat-head,102px) 20px 44px}body.cat-shell .intro{padding:36px 0 26px}}
@media(max-width:650px){body.cat-shell .cat-main{padding:var(--cat-head,102px) 13px 36px}body.cat-shell .intro{padding:28px 0 20px}body.cat-shell .filters .favorite-button{flex:1}body.cat-shell .tryon-link{margin:0 8px 10px;font-size:13px}}
@media(max-width:760px){body.cat-shell dialog{border-radius:0}}
@media(max-width:760px){body.cat-shell .filters .favorite-button{order:1;flex:1}body.cat-shell .filters .mobile-categories{order:1;flex:1}body.cat-shell .filters .mobile-grid-picker{order:5;margin-left:0}body.cat-shell .filters #refresh{order:5;flex:0 0 48px}body.cat-shell .catalog-theme-picker{flex:1 1 100%}}
@media(max-width:760px){body.cat-shell .filters{position:static;backdrop-filter:none}}

/* Ссылка «Примерить» без оболочки сайта (запасной режим): та же кнопка в цветах каталога. */
.tryon-link,.tryon-button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--brown);border-radius:14px;background:var(--brown);color:#fff;font-size:14px;font-weight:700;text-decoration:none}.tryon-link{margin:0 12px 12px}.tryon-link:hover,.tryon-button:hover{background:var(--brown-2)}
.tryon-link[hidden],.tryon-button[hidden]{display:none!important}
/* SSR-карточки первой выдачи: до прихода JS выглядят как обычные; JS заменяет их при первой отрисовке. */
a.card-open{color:inherit;text-decoration:none}.ssr-card .card-open{display:flex}
.cat-landings{margin:40px 0 0}.cat-landings h2{margin:0 0 14px;font-size:22px}.cat-landings ul{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}.cat-landings a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid #c68c74;border-radius:16px;color:#352727;text-decoration:none}.cat-landings a:hover{background:#c68c74;color:#fff}
.scene picture{display:contents}
#detail-scene{position:relative;isolation:isolate}#detail-scene::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--edge-l,none) left/50% 100% no-repeat,var(--edge-r,none) right/50% 100% no-repeat}#detail-scene #detail-static-preview{position:relative}#detail-scene.static-scene::before{display:block!important}

/* S7 (29.10): кнопки окна узора — цель касания не уже 44 px (были 34–42 × 48) */
@media(max-width:760px){.detail-top button{min-width:44px;min-height:44px}.detail-top>div{gap:4px}}
@media(max-width:340px){.detail-top{padding-left:10px}.detail-top strong{font-size:19px}}
@media(max-width:760px){body.cat-shell .card-metric,body.cat-shell .tryon-link,body.cat-shell .card-categories{font-size:14px}}
@media(min-width:901px){.detail-layout .static-preview[style*="--ar"]{inset:0;margin:auto;width:auto;max-width:100%;aspect-ratio:var(--ar)}body[data-pattern-theme="room"] .detail-layout .static-preview[style*="--ar"]:not([data-relief="true"]){-webkit-mask-image:linear-gradient(to right,transparent,#000 7%,#000 91.5%,transparent 98.6%);mask-image:linear-gradient(to right,transparent,#000 7%,#000 91.5%,transparent 98.6%)}body[data-pattern-theme="room"] .detail-layout .static-preview[style*="--ar"][data-relief="true"]{-webkit-mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent)}}
#detail-scene{touch-action:pan-y pinch-zoom}  /* свайп листает, щипок увеличивает узор */
