:root {
  --cream: #F2E8DD;
  --paper: #fffdf9;
  --ink: #28231f;
  --muted: #786d63;
  --line: #e3d5c8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo-frame { width: clamp(140px, 18vw, 210px); height: 64px; }
.site-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}
.brand-placeholder {
  color: var(--ink);
  font: 29px/1 var(--serif);
  letter-spacing: .06em;
}
.brand-placeholder i, .footer-brand i { font-size: .75em; font-weight: 400; }
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}
.pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 99px;
  padding: 9px 15px;
  font-size: 13px;
}
.pill:hover, .pill.active { background: var(--ink); color: white; border-color: var(--ink); }

.hero {
  padding: 64px 0 58px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 650px;
  margin: 16px 0 20px;
  font: 400 clamp(42px, 6vw, 72px)/1.02 var(--serif);
  letter-spacing: -.035em;
}
.hero-copy > p { max-width: 510px; color: var(--muted); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 11px 19px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}
.btn.dark { background: var(--ink); color: white; }
.btn:hover { background: #51473f; color: white; }

.image-frame { position: relative; overflow: hidden; background: var(--cream); }
.image-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #94877c;
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
  transition: opacity .2s, visibility .2s;
}
.image-frame.has-image .image-placeholder { visibility: hidden; opacity: 0; }
.asset-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  visibility: hidden;
}
.asset-image.is-loaded { visibility: visible; }
.hero-image-wrap {
  min-width: 0;
  aspect-ratio: 1.06;
  min-height: 310px;
  border-radius: 48% 48% 5px 5px;
}
.hero-image { padding: 8%; }

.section { padding: 46px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section h2 {
  margin: 8px 0 0;
  font: 400 clamp(30px, 4vw, 43px)/1.1 var(--serif);
}
.section-head > p { max-width: 350px; margin: 0; color: var(--muted); font-size: 13px; }
.order-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #f8f1e9;
}
.order-strip h2 { margin: 0 0 5px; font-size: 26px; }
.order-strip p { margin: 0; color: var(--muted); font-size: 13px; }
.order-btn {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border: 1px solid #d9cbbb;
  background: var(--paper);
  font-size: 13px;
  font-weight: bold;
}
.order-btn:hover { border-color: var(--ink); }

.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.category-card { overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.category-cover { aspect-ratio: 4 / 3; }
.category-image { padding: 5%; object-fit: contain; }
.cover-label {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 16px;
  color: #594c42;
  font: italic 18px var(--serif);
  text-shadow: 0 1px 8px var(--cream);
}
.category-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
}
.category-info h3 { margin: 0; font: 400 27px var(--serif); }
.category-info p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
}

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover, .product-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #33281d0c;
}
.product-thumb { width: 100%; aspect-ratio: 4 / 5; }
.product-image { padding: 6%; }
.product-meta { display: block; padding: 15px; }
.product-title, .product-description { display: block; }
.product-title { margin: 0 0 4px; font: 400 19px var(--serif); }
.product-meta p { margin: 0; color: var(--muted); font-size: 12px; }
.view-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 3px;
  border-bottom: 1px solid #b7a493;
  font-size: 12px;
}

.marketplaces { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.market-link { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 9px 12px; color: #665b51; font-size: 12px; }
.market-link:hover { background: #f8f1e9; }
footer { margin-top: 35px; padding: 40px 0 22px; background: #292622; color: #f8f0e8; }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: 25px; }
.footer-brand { font: 30px var(--serif); letter-spacing: .05em; }
.footer-note { max-width: 360px; color: #c8bdb1; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.copyright {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #ffffff26;
  color: #bdb2a7;
  font-size: 11px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
  background: #1e1916b8;
}
.modal.open { display: flex; }
.modal-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(900px, 100%);
  max-height: min(850px, calc(100dvh - 40px));
  overflow: auto;
  background: var(--paper);
}
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 22px;
}
.modal-visual { min-height: 420px; aspect-ratio: 4 / 5; }
.modal-product-image { padding: 8%; }
.gallery-controls {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.gallery-controls button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf9e8;
}
.gallery-controls .gallery-dot { width: 12px; min-width: 12px; height: 12px; min-height: 12px; padding: 0; }
.gallery-controls .gallery-dot.active { background: var(--ink); }
.modal-details { padding: 56px 34px 34px; }
.modal-details h2 { margin: 10px 0; font: 400 clamp(27px, 4vw, 38px)/1.1 var(--serif); }
.modal-details > p { color: var(--muted); }
.modal-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 48px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-strip { grid-template-columns: 1fr 1fr; }
  .order-strip > div { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .wrap { width: min(100% - 28px, 600px); }
  .topbar { align-items: center; gap: 12px; padding: 10px 0; }
  .brand-logo-frame { width: clamp(116px, 38vw, 165px); height: 50px; }
  .site-logo { max-height: 50px; }
  .brand-placeholder { font-size: 24px; }
  .top-actions { gap: 6px; }
  .top-actions .pill { min-height: 44px; padding: 8px 10px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 42px 0 24px; }
  .hero-image-wrap { width: 100%; max-height: 500px; min-height: 240px; }
  .section { padding: 34px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 10px; }
  .order-strip { grid-template-columns: 1fr; padding: 20px; }
  .order-strip > div { grid-column: auto; }
  .order-btn { justify-content: center; }
  .category-grid { gap: 12px; }
  .category-info { align-items: start; padding: 14px; }
  .category-info h3 { font-size: 21px; }
  .category-info p { font-size: 12px; }
  .cover-label { left: 12px; bottom: 10px; font-size: 14px; }
  .product-grid { gap: 12px; }
  .product-meta { padding: 12px; }
  .product-title { font-size: 17px; }
  .footer-top { flex-direction: column; }
  .modal { align-items: flex-start; padding: 10px; }
  .modal-box { grid-template-columns: 1fr; max-height: calc(100dvh - 20px); }
  .modal-visual { width: 100%; min-height: 220px; max-height: 42vh; aspect-ratio: 4 / 3; }
  .modal-details { padding: 28px 22px 24px; }
}
@media (max-width: 430px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .top-actions { justify-content: flex-start; width: 100%; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .product-grid { grid-template-columns: 1fr; }
}
