/* shopbirthstone shell + month alignment, 2026-11-15
   Root-fix: theme 100vw + calc(50% - 50vw) breakout on .sbs-header/.sbs-section-ivory/.sbs-hero/.sbs-band
   conflicts with later .sbs-section { max-width: var(--sbs-max) } (1240px, same specificity, later wins)
   and with .main-container { max-width: 1260px; padding: 30px }. The ivory block becomes 1240px
   with viewport-based negative margins and sits left of the centered header / Shop by Category axis;
   100vw can also overflow and, with overflow-x:clip, clip the header account icon.
   Do not stretch only the month module to hide a wider container overflow.
   Does not change month grid columns (mobile 2-col / 600px 4-col / 960px 6-col stay in sbs-visual). */

/* 1) Stop 100vw breakout. Full-bleed is 100% of an unpadded full-width parent. */
html:root .sbs-bleed,
html:root .sbs-header,
html:root .sbs-footer-wrap,
html:root .sbs-hero,
html:root .sbs-band,
html:root .sbs-section-ivory,
html:root .lux-bleed {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Ivory background must not inherit .sbs-section's 1240 cap; children already center at --sbs-max. */
html:root .sbs-section.sbs-section-ivory {
  width: 100%;
  max-width: none;
}

/* 2) Top-level shell is the real viewport width, not a leftover min/max box. */
html:root,
html:root body,
html:root .wrapper,
html:root .page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 3) Homepage: unwrap the 1260 + 30px padded main-container so header, ivory, and
   category share one viewport axis. Inner sections stay max-width: 1240 and centered. */
html:root body.cms-index-index .main-container,
html:root body.cms-home .main-container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

html:root body.cms-index-index .main,
html:root body.cms-index-index .col-main,
html:root body.cms-index-index .sbs-home,
html:root body.cms-home .main,
html:root body.cms-home .col-main,
html:root body.cms-home .sbs-home {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  float: none;
  box-sizing: border-box;
}

html:root body.cms-index-index .sbs-home > .sbs-section:not(.sbs-section-ivory),
html:root body.cms-home .sbs-home > .sbs-section:not(.sbs-section-ivory) {
  max-width: var(--sbs-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* 4) Other pages: keep the 1260 content shell, but force it to stay centered. */
html:root body:not(.cms-index-index):not(.cms-home) .main-container {
  margin-left: auto;
  margin-right: auto;
}
