/* Match the product and catalog content edges to the shared navigation grid. */
:root {
  --sam-chrome-width: 1360px;
  --sam-chrome-gutter: clamp(20px, 3vw, 48px);
  --sam-store-width: min(var(--sam-chrome-width), calc(100% - 2 * var(--sam-chrome-gutter)));
}
#view.gg-native-collection, #view.gg-native-product,
#view .sam-home-editorial .sam-featured {
  width: var(--sam-store-width);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
/* One height drives the sticky header, the drawers and the catalogue's scroll offsets. */
:root { --header-h: 84px; --bar-h: 84px; --nav-h: 0px; }
@media (max-width: 1319px) { :root { --header-h: 68px; --bar-h: 68px; } }

body #store-header,
body.home:has(.sam-home-editorial:not([hidden])) #store-header {
  margin-bottom: 0;
  height: var(--header-h);
  background: #fff;
}
#store-header .sam-header,
#store-header .sam-header-fallback {
  height: var(--header-h);
  color: #292929 !important;
  background: #fff !important;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none !important;
}
body:not(.gg-at-top) #store-header .sam-header {
  box-shadow: 0 3px 12px rgb(0 0 0 / 5%) !important;
}
#store-header .gg-topbar,
#store-header .sam-header-fallback {
  width: min(var(--sam-chrome-width, 1360px), calc(100% - 2 * var(--sam-chrome-gutter, clamp(20px, 3vw, 48px))));
  margin-inline: auto;
  padding: 0;
  height: 100%;
  gap: 20px;
}
#store-header .gg-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}
#store-header .sam-header-fallback { display: flex; align-items: center; justify-content: space-between; }
.sam-header-fallback nav { display: flex; gap: 16px; }
.sam-header-fallback nav a { display: inline-flex; min-height: 44px; align-items: center; }
#store-header .gg-logo {
  width: 164px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
}
#store-header .gg-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: none !important;
}
#store-header .sam-header .gg-nav {
  display: flex;
  height: 100%;
  width: max-content;
  max-width: none;
  padding: 0;
  margin: 0;
  justify-self: center;
  align-items: center;
  gap: clamp(24px, 1.8vw, 28px);
  overflow: visible;
}
#store-header .sam-header .gg-nav-link {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #292929 !important;
  display: flex;
  min-height: 44px;
  padding: 0;
  margin: 0;
  font: 400 14px/1.35 "Inter", Arial, sans-serif;
  letter-spacing: normal;
  text-decoration: none;
}
#store-header .gg-nav-link span { position: relative; }
#store-header .gg-nav-link span::after {
  background: currentColor;
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -5px;
  height: 1px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .16s ease;
}
#store-header .gg-nav-link:is(:hover, :focus-visible, [aria-current], [aria-expanded="true"]) span::after { transform: scaleX(1); }
#store-header .gg-nav-link:is(:hover, :focus-visible) span { text-decoration: none; }
#store-header .gg-tools {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 2px;
  margin: 0;
}
#store-header .gg-tool,
#store-header .gg-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent !important;
  color: #292929;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}
#store-header .gg-tool > svg { width: 21px; height: 21px; stroke-width: 1.6; }
#store-header .gg-tool:is(:hover, :active), #store-header .gg-search-form button:hover {
  background: #f2f2f2 !important;
}
#store-header .gg-menu-toggle { display: none; }
/* The checkout shares the same navigation and access to the customer's cart. */
body.gg-native-checkout #store-header .sam-header .gg-tools { display: flex !important; }
body.gg-native-checkout #store-header .sam-compact .gg-menu-toggle { display: inline-flex !important; }
@media (min-width: 1320px) {
  body.gg-native-checkout #store-header .sam-header:not(.sam-compact) .gg-nav { display: flex !important; }
}

