body.preview-index header.navbar.demo-store-nav {
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: clamp(12px,2vw,26px);
  min-height: 61px;
  padding: 8px max(20px,calc((100vw - 1180px) / 2));
  background: #0d0c1a;
}
html:has(body.preview-index .demo-store-nav) { scroll-padding-top: 93px; }
body.preview-index .demo-store-nav .brand-logo { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 10px; }
body.preview-index .demo-store-nav .brand-name { font-size: .91rem; white-space: nowrap; letter-spacing: .045em; }
body.preview-index .demo-store-nav > .demo-store-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
  font-size: .85rem;
}
body.preview-index .demo-store-tabs > a,
body.preview-index .demo-store-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 39px;
  padding: 6px clamp(6px,1vw,12px);
  color: var(--soft);
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.demo-store-more > summary::-webkit-details-marker { display: none; }
.demo-tab-icon { display: none; }
.demo-tab-chevron { display: inline-flex; }
body.preview-index .demo-customer-nav > .demo-store-tabs { display: none; }
body.preview-index .demo-store-tabs > a:hover,
body.preview-index .demo-store-more > summary:hover { background: #211a36; color: var(--text); }
body.preview-index .demo-store-tabs > a[aria-current],
body.preview-index .demo-store-more[open] > summary,
body.preview-index .demo-store-more > summary.is-current {
  background: #2c2048;
  border-color: #4c366d;
  color: #f2e8ff;
}
.demo-store-more { position: relative; }
.demo-store-more-links {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 3;
  width: 184px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid #4c3a63;
  border-radius: 12px;
  background: #191427;
  box-shadow: 0 14px 35px #080611bb;
}
.demo-store-more-links a { display: block; padding: 8px 10px; border-radius: 7px; text-decoration: none; }
.demo-store-more-links a:hover { background: #312449; }
body.preview-index .demo-store-nav > .sw-header-actions { gap: 7px; }
.demo-store-currency {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding-inline: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--soft);
  background: var(--surface2);
  font-size: .74rem;
  font-weight: 750;
}
body.preview-index .demo-store-nav :is(.preview-notice-toggle,.cart-button,.demo-store-account) { min-height: 38px; border-radius: 9px; }
body.preview-index .demo-store-nav .preview-notice-toggle { width: 38px; height: 38px; }
body.preview-index .demo-store-nav .cart-button { padding: 5px 8px; }
body.preview-index .demo-store-nav .cart-count { background: #4e3478; color: #f3e8ff; }
body.preview-index .demo-store-nav :is(a,button,summary):focus-visible { outline-color: #cdb0f4; }
body.preview-index .demo-store-nav .demo-store-account { padding: 5px 10px; color: #f6eeff; background: #4a306d; border-color: #61418d; }
body.preview-index .demo-store-nav .demo-store-account:hover { background: #593b80; }
.demo-store-account #demo-store-account-label { max-width: 125px; overflow: hidden; text-overflow: ellipsis; }
body.preview-index .demo-store-nav .preview-notice-dot {
  display: grid;
  place-items: center;
  width: auto;
  min-width: 15px;
  height: 15px;
  top: -5px;
  right: -5px;
  border: 1px solid #1b122e;
  padding-inline: 2px;
  color: #160e24;
  font-size: .58rem;
  font-weight: 850;
}
body.preview-index .demo-store-nav .preview-notice-dot[hidden] { display: none; }
@media(max-width: 930px) {
  body.preview-index header.navbar.demo-store-nav {
    grid-template-columns: minmax(0,1fr) auto;
    row-gap: 4px;
    column-gap: 8px;
    padding: 7px 16px;
  }
  body.preview-index .demo-store-nav > .demo-store-tabs { grid-column: 1/-1; justify-content: flex-start; }
  .demo-store-more-links { right: 0; left: auto; }
  html:has(body.preview-index .demo-store-nav) { scroll-padding-top: 123px; }
}
@media(max-width: 720px) {
  html:has(body.preview-index .demo-store-nav) {
    --demo-mobile-nav-height: calc(64px + env(safe-area-inset-bottom,0px));
    scroll-padding-top: 93px;
    scroll-padding-bottom: var(--demo-mobile-nav-height);
  }
  body.preview-index:has(.demo-store-nav) { padding-bottom: var(--demo-mobile-nav-height); }
  body.preview-index header.navbar.demo-store-nav {
    row-gap: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.preview-index.cosmic-ui > header.customer-header.demo-customer-nav {
    grid-template-columns: minmax(0,1fr) auto;
    width: 100%;
    min-height: 58px;
    gap: 9px;
    padding: 7px 12px;
    background: #0d0c1a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.preview-index .demo-customer-nav > .demo-customer-desktop-nav { display: none; }
  body.preview-index .demo-customer-nav > .brand { gap: 8px; }
  body.preview-index .demo-customer-nav > .brand img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
  }
  body.preview-index .demo-customer-nav > .brand .brand-name { font-size: .83rem; }
  body.preview-index .demo-customer-nav > .preview-account {
    grid-column: 2;
    grid-row: 1;
    min-height: 37px;
    padding: 5px 9px;
    border-color: #624582;
    background: #33214f;
    color: #f3e9ff;
  }
  body.preview-index .demo-store-nav > .demo-store-tabs {
    position: fixed;
    inset: auto 0 0;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 2px;
    min-height: var(--demo-mobile-nav-height);
    padding: 5px max(6px,env(safe-area-inset-right,0px))
      calc(5px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px));
    border-top: 1px solid #39304c;
    background: #100e1c;
    box-shadow: 0 -8px 24px #0806126b;
  }
  body.preview-index .demo-store-nav .demo-store-tabs > a,
  body.preview-index .demo-store-more > summary {
    width: 100%;
    min-height: 52px;
    flex-direction: column;
    gap: 2px;
    padding: 3px 0;
    border: 0;
    background: transparent;
    font-size: .68rem;
  }
  .demo-tab-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 27px;
    border-radius: 10px;
  }
  .demo-tab-chevron { display: none; }
  body.preview-index .demo-store-tabs > a[aria-current],
  body.preview-index .demo-store-more[open] > summary,
  body.preview-index .demo-store-more > summary.is-current {
    color: #e7d4ff;
    background: transparent;
  }
  .demo-store-tabs > a[aria-current] .demo-tab-icon,
  .demo-store-more > summary.is-current .demo-tab-icon,
  .demo-store-more[open] .demo-tab-icon { background: #31214e; color: #dabdff; }
  .demo-store-more-links {
    top: auto;
    bottom: calc(100% + 11px);
    max-height: calc(100dvh - 156px);
    overflow: auto;
  }
  body.preview-index:has(.demo-store-nav) :is(.floating-support,.toast,.demo-safety-toast) {
    bottom: calc(var(--demo-mobile-nav-height) + 14px);
  }
  body.preview-index:has(.demo-store-more[open]) .floating-support {
    visibility: hidden;
    pointer-events: none;
  }
}
@media(max-width: 550px) {
  body.preview-index header.navbar.demo-store-nav { padding-inline: 12px; }
  body.preview-index .demo-store-nav .brand-logo { width: 32px; height: 32px; flex-basis: 32px; }
  body.preview-index .demo-store-nav .brand-name { font-size: clamp(.66rem,3.3vw,.86rem); }
  body.preview-index .demo-store-nav > .sw-header-actions { gap: 5px; }
  .demo-store-currency { display: none; }
  body.preview-index .demo-store-nav .demo-store-account { gap: 4px; }
  body.preview-index .navbar.demo-store-nav .demo-store-account > span:last-child { display: block; max-width: 69px; }
  body.preview-index .demo-store-nav .demo-store-account > svg { display: none; }
}
@media(max-width: 345px) {
  body.preview-index .demo-store-nav .demo-store-account > svg { display: block; }
  body.preview-index .navbar.demo-store-nav .demo-store-account > span:last-child { display: none; }
}
