/* North catalog. Load after the Atlas stylesheets on the storefront. */
html:not([data-theme]) body.shop-body.atlas {
  --bg: #f7f5f0;
  --paper: #fff;
  --paper-soft: #f7f5f0;
  --line: #e4dfd6;
  --line-soft: #efebe3;
  --line-strong: #cfc7b9;
  --ink: #25243a;
  --ink-soft: #454155;
  --muted: #625d70;
  --muted-soft: #6f697b;
  --brand: #473790;
  --brand-deep: #35266f;
  --brand-wash: #efecf7;
  --brand-line: #d9d0eb;
  --on-brand: #fff;
  --catalog-ink: var(--ink);
  --catalog-cobalt: var(--brand);
  --catalog-powder: var(--paper-soft);
  --catalog-muted: var(--muted);
  --blue: var(--brand);
  --gold-ink: var(--brand);
  --north-width: 1280px;
  --north-gutter: clamp(14px, 3.1vw, 40px);
  --north-radius: 14px;
  --north-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, serif;
  --header-h: 70px;
  background: var(--bg) !important;
  color: var(--ink);
}

html:not([data-theme]) body.shop-body.atlas > main {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--north-width) + 2 * var(--north-gutter));
  margin-inline: auto;
  padding-inline: var(--north-gutter);
  padding-top: clamp(16px, 2.4vw, 32px);
}

/* Header */
html:not([data-theme]) body.shop-body.atlas > .shop-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  top: 0;
  box-sizing: border-box;
  height: auto;
  min-height: var(--header-h);
  padding: 8px max(var(--north-gutter), calc((100% - var(--north-width)) / 2));
  gap: clamp(12px, 2vw, 30px);
  border-block-start: 3px solid var(--brand);
  border-block-end: 1px solid var(--line);
  background: var(--paper) !important;
  box-shadow: 0 4px 14px rgb(37 36 58 / 4%);
}

html:not([data-theme]) body.shop-body.atlas .shop-header .shop-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

html:not([data-theme]) body.shop-body.atlas .shop-header .shop-logo .logo-glyph {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft) !important;
}

html:not([data-theme]) body.shop-body.atlas .shop-header .shop-logo > span:last-child {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: .01em;
}

html:not([data-theme]) body.shop-body.atlas .shop-header .shop-logo > span:last-child small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

html:not([data-theme]) body.shop-body.atlas .shop-header .shop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 3px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--paper-soft);
}

html:not([data-theme]) body.shop-body.atlas .shop-header .shop-nav-link:not([hidden]) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0 clamp(10px, 1.2vw, 18px);
  border: 0;
  border-radius: 7px;
  background: transparent !important;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
  box-shadow: none;
}

html:not([data-theme]) body.shop-body.atlas .shop-header .shop-nav-link[hidden] { display: none !important; }
html:not([data-theme]) body.shop-body.atlas .shop-header .shop-nav-link::after { display: none; }
html:not([data-theme]) body.shop-body.atlas .shop-header .shop-nav-link:hover:not(.active) { color: var(--brand); background: var(--brand-wash) !important; }
html:not([data-theme]) body.shop-body.atlas .shop-header .shop-nav-link.active:not([hidden]) { color: var(--on-brand) !important; background: var(--brand) !important; }

html:not([data-theme]) body.shop-body.atlas .shop-header .header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  justify-self: end;
  gap: clamp(4px, .6vw, 8px);
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

html:not([data-theme]) body.shop-body.atlas .shop-header .header-tools > :is(.round-button, .cart-button, .login-link) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

html:not([data-theme]) body.shop-body.atlas .shop-header .header-tools > :is(.round-button, .cart-button) { flex-shrink: 0; }
html:not([data-theme]) body.shop-body.atlas .shop-header .header-tools > :is(.round-button, .cart-button, .login-link):hover {
  border-color: var(--brand-line);
  background: var(--brand-wash) !important;
  color: var(--brand) !important;
}

