:root {
  color-scheme: light;
  --ink: #172719;
  --forest: #29462d;
  --muted: #52604f;
  --gold: #89631e;
  --rule: #dde2d7;
  --paper: #fff;
  --cream: #f4f6e9;
  --lime: #c8f535;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #547830; outline-offset: 4px; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 12px; background: var(--paper); }

.site-header { position: sticky; z-index: 4; top: 0; background: var(--paper); border-bottom: 1px solid #ecefe7; }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.15; flex-shrink: 0; }
.brand img { border-radius: 50%; border: 1px solid #dfd4bc; background: #f8f0e1; object-fit: cover; }
.brand strong { display: block; font: 700 1.26rem/1.12 var(--serif); }
.brand small { color: var(--gold); font-size: .78rem; }
nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 54px); }
nav a, .footer-row > a:last-child { text-decoration: none; padding-block: 10px; font-weight: 600; font-size: .94rem; }
nav a:hover, .footer-row > a:last-child:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 21px; border-radius: 8px; border: 1px solid transparent; text-align: center; text-decoration: none; font-weight: 675; line-height: 1.25; }
.button-primary { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.button-primary:hover { background: #d8ff65; border-color: #d8ff65; }
.button-outline { background: white; border-color: #cdd8c8; }
.button-outline:hover { background: #f5f9ed; border-color: #889e7d; }
.header-contact { min-height: 42px; padding-inline: 18px; font-size: .91rem; }

.hero { margin-top: 26px; display: grid; grid-template-columns: 1.03fr .97fr; background: var(--cream); border-radius: 18px; overflow: hidden; }
.hero-copy { min-width: 0; align-self: center; padding: clamp(32px, 6.15vw, 96px) clamp(28px, 5.6vw, 80px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--gold); font-size: .83rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; flex: 0 0 auto; background: #ae8b3c; }
.hero h1, .catalogue h2, .contact h2, .dialog-copy h2 { margin: 0; font: 400 3.2rem/1.04 var(--serif); letter-spacing: -.043em; }
.hero h1 { font-size: clamp(3.25rem, 5.65vw, 6.1rem); line-height: 1.015; }
.hero h1 em { font-weight: 400; color: var(--forest); }
.hero-description { max-width: 32rem; margin: 22px 0 26px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.14rem); }
.hero-photo { position: relative; min-height: 400px; background: #e3ead3; }
.hero-photo > img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 51% 54%; }
.featured-product { position: absolute; bottom: 22px; left: 22px; display: flex; align-items: center; gap: 13px; max-width: calc(100% - 44px); padding: 11px 12px 11px 15px; border: 1px solid #fff; border-radius: 8px; background: #fffffff2; text-align: left; box-shadow: 0 3px 18px #2333221f; }
.featured-product:hover { background: var(--paper); }
.featured-product small, .featured-product strong { display: block; font-size: .92rem; }
.featured-product small { font-size: .75rem; color: var(--muted); }
.featured-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #9dbb30; }
.featured-plus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #eaf3d6; font-size: 1.15rem; flex-shrink: 0; }

.catalogue { padding-top: 62px; padding-bottom: 48px; }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 25px; }
.catalogue-heading .eyebrow { margin-bottom: 8px; }
.catalogue-heading p:last-child { margin: 9px 0 0; color: var(--muted); }
.search-box { display: flex; align-items: center; gap: 11px; width: min(100%, 322px); padding-inline: 15px; border: 1px solid var(--rule); border-radius: 8px; background: #fafbf7; cursor: text; }
.search-box:focus-within { outline: 2px solid #789265; }
.search-box input { flex: 1; min-width: 0; padding: 12px 0; background: transparent; border: 0; outline: 0; color: var(--ink); }
.search-icon { position: relative; width: 15px; height: 15px; border: 1.7px solid var(--forest); border-radius: 50%; margin-right: 3px; }
.search-icon::after { position: absolute; content: ""; width: 7px; height: 1.7px; border-radius: 2px; background: var(--forest); transform: rotate(45deg); right: -5px; bottom: -2px; }
.catalogue-controls { border-top: 1px solid var(--rule); padding-block: 19px 21px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 42px; padding: 7px 15px; background: white; border: 1px solid var(--rule); border-radius: 40px; font-size: .89rem; font-weight: 600; }
.filter:hover { border-color: #9bb16f; background: #f7faee; }
.filter[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); }
#results { margin: 0; color: var(--muted); font-size: .89rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--rule); border-radius: 13px; overflow: clip; background: var(--paper); }
.product:hover { border-color: #bac9b1; }
.product-image { position: relative; width: 100%; aspect-ratio: 1.18; display: block; padding: 0; border: 0; background: #f2f4ea; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-image:focus-visible { outline-offset: -4px; }
.photo-label { position: absolute; bottom: 10px; right: 10px; color: var(--ink); background: white; border-radius: 5px; box-shadow: 0 1px 7px #263c2527; padding: 4px 8px; font-size: .77rem; font-weight: 650; }
.product-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px 16px 16px; }
.product-category { margin: 0 0 5px; color: var(--gold); font-size: .78rem; font-weight: 750; }
.product-copy h3 { margin: 0; font: 700 1.3rem/1.2 var(--serif); letter-spacing: -.018em; }
.product-title { font: inherit; display: block; padding: 0; border: 0; text-align: left; background: transparent; }
.product-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-description { margin: 8px 0 17px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .93rem; }
.button-order { margin-top: auto; align-self: stretch; background: #edf6dd; color: #263e20; padding-inline: 8px; font-size: .9rem; }
.button-order:hover { background: var(--lime); }
.more-row { text-align: center; margin-top: 29px; }
.empty { text-align: center; padding: 24px; border: 1px dashed var(--rule); border-radius: 12px; }
.catalogue-note { margin: 28px 0 0; color: var(--muted); font-size: .89rem; }

.contact { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 35px 42px; background: #253e2b; color: white; border-radius: 14px; }
.contact h2 { font-size: clamp(1.9rem, 3.3vw, 2.9rem); }
.contact p { margin: 8px 0 0; color: #e5ecdf; }
.contact .button { flex-shrink: 0; }
.site-footer { margin-top: 48px; border-top: 1px solid var(--rule); }
.footer-row { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-row p { color: var(--muted); }

.product-dialog { width: min(900px, calc(100% - 40px)); max-height: calc(100dvh - 36px); padding: 0; border: none; border-radius: 16px; color: var(--ink); background: white; box-shadow: 0 16px 80px #14281e5c; }
.product-dialog::backdrop { background: #15271bc9; }
.dialog-layout { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 50%; font-size: 1.55rem; line-height: 1; }
.icon-button:hover { background: var(--lime); }
.dialog-media { min-width: 0; padding: 17px; background: var(--cream); }
.dialog-image { position: relative; height: min(420px, 54vh); }
.dialog-image img { width: 100%; height: 100%; object-fit: contain; }
.photo-prev, .photo-next { position: absolute; top: 50%; transform: translateY(-50%); }
.photo-prev { left: 0; }
.photo-next { right: 0; }
.photo-position { margin: 9px 0 5px; font-size: .9rem; text-align: center; color: var(--muted); }
.thumbnails { display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; padding: 8px 6px; }
.thumbnail { flex: 0 0 52px; width: 52px; height: 52px; padding: 2px; border: 1px solid var(--rule); border-radius: 6px; background: white; }
.thumbnail[aria-pressed="true"] { border: 2px solid var(--forest); }
.thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.dialog-copy { align-self: center; padding: 50px 30px 34px; }
.dialog-copy h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
.dialog-copy p:not(.eyebrow) { margin: 15px 0; color: var(--muted); }
.dialog-copy .availability { font-size: .9rem; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 60px); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 36px); }
  .hero-copy { padding: 40px 25px; }
  .hero h1 { font-size: clamp(2.65rem, 7vw, 4.3rem); }
  .hero-photo { min-height: 358px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .header-row { min-height: 65px; }
  .site-header .brand img { width: 44px; height: 44px; }
  .header-contact { display: none; }
  .menu-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; border: 1px solid var(--rule); border-radius: 7px; background: white; padding-inline: 12px; font-size: .92rem; font-weight: 650; }
  .menu-symbol { display: grid; gap: 3px; }
  .menu-symbol i { width: 15px; height: 2px; border-radius: 2px; background: var(--forest); }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 6px 18px 12px; background: white; border-bottom: 1px solid var(--rule); }
  .header-row:has(.menu-toggle[aria-expanded="true"]) nav { display: grid; gap: 0; }
  nav a { min-height: 44px; }
  .hero { grid-template-columns: 1fr; margin-top: 14px; }
  .hero-copy { padding: 32px 21px; }
  .hero-description { margin: 15px 0 21px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.35; }
  .featured-product { bottom: 12px; left: 12px; }
  .catalogue { padding-top: 37px; padding-bottom: 32px; }
  .catalogue-heading { flex-direction: column; align-items: stretch; gap: 18px; padding-bottom: 17px; }
  .catalogue h2 { font-size: 2.65rem; }
  .search-box { width: 100%; }
  .catalogue-controls { padding-block: 14px 17px; }
  .filter { padding-inline: 11px; min-height: 44px; }
  .contact { align-items: flex-start; flex-direction: column; padding: 23px 20px; gap: 17px; }
  .footer-row { flex-wrap: wrap; padding-block: 16px; }
  .product-dialog { width: calc(100% - 22px); max-height: calc(100dvh - 22px); }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-media { padding: 11px; }
  .dialog-image { height: min(320px, 39dvh); }
  .dialog-copy { padding: 20px 17px 24px; }
}
@media (max-width: 470px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-image { aspect-ratio: 1.47; }
  .button-order { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
