@font-face {
  font-family: Onest;
  src: url("/static/fonts/onest-variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Onest;
  src: url("/static/fonts/onest-variable-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

body.storefront-theme:not(.books) {
  --home-paper: #faf8fa;
  --home-ink: #281e2a;
  --home-plum: #38283d;
  --home-muted: #615665;
  --home-lilac: #eae2ef;
  --home-line: #ded5e1;
  --home-font: Onest, system-ui, sans-serif;
  --home-content-width: min(100% - clamp(32px, 7vw, 104px), 1320px);
  --home-sand: #f2ebf3;
  --home-olive: var(--home-plum);
  --home-serif: var(--home-font);
  --primary: var(--home-ink) !important;
  --accent: var(--home-plum) !important;
  --court: var(--home-paper);
  --court-deep: var(--home-plum);
  --court-line: var(--home-line);
  --accent-soft: var(--home-lilac);
  --accent-line: var(--home-line);
  --highlight: #ac8ea7;
  --ink: var(--home-ink);
  --ink-muted: var(--home-muted);
  background: var(--home-paper);
  color: var(--home-ink);
}

.storefront-theme:not(.books) .portal-topbar {
  background: var(--home-plum) !important;
  border-color: var(--home-plum) !important;
}

body.storefront-theme:not(.books) .portal-topbar :is(span, a:not(.site-language-switcher a), svg) {
  color: #f4eaf5 !important;
}

body.storefront-theme:not(.books) .portal-topbar a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.storefront-theme :is(.portal-nav, .portal-catbar, .storefront-footer) {
  font-family: var(--home-font);
}

.storefront-theme .portal-topbar-left > span:last-child,
.storefront-theme .portal-links .ic,
.storefront-theme .catbar-link .cat-ic,
.storefront-theme .catbar-count {
  display: none !important;
}

.storefront-theme:not(.books) .portal-nav,
.storefront-theme:not(.books) .portal-catbar {
  background: var(--home-paper);
  border-color: var(--home-line);
  box-shadow: none;
}

.storefront-theme:not(.books) .portal-nav .logo-wordmark {
  margin-left: 6px !important;
  font-family: var(--home-font);
  font-weight: 600 !important;
}

.storefront-theme:not(.books) .portal-links {
  background: none;
  border: 0;
  padding: 0;
}

.storefront-theme:not(.books) .portal-links > a,
.storefront-theme:not(.books) .catbar-link {
  border-radius: 0;
  color: var(--home-ink);
  font-weight: 500;
}

.storefront-theme:not(.books) .portal-links > a:hover,
.storefront-theme:not(.books) .catbar-link:hover {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: .28em;
}

.storefront-theme:not(.books) .catbar-link.catbar-active {
  background: var(--accent-soft);
  color: var(--home-olive);
}

.storefront-theme:not(.books) .portal-search {
  flex: 0 1 280px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid var(--home-line);
  border-radius: 2px;
  background: transparent;
  transition: border-color 180ms ease;
}

.storefront-theme:not(.books) .portal-search:focus-within {
  border-color: var(--home-olive);
}

.storefront-theme #hdrSearchDropdown {
  border-color: var(--home-line) !important;
  border-radius: 0 !important;
}

.storefront-theme:not(.books) .portal-search button,
.storefront-theme:not(.books) .portal-cart-btn {
  background: transparent;
  color: var(--home-ink);
  border-radius: 0;
  box-shadow: none;
}

.storefront-theme:not(.books) .portal-search button:hover,
.storefront-theme:not(.books) .portal-cart-btn:hover {
  background: var(--home-sand);
  color: var(--home-ink);
}

.storefront-theme:not(.books) .portal-wish-btn {
  border-radius: 0 !important;
}

.storefront-theme:not(.books) .portal-catbar::after {
  display: none;
}

.storefront-theme:not(.books) .portal-catbar-inner {
  justify-content: safe center;
  gap: clamp(2px, 1.2vw, 18px);
}

.storefront-theme .shop-consent {
  box-shadow: none;
  border-top: 1px solid var(--home-line);
}

.storefront-theme .shop-consent-actions button.shop-consent-accept:hover {
  background: var(--home-ink);
}

.storefront-theme .storefront-footer-base {
  background: var(--home-ink) !important;
}

.storefront-theme .footer-grid-portal h3 {
  font: 650 17px/1.25 var(--home-font) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.storefront-theme #cartDrawer,
.storefront-theme .cd-foot {
  background: var(--home-paper);
  border-radius: 0;
}

.storefront-theme .cd-title {
  font: 500 25px/1.1 var(--home-serif);
}

.storefront-theme .cd-head,
.storefront-theme .cd-foot,
.storefront-theme .cd-item {
  border-color: var(--home-line);
}

.storefront-theme .cd-qty,
.storefront-theme .cd-checkout,
.storefront-theme .cd-viewcart,
.storefront-theme .cd-item img {
  border-radius: 0;
}

@media (min-width: 769px) {
  .storefront-theme > .portal-topbar > .container,
  .storefront-theme > .portal-nav > .container,
  .storefront-theme .storefront-footer .container {
    width: var(--home-content-width);
    max-width: none;
    padding-inline: 0;
  }
}

@media (max-width: 768px) {
  .storefront-theme:not(.books) .portal-search {
    margin-left: 0;
  }

  .storefront-theme:not(.books) .mobile-bottom-nav {
    background: var(--home-paper);
    border-color: var(--home-line);
    border-radius: 0;
    box-shadow: none;
  }

  .storefront-theme:not(.books) .bottom-nav-item {
    border-radius: 0;
    color: var(--home-muted);
  }

  .storefront-theme:not(.books) .portal-catbar-shell::before {
    background: linear-gradient(90deg, var(--home-paper), transparent);
  }

  .storefront-theme:not(.books) .portal-catbar-shell::after {
    background: linear-gradient(270deg, var(--home-paper), transparent);
  }

  .storefront-theme .mobile-menu-sidebar,
  .storefront-theme .mobile-menu-head {
    background: var(--home-paper);
    border-color: var(--home-line);
  }

  .storefront-theme .mobile-menu-close {
    border-radius: 0;
    background: var(--home-sand);
    color: var(--home-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-theme .portal-search,
  .storefront-theme #cartDrawer,
  .storefront-theme #cartDrawerOverlay,
  .storefront-theme .mobile-menu-sidebar,
  .storefront-theme .mobile-menu-overlay {
    transition: none;
  }
}

.storefront-missing {
  width: min(var(--home-content-width), 1120px);
  margin-inline: auto;
  padding-block: clamp(32px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(24px, 7vw, 96px);
  align-items: start;
}

.storefront-missing-intro h1 {
  margin: 0;
  font: 500 clamp(38px, 5.1vw, 72px)/1.05 var(--home-serif);
  letter-spacing: -.045em;
}

.storefront-missing-intro p {
  max-width: 40ch;
  margin: 14px 0 0;
  color: var(--home-muted);
  line-height: 1.6;
}

.storefront-missing-intro .storefront-missing-code {
  margin: 0 0 12px;
  color: var(--home-olive);
  font-weight: 650;
  letter-spacing: .08em;
}

.storefront-missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.storefront-missing-actions a,
.storefront-missing-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--home-ink);
}

.storefront-missing-actions a {
  padding-inline: 14px;
  border: 1px solid var(--home-line);
  font-size: 14px;
  font-weight: 600;
}

.storefront-missing-actions .storefront-missing-primary {
  background: var(--home-olive);
  border-color: var(--home-olive);
  color: #fff;
}

.storefront-missing-links {
  padding: clamp(16px, 3vw, 36px);
  background: var(--home-sand);
}

.storefront-missing-links h2 {
  margin: 0 0 12px;
  font: 500 27px/1.15 var(--home-serif);
}

.storefront-missing-links a {
  border-top: 1px solid var(--home-line);
}

.storefront-missing a:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.storefront-missing a:focus-visible {
  outline: 2px solid var(--home-olive);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .storefront-missing {
    grid-template-columns: 1fr;
  }
}
