/* Remi Grace — landing pages
   Design tokens ported directly from the Agilo Fashion Starter
   (storefront/tailwind.config.js + src/styles/globals.css) so this
   interim site and the eventual Next.js storefront read as one brand. */

:root {
  --black: #050505;
  --white: #FDFDFD;
  --gray-800: #1F1F20;
  --gray-700: #3A3A3B;
  --gray-600: #545457;
  --gray-500: #808080;
  --gray-400: #A3A3A3;
  --gray-300: #BBBBBB;
  --gray-200: #D1D1D1;
  --gray-100: #E7E7E7;
  --gray-50:  #F4F4F4;
  --gray-30:  #F8F8F9;
  --gray-20:  #FBFBFB;
  --red-primary: #DF4718;
  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* The HTML `hidden` attribute is only display:none in the UA stylesheet, so any
   author `display` rule silently beats it. .lang-modal sets display:flex, which
   left an invisible full-viewport overlay swallowing every click on the page.
   This guard makes `hidden` authoritative everywhere. */
[hidden] { display: none !important; }

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* Container. Fashion Starter ships max-w-[1440px]; narrowed to 1200px so the
   grid reads as a boutique rather than a department store on wide displays. */
.content-container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Fashion Starter .contrast-btn */
.contrast-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
}

.contrast-btn:hover {
  background: var(--black);
  color: var(--white);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
}

.wordmark {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.wordmark img {
  width: 92px;
  height: auto;
}

.header-note {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ---------- hero banner ---------- */

.hero-banner {
  position: relative;
  isolation: isolate;
}

/* Shorter and wider: a letterbox band rather than a tall panel. */
.hero-banner img {
  width: 100%;
  height: clamp(17rem, 38vh, 24rem);
  object-fit: cover;
  object-position: 62% 40%;
}

/* Two gradients: one lifts the bottom edge, one darkens the left column where
   the copy sits, so the eyebrow stays legible against the bright window. */
.hero-banner-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(5, 5, 5, 0.58) 0%,
      rgba(5, 5, 5, 0.30) 32%,
      rgba(5, 5, 5, 0) 62%
    ),
    linear-gradient(
      to top,
      rgba(5, 5, 5, 0.55) 0%,
      rgba(5, 5, 5, 0.22) 40%,
      rgba(5, 5, 5, 0) 72%
    );
}

.hero-banner-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 2.25rem;
  color: var(--white);
}

.hero-banner-text .eyebrow {
  color: rgba(253, 253, 253, 0.78);
  margin-bottom: 0.875rem;
}

/* Display sizes need much tighter leading than the 1.4 the global h1 rule
   sets for body-scale headings. 28ch keeps the second line intact instead of
   orphaning "days." on a line of its own. */
.hero-banner-text h1 {
  max-width: 28ch;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-shadow: 0 1px 24px rgba(5, 5, 5, 0.28);
}

.hero-banner-text p {
  margin: 1rem 0 0;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(253, 253, 253, 0.88);
}

.hero-banner-text .hero-actions { margin-top: 1.875rem; }

.contrast-btn-light {
  border-color: var(--white);
  color: var(--white);
}

.contrast-btn-light:hover {
  background: var(--white);
  color: var(--black);
}

/* ---------- hero (text-only variant) ---------- */

.hero {
  padding: 7.5rem 0 6.5rem;
}

