:root {
  --ink: #211a15;
  --muted: #6e6258;
  --paper: #f8f3ea;
  --panel: #fffaf2;
  --line: #ded2c2;
  --copper: #b56b35;
  --copper-dark: #743d21;
  --forest: #1f4b3f;
  --charcoal: #303235;
  --cream: #fff8ed;
  --shadow: 0 24px 80px rgba(33, 26, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 243, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--cream);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

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

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cart-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--forest);
  border-radius: 8px;
  color: white;
  font-weight: 800;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  background: white;
  border-radius: 99px;
  color: var(--forest);
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  min-height: calc(100vh - 76px);
  border-bottom: 1px solid var(--line);
}

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

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

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 78px);
  background: var(--panel);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.05;
}

h1 {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 82px);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.split-section p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--copper);
  color: white;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: white;
}

.quick-strip div {
  padding: 24px clamp(18px, 4vw, 56px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  margin-bottom: 5px;
  font-size: 26px;
}

.quick-strip span {
  color: rgba(255, 255, 255, 0.72);
}

.section,
.split-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

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

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

.product-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1.18;
  overflow: hidden;
  background: #d9ccbd;
}

.product-image-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

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

.price-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  background: rgba(33, 26, 21, 0.9);
  border-radius: 8px;
  color: white;
  font-weight: 800;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.product-type {
  margin-bottom: 8px;
  color: var(--copper-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body h3 {
  margin-bottom: 9px;
  font-size: 21px;
}

.product-description {
  color: var(--muted);
  line-height: 1.55;
}

.product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-options span {
  padding: 6px 8px;
  background: #efe3d3;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  background: var(--charcoal);
  color: white;
}

.split-section .eyebrow,
.split-section p {
  color: #e6b27d;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.gallery-section {
  background: #ede2d3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery-grid img {
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-grid img:nth-child(2),
.gallery-grid img:nth-child(5) {
  grid-column: span 2;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(520px, 100%);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-panel[aria-hidden="false"] {
  transform: translateX(0);
}

.cart-panel-inner {
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(33, 26, 21, 0.36);
}

body.cart-open .scrim {
  display: block;
}

.cart-head,
.saved-orders-head,
.cart-line,
.totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-head {
  margin-bottom: 18px;
}

.cart-head h2 {
  margin: 0;
  font-size: 34px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: #efe3d3;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.cart-line {
  align-items: flex-start;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-line h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cart-line button,
.saved-orders button {
  border: 0;
  background: transparent;
  color: var(--copper-dark);
  cursor: pointer;
  font-weight: 800;
}

.checkout-form,
.custom-form {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

textarea {
  resize: vertical;
}

.totals {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.totals strong {
  font-size: 25px;
}

.fine-print {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.saved-orders {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.saved-orders h3 {
  margin: 0;
}

.saved-order {
  margin-top: 10px;
  padding: 12px;
  background: #f1e6d7;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.custom-dialog {
  width: min(920px, calc(100% - 24px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.custom-dialog::backdrop {
  background: rgba(33, 26, 21, 0.44);
}

.custom-form {
  position: relative;
  padding: 18px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.custom-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.custom-layout > img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 8px;
}

.custom-layout > div {
  padding: 22px 8px 8px 0;
}

.dialog-price {
  margin: 14px 0 18px;
  color: var(--forest);
  font-size: 28px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  max-width: 320px;
  transform: translateY(20px);
  opacity: 0;
  padding: 14px 16px;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

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

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero,
  .split-section,
  .custom-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 360px;
  }

  .quick-strip,
  .product-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .quick-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section-heading {
    display: block;
  }

  .gallery-grid img,
  .gallery-grid img:nth-child(2),
  .gallery-grid img:nth-child(5) {
    grid-column: auto;
    height: 300px;
  }

  .custom-layout > img {
    min-height: 280px;
    max-height: 360px;
  }

  .custom-layout > div {
    padding: 0;
  }

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

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .cart-button span {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .dialog-actions {
    display: grid;
  }
}
