:root {
  --ink: #111111;
  --muted: #66615d;
  --line: #dedbd4;
  --paper: #ffffff;
  --soft: #f6f5f2;
  --stone: #d8d2c6;
  --olive: #3f4b3d;
  --clay: #8e6955;
  --sea: #486b6c;
  --danger: #b3261e;
  --shadow: 0 16px 45px rgba(20, 18, 15, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.bag-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

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

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f5;
  color: #2b2927;
  font-size: 12px;
}

.utility-bar nav {
  display: flex;
  gap: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 42px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.simple-header {
  display: flex;
  justify-content: center;
  padding-bottom: 22px;
}

.brand {
  justify-self: center;
}

.brand img {
  width: 260px;
  height: auto;
}

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

.header-actions.right {
  justify-self: end;
}

.icon-button,
.cart-button,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.icon-button {
  width: 42px;
  height: 42px;
}

.icon-button svg,
.cart-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button {
  gap: 8px;
  min-height: 42px;
  padding: 0 4px;
  font-size: 14px;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
}

.site-nav {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 58px;
  min-height: 56px;
  font-size: 14px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--ink);
}

.sale-link {
  color: var(--danger);
}

.search-panel {
  position: sticky;
  top: 146px;
  z-index: 19;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px 42px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.search-panel[hidden] {
  display: none;
}

.search-field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  padding: 0 16px;
  border-radius: var(--radius);
}

.loading-state,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 42px;
  text-align: center;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

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

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

.button.full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  font-size: 14px;
}

.eyebrow,
.micro {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(520px, 1.25fr);
  min-height: 620px;
  border-bottom: 1px solid var(--line);
  background: #f8f7f4;
}

.hero-copy {
  align-self: center;
  padding: 72px 7vw;
}

.hero-copy h1 {
  max-width: 640px;
  margin: 0 0 18px;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 700;
}

.hero-copy p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-media {
  min-height: 620px;
  overflow: hidden;
}

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

.brand-ribbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 42px 18px;
}

