/* MOMENTO editorial storefront. Shared presentation only; commerce state stays server-owned. */
:root { --store-gutter: clamp(20px, 4vw, 64px); --store-header-offset: 142px; }
html { scroll-padding-top: var(--store-header-offset); }
body > .site-header { background: #fff; backdrop-filter: none; }
.site-header .utility-bar { display: none; }
.mobile-menu-tools, .mobile-menu-backdrop { display: none; }

/* Desktop header follows the supplied reference: restrained account tools above a quiet category row. */
@media (min-width: 961px) {
  .site-header {
    --header-muted: #667480;
    color: var(--header-muted);
    background: #fff;
  }
  .site-header .main-nav {
    min-height: 142px;
    padding: 13px var(--store-gutter) 11px;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: 54px 64px;
    column-gap: 32px;
    background: #fff;
  }
  .site-header .main-nav > .wordmark { grid-column: 1; grid-row: 1 / 3; justify-self: start; }
  .site-header .desktop-nav { gap: 26px; color: var(--header-muted); font-family: var(--display); font-size: 1rem; letter-spacing: .012em; text-transform: none; }
  .site-header .desktop-nav--right { position: relative; grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .site-header .desktop-nav--left { grid-column: 2; grid-row: 2; justify-content: flex-end; overflow: visible; }
  .site-header .desktop-nav > a,
  .site-header .desktop-nav > button,
  .site-header [data-category-navigation] > a,
  .site-header .reference-nav-group > summary,
  .site-header .header-reservation {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--header-muted);
    white-space: nowrap;
  }
  .site-header .desktop-nav a:hover,
  .site-header .desktop-nav button:hover,
  .site-header .reference-nav-group > summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
  .site-header .site-search-form,
  .site-header .desktop-nav .language-picker,
  .site-header .language-picker { display: none; }
  .site-header .desktop-search-toggle { padding: 0; border: 0; background: transparent; color: var(--header-muted); font: inherit; cursor: pointer; }
  .site-header .desktop-search-panel {
    position: absolute;
    z-index: 140;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    align-items: center;
    width: min(320px, calc(100vw - 2 * var(--store-gutter)));
    min-height: 44px;
    padding: 0 4px 0 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 22px rgba(24, 35, 48, .08);
  }
  .site-header .desktop-search-panel[hidden] { display: none !important; }
  .site-header .desktop-search-panel input {
    min-width: 0;
    min-height: 44px;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    outline: 0;
  }
  .site-header .desktop-search-panel button { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--header-muted); font: inherit; cursor: pointer; }
  .site-header .reference-nav-group { position: relative; display: inline-flex; min-width: 0; }
  .site-header .reference-nav-group > summary { list-style: none; cursor: pointer; }
  .site-header .reference-nav-group > summary::-webkit-details-marker { display: none; }
  .site-header .reference-nav-group > summary::after { width: .6em; height: .6em; margin: -.25em 0 0 .42em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: rotate(45deg); }
  .site-header .reference-nav-group[open] > summary::after { margin-top: .15em; transform: rotate(225deg); }
  .site-header .reference-nav-panel {
    position: absolute;
    z-index: 150;
    top: 100%;
    left: -14px;
    display: grid;
    min-width: 184px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 22px rgba(24, 35, 48, .08);
  }
  .site-header .reference-nav-panel[hidden] { display: none !important; }
  .site-header .reference-nav-group:not([open]) > .reference-nav-panel { display: none; }
  .site-header .reference-nav-panel :is(a, button) {
    display: flex;
    align-items: center;
    min-height: 42px;
    color: var(--header-muted);
    font: inherit;
    text-align: left;
  }
  .site-header .header-reservation { padding: 0; border: 0; background: transparent; font: inherit; text-decoration: none; }
  .site-header .header-reservation:hover,
  .site-header .header-reservation:focus-visible { color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: 6px; }
  .site-header .reference-basket-count { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .site-header :is(a, button, summary, input):focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
}
/* A light, centered footer follows the reference's quiet information hierarchy. */
body .site-footer { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; padding: 64px var(--store-gutter) 32px; border-top: 1px solid var(--line); background: #fff; color: var(--ink); text-align: center; }
.site-footer .wordmark--footer svg.brand-logo { width: 90px; height: 76px; filter: none; }
.site-footer :is(p, a, button) { color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.site-footer :is(.footer-nav, .footer-bottom nav) { flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .footer-nav :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.site-footer .footer-contact { align-items: center; gap: 4px; }
.site-footer .footer-contact .footer-label { color: var(--ink); font-size: .8125rem; }
.site-footer .footer-contact a { color: var(--ink); text-decoration-color: var(--line); }
.site-footer .language-picker { position: relative; align-self: auto; margin: 0; border-left: 0; }
.site-footer .language-toggle { min-width: 0; min-height: 44px; height: auto; padding: 0 !important; color: var(--muted); font-size: .8125rem !important; }
.site-footer .language-menu { background: #fff; }
.site-footer .footer-business { width: 100%; justify-content: center; gap: 8px; padding-top: 24px; border-color: var(--line); }
.site-footer .footer-business p { justify-content: center; }
.site-footer .footer-business span { white-space: normal; }
.site-footer .footer-bottom { width: 100%; flex-direction: column; align-items: center; gap: 12px; padding-top: 24px; border-color: var(--line); }
.site-footer :is(a, button):hover { color: var(--ink); }
.site-footer :is(a, button):focus-visible { color: var(--ink); outline: 2px solid var(--navy); outline-offset: 4px; }

/* Keep the product photograph intact, and place essential information below it. */
body .catalog-hero { min-height: 0; padding: 64px var(--store-gutter) 40px; background: #fff; }
body .catalog-hero h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.35; letter-spacing: -.035em; }
body .catalog-hero > p:last-child { max-width: 60ch; margin-bottom: 0; }
body .catalog-shell { padding-inline: var(--store-gutter); }
body .catalog-toolbar { position: relative; top: auto; gap: 20px; background: #fff; backdrop-filter: none; }
body .catalog-toolbar :is(h2, label, select), body .filter-group span { font-size: .875rem; }
body .filter-group { min-inline-size: 0; flex-wrap: wrap; }
body .filter-group span, body .sort-control select { min-height: 44px; }
body .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; padding-top: 32px; }
body .catalog-card { min-width: 0; }
body .catalog-card figure { aspect-ratio: 1; background: #fff; }
body .catalog-card figure img { object-fit: contain; transform: none; transition: transform 220ms ease; }
body .catalog-card a:hover figure img { transform: scale(1.015); }
body .catalog-card div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 16px; text-align: center; }
body .catalog-card h3 { font-size: 1rem; line-height: 1.6; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; }
body .catalog-card span { align-self: auto; font-size: .875rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
body .catalog-card a:focus-visible { display: block; outline: 2px solid var(--navy); outline-offset: 6px; }
body .catalog-state { line-height: 1.7; }
body .catalog-empty h3, body .cart-empty h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.5; }
body .catalog-empty p, body .cart-empty p { font-size: 1rem; line-height: 1.75; }
body .product-detail { grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); }
body .product-gallery { padding: 24px; }
body .product-gallery-main { min-height: 0; aspect-ratio: 1; background: #fff; }
body .product-buybox { top: 80px; min-height: 0; padding: clamp(32px, 4vw, 64px); background: #fff; }
body .product-buybox h1 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.45; letter-spacing: -.035em; text-wrap: balance; }
body .breadcrumbs { flex-wrap: wrap; font-size: .8125rem; line-height: 1.6; }
body .product-sales-mode { padding: 6px 8px; font-size: .75rem; }
body .product-price strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
body .product-price span, body .product-facts dt, body .product-policy-links a { font-size: .8125rem; }
body .product-facts dd, body .product-options legend, body .select-field > span, body .text-field > span { font-size: .9375rem; line-height: 1.6; }
body .product-options :is(select, input), body .product-secondary-actions > button { font-size: 1rem; }
body .product-thumbnails { grid-template-columns: repeat(auto-fit, minmax(44px, 80px)); gap: 8px; }
body .product-thumbnails button { width: 100%; min-width: 44px; }
body .product-thumbnails button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
body .product-secondary-actions > button { min-height: 44px; }
body .product-information { padding: 64px max(var(--store-gutter), calc((100vw - 1240px) / 2)); }
body .product-information > header h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.4; }
body .product-overview :is(dt, dd) { font-size: .9375rem; line-height: 1.8; }
body .cart-page { padding-inline: var(--store-gutter); background: #fff; }
body .cart-heading h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.4; }

/* Editorial content keeps the same light surface and a comfortable reading measure. */
body.community-page, body.discovery-page { background: #fff; }
.community-page .community-shell { width: min(1240px, calc(100% - 2 * var(--store-gutter))); padding-block: 64px; }
.community-page .community-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.4; }
.community-page .community-eyebrow { color: var(--muted); }
.community-page .community-toolbar { margin-top: 40px; }
.community-page .community-filter, .community-page .community-sort button { min-height: 44px; font-size: .875rem; }
.community-page .journal-card h2 { font-size: 24px; line-height: 1.5; }
.community-page .journal-card p { font-size: 1rem; line-height: 1.8; }
body.discovery-page .discovery-intro { padding: 64px var(--store-gutter) 48px; }
body.discovery-page .discovery-section, body.discovery-page .discovery-collection { padding: 64px var(--store-gutter); }
body.discovery-page .discovery-product-grid { gap: 40px 24px; }

@media (max-width: 960px) {
  :root { --store-header-offset: 65px; }
  .site-header .utility-bar, .site-header.is-scrolled .utility-bar:focus-within { display: none; }
  .site-header .main-nav { min-height: 65px; grid-template-columns: minmax(0, 1fr) 44px 44px; grid-template-rows: 65px; padding: 0 16px; column-gap: 0; }
  .site-header .main-nav > .wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-header .main-nav .wordmark svg.brand-logo { width: 58px; height: 49px; }
  .site-header .main-nav > .menu-toggle { z-index: 1; grid-column: 3; grid-row: 1; justify-self: end; }
  .site-header .main-nav > .mobile-actions { display: contents; }
  .site-header .mobile-actions > .mobile-bag, .site-header .main-nav > .mobile-bag { grid-column: 2; grid-row: 1; justify-self: center; justify-content: center; min-width: 44px; letter-spacing: 0; }
  .site-header .mobile-actions > .mobile-search-toggle { display: none; }
  .site-header .mobile-menu { position: fixed; top: 0; left: 0; right: auto; z-index: 120; width: min(90vw, 440px); min-height: 100dvh; max-height: 100dvh; padding: 0 20px max(32px, env(safe-area-inset-bottom)); border: 0; background: #fff; }
  .site-header .mobile-menu-tools { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 65px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .site-header .mobile-menu-tools > :is(a, button) { width: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; justify-content: center; }
  .site-header .mobile-menu-tools > :first-child { width: auto; margin-right: auto; }
  .site-header .mobile-menu-tools .mobile-search-toggle { display: flex; }
  .site-header .mobile-menu-tools .mobile-menu-close { font-size: 26px; font-weight: 300; }
  .site-header .mobile-menu-backdrop:not([hidden]) { position: fixed; z-index: 110; inset: 0; display: block; border: 0; background: rgba(24, 35, 48, .4); cursor: pointer; }
  .site-header .mobile-menu :is(a, button), .site-header .mobile-menu .mobile-category-links a { min-height: 52px; font-size: 1rem; font-weight: 400; line-height: 1.5; }
  .site-header .mobile-menu .mobile-menu-tools :is(a, button) { min-height: 44px; border: 0; }
  .site-header .mobile-menu .mobile-category-links a { padding-left: 16px; color: var(--muted); }
  .site-header .mobile-search-tray { top: 65px; background: #fff; padding-inline: 20px; }
  body .catalog-toolbar { position: relative; top: auto; gap: 16px; }
  body .catalog-hero { padding-top: 40px; padding-bottom: 32px; }
  body .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  body .product-detail { grid-template-columns: minmax(0, 1fr); }
  body .product-gallery { padding: 0; }
  body .product-thumbnails { margin-inline: 20px; }
  body .product-buybox { position: relative; top: auto; padding: 32px 20px; border-left: 0; }
  body .product-buybox h1 { font-size: clamp(26px, 5vw, 32px); }
  body .product-information { padding-block: 48px; }
  .community-page .community-shell { padding-block: 40px; }
  .community-page .community-toolbar { margin-top: 32px; }
  body.discovery-page .discovery-intro, body.discovery-page .discovery-section, body.discovery-page .discovery-collection { padding-block: 40px; }
}
@media (max-width: 600px) {
  body .catalog-grid { gap: 32px 12px; }
  body .catalog-card div { gap: 6px; padding-top: 12px; }
  body .catalog-card h3 { font-size: .9375rem; }
  body .catalog-card span { font-size: .8125rem; margin-top: 0; }
  body .product-overview div { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
  body .product-facts div { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  body .cart-page { padding-top: 40px; }
  .community-page .community-title { font-size: 28px; }
  body.discovery-page .discovery-product-grid, body.discovery-page .discovery-product-grid > .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body .catalog-card figure img, .site-header .utility-bar { transition: none; }
}
