
/* ArterShop Desktop v5 — clean visual shell. Desktop only; PDA templates are untouched. */
:root{
  --as-d5-bg:#0b1711;
  --as-d5-bg-soft:#102219;
  --as-d5-panel:rgba(19,48,35,.58);
  --as-d5-panel-strong:rgba(17,43,31,.82);
  --as-d5-glass:rgba(25,62,45,.48);
  --as-d5-text:#f2f7f3;
  --as-d5-muted:#aabbb0;
  --as-d5-line:rgba(224,246,230,.16);
  --as-d5-line-strong:rgba(224,246,230,.24);
  --as-d5-accent:#72d69a;
  --as-d5-accent-strong:#2f9d61;
  --as-d5-shadow:0 18px 48px rgba(0,0,0,.20);
  --as-d5-header-bg:rgba(12,37,26,.57);
  color-scheme:dark;
}
html[data-as-d5-theme="light"]{
  --as-d5-bg:#edf3ee;
  --as-d5-bg-soft:#e4ede6;
  --as-d5-panel:rgba(255,255,255,.54);
  --as-d5-panel-strong:rgba(255,255,255,.82);
  --as-d5-glass:rgba(255,255,255,.48);
  --as-d5-text:#17261d;
  --as-d5-muted:#68796e;
  --as-d5-line:rgba(26,61,39,.14);
  --as-d5-line-strong:rgba(26,61,39,.22);
  --as-d5-accent:#23864d;
  --as-d5-accent-strong:#16703e;
  --as-d5-shadow:0 18px 48px rgba(31,62,42,.10);
  --as-d5-header-bg:rgba(248,252,249,.63);
  color-scheme:light;
}
html[data-as-d5-theme="dark"]{
  color-scheme:dark;
}
*{box-sizing:border-box}
html{min-width:320px;scroll-behavior:smooth}
body.as-d5-page{
  min-width:320px;
  margin:0;
  color:var(--as-d5-text);
  background:
    radial-gradient(ellipse at 12% 0%,rgba(49,116,75,.18),transparent 36%),
    radial-gradient(ellipse at 88% 12%,rgba(70,128,92,.10),transparent 34%),
    linear-gradient(155deg,var(--as-d5-bg-soft) 0%,var(--as-d5-bg) 58%,var(--as-d5-bg) 100%);
  font-family:Inter,Arial,sans-serif;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.as-d5-page a{color:inherit}
body.as-d5-page button,
body.as-d5-page input{font:inherit}
.as-d5-container{
  width:min(1880px,calc(100% - 48px));
  margin-inline:auto;
}
.as-d5-header{
  position:fixed;
  z-index:1000;
  top:16px;
  left:0;
  right:0;
  width:min(1880px,calc(100% - 48px));
  min-height:82px;
  margin-inline:auto;
  padding:10px 20px;
  display:grid;
  grid-template-columns:154px minmax(260px,1fr) auto;
  align-items:center;
  gap:24px;
  border:1px solid var(--as-d5-line-strong);
  border-radius:22px;
  background:var(--as-d5-header-bg);
  box-shadow:var(--as-d5-shadow),inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(28px) saturate(165%);
  backdrop-filter:blur(28px) saturate(165%);
  isolation:isolate;
}
.as-d5-brand{
  width:154px;
  min-width:0;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  color:var(--as-d5-text);
  text-decoration:none;
}
.as-d5-brand svg{
  display:block;
  width:100%;
  max-width:148px;
  max-height:58px;
  height:auto;
  overflow:visible;
  fill:currentColor;
}
.as-d5-search{
  width:100%;
  min-width:0;
  max-width:900px;
  height:50px;
  margin-inline:auto;
  display:flex;
  align-items:center;
  overflow:hidden;
  border:1px solid var(--as-d5-line-strong);
  border-radius:15px;
  background:var(--as-d5-glass);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.as-d5-search:focus-within{
  border-color:var(--as-d5-accent);
  background:var(--as-d5-panel-strong);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--as-d5-accent) 17%,transparent);
}
.as-d5-search input{
  flex:1 1 auto;
  width:100%;
  min-width:0;
  height:100%;
  padding:0 17px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--as-d5-text);
  font-size:14px;
}
.as-d5-search input::placeholder{color:var(--as-d5-muted);opacity:.88}
.as-d5-search button{
  flex:0 0 48px;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  background:transparent;
  color:var(--as-d5-accent);
  cursor:pointer;
}
.as-d5-search button:hover{color:var(--as-d5-text)}
.as-d5-search button svg{
  width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round
}
.as-d5-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  min-width:0;
}
.as-d5-action{
  position:relative;
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 14px;
  border:1px solid var(--as-d5-line);
  border-radius:14px;
  background:var(--as-d5-panel);
  color:var(--as-d5-text);
  text-decoration:none;
  white-space:nowrap;
  font-size:13px;
  font-weight:650;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.as-d5-action:hover{
  border-color:var(--as-d5-line-strong);
  background:var(--as-d5-panel-strong);
  transform:translateY(-1px);
}
.as-d5-action svg{
  display:block;
  width:19px;
  height:19px;
  flex:0 0 19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.as-d5-action--cart{
  border-color:transparent;
  background:var(--as-d5-accent-strong);
  color:#fff;
}
.as-d5-action--cart:hover{background:var(--as-d5-accent);color:#0a2616}
.as-d5-action--profile{max-width:150px}
.as-d5-action--profile span{
  display:block;
  max-width:94px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.as-d5-cart-count{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:18px;
  height:18px;
  display:flex!important;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  border:2px solid var(--as-d5-bg);
  border-radius:20px;
  background:#e65a72;
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.as-d5-cart-count[hidden]{display:none!important}
.as-d5-home-stage{
  min-height:calc(100vh - 156px);
  padding-top:126px;
  padding-bottom:40px;
}
.as-d5-home-stage__inner{
  min-height:calc(100vh - 210px);
  border-radius:26px;
  background:
    radial-gradient(ellipse at 80% 10%,rgba(90,165,113,.08),transparent 36%),
    linear-gradient(145deg,rgba(255,255,255,.018),rgba(255,255,255,0));
}
.as-d5-footer{
  position:relative;
  z-index:1;
  margin-top:28px;
  padding:34px 0 18px;
  border-top:1px solid var(--as-d5-line);
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.06));
}
.as-d5-footer__grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.1fr;
  gap:34px;
  padding-bottom:26px;
}
.as-d5-footer__brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  color:var(--as-d5-text);
  font-size:22px;
  font-weight:780;
  letter-spacing:-.04em;
}
.as-d5-footer__brand svg{width:90px;height:auto;fill:currentColor}
.as-d5-footer__text{
  max-width:330px;
  margin:0;
  color:var(--as-d5-muted);
  font-size:13px;
  line-height:1.65;
}
.as-d5-footer h3{
  margin:0 0 13px;
  color:var(--as-d5-text);
  font-size:13px;
  font-weight:750;
}
.as-d5-footer ul{
  display:grid;
  gap:9px;
  margin:0;
  padding:0;
  list-style:none;
}
.as-d5-footer li{margin:0;padding:0;list-style:none}
.as-d5-footer a{
  color:var(--as-d5-muted);
  font-size:13px;
  text-decoration:none;
  transition:color .15s ease;
}
.as-d5-footer a:hover{color:var(--as-d5-accent)}
.as-d5-footer__contact{display:grid;gap:9px}
.as-d5-footer__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-top:16px;
  border-top:1px solid var(--as-d5-line);
  color:var(--as-d5-muted);
  font-size:11px;
}
.as-d5-footer__bottom a{font-size:11px}
.as-d5-settings-toggle{
  position:fixed;
  z-index:1100;
  left:18px;
  bottom:18px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--as-d5-line-strong);
  border-radius:50%;
  background:var(--as-d5-panel-strong);
  color:var(--as-d5-text);
  box-shadow:var(--as-d5-shadow);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  cursor:pointer;
}
.as-d5-settings-toggle:hover{border-color:var(--as-d5-accent);color:var(--as-d5-accent)}
.as-d5-settings-toggle svg{
  width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round
}
.as-d5-settings-panel{
  position:fixed;
  z-index:1099;
  left:18px;
  bottom:70px;
  width:230px;
  padding:15px;
  border:1px solid var(--as-d5-line-strong);
  border-radius:16px;
  background:var(--as-d5-panel-strong);
  color:var(--as-d5-text);
  box-shadow:var(--as-d5-shadow);
  -webkit-backdrop-filter:blur(24px) saturate(150%);
  backdrop-filter:blur(24px) saturate(150%);
}
.as-d5-settings-panel[hidden]{display:none!important}
.as-d5-settings-panel h3{margin:0 0 12px;font-size:13px;font-weight:750}
.as-d5-settings-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.as-d5-settings-modes button{
  min-height:34px;
  padding:5px 4px;
  border:1px solid var(--as-d5-line);
  border-radius:9px;
  background:var(--as-d5-panel);
  color:var(--as-d5-muted);
  font-size:11px;
  font-weight:650;
  cursor:pointer;
}
.as-d5-settings-modes button[aria-pressed="true"]{
  border-color:var(--as-d5-accent);
  background:color-mix(in srgb,var(--as-d5-accent) 18%,var(--as-d5-panel));
  color:var(--as-d5-text);
}
.as-d5-header a:focus-visible,
.as-d5-header button:focus-visible,
.as-d5-settings-toggle:focus-visible,
.as-d5-settings-panel button:focus-visible{
  outline:2px solid var(--as-d5-accent);
  outline-offset:3px;
}
@media(max-width:1250px){
  .as-d5-header{grid-template-columns:130px minmax(220px,1fr) auto;gap:14px;padding-inline:16px}
  .as-d5-brand{width:130px}
  .as-d5-brand svg{max-width:126px}
  .as-d5-action{padding-inline:10px;gap:7px}
  .as-d5-action span{font-size:12px}
}
@media(max-width:980px){
  .as-d5-header{
    grid-template-columns:110px minmax(0,1fr);
    gap:10px;
    min-height:74px;
    padding:9px 13px;
  }
  .as-d5-brand{width:110px;height:50px}
  .as-d5-brand svg{max-width:106px;max-height:50px}
  .as-d5-search{height:46px}
  .as-d5-actions{grid-column:1/-1;justify-content:flex-end}
  .as-d5-action{min-height:40px}
  .as-d5-home-stage{padding-top:144px}
}
@media(max-width:620px){
  .as-d5-container{width:calc(100% - 24px)}
  .as-d5-header{top:8px;width:calc(100% - 16px);border-radius:16px}
  .as-d5-actions{gap:5px}
  .as-d5-action{min-height:36px;padding:0 9px;border-radius:10px}
  .as-d5-action span{display:none}
  .as-d5-action--profile{max-width:40px}
  .as-d5-action--profile span{display:none}
  .as-d5-search input{font-size:12px;padding-inline:10px}
  .as-d5-search button{flex-basis:40px;width:40px;height:44px}
  .as-d5-home-stage{padding-top:132px}
  .as-d5-footer__grid{grid-template-columns:1fr 1fr;gap:22px}
  .as-d5-footer__bottom{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .as-d5-header *,
  .as-d5-footer *,
  .as-d5-settings-panel *,
  .as-d5-settings-toggle{transition:none!important}
}
