:root {
  --ink: #15211d;
  --muted: #66736e;
  --paper: #f5f7f4;
  --white: #ffffff;
  --line: #dfe5e1;
  --green: #0e5c47;
  --green-dark: #083e31;
  --lime: #d9f060;
  --orange: #ee6c35;
  --shadow: 0 22px 60px rgba(20, 46, 37, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; font-size: 16px; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header { height: 76px; padding: 0 max(4vw, 24px); display: flex; align-items: center; justify-content: space-between; background: var(--green-dark); color: white; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--green-dark); font-size: 13px; }
.brand em { color: var(--lime); font-style: normal; font-size: 12px; margin-left: 4px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.deal-link { border: 1px solid rgba(217,240,96,.6); color: var(--lime); border-radius: 999px; padding: 10px 14px; text-decoration: none; font-size: 13px; font-weight: 700; }
.deal-link:hover { background: var(--lime); color: var(--green-dark); }
.compare-trigger { border: 1px solid rgba(255,255,255,.28); background: transparent; color: white; border-radius: 999px; padding: 10px 14px; font-weight: 600; }
.compare-trigger span { display: inline-grid; place-items: center; margin-left: 7px; min-width: 23px; height: 23px; border-radius: 50%; background: var(--lime); color: var(--green-dark); font-size: 12px; }
.compare-trigger:disabled { opacity: .45; cursor: default; }

.search-stage { padding: 70px max(8vw, 28px) 78px; background: var(--green-dark); color: white; position: relative; overflow: hidden; }
.search-stage::after { content: ""; position: absolute; width: 430px; height: 430px; border: 1px solid rgba(217,240,96,.35); border-radius: 50%; right: -120px; top: -190px; box-shadow: 0 0 0 55px rgba(217,240,96,.035), 0 0 0 110px rgba(217,240,96,.025); }
.eyebrow { color: var(--lime); text-transform: uppercase; letter-spacing: .13em; font-size: 13px; font-weight: 700; }
h1 { max-width: 850px; margin: 14px 0 30px; font: 700 clamp(40px, 6.5vw, 78px)/.98 "Playfair Display", serif; letter-spacing: -.045em; position: relative; z-index: 1; }
h1 span { color: #a8b7b1; }
.search-box { display: flex; align-items: center; gap: 12px; max-width: 850px; padding: 8px 8px 8px 20px; border-radius: 14px; background: white; box-shadow: var(--shadow); position: relative; z-index: 1; }
.search-box svg { width: 23px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 17px; }
.search-box button, .empty-state button { border: 0; border-radius: 10px; background: var(--lime); color: var(--green-dark); padding: 13px 22px; font-weight: 700; }
.quick-searches { max-width: 850px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 18px; color: #a8b7b1; font-size: 14px; position: relative; z-index: 1; }
.quick-searches button { border: 1px solid rgba(255,255,255,.2); color: white; background: rgba(255,255,255,.06); border-radius: 999px; padding: 7px 12px; }

.browse-shell { padding: 52px max(4vw, 24px) 80px; max-width: 1580px; margin: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-heading p, .compare-head p { margin: 0 0 5px; color: var(--green); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; }
.section-heading h2, .compare-head h2 { margin: 0; font: 700 clamp(26px, 3.4vw, 42px)/1.05 "Playfair Display", serif; }
.filter-toggle { display: none; }
.catalogue-layout { display: grid; grid-template-columns: 235px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.filter-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.filter-top h3 { margin: 0; font-size: 18px; }
.filter-top button { border: 0; background: none; color: var(--green); padding: 0; font-size: 13px; font-weight: 600; }
.filter-field { display: grid; gap: 9px; color: #35433e; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.filter-field select, .sort-row select { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 9px; padding: 11px; color: var(--ink); outline-color: var(--green); }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-row label { display: flex; border: 1px solid var(--line); border-radius: 9px; padding: 10px 8px; font-weight: 400; }
.price-row span { color: var(--muted); font-size: 11px; margin-right: 3px; }
.price-row input { width: 100%; min-width: 0; border: 0; outline: 0; }
.checkbox-row { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--green); }
.sort-row { min-height: 42px; display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 18px; }
.sort-row > label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.sort-row select { min-width: 170px; padding: 9px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill { border: 0; background: #e6eee9; color: var(--green-dark); border-radius: 999px; padding: 8px 11px; font-size: 13px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { background: white; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; min-width: 0; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(20,46,37,.1); }
.product-media { position: relative; }
.product-image { aspect-ratio: 1.22; width: 100%; display: block; object-fit: cover; background: #e9eeeb; cursor: pointer; }
.variant-count { position: absolute; right: 11px; bottom: 11px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--green-dark); box-shadow: 0 3px 12px rgba(15,45,35,.15); font-size: 11px; font-weight: 700; }
.image-fallback { aspect-ratio: 1.22; display: grid; place-items: center; background: linear-gradient(135deg,#e8eeea,#dce5e0); color: #87948f; font: 600 19px "Playfair Display",serif; }
.product-body { padding: 15px; }
.product-kicker { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.sale-badge { color: var(--orange); font-weight: 700; }
.product-card h3 { margin: 8px 0 12px; font-size: 16px; line-height: 1.3; min-height: 42px; }
.price { font-weight: 700; font-size: 18px; }
.was-price { margin-left: 7px; color: #8c9692; font-size: 13px; text-decoration: line-through; font-weight: 400; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.card-actions button { flex: 1; border: 1px solid var(--line); background: white; padding: 9px; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.card-actions .view-button { background: var(--green); border-color: var(--green); color: white; }
.card-actions .selected { background: #e4ef9c; border-color: #cadb55; color: var(--green-dark); }
.load-more { display: block; margin: 32px auto 0; border: 1px solid var(--green); color: var(--green); background: transparent; border-radius: 999px; padding: 12px 25px; font-weight: 700; }
.empty-state { text-align: center; padding: 70px 20px; background: white; border: 1px dashed #bdc9c3; border-radius: 14px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }

dialog { width: min(1100px, calc(100% - 32px)); max-height: calc(100vh - 40px); border: 0; border-radius: 20px; padding: 0; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5,24,18,.68); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 15px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 25px; z-index: 3; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; }
.detail-gallery { position: relative; align-self: stretch; min-width: 0; background: #e7ece9; }
.detail-image { width: 100%; height: 520px; display: block; object-fit: cover; background: #e7ece9; }
.gallery-arrow { position: absolute; top: 235px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 4px 14px rgba(15,45,35,.15); font-size: 31px; line-height: 1; z-index: 2; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.detail-thumbnails { display: flex; gap: 9px; padding: 14px; overflow-x: auto; background: white; scrollbar-width: thin; }
.variant-thumb { flex: 0 0 78px; border: 2px solid transparent; border-radius: 8px; padding: 3px; background: white; color: var(--muted); text-align: left; }
.variant-thumb.active { border-color: var(--green); }
.variant-thumb img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 5px; background: #e7ece9; }
.variant-thumb span { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.detail-copy { padding: 55px 46px 42px; }
.detail-copy .store { color: var(--green); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; }
.detail-copy h2 { margin: 9px 0 5px; font: 700 38px/1.08 "Playfair Display",serif; }
.variant { color: var(--muted); margin: 0 0 18px; }
.selected-variant { margin: 14px 0 18px; font-weight: 600; }
.selected-variant span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.selected-variant small { margin-left: 7px; color: var(--muted); font-weight: 400; }
.detail-price { font-size: 25px; font-weight: 700; margin: 0 0 22px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0; border-top: 1px solid var(--line); }
.fact { padding: 13px 10px 13px 0; border-bottom: 1px solid var(--line); }
.fact span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.description { color: #4d5b56; line-height: 1.65; max-height: 130px; overflow: auto; }
.retailer-link { display: inline-flex; justify-content: center; width: 100%; margin-top: 18px; padding: 13px; color: white; background: var(--green); border-radius: 10px; text-decoration: none; font-weight: 700; }
.similar-wrap { grid-column: 1/-1; padding: 30px 36px 38px; background: #f1f5f2; }
.similar-wrap h3 { margin: 0 0 16px; font: 700 25px "Playfair Display",serif; }
.similar-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.similar-item { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 0; text-align: left; overflow: hidden; }
.similar-item img, .similar-item .image-fallback { width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.similar-item div:last-child { padding: 10px; }
.similar-item strong { display: block; font-size: 13px; line-height: 1.25; margin-bottom: 5px; }
.similar-item span { color: var(--green); font-size: 13px; }

.compare-dialog { padding: 32px; }
.compare-head { display: flex; justify-content: space-between; margin-bottom: 22px; }
.compare-head .dialog-close { position: static; background: var(--paper); }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.compare-table th:first-child, .compare-table td:first-child { width: 145px; color: var(--muted); font-weight: 500; }
.compare-table img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 10px; }
.compare-table a { color: var(--green); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%,20px); background: var(--ink); color: white; padding: 11px 16px; border-radius: 9px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalogue-layout { grid-template-columns: 205px 1fr; gap: 22px; }
  .product-detail { grid-template-columns: 43% 57%; }
  .detail-image { height: 460px; }
  .gallery-arrow { top: 205px; }
  .detail-copy { padding: 50px 30px 30px; }
  .similar-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .site-header { height: 66px; }
  .search-stage { padding: 48px 22px 55px; }
  h1 { font-size: 43px; }
  .search-box { padding-left: 14px; }
  .search-box button { padding: 12px 14px; }
  .browse-shell { padding: 36px 16px 60px; }
  .filter-toggle { display: block; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 10px 15px; }
  .catalogue-layout { display: block; }
  .filters { display: none; position: static; margin-bottom: 20px; }
  .filters.open { display: block; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-body { padding: 11px; }
  .product-card h3 { font-size: 14px; }
  .card-actions { display: grid; }
  .sort-row { align-items: flex-start; }
  .sort-row > label { display: grid; gap: 4px; }
  .sort-row select { min-width: 135px; }
  .product-detail { display: block; }
  .detail-image { min-height: 0; height: 390px; }
  .gallery-arrow { top: 174px; }
  .variant-thumb { flex-basis: 70px; }
  .detail-copy { padding: 30px 22px; }
  .detail-copy h2 { font-size: 30px; }
  .similar-wrap { padding: 24px 18px; }
  .compare-dialog { padding: 20px 14px; overflow-x: auto; }
  .compare-table { min-width: 690px; }
}

@media (max-width: 430px) {
  .brand > span:last-child { font-size: 14px; }
  .deal-link { padding: 8px 10px; font-size: 11px; }
  .compare-trigger { padding: 8px 10px; font-size: 12px; }
  .quick-searches span { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card h3 { min-height: 0; }
}

/* Retail-style shared navigation */
.site-header{height:auto;min-height:78px;padding:13px max(2vw,24px);background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}
.brand{color:var(--green-dark);align-items:flex-end;gap:7px}
.brand-word{font-size:21px;letter-spacing:-.055em}
.brand-word span{color:#e87552}
.brand small{margin-bottom:3px;color:var(--green-dark);font-size:9px;letter-spacing:.1em}
.deal-link{border:0;color:var(--ink);border-radius:0;padding:8px 4px}
.deal-link:hover{background:transparent;color:var(--green)}
.compare-trigger{border-color:var(--line);color:var(--ink);background:#fff}
.retail-nav{min-height:48px;display:flex;align-items:center;justify-content:center;gap:30px;padding:8px 24px;overflow-x:auto;border-bottom:1px solid var(--line);background:#fff;white-space:nowrap}
.retail-nav a{color:var(--ink);text-decoration:none;font-size:13px;font-weight:500}
.retail-nav a:first-child{padding:9px 17px;border-radius:22px;background:var(--green-dark);color:#fff}
.product-search{height:46px;display:flex;flex:1;max-width:720px;margin:0 24px;border:1px solid #d6d9d5;border-radius:4px;overflow:hidden}
.product-search input{min-width:0;flex:1;border:0;padding:0 14px;outline:0}
.product-search button{border:0;padding:0 18px;background:var(--green-dark);color:#fff;font-weight:700}
.search-stage{padding-top:58px;padding-bottom:64px}
.section-heading h2,.compare-head h2,.detail-copy h2,.similar-wrap h3{font-family:"DM Sans",sans-serif;letter-spacing:-.035em}
.product-card{border-radius:10px}
.product-image{object-fit:contain}
.product-page{margin-top:24px;border-radius:12px}
@media(max-width:720px){.retail-nav{justify-content:flex-start}.product-search{order:3;flex-basis:100%;max-width:none;margin:8px 0 0}.site-header{flex-wrap:wrap}.brand-word{font-size:18px}}
