:root {
  --ink: #111;
  --ink-soft: #403d39;
  --muted: #746f66;
  --paper: #fffdf9;
  --paper-alt: #f2eee7;
  --line: #ded8ce;
  --accent: #b83f2d;
  --accent-dark: #8e2f22;
  --success: #1f7a4d;
  --warning: #b66a00;
  --radius: 2px;
  --shadow: 0 22px 60px rgba(17, 17, 17, 0.14);
  --font-sans: "IBM Plex Sans", Arial, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 10px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17,17,17,.025) 1px, transparent 1px),
    var(--paper);
  background-size: 84px 84px;
}

.topbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: .01em;
}

.topbar p {
  margin: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: .02em;
}

.topbar .text-button:last-child {
  justify-self: end;
}

.text-button,
.text-link,
.nav-item,
.mega-menu button,
.mobile-menu button,
.mobile-menu a {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.home-nav-item {
  display: none;
}

.all-products-mode .home-nav-item {
  display: inline-flex;
}

.text-button,
.text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,253,249,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-main {
  height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 34px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 22px;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.nav-item {
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding: 28px 0 26px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ink);
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-link,
.cart-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
}

.cart-link span {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  margin-left: 6px;
  font-size: 12px;
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 42px;
  padding: 34px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header.mega-open .mega-menu {
  display: grid;
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mega-menu button {
  display: block;
  text-align: left;
  padding: 9px 0;
  color: var(--ink-soft);
}

.mega-menu button:hover {
  color: var(--accent);
}

.mega-callout {
  background: #ebe3d8;
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mega-callout span,
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mega-callout strong {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.35;
  max-width: 380px;
}

.mobile-only,
.mobile-menu {
  display: none;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 9px;
}

.icon-button span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.hero {
  min-height: calc(100vh - 98px);
  display: grid;
  grid-template-columns: minmax(320px, .46fr) minmax(0, .54fr);
  gap: 0;
  padding: 0 34px 34px;
}

.hero-copy {
  background: var(--paper);
  padding: clamp(36px, 6vw, 90px) clamp(24px, 5vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
  max-width: 540px;
}

.hero-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: clamp(20px, 1.75vw, 28px);
  line-height: 1.42;
  max-width: 520px;
  margin: 24px 0 0;
}

.hero-actions,
.toolbar-actions,
.tabs,
.two-col {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  border: 1px solid var(--ink);
  padding: 13px 20px;
  min-height: 48px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button-light {
  background: var(--paper);
}

.button-light:hover {
  background: var(--ink);
  color: #fff;
}

.hero-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #fff;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(20px, 4vw, 64px);
}

.hero-media img[src$=".svg"] {
  object-fit: cover;
  padding: 0;
}

.hero-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: rgba(255,253,249,.94);
  max-width: 330px;
  padding: 22px;
  border: 1px solid var(--line);
}

.hero-note span {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 700;
}

.hero-note strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: #fff;
}

.hero-persona {
  position: relative;
  border: 0;
  border-left: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: #fff;
  overflow: hidden;
  padding: 0;
  min-height: 0;
}

.hero-persona img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(10px, 1.5vw, 24px);
  transition: transform .35s ease;
}

.hero-persona:hover img {
  transform: scale(1.035);
}

.hero-persona span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.category-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-band button {
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  padding: 28px 34px;
  min-height: 150px;
}

.category-band button:last-child {
  border-right: 0;
}

.category-band span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 18px;
}

.category-band strong {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.22;
}

.category-band button:hover {
  background: var(--paper-alt);
}

.collection-panel,
.design-story,
.service-strip,
.journal,
.contact-section {
  padding: clamp(52px, 7vw, 96px) 34px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .55fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 30px;
}

.section-heading h2,
.design-story h2,
.service-strip h2,
.contact-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0;
}