html:not([data-theme]) body.shop-body.atlas #account-label {
  display: block !important;
  min-width: 0;
  max-width: 15ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:not([data-theme]) body.shop-body.atlas .header-tools :is(svg, i) {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

/* Branded introduction */
html:not([data-theme]) body.shop-body.atlas #home.active { max-width: var(--north-width); }

html:not([data-theme]) body.shop-body.atlas #home > .atlas-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(12px, 2.4vw, 34px);
  min-width: 0;
  margin: 0 0 clamp(20px, 3vw, 38px);
  padding: clamp(22px, 3.1vw, 42px) clamp(20px, 4.2vw, 58px);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand);
  border-radius: var(--north-radius);
  background: linear-gradient(115deg, var(--paper) 37%, #f3efe7 100%);
}

html:not([data-theme]) body.shop-body.atlas #home .atlas-intro > :first-child { min-width: 0; }

html:not([data-theme]) body.shop-body.atlas #home .atlas-index {
  gap: 9px;
  margin: 0 0 10px;
  color: var(--brand);
  font-size: clamp(10px, 1vw, 11px);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .15em;
}

html:not([data-theme]) body.shop-body.atlas #home .atlas-index::before { flex: 0 0 20px; }

html:not([data-theme]) body.shop-body.atlas #home .atlas-intro h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--north-serif);
  font-size: clamp(36px, 5.3vw, 67px);
  font-weight: 760;
  line-height: 1.13;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

html:not([data-theme]) body.shop-body.atlas #home .atlas-intro h1 > span {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: .62em;
  line-height: 1.15;
  letter-spacing: -.025em;
}

html:not([data-theme]) body.shop-body.atlas #home .atlas-intro > :first-child > p:not(.atlas-index) {
  max-width: 44ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.6;
}

html:not([data-theme]) body.shop-body.atlas #home .atlas-intro .atlas-actions {
  gap: 8px;
  margin-top: clamp(14px, 2vw, 24px);
}

html:not([data-theme]) body.shop-body.atlas #home .atlas-actions > button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brand);
  box-shadow: none;
  font-size: 13px;
  font-weight: 730;
}

html:not([data-theme]) body.shop-body.atlas #home .atlas-actions > button:hover { background: var(--brand-wash); }
html:not([data-theme]) body.shop-body.atlas #home .atlas-actions > .north-primary { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
html:not([data-theme]) body.shop-body.atlas #home .atlas-actions > .north-primary:hover { border-color: var(--brand-deep); background: var(--brand-deep); }

html:not([data-theme]) body.shop-body.atlas #home .north-hero-art {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  max-width: 415px;
  margin: 0 0 0 auto;
}

html:not([data-theme]) body.shop-body.atlas #home .north-hero-art > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(130px, 21vw, 235px);
  object-fit: contain;
}

html:not([data-theme]) body.shop-body.atlas #home > .home-hero { margin-top: clamp(14px, 2vw, 24px); }
html:not([data-theme]) body.shop-body.atlas #home .home-hero > .home-hero-copy { display: none; }
html:not([data-theme]) body.shop-body.atlas #home .home-hero > .store-notice { border-color: var(--line); border-radius: var(--north-radius); }
html:not([data-theme]) body.shop-body.atlas #home .home-hero > .store-notice .notice-content { background: var(--paper-soft); }

/* Catalog layout and fields */
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories, #catalog, #product) {
  --atlas-cat-stone: var(--paper-soft);
  --atlas-cat-rule: var(--line);
  --atlas-cat-ink: var(--ink);
  --atlas-cat-muted: var(--muted);
  --atlas-cat-accent: var(--brand);
  --atlas-cat-deep: var(--brand-deep);
  --atlas-cat-wash: var(--brand-wash);
  --atlas-cat-active-line: var(--brand-line);
  --atlas-cat-sidebar: clamp(185px, 19vw, 242px);
  --atlas-cat-gutter: clamp(17px, 2.3vw, 32px);
  --atlas-cat-width: var(--north-width);
  --atlas-cat-editorial: var(--north-serif);
}

