:root {
  --paper: #F7F4EF;
  --ink: #141414;
  --muted: #6B665F;
  --accent: #6E1F2A;
  --accent-hover: #561820;
  --on-accent: #FFFFFF;
  --product-bg: #E9E3DA;
  --hairline: #E9E3DA;
  --overlay: #141414;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; border-radius: 0; box-shadow: none; }
html { scroll-behavior: auto; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; font-weight: 400; line-height: 1.6; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; border-radius: 0; }
button { cursor: pointer; }

.announcement {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.announcement span { font-size: 12px; }

.site-header {
  height: 64px;
  padding: 0 6.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: -64px;
  border-bottom: 1px solid var(--paper);
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}
.site-header.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--hairline);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .08em;
}
.brand small { display: block; font-size: 8px; font-weight: 400; letter-spacing: .08em; margin-top: 2px; }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
}
.site-header .brand { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 20px; font-weight: 400; white-space: nowrap; }
.site-header .brand small { display: inline; font: inherit; letter-spacing: inherit; margin: 0; }
.site-header .brand-mark { width: 26px; height: 26px; font-size: 18px; }
nav { display: flex; gap: clamp(20px, 3vw, 45px); }
nav a { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 500;
  text-transform: uppercase;
}
.cart-icon { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); font-size: 11px; letter-spacing: 0; }
.menu-toggle { display: none; background: var(--accent); color: var(--on-accent); border: 0; font-size: 23px; }

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-copy { width: 100%; padding: 120px 8vw 88px; align-self: center; position: relative; z-index: 1; }
.eyebrow { color: inherit; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 22px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 23px;
}
h1 em, .story-copy h2 em { font-weight: 400; }
.hero-text { color: var(--paper); max-width: 440px; font-size: 15px; line-height: 1.6; margin-bottom: 30px; }
.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 16px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-hover); }
.hero-rule { width: 36px; height: 1px; background: var(--paper); }
.hero-note { margin-top: 54px; display: flex; align-items: center; gap: 12px; color: var(--paper); font-size: 12px; letter-spacing: .12em; }
.hero-image { position: absolute; inset: 0; min-height: 0; background: none; }
.hero-image-label { position: absolute; bottom: 30px; left: 8vw; right: 8vw; z-index: 1; display: flex; justify-content: space-between; color: var(--hero-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.hero-side { position: absolute; right: 17px; top: 42%; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .12em; color: var(--paper); z-index: 2; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); padding: 32px 8%; background: var(--paper); gap: 0; }
.benefits div { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 10px; padding: 0 24px; position: relative; }
.benefits div:first-child { padding-left: 0; }
.benefits div + div { border-left: 1px solid var(--hairline); }
.benefits div > span { grid-row: span 2; color: var(--ink); font-size: 22px; }
.benefits strong { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.benefits small { font-size: 14px; color: var(--muted); margin-top: 2px; }

.section-pad { padding: 96px 8%; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 12px; color: var(--muted); }
h2 { font-family: var(--serif); font-size: 44px; line-height: 1.1; font-weight: 400; letter-spacing: 0; margin-bottom: 0; }
.section-heading h2 span { color: var(--ink); }
.section-heading > p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 3px; }
.shop-controls { display: flex; justify-content: space-between; gap: 22px; align-items: center; margin-bottom: 28px; }
.filters { display: flex; gap: 20px; flex-wrap: wrap; }
.filter {
  border: 0;
  border-bottom: 2px solid var(--paper);
  background: var(--paper);
  padding: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.filter.active { color: var(--ink); border-bottom-color: var(--accent); }
.search-box { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--hairline); padding: 7px 0; min-width: 190px; }
.search-box span { font-size: 20px; color: var(--muted); }
.search-box input { border: 0; outline: 0; background: var(--paper); width: 100%; font-size: 15px; color: var(--ink); }
.search-box input::placeholder { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-card { min-width: 0; }
.product-photo { position: relative; background: var(--product-bg); overflow: hidden; aspect-ratio: 4 / 5; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease-out; }
.product-card:hover .product-photo img { transform: scale(1.03); }
.product-tag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--paper); padding: 4px 10px; font-size: 11px; letter-spacing: .08em; font-weight: 500; text-transform: uppercase; }
.product-tag.is-promo { background: var(--accent); color: var(--on-accent); }
.quick-add {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 44px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease-out;
}
.product-card:hover .quick-add, .quick-add:focus-visible { opacity: 1; pointer-events: auto; }
.product-info { padding: 12px 1px 0; }
.product-category { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.product-title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.product-title-row h3 { font-family: var(--sans); font-size: 14px; font-weight: 400; margin: 0; }
.product-price { font-size: 14px; font-weight: 400; white-space: nowrap; margin-top: 0; }
.product-description { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 9px 0 0; }
.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 10px; color: var(--muted); }

