/* Atlas catalog. This layer follows the default storefront and Atlas shell.
   Keep route/state hooks in the markup and isolate the redesign from agent themes. */
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories, #catalog, #product) {
  --atlas-cat-stone: #f5f3ef;
  --atlas-cat-rule: #e7e2dd;
  --atlas-cat-ink: #28263b;
  --atlas-cat-muted: #666275;
  --atlas-cat-accent: #5141a6;
  --atlas-cat-deep: #44338e;
  --atlas-cat-wash: #f0edf9;
  --atlas-cat-active-line: #d2c8ed;
  --atlas-cat-sidebar: clamp(176px, 17vw, 224px);
  --atlas-cat-gutter: clamp(20px, 3vw, 42px);
  --atlas-cat-width: 1240px;
  --atlas-cat-sans: var(--atlas-sans, 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif);
  --atlas-cat-editorial: var(--atlas-serif, 'Georgia', 'Noto Serif SC', 'Songti SC', 'SimSun', serif);
  color: var(--atlas-cat-ink);
}

/* A left-hand index and an open editorial grid, not a background panel. */
html:not([data-theme]) body.shop-body.atlas #home .marketplace-section {
  width: 100%;
  max-width: var(--atlas-cat-width);
  margin: 0 auto clamp(44px, 7vw, 100px);
  padding: clamp(20px, 2.4vw, 36px) 0 0;
  border: 0;
  border-top: 1px solid var(--atlas-cat-rule);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section .marketplace-layout, #categories .directory-layout, #catalog .catalog-layout) {
  display: grid;
  grid-template-columns: var(--atlas-cat-sidebar) minmax(0, 1fr);
  align-items: start;
  gap: var(--atlas-cat-gutter);
  width: 100%;
  max-width: var(--atlas-cat-width);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html:not([data-theme]) body.shop-body.atlas :is(#categories .directory-layout, #catalog .catalog-layout, #product .detail-layout) {
  margin: 0 auto clamp(44px, 7vw, 100px);
}
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout > .marketplace-products, #categories .directory-products, #catalog .product-area, #catalog .product-list) {
  display: block;
  min-width: 0;
}
html:not([data-theme]) body.shop-body.atlas #categories .directory-layout { padding-top: clamp(21px, 3vw, 46px); }
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout .home-products-heading, #categories .directory-products .subpage-head, #catalog .catalog-head) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 18px;
  width: 100%;
  max-width: var(--atlas-cat-width);
  min-height: 0;
  margin: 0 0 clamp(17px, 2vw, 25px);
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--atlas-cat-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html:not([data-theme]) body.shop-body.atlas #categories .directory-products .subpage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 5px 16px;
}
html:not([data-theme]) body.shop-body.atlas #categories .subpage-head > :not(.product-total) { grid-column: 1; }
html:not([data-theme]) body.shop-body.atlas #categories .subpage-head > .product-total { grid-area: 2 / 2; }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-head { margin-inline: auto; }
html:not([data-theme]) body.shop-body.atlas :is(#home .home-products-heading, #categories .subpage-head, #catalog .catalog-head) .kicker {
  display: block;
  margin: 0 0 5px;
  color: var(--atlas-cat-accent);
  font: 700 10px/1.35 var(--atlas-cat-sans);
  letter-spacing: .17em;
}
html:not([data-theme]) body.shop-body.atlas :is(#home .home-products-heading h2, #categories .subpage-head h1, #catalog .catalog-head h1, #product #detail-name) {
  margin: 0;
  color: var(--atlas-cat-ink);
  font: 700 clamp(27px, 3.1vw, 43px)/1.18 var(--atlas-cat-editorial);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
html:not([data-theme]) body.shop-body.atlas #home .home-products-heading h2 { gap: 6px 12px; }
html:not([data-theme]) body.shop-body.atlas :is(#home .home-products-heading, #categories .subpage-head, #catalog .catalog-head) p:not(.kicker) {
  margin: 5px 0 0;
  color: var(--atlas-cat-muted);
  font: 400 13px/1.55 var(--atlas-cat-sans);
}
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .product-total {
  justify-self: start;
  width: max-content;
  padding: 4px 8px;
  border: 1px solid var(--atlas-cat-rule);
  border-radius: 3px;
  background: var(--atlas-cat-stone);
  color: var(--atlas-cat-muted);
  font: 600 11px/1.3 var(--atlas-cat-sans);
  letter-spacing: normal;
}
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .product-total b { color: var(--atlas-cat-ink); font-size: inherit; }
html:not([data-theme]) body.shop-body.atlas #home .home-product-tools { flex: 0 1 auto; min-width: 0; gap: 8px; }
html:not([data-theme]) body.shop-body.atlas #home .home-search { position: relative; flex: 1 1 200px; min-width: 0; max-width: none; }
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) {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--atlas-cat-rule);
  border-radius: 5px;
  background-color: #fff !important; /* Legacy sort uses an important fill. */
  color: var(--atlas-cat-ink);
  font: 500 13px/1.3 var(--atlas-cat-sans);
  box-shadow: none;
}
html:not([data-theme]) body.shop-body.atlas #home .home-search input { padding-inline: 34px 8px; }
html:not([data-theme]) body.shop-body.atlas #home .home-search input::placeholder { color: var(--atlas-cat-muted); }
html:not([data-theme]) body.shop-body.atlas #home .home-search :is(svg, i, [data-lucide]) { color: var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas #home #home-product-sort { width: 137px !important; padding-inline: 10px 24px !important; }
html:not([data-theme]) body.shop-body.atlas #home .home-search:focus-within { outline: 0; }

