:root {
  --espresso: #2A160B;
  --cream: #FAF4EB;
  --champagne: #F4E6D4;
  --sand: #EBD9BF;
  --linen: #E8DAC6;
  --gold: #B58E5B;
  --gold-light: #D9BF98;
  --bronze: #8A6A3E;
  --muted: #6F5D50;
  --line: #E3D5C3;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --gutter: 56px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--espresso); text-decoration: none; }
a:hover { color: var(--bronze); }
img { display: block; max-width: 100%; }

.page { max-width: 1280px; margin: 0 auto; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px var(--gutter);
}
.logo { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; font-size: 15px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-sm { padding: 8px 20px; font-weight: 400; }
.btn-dark { background: var(--espresso); color: var(--champagne); }
.btn-dark:hover { background: #4a2a17; color: var(--champagne); }
.btn-outline { border: 1px solid var(--gold); font-weight: 400; }
.btn-outline:hover { background: var(--champagne); color: var(--espresso); }

/* Hero */
.hero {
  padding: 32px var(--gutter) 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}
.hero-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pill {
  align-self: flex-start;
  background: var(--champagne);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 24px;
}
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
}
.hero h1 em { color: var(--bronze); }
.hero p { margin: 0 0 32px; font-size: 19px; color: var(--muted); max-width: 460px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { flex: 1 1 440px; min-width: 0; }
.hero-image { position: relative; }
.hero-slides { position: relative; height: 560px; border-radius: 32px; overflow: hidden; background: var(--champagne); }
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.2s ease, transform 7s ease-out;
}
.hero-slides img.is-active { opacity: 1; transform: scale(1.08); }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  background: rgba(250, 244, 235, .85);
  border-radius: 999px;
  padding: 0 6px;
}
.hero-dots button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  opacity: .45;
  transition: width .3s, opacity .3s;
}
.hero-dots button[aria-current="true"]::before { width: 22px; opacity: 1; background: var(--espresso); }
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transition: opacity .01s; transform: none; }
  .hero-slides img.is-active { transform: none; }
}

/* Inner pages */
.nav a[aria-current="page"] { color: var(--bronze); text-decoration: underline; text-underline-offset: 6px; }
.breadcrumb { padding: 8px var(--gutter) 0; font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--espresso); }
.page-head { padding: 24px var(--gutter) 40px; max-width: 860px; }
.page-head h1 { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.5vw, 64px); line-height: 1.04; }
.page-head p { margin: 0 0 28px; font-size: 18px; color: var(--muted); }
.listing { padding: 0 var(--gutter) 56px; scroll-margin-top: 16px; }
.section-title { margin: 8px 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); }
.section-intro { margin: -8px 0 24px; color: var(--muted); max-width: 640px; }
.listing .products + .section-title { margin-top: 48px; }
.section-intro a { color: var(--espresso); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.collection-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.more { padding: 0 var(--gutter) 72px; }
.more h2 { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); }
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slide h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; margin: 16px 0 0; }
.article { padding: 24px var(--gutter) 48px; max-width: 760px; }
.article h1 { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; }
.article .lead { font-size: 20px; color: var(--muted); }
.article h2 { margin: 40px 0 12px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.article p, .article li { color: #4A3A2F; }
.article ul, .article ol { padding-left: 22px; display: grid; gap: 8px; }
.article strong { color: var(--espresso); font-weight: 500; }
.article a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 18px; background: #FFFDF9; }
.article table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article th, .article td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.article th { font-weight: 500; background: var(--champagne); }
.article tr:last-child td { border-bottom: 0; }
.article-back { margin-top: 36px; font-size: 18px; }
.related { padding-top: 8px; }

/* Collection slider */
.collections { padding: 0 0 56px; }
.collections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  margin-bottom: 20px;
}
.collections-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); }
.slider-nav { display: flex; gap: 10px; }
.slider-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.slider-btn:hover:not(:disabled) { background: var(--espresso); border-color: var(--espresso); color: var(--champagne); }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider {
  list-style: none;
  margin: 0;
  padding: 4px var(--gutter) 8px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc((100% - 40px) / 3.3); scroll-snap-align: start; }