.story-section { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--ink); color: var(--paper); padding: 120px 8%; gap: 8%; }
.story-image { min-height: 520px; background: var(--product-bg); }
.story-copy { padding: 0; align-self: center; }
.story-copy .eyebrow { margin-bottom: 20px; color: var(--paper); }
.story-copy h2 { font-size: 44px; margin-bottom: 25px; }
.story-copy > p:not(.eyebrow) { color: var(--paper); font-size: 15px; line-height: 1.6; max-width: 460px; margin-bottom: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--paper); padding: 0 0 2px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

.newsletter { text-align: center; background: var(--paper); }
.newsletter .eyebrow { margin-bottom: 14px; color: var(--muted); }
.newsletter h2 { margin-bottom: 14px; }
.newsletter > p:not(.eyebrow) { color: var(--ink); font-size: 15px; }
.newsletter-form { max-width: 620px; margin: 28px auto 10px; display: flex; border: 0; gap: 16px; padding: 0; }
.newsletter-form input { flex: 1; min-width: 0; height: 52px; border: 0; border-bottom: 1px solid var(--ink); outline: 0; background: var(--paper); font-size: 15px; padding: 12px 0; color: var(--ink); }
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form .button { height: 52px; padding: 0 28px; white-space: nowrap; }
.form-message { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }

footer { background: var(--ink); color: var(--paper); padding: 64px 8%; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-bottom: 35px; }
.footer-brand { color: var(--paper); }
.footer-top > p { color: var(--paper); font-family: var(--serif); font-style: italic; font-size: 15px; margin: 0; }
.footer-links { display: flex; gap: 22px; font-size: 12px; color: var(--paper); letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { border-bottom: 1px solid var(--ink); }
.footer-links a:hover, .footer-links a:focus-visible { border-bottom-color: var(--paper); }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; color: var(--paper); font-size: 12px; letter-spacing: .08em; }
.demo-note { margin: 18px 0 0; color: var(--paper); font-size: 12px; text-align: center; line-height: 1.6; }

