body { background: #f8f4e8; }
.site-header { background: #f6efe2; }

.product-shell {
  --ras-ink: #1e3a24;
  --ras-leaf: #536f52;
  --ras-muted: #59645b;
  --ras-line: #e6ddce;
  --ras-pale: #f0ebde;
  max-width: 1200px;
  padding-block: 22px 52px;
}

.product-shell * { box-sizing: border-box; }
.product-shell h1, .product-shell h2, .product-shell p { margin: 0; }
.product-shell h1, .product-shell h2 { color: var(--ras-ink); font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .012em; }
.product-shell a:focus-visible, .product-shell summary:focus-visible { outline: 2px solid var(--ras-leaf); outline-offset: 3px; }

.product-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--ras-muted);
  font-size: .875rem;
}
.product-crumbs a { color: var(--ras-ink); text-underline-offset: 3px; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  grid-template-areas: 'gallery description' 'gallery availability';
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(28px, 5vw, 66px);
  row-gap: 24px;
}
.product-description { grid-area: description; }
.product-gallery { grid-area: gallery; }
.product-availability { grid-area: availability; }
.product-type {
  color: #8a4829;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-shell h1 { margin-top: 5px; font-size: clamp(2rem, 5.25vw, 4rem); line-height: 1.04; overflow-wrap: anywhere; }
.product-shell .product-botanical { margin-top: 8px; color: var(--ras-muted); }
.product-shell .product-intro { margin-top: 17px; line-height: 1.65; white-space: pre-line; }
.product-shell .product-status {
  display: inline-block;
  padding: 3px 8px;
  margin-top: 14px;
  margin-right: 6px;
  background: var(--ras-pale);
  color: var(--ras-ink);
  font-size: .8rem;
}
.product-highlights {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.product-highlights div { padding: 10px 0; border-top: 1px solid var(--ras-line); }
.product-highlights dt { font-size: .83rem; color: var(--ras-muted); }
.product-highlights dd { margin: 2px 0 0; font-weight: 650; color: var(--ras-ink); overflow-wrap: anywhere; }

.product-photo { margin: 0; }
.product-photo a { display: block; background: var(--ras-pale); border-radius: 19px; overflow: hidden; }
.product-photo img { display: block; width: 100%; height: auto; max-height: 490px; object-fit: contain; }
.product-photo figcaption { padding: 8px 0; color: var(--ras-muted); font-size: .8rem; }
.product-photo-secondary { display: inline-block; width: min(100%, 150px); margin: 6px 8px 0 0; vertical-align: top; }
.product-photo-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(22px, 4vw, 44px);
  aspect-ratio: 5 / 4;
  background: var(--ras-pale);
  color: var(--ras-leaf);
  border-radius: 19px;
}
.product-photo-placeholder strong { color: var(--ras-ink); font-size: clamp(1.3rem, 3vw, 2rem); overflow-wrap: anywhere; }

.product-availability { padding: 18px 20px; border: 1px solid var(--ras-line); border-radius: 16px; background: #fffdf9; }
.product-availability h2 { font-size: 1.45rem; }
.product-availability > p, .product-availability [data-webshop-fallback] p { margin-top: 7px; color: var(--ras-muted); }
.product-availability .button { display: inline-flex; margin-top: 12px; }
.shop-stock-label { display: inline-flex; max-width: 100%; padding: .34rem .65rem; margin: 0 0 .65rem; border-radius: 5px; background: #1f422b; color: #fffaf0; font-size: .78rem; font-weight: 700; line-height: 1.4; }
.shop-stock-label[hidden] { display: none; }
.shop-stock-label[data-stock-badge="out_of_stock"] { background: #e9e0d3; color: #654833; }
.shop-stock-label[data-stock-badge="restocked"] { background: #885030; }
.product-variants { margin: 9px 0; padding-left: 20px; }
.product-availability .product-restriction { margin: 12px 0; color: var(--ras-ink); }

.product-specifications, .product-detail { margin-top: clamp(34px, 5vw, 62px); }
.product-specifications h2, .product-detail h2 { margin-bottom: 12px; }
.product-group { border-block-start: 1px solid var(--ras-line); }
.product-group:last-child { border-block-end: 1px solid var(--ras-line); }
.product-group summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .24rem 1.1rem; padding: 1rem .8rem; list-style: none; cursor: pointer; }
.product-group summary::-webkit-details-marker { display: none; }
.product-group summary::after { content: '+'; grid-column: 2; grid-row: 1 / span 2; font-size: 1.25rem; line-height: 1; color: var(--ras-leaf); }
.product-group[open] summary::after { content: '−'; }
.product-group summary span { color: var(--ras-ink); font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.product-group summary small { grid-column: 1; color: var(--ras-muted); font-size: .8rem; line-height: 1.45; }
.product-group[open] summary { background: #f1ecdf; border-radius: 8px; }
.product-group dl { margin: 0; padding: .4rem .8rem .9rem; }
.product-group dl > div { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(0, 2.2fr); gap: .55rem 1.25rem; padding: .53rem 0; border-bottom: 1px solid #e8e1d4; font-size: .87rem; line-height: 1.55; }
.product-group dl > div:last-child { border-bottom: 0; }
.product-group dt { color: var(--ras-muted); font-size: .83rem; font-weight: 580; }
.product-group dd { margin: 0; color: var(--ras-ink); overflow-wrap: anywhere; white-space: pre-line; }
.product-group .product-unknown { color: var(--ras-muted); font-size: .875rem; }
.product-detail ul { margin: 0; padding-left: 20px; }
.product-shell .product-disclaimer { margin-top: 33px; color: var(--ras-muted); font-size: .875rem; }
.site-footer > .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 740px) {
  .product-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'description' 'gallery' 'availability'; gap: 20px; }
  .product-crumbs { margin-bottom: 21px; }
  .product-photo img { max-height: 390px; }
  .product-photo-placeholder { aspect-ratio: auto; min-height: 138px; }
  .product-group dl > div { grid-template-columns: minmax(0, 1fr); gap: .12rem; }
}

html:has(.product-gallery) { scrollbar-gutter: stable; }
html:has(.product-lightbox[open]) { overflow: hidden; }
.product-photo a[aria-haspopup="dialog"] { cursor: zoom-in; }

.product-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 3.75rem clamp(.75rem, 3vw, 3rem);
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #fffaf0;
}
.product-lightbox[open] { display: grid; place-items: center; }
.product-lightbox::backdrop {
  background: rgb(20 28 23 / .9);
  animation: product-photo-backdrop .2s ease both;
}
.product-lightbox-image {
  display: block;
  max-width: min(100%, 90rem);
  max-height: calc(100dvh - 7.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  animation: product-photo-appear .22s ease-out both;
}
.product-lightbox-image[hidden] { display: none; }
.product-lightbox-error { margin: 0; }
.product-lightbox-close {
  position: absolute;
  top: max(.625rem, env(safe-area-inset-top));
  right: max(.75rem, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(255 250 240 / .35);
  border-radius: 50%;
  background: #26372a;
  color: #fffaf0;
  font: 2rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.product-lightbox-close:hover { background: #3a503e; }
.product-lightbox-close:focus-visible { outline: 2px solid #fffaf0; outline-offset: 3px; }
@keyframes product-photo-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes product-photo-appear {
  from { opacity: 0; transform: scale(.975); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .product-lightbox::backdrop, .product-lightbox-image { animation: none; }
}

.product-related { margin-top: clamp(1.5rem, 4vw, 2.5rem); padding-top: 1.1rem; border-top: 1px solid #e6ddce; }
.product-related-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.product-related-header h3 { margin: 0; color: #1e3a24; font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 3vw, 1.75rem); text-transform: uppercase; }
.product-related-controls { display: flex; gap: .35rem; flex: none; }
.product-related-controls[hidden] { display: none; }
.product-related-controls button {
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid #d9d4c5;
  border-radius: 50%;
  background: #fffdf9;
  color: #1e3a24;
  font: 1.55rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.product-related-controls button:hover:not(:disabled) { border-color: #6c7f61; background: #efeee3; }
.product-related-controls button:disabled { opacity: .42; cursor: default; }
.product-related-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4rem) / 5);
  gap: 1rem;
  margin: 0;
  padding: .125rem .125rem .55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .125rem;
  scrollbar-color: #a8ad99 #ede7d9;
  list-style: none;
}
.product-related-track > li { min-width: 0; scroll-snap-align: start; }
.product-related-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  min-height: 9rem;
  overflow: hidden;
  border: 1px solid var(--ras-line, #e6ddce);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--ras-ink, #1e3a24);
  text-decoration: none;
}
.product-related-card:not(.product-related-card-with-photo) {
  justify-content: center;
  background: var(--ras-pale, #f0ebde);
}
.product-related-card:hover { border-color: #6c7f61; }
.product-related-card:hover .product-related-label { text-decoration: underline; text-underline-offset: .17em; }
.product-related-card:focus-visible, .product-related-controls button:focus-visible, .product-related-track:focus-visible {
  outline: 2px solid #536f52;
  outline-offset: -2px;
}
.product-related-media {
  display: block;
  flex: none;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--ras-pale, #f0ebde);
}
.product-related-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Preserve the credit at the lower right of the original photograph. */
.product-related-media[data-attributed] .product-related-image { object-position: right bottom; }
.product-related-body {
  position: relative;
  display: grid;
  align-content: start;
  gap: .24rem;
  min-height: 3.5rem;
  padding: .68rem 1.68rem .72rem .72rem;
}
.product-related-body::after {
  content: '';
  position: absolute;
  top: 1.02rem;
  right: .77rem;
  width: .38rem;
  height: .38rem;
  border-right: 1.5px solid var(--ras-leaf, #536f52);
  border-top: 1.5px solid var(--ras-leaf, #536f52);
  transform: rotate(45deg);
}
.product-related-label {
  font-size: clamp(.94rem, 1.25vw, 1.06rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
}
.product-related-type { color: var(--ras-muted, #59645b); font-size: .8rem; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .product-related-track { grid-auto-columns: calc((100% - 2rem) / 3.25); }
}
@media (max-width: 620px) {
  .product-related-track { grid-auto-columns: calc((100% - 1rem) / 2.15); gap: .65rem; }
}

.pollination-possible {
  max-width: 40rem;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--ras-line, #e6ddce);
  border-radius: 12px;
  background: var(--ras-pale, #f0ebde);
}
.product-shell .pollination-possible .pollination-group-heading { margin: 0 0 .35rem; }
.product-shell .pollination-possible > p { color: var(--ras-muted, #59645b); font-size: .9rem; }
.pollination-possible-list { margin: .45rem 0 0; padding-left: 1.18em; }
.pollination-possible-list li + li { margin-top: .35rem; }
.pollination-possible-list a { color: var(--ras-ink, #1e3a24); font-weight: 650; }