.brand-logo-card {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.brand-logo-card img {
  max-width: 185px;
  max-height: 58px;
  margin-bottom: 12px;
  object-fit: contain;
}

.section-block {
  padding: 48px 42px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2,
.feature-band h2,
.newsletter-panel h2,
.checkout-card h2,
.policy-card h2,
.care-panel h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

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

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

.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f7f6f3;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.product-card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.product-brand {
  color: var(--muted);
  font-size: 12px;
}

.product-card h3 {
  min-height: 42px;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.price-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-line s {
  color: var(--muted);
  font-size: 13px;
}

.swatches {
  display: flex;
  gap: 7px;
  min-height: 18px;
}

.swatches span {
  width: 14px;
  height: 14px;
  border: 1px solid #c4c0b8;
  border-radius: 999px;
  background: var(--swatch);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.category-tile {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  font-weight: 700;
}

.category-tile img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  background: var(--soft);
}

.category-tile span {
  padding: 14px;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: stretch;
  margin: 28px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}

.feature-band > div {
  align-self: center;
  padding: 54px;
}

.feature-band p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.feature-band img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 32px;
  align-items: center;
  padding: 54px 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
}

.newsletter-panel p {
  color: var(--muted);
}

.newsletter-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-panel input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.newsletter-panel input {
  height: 46px;
  padding: 0 14px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--olive);
  font-size: 13px;
}

.page-hero {
  padding: 76px 42px 54px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.page-hero.compact {
  padding-top: 52px;
  padding-bottom: 42px;
}

.confirmation-page {
  min-height: 520px;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 12px;
  font-size: 52px;
  line-height: 1.05;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  padding: 34px 42px 58px;
}

.filter-panel {
  position: sticky;
  top: 166px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.filter-panel form,
.checkout-form,
.form-grid {
  display: grid;
  gap: 16px;
}

.filter-panel label,
.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel select,
.filter-panel input,
.checkout-form input,
.checkout-form select {
  height: 44px;
  padding: 0 12px;
}

.checkout-form textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.shop-toolbar a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 700;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 42px;
}

.brand-card-large {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.brand-card-large a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  min-height: 330px;
}

.brand-image {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  background: var(--soft);
}

.brand-content {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 32px;
}

.brand-content h2 {
  margin: 0;
  font-size: 34px;
}

.brand-content p {
  margin: 0;
  color: var(--muted);
}

.brand-card-logo {
  max-width: 230px;
  max-height: 86px;
  object-fit: contain;
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  min-height: 520px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.brand-hero > div {
  align-self: center;
  padding: 54px 7vw;
}

.brand-hero h1 {
  margin: 0 0 14px;
  font-size: 56px;
}

.brand-hero p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.brand-hero > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.brand-hero-logo {
  width: 260px;
  max-height: 105px;
  margin-bottom: 26px;
  object-fit: contain;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 42px;
  padding: 42px;
}

.product-gallery {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-gallery img {
  width: 100%;
  height: min(760px, 78vh);
  min-height: 520px;
  object-fit: cover;
}

.product-info {
  align-self: start;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 160px;
}

.product-info h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stock-line {
  color: var(--olive) !important;
  font-weight: 700;
}

.selector-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.selector-row label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.selector-row select {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.accordion-list {
  border-top: 1px solid var(--line);
}

.accordion-list details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.accordion-list summary {
  cursor: pointer;
  font-weight: 700;
}

.accordion-list ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-content: end;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cart-drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(460px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
}

.cart-items {
  overflow: auto;
  padding: 8px 24px;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.cart-summary > div,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.bag-line,
.order-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.bag-line img,
.order-line img {
  width: 92px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--soft);
}

.bag-line a {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: 700;
}

.bag-line p,
.order-line span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}

.qty-row button {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.qty-row button:last-child {
  width: auto;
  padding: 0 8px;
  color: var(--muted);
}

.cart-page,
.checkout-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  padding: 42px;
}

.panel,
.checkout-card,
.care-panel,
.policy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel {
  padding: 24px;
}

.checkout-card,
.care-panel {
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 24px;
  position: sticky;
  top: 160px;
}

.checkout-card p,
.care-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-form h2 {
  margin: 14px 0 0;
  font-size: 22px;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.option-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink) !important;
}

.option-card input {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px;
}

.option-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.consent {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: var(--muted) !important;
  font-weight: 400 !important;
}

.consent input {
  width: 18px !important;
  height: 18px !important;
  margin-top: 1px;
}

.order-list {
  display: grid;
}

.order-line {
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.order-line img {
  width: 68px;
  height: 82px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 42px;
}

.policy-card {
  padding: 28px;
}

.policy-card p {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: #f7f6f3;
}

.footer-service {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 42px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding: 38px 42px;
}

.footer-grid img {
  width: 210px;
  margin-bottom: 16px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.copyright {
  margin: 0;
  padding: 0 42px 34px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .product-grid,
  .rail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .site-nav {
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .utility-bar {
    padding: 0 18px;
  }

  .utility-bar nav {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 14px 18px;
  }

  .brand img {
    width: 190px;
  }

  .account-link,
  .header-actions.left {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    align-items: stretch;
    min-height: 0;
    padding: 10px 0 2px;
    gap: 0;
    overflow: auto;
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    min-height: 44px;
    border-bottom: 1px solid var(--line);
  }

  .search-panel {
    top: 73px;
    padding: 12px 18px;
  }

  .hero-shell,
  .brand-hero,
  .product-detail,
  .feature-band,
  .newsletter-panel,
  .shop-layout,
  .cart-page,
  .checkout-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: 0;
  }

  .hero-copy {
    padding: 46px 24px 28px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-media,
  .brand-hero > img {
    min-height: 360px;
  }

  .brand-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px 18px 10px;
  }

  .section-block,
  .page-hero,
  .shop-layout,
  .brand-grid,
  .product-detail,
  .cart-page,
  .checkout-layout,
  .contact-layout,
  .policy-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .product-grid,
  .rail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-card h3 {
    min-height: 56px;
    font-size: 14px;
  }

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

  .feature-band {
    margin: 18px;
  }

  .feature-band > div {
    padding: 28px;
  }

  .newsletter-panel form,
  .form-grid.two,
  .option-grid,
  .policy-grid,
  .footer-service,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .product-info,
  .checkout-card,
  .care-panel {
    position: static;
  }

  .shop-layout > div {
    order: 1;
  }

  .filter-panel {
    order: 2;
  }

  .brand-card-large a {
    grid-template-columns: 1fr;
  }

  .page-hero h1,
  .brand-hero h1 {
    font-size: 38px;
  }

  .product-info h1 {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 160px;
  }

  .cart-button span {
    display: none;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .product-grid,
  .rail-grid {
    gap: 12px;
  }

  .product-card-body {
    padding: 12px;
  }

  .button {
    padding: 0 14px;
    font-size: 13px;
  }

  .brand-ribbon {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    width: 100vw;
  }
}