.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 20; opacity: 0; visibility: hidden; transition: opacity 300ms ease-out, visibility 300ms ease-out; }
.overlay.visible { opacity: .45; visibility: visible; }
.cart-drawer { position: fixed; z-index: 21; top: 0; right: 0; width: min(420px, 100%); height: 100dvh; background: var(--paper); padding: 30px; display: flex; flex-direction: column; transform: translateX(102%); transition: transform 300ms ease-out; }
.cart-drawer.open { transform: translateX(0); }
.drawer-head, .dialog-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 23px; border-bottom: 1px solid var(--hairline); }
.drawer-head .eyebrow, .dialog-head .eyebrow { margin-bottom: 8px; color: var(--muted); }
.drawer-head h2, .dialog-head h2 { font-size: 32px; }
.drawer-head h2 span { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.icon-button { border: 0; background: var(--paper); font-size: 29px; line-height: 1; padding: 4px 8px; color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.cart-item img { width: 82px; height: 96px; object-fit: cover; background: var(--product-bg); }
.cart-item h3 { font-family: var(--sans); font-weight: 400; font-size: 14px; margin: 4px 0 7px; }
.cart-item .item-price { font-size: 14px; font-weight: 400; }
.cart-item .item-category { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.quantity-controls { display: inline-flex; align-items: center; border: 1px solid var(--hairline); margin-top: 10px; }
.quantity-controls button { background: var(--paper); border: 0; width: 28px; height: 27px; color: var(--ink); }
.quantity-controls span { min-width: 22px; text-align: center; font-size: 14px; }
.remove-item { border: 0; background: var(--paper); color: var(--muted); font-size: 18px; align-self: start; }
.cart-empty { display: none; text-align: center; margin: auto 0; }
.cart-empty.show { display: block; }
.cart-empty > span { color: var(--ink); font-size: 40px; }
.cart-empty h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; margin: 14px 0 8px; }
.cart-empty p { color: var(--muted); font-size: 15px; }
.cart-summary { border-top: 1px solid var(--hairline); padding-top: 20px; }
.summary-line { display: flex; justify-content: space-between; font-size: 15px; }
.summary-line strong { font-size: 15px; }
.cart-summary > p { color: var(--muted); font-size: 12px; margin: 12px 0 18px; }
.checkout-button { width: 100%; height: 52px; }
.checkout-dialog, .confirmation-dialog { border: 1px solid var(--hairline); padding: 30px; width: min(600px, calc(100% - 28px)); max-height: 90dvh; overflow-y: auto; background: var(--paper); color: var(--ink); }
.checkout-dialog::backdrop, .confirmation-dialog::backdrop { background: var(--overlay); opacity: .45; }
.checkout-order { background: var(--paper); border: 1px solid var(--hairline); padding: 14px; margin: 20px 0; font-size: 14px; line-height: 1.6; }
.checkout-order .checkout-total { border-top: 1px solid var(--hairline); padding-top: 8px; margin-top: 7px; font-weight: 500; display: flex; justify-content: space-between; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; min-height: 52px; border: 1px solid var(--hairline); padding: 12px; background: var(--paper); color: var(--ink); outline: 0; font-size: 15px; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--ink); }
.full-field { grid-column: 1 / -1; }
.payment-note { background: var(--paper); border: 1px solid var(--hairline); padding: 14px; margin: 18px 0; font-size: 14px; line-height: 1.6; }
.payment-note p { color: var(--muted); margin: 6px 0 0; }
.checkout-dialog .form-message { margin-top: 12px; }
.confirmation-dialog { text-align: center; width: min(460px, calc(100% - 28px)); padding: 48px 30px 35px; }
.confirmation-dialog .eyebrow { margin-bottom: 15px; color: var(--muted); }
.confirmation-dialog h2 { font-size: 35px; margin-bottom: 15px; }
.confirmation-dialog p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 25px; }
.confirmation-close { position: absolute; top: 12px; right: 12px; }

.reveal-section { opacity: 0; transform: translateY(16px); transition: opacity 400ms ease-out, transform 400ms ease-out; }
.reveal-section.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .site-header { padding: 0 4%; }
  .menu-toggle { display: block; margin: 0 auto 0 0; padding: 4px; }
  nav { display: none; position: absolute; top: 63px; left: 0; right: 0; padding: 20px 6%; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--hairline); flex-direction: column; gap: 20px; }
  nav.open { display: flex; }
  .site-header .brand { font-size: 18px; gap: 8px; }
  .site-header .brand small { font-size: 18px; }
  .hero-copy { padding-left: 8vw; padding-right: 8vw; }
  .section-pad { padding-right: 5%; padding-left: 5%; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-controls { align-items: flex-start; flex-direction: column; }
  .story-section { padding-right: 5%; padding-left: 5%; gap: 5%; }
}