.section-heading p:not(.eyebrow),
.contact-section p {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.all-products-link {
  flex: 0 0 auto;
}

.toolbar {
  display: none;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.all-products-mode .toolbar {
  display: flex;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 14px;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 13px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: transparent;
  border: 0;
}

.load-more-row {
  display: none;
  justify-content: center;
  padding-top: 28px;
}

.all-products-mode .load-more-row {
  display: flex;
}

.load-more-row[hidden] {
  display: none;
}

.product-card {
  background: var(--paper);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgba(37,31,27,.08);
}

.product-image {
  display: block;
  position: relative;
  aspect-ratio: 1.16 / 1;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.78), transparent 34%),
    linear-gradient(135deg, #ede4da 0%, #d8cbbd 100%);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform .35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.badge-stack {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  width: fit-content;
  padding: 5px 8px;
  background: rgba(255,253,249,.95);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.badge.sale {
  background: var(--accent);
  color: #fff;
}

.product-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-category {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.product-title {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.22;
  min-height: 74px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title:hover {
  color: var(--accent);
}

.product-meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  margin: 0;
  min-height: 32px;
  text-transform: uppercase;
}

.product-desc {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  min-height: 70px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: auto;
}

.price {
  font-size: 20px;
  font-weight: 700;
}

.compare-price {
  color: var(--muted);
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.product-actions .button {
  width: 100%;
}

.mini-button {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 11px 12px;
  text-align: center;
}

.mini-button:hover,
.mini-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.product-image.image-missing::after,
.saved-thumb.image-missing::after,
.compare-thumb.image-missing::after,
.main-image.image-missing::after {
  content: 'Image coming soon';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.empty-state,
.loading-state {
  grid-column: 1 / -1;
  background: var(--paper);
  padding: 70px 24px;
  text-align: center;
}

.empty-state.compact {
  padding: 36px 22px;
}

.design-story {
  background: var(--ink);
  color: #fff;
}

.design-story .eyebrow,
.service-strip .eyebrow {
  color: #eec0b7;
}

.story-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.22);
}

.story-grid article {
  background: var(--ink);
  padding: clamp(24px, 4vw, 48px);
  min-height: 280px;
}

.story-grid span {
  color: #eec0b7;
}

.story-grid h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.15;
}

.story-grid p {
  color: rgba(255,255,255,.74);
  line-height: 1.6;
}

.service-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--accent);
  color: #fff;
}

.journal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.journal article {
  background: var(--paper-alt);
  display: grid;
  grid-template-columns: .95fr 1fr;
  min-height: 330px;
}

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

.journal article div {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.journal h3 {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.18;
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border: 1px solid var(--line);
}

.contact-cards button {
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  padding: 28px;
}

.contact-cards button:last-child {
  border-right: 0;
}

.contact-cards span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  margin-bottom: 16px;
}

.contact-cards strong {
  font-size: 21px;
  line-height: 1.3;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(320px, .7fr);
  gap: 30px;
  padding: 44px 34px;
  background: var(--ink);
  color: #fff;
}

.brand-footer {
  color: #fff;
}

.site-footer p {
  color: rgba(255,255,255,.66);
  max-width: 440px;
  line-height: 1.6;
}

.newsletter label {
  display: block;
  margin-bottom: 14px;
}

.newsletter div {
  display: flex;
  gap: 10px;
}

.newsletter input {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}

.newsletter input::placeholder {
  color: rgba(255,255,255,.62);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(17,17,17,.38);
}

.drawer,
.modal {
  position: fixed;
  z-index: 180;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease;
}

.drawer.open,
.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer {
  top: 0;
  right: 0;
  width: min(500px, 100vw);
  height: 100vh;
  padding: 28px;
  overflow-y: auto;
}

.search-drawer {
  width: min(680px, 100vw);
}

.modal {
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 30px;
  transform: translate(-50%, calc(-50% + 14px));
}

.modal.open {
  transform: translate(-50%, -50%);
}

.product-modal {
  width: min(1540px, calc(100vw - 32px));
  padding: 26px;
}

.drawer-close {
  float: right;
  border: 0;
  background: transparent;
  text-decoration: none;
  margin-bottom: 16px;
  width: 42px;
  height: 42px;
  font-size: 32px;
  line-height: 1;
}

#searchForm {
  clear: both;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 46px;
}

#searchInput {
  font-size: 22px;
  min-height: 60px;
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-searches button {
  border: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 10px 12px;
}

.cart-items {
  clear: both;
  display: grid;
  gap: 16px;
  margin: 38px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--paper-alt);
}

.cart-item h4 {
  margin: 0 0 6px;
}

.quantity-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.quantity-row button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.cart-summary {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-summary .button {
  width: 100%;
}

.cart-compare {
  position: fixed;
  top: 0;
  right: min(500px, 100vw);
  width: min(700px, calc(100vw - 500px));
  height: 100vh;
  overflow-y: auto;
  z-index: 181;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-compare[hidden] {
  display: none;
}

.cart-compare-header h3 {
  margin: 4px 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.15;
}

.cart-compare-header p:last-child {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 14px;
}

.cart-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.cart-compare-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px;
}

.cart-compare-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: var(--paper-alt);
  margin-bottom: 10px;
}