html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout .category-sidebar, #categories .directory-layout > .category-sidebar, #catalog .catalog-filter) {
  position: sticky;
  top: calc(var(--header-h, 64px) + 16px);
  grid-row: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--atlas-cat-rule);
  border-radius: 8px;
  background: var(--atlas-cat-stone);
  box-shadow: none;
}
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 16px 14px 12px !important;
  border: 0;
  background: transparent;
}
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-sidebar-head .kicker {
  display: block;
  margin: 0 0 3px;
  color: var(--atlas-cat-accent);
  font: 700 9px/1.3 var(--atlas-cat-sans);
  letter-spacing: .14em;
}
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-sidebar-head h2 {
  color: var(--atlas-cat-ink);
  font: 700 17px/1.3 var(--atlas-cat-editorial) !important;
}
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-categories-block) > .category-side-list {
  display: grid;
  align-content: start;
  align-items: stretch;
  gap: 3px;
  max-height: min(52vh, 490px);
  min-width: 0;
  margin: 0;
  padding: 2px 7px 8px;
  border: 0;
  overflow: auto;
  overscroll-behavior-block: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--atlas-cat-active-line) transparent;
}
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-categories-block) > .category-side-list::-webkit-scrollbar { width: 5px; }
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-categories-block) > .category-side-list::-webkit-scrollbar-thumb { background: var(--atlas-cat-active-line); }
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 12px;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--atlas-cat-ink);
  text-align: left;
  white-space: normal;
  box-shadow: none;
}
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) {
  display: grid !important;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 3px;
  border: 0;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  color: var(--atlas-cat-accent);
  mix-blend-mode: normal;
}
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item .mark-fallback svg { width: 14px; height: 14px; }
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item > :is(svg, i, [data-lucide]) {
  display: block;
  width: 12px;
  height: 12px;
  color: var(--atlas-cat-muted);
}
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item > span:not(.mark-fallback) { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item b { color: inherit; font: 650 12px/1.3 var(--atlas-cat-sans); white-space: normal; }
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item small { display: block; color: var(--atlas-cat-muted); font: 400 10px/1.3 var(--atlas-cat-sans); }
html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar, #catalog .catalog-filter) .category-side-item:hover { border-color: var(--atlas-cat-rule); background: #fff; transform: none; }
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']) {
  border-color: var(--atlas-cat-active-line);
  background: var(--atlas-cat-wash);
  color: var(--atlas-cat-deep);
  box-shadow: inset 2px 0 var(--atlas-cat-accent);
}