.eyebrow {
  display: block;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.hero h1 {
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.hero p {
  margin: 2rem 0 0;
  max-width: 46ch;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.hero-actions { margin-top: 2.75rem; }

/* ---------- category grid ---------- */

.section { padding: 5rem 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}

.section-head h2 { font-size: 2rem; }

.section-head span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card { display: flex; flex-direction: column; }

.card-visual {
  aspect-ratio: 3 / 4;
  background: var(--gray-30);
  border: 1px solid var(--gray-100);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-visual img { transform: scale(1.03); }

.card-visual span {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.5rem;
}

.product-visual {
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--gray-30);
  border: 1px solid var(--gray-100);
  margin-bottom: 1rem;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product:hover .product-visual img { transform: scale(1.03); }

.product-name a { text-decoration: none; }
.product-name a:hover { text-decoration: underline; text-underline-offset: 3px; }

.product-name {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.product-price {
  margin: 0;
  font-size: 1rem;
  color: var(--gray-600);
}

.section-note {
  margin: 2.5rem 0 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ---------- statement band ---------- */

.band {
  background: var(--gray-30);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 6.5rem 0;
}

.band h2 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.band p {
  max-width: 62ch;
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.band p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */

.contact { padding: 6.5rem 0; }

.contact h2 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.contact p {
  max-width: 58ch;
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--gray-100);
  padding: 3.5rem 0 4rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-left { flex: 1 1 30rem; min-width: 0; }

.footer-logo { flex: 0 0 auto; line-height: 0; }

.footer-logo img { width: 108px; height: auto; }

.footer-trust {
  margin: 1.5rem 0 0.75rem;
  max-width: 46ch;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-500);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1.625rem;
}

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--black); }

.copyright {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ---------- policy pages ---------- */

.prose {
  max-width: 44rem;
  padding: 5rem 0 6rem;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.prose .updated {
  margin: 0 0 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.prose h2 {
  font-size: 1.5rem;
  margin: 3rem 0 0.875rem;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-700);
}

.prose p { margin: 0 0 1rem; }

.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }

.prose li { margin-bottom: 0.5rem; }

.prose a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

.prose strong { font-weight: 500; color: var(--black); }

.back {
  display: inline-block;
  margin-top: 3.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  text-decoration: none;
}

.back:hover { color: var(--black); }

/* ---------- header nav ---------- */

.header-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a:hover { color: var(--black); }

/* ---------- breadcrumb ---------- */

.breadcrumb {
  padding: 2rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb span { margin: 0 0.5rem; color: var(--gray-300); }

/* ---------- page head ---------- */

.page-head { padding: 3rem 0 3.5rem; }

.page-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.page-head p {
  margin: 1.5rem 0 0;
  max-width: 52ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* ---------- notice ---------- */

.notice {
  border: 1px solid var(--gray-100);
  background: var(--gray-30);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2rem;
}

.notice p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--gray-700); }
.notice p + p { margin-top: 0.75rem; }

.notice-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-primary);
}

/* ---------- product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  padding: 2.5rem 0 5rem;
  align-items: start;
}

.detail-visual {
  aspect-ratio: 3 / 4;
  background: var(--gray-30);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.detail-visual img { width: 100%; height: 100%; object-fit: cover; }

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--gray-30);
  border: 1px solid var(--gray-100);
}

.detail-info h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
}

.detail-price {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  color: var(--gray-700);
}

.detail-info .desc {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-600);
}

.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 2rem;
}

.spec th, .spec td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
  font-weight: 400;
  vertical-align: top;
}

.spec th { width: 40%; color: var(--gray-500); }
.spec td { color: var(--gray-700); }

/* ---------- brand list ---------- */

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.brand-list li {
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* ---------- empty state ---------- */

.empty {
  border: 1px dashed var(--gray-200);
  padding: 4rem 2rem;
  text-align: center;
}

.empty p { margin: 0; color: var(--gray-500); font-size: 1rem; }

/* ---------- values (about) ---------- */

.commitment-lead {
  max-width: 60ch;
  margin: 0 0 3rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}

.value {
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.value h3 {
  margin: 0 0 0.625rem;
  font-size: 1.25rem;
}

.value p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header cart + account ---------- */

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 0.625rem;
  letter-spacing: 0;
}

.cart-count[data-empty="true"] {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* ---------- lede ---------- */

.lede {
  max-width: 62ch;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* ---------- buy button ---------- */

.buy-btn {
  margin-bottom: 2rem;
  font-family: inherit;
  cursor: pointer;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.buy-btn:hover { background: var(--white); color: var(--black); }

.buy-btn:disabled { opacity: 0.55; cursor: default; }

/* ---------- bag ---------- */

.bag { padding-bottom: 1rem; }

.bag-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.bag-row:first-child { border-top: 1px solid var(--gray-100); }

.bag-thumb {
  aspect-ratio: 3 / 4;
  background: var(--gray-30) center / cover no-repeat;
  border: 1px solid var(--gray-100);
}

.bag-detail h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 400;
}

.bag-detail h3 a { text-decoration: none; }
.bag-detail h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.bag-unit { margin: 0 0 0.625rem; font-size: 0.875rem; color: var(--gray-500); }

.bag-remove {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bag-remove:hover { color: var(--black); }

.bag-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.bag-qty button {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
  padding: 0.25rem;
}

.bag-qty button:hover { color: var(--black); }
.bag-qty span { font-size: 0.9375rem; min-width: 1ch; text-align: center; }

.bag-line { font-size: 1rem; white-space: nowrap; }

.bag-summary {
  margin-top: 2.5rem;
  max-width: 26rem;
  margin-left: auto;
}

.bag-total-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.625rem 0;
  font-size: 1rem;
}

.bag-total-row:first-child {
  font-size: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}

.bag-total-row.muted { color: var(--gray-500); font-size: 0.9375rem; }

.bag-checkout {
  width: 100%;
  margin-top: 1.5rem;
  font-family: inherit;
  cursor: pointer;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.bag-checkout:hover { background: var(--white); color: var(--black); }

.bag-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-500);
}


/* ---------- bag actions / saved for later ---------- */

.bag-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.bag-link {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bag-link:hover { color: var(--black); }
.bag-delete:hover { color: var(--red-primary); }

.saved {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-100);
}

.saved h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.saved-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-30);
}

.saved-thumb {
  aspect-ratio: 3 / 4;
  background: var(--gray-30) center / cover no-repeat;
  border: 1px solid var(--gray-100);
}

.saved-detail h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 400; }
.saved-detail h3 a { text-decoration: none; }
.saved-detail p { margin: 0; font-size: 0.9375rem; color: var(--gray-600); }

/* ---------- auth ---------- */

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.auth-card { border: 1px solid var(--gray-100); padding: 2.25rem; }

.auth-card h2 { font-size: 1.375rem; margin-bottom: 1.75rem; }

.field { margin-bottom: 1.25rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--black);
}

.field input:focus { outline: none; border-color: var(--black); }
.field input[aria-invalid="true"] { border-color: var(--red-primary); }

.field-hint { margin: 0.4rem 0 0; font-size: 0.75rem; color: var(--gray-500); }

.field-error { margin: 0.4rem 0 0; font-size: 0.75rem; color: var(--red-primary); }

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  font-family: inherit;
  cursor: pointer;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.auth-submit:hover { background: var(--white); color: var(--black); }
.auth-submit:disabled { opacity: 0.55; cursor: default; }

.auth-alt { margin: 1rem 0 0; font-size: 0.8125rem; color: var(--gray-500); line-height: 1.6; }

.auth-status {
  margin: 1rem 0 0;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid var(--gray-100);
  background: var(--gray-30);
  color: var(--gray-700);
}

.auth-status[data-kind="err"] { border-color: var(--red-primary); color: var(--red-900); background: #fff; }
.auth-status[data-kind="ok"] { border-color: var(--black); }

@media (max-width: 860px) {
  .auth-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .auth-card { padding: 1.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .saved-row { grid-template-columns: 3.5rem 1fr; }
  .saved-row .bag-actions { grid-column: 1 / -1; }
}

/* ---------- account ---------- */

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.account-card {
  border: 1px solid var(--gray-100);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.account-card h2 { font-size: 1.375rem; margin-bottom: 0.75rem; }

.account-card p {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.account-card .contrast-btn { margin-top: auto; }

/* ---------- subscribe bar ---------- */

.subscribe-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -12px 40px rgba(5, 5, 5, 0.06);
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.subscribe-bar.is-open {
  transform: translateY(0);
  visibility: visible;
}

.subscribe-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.subscribe-logo {
  width: 74px;
  height: auto;
  flex: 0 0 auto;
  margin-right: 0.5rem;
}

.subscribe-copy { flex: 1 1 auto; min-width: 0; }

.subscribe-copy h2 {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.subscribe-copy p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gray-600);
  max-width: 56ch;
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.subscribe-form input[type="email"] {
  width: 17rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--black);
}

.subscribe-form input[type="email"]::placeholder { color: var(--gray-400); }

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--black);
}

.subscribe-form button {
  font-family: inherit;
  cursor: pointer;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.subscribe-form button:hover {
  background: var(--white);
  color: var(--black);
}

.subscribe-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--gray-500);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.subscribe-close:hover { color: var(--black); }

.subscribe-note {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: var(--gray-500);
}

.subscribe-note a { color: var(--gray-600); }

.subscribe-status {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--black);
}

.subscribe-bar[data-state="done"] .subscribe-form,
.subscribe-bar[data-state="done"] .subscribe-note { display: none; }

.subscribe-bar:not([data-state="done"]) .subscribe-status { display: none; }

@media (prefers-reduced-motion: reduce) {
  .subscribe-bar { transition: none; }
}

@media (max-width: 860px) {
  .hero-banner img { height: clamp(14rem, 32vh, 19rem); }
  .subscribe-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
  }
  .subscribe-logo { margin-right: 0; width: 62px; }
  .subscribe-copy h2 { font-size: 0.6875rem; }
  .subscribe-copy p { font-size: 0.8125rem; line-height: 1.45; }
  .subscribe-note { font-size: 0.625rem; }
  .subscribe-form input[type="email"] { padding: 0.6rem 0.9rem; font-size: 0.875rem; }
  .subscribe-form button { padding: 0.6rem 1.25rem; font-size: 0.875rem; }
  .subscribe-close { top: 0.4rem; right: 0.6rem; }
  .hero-banner-text { padding-bottom: 2.25rem; }
  .hero-banner img { object-position: 66% 34%; }
  .subscribe-form { flex-wrap: wrap; }
  .subscribe-form input[type="email"] { width: 100%; flex: 1 1 12rem; }
}



