:root {
  --storefront-paper: var(--z-color-background);
  --storefront-ink: var(--z-color-text);
  --storefront-muted: var(--z-color-text-muted);
  --storefront-plum: var(--z-color-brand);
  --storefront-rose: var(--z-color-accent);
  --storefront-blush: var(--z-color-blush);
  --storefront-line: var(--z-color-border);
  --storefront-header-height: 73px;
}

.storefront-header,
.storefront-footer {
  font-family: var(--z-font-body);
}
body.storefront-layout-ready {
  overflow-x: clip;
}
body.storefront-overlay-locked {
  overflow: hidden;
}
body:not(.storefront-layout-ready)::before {
  display: block;
  height: var(--storefront-header-height);
  content: "";
}
.storefront-header *,
.storefront-footer * {
  box-sizing: border-box;
}
.storefront-header a,
.storefront-footer a {
  color: inherit;
  text-decoration: none;
}
.storefront-header button {
  font: inherit;
}
.storefront-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--storefront-header-height);
  border-bottom: 1px solid var(--storefront-line);
  background: rgba(255, 253, 251, 0.94);
  color: var(--storefront-ink);
  backdrop-filter: blur(12px);
}
.storefront-header-inner {
  display: grid;
  width: min(100%, var(--z-container-wide));
  height: 100%;
  margin: auto;
  padding: 0 var(--z-container-padding);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.storefront-header-search {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  width: min(
    var(--z-container-wide),
    calc(100% - (2 * var(--z-container-padding)))
  );
  height: 100%;
  margin: auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 251, 0.98);
}
.storefront-header-search[hidden] {
  display: none;
}
.storefront-header-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--storefront-line);
  border-radius: var(--z-radius-control);
  outline: 0;
  background: var(--z-color-surface);
  color: var(--storefront-ink);
  font: inherit;
}
.storefront-header-search input:focus {
  border-color: var(--z-color-accent);
  box-shadow: var(--z-shadow-focus);
}
.storefront-header-search-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--storefront-blush);
  color: var(--storefront-plum);
  cursor: pointer;
}
.storefront-logo,
.storefront-footer-logo {
  width: max-content;
  color: var(--storefront-plum) !important;
  font-family: var(--z-font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.storefront-navigation-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.storefront-navigation-links a {
  position: relative;
  padding: 25px 0 23px;
  color: var(--storefront-muted);
  font-size: 15px;
  font-weight: 500;
}
.storefront-navigation-links a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--z-color-accent-strong);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity var(--z-motion-fast) var(--z-ease-standard),
    transform var(--z-motion-fast) var(--z-ease-standard);
}
.storefront-navigation-links a:hover,
.storefront-navigation-links a[aria-current="page"] {
  color: var(--storefront-plum);
}
.storefront-navigation-links a:hover::after,
.storefront-navigation-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}
.storefront-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.storefront-icon-button,
.storefront-menu-button,
.storefront-menu-close,
.storefront-menu-overlay {
  border: 0;
  background: transparent;
  color: var(--storefront-ink);
  cursor: pointer;
}
.storefront-icon-button,
.storefront-menu-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
  border-radius: var(--z-radius-control);
  font-size: 18px;
}
.storefront-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.storefront-icon-button:hover,
.storefront-icon-button[aria-current="page"],
.storefront-menu-button:hover {
  background: var(--storefront-blush);
  color: var(--storefront-plum);
}
.storefront-cart-count {
  position: absolute;
  top: 0;
  right: -3px;
  display: none;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--storefront-paper);
  border-radius: var(--z-radius-pill);
  background: var(--z-color-accent-strong);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.storefront-mobile-only,
.storefront-menu-button,
.storefront-menu-close,
.storefront-menu-overlay {
  display: none;
}
.storefront-skip-link {
  position: fixed;
  z-index: 1100;
  top: 8px;
  left: 12px;
  padding: 10px 15px;
  border-radius: var(--z-radius-control);
  background: var(--storefront-plum);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform var(--z-motion-fast) var(--z-ease-standard);
}
.storefront-skip-link:focus {
  transform: translateY(0);
}

.storefront-footer {
  padding: 58px 0 24px;
  background: #241a1d;
  color: #fdf8f9;
}
.storefront-footer-inner {
  width: min(var(--z-container), calc(100% - (2 * var(--z-container-padding))));
  margin: auto;
}
.storefront-footer-brand {
  max-width: 430px;
  margin-bottom: 38px;
}
.storefront-footer-logo {
  color: #fff !important;
  letter-spacing: 2px;
}
.storefront-footer-brand p {
  margin: 12px 0 0;
  color: #cfc4c7;
  font-size: 14px;
  line-height: 1.7;
}
.storefront-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.storefront-footer-columns section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.storefront-footer-columns h2 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--z-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.storefront-footer-columns a {
  color: #cfc4c7;
  font-size: 13px;
}
.storefront-footer-columns a:hover {
  color: #fff;
}
.storefront-footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a99da1;
  font-size: 12px;
}
.storefront-header a:focus-visible,
.storefront-header button:focus-visible,
.storefront-footer a:focus-visible {
  outline: var(--z-focus-ring);
  outline-offset: var(--z-focus-offset);
}

@media (max-width: 768px) {
  :root {
    --storefront-header-height: 68px;
  }
  /* Keep the off-canvas transition out of the document's horizontal scroll
     area. Only the inline axis is clipped so the open drawer and backdrop can
     still extend below the sticky header. */
  .storefront-header {
    overflow-x: clip;
  }
  .storefront-header-inner {
    display: flex;
    padding: 0 12px;
    justify-content: space-between;
  }
  .storefront-header-search {
    width: 100%;
    padding: 0 12px;
  }
  .storefront-logo {
    font-size: 21px;
  }
  .storefront-actions {
    gap: 2px;
  }
  .storefront-icon-button,
  .storefront-menu-button {
    width: 44px;
    height: 44px;
  }
  .storefront-menu-button {
    display: grid;
  }
  .storefront-navigation {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    padding: 20px 24px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--storefront-paper);
    box-shadow: var(--z-shadow-modal);
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform var(--z-motion-base) var(--z-ease-standard),
      visibility 0s linear var(--z-motion-base);
  }
  .storefront-header.menu-open .storefront-navigation {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .storefront-menu-close {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 0 22px auto;
    place-items: center;
    border-radius: 50%;
    background: var(--storefront-blush);
    font-size: 20px;
  }
  .storefront-navigation-links {
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
  }
  .storefront-navigation-links a {
    min-height: 48px;
    padding: 13px 12px;
    border-radius: 9px;
    font-size: 16px;
  }
  .storefront-navigation-links a::after {
    display: none;
  }
  .storefront-navigation-links a[aria-current="page"] {
    background: var(--storefront-blush);
  }
  .storefront-mobile-only {
    display: block;
  }
  .storefront-menu-overlay {
    position: fixed;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(36, 26, 29, 0.42);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--z-motion-base) var(--z-ease-standard),
      visibility var(--z-motion-base);
  }
  .storefront-header.menu-open .storefront-menu-overlay {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  body.storefront-menu-locked {
    overflow: hidden;
  }
  .storefront-footer {
    padding-top: 44px;
  }
  .storefront-footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .storefront-logo {
    font-size: 19px;
    letter-spacing: 0.2px;
  }
  .storefront-actions {
    gap: 0;
  }
  .storefront-footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 350px) {
  .storefront-header-inner {
    padding-inline: 8px;
  }
  .storefront-logo {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-navigation,
  .storefront-menu-overlay,
  .storefront-skip-link {
    transition-duration: 0.01ms !important;
  }
}