/* Catalog cards: a uniform shallow image mat, editorial type and clear CTA. */
html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout #hot-products, #categories #category-page-products, #catalog .product-list > .store-product-grid) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 32px) clamp(12px, 1.5vw, 20px);
  min-width: 0;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 7px 7px 0;
  border: 1px solid var(--atlas-cat-rule) !important;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-card:hover {
  border-color: var(--atlas-cat-active-line) !important;
  box-shadow: 0 9px 20px -17px rgb(40 38 59 / 36%);
  transform: none;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.68;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--atlas-cat-stone) !important;
  isolation: isolate;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual::after { display: none; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual img {
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 25px 11% 9px;
  object-fit: contain;
  mix-blend-mode: multiply !important;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-card:hover .product-visual img { transform: none; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual .delivery-badge {
  top: 7px;
  left: 7px;
  right: auto;
  bottom: auto;
  min-height: 20px;
  max-width: calc(100% - 14px);
  padding: 1px 5px;
  border: 1px solid var(--atlas-cat-rule);
  border-radius: 3px;
  background: #fff !important;
  color: var(--atlas-cat-deep);
  font-size: 10px;
  font-weight: 650;
  box-shadow: none;
  backdrop-filter: none;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .delivery-badge::before { display: none; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list, #product #detail-icon) .cover-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 5px;
  padding: 22px 10px 6px;
  border: 0;
  background: var(--atlas-cat-stone);
  box-shadow: none;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list, #product #detail-icon) .cover-fallback .mark-fallback { border-color: var(--atlas-cat-active-line); background: var(--atlas-cat-wash); color: var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list, #product #detail-icon) .cover-fallback b { color: var(--atlas-cat-ink); font: 700 clamp(11px, 1.4vw, 18px)/1.25 var(--atlas-cat-editorial); overflow-wrap: anywhere; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 11px 6px 12px;
  background: #fff;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-category {
  color: var(--atlas-cat-accent);
  font: 700 10px/1.35 var(--atlas-cat-sans);
  letter-spacing: .075em;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-name {
  display: -webkit-box;
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--atlas-cat-ink);
  font: 700 clamp(15px, 1.4vw, 19px)/1.33 var(--atlas-cat-editorial);
  text-align: left;
  overflow-wrap: anywhere;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-name:hover { color: var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-info > p {
  min-height: 0;
  max-height: none;
  margin: 0 0 4px;
  color: var(--atlas-cat-muted);
  font: 400 12px/1.52 var(--atlas-cat-sans);
  -webkit-line-clamp: 2;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 5px;
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--atlas-cat-rule);
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer > div { display: grid; gap: 2px; min-width: 0; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer :is(small, .was-price) { color: var(--atlas-cat-muted); font: 500 10px/1.3 var(--atlas-cat-sans); }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer .stock-low { color: #8b5120; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer .stock-soldout { color: #904450; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer strong {
  color: var(--atlas-cat-ink);
  font: 720 clamp(14px, 1.5vw, 19px)/1.12 var(--atlas-cat-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  white-space: normal;
  overflow-wrap: anywhere;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--atlas-cat-active-line) !important;
  border-radius: 4px;
  background: var(--atlas-cat-wash) !important;
  color: var(--atlas-cat-deep) !important;
  font: 700 11px/1.1 var(--atlas-cat-sans);
  box-shadow: none;
  white-space: nowrap;
}
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button svg { width: 13px; height: 13px; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button span { display: inline; }
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(--atlas-cat-accent) !important; background: var(--atlas-cat-accent) !important; color: #fff !important; transform: none; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button:disabled { border-color: var(--atlas-cat-rule) !important; background: var(--atlas-cat-stone) !important; color: var(--atlas-cat-muted) !important; opacity: 1; }
html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) > .field-help {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed var(--atlas-cat-rule);
  border-radius: 5px;
  background: var(--atlas-cat-stone);
  color: var(--atlas-cat-muted);
}

/* Breadcrumb, sorting, secondary/tertiary browse and contextual filters. */
html:not([data-theme]) body.shop-body.atlas :is(#catalog, #product) > .crumb {
  align-items: center;
  width: 100%;
  max-width: var(--atlas-cat-width);
  margin: 0 auto clamp(10px, 2vw, 20px);
  padding: 0;
  color: var(--atlas-cat-muted);
  font: 500 12px/1.4 var(--atlas-cat-sans);
  overflow-wrap: anywhere;
}
html:not([data-theme]) body.shop-body.atlas :is(#catalog, #product) > .crumb button { min-height: 36px; color: var(--atlas-cat-accent); flex-shrink: 0; }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-utility label { color: var(--atlas-cat-muted); }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-utility select { min-width: 130px; }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-filter { display: grid; gap: 0; }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-categories-block { gap: 5px; padding: 12px 0 4px; border-bottom: 1px solid var(--atlas-cat-rule); }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-categories-block > .catalog-filter-title { padding-inline: 14px; }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-filter-block { padding: 10px 14px 14px; }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-filter-title h3 { color: var(--atlas-cat-ink); font: 700 16px/1.35 var(--atlas-cat-editorial); }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-filter-title #reset-filter { color: var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas #catalog .catalog-filter-block > label { color: var(--atlas-cat-ink); }
html:not([data-theme]) body.shop-body.atlas #catalog .filter-note { background: transparent; color: var(--atlas-cat-muted); }
html:not([data-theme]) body.shop-body.atlas #catalog .filter-note p { color: inherit; }
html:not([data-theme]) body.shop-body.atlas #catalog .subcategory-tabs:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
html:not([data-theme]) body.shop-body.atlas #catalog .subcategory-tabs[hidden] { display: none; }
html:not([data-theme]) body.shop-body.atlas #catalog .subcategory-tab { min-height: 38px; padding: 0 10px; border: 1px solid var(--atlas-cat-rule); border-radius: 4px; background: #fff; color: var(--atlas-cat-ink); }
html:not([data-theme]) body.shop-body.atlas #catalog .tertiary-tabs .subcategory-tab { background: var(--atlas-cat-stone); }
html:not([data-theme]) body.shop-body.atlas #catalog .subcategory-tab span { color: inherit; background: transparent; }
html:not([data-theme]) body.shop-body.atlas #catalog .subcategory-tab:is(:hover, .active) { border-color: var(--atlas-cat-active-line); background: var(--atlas-cat-wash); color: var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas #catalog .subcategory-tab.active { box-shadow: inset 0 -2px var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas #catalog .result-line { align-items: center; min-height: 36px; margin: 0 0 12px; padding: 0; color: var(--atlas-cat-muted); }
html:not([data-theme]) body.shop-body.atlas #catalog .result-line b { color: var(--atlas-cat-ink); }
html:not([data-theme]) body.shop-body.atlas #catalog .mobile-filter { display: none; }

/* Product detail: editorial media and title block plus a separate purchase rail. */
html:not([data-theme]) body.shop-body.atlas #product .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, .44fr);
  align-items: start;
  gap: var(--atlas-cat-gutter);
  width: 100%;
  max-width: var(--atlas-cat-width);
  padding: 0;
}
html:not([data-theme]) body.shop-body.atlas #product .detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 12px clamp(14px, 2.5vw, 28px);
  align-items: start;
}
html:not([data-theme]) body.shop-body.atlas #product .detail-main > * { grid-column: 1 / -1; min-width: 0; }
html:not([data-theme]) body.shop-body.atlas #product #detail-icon {
  grid-area: 1 / 1 / span 3;
  order: 0;
  width: 100%;
  min-height: 0;
  height: auto;
  min-width: 0;
  aspect-ratio: 1.24;
  padding: clamp(12px, 2.4vw, 27px) !important;
  border: 1px solid var(--atlas-cat-rule) !important;
  border-radius: 7px;
  background: var(--atlas-cat-stone) !important;
  box-shadow: none;
}
html:not([data-theme]) body.shop-body.atlas #product #detail-icon img { width: 100%; height: 100%; max-height: clamp(145px, 22vw, 290px) !important; margin: 0; object-fit: contain; mix-blend-mode: multiply !important; }
html:not([data-theme]) body.shop-body.atlas #product #detail-icon.has-banner { grid-area: 4 / 1 / auto / -1; aspect-ratio: auto; padding: 8px !important; }
html:not([data-theme]) body.shop-body.atlas #product #detail-icon.has-banner img { width: auto; height: auto; max-height: none !important; mix-blend-mode: normal !important; }
html:not([data-theme]) body.shop-body.atlas #product .detail-main:has(#detail-icon.has-banner) > :is(#detail-category, #detail-name, #detail-desc) { grid-column: 1 / -1; }
html:not([data-theme]) body.shop-body.atlas #product #detail-category { grid-area: 1 / 2; order: 0; margin: 4px 0 0; padding: 0; border: none; background: transparent; color: var(--atlas-cat-accent); font: 700 11px/1.45 var(--atlas-cat-sans); letter-spacing: .08em; }
html:not([data-theme]) body.shop-body.atlas #product #detail-name { grid-area: 2 / 2; order: 0; font-size: clamp(27px, 3.2vw, 45px); }
html:not([data-theme]) body.shop-body.atlas #product #detail-desc { grid-area: 3 / 2; order: 0; max-width: 66ch; margin: 0; color: var(--atlas-cat-muted); font: 400 14px/1.7 var(--atlas-cat-sans); }
html:not([data-theme]) body.shop-body.atlas #product .detail-specs:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr)); gap: 8px; margin: 4px 0 0; padding: 14px; border: 1px solid var(--atlas-cat-rule); border-radius: 7px; background: var(--atlas-cat-stone) !important; box-shadow: none; }
html:not([data-theme]) body.shop-body.atlas #product .detail-specs[hidden] { display: none; }
html:not([data-theme]) body.shop-body.atlas #product .detail-specs-label { color: var(--atlas-cat-ink); font: 700 17px/1.3 var(--atlas-cat-editorial); letter-spacing: normal; }
html:not([data-theme]) body.shop-body.atlas #product .detail-spec { min-height: 60px; gap: 4px; border-color: var(--atlas-cat-rule); border-radius: 4px; background: #fff; }
html:not([data-theme]) body.shop-body.atlas #product .detail-spec b { color: var(--atlas-cat-ink); }
html:not([data-theme]) body.shop-body.atlas #product .detail-spec strong { color: var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas #product .detail-spec small { color: var(--atlas-cat-muted); }
html:not([data-theme]) body.shop-body.atlas #product .detail-spec:hover, html:not([data-theme]) body.shop-body.atlas #product .detail-spec[aria-pressed='true'] { border-color: var(--atlas-cat-accent); background: var(--atlas-cat-wash); box-shadow: none; }
html:not([data-theme]) body.shop-body.atlas #product .detail-spec[aria-pressed='true'] { box-shadow: inset 3px 0 var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas #product .detail-info { border: 1px solid var(--atlas-cat-rule); border-radius: 7px; background: #fff !important; box-shadow: none; }
html:not([data-theme]) body.shop-body.atlas #product .detail-info > article { border-color: var(--atlas-cat-rule); }
html:not([data-theme]) body.shop-body.atlas #product .detail-info :is(svg, i) { color: var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas #product .detail-info span { color: var(--atlas-cat-muted); }
html:not([data-theme]) body.shop-body.atlas #product .detail-info b { color: var(--atlas-cat-ink); }
html:not([data-theme]) body.shop-body.atlas #product .description-panel { padding: 17px 0 9px; border: 0; border-top: 1px solid var(--atlas-cat-rule); border-radius: 0; background: #fff; box-shadow: none; }
html:not([data-theme]) body.shop-body.atlas #product .description-panel h2 { margin: 0 0 10px; padding: 0; border: 0; color: var(--atlas-cat-ink); font: 700 21px/1.3 var(--atlas-cat-editorial); letter-spacing: -.01em; }
html:not([data-theme]) body.shop-body.atlas #product :is(#detail-content, .description-panel li) { color: var(--atlas-cat-muted); font: 400 14px/1.75 var(--atlas-cat-sans); }
html:not([data-theme]) body.shop-body.atlas #product #detail-content { white-space: pre-wrap; }
html:not([data-theme]) body.shop-body.atlas #product .description-panel li::before { background: var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel {
  position: sticky;
  top: calc(var(--header-h, 64px) + 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 2vw, 25px);
  border: 1px solid var(--atlas-cat-rule);
  border-top: 3px solid var(--atlas-cat-accent);
  border-radius: 7px;
  background: var(--atlas-cat-stone);
  color: var(--atlas-cat-ink);
  box-shadow: none;
}
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel > * { grid-column: 1 / -1; min-width: 0; }
html:not([data-theme]) body.shop-body.atlas #product .purchase-top { gap: 7px; padding: 0 0 13px; border: 0; border-bottom: 1px solid var(--atlas-cat-rule); border-radius: 0; background: transparent; }
html:not([data-theme]) body.shop-body.atlas #product :is(.purchase-top > span, .purchase-panel > label, .purchase-total > span, .purchase-note) { color: var(--atlas-cat-muted); }
html:not([data-theme]) body.shop-body.atlas #product :is(#detail-price, #purchase-total) { color: var(--atlas-cat-accent); font-family: var(--atlas-cat-sans); font-variant-numeric: tabular-nums; }
html:not([data-theme]) body.shop-body.atlas #product #detail-stock { border-color: var(--atlas-cat-rule); background: #fff; color: var(--atlas-cat-muted); }
html:not([data-theme]) body.shop-body.atlas #product .wholesale-tiers { border-color: var(--atlas-cat-rule); }
html:not([data-theme]) body.shop-body.atlas #product .wholesale-tiers span { color: var(--atlas-cat-accent); }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel .quantity { border-color: var(--atlas-cat-rule); border-radius: 4px; background: #fff; }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel .quantity :is(button, input) { min-height: 44px; background: #fff !important; color: var(--atlas-cat-ink); }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel .quantity button { min-width: 44px; }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel .quantity button:hover:not(:disabled) { background: var(--atlas-cat-wash) !important; }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel .quantity input { border-left-color: var(--atlas-cat-rule) !important; border-right-color: var(--atlas-cat-rule) !important; }
html:not([data-theme]) body.shop-body.atlas #product .purchase-total { border-color: var(--atlas-cat-rule); }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel :is(#buy-now, #add-to-cart) { width: 100%; min-height: 46px; border: 1px solid var(--atlas-cat-accent) !important; border-radius: 4px; font: 700 14px/1.25 var(--atlas-cat-sans); box-shadow: none; }
html:not([data-theme]) body.shop-body.atlas #product #buy-now { background: var(--atlas-cat-accent) !important; color: #fff !important; }
html:not([data-theme]) body.shop-body.atlas #product #buy-now:hover:not(:disabled) { background: var(--atlas-cat-deep) !important; }
html:not([data-theme]) body.shop-body.atlas #product #add-to-cart { background: #fff !important; color: var(--atlas-cat-accent) !important; }
html:not([data-theme]) body.shop-body.atlas #product #add-to-cart:hover:not(:disabled) { background: var(--atlas-cat-wash) !important; }
html:not([data-theme]) body.shop-body.atlas #product .purchase-panel :is(#buy-now, #add-to-cart):disabled { border-color: var(--atlas-cat-rule) !important; background: #fff !important; color: var(--atlas-cat-muted) !important; opacity: 1; }

html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories, #catalog, #product) :is(button, select, input, a):focus-visible {
  outline: 2px solid var(--atlas-cat-accent);
  outline-offset: 2px;
}
html:not([data-theme]) body.shop-body.atlas #product .quantity :is(button, input):focus-visible { outline-offset: -3px; }

@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)); }
  html:not([data-theme]) body.shop-body.atlas #home .marketplace-layout .home-products-heading { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  html:not([data-theme]) body.shop-body.atlas #home .marketplace-section { padding-top: 12px; }
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section .marketplace-layout, #categories .directory-layout, #catalog .catalog-layout) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-layout .category-sidebar, #categories .directory-layout > .category-sidebar, #catalog .catalog-filter) { position: static; top: auto; }
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-sidebar-head { padding: 6px 8px 6px 12px !important; }
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-mobile-toggle { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--atlas-cat-rule); border-radius: 4px; background: #fff; color: var(--atlas-cat-accent); }
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories) .category-mobile-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
  html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar):not(.mobile-open) > .category-side-list { display: none; }
  html:not([data-theme]) body.shop-body.atlas :is(#home .category-sidebar, #categories .category-sidebar).mobile-open > .category-side-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 260px; padding-top: 4px; }
  html:not([data-theme]) body.shop-body.atlas #home .marketplace-layout .home-products-heading { align-items: stretch; gap: 9px; margin-bottom: 11px; padding-bottom: 10px; }
  html:not([data-theme]) body.shop-body.atlas #home .home-product-tools { width: 100%; }
  html:not([data-theme]) body.shop-body.atlas #home #home-product-sort { width: 120px !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: 11px 8px; }
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-card { padding: 5px 5px 0; border-radius: 6px; }
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual { aspect-ratio: 1.36; }
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-visual img { padding: 22px 9% 6px; }
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-info { padding: 7px 3px 8px; }
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button { min-height: 44px; padding: 0 6px; }
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button svg { display: none; }
  html:not([data-theme]) body.shop-body.atlas #catalog .catalog-head { flex-wrap: wrap; margin-bottom: 12px; }
  html:not([data-theme]) body.shop-body.atlas #catalog .product-area { display: contents; }
  html:not([data-theme]) body.shop-body.atlas #catalog .result-line { display: flex; grid-row: 1; gap: 5px; min-height: 44px; margin: 0; }
  html:not([data-theme]) body.shop-body.atlas #catalog .catalog-filter { display: none; grid-row: 2; }
  html:not([data-theme]) body.shop-body.atlas #catalog .catalog-filter.mobile-open { display: grid; }
  html:not([data-theme]) body.shop-body.atlas #catalog .catalog-categories-block > .category-side-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 260px; }
  html:not([data-theme]) body.shop-body.atlas #catalog #mobile-filter { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-left: auto; padding: 0 9px; border: 1px solid var(--atlas-cat-active-line); border-radius: 4px; background: var(--atlas-cat-wash); color: var(--atlas-cat-accent); }
  html:not([data-theme]) body.shop-body.atlas #catalog .subcategory-tabs:not([hidden]) { margin: 0; }
  html:not([data-theme]) body.shop-body.atlas #catalog .subcategory-tab { min-height: 42px; }
  html:not([data-theme]) body.shop-body.atlas #product .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html:not([data-theme]) body.shop-body.atlas #product .detail-main { display: contents; }
  html:not([data-theme]) body.shop-body.atlas #product .detail-main > :is(#detail-icon, #detail-category, #detail-name, #detail-desc) { grid-area: auto; }
  html:not([data-theme]) body.shop-body.atlas #product #detail-category { order: 1; margin: 0; }
  html:not([data-theme]) body.shop-body.atlas #product #detail-name { order: 2; margin-top: -5px; }
  html:not([data-theme]) body.shop-body.atlas #product #detail-desc { order: 3; }
  html:not([data-theme]) body.shop-body.atlas #product #detail-icon { order: 4; aspect-ratio: 1.9; }
  html:not([data-theme]) body.shop-body.atlas #product #detail-icon.has-banner { aspect-ratio: auto; }
  html:not([data-theme]) body.shop-body.atlas #product .detail-specs { order: 5; }
  html:not([data-theme]) body.shop-body.atlas #product .purchase-panel { order: 6; position: static; }
  html:not([data-theme]) body.shop-body.atlas #product .detail-info { order: 7; grid-template-columns: minmax(0, 1fr); }
  html:not([data-theme]) body.shop-body.atlas #product .detail-info > article { padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--atlas-cat-rule); }
  html:not([data-theme]) body.shop-body.atlas #product .detail-info > article:last-child { border-bottom: 0; }
  html:not([data-theme]) body.shop-body.atlas #product .description-panel { order: 8; }
}
@media (max-width: 345px) {
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .store-product-footer { align-items: stretch; flex-direction: column; }
  html:not([data-theme]) body.shop-body.atlas :is(#hot-products, #category-page-products, #product-list) .product-buy-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-theme]) body.shop-body.atlas :is(#home .marketplace-section, #categories, #catalog, #product) :is(button, .store-product-card, .product-visual img) { transition: none; }
}
