/* Sugar At — shared interface system. Existing page order and layouts are retained.
   Uses the site's local Nimbus Sans; no third-party brand fonts or artwork. */
:root {
  --sugar-ui-font: Nimbus, 'Helvetica Neue', Arial, sans-serif;
  --sans: var(--sugar-ui-font);
  --serif: var(--sugar-ui-font);
  --paper: #f8f7f4;
  --ink: #17253b;
  --muted: #626a73;
  --rule: #17253b26;
  --ui-surface: #eeede8;
  --ui-radius: 18px;
  --ui-frame: clamp(12px, 2.1vw, 32px);
  --ui-ease: cubic-bezier(.22,.68,0,1);
  --ui-fast: 240ms;
  --ui-medium: 400ms;
  --ui-arrival: 480ms;
  font-family: var(--sugar-ui-font);
  text-rendering: optimizeLegibility;
}
body { background: var(--paper); color: var(--ink); }
button, input, select, textarea { font-family: var(--sugar-ui-font); }
::selection { background: #edbbd4; color: #17253b; }
:is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid #476b9b; outline-offset: 4px; }

/* Navigation keeps its original logo / links / tools order. */
.sa-mast {
  position: sticky;
  top: 12px;
  margin: 12px var(--ui-frame) 14px;
  padding: 0 clamp(20px,2.5vw,40px);
  height: 82px;
  border: 0;
  border-radius: var(--ui-radius);
  background: #eeede9;
  grid-template-columns: minmax(120px,1fr) auto minmax(120px,1fr);
  transition: background var(--ui-medium) var(--ui-ease), box-shadow var(--ui-medium) var(--ui-ease);
}
.sa-mast.ui-scrolled { background: #eeede9f5; box-shadow: 0 6px 24px #17253b0e; backdrop-filter: blur(12px); }
#main,#main [id] { scroll-margin-top: 116px; }
.sa-mark { width: clamp(105px,9.2vw,142px); }
.sa-primary { gap: clamp(18px,2.1vw,38px); font-size: 13px; }
.sa-tools { gap: clamp(15px,1.7vw,26px); font-size: 13px; }
.sa-primary a { position: relative; text-decoration: none!important; padding-block: 13px; }
.sa-primary a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ui-ease);
}
.sa-primary a:is(:hover,:focus-visible,[aria-current=page])::after { transform: scaleX(1); }
.sa-tools button { width: 36px; height: 42px; border-radius: 50%; transition: background 180ms; }
.sa-tools button:hover { background: #dedfd9; }
.sa-bag { font-variant-numeric: tabular-nums; }

/* One type hierarchy across commerce, editorial, community and service pages. */
.sa-home {
  --sa-paper: var(--paper); --sa-ink: var(--ink);
  --sa-sans: var(--sugar-ui-font); --sa-serif: var(--sugar-ui-font);
}
.bc-commerce {
  --paper: #f8f7f4; --ink: #17253b; --subtle: #626a73; --rule: #17253b26;
  --plate: #eeede8; --display: var(--sugar-ui-font);
  font-family: var(--sugar-ui-font);
}
.se { --se-paper: #f8f7f4; --se-ink: #17253b; --se-dim: #626a73; --se-line: #17253b26; }
.ec-page,.bs-studio { --ec-paper: #f8f7f4; --ec-ink: #17253b; --ec-line: #17253b26; }
.si-page { --paper: #f8f7f4; --ink: #17253b; --quiet: #626a73; --line: #17253b26; }
:is(.sa-home,.bc-commerce,.se,.ec-page,.bs-studio,.si-page,.ba-page,.sa-service) h1,
.ba-page .ba-page-intro h1,.bs-studio .bs-intro h1 {
  font-family: var(--sugar-ui-font); font-weight: 400; font-style: normal;
  font-size: clamp(48px,6.5vw,104px); line-height: 1.04; letter-spacing: -.052em;
  text-wrap: balance;
}
:is(.sa-home,.bc-commerce,.se,.ec-page,.bs-studio,.si-page,.ba-page,.sa-service) h2 {
  font-family: var(--sugar-ui-font); font-weight: 400; font-style: normal;
  letter-spacing: -.04em; line-height: 1.09;
}
.sa-home h2,.se h2,.ec-page h2,.bs-studio .bs-next h2 { font-size: clamp(36px,4.6vw,72px); }
.bc-commerce h2 { font-size: clamp(32px,4vw,64px); }
.bc-commerce .bc-bag-item-copy h2 { font-size: clamp(24px,3vw,42px); }
.bc-commerce .bc-bag-summary h2 { font-size: clamp(31px,3.5vw,61px); }
.bc-commerce .bn-index-item h2 { font-size: clamp(28px,3.8vw,58px); }
.sa-home h1 em,.sa-home h2 em,.se em,.ec-page h1 em,.ec-layer blockquote,
.si-receipt h2,.sp-details>h2,.sa-foot-intro i,
.se .se-glass-caption h3,.se .se-glass-dialog-head h3 {
  font-family: var(--sugar-ui-font); font-style: normal; font-weight: 400;
  letter-spacing: -.04em; line-height: 1.1;
}
.ec-page h1 em { line-height: inherit; letter-spacing: inherit; }
.sa-home h1 { font-size: clamp(68px,8.1vw,136px); line-height: 1.02; letter-spacing: -.055em; }
.sa-home .sa-home-hero-copy h1 {
  font-size: clamp(68px,8.1vw,136px); max-width: 100%; white-space: normal;
}
.sa-home :is(.sa-home-kicker),.bc-commerce .bc-kicker,.se .se-label,.ec-label {
  font-family: var(--sugar-ui-font); font-size: 11px; font-weight: 700;
  letter-spacing: .075em; line-height: 1.5;
}
.sa-home-hero-sub { font-size: clamp(19px,1.8vw,28px); line-height: 1.4; letter-spacing: -.02em; }
.sa-home-piece-copy h3 { font-size: clamp(20px,2vw,28px); letter-spacing: -.025em; }
.bc-commerce .bc-card-copy h2 { font: 400 clamp(17px,1.55vw,23px)/1.25 var(--sugar-ui-font); letter-spacing: -.025em; }
.bc-commerce :is(.bc-inline-link,.bn-series-product-link,.bc-launch-link) { font-family: var(--sugar-ui-font); }
.bc-product-info h1 { font-size: clamp(42px,4.6vw,72px); }
.bc-product-info :is(.bc-product-description,.bc-product-story) { font-size: 15px; line-height: 1.6; }
.ba-page h2 { font-size: clamp(28px,3vw,44px); font-weight: 400; }
.si-receipt h2,.sp-details>h2 { font-size: clamp(30px,3.1vw,48px); }
.sa-service h2 { font-size: 23px; }
.se .se-glass-heading h2 { font-size: clamp(42px,5.5vw,88px); line-height: 1.06; letter-spacing: -.05em; }
.se p,.ec-page p { text-wrap: pretty; }

/* Large, quiet image surfaces; no changes to product image proportions. */
.sa-home-hero { margin: 0 var(--ui-frame); border-radius: 22px; isolation: isolate; }
.sa-home-hero-copy { padding-left: clamp(26px,4.4vw,75px); }
.sa-home-hero .sa-home-solid { border-radius: 999px; }
.sa-home-piece-image { border-radius: var(--ui-radius); overflow: hidden; }
.sa-home-piece-copy { padding-top: 18px; }
.sa-home-campaign,.sa-home-craft { margin-inline: var(--ui-frame); border-radius: 22px; overflow: hidden; }
.sa-home-open { border-radius: 22px; }
.sa-home-open figure,.sa-home-making figure { overflow: hidden; border-radius: var(--ui-radius); }
.sa-home :is(.sa-home-line,.sa-home-solid) { font-size: 13px; }
.sa-home-arrow { display: inline-block; position: relative; width: 11px; height: 11px; font-size: 0!important; flex: 0 0 11px; }
.sa-home-arrow::before { content: ''; position: absolute; width: 12px; height: 1px; background: currentColor; left: 0; top: 5px; transform: rotate(-45deg); }
.sa-home-arrow::after { content: ''; position: absolute; width: 7px; height: 7px; right: 0; top: 0; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.sa-home-solid { min-height: 47px; padding-inline: 25px; }
.bc-shop-opening { margin-inline: var(--ui-frame); border-radius: 22px; background: #eeede8; }
.bc-shop-intro { padding-block: clamp(42px,5.4vw,86px); }
.bc-card-photo,.bc-main-photo,.bc-bag-image,.bn-series-product-image,
.bn-index-item>div,.bn-feature-img,.bn-styling>figure,.lb-look>figure,.lb-details-grid figure,
.se-study>figure,.se-object,.se-material-hero>figure,.si-intro figure img,
.ba-account-art,.ec-iframe-wrap {
  border-radius: var(--ui-radius); overflow: hidden;
}
.bn-feature,.ba-review-panel,.bc-bag-summary,.ec-lab-wrap { border-radius: var(--ui-radius); }
.bc-card-photo { transition: background 220ms var(--ui-ease); }
.bc-card-photo img,.sa-home-piece .sa-home-piece-image img { transition: transform var(--ui-medium) var(--ui-ease); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .bc-card:hover .bc-card-photo img { transform: scale(1.035); }
  .bc-card:hover .bc-card-photo { background: #e8e7e1; }
}
.bc-favourite { background: #f8f7f4de; border: 1px solid #17253b14; backdrop-filter: blur(8px); }
.bc-favourite[aria-pressed=true] { background: #edbbd4; }
.bc-card-copy { padding-top: 16px; }
.bc-card-sub { line-height: 1.5; }
.bc-pdp { column-gap: clamp(28px,4vw,66px); }
.bc-product-info { padding: clamp(22px,2.8vw,44px); border-radius: var(--ui-radius); background: #eeede880; max-width: none; align-self: start; }
.bc-product-info .bc-kicker { color: #626a73; }
.bc-thumbnails { gap: 9px; padding-top: 14px; }
.bc-thumbnails button { border-radius: 10px; overflow: hidden; opacity: .62; transition: opacity var(--ui-fast), border-color var(--ui-fast), background var(--ui-fast); }
.bc-thumbnails button:is(:hover,:focus-visible,.is-active) { opacity: 1; }
.bc-thumbnails button.is-active { border: 1px solid var(--ink); background: #e4e5df; }
.bc-variant-option input:checked+span { outline-offset: 4px; }
.bc-product-form details { border-color: #17253b26; }
.bc-product-form summary { padding-block: 19px; font-size: 14px; }
.bc-product-form details[open]>:not(summary),.lb-notes details[open]>:not(summary),.ec-partner-faq details[open]>:not(summary) { animation: ui-detail 320ms var(--ui-ease); }
/* .se-button is also the hardware-guide article; only controls get pill corners. */
.bc-commerce .bc-button,.btn,.ec-button,.si-actions .si-submit,
.bs-primary,.bs-secondary,button.se-button,a.se-button,.sa-home-solid,#search-form button {
  border-radius: 999px; min-height: 46px;
  transition: background var(--ui-fast) var(--ui-ease), color var(--ui-fast) var(--ui-ease), border-color var(--ui-fast) var(--ui-ease), transform var(--ui-fast) var(--ui-ease);
}
.bc-commerce .bc-button { font-size: 14px; letter-spacing: .005em; }
.bc-commerce .bc-button:hover:not(:disabled) { background: #2c3f58; color: #fff; }
.bc-commerce .bc-button:active,.btn:active,.si-submit:active { transform: translateY(1px); }
.bc-bag-summary { background: #eeede8; }
.bc-stepper { border-radius: 999px; overflow: hidden; }
.bc-quantity-label { border-radius: 999px; overflow: hidden; }
.bc-estimate { border-color: #17253b26; }

/* Filters and controls retain their native behavior and selection states. */
.bc-category-nav { gap: 7px; border-bottom: 0; padding: 3px 2px 9px; scrollbar-width: thin; }
.bc-category-nav a { padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; color: var(--ink); font-size: 13px; }
.bc-category-nav a,.se-nav a,.ec-nav a { transition: background var(--ui-fast), color var(--ui-fast), border-color var(--ui-fast); }
.bc-category-nav a:hover { border-color: transparent; background: #eeede8; }
.bc-category-nav a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bc-filter-form { gap: 12px 22px; padding-block: 14px 22px; align-items: center; }
.bc-search-field { background: #eeede8; padding: 2px 16px; border-radius: 999px; border: 1px solid transparent; }
.bc-search-field:focus-within { border-color: #476b9b; }
.bc-search-field input { min-height: 40px; }
.bc-search-field input:focus-visible { outline: 0; }
.bc-select-label { align-items: center; }
.bc-select-label select { min-height: 42px; border-radius: 10px; padding: 8px 12px; background: #eeede8; }
.se-nav,.ec-nav { border: 0; padding-block: 8px; gap: 6px; }
.se-nav a,.ec-nav a { border-radius: 999px; min-height: 40px; padding: 10px 18px; font: 400 13px/1.4 var(--sugar-ui-font); }
.se-nav a[aria-current=page],.ec-nav a[aria-current=page] { text-decoration: none; background: #17253b; color: #f8f7f4; box-shadow: none; }
.se-nav a:hover,.ec-nav a:hover { text-decoration: none; background: #e8e7e2; color: #17253b; }
.se-nav a[aria-current=page]:hover,.ec-nav a[aria-current=page]:hover { background: #2c3f58; color: #fff; }
.ec-filters button,.ec-layer-controls button,.bs-templates button,.bs-device-options button,
.se-face-controls button,.se-glass-menu button { border-radius: 999px; transition: background 200ms, color 200ms; }
.bs-studio .bs-templates button { border-radius: 999px; padding-inline: 15px; min-height: 40px; }
.bs-studio .bs-actions button { border-radius: 999px; }
.ec-directory-item { transition: background 220ms; }
.ec-directory-item:hover { background: #eeede880; }
.ec-sample-grid article,.ec-related,.bs-controls { border-radius: var(--ui-radius); }
.se-about-top,.se-hardware-hero,.ec-community-hero,.ec-agent-hero,.ec-partner-hero { margin-inline: var(--ui-frame); border-radius: 22px; overflow: hidden; }
.ec-community-hero>.ec-lead,.ec-agent-hero>.ec-lead,.ec-partner-hero>.ec-lead { min-width: 0; }
.se-glass-stage { border-radius: var(--ui-radius); overflow: hidden; }
.se-glass-sidebar { border-radius: var(--ui-radius); }

/* Forms, dialogs and support pages share the same tactile control language. */
.si-inbox { background: #eeede880; border-radius: var(--ui-radius); padding: clamp(22px,3vw,42px); }
.si-field :is(input,select,textarea),.ba-form input,.bs-field :is(input,textarea,select) {
  border: 1px solid #17253b26; border-radius: 10px; background: #fdfcf9;
  padding: 12px 14px; min-height: 46px; font-size: 16px;
  transition: border-color 180ms, background 180ms;
}
.si-field :is(input,select,textarea):focus,.ba-form input:focus { border-color: #476b9b; background: white; }
.si-actions { gap: 10px 20px; }
.si-actions .si-submit { padding-inline: 24px; }
.ba-account-panel { background: #eeede880; padding: clamp(22px,3vw,42px); border-radius: var(--ui-radius); max-width: none; }
.ba-notice { border-radius: 10px; }
.ba-page .bc-button,.ba-auth-options .bc-button { border-radius: 999px; }
.sa-service details { padding-block: 23px; }
.sa-service summary { font-size: 18px; }
.sa-service details[open] p { animation: ui-detail 320ms var(--ui-ease); }
.sa-dialog,.se-glass-dialog { border: 0; border-radius: 22px; box-shadow: 0 30px 100px #17253b26; }
.sa-dialog::backdrop,.se-glass-dialog::backdrop { background: #17253b66; backdrop-filter: blur(5px); }
.sa-dialog[open],.se-glass-dialog[open] { animation: ui-dialog 280ms var(--ui-ease); }
.sa-modal-title h2 { letter-spacing: -.04em; line-height: 1.1; }
.sa-modal-title button { border-radius: 50%; background: #eeede8; width: 42px; height: 42px; }
#search-input { border: 1px solid #17253b26; border-radius: 999px; padding: 12px 18px; background: #fff; }
#search-form button { padding: 12px 24px; }
.search-result img { border-radius: 12px; background: #eeede8; }
#toast { border-radius: 999px; box-shadow: 0 10px 30px #17253b1a; }
.sa-footer { margin: 0 var(--ui-frame) var(--ui-frame); border-radius: 22px; }
.sa-foot-intro h2 { font-size: clamp(42px,5vw,76px); line-height: 1.05; letter-spacing: -.045em; }
.sa-foot-intro i { color: #edbbd4; }
.sa-footer nav { gap: 12px; }
.sa-footer nav a { font-size: 13px; }
.sa-foot-intro>a { display: inline-flex; align-items: center; min-height: 43px; padding: 10px 18px; border: 1px solid #f3f1ec70; border-radius: 999px; font-size: 13px; }
.sa-foot-intro>a:hover { background: #ffffff12; text-decoration: none; }

/* Content enters only as it is reached: no scroll locking or floating products. */
.ui-arrive { animation: ui-arrive var(--ui-arrival) var(--ui-ease) both; }
.ui-image-change { animation: ui-image 280ms var(--ui-ease); }
.ui-results-change { animation: ui-image 240ms var(--ui-ease); }
@keyframes ui-arrive { from { opacity: .72; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ui-image { from { opacity: .6; } to { opacity: 1; } }
@keyframes ui-detail { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ui-dialog { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }

@media (min-width: 1550px) {
  .bc-gallery { width: 100%; justify-self: center; }
}
@media (max-width: 1100px) {
  .sa-mast { grid-template-columns: auto 1fr auto; column-gap: 24px; padding-inline: 23px; }
  .sa-primary { justify-content: center; gap: 19px; font-size: 12px; }
  .sa-tools { gap: 10px; }
  .bc-product-info { padding: 25px; }
}
@media (max-width: 875px) {
  .sa-mast { grid-template-columns: auto 1fr; height: 68px; margin-top: 10px; padding-inline: 20px; top: 10px; }
  #main,#main [id] { scroll-margin-top: 100px; }
  .sa-primary { display: none; }
  .sa-tools { gap: 14px; }
  .sa-tools .sa-mobile-source { font-size: 12px; }
  .sa-home-hero-copy { padding-left: 30px; }
}
@media (max-width: 760px) {
  :is(.sa-home,.bc-commerce,.se,.ec-page,.bs-studio,.si-page,.ba-page,.sa-service) h1,
  .ba-page .ba-page-intro h1,.bs-studio .bs-intro h1 { font-size: clamp(43px,10.8vw,70px); line-height: 1.04; letter-spacing: -.045em; }
  .sa-home h1 { font-size: clamp(54px,13vw,80px); }
  .sa-home .sa-home-hero-copy h1 { font-size: clamp(54px,8.1vw,80px); }
  .sa-home h2,.se h2,.ec-page h2,.bs-studio .bs-next h2 { font-size: clamp(35px,8.7vw,55px); }
  .bc-product-info h1 { font-size: clamp(39px,9.3vw,58px); }
  .bc-commerce .bc-card-copy h2 { font-size: 18px; }
  .bc-product-info { padding: 24px; }
  .bc-pdp { row-gap: 18px; }
  .bc-thumbnails button { flex-basis: 54px; height: 60px; }
  .bc-search-field { flex-basis: 100%; max-width: none; border: 1px solid transparent; }
  .bc-filter-form { gap: 12px; }
  .bc-select-label select { max-width: 100%; font-size: 13px; }
  .bc-category-nav a { padding: 9px 14px; }
  .se-nav,.ec-nav { overflow-x: auto; white-space: nowrap; padding-inline: 18px; scrollbar-width: thin; }
  .se-nav a,.ec-nav a { flex-shrink: 0; padding: 9px 14px; }
  .si-inbox { padding: 23px; }
  .sa-home-hero,.sa-home-campaign,.sa-home-craft,.bc-shop-opening,
  .se-about-top,.se-hardware-hero,.ec-community-hero,.ec-agent-hero,.ec-partner-hero,.sa-footer { border-radius: 16px; }
  .sa-footer { padding-inline: 24px; }
}
/* Keep white mobile actions readable over the silver product image. */
@media (max-width: 650px) {
  .se-hardware-hero::after {
    background: linear-gradient(180deg,#101b2c99 0%,transparent 33%,transparent 46%,#0b14294d 60%,#0b1429bf 76%,#0b1429ed 100%);
  }
}
/* Keep headings fitted to the existing two-column layouts until they stack. */
@media (min-width: 651px) and (max-width: 760px) {
  .se-split h1,.ec-community-hero h1,.ec-agent-hero h1,.ec-partner-hero h1 {
    font-size: clamp(43px,6.5vw,50px);
  }
}
@media (min-width: 621px) and (max-width: 760px) {
  .bc-product-info h1,.bn-feature-text h1,.bc-shop-intro h1 {
    font-size: clamp(36px,5.3vw,42px);
  }
}
@media (max-width: 640px) {
  .sa-home .sa-home-hero-copy h1 { font-size: clamp(54px,13vw,80px); }
}
@media (max-width: 620px) {
  .bc-commerce .bn-index-item h2 { font-size: 27px; }
}
@media (max-width: 550px) {
  .sa-mast { height: 62px; border-radius: 14px; margin-bottom: 10px; padding-inline: 14px; column-gap: 12px; }
  .sa-mark { width: 100px; }
  .sa-tools { gap: 8px; }
  .sa-tools button { width: 28px; }
  .sa-tools .sa-mobile-source,.sa-bag { font-size: 11px; }
  .sa-home-hero-copy { padding-left: 24px; }
  .sa-home-hero-plate { max-width: 48%; font-size: 10px; }
  .sa-home-piece-copy h3 { font-size: 22px; }
  .sa-home-open { border-radius: 16px; }
  .bc-card-copy { padding-top: 12px; }
  .bc-product-info { padding: 23px 20px; }
  .bc-filter-form .bc-select-label { gap: 6px; }
  .bc-filter-form .bc-select-label select { padding-inline: 8px; }
  .sa-dialog { border-radius: 18px; padding: 24px 20px; }
  #search-form { gap: 8px; }
  #search-form button { padding-inline: 16px; }
  .sa-foot-intro h2 { font-size: 44px; }
}
@media (max-width: 370px) {
  .sa-home h1,.sa-home .sa-home-hero-copy h1 { font-size: 48px; }
  .sa-mast { padding-inline: 10px; }
  .sa-mark { width: 83px; }
  .sa-tools { gap: 4px; }
  .sa-tools .sa-mobile-source { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-arrive,.ui-image-change,.ui-results-change { animation: none!important; }
  .bc-card-photo img,.sa-home-piece .sa-home-piece-image img { transform: none!important; }
  *,*::before,*::after { scroll-behavior: auto!important; transition-duration: .001ms!important; animation-duration: .001ms!important; }
}