.cart-compare-card h4 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.cart-compare-card dl {
  display: grid;
  gap: 1px;
  background: var(--line);
  margin: 0;
}

.cart-compare-card dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  background: #fff;
  padding: 9px;
}

.cart-compare-card dt {
  color: var(--muted);
  font-size: 12px;
}

.cart-compare-card dd {
  margin: 0;
  line-height: 1.4;
}

.cart-compare-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.cart-compare-tags span {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 8px;
  font-size: 12px;
}

.cart-compare-summary {
  margin: 16px 0 0;
  padding: 14px;
  border-left: 3px solid var(--accent);
  background: var(--paper-alt);
  line-height: 1.55;
  font-weight: 600;
}

.cart-compare-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 8px;
}

.cart-compare-toggle input {
  width: auto;
}

.tabs {
  clear: both;
  margin: 40px 0 20px;
}

.tabs button {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 14px;
}

.tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.account-form,
.help-form,
.checkout-form {
  display: none;
  gap: 12px;
}

.account-form.active,
.help-form,
.checkout-form {
  display: grid;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.account-status {
  margin-top: 18px;
  color: var(--muted);
}

.product-page-shell {
  max-width: 1800px;
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 32px clamp(18px, 3vw, 46px) 70px;
  background: var(--paper);
}

.product-detail-mode .topbar,
.product-detail-mode .site-header {
  display: none;
}

.product-detail-mode .product-page-shell {
  padding-top: 104px;
}

.product-back-link {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 3vw, 46px);
  background: rgba(255,253,249,.96);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.amazon-product-detail {
  clear: both;
  display: grid;
  grid-template-columns: minmax(420px, 46%) minmax(320px, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  position: sticky;
  top: 100px;
  min-width: 0;
}

.thumbs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.thumbs button {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 3px;
  aspect-ratio: 1;
}

.thumbs button.active,
.thumbs button:hover {
  border-color: var(--accent);
}

.thumbs img,
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper-alt);
}

.main-image {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: min(660px, calc(100vh - 150px));
  background: var(--paper-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}

.detail-content {
  min-width: 0;
}

.detail-content h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(26px, 2.2vw, 38px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.rating-line {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #b46900;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.rating-line button {
  border: 0;
  background: transparent;
  color: #2468a2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rating-line .rating-jump {
  color: #b46900;
  font-weight: 700;
}

.delivery-support {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.delivery-support h3,
.purchase-options h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-family: var(--font-body);
}

.support-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.support-icons button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  text-align: left;
}

.support-icons span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.detail-summary {
  color: var(--ink-soft);
  line-height: 1.65;
}

.bullet-list {
  padding-left: 20px;
  line-height: 1.58;
}

.bullet-list li {
  margin-bottom: 8px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 24px 0;
}

.detail-specs div {
  background: var(--paper);
  padding: 14px;
}

.detail-specs span,
.ship-table span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.buy-box {
  position: sticky;
  top: 18px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(17,17,17,.06);
}

.buy-price {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 14px;
}

.delivery-line {
  color: var(--success);
  line-height: 1.45;
}

.secure-line {
  color: #2468a2;
  font-size: 14px;
}

.buy-box label {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}

.buy-box select {
  border-radius: 8px;
  background: #f0f2f2;
  border-color: #d5d9d9;
}

.amazon-cart,
.amazon-buy {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.amazon-cart {
  background: #ffd814;
  color: #111;
}

.amazon-cart:hover {
  background: #f7ca00;
}

.amazon-buy {
  background: #ffa41c;
  color: #111;
}

.amazon-buy:hover {
  background: #fa8900;
}

.amazon-cart:disabled,
.amazon-buy:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.ship-table {
  margin-top: 14px;
  border-top: 1px solid #d5d9d9;
  padding-top: 12px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.ship-table div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
}

.purchase-options {
  border-top: 1px solid #d5d9d9;
  margin-top: 14px;
  padding-top: 14px;
}

.service-option {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  gap: 10px !important;
  align-items: start;
  border: 1px solid var(--line);
  padding: 12px;
  margin: 10px 0 !important;
  background: #fff;
}

.service-option.product-only {
  border-color: #007185;
  background: #e9fbff;
}

.service-option input {
  width: auto;
  margin-top: 3px;
}

.service-option small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 3px;
}

.service-option em {
  font-style: normal;
  white-space: nowrap;
  font-weight: 700;
}

.detail-estimate {
  display: grid;
  gap: 8px;
  border-top: 1px solid #d5d9d9;
  border-bottom: 1px solid #d5d9d9;
  margin: 14px 0;
  padding: 12px 0;
}

.detail-estimate div,
.buy-box-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.buy-box-total {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 17px;
}

.product-reviews {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.product-reviews-inner {
  display: grid;
  gap: 24px;
}

.review-summary {
  display: grid;
  grid-template-columns: minmax(220px, .6fr) 1fr;
  gap: 24px;
  align-items: start;
}

.review-summary h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 56px);
}