@media (max-width: 700px) {
  .announcement { font-size: 11px; letter-spacing: .12em; }
  .site-header { height: 64px; padding: 0 16px; }
  .site-header .brand { font-size: 14px; gap: 0; }
  .site-header .brand small { font-size: 14px; }
  .site-header .brand-mark { display: none; }
  .menu-toggle { margin: 0 auto 0 0; padding: 4px; }
  nav { display: none; position: absolute; top: 63px; left: 0; right: 0; padding: 20px 6%; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--hairline); flex-direction: column; gap: 20px; }
  nav.open { display: flex; }
  .site-header.is-scrolled nav { background: var(--paper); color: var(--ink); }
  .cart-button { margin-left: auto; padding: 7px 8px; gap: 5px; }
  .cart-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .cart-label { font-size: 11px; }
  .cart-count { min-width: 18px; height: 18px; }
  .hero { min-height: 90vh; }
  .hero-copy { padding: 112px 8vw 92px; }
  h1 { font-size: 40px; }
  .hero-image-label { left: 8vw; right: 8vw; bottom: 20px; }
  .hero-side { display: none; }
  .hero-note { margin-top: 35px; }
  .benefits { padding: 20px 8%; grid-template-columns: 1fr; gap: 0; }
  .benefits div, .benefits div:first-child { padding: 18px 0; }
  .benefits div + div { border-left: 0; border-top: 1px solid var(--hairline); }
  .section-pad { padding: 64px 5%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 30px; }
  .section-heading > p br { display: none; }
  h2, .story-copy h2 { font-size: 32px; }
  .filters { gap: 12px 16px; }
  .filter { padding-bottom: 6px; font-size: 12px; }
  .search-box { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .product-title-row { flex-direction: column; gap: 5px; }
  .product-title-row h3, .product-price { font-size: 14px; }
  .product-description { display: none; }
  .quick-add { opacity: 1; pointer-events: auto; height: 44px; padding: 0 5px; font-size: 11px; }
  .product-tag { top: 7px; left: 7px; font-size: 11px; padding: 4px 10px; }
  .story-section { grid-template-columns: 1fr; padding: 72px 5%; gap: 28px; }
  .story-image { min-height: 320px; }
  .story-copy { padding: 0; }
  .newsletter-form { flex-direction: column; gap: 14px; }
  .newsletter-form input { flex: auto; width: 100%; }
  .newsletter-form .button { width: 100%; }
  footer { padding: 64px 6%; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .footer-bottom { flex-direction: column; }
  .cart-drawer { width: 100%; padding: 23px 18px; }
  .checkout-dialog, .confirmation-dialog { padding: 24px 18px; }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .hero h1 { font-size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .reveal-section { opacity: 1; transform: none; }
}


/* Current design revision: solid header and split-photo hero. */
:root {
  --hero-muted: #B9B1A6;
}

.site-header {
  height: 72px;
  margin-bottom: 0;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  transition: none;
}
.site-header.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--hairline);
}
.brand small { color: var(--muted); }
.brand-mark { border: 1px solid var(--ink); color: var(--accent); }
.site-header .brand small {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .12em;
  margin: 1px 0 0;
}
.site-header .brand-mark { border-color: var(--ink); color: var(--accent); }
.footer-brand .brand-mark { border-color: var(--paper); color: var(--paper); }
.footer-brand small { color: var(--paper); }
nav a { text-underline-offset: 4px; }
nav a:hover, nav a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; }
.cart-count {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
}
.menu-toggle {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--on-accent);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 90vh;
  background: var(--ink);
  color: var(--paper);
}
.hero-copy {
  width: 100%;
  min-height: 90vh;
  padding: 72px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy .eyebrow { color: var(--hero-muted); }
.hero h1 { font-size: 80px; line-height: 1.05; }
.hero h1 em { color: var(--paper); font-style: italic; }
.hero-text { color: var(--hero-muted); font-size: 16px; line-height: 1.7; }
.hero .button {
  align-self: flex-start;
  padding: 18px 32px;
  font-size: 12px;
  letter-spacing: .14em;
}
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-hover); color: var(--on-accent); }
.hero .hero-cta { background: var(--paper); color: var(--ink); }
.hero .hero-cta:hover, .hero .hero-cta:focus-visible { background: var(--accent); color: var(--on-accent); }
.hero-image {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 90vh;
  background: none;
}
.hero-image::after { content: none; display: none; }
.hero-image-label { left: 24px; right: 24px; color: var(--hero-muted); }
.hero-side { color: var(--hero-muted); }
.hero-rule { background: var(--paper); }
.quick-add { background: var(--accent); color: var(--on-accent); }
.quick-add:hover, .quick-add:focus-visible { background: var(--accent-hover); color: var(--on-accent); }