#store-header .gg-counter { font: 600 10px/16px "Inter", Arial, sans-serif; min-width: 16px; height: 16px; padding: 0 3px; background: #333; color: #fff; }
#store-header .gg-panels { z-index: 3; }
#store-header .gg-shade {
  background: rgb(25 25 25 / 21%);
  opacity: 1;
  z-index: -1;
  border: 0;
}
#store-header #gg-mega,
#store-header .gg-search-panel {
  background: #fff;
  color: #292929;
  border: 1px solid #e8e8e8;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 18px rgb(0 0 0 / 6%);
  backdrop-filter: none;
  position: absolute;
  top: 0;
  max-height: calc(100dvh - var(--header-h) - 1rem);
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
#store-header #gg-mega { width: max-content; min-width: 250px; max-width: min(600px, 94vw); padding: 12px 20px; }
#store-header .gg-sub-links { display: flex; gap: 26px; padding: 0; margin: 0; }
#store-header .gg-sub-links > div { flex: 1; min-width: 0; }
#store-header #gg-mega a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: #292929;
  font: 400 14px/1.45 "Inter", Arial, sans-serif;
  text-decoration: none;
}
#store-header #gg-mega a:hover { text-decoration: underline; text-underline-offset: .25em; }
#store-header .sam-menu-all { border-bottom: 1px solid #e8e8e8; }
#store-header .sam-menu-account { border-top: 1px solid #e8e8e8; }
#store-header .gg-search-panel {
  width: min(450px, 100%);
  padding: 18px;
  transform: none;
  left: auto;
  right: max(var(--sam-chrome-gutter, clamp(20px, 3vw, 48px)), calc((100% - var(--sam-chrome-width, 1360px)) / 2));
}
#store-header .sam-search-row { display: flex; align-items: center; gap: 6px; }
#store-header .sam-header .gg-search-form {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: #292929;
  background: #fff;
  border: 1px solid #929292;
  border-radius: 4px;
  backdrop-filter: none;
  overflow: clip;
}
#store-header .sam-header .gg-search-form input {
  min-width: 0;
  color: #292929;
  font: 400 16px/1.45 "Inter", Arial, sans-serif;
}
#store-header .gg-search-form input::placeholder { color: #595959; opacity: 1; }
#store-header .gg-results:empty { display: none; }
#store-header .gg-result-product, #store-header .gg-search-cats a, #store-header .gg-show-results { min-height: 44px; }
#store-header .gg-search-cats a { display: inline-flex; align-items: center; }
#store-header .gg-mobile-panel {
  color: #292929;
  background: #fff;
  width: min(370px, calc(100vw - 24px));
  padding: 0 20px max(24px, env(safe-area-inset-bottom));
  border-right: 1px solid #e8e8e8;
  overscroll-behavior: contain;
}
body.gg-mobile-open #store-header .gg-shade { z-index: 46; }
#store-header .gg-mobile-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e8e8e8;
}
#store-header .gg-mobile-head strong { font: 600 18px/1.35 "Inter", Arial, sans-serif; }
#store-header .gg-mobile-nav { margin: 0; padding: 6px 0; }
#store-header .sam-mobile-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  border-bottom: 1px solid #ededed;
}
#store-header .sam-mobile-category > a,
#store-header .gg-mobile-nav > a,
#store-header .sam-mobile-category > div a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 4px 0;
  text-decoration: none;
  font: 400 15px/1.45 "Inter", Arial, sans-serif;
}
#store-header .sam-mobile-category > button {
  width: 44px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #292929;
  background: transparent;
  border: 0;
}
#store-header .sam-mobile-category > button svg { width: 15px; height: 15px; }
#store-header .sam-mobile-category > button[aria-expanded=true] svg { transform: rotate(180deg); }
#store-header .sam-mobile-category > div { grid-column: 1 / -1; padding-inline: 12px; }
#store-header .sam-mobile-category > div a { font-size: 14px; color: #535353; }
#store-header .gg-mobile-nav [aria-current] { text-decoration: underline; text-underline-offset: 4px; }
#store-header .sam-mobile-extras { padding-top: 10px; }
#store-header .gg-mobile-bottom { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 4px 0; border: 0; font: 400 14px/1.45 "Inter", Arial, sans-serif; }
#store-header .gg-mobile-bottom svg { width: 18px; height: 18px; }
#store-header :is(a, button, summary, input):focus-visible {
  outline: 2px solid #31546c;
  outline-offset: -2px;
}
#store-header .gg-search-form:focus-within { outline: 2px solid #31546c; outline-offset: 2px; box-shadow: none; }
#store-header .gg-search-form input:focus-visible { outline: 0; }

