@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
  --paper: #f7f3eb;
  --card: #fcfaf6;
  --ink: #51483d;
  --muted: #887b69;
  --line: #e7ddcf;
  --accent: #9b7956;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
}
.site-header { display: flex; justify-content: center; padding: 30px 20px 8px; }
.brand { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; text-decoration: none; }
.brand img { display: block; max-width: 210px; max-height: 76px; object-fit: contain; }
.brand-fallback { font: 34px 'Playfair Display', Georgia, serif; color: #51483d; text-align: center; }
.brand-fallback small { display: block; margin-top: 3px; font: 10px 'DM Sans', sans-serif; letter-spacing: 5px; }
.page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 90px; }
.intro { text-align: center; margin: 12px auto 42px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; }
h1, h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
h1 { margin: 0; font-size: clamp(36px, 5vw, 54px); }
.intro-copy { margin: 12px 0 0; color: var(--muted); font: italic 16px 'Playfair Display', Georgia, serif; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.product-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.product-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.product-image-wrap { aspect-ratio: 4 / 5; overflow: hidden; background: #eee6da; }
.product-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-open:hover .product-image { transform: scale(1.035); }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #9c8c77; font: italic 15px 'Playfair Display', Georgia, serif; }
.product-copy { padding: 19px 18px 22px; text-align: center; }
.product-copy h2 { margin: 0 0 8px; font-size: 23px; }
.product-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.more-link { display: inline-block; margin-top: 15px; color: var(--accent); font-size: 12px; border-bottom: 1px solid #cdbba4; padding-bottom: 3px; }
.modal { position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(37, 30, 23, .68); backdrop-filter: blur(5px); }
.modal-panel { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); width: min(980px, 100%); max-height: min(720px, 90vh); overflow: auto; background: var(--paper); border-radius: 8px; box-shadow: 0 25px 80px #1e160f55; }
.close-button { position: absolute; z-index: 3; top: 12px; right: 16px; width: 38px; height: 38px; border: 0; background: #f7f3ebdd; color: var(--ink); border-radius: 50%; font-size: 28px; cursor: pointer; }
.modal-photo-wrap { position: relative; min-height: 480px; background: #e9dfd1; }
.modal-image { display: block; width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.photo-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fcfaf0e8; color: var(--ink); font-size: 30px; cursor: pointer; }
.photo-arrow.previous { left: 16px; } .photo-arrow.next { right: 16px; }
.modal-info { display: flex; flex-direction: column; justify-content: center; padding: 55px 42px 36px; }
.modal-info h2 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 42px); }
.modal-description { margin: 0; color: var(--muted); line-height: 1.8; font-size: 14px; }
.thumbnails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.thumbnail { aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; background: #e9dfd1; cursor: pointer; }
.thumbnail.active { border-color: var(--accent); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .modal-panel { grid-template-columns: 1fr; max-width: 560px; }
  .modal-photo-wrap, .modal-image { min-height: 0; height: min(58vh, 480px); }
  .modal-info { padding: 28px 25px 26px; }
  .thumbnails { margin-top: 22px; }
}
@media (max-width: 520px) {
  .page { width: min(100% - 28px, 420px); padding-top: 22px; }
  .site-header { padding-top: 22px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-copy { padding: 16px; }
  .modal { padding: 12px; }
  .modal-photo-wrap, .modal-image { height: 44vh; }
}
