:root {
  --ink: #141414;
  --muted: #73706b;
  --line: #e8e2da;
  --paper: #fbfaf7;
  --warm: #d8c5ad;
  --soft: #f1ece5;
  --accent: #76624d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.55vw, 1.72rem);
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.mainnav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mainnav a {
  padding: 27px 0;
  border-bottom: 1px solid transparent;
}

.mainnav a:hover,
.mainnav a.active {
  border-color: var(--ink);
}

.actions,
.mobile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.6;
}

.bag-count {
  position: absolute;
  right: 4px;
  top: 5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.62rem;
  line-height: 17px;
  text-align: center;
}

.menu-btn {
  display: none;
}

.hero {
  min-height: min(860px, calc(92vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  min-width: 0;
  min-height: 560px;
  flex-direction: column;
  justify-content: end;
  gap: 24px;
  padding: 7vw 8vw 7vw 6vw;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 830px;
  width: 100%;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7.1vw, 7.8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 600px;
  width: 100%;
  color: #4f4a45;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.hero-media {
  min-width: 0;
  min-height: 640px;
}

.hero-media img,
.split-image img,
.editorial-image img,
.category-tile img,
.product-card img {
  height: 100%;
  object-fit: cover;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
}

.section {
  padding: 86px 32px;
}

.section.compact {
  padding-top: 54px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto 28px;
}

.section-head h2,
.page-title h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.95;
}

.section-head p,
.page-title p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--line);
}

.category-tile {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #ddd5ca;
}

.category-tile span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 11px 14px;
  background: rgba(251, 250, 247, 0.9);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 640px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.editorial-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 7vw;
}

.editorial-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--line);
}

.product-card {
  min-width: 0;
  background: var(--paper);
}

.product-link {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e7e0d8;
}

.product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  min-height: 118px;
  padding: 16px;
}

.product-info h3 {
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.quick-add {
  align-self: start;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.page-title {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 32px 36px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto 18px;
  padding: 0 32px;
}

.toolbar select,
.search-box input,
.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: 42px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 68px 32px;
}

.product-detail .detail-image {
  background: var(--soft);
}

.product-detail .detail-image img {
  max-height: 820px;
  object-fit: cover;
}

.detail-panel {
  min-width: 0;
  position: sticky;
  top: 104px;
  align-self: start;
}

.price {
  font-size: 1.05rem;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.size-grid button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.content-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  color: #3d3935;
  line-height: 1.8;
}

.content-band > *,
.contact-grid > *,
.cart-layout > *,
.editorial-image {
  min-width: 0;
}

.content-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field textarea {
  min-height: 140px;
  padding-top: 12px;
  resize: vertical;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cart-summary {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.drawer,
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.drawer::before,
.search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.34);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drawer.open,
.search-panel.open {
  pointer-events: auto;
}

.drawer.open::before,
.search-panel.open::before {
  opacity: 1;
}

.drawer-panel,
.search-inner {
  position: absolute;
  right: 0;
  top: 0;
  width: min(430px, 100%);
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  background: var(--paper);
  padding: 24px;
  overflow: auto;
}

.drawer.open .drawer-panel,
.search-panel.open .search-inner {
  transform: translateX(0);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.empty {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 30px;
  padding: 54px 32px;
  border-top: 1px solid var(--line);
  background: #111;
  color: #f7f3ed;
}

.site-footer p,
.site-footer a {
  color: #c6beb4;
}

.site-footer a {
  display: block;
  margin: 10px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 80;
  transform: translate(-50%, 120px);
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transition: all 0.22s ease;
}

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 0 16px;
  }

  .menu-btn {
    display: inline-grid;
  }

  .mainnav {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    justify-content: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    transform: translateY(-130%);
    transition: transform 0.22s ease;
  }

  .mainnav.open {
    display: grid;
    transform: translateY(0);
  }

  .mainnav a {
    padding: 18px 22px;
    border-top: 1px solid var(--line);
  }

  .hero,
  .editorial,
  .product-detail,
  .content-band,
  .contact-grid,
  .cart-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    padding: 76px 24px 40px;
  }

  .hero-media {
    min-height: 52vh;
  }

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

  .category-tile {
    min-height: 420px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .actions .account-link {
    display: none;
  }

  .brand {
    font-size: 0.94rem;
  }

  .topbar {
    gap: 4px;
    padding: 0 10px;
  }

  .icon-btn {
    width: 34px;
    height: 40px;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 3.05rem);
    max-width: 272px;
    line-height: 0.92;
    overflow-wrap: break-word;
  }

  .lead,
  .button-row {
    max-width: 272px;
  }

  .section,
  .page-title {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .toolbar {
    display: grid;
    padding-left: 0;
    padding-right: 0;
  }

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

  .product-grid.two-up-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-info {
    grid-template-columns: 1fr;
    min-height: 128px;
    padding: 12px;
  }

  .quick-add {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 76px 1fr;
  }

  .cart-item .price {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