/* The compact layout removes the desktop links from layout and keyboard order. */
#store-header .sam-header.sam-compact .gg-nav { display: none; }
#store-header .sam-compact .gg-topbar { grid-template-columns: 1fr auto 1fr; gap: 0; }
#store-header .sam-compact .gg-menu-toggle { display: inline-flex; justify-self: start; margin: 0; }
#store-header .sam-compact .gg-logo { justify-self: center; width: clamp(104px, 32vw, 154px); }
#store-header .sam-compact .gg-heart { display: none; }
#store-header .sam-compact .gg-tools { gap: 0; }
@media (max-width: 1319px) {
  #store-header .sam-header .gg-nav { display: none; }
  #store-header .sam-header .gg-topbar { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 0; }
  #store-header .sam-header .gg-menu-toggle { display: inline-flex; justify-self: start; margin: 0; }
  #store-header .sam-header .gg-logo { justify-self: center; width: clamp(104px, 32vw, 154px); }
  #store-header .sam-header .gg-heart { display: none; }
  #store-header .sam-header .gg-tools { gap: 0; }
}
@media (max-width: 560px) {
  #store-header .gg-search-panel { width: 100%; right: 0; padding: 14px 20px; }
}
@media (max-width: 355px) {
  #store-header .sam-header .gg-logo { width: 98px; }
  #store-header .sam-header .gg-topbar { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { #store-header .gg-nav-link span::after { transition: none; } }
@media (forced-colors: active) { #store-header :focus-visible, #store-header .gg-search-form:focus-within { outline-color: Highlight; } }
/* Keep the same optical edges as the header. Each footer region can wrap independently. */
.sam-footer {
  background: #333;
  color: #f5f5f5;
  font: 400 .875rem/1.6 "Inter", Arial, sans-serif;
  letter-spacing: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
.sam-footer-inner {
  box-sizing: border-box;
  width: min(var(--sam-chrome-width, 1360px), calc(100% - 2 * var(--sam-chrome-gutter, clamp(20px, 3vw, 48px))));
  margin-inline: auto;
}
.sam-footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(48px, 4.2vw, 64px) 36px;
}
.sam-footer-columns > * { min-width: 0; }
.sam-footer h2 {
  margin: 0 0 18px;
  color: #f5f5f5;
  font: 600 .875rem/1.3 "Inter", Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sam-footer p, .sam-footer ul, .sam-footer li, .sam-footer address { margin: 0; padding: 0; }
.sam-footer ul { list-style: none; }
.sam-footer address { font-style: normal; }
.sam-footer strong { font-weight: 600; }
.sam-footer a, .sam-footer summary { color: #f5f5f5; text-underline-offset: .25em; }
.sam-footer a { text-decoration: none; }
.sam-footer a:hover, .sam-footer summary:hover { text-decoration: underline; }
.sam-footer :is(a, summary, button, input):focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.sam-footer-discover > p { max-width: 32ch; }
.sam-footer .sam-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: min(100%, 15.5rem);
  min-height: 44px;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255,255,255,.55);
  font-weight: 500;
}
.sam-footer-cta svg, .sam-footer-social svg { flex: none; }
.sam-footer .sam-footer-cta:hover { text-decoration: none; border-color: #fff; }
.sam-footer-links > li > a, .sam-footer summary, .sam-footer-contact address a, .sam-footer-details {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
}
.sam-footer summary { gap: .5em; cursor: pointer; list-style: none; }
.sam-footer summary::-webkit-details-marker { display: none; }
.sam-footer summary::after {
  content: "";
  display: inline-block;
  flex: none;
  width: 5px;
  height: 5px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  transform: translateY(-2px) rotate(45deg);
}
.sam-footer details[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.sam-footer details p { padding: .25em 0 .45em; color: #ccc; }
.sam-footer details p a, .sam-footer .sam-footer-details { text-decoration: underline; }
.sam-footer address { color: #ccc; }
.sam-footer address strong { color: #f5f5f5; }
.sam-footer-contact address a:first-of-type { margin-top: 7px; }
.sam-footer .sam-footer-details { font-size: .8125rem; color: #ccc; }
.sam-footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-block: 16px 21px;
  color: #ccc;
  font-size: .8125rem;
}
.sam-footer-bottom a { color: inherit; }
.sam-footer-social { display: flex; flex-wrap: wrap; margin-top: .75rem !important; }
.sam-footer-social a { display: grid; width: 44px; height: 44px; place-content: center; }
.sam-footer-social svg { height: 19px; width: 19px; fill: currentColor; }
.sam-footer-discover .sam-reach-consent { margin-top: 12px; color: #ccc; }
.sam-footer-discover .sam-reach-consent p { font-size: .8125rem; }
.sam-footer-discover .sam-reach-consent button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: #f5f5f5;
  font: 500 .875rem/1.5 "Inter", Arial, sans-serif;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
}
.sam-footer-discover [data-reach-form], .sam-footer-discover iframe { max-width: 100%; }
@media (max-width: 1000px) {
  .sam-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 8%; }
}
@media (max-width: 640px) {
  .sam-footer-columns { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 36px 24px; }
  .sam-footer-columns > * + * { border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; margin-top: 24px; }
  .sam-footer h2 { margin-bottom: 12px; }
  .sam-footer .sam-footer-cta { width: 100%; }
  .sam-footer-links > li > a, .sam-footer summary, .sam-footer-contact address a, .sam-footer-details,
  .sam-footer details p a { display: flex; align-items: center; min-height: 44px; }
  .sam-footer details p { padding-block: .1em; }
  .sam-footer-bottom { flex-direction: column; gap: 3px; padding-block: 16px 22px; }
}