/* Primary controls on light surfaces use burgundy; specified utility controls retain their outlined/text-tab treatments. */
.icon-button,
.quantity-controls button,
.remove-item,
.cart-empty .text-link {
  background: var(--accent);
  color: var(--on-accent);
}
.cart-empty .text-link { border: 0; padding: 12px 16px; }

@media (max-width: 1000px) {
  .site-header { padding-right: 4%; padding-left: 4%; }
  .menu-toggle { display: block; margin: 0 auto 0 0; padding: 4px; }
  .site-header .brand { font-size: 18px; gap: 8px; }
  nav {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    padding: 20px 6%;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 20px;
  }
  nav.open { display: flex; }
  .hero-copy { padding-right: 6%; padding-left: 6%; }
  .hero h1 { font-size: 64px; }
}

@media (max-width: 700px) {
  .site-header { height: 72px; padding: 0 16px; }
  .site-header .brand { font-size: 15px; gap: 5px; }
  .site-header .brand-mark { width: 22px; height: 22px; font-size: 15px; }
  .site-header .brand small { font-size: 8px; }
  .menu-toggle { margin: 0 auto 0 0; padding: 4px; }
  nav { top: 71px; }
  .cart-button { margin-left: auto; padding: 7px 8px; gap: 5px; }
  .cart-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .cart-label { font-size: 11px; }
  .cart-count { min-width: 18px; height: 18px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { width: 100%; min-height: 0; padding: 58px 8% 48px; }
  .hero h1 { font-size: 44px; line-height: 1.05; }
  .hero-text { font-size: 16px; line-height: 1.7; }
  .hero-image { width: 100%; height: 55vh; min-height: 340px; }
  .hero-image-label { left: 20px; right: 20px; bottom: 20px; }
  .hero-side { display: block; right: 12px; top: 62%; font-size: 10px; }
}

@media (max-width: 700px) {
  .site-header .brand-mark { display: grid; }
}


/* Small fix round: shared container, flush hero photo and QAD Standard spacing. */
.site-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.site-header {
  display: block;
  height: 72px;
  margin: 0;
  padding: 0;
  background: var(--paper);
}
.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .1em;
  white-space: nowrap;
}
.site-header .brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-header .brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 24px;
}
.site-header .brand small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}
.site-header nav { margin-right: auto; }
.site-header .cart-button { margin-left: auto; color: var(--ink); border-color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 90vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.hero-copy {
  width: 100%;
  min-width: 0;
  min-height: 90vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  background: var(--ink);
}
.hero-content.site-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px 64px max(48px, calc((100vw - 1280px) / 2 + 48px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-image {
  position: relative;
  grid-column: 2;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 90vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
}
.hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
}
.hero-image-label { left: 24px; right: 24px; }

.shop-section.section-pad { padding: 96px 0; }
.story-section {
  display: block;
  padding: 120px 0;
  gap: 0;
}
.story-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}
.story-inner .story-image { min-height: 520px; }
.story-inner .story-copy { align-self: center; }
.newsletter.section-pad { padding: 96px 0; }
footer { padding: 64px 0; }

@media (max-width: 1000px) {
  .hero-content.site-container { padding-right: 0; padding-left: 48px; }
}

@media (max-width: 700px) {
  .site-container { padding-right: 20px; padding-left: 20px; }
  .site-header { height: 72px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 24px; }
  .site-header .brand small { margin-top: 4px; font-size: 11px; letter-spacing: .2em; }
  .hero { --mobile-hero-panel-height: max(55vh, 400px); display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { width: 100%; height: var(--mobile-hero-panel-height); min-height: var(--mobile-hero-panel-height); }
  .hero-content.site-container { max-width: 1280px; margin: 0 auto; padding: 58px 20px 48px; }
  .hero-image { width: 100%; height: var(--mobile-hero-panel-height); min-height: var(--mobile-hero-panel-height); }
  .hero-photo { width: 100%; height: 100%; }
  .hero-image-label { left: 20px; right: 20px; bottom: 20px; }
  .shop-section.section-pad { padding: 64px 0; }
  .story-section { padding: 72px 0; }
  .story-inner { grid-template-columns: 1fr; gap: 28px; }
  .story-inner .story-image { min-height: 320px; }
  .newsletter.section-pad { padding: 64px 0; }
  footer { padding: 64px 0; }
}

@media (max-width: 360px) {
  .hero { --mobile-hero-panel-height: max(55vh, 480px); }
}


/* POLISH ROUND: product image fallback, photo treatment and card hierarchy. */
.product-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--product-bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.product-photo img,
.cart-item-photo img,
.story-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 400ms ease-out;
}
.product-photo img[hidden],
.cart-item-photo img[hidden] { display: none !important; }
.product-card:hover .product-photo img { transform: scale(1.03); }
.product-photo-fallback,
.cart-photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: var(--product-bg);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
}
.product-photo.has-fallback .product-photo-fallback,
.cart-item-photo.has-fallback .cart-photo-fallback { display: grid; }
.product-info { padding: 12px 1px 0; }
.product-category {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.product-title-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.product-title-row h3 {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
}
.product-price {
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.product-description {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
.cart-item-photo {
  position: relative;
  width: 82px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--product-bg);
}
.cart-item-photo img { display: block; width: 100%; height: 100%; }
.cart-photo-fallback { font-size: 32px; }
.story-image {
  display: block;
  width: 100%;
  height: 520px;
  min-height: 520px;
  background: var(--product-bg);
}
.footer-bottom { border-top-color: var(--ink); }

@media (max-width: 700px) {
  .product-title-row { flex-direction: row; align-items: flex-start; gap: 8px; }
  .product-title-row h3, .product-price { font-size: 15px; }
  .product-description { display: block; }
  .story-inner .story-image { height: 320px; min-height: 320px; }
}

/* A missing-photo tile contains only Q; retain its add action just below the tile. */
.product-photo.has-fallback .product-tag,
.product-photo.has-fallback .quick-add { display: none; }
.quick-add-fallback { display: none; }
.product-card.has-missing-photo .quick-add-fallback:not([hidden]) {
  position: static;
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  opacity: 1;
  pointer-events: auto;
  background: var(--accent);
  color: var(--on-accent);
}


/* FOOTER POLISH ROUND */
footer {
  padding: 72px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.footer-brand {
  justify-self: start;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .1em;
}
.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 24px;
}
.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1;
}
.footer-brand > span:last-child small {
  display: block;
  margin: 4px 0 0;
  color: #B9B1A6;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}
.footer-top > p {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
}
.footer-links {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 22px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-links a {
  border: 0;
  color: var(--paper);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-divider {
  width: 100%;
  height: 1px;
  margin: 40px 0 28px;
  background: var(--paper);
  opacity: .12;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  padding: 0;
  color: #B9B1A6;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
}

@media (max-width: 767px) {
  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }
  .footer-brand,
  .footer-top > p,
  .footer-links {
    grid-column: auto;
    justify-self: center;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-top > p {
    white-space: normal;
  }
}


/* HEADER REDESIGN */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 88px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #F7F4EF;
  color: #141414;
  transition: height 250ms ease-out;
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #141414;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease-out;
}
.header-inner.site-container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 100%;
}
.site-header .brand {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #141414;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: .12em;
  text-decoration: none;
  transform: none;
  white-space: nowrap;
  transition: font-size 250ms ease-out;
}
.site-header .brand > span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 28px;
  line-height: 1;
  transition: font-size 250ms ease-out;
}
.site-header .brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid #141414;
  color: #6E1F2A;
  font-family: var(--serif);
  font-size: 26px;
  transition: width 250ms ease-out, height 250ms ease-out, flex-basis 250ms ease-out, font-size 250ms ease-out;
}
.site-header .brand small {
  display: block;
  margin: 4px 0 0;
  color: #6B665F;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  line-height: 1;
  text-transform: uppercase;
}
.site-header nav {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #141414;
}
.site-header nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: #141414;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  right: auto;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #6E1F2A;
  transition: width 250ms ease-out, left 250ms ease-out;
}
.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #141414;
  text-decoration: none;
}
.site-header nav a:hover::after,
.site-header nav a.is-active::after,
.site-header nav a:focus-visible::after {
  left: 0;
  width: 100%;
}
.site-header .cart-button {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #F7F4EF;
  color: #141414;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color 200ms ease-out;
}
.site-header .cart-button:hover,
.site-header .cart-button:focus-visible {
  color: #6E1F2A;
}
.site-header .cart-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.site-header .cart-label {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
.site-header .cart-count {
  display: inline-grid;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #6E1F2A;
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  transform: scale(1);
}
.site-header .cart-count.is-bumping {
  animation: cart-count-pop 300ms ease-out;
}
@keyframes cart-count-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.site-header .menu-toggle {
  display: none;
}
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid #6E1F2A;
  outline-offset: 3px;
}
@media (min-width: 1024px) {
  .site-header.is-scrolled {
    height: 64px;
  }
  .site-header.is-scrolled::after {
    opacity: .12;
  }
  .site-header.is-scrolled .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .site-header.is-scrolled .brand > span:last-child {
    font-size: 22px;
  }
}
@media (max-width: 1023px) {
  .site-header {
    height: 64px;
  }
  .site-header.is-scrolled {
    height: 64px;
  }
  .site-header::after,
  .site-header.is-scrolled::after {
    opacity: 0;
  }
  .header-inner.site-container {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding-right: 20px;
    padding-left: 20px;
  }
  .site-header .brand {
    grid-column: 2;
    font-size: 22px;
    gap: 8px;
  }
  .site-header .brand > span:last-child {
    font-size: 22px;
  }
  .site-header .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 22px;
  }
  .site-header .brand small {
    display: none;
  }
  .site-header .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    place-items: center;
    font-size: 23px;
    line-height: 1;
  }
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 1;
    display: flex;
    width: 100vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin: 0;
    padding: 32px 20px;
    background: #141414;
    color: #F7F4EF;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -12px);
    transition: transform 300ms ease-out, opacity 300ms ease-out, visibility 0s linear 300ms;
  }
  .site-header nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition: transform 300ms ease-out, opacity 300ms ease-out, visibility 0s;
  }
  .site-header nav a {
    padding: 0;
    color: #F7F4EF;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
  }
  .site-header nav a:hover,
  .site-header nav a:focus-visible {
    color: #F7F4EF;
  }
  .site-header nav a::after {
    display: none;
  }
  .site-header .cart-button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 8px;
  }
  .site-header .cart-label {
    display: none;
  }
}
#shop .shop-controls {
  align-items: center;
}


/* Keep collection filters and search aligned on one row at tablet widths. */
@media (min-width: 701px) and (max-width: 1023px) {
  #shop .shop-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  #shop .filters {
    flex: 1 1 auto;
    gap: 12px;
  }
  #shop .search-box {
    flex: 0 0 190px;
    min-width: 190px;
  }
}