/* ---------- top bar ---------- */

.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.375rem;
}

.topbar-note {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(253, 253, 253, 0.8);
}



@media (max-width: 640px) {
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }
}


/* ---------- language picker ---------- */

.lang-picker { position: relative; flex: 0 0 auto; }

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(253, 253, 253, 0.85);
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-trigger:hover { background: rgba(253, 253, 253, 0.1); color: var(--white); }

.lang-caret { transition: transform 0.25s ease; }
.lang-trigger[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 10005;
  min-width: 10.5rem;
  padding: 0.35rem;
  background: var(--black);
  border: 1px solid rgba(253, 253, 253, 0.16);
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(5, 5, 5, 0.4);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-menu.is-open { opacity: 1; transform: translateY(0); }

.lang-option {
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 4px;
  background: none;
  color: rgba(253, 253, 253, 0.85);
  font-family: inherit;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover { background: rgba(253, 253, 253, 0.12); color: var(--white); }
.lang-option[aria-selected="true"] { color: var(--white); }
.lang-option[aria-selected="true"]::after { content: " ·"; }

/* ---------- language greeting modal ---------- */

.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 5, 5, 0.5);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lang-modal.is-open { opacity: 1; }

.lang-card {
  position: relative;
  width: min(28rem, 100%);
  padding: 3rem 2.5rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-modal.is-open .lang-card { transform: translateY(0) scale(1); }

.lang-close { position: absolute; top: 0.6rem; right: 0.6rem; }

.lang-mark { width: 104px; height: auto; margin: 0 auto 1.75rem; }

.lang-hello {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lang-ask {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.lang-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.lang-yes {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.lang-yes:hover { background: var(--white); color: var(--black); }

.lang-no {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--gray-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-no:hover { color: var(--black); }

@media (prefers-reduced-motion: reduce) {
  .lang-menu, .lang-modal, .lang-card { transition: none; }
}

@media (max-width: 640px) {
  .lang-card { padding: 2.5rem 1.5rem 2rem; }
  .lang-hello { font-size: 1.5rem; }
}

/* ---------- header actions / hamburger ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: none;
  color: var(--gray-700);
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
}

.icon-btn:hover { color: var(--black); background: var(--gray-50); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.hamburger span {
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}

body.menu-open .hamburger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gray-700);
  border-radius: 999px;
}

.cart-link:hover { color: var(--black); background: var(--gray-50); }

.cart-link .cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  font-size: 0.5625rem;
}

.signin-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  margin-right: 0.25rem;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease-in, color 0.2s ease-in;
}

.signin-btn:hover { background: var(--black); color: var(--white); }

@media (max-width: 900px) {
  .signin-btn { display: none; }
}

/* ---------- mobile drawer (CSS 3D swing) ---------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(5, 5, 5, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10002;
  width: min(84vw, 21rem);
  background: var(--white);
  border-right: 1px solid var(--gray-100);
  padding: 1.25rem 0 2rem;
  overflow-y: auto;
  transform-origin: left center;
  transform: perspective(1400px) rotateY(-72deg);
  opacity: 0;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.28, 1), opacity 0.32s ease;
}

.drawer.is-open {
  transform: perspective(1400px) rotateY(0deg);
  opacity: 1;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.drawer-links { display: flex; flex-direction: column; padding: 0.5rem 0; }

.drawer-links a {
  padding: 0.9rem 1.25rem;
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-30);
}

.drawer-links a:hover { background: var(--gray-30); }

.drawer-divider {
  padding: 1.5rem 1.25rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-400);
}

body.menu-open, body.search-open { overflow: hidden; }

/* ---------- search ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10003;
  background: rgba(5, 5, 5, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-overlay.is-open { opacity: 1; }

.search-panel {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 1.25rem 0 1.5rem;
  transform: translateY(-14px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.is-open .search-panel { transform: translateY(0); }

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.75rem;
  color: var(--gray-500);
}

.search-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 1.125rem;
  color: var(--black);
  padding: 0.25rem 0;
}

.search-bar input::placeholder { color: var(--gray-400); }

.search-results { margin-top: 1rem; max-height: 60vh; overflow-y: auto; }

.search-hint { margin: 1rem 0; font-size: 0.9375rem; color: var(--gray-500); }

.search-hit {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-30);
  text-decoration: none;
}

.search-hit:hover { background: var(--gray-30); }

.search-thumb {
  flex: 0 0 auto;
  width: 3rem;
  height: 4rem;
  background: var(--gray-30) center / cover no-repeat;
  border: 1px solid var(--gray-100);
}

.search-meta { flex: 1 1 auto; min-width: 0; }

.search-kind {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}

.search-title { display: block; font-size: 1rem; }

.search-price { flex: 0 0 auto; font-size: 0.9375rem; color: var(--gray-600); }

/* ---------- product zoom ---------- */

.detail-visual.is-zoomable { cursor: zoom-in; }

.detail-visual img { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }

.detail-thumbs img { cursor: pointer; transition: border-color 0.2s ease; }
.detail-thumbs img:hover, .detail-thumbs img:focus { border-color: var(--black); outline: none; }

/* ---------- cookie bar ---------- */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10004;
  background: var(--black);
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-bar.is-open { transform: translateY(0); }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

.cookie-inner p {
  margin: 0;
  max-width: 78ch;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(253, 253, 253, 0.82);
}

.cookie-inner a { color: var(--white); }

.cookie-ok {
  flex: 0 0 auto;
  font-family: inherit;
  cursor: pointer;
  padding: 0.55rem 1.5rem;
  font-size: 0.875rem;
  border-color: var(--white);
  color: var(--white);
  background: none;
}

.cookie-ok:hover { background: var(--white); color: var(--black); }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-scrim, .search-panel, .cookie-bar, .detail-visual img { transition: none; }
  .drawer { transform: none; }
}

/* ---------- mobile ---------- */

/* Between 900 and 1200 the wordmark, five nav links, the Sign in pill and the
   icons no longer fit side by side, so tighten the nav before it collides. */
@media (max-width: 1200px) {
  .header-nav { gap: 1.1rem; }
  .header-nav a { font-size: 0.6875rem; letter-spacing: 0.07em; }
  .signin-btn { padding: 0.45rem 0.9rem; font-size: 0.6875rem; margin-right: 0; }
  .header-actions { gap: 0.25rem; }
  .icon-btn, .cart-link { width: 2.25rem; height: 2.25rem; }
  .wordmark img { width: 80px; }
}

@media (max-width: 1010px) {
  .header-nav a[href="/about.html"] { display: none; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .header-nav { display: none; }

  /* True optical centring: the hamburger and the actions group are different
     widths, so `margin: 0 auto` on a flex child does not centre the mark. */
  .header-inner {
    position: relative;
    justify-content: space-between;
    gap: 0.5rem;
    height: 4.25rem;
  }
  .wordmark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .wordmark img { width: 78px; }

  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-ok { width: 100%; text-align: center; }
}

/* Hero copy on phones: the desktop clamp floors were far too large at 375px. */
@media (max-width: 640px) {
  .hero-banner img { height: clamp(13rem, 30vh, 17rem); }

  .search-panel { padding-bottom: 1rem; }
  .search-hit { gap: 0.75rem; padding: 0.625rem 0; }
  .search-thumb { width: 2.5rem; height: 3.25rem; }
  .search-title { font-size: 0.9375rem; }
  .search-kind { font-size: 0.5625rem; }
  .search-price { font-size: 0.875rem; }
  .search-bar input { font-size: 1rem; }
  .search-results { max-height: 55vh; }

  .hero-banner-text { padding-bottom: 1.5rem; }

  .hero-banner-text .eyebrow {
    font-size: 0.5625rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
  }

  .hero-banner-text h1 {
    font-size: 1.25rem;
    line-height: 1.16;
    letter-spacing: -0.005em;
    max-width: 22ch;
  }

  .hero-banner-text p {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.4;
    max-width: 32ch;
  }

  .hero-banner-text .hero-actions { margin-top: 1rem; }

  .hero-banner-text .contrast-btn {
    padding: 0.5rem 1.125rem;
    font-size: 0.8125rem;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .grid, .grid-4, .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .header-nav { gap: 1rem; }
  .header-nav a { font-size: 0.6875rem; }
}

@media (max-width: 640px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .section-head h2 { font-size: 1.625rem; }
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .card h3 { font-size: 1.125rem; }
  .card p { font-size: 0.9375rem; }
  .content-container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .prose { padding: 3rem 0 4rem; }
  .band, .contact { padding: 4rem 0; }
  .spec th { width: 42%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .account-grid { grid-template-columns: 1fr; }
  .bag-row { grid-template-columns: 4rem 1fr; row-gap: 1rem; }
  .bag-qty { grid-column: 1 / -1; justify-self: start; }
  .bag-line { grid-column: 1 / -1; }
  .bag-summary { max-width: none; }
  .footer-inner { flex-direction: column-reverse; align-items: flex-start; }
  .header-inner { height: auto; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
  .header-nav { width: 100%; overflow-x: auto; }
  .values { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4.5rem 0 4rem; }
  .section, .contact { padding: 4rem 0; }
  .band { padding: 4.5rem 0; }
  .card-visual { aspect-ratio: 4 / 3; }
  .header-note { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