html:not([data-theme]) body.shop-body.atlas #home .marketplace-section {
  margin-bottom: clamp(26px, 4vw, 52px);
  padding-top: 0;
  border-top: 0;
  background: transparent;
}

html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout .home-products-heading, #categories .directory-products .subpage-head, #catalog .catalog-head) {
  margin-bottom: clamp(13px, 1.5vw, 20px);
  padding: 0 0 clamp(10px, 1.3vw, 17px);
  border-bottom-color: var(--line);
}

html:not([data-theme]) body.shop-body.atlas :is(#home .home-products-heading h2, #categories .subpage-head h1, #catalog .catalog-head h1) {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 760;
  letter-spacing: -.025em;
}

html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .product-total {
  border-radius: 999px;
  background: var(--paper);
}

html:not([data-theme]) body.shop-body.atlas #home .home-product-tools { align-items: center; }
html:not([data-theme]) body.shop-body.atlas #home .home-search { flex-basis: 220px; }

html:not([data-theme]) body.shop-body.atlas :is(#home .home-search input, #home #home-product-sort, #catalog .catalog-utility select, #catalog .catalog-filter-block > label select) {
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
}

html:not([data-theme]) body.shop-body.atlas #home .home-search input { width: 100%; }
html:not([data-theme]) body.shop-body.atlas #home #home-product-sort { width: 146px !important; }
html:not([data-theme]) body.shop-body.atlas #catalog :is(.subcategory-tab, #mobile-filter) { border-radius: 8px; }

html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout .category-sidebar, #categories .directory-layout > .category-sidebar, #catalog .catalog-filter) {
  top: calc(var(--header-h) + 14px);
  border-radius: var(--north-radius);
  background: var(--paper);
}

html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-sidebar-head {
  margin-inline: 9px;
  padding: 14px 8px 12px !important;
  border-bottom: 1px solid var(--line-soft);
}

html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-sidebar-head h2 {
  margin: 0;
  font: 760 19px/1.3 var(--north-serif) !important;
}

html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-categories-block) > .category-side-list {
  max-height: min(58vh, 520px);
  gap: 4px;
  padding: 8px;
}

html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item {
  gap: 8px;
  min-height: 48px;
  padding: 5px 7px;
  border-radius: 8px;
}

html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item :is(img, .mark-fallback) {
  border-radius: 6px;
  background: var(--paper-soft);
}

html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item b { font-size: 13px; }
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item small { font-size: 11px; }
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item:hover { background: var(--paper-soft); }
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item:is(.active, [aria-pressed='true'], [aria-current='page']) { background: var(--brand-wash); }

