:root {
  --ink: #29202a;
  --muted: #766d73;
  --paper: #fbf8f4;
  --surface: #fffdfb;
  --line: #e8ded8;
  --wine: #7b263e;
  --wine-dark: #561628;
  --gold: #c79b53;
  --shadow: 0 24px 70px rgba(69, 38, 45, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(232, 222, 216, .75);
  background: rgba(251, 248, 244, .9);
  backdrop-filter: blur(15px);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: #fff; background: var(--wine); font: italic 700 19px Georgia, serif; }
.share-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
}
.share-button svg { width: 17px; fill: currentColor; }

.hero {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  max-width: 1240px;
  min-height: min(790px, calc(100vh - 72px));
  margin: 0 auto;
  padding: 76px 24px 90px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; padding-right: 40px; }
.eyebrow { margin: 0 0 18px; color: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { max-width: 600px; margin: 0; font-size: clamp(52px, 6.8vw, 92px); line-height: .97; letter-spacing: -.055em; }
h1 em { color: var(--wine); font-weight: 400; }
.hero-intro { max-width: 480px; margin: 31px 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.primary-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; }
.primary-link span { color: var(--wine); font-size: 19px; }
.hero-images { position: relative; min-height: 610px; }
.hero-card { position: absolute; overflow: hidden; border-radius: 180px 180px 18px 18px; background: #eaded6; box-shadow: var(--shadow); }
.hero-card img { height: 100%; object-fit: cover; }
.hero-card-main { right: 8%; bottom: 0; width: min(67%, 430px); height: 590px; }
.hero-card-small { left: 1%; bottom: 12px; width: min(37%, 245px); height: 370px; border-radius: 120px 120px 16px 16px; transform: rotate(-4deg); }
.hero-seal { position: absolute; right: 1%; top: 8%; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; color: #fff; background: var(--wine); text-align: center; font: 30px/1 Georgia, serif; box-shadow: 0 15px 40px rgba(123, 38, 62, .28); }
.hero-seal small { display: block; margin-top: -25px; font: 9px/1 ui-sans-serif, system-ui; letter-spacing: .18em; text-transform: uppercase; }

.collection { padding: 100px max(24px, calc((100vw - 1240px) / 2)); background: #f2ebe5; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading h2, .note-section h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.035em; }
.sort-wrap { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.sort-wrap select { padding: 10px 35px 10px 13px; border: 1px solid #d8ccc4; border-radius: 10px; color: var(--ink); background: var(--surface); }
.catalogue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.product-card { position: relative; min-width: 0; }
.product-image-button { position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #dfd4cc; cursor: pointer; box-shadow: 0 14px 35px rgba(54, 36, 43, .08); }
.product-image-button::after { content: "View details"; position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 10px); min-width: 126px; padding: 11px 16px; border-radius: 999px; color: #fff; background: rgba(41, 32, 42, .86); opacity: 0; transition: .25s ease; font-size: 12px; font-weight: 800; }
.product-image-button:hover::after, .product-image-button:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.product-image-button img { aspect-ratio: 3 / 4; object-fit: cover; transition: transform .45s ease; }
.product-image-button:hover img { transform: scale(1.025); }
.price-pill { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; min-width: 60px; height: 42px; padding: 0 13px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: var(--ink); background: rgba(255,253,251,.92); backdrop-filter: blur(8px); font: 700 17px Georgia, serif; }
.card-copy { padding: 17px 4px 0; }
.card-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-copy h3 { margin: 0; font: 400 22px/1.2 Georgia, serif; }
.card-number { flex: none; color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.card-copy p { min-height: 42px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.note-section { max-width: 780px; margin: 0 auto; padding: 115px 24px; text-align: center; }
.note-section p:last-child { max-width: 660px; margin: 25px auto 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
footer { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 30px 24px 46px; border-top: 1px solid var(--line); }
footer div { display: flex; align-items: center; gap: 10px; }
.text-button { padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font-weight: 700; }

.product-dialog { width: min(1080px, calc(100vw - 34px)); max-height: min(850px, calc(100vh - 34px)); padding: 0; overflow: hidden; border: 0; border-radius: 24px; background: var(--surface); box-shadow: 0 35px 100px rgba(38, 19, 26, .28); }
.product-dialog::backdrop { background: rgba(30, 17, 22, .67); backdrop-filter: blur(7px); }
.dialog-shell { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 660px; max-height: inherit; overflow: auto; }
.dialog-close { position: fixed; z-index: 3; top: max(27px, calc((100vh - min(850px, calc(100vh - 34px))) / 2 + 15px)); right: max(27px, calc((100vw - min(1080px, calc(100vw - 34px))) / 2 + 15px)); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.92); cursor: pointer; font-size: 28px; line-height: 1; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.dialog-gallery { padding: 28px; background: #efe7e1; }
.dialog-main-image { overflow: hidden; border-radius: 16px; background: #ded4cc; }
.dialog-main-image img { height: 535px; object-fit: contain; background: #f6f0eb; }
.thumbnail-row { display: flex; gap: 10px; margin-top: 13px; overflow-x: auto; scrollbar-width: thin; }
.thumbnail-button { flex: 0 0 68px; width: 68px; height: 76px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #fff; cursor: pointer; }
.thumbnail-button[aria-current="true"] { border-color: var(--wine); }
.thumbnail-button img { height: 100%; object-fit: cover; }
.dialog-copy { align-self: center; padding: 60px 50px 50px; }
.dialog-copy h2 { margin: 0; font-size: clamp(39px, 4vw, 55px); line-height: 1; letter-spacing: -.035em; }
.dialog-description { margin: 21px 0; color: var(--muted); line-height: 1.65; }
.dialog-price { margin: 0 0 24px; color: var(--wine); font: 700 35px Georgia, serif; }
.product-facts { margin: 0; border-top: 1px solid var(--line); }
.product-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-facts dd { margin: 0; font-size: 14px; line-height: 1.4; }
.preview-note { margin: 22px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.secondary-button { border-color: var(--wine); color: #fff; background: var(--wine); }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; color: #fff; background: var(--ink); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 13px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-card-main { right: -8%; width: 78%; }
  .hero-card-small { left: -10%; width: 45%; }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .dialog-shell { grid-template-columns: 1fr 1fr; }
  .dialog-copy { padding: 52px 34px 40px; }
}

@media (max-width: 700px) {
  .site-header { height: 64px; padding: 0 17px; }
  .brand span:last-child { display: none; }
  .share-button { min-height: 38px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 56px 20px 70px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(48px, 15vw, 67px); }
  .hero-intro { margin: 24px 0; font-size: 16px; }
  .hero-images { min-height: 500px; margin-top: 45px; }
  .hero-card-main { right: 3%; width: 72%; height: 480px; }
  .hero-card-small { left: 0; width: 39%; height: 280px; }
  .hero-seal { right: 0; top: -15px; width: 82px; height: 82px; font-size: 25px; }
  .collection { padding: 70px 16px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 30px; }
  .sort-wrap { width: 100%; justify-content: space-between; }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 11px; }
  .product-image-button { border-radius: 13px; }
  .price-pill { top: 9px; right: 9px; min-width: 52px; height: 35px; padding: 0 10px; font-size: 15px; }
  .product-image-button::after { display: none; }
  .card-copy { padding: 12px 2px 0; }
  .card-copy h3 { font-size: 18px; }
  .card-number { font-size: 9px; }
  .card-copy p { min-height: 55px; font-size: 12px; }
  .note-section { padding: 80px 22px; }
  footer { padding: 25px 18px 35px; }
  .product-dialog { width: 100vw; max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; }
  .dialog-shell { grid-template-columns: 1fr; min-height: auto; }
  .dialog-close { position: fixed; top: 13px; right: 13px; }
  .dialog-gallery { padding: 14px; }
  .dialog-main-image img { height: 55vh; min-height: 390px; }
  .dialog-copy { padding: 38px 22px 50px; }
  .dialog-copy h2 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