.slide a {
  display: block;
  height: 100%;
  background: var(--champagne);
  border-radius: 28px;
  padding: 18px;
  transition: transform .25s;
}
.slide:nth-child(3n+2) a { background: var(--sand); }
.slide:nth-child(3n) a { background: var(--linen); }
.slide a:hover { transform: translateY(-4px); color: var(--espresso); }
.slide img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.slide h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; margin: 16px 0 0; }
.slide p { margin: 0; color: var(--muted); }

/* Full collection */
.shop { padding: 24px var(--gutter) 64px; scroll-margin-top: 16px; }
.shop-head { margin-bottom: 28px; }
.shop-head h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.05; }
.shop-head p { margin: 0; color: var(--muted); max-width: 520px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  font: inherit;
  font-size: 15px;
  color: var(--espresso);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.filter span { color: var(--muted); margin-left: 4px; }
.filter:hover { background: var(--champagne); }
.filter[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--champagne); }
.filter[aria-pressed="true"] span { color: var(--gold-light); }
.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product[hidden] { display: none; }
.product a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card, var(--champagne));
  border-radius: 26px;
  padding: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product:nth-child(3n+2) a { --card: var(--sand); }
.product:nth-child(3n) a { --card: var(--linen); }
.product a:hover {
  color: var(--espresso);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(42, 22, 11, .35);
}
.product-media { position: relative; overflow: hidden; border-radius: 18px; }
.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream);
  transition: transform .5s ease;
}
.product a:hover img { transform: scale(1.06); }
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(250, 244, 235, .92);
  color: var(--espresso);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: 999px;
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 14px 8px 6px; }
.product-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.product h3 { margin: 6px 0 14px; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(181, 142, 91, .35);
}
.price { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}
.go svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  transition: background .2s, color .2s, border-color .2s, transform .25s;
}
.product a:hover .go { color: var(--espresso); }
.product a:hover .go svg { background: var(--espresso); border-color: var(--espresso); color: var(--champagne); transform: rotate(45deg); }