/* The image and its fallback share a fixed mat. Contain preserves artwork and logos. */
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout #hot-products, #categories #category-page-products, #catalog .product-list > .store-product-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 21px);
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-card {
  padding: 0;
  border-radius: var(--north-radius);
  box-shadow: 0 2px 6px rgb(37 36 58 / 4%);
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-card:is(:hover, :focus-within) {
  border-color: var(--brand-line) !important;
  box-shadow: 0 10px 26px rgb(37 36 58 / 8%);
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  border-radius: calc(var(--north-radius) - 1px) calc(var(--north-radius) - 1px) 0 0;
  background: #f2f0eb !important;
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual > :is(img, .cover-fallback) {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual > img {
  display: block;
  padding: 31px 8px 7px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal !important;
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual > .cover-fallback {
  padding: 31px 8px 7px;
  background: var(--paper-soft);
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual .delivery-badge {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  min-height: 20px;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--paper) !important;
  color: var(--brand-deep);
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-info {
  gap: 6px;
  padding: clamp(9px, 1.2vw, 16px);
  border-radius: 0 0 calc(var(--north-radius) - 1px) calc(var(--north-radius) - 1px);
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-name {
  font-family: var(--atlas-cat-sans);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 750;
  letter-spacing: 0;
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer {
  align-items: center;
  padding-top: 10px;
  gap: 8px;
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer strong { color: var(--brand-deep); }

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button {
  min-width: 62px;
  min-height: 42px;
  padding-inline: 10px;
  border-color: var(--brand) !important;
  border-radius: 8px;
  background: var(--brand) !important;
  color: var(--on-brand) !important;
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button:hover:not(:disabled) {
  border-color: var(--brand-deep) !important;
  background: var(--brand-deep) !important;
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button:disabled {
  border-color: var(--line) !important;
  background: var(--paper-soft) !important;
  color: var(--muted) !important;
}

html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual:focus-visible { outline-offset: -3px; }
html:not([data-theme]) body.shop-body.atlas #product #detail-icon img { mix-blend-mode: normal !important; }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel { border-radius: var(--north-radius); }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel :is(#buy-now, #add-to-cart) { border-radius: 8px; }
html:not([data-theme]) body.shop-body.atlas :is(button, a, input, select, textarea):focus-visible { outline-color: var(--brand); }

/* Footer and customer contact */
html:not([data-theme]) body.shop-body.atlas .shop-footer {
  border-block-start: 1px solid var(--line);
  background: #f0ede6 !important;
}

html:not([data-theme]) body.shop-body.atlas .shop-footer > .atlas-footer-inner {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--north-width) + 2 * var(--north-gutter));
  padding: clamp(23px, 3.2vw, 44px) var(--north-gutter);
}

html:not([data-theme]) body.shop-body.atlas .atlas-footer-inner h2 {
  margin: 0;
  color: var(--ink);
  font: 760 clamp(19px, 2.4vw, 29px)/1.25 var(--north-serif);
}

html:not([data-theme]) body.shop-body.atlas .atlas-footer-inner p { color: var(--muted); }
html:not([data-theme]) body.shop-body.atlas .atlas-footer-inner nav { gap: 4px; }
html:not([data-theme]) body.shop-body.atlas .atlas-footer-inner nav b { margin-bottom: 4px; color: var(--ink); }
html:not([data-theme]) body.shop-body.atlas .atlas-footer-inner a { color: var(--brand-deep) !important; min-height: 30px; }

html:not([data-theme]) body.shop-body.atlas #north-footer-contacts[hidden] { display: none !important; }
html:not([data-theme]) body.shop-body.atlas #north-footer-contacts:not([hidden]) {
  display: block;
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: clamp(13px, 2vw, 23px);
  border-top: 1px solid var(--line);
}

html:not([data-theme]) body.shop-body.atlas #north-footer-contacts .contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
}

html:not([data-theme]) body.shop-body.atlas #north-footer-contacts .contact-list > :is(a, .contact-static) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper) !important;
  color: var(--brand-deep) !important;
  box-shadow: none;
}

html:not([data-theme]) body.shop-body.atlas #north-footer-contacts .contact-list > a:hover { border-color: var(--brand-line); background: var(--brand-wash) !important; }
html:not([data-theme]) body.shop-body.atlas #north-footer-contacts .contact-list :is(svg, img) { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }
html:not([data-theme]) body.shop-body.atlas #north-footer-contacts .contact-list :is(b, small) { display: block; overflow-wrap: anywhere; }
html:not([data-theme]) body.shop-body.atlas #north-footer-contacts .contact-list small { color: var(--muted); }

html:not([data-theme]) body.shop-body.atlas .cs-dock .cs-fab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

html:not([data-theme]) body.shop-body.atlas :is(.cs-head, .toast) {
  border-color: var(--brand-line);
  background: var(--brand-wash) !important;
  color: var(--brand-deep) !important;
}

html:not([data-theme]) body.shop-body.atlas > .storefront-loader { background: var(--bg); }
html:not([data-theme]) body.shop-body.atlas > .storefront-loader > span { border-color: var(--line); border-top-color: var(--brand); }

html:not([data-theme]) body.shop-body.atlas .storefront-message:not([hidden]) {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--north-width);
  margin: 0 auto 18px;
  padding: 12px 15px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  line-height: 1.5;
}

@media (max-width: 1050px) {
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout #hot-products, #categories #category-page-products, #catalog .product-list > .store-product-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html:not([data-theme]) body.shop-body.atlas { --header-h: 105px; }

  html:not([data-theme]) body.shop-body.atlas > .shop-header {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-rows: auto auto;
    min-height: 0;
    gap: 4px 7px !important;
    padding: 5px var(--north-gutter) 4px !important;
  }

  html:not([data-theme]) body.shop-body.atlas .shop-header .shop-logo .logo-glyph { width: 36px; height: 36px; }
  html:not([data-theme]) body.shop-body.atlas .shop-header .header-tools > :is(.round-button, .cart-button, .login-link) { gap: 4px; padding-inline: 6px; }

  html:not([data-theme]) body.shop-body.atlas .shop-header .shop-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    justify-self: stretch;
    flex-wrap: wrap;
    gap: 2px;
    padding: 2px;
  }

  html:not([data-theme]) body.shop-body.atlas .shop-header .shop-nav-link:not([hidden]) {
    flex: 1 1 auto;
    min-height: 42px;
    padding-inline: 5px;
    font-size: clamp(11px, 3.6vw, 13px);
  }

  html:not([data-theme]) body.shop-body.atlas #account-label { max-width: clamp(7ch, 13vw, 13ch); }

  html:not([data-theme]) body.shop-body.atlas #home > .atlas-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, .54fr);
    align-items: center;
    gap: 9px;
    padding: 16px 14px;
  }

  html:not([data-theme]) body.shop-body.atlas #home .atlas-intro h1 { font-size: clamp(30px, 6.1vw, 48px); }
  html:not([data-theme]) body.shop-body.atlas #home .atlas-actions > button { padding-inline: 8px; font-size: 12px; }
  html:not([data-theme]) body.shop-body.atlas #home .north-hero-art > img { max-height: 160px; }

  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout .category-sidebar, #categories .directory-layout > .category-sidebar, #catalog .catalog-filter) { top: auto; }
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-sidebar-head { padding: 6px 0 6px 3px !important; }
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-mobile-toggle { border-radius: 8px; }
  html:not([data-theme]) body.shop-body.atlas #home #home-product-sort { width: 124px !important; }
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button { min-height: 44px; min-width: 47px; padding-inline: 7px; }

  html:not([data-theme]) body.shop-body.atlas .shop-footer > .atlas-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:not([data-theme]) body.shop-body.atlas .shop-footer > .atlas-footer-inner > section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 450px) {
  html:not([data-theme]) body.shop-body.atlas #home > .atlas-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  html:not([data-theme]) body.shop-body.atlas #home .north-hero-art { max-width: none; margin: 0; }
  html:not([data-theme]) body.shop-body.atlas #home .north-hero-art > img { max-height: 108px; }
  html:not([data-theme]) body.shop-body.atlas #home .home-search { flex-basis: 0; }
  html:not([data-theme]) body.shop-body.atlas #home .home-search input { font-size: 12px; }
  html:not([data-theme]) body.shop-body.atlas #home #home-product-sort { width: 109px !important; }
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout #hot-products, #categories #category-page-products, #catalog .product-list > .store-product-grid) { gap: 10px; }
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer { gap: 5px; }
}

@media (max-width: 345px) {
  html:not([data-theme]) body.shop-body.atlas .shop-header .shop-logo { gap: 5px; }
  html:not([data-theme]) body.shop-body.atlas .shop-header .header-tools { gap: 3px; }
  html:not([data-theme]) body.shop-body.atlas .shop-header .header-tools > :is(.round-button, .cart-button, .login-link) { padding-inline: 4px; }
  html:not([data-theme]) body.shop-body.atlas #account-label { max-width: 6ch; }
}
