:root{--surface:#fbfbfa;--edge:#d4d8d6;--accent:#48635e}
html[data-theme="dark"]{--surface:#181a19;--edge:#373c39;--accent:#a8c4b9}
.section-heading h2,.info h2{font-size:clamp(27px,4vw,46px);letter-spacing:-.055em}
.section-heading .label,.section-heading>span,.category .index{display:none}
.section-heading{border-bottom:1px solid var(--edge);padding-bottom:14px}
.category,.demo-product .product-image{border:1px solid var(--edge);border-radius:14px}
.category small,.search-note{color:var(--accent)}
.demo-product .product-image{background:var(--surface)}
.demo-product h3{font-size:15px;font-weight:800}
.demo-product:focus-visible,.nav a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.products{row-gap:26px}
@media(max-width:760px){
  body:not(.catalog-page) #products .products{align-items:start}
}
@media(max-width:760px){.header .nav{display:flex;order:3;width:100%;justify-content:space-between;gap:8px}.header{height:auto;min-height:60px;flex-wrap:wrap;row-gap:4px;padding-block:8px}}

.demo-dialog:has(.admin-tabs){background:#fff!important;color:#172033!important;max-width:720px;max-height:90vh;overflow:auto;animation:none!important}
.demo-dialog:has(.admin-tabs) [hidden]{display:none!important}
.demo-dialog .admin-tabs button{border:1px solid #cbd5e1;border-radius:7px;background:#f1f5f9;color:#172033}
.demo-dialog .admin-tabs button[aria-pressed="true"]{background:#172033;color:#fff}
.demo-dialog:has(.admin-tabs) :is(input,select,textarea){background:#fff;color:#172033;border:1px solid #94a3b8;border-radius:6px}
.catalog-category-photo{display:block;width:48px;height:48px;object-fit:cover;border-radius:6px;margin-bottom:6px}
@media(min-width:761px){
  .catalog-page .catalog-filter{position:relative}
  .catalog-page .catalog-filter[open]{z-index:3}
  .catalog-page .catalog-filter[open] .filter-links{
    position:absolute;top:100%;left:0;right:0;background:var(--surface);
    border:1px solid var(--edge);border-radius:10px;padding:14px;
  }
}
.catalog-filter summary:focus-visible,.filter-links a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.demo-dialog [data-drop]{border:1px dashed #888;border-radius:6px;padding:12px}
/* A quiet workspace for the store owner. */
html.semlys-editor-view, html.semlys-editor-view body {
  background: #fff !important;
  color: #202020 !important;
  color-scheme: light;
  scroll-behavior: auto !important;
}
.semlys-editor-view *, .semlys-editor-view *::before, .semlys-editor-view *::after {
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
}
.semlys-editor-view :is(.rings,.drop,.hero-orbits,.hero-image,.hero-meta,.support,.label) {
  display: none !important;
}
.semlys-editor-view :is(.hero,.hero-copy,.header,.notice,.section,.category,.catalog-filter,.filter-links,.product-image,.info,.location,.demo-dialog) {
  background: #fff !important;
  color: #202020 !important;
  border-color: #ddd !important;
  transform: none !important;
}
.semlys-editor-view :is(.hero,.category,.product-image)::before,
.semlys-editor-view :is(.hero,.category,.product-image)::after {
  display: none;
}
.semlys-editor-view :is(.hero,.hero-copy) { min-height: 0; }
.semlys-editor-view .hero-copy { padding: 20px 0; }
.semlys-editor-view .hero h1 { font: 700 30px system-ui,sans-serif; color: inherit; background: none; }
.semlys-editor-view :is(button,input,select,textarea,.pill) {
  background: #fff !important;
  color: #202020 !important;
  border: 1px solid #aaa !important;
}
.semlys-editor-view :is(a,p,small,.search-note) { color: inherit !important; }
.semlys-editor-view :focus-visible { outline: 2px solid #222; outline-offset: 3px; }
.semlys-editor-view .admin-tabs button[aria-pressed="true"] { background: #222 !important; color: #fff !important; }
.semlys-editor-view .demo-dialog::backdrop { background: #0003; backdrop-filter: none; }
.semlys-editor-view .demo-dialog[open] { max-height: 90dvh; overflow: auto; }
html.semlys-editor-view :is(.hero h1,.wordmark) {
  font: 700 24px/1.2 system-ui,sans-serif !important;
  color: #202020 !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
html.semlys-editor-view :is(.hero h1,.hero-copy,.wordmark)::before,
html.semlys-editor-view :is(.hero h1,.hero-copy,.wordmark)::after { display: none !important; }
html.semlys-editor-view :is(.visual-toolbar,.search-wrap,.info-copy,.category-details,.visual-editable,.visual-upload) {
  background: #fff !important;
  color: #202020 !important;
  border-color: #ccc !important;
}
html.semlys-editor-view :is(.card-transition,.demo-product,.catalog-filter,.arrow,.visual-editable) {
  transform: none !important;
  rotate: none !important;
  filter: none !important;
}
html.semlys-editor-view :is(.theme-toggle#theme-toggle,.age-tag) { display: none !important; }
.telegram-owner-controls{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:760px){.header:has(.telegram-owner-controls){height:auto;flex-wrap:wrap}.telegram-owner-controls{width:100%;padding-bottom:5px}}
html:not(.semlys-owner) .catalog-owner-action{display:none!important}.products > div > .demo-product{width:100%}.products .catalog-owner-action{margin-top:8px}
.order-form,.order-form label{display:grid;gap:8px}.order-form input,.order-form textarea{width:100%;max-width:100%;font:inherit;padding:8px}.order-form button{justify-self:start}
/* Checkout */
#cart-title{margin:0;font-size:clamp(24px,5vw,32px);letter-spacing:-.035em}
.demo-dialog:has(#cart-title){max-width:520px;max-height:calc(100dvh - 32px);overflow:auto}
.demo-dialog:has(#cart-title) .demo-dialog-inner{padding:clamp(16px,5vw,30px)}
.demo-dialog:has(#cart-title) .cart-list{display:grid;gap:0;margin:16px 0;padding:0;list-style:none}
.demo-dialog:has(#cart-title) .cart-list li{padding:10px 0;border-bottom:1px solid var(--edge)}
.demo-dialog:has(#cart-title) .cart-list li span{flex:1 1 130px;font-weight:650}
.demo-dialog:has(#cart-title) .cart-list button{min-height:36px}
.order-form{gap:14px;padding:16px;border:1px solid var(--edge);border-radius:14px;background:var(--surface)}
.order-form label{gap:6px;font-size:14px;font-weight:650}
.order-form input,.order-form textarea{box-sizing:border-box;min-height:44px;border:1px solid var(--edge);border-radius:8px;background:transparent;color:inherit;padding:10px 12px}
.order-form textarea{resize:vertical}
.order-form input:focus-visible,.order-form textarea:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.order-form p{margin:0}
.order-form [data-order-total]{font-size:21px;font-weight:800;color:inherit}
.order-form button[type=submit]{width:100%;min-height:46px;border:1px solid transparent;border-radius:9px;background:#242424;color:#fff;font-size:14px;font-weight:750;cursor:pointer}
html[data-theme=dark] .order-form button[type=submit]{background:#f4f4f0;color:#171717}
.order-form button:disabled{opacity:.6;cursor:wait}
[data-order-status]:empty{display:none}

/* Sculpted monochrome checkout surfaces. */
.demo-dialog:has(#cart-title){
  --cart-panel:#eeedea;--cart-raised:#fff;--cart-recess:#e7e6e2;
  --cart-edge:#c9c8c3;--cart-ink:#202020;--cart-shadow:#0002;--cart-glint:#fffc;
  background:linear-gradient(145deg,var(--cart-raised),var(--cart-panel) 65%);
  color:var(--cart-ink);border:1px solid var(--cart-edge);border-radius:24px;
  box-shadow:0 26px 70px #0006,inset 0 1px 0 var(--cart-glint);
}
html[data-theme=dark] .demo-dialog:has(#cart-title){
  --cart-panel:#191919;--cart-raised:#303030;--cart-recess:#151515;
  --cart-edge:#454545;--cart-ink:#f4f3ef;--cart-shadow:#0008;--cart-glint:#fff2;
}
.demo-dialog:has(#cart-title)::backdrop{background:#090909a8;backdrop-filter:blur(7px)}
#cart-title{text-shadow:0 1px var(--cart-glint),0 3px 8px var(--cart-shadow)}
.demo-dialog:has(#cart-title) .cart-list{gap:8px}
.demo-dialog:has(#cart-title) .cart-list li{
  padding:10px 12px;border:1px solid var(--cart-edge);border-radius:12px;
  background:linear-gradient(155deg,var(--cart-raised),var(--cart-panel));
  box-shadow:0 3px 8px var(--cart-shadow),inset 0 1px var(--cart-glint);
}
.demo-dialog:has(#cart-title) :is(.cart-list button,.demo-close){
  background:var(--cart-panel);color:var(--cart-ink);border-color:var(--cart-edge);
}
.order-form{
  background:var(--cart-panel);border-color:var(--cart-edge);
  box-shadow:inset 0 1px var(--cart-glint),0 6px 18px var(--cart-shadow);
}
.order-form input,.order-form textarea{
  background:var(--cart-recess);border-color:var(--cart-edge);
  box-shadow:inset 0 2px 4px var(--cart-shadow);
}
.order-form button[type=submit]{
  background:linear-gradient(#464646,#202020);border-color:#1b1b1b;color:#fff;
  box-shadow:0 4px 0 #101010,0 7px 12px var(--cart-shadow),inset 0 1px 0 #fff4;
  margin-bottom:4px;transition:transform .16s ease,box-shadow .16s ease;
}
html[data-theme=dark] .order-form button[type=submit]{
  background:linear-gradient(#fff,#d8d8d5);border-color:#e4e4e0;color:#171717;
  box-shadow:0 4px 0 #777,0 7px 12px var(--cart-shadow),inset 0 1px 0 #fff;
}
.order-form button[type=submit]:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--cart-shadow)}
@media(prefers-reduced-motion:reduce){.order-form button[type=submit]{transition:none}.order-form button[type=submit]:active:not(:disabled){transform:none}}
html:not(.semlys-editor-view) .catalog-owner-action {display:none!important}
.owner-card-actions{display:flex;flex-wrap:wrap;gap:5px}
dialog.owner-inline-editor[open]{
  position:static;width:100%;max-width:none;max-height:none;margin:10px 0;
  border:1px solid #ccc;border-radius:8px;overflow:visible;
}
.owner-inline-editor :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.owner-inline-editor [data-news-photo]{max-width:100%;height:auto}
html.semlys-editor-view .catalog-page .catalog-filter[open] .filter-links{
  position:static;
  inset:auto;
}
.demo-product .product-image.has-product-photo{overflow:hidden;border:none;background:none}
.demo-product .product-image.has-product-photo::before{display:none}
.demo-product .product-image .product-photo{display:block;width:100%;height:100%;object-fit:cover}