/* Review */
.reviews { padding: 0 var(--gutter) 72px; }
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.reviews-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.05; }
.rating { font-size: 15px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.rating:hover { color: var(--espresso); }
.stars { color: var(--gold); letter-spacing: 2px; }
.review-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.review-card {
  margin: 0;
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.35; flex: 1; }
.review-card figcaption { font-size: 14px; color: var(--muted); }
.review-card figcaption a { color: var(--espresso); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.review {
  margin: 0;
  background: var(--champagne);
  color: var(--espresso);
  border-radius: 32px;
  padding: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.review figure { flex: 1 1 380px; min-width: 0; margin: 0; }
.review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
}
.review figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.review figcaption a { color: var(--espresso); text-decoration: underline; text-underline-offset: 3px; }
.review img {
  flex: 0 1 300px;
  width: 300px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--gold);
}

/* Footer */
.site-footer { background: var(--espresso); color: var(--champagne); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 72px var(--gutter) 0; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px;
  padding-bottom: 56px;
}
.footer-logo { font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--champagne); }
.footer-logo:hover { color: var(--gold-light); }
.footer-brand p { margin: 12px 0 28px; color: #D9C7B3; max-width: 340px; }
.btn-champagne { background: var(--gold-light); color: var(--espresso); }
.btn-champagne:hover { background: var(--champagne); color: var(--espresso); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-col h2 {
  margin: 6px 0 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a, .footer-col button {
  display: inline-block;
  padding: 6px 0;
  font: inherit;
  font-size: 16px;
  color: var(--champagne);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin: 0; padding: 24px 0 32px; border-top: 1px solid rgba(217, 191, 152, .22); font-size: 14px; color: #BFA98F; }

/* Phone and tablet */
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .slide { flex-basis: calc((100% - 20px) / 2.2); }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .review-cards { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 0 var(--gutter); scrollbar-width: none; }
  .filter { flex: none; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product a { padding: 7px; border-radius: 20px; }
  .product-media { border-radius: 14px; }
  .product-body { padding: 10px 5px 3px; }
  .product-cat { display: none; }
  .product h3 { font-size: 17px; margin: 0 0 10px; }
  .price { font-size: 18px; }
  .go { font-size: 0; gap: 0; }
  .go svg { width: 28px; height: 28px; padding: 6px; }
  .tag { top: 7px; left: 7px; font-size: 11px; padding: 4px 9px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav { gap: 16px; }
  .hero-slides { height: 380px; }
  .slide { flex-basis: 78%; }
  .slide h3 { font-size: 22px; }
  .slider-btn { width: 44px; height: 44px; }
  .review { padding: 32px 24px; }
  .footer-inner { padding-top: 48px; }
  .footer-main { padding-bottom: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .more-grid, .guides-grid { grid-template-columns: 1fr; }
  .page-head p { font-size: 17px; }
  .article .lead { font-size: 18px; }
  .review img { margin: 0 auto; }
}

/* Custom orders */
.custom-dialog {
  width: min(1040px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 32px;
  background: var(--champagne);
  color: var(--espresso);
  overflow: auto;
  box-shadow: 0 30px 80px -30px rgba(42, 22, 11, .6);
}
.custom-dialog::backdrop { background: rgba(42, 22, 11, .55); backdrop-filter: blur(3px); }
.custom-dialog[open] { animation: dialog-in .25s ease; }
@keyframes dialog-in { from { transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .custom-dialog[open] { animation: none; } }
.custom {
  position: relative;
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
}
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--cream);
  color: var(--espresso);
  cursor: pointer;
}
.dialog-close:hover { background: var(--espresso); color: var(--champagne); border-color: var(--espresso); }
.custom .pill { display: inline-block; background: var(--cream); margin-bottom: 20px; }
.custom h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.custom h2 em { color: var(--bronze); }
.custom-intro p { margin: 0 0 24px; color: var(--muted); }
.custom-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.custom-points li { padding-left: 26px; position: relative; }
.custom-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}
.custom-panel { background: var(--cream); border-radius: 24px; padding: 36px; display: grid; gap: 20px; align-content: start; }
.custom-panel h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.custom-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.custom-steps li { position: relative; padding-left: 52px; color: var(--muted); counter-increment: step; }
.custom-steps li strong { color: var(--espresso); font-weight: 500; }
.custom-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--espresso);
}
.custom-panel .btn { justify-self: start; margin-top: 4px; }
.custom-note { margin: -8px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .custom { grid-template-columns: 1fr; padding: 48px 32px 32px; gap: 28px; }
}
@media (max-width: 640px) {
  .custom-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 24px; }
  .custom { padding: 56px 16px 16px; }
  .dialog-close { top: 10px; right: 10px; }
  .custom-panel { padding: 24px 18px; }
  .custom-panel .btn { justify-self: stretch; text-align: center; }
}

/* Product pages */
.product-detail {
  padding: 24px var(--gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.product-detail-media { position: relative; overflow: hidden; border-radius: 24px; background: var(--champagne); }
.product-detail-media img { display: block; width: 100%; height: auto; }
.product-detail-info h1 { margin: 10px 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; }
.product-detail-info .price { margin: 0 0 20px; font-size: 28px; }
.product-lead { margin: 0 0 28px; font-size: 18px; color: var(--muted); }
.product-note { margin: 20px 0 0; font-size: 15px; color: var(--muted); max-width: 460px; }
.product-description { padding-top: 0; }
.product-description h2 { font-size: 26px; margin-top: 32px; }
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
}