.rating-bars {
  display: grid;
  gap: 8px;
}

.rating-bars div {
  display: grid;
  grid-template-columns: 54px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.rating-bars meter {
  width: 100%;
  height: 14px;
}

.review-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.review-form h4 {
  margin: 0;
  font-size: 20px;
}

.form-note,
.empty-review-copy,
.review-meta {
  color: var(--muted);
}

.review-list {
  display: grid;
  gap: 16px;
}

.review-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #b46900;
}

.review-card-head strong {
  color: var(--ink);
}

.review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.review-images img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}

.review-helpful {
  color: #2468a2;
  text-decoration: underline;
}

.checkout-services {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}

.checkout-services label {
  display: flex;
  gap: 10px;
  align-items: start;
}

.checkout-services input {
  width: auto;
  margin-top: 3px;
}

.compare-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.compare-card,
.saved-card {
  border: 1px solid var(--line);
  background: var(--paper);
}

.compare-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.compare-card h3,
.saved-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.15;
}

.compare-card p,
.saved-card p {
  color: var(--muted);
  line-height: 1.55;
}

.compare-thumb,
.saved-thumb {
  position: relative;
  background: var(--paper-alt);
  overflow: hidden;
}

.compare-thumb {
  aspect-ratio: 1.1 / 1;
}

.compare-thumb img,
.saved-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.compare-price-line {
  font-size: 24px;
  font-weight: 700;
}

.compare-card dl {
  display: grid;
  gap: 1px;
  background: var(--line);
  margin: 0;
}

.compare-card dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  background: var(--paper);
  padding: 10px;
}

.compare-card dt {
  color: var(--muted);
}

.compare-card dd {
  margin: 0;
}

.remove-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border: 1px solid var(--line);
  background: rgba(255,253,249,.92);
  padding: 7px 10px;
}

.saved-items {
  clear: both;
  display: grid;
  gap: 14px;
}

.saved-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 14px;
}

.saved-thumb {
  aspect-ratio: 1 / 1;
}

.saved-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  z-index: 220;
  background: var(--ink);
  color: #fff;
  padding: 13px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.open {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1120px) {
  .primary-nav {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .header-main {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    justify-self: start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media {
    min-height: 520px;
  }

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

  .amazon-product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }

  .detail-gallery {
    position: static;
  }

  .detail-content {
    grid-column: 1 / -1;
    order: 3;
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 190;
    width: min(380px, 92vw);
    height: 100vh;
    background: var(--paper);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateX(-105%);
    transition: transform .22s ease;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu button,
  .mobile-menu a {
    text-align: left;
    font-size: 24px;
  }
}

@media (max-width: 780px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 16px;
  }

  .topbar .text-button {
    display: none;
  }

  .header-main {
    padding: 0 16px;
    gap: 12px;
  }

  .header-actions {
    gap: 10px;
  }

  .icon-link {
    display: none;
  }

  .hero,
  .collection-panel,
  .design-story,
  .service-strip,
  .journal,
  .contact-section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy,
  .hero-media {
    min-height: auto;
  }

  .hero-copy {
    padding: 34px 22px;
  }

  .hero-media {
    aspect-ratio: 1 / 1;
  }

  .category-band,
  .story-grid,
  .journal,
  .contact-cards,
  .site-footer,
  .section-heading,
  .amazon-product-detail,
  .two-col,
  .saved-card {
    grid-template-columns: 1fr;
  }

  .detail-gallery,
  .buy-box {
    position: static;
  }

  .product-page-shell {
    padding: 22px 16px 54px;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .thumbs {
    display: flex;
    overflow-x: auto;
    order: 2;
  }

  .thumbs button {
    flex: 0 0 72px;
  }

  .category-band button,
  .contact-cards button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading-actions,
  .support-icons,
  .review-summary {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cart-compare {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: min(62vh, 620px);
    margin: 0;
    padding: 16px;
    z-index: 190;
  }

  .product-detail-mode .product-page-shell {
    padding-top: 88px;
  }

  .product-back-link {
    height: 62px;
  }

  #searchForm {
    grid-template-columns: 1fr;
  }
}
