/*
 * Atelier: the few rules its shared blocks need on top of the theme's CSS
 * variables. Loaded only on stores using Atelier, every rule under .atelier.
 */

/* One container for the whole page, as the editorial header, hero and collection use:
   16px sides on a phone, 32px on a tablet, 50px from a laptop up, and at most 1620px
   of content (1720px less the sides), so the shared blocks (product list, footer) match. */
.atelier .max-w-7xl {
  max-width: 1720px;
}
@media (min-width: 768px) {
  .atelier .max-w-7xl {
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1024px) {
  .atelier .max-w-7xl {
    padding-left: 50px;
    padding-right: 50px;
  }
}

/* Product photos sit on the light grey panel, like the hero and the collection
   cards; a white studio backdrop takes the grey (multiply). */
.atelier .group > a:first-child {
  background: var(--k-surface);
}
.atelier .group > a:first-child img {
  mix-blend-mode: multiply;
}

/* Room at the bottom of the page for the phone bottom bar (header/editorial.tsx). */
@media (max-width: 1023px) {
  .atelier {
    padding-bottom: 76px;
  }
}

/* A thin, light page scrollbar, and its room kept when a panel (search, menu, cart)
   locks the page, so nothing jumps sideways as it opens. */
html:has(.atelier) {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}
html:has(.atelier)::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
html:has(.atelier)::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 6px;
}
html:has(.atelier)::-webkit-scrollbar-track {
  background: transparent;
}

/* Shared sections (product rows, text, newsletter, image with text) in Atelier's own
   style, whatever accent the store picked: light headings, black buttons with white
   words, and the light grey panel for bands. */
.atelier {
  --k-head-weight: 400;
  --k-head-tracking: -0.01em;
  --k-btn-bg: var(--k-text);
  --k-btn-fg: var(--k-page);
  --k-btn-border: 1px solid var(--k-text);
  --k-band-bg: var(--k-surface);
}
