/*
 * Grassfarmer theme
 * A standalone frontend system for Grassfarmer pages, the seedbank, and stories.
 */

:root {
  color-scheme: light;
  --content-max: 1280px;
  --page-gutter: clamp(1rem, 4vw, 3rem);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --main-menu-height: 3.75rem;
  --page-bg: #fbfaf5;
  --text: #263329;
  --heading: #183a29;
  --muted: #677365;
  --link: #315c3c;
  --link-hover: #b94729;
  --surface: #f1f2e8;
  --menu: #1d432d;
  --on-accent: #fffdf6;
  --button: #d65d38;
  --button-hover: #b94729;
  --border: #d9dfd2;
  --subtle-border: #e8e9df;
  --rule: rgba(30, 57, 39, 0.16);
  --shop-grid-cols-xl: 5;
  --shop-grid-cols-lg: 4;
  --shop-grid-cols-md: 3;
  --shop-grid-cols-sm: 2;
  --shop-grid-gap: 1.2rem;
  --shop-grid-gap-sm: 1rem;
  --shop-card-padding: 0;
  --shop-card-border: 1px solid #e3e5d9;
  --shop-card-bg: #fffefa;
  --shop-card-radius: 14px;
  --shop-card-shadow: 0 9px 28px rgba(34, 55, 37, 0.05);
  --shop-sale-badge-bg: #dc6842;
  --shop-sale-badge-border: #dc6842;
  --shop-sale-badge-fg: #fffdf6;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body,
button,
input,
select,
textarea {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.6;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
}

img {
  height: auto;
}

pre,
table {
  max-width: 100%;
}

pre {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

main h1 {
  margin-block: 0.6em;
}

main h2 {
  margin-block: 0.75em;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px solid #dc6842;
  outline-offset: 3px;
}

hr {
  height: 1px;
  margin-block: var(--space-lg);
  border: 0;
  background: var(--rule);
}

button,
.button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Brand header */
.site-header,
footer {
  padding-inline: max(
    var(--page-gutter),
    calc((100% - var(--content-max)) / 2)
  );
}

.site-header {
  display: flex;
  width: 100%;
  min-height: 104px;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  max-width: calc(var(--content-max) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding-block: 1rem;
}

.site-header > .site-branding,
.footer-branding > .site-branding {
  min-width: 0;
}

.site-header > .site-branding {
  flex: 1 1 12rem;
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link img {
  display: block;
  width: min(172px, 35vw);
  height: auto;
}

.site-title {
  color: var(--heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.site-header .site-title {
  display: none;
}

.site-subtitle {
  max-width: 100%;
  color: #627455;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.site-title:hover,
a.logo-link:hover {
  text-decoration: none;
}

.header-top {
  flex-basis: 100%;
}

.header-bottom {
  display: flex;
  flex: 0 1 40rem;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}

.site-header > .header-bottom > .menu-search {
  flex: 1 1 22rem;
  min-width: 0;
}

.site-header > .header-bottom .site-search-widget {
  max-width: 24rem;
  margin-left: auto;
}

.site-header > .header-bottom .ml-switcher {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.9rem;
}

.site-header > .header-bottom .ml-switcher-toggle {
  min-height: 2.75rem;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffefa;
  color: var(--heading);
  font: inherit;
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(24, 58, 41, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-header > .header-bottom .ml-switcher-toggle:hover,
.site-header > .header-bottom .ml-switcher-toggle[aria-expanded="true"] {
  border-color: #aab9a2;
  background: var(--surface);
  color: var(--heading);
}

.site-header > .header-bottom .ml-switcher-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.site-header > .header-bottom .ml-switcher-label {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header > .header-bottom .ml-switcher-list {
  right: 0;
  left: auto;
  z-index: 40;
  min-width: 100%;
  margin-top: 0.4rem;
  padding: 0.35rem;
  border-color: var(--border);
  border-radius: 9px;
  background: #fffefa;
  box-shadow: 0 12px 25px rgba(24, 58, 41, 0.14);
  text-align: left;
  transform-origin: top right;
}

.site-header > .header-bottom .ml-switcher-list a {
  padding: 0.6rem 0.7rem;
  border-radius: 5px;
  color: var(--heading);
  text-align: left;
  white-space: nowrap;
}

.site-header > .header-bottom .ml-switcher-list a:hover {
  background: var(--surface);
  color: var(--heading);
}

.site-header
  > .header-bottom
  .ml-switcher.align-right
  .ml-switcher-list,
.site-header
  > .header-bottom
  .ml-switcher.align-right
  .ml-switcher-list
  a {
  text-align: left;
}

/* Navigation and mobile menu */
:is(.main-menu, .top-menu, .footer-menu) .menu-level {
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.main-menu, .top-menu, .footer-menu) .menu-item {
  position: relative;
  margin: 0;
}

:is(.main-menu, .top-menu) {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.main-menu {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--menu);
  box-shadow: 0 5px 16px rgba(24, 58, 41, 0.12);
}

@media (min-width: 701px) {
  .main-menu {
    padding-inline: max(
      var(--page-gutter),
      calc((100% - var(--content-max)) / 2)
    );
  }
}

:is(.main-menu, .top-menu) > .menu-level-0 {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: stretch;
  flex-wrap: wrap;
}

.main-menu > .menu-level-0 {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  margin-inline: auto;
  justify-content: flex-start;
  gap: clamp(0.1rem, 1.2vw, 1rem);
  padding-inline: 0;
}

:is(.main-menu, .top-menu) > :is(.main-menu-elements, .top-menu-elements) {
  display: flex;
  min-width: 0;
  align-items: center;
  margin-left: auto;
}

.main-menu > .main-menu-elements {
  flex: 0 0 auto;
  gap: 0.5rem;
  padding: 0;
}

.main-menu .main-menu-elements :is(.shop-wishlist-link, .shop-cart-link) {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 253, 246, 0.34);
  border-radius: 999px;
  color: var(--on-accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.main-menu .main-menu-elements .shop-wishlist-link::after {
  content: attr(data-link-label);
}

.main-menu .main-menu-elements .shop-cart-link::after {
  content: attr(data-link-label);
}
.main-menu .main-menu-elements :is(.shop-wishlist-link, .shop-cart-link) svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.main-menu .main-menu-elements .shop-wishlist-link:hover {
  border-color: rgba(255, 253, 246, 0.75);
  background: rgba(255, 253, 246, 0.1);
  color: var(--on-accent);
  text-decoration: none;
}

.main-menu .main-menu-elements .shop-cart-link {
  border-color: var(--button);
  background: var(--button);
}

.main-menu .main-menu-elements .shop-cart-link:hover {
  border-color: var(--button-hover);
  background: var(--button-hover);
  color: var(--on-accent);
  text-decoration: none;
}

:is(.main-menu, .top-menu) .menu-level-0 > .menu-item {
  display: flex;
  align-items: stretch;
}

:is(.main-menu, .top-menu, .footer-menu) .menu-item > :is(a, .menu-label) {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.main-menu > .menu-level-0 > .menu-item > a {
  min-height: var(--main-menu-height);
  padding-inline: 0.9rem;
  color: var(--on-accent);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.main-menu > .menu-level-0 > .menu-item > .menu-toggle {
  color: var(--on-accent);
}

.main-menu .menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-menu > .menu-level-0 > .menu-item:first-child > a {
  min-height: calc(var(--main-menu-height) - 0.9rem);
  margin-block: 0.45rem;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-accent);
}

.main-menu > .menu-level-0 > .menu-item:first-child:hover {
  background: transparent;
}

.main-menu > .menu-level-0 > .menu-item:first-child:hover > a {
  background: var(--button-hover);
}

:is(.top-menu, .footer-menu) a {
  color: var(--link);
  text-decoration: none;
}

:is(.top-menu, .footer-menu) a:hover {
  color: var(--link-hover);
}

:is(.main-menu, .top-menu)
  .menu-item:has(> .menu-toggle)
  > :is(a, .menu-label) {
  padding-right: 0;
}

:is(.main-menu, .top-menu) .menu-toggle {
  display: flex;
  min-width: 2rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.3rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:is(.main-menu, .top-menu) .menu-toggle-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  transition: transform 0.15s ease;
}

:is(.main-menu, .top-menu)
  .menu-toggle[aria-expanded="true"]
  .menu-toggle-icon {
  transform: rotate(180deg);
}

:is(.main-menu, .top-menu) .menu-item > .menu-level {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 0;
  display: none;
  min-width: 11rem;
  border: 1px solid var(--border);
  background: #fffefa;
  box-shadow: 0 12px 25px rgba(24, 58, 41, 0.12);
}

:is(.main-menu, .top-menu) .menu-item:hover > .menu-level,
:is(.main-menu, .top-menu) .menu-item:focus-within > .menu-level {
  display: block;
}

:is(.main-menu, .top-menu)
  .menu-item
  > .menu-level
  .menu-item
  > :is(a, .menu-label) {
  min-height: 2.6rem;
  padding: 0.6rem 0.9rem;
}

:is(.main-menu, .top-menu) .menu-item > .menu-level .menu-item:hover {
  background: var(--surface);
}

:is(.main-menu, .top-menu) .menu-item.has-children {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

:is(.main-menu, .top-menu) .menu-item.has-children > :is(a, .menu-label) {
  grid-column: 1;
}

:is(.main-menu, .top-menu) .menu-item.has-children > .menu-toggle {
  grid-column: 2;
}

.main-menu .menu-mobile-toggle {
  display: none;
}

.menu-mobile-toggle-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
}

.footer-menu {
  margin-top: var(--space-md);
}

.footer-menu .menu-toggle {
  display: none;
}

.footer-menu .menu-level-0 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-menu .menu-level-0 > .menu-item > a {
  padding-inline: 0;
}

.menu-block {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .site-header:has(> .logo-link, > img) {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
  }

  .site-header:not(:has(> .logo-link, > img)) {
    align-items: flex-start;
  }

  .site-header > .header-top,
  .site-header > .header-bottom {
    grid-column: 1 / -1;
  }

  .site-header > :is(.logo-link, img) {
    grid-column: 1;
    margin-inline: 0;
  }

  .site-header:has(> .logo-link, > img) > .site-branding {
    grid-column: 2;
    align-self: center;
    flex: initial;
    flex-basis: auto;
    width: auto;
  }

  .site-header > .header-bottom {
    grid-column: 1 / -1;
    flex-basis: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .site-header > .header-bottom > .menu-search {
    flex-basis: 100%;
  }

  .site-header > .header-bottom .ml-switcher {
    order: -1;
    margin-left: auto;
  }

  .site-header > .header-bottom .site-search-widget {
    margin-inline: auto;
  }

  :is(.main-menu, .top-menu) {
    display: block;
  }

  .main-menu > .main-menu-elements {
    width: 100%;
    flex: 0 0 100%;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.4rem 1rem 0.9rem;
  }

  .main-menu .main-menu-elements :is(.shop-wishlist-link, .shop-cart-link) {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3rem;
    padding-inline: 0.65rem;
    font-size: 0.72rem;
  }

  :is(.main-menu, .top-menu) .menu-level-0 {
    flex-direction: column;
  }

  :is(.main-menu, .top-menu) .menu-item {
    width: 100%;
    flex-wrap: wrap;
  }

  :is(.main-menu, .top-menu) .menu-item > :is(a, .menu-label) {
    flex: 1 1 auto;
  }

  :is(.main-menu, .top-menu) .menu-toggle {
    min-width: 3rem;
    width: 3rem;
    margin-inline: 0.5rem;
    padding: 0;
    color: inherit;
  }

  :is(.main-menu, .top-menu) .menu-item > .menu-level {
    position: static;
    width: auto;
    min-width: 0;
    flex-basis: auto;
    grid-column: 1 / -1;
    margin: 0.25rem 0.75rem 0.75rem 1rem;
    padding: 0.35rem;
    border: 0;
    border-radius: 0.75rem;
    background: #fffefa;
    box-shadow: none;
  }

  :is(.main-menu, .top-menu) .menu-item.has-children.is-open {
    background: rgba(255, 255, 255, 0.1);
  }

  :is(.main-menu, .top-menu)
    .menu-item
    > .menu-level
    .menu-item
    > :is(a, .menu-label) {
    min-height: 3.25rem;
    padding: 0.8rem 0.8rem;
    color: var(--heading);
    font-size: 0.94rem;
    font-weight: 600;
  }

  :is(.main-menu, .top-menu)
    .menu-item
    > .menu-level
    .menu-item
    + .menu-item {
    border-top: 1px solid var(--border);
  }

  :is(.main-menu, .top-menu) .menu-item > .menu-level .menu-item:hover {
    border-radius: 0.45rem;
    background: var(--surface);
  }

  :is(.main-menu, .top-menu)[data-mobile-hamburger="1"] > .menu-mobile-toggle {
    display: flex;
    width: 100%;
    min-height: var(--main-menu-height);
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 0;
    background: transparent;
    color: var(--on-accent);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  :is(.main-menu, .top-menu)[data-mobile-hamburger="1"] > .menu-level-0 {
    display: flex;
  }

  html.js :is(.main-menu, .top-menu)[data-mobile-hamburger="1"] > .menu-level-0,
  :is(.main-menu, .top-menu)[data-mobile-hamburger="1"].menu-enhanced
    > .menu-level-0 {
    display: none;
  }

  html.js
    :is(.main-menu, .top-menu)[data-mobile-hamburger="1"].mobile-open
    > .menu-level-0,
  :is(
      .main-menu,
      .top-menu
    )[data-mobile-hamburger="1"].menu-enhanced.mobile-open
    > .menu-level-0 {
    display: flex;
  }

  :is(.main-menu, .top-menu)[data-mobile-hamburger="1"]:not(.menu-enhanced)
    .menu-item
    > .menu-level {
    display: block;
  }

  :is(.main-menu, .top-menu)[data-mobile-hamburger="1"]:not(.menu-enhanced)
    .menu-toggle {
    display: none;
  }

  :is(.main-menu, .top-menu).mobile-open
    .menu-item.has-children:not(.is-open)
    > .menu-level {
    display: none;
  }

  :is(.main-menu, .top-menu).mobile-open
    .menu-item.has-children.is-open
    > .menu-level {
    display: block;
  }
}

/* Layout and reading styles */
.content-wrap {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  margin-inline: auto;
  padding-block: 1.25rem 4rem;
}

.content-wrap main,
.widgets-section {
  min-width: 0;
}

.content-wrap main {
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
}

.content-wrap.has-widgets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 27%);
  align-items: start;
  gap: var(--space-xl);
}

.content-wrap :is(article, .widget-block) {
  min-width: 0;
}

.content-wrap main > article {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--subtle-border);
  border-radius: 14px;
  background: #fffefa;
}

.content-wrap .page-article,
.content-wrap .post-article {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.content-wrap .page-article:has(.home-page),
.content-wrap .page-article:has(.home-page) .entry-content {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.entry-content {
  line-height: 1.8;
}

.entry-content :is(h2, h3, h4) {
  margin-top: 1.5em;
}

.entry-content img,
.featured-image {
  max-width: 100%;
}

.featured-image {
  display: block;
  height: auto;
}

:is(.post-article, .page-article) > .featured-image {
  margin-inline: auto;
}

.page-article > h1,
.post-article > h1 {
  margin-top: 0;
}

.page-article > h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.post-article > h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.meta-strip {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-strip .meta-strip-item:not(:last-child)::after {
  padding-inline: 0.4rem;
  color: #a1a998;
  content: "·";
}

.meta-strip a {
  display: inline-block;
  text-decoration: none;
}

.description-content {
  margin-block: 1em;
  color: var(--muted);
}

main ul,
main ol {
  padding-inline-start: 1.5rem;
}

main li {
  margin-bottom: 0.35rem;
}

main blockquote {
  margin-inline: 0;
  padding-inline: 1rem;
  border-inline-start: 3px solid #cf6844;
  color: var(--muted);
}

main th,
main td {
  padding: 0.7rem;
  border: 1px solid var(--border);
  text-align: left;
}

main th {
  background: var(--surface);
}

main figure {
  max-width: 100%;
  margin: 1.5rem 0;
}

main figure img {
  display: block;
}

figure.image figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

:is(.align-left, figure.image.align-left) {
  float: left;
  margin: 0 1rem 1rem 0;
}

:is(.align-right, figure.image.align-right) {
  float: right;
  margin: 0 0 1rem 1rem;
}

:is(.align-center, figure.image.align-center) {
  display: block;
  margin-inline: auto;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

.align-justify {
  text-align: justify;
  text-justify: inter-word;
}

/* Stories and catalog cards */
.post-container,
.product-grid {
  display: grid;
  gap: 1.2rem;
  margin-block: 1.5rem;
}

.post-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(var(--shop-grid-cols-xl, 5), minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(var(--shop-grid-cols-lg, 4), minmax(0, 1fr));
  }
}

.post-container-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-container > article,
.related-posts article,
.product-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--subtle-border);
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 9px 28px rgba(34, 55, 37, 0.05);
}

.post-container > article {
  padding: 1.25rem;
}

.post-container :is(h2, h3) {
  margin: 0.5rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.post-container :is(h2, h3) a {
  color: var(--heading);
  text-decoration: none;
}

.post-container :is(h2, h3) a:hover {
  color: var(--link-hover);
}

.post-container .featured-image-link,
.product-card .featured-image-link {
  display: block;
}

.post-container .featured-image,
.product-card .featured-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  text-align: left;
}

.product-card > :not(.featured-image-link) {
  margin-inline: 1rem;
}

.product-card h2,
.product-card h3 {
  margin-block: 0.8rem 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.product-card h2 a,
.product-card h3 a {
  color: var(--heading);
  text-decoration: none;
}

.product-card .short {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card .price,
.product-card .sale-price {
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.product-grid .product-card {
  overflow: hidden;
  align-items: stretch;
  border: 1px solid var(--shop-card-border);
  border-radius: var(--shop-card-radius);
  background: var(--shop-card-bg);
  box-shadow: var(--shop-card-shadow);
  text-align: left;
}

.product-grid .product-card > .featured-image-link {
  overflow: hidden;
  margin: 0;
  border-radius: calc(var(--shop-card-radius) - 1px) calc(var(--shop-card-radius) - 1px) 0 0;
}

.product-grid .product-card .featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 240ms ease;
}

.product-grid .product-card > :not(.featured-image-link) {
  margin-inline: 1.2rem;
}

.product-grid .product-card h2,
.product-grid .product-card h3 {
  margin-block: 1rem 0.35rem;
  font-size: 1.45rem;
}

.product-grid .product-card h2 a:hover,
.product-grid .product-card h3 a:hover {
  color: var(--link-hover);
}

.product-grid .product-card .price,
.product-grid .product-card .sale-price {
  margin-block: 0.2rem 0.5rem;
  font-size: 1.08rem;
}

.product-grid .product-card .short {
  margin-block: 0 1.2rem;
  line-height: 1.55;
}

.product-showcase .product-grid {
  margin-block: 2rem 0;
}

.product-showcase .product-grid.shortcode-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-showcase > .section-header {
  align-items: flex-end;
}

.product-showcase > .section-header .button {
  flex: none;
  margin-bottom: 0.4rem;
}

.shop-products-toolbar {
  margin-block: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--subtle-border);
  border-radius: 12px;
  background: #fffefa;
}

.shop-products-toolbar button,
.shop-products-toolbar summary {
  border-radius: 999px;
}

.category-header:has(.category-name) {
  margin-block: 1.2rem 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--subtle-border);
  border-radius: 14px;
  background: #fffefa;
}

.category-header .category-name {
  margin-bottom: 0.25rem;
  color: var(--button-hover);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.category-header .description-content > :last-child {
  margin-bottom: 0;
  color: var(--muted);
}

#shop-products-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-block: 2rem;
}

#shop-products-pagination :is(a, button, span) {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fffefa;
  color: var(--heading);
  text-decoration: none;
}

#shop-products-pagination [aria-current="page"] {
  border-color: var(--menu);
  background: var(--menu);
  color: var(--on-accent);
}

.wishlist-list,
.shop-cart-items {
  gap: 0.85rem;
  margin-block: 1.5rem;
  padding: 0;
  list-style: none;
}

.wish-item,
.shop-cart-items > li {
  display: grid;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem;
  border: 1px solid var(--subtle-border);
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 4px 18px rgba(34, 55, 37, 0.035);
}

.wish-item { grid-template-columns: 6rem minmax(0, 1fr) auto; }
.shop-cart-items > li { grid-template-columns: 6rem minmax(0, 1fr) 5.25rem auto; }

.wish-item > .shop-item-image,
.shop-cart-items > li > .shop-item-image {
  display: block;
  width: 6rem;
  height: 6rem;
  flex: 0 0 6rem;
  overflow: hidden;
  border-radius: 10px;
}

.wish-item > .shop-item-image > img,
.shop-cart-items > li > .shop-item-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wish-body,
.shop-cart-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.shop-item-summary { min-width: 0; }

.shop-item-summary > a {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.shop-item-summary > a:hover { color: var(--link-hover); }

.shop-item-option {
  display: inline-block;
  max-width: 100%;
  padding: 0.3rem 0.6rem;
  border: 1px solid #dce6d6;
  border-radius: 6px;
  background: #f0f4eb;
  color: #496448;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shop-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding-inline: 1rem 0;
  border-inline-start: 1px solid var(--subtle-border);
}

.shop-item-price :is(.price, .sale-price) {
  color: #315c3c;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
}

.shop-item-price .old-price { color: var(--muted); font-size: 0.8rem; }
.shop-item-price .sale-badge { margin: 0; font-size: 0.65rem; }
.shop-item-actions { gap: 0.5rem; }
.shop-item-actions > .shop-product-actions { margin: 0; }
.shop-item-actions .button { min-height: 2.75rem; padding: 0.6rem 0.9rem; font-size: 0.85rem; white-space: nowrap; }

.shop-cart-body .shop-item-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border-color: var(--border);
  background: var(--surface);
  color: var(--heading);
}
.shop-cart-body .shop-item-actions .button:hover { background: #e8eddf; }

.shop-cart-items > li > label {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.shop-cart-items input[type="number"],
.shop-cart-items [data-cart-quantity] {
  width: 4.5rem;
  max-width: 100%;
  min-height: 2.75rem;
  text-align: center;
  border-color: var(--border);
  background: var(--surface);
}

.shop-cart-items > li > button,
.wish-item > button {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--subtle-border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.shop-cart-items > li > button:hover,
.wish-item > button:hover {
  border-color: var(--border);
  background: #f0f4eb;
  color: var(--heading);
}

[data-wishlist-root] > .shop-product-actions {
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--subtle-border);
}

@media (max-width: 1000px) {
  .wish-body, .shop-cart-body { grid-template-columns: minmax(0, 1fr) auto; gap: 0.65rem 1rem; }
  .shop-item-summary { grid-column: 1; grid-row: 1 / span 2; }
  .shop-item-price, .shop-item-actions { grid-column: 2; }
  .shop-item-price { padding-inline: 0; border: 0; }
}

@media (max-width: 700px) {
  .wish-item, .shop-cart-items > li { grid-template-columns: 4.75rem minmax(0, 1fr); align-items: start; gap: 0.75rem; padding: 0.85rem; }
  .wish-item > .shop-item-image, .shop-cart-items > li > .shop-item-image { width: 4.75rem; height: 4.75rem; flex-basis: 4.75rem; }
  .wish-body, .shop-cart-body { grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem 0.5rem; }
  .shop-item-summary { grid-column: 1 / -1; grid-row: auto; }
  .shop-item-summary > a { font-size: 1.15rem; }
  .shop-item-price { grid-column: 1; align-self: center; }
  .shop-item-actions { grid-column: 2; justify-content: flex-end; }
  .shop-item-actions .button { padding-inline: 0.7rem; font-size: 0.78rem; }
  .shop-item-price :is(.price, .sale-price) { font-size: 1.05rem; }
  .wish-item > button { grid-column: 2; justify-self: start; }
  .shop-cart-items > li > label { grid-column: 2; grid-row: 2; justify-self: start; justify-items: start; }
  .shop-cart-items > li > button { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; }
}

@media (max-width: 360px) {
  .wish-body { grid-template-columns: minmax(0, 1fr); }
  .wish-body .shop-item-actions { grid-column: 1; justify-content: flex-start; }
}

[data-cart-root] > p {
  margin-block: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--subtle-border);
  border-radius: 12px;
  background: #fffefa;
  color: var(--muted);
}

[data-cart-root] > p:first-child {
  font-size: 1.15rem;
  font-weight: 700;
}

[data-cart-root] > .button {
  min-height: 2.9rem;
  margin-block: 0.25rem 1.25rem;
}

[data-cart-root] > .button:disabled {
  border-color: var(--border);
  background: #e8e9df;
  color: #737b70;
  cursor: not-allowed;
}

[data-cart-root]:has(.shop-cart-items) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

[data-cart-root]:has(.shop-cart-items) > .shop-cart-items {
  grid-column: 1 / -1;
  width: 100%;
}

[data-cart-root]:has(.shop-cart-items) > .shop-cart-summary {
  position: sticky;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d7dfcc;
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.97);
  box-shadow: 0 8px 26px rgb(32 47 25 / 16%);
  backdrop-filter: blur(10px);
}

[data-cart-root]:has(.shop-cart-items) > .shop-cart-summary > p {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--heading);
  font-size: 1.2rem;
  font-weight: 800;
}

[data-cart-root]:has(.shop-cart-items) > .shop-cart-summary > .button {
  flex: 0 0 auto;
  min-width: 13rem;
  min-height: 2.9rem;
  margin: 0;
}

[data-cart-root]:has(.shop-cart-items) > .shop-cart-summary > .button:disabled {
  border-color: var(--border);
  background: #e8e9df;
  color: #737b70;
  cursor: not-allowed;
}

[data-wishlist-root] > p {
  margin-block: 1.5rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--subtle-border);
  border-radius: 12px;
  background: #fffefa;
  color: var(--muted);
}

.product-detail,
.product-content,
.related-products {
  color: var(--text);
}

.below-main > .related-products {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  margin: 0 auto 3rem;
}

.product-meta h1 {
  margin: 0 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.product-detail .product-meta {
  padding: clamp(1.1rem, 2.5vw, 2rem);
  border: 1px solid var(--subtle-border);
  border-radius: 14px;
  background: var(--surface);
}

.product-detail .pd-stage,
.product-detail .pd-single-stage {
  aspect-ratio: auto;
}

.product-detail .pd-stage figure,
.product-detail .pd-stage figure.active {
  height: auto;
}

.product-detail .pd-stage img,
.product-detail .pd-single-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  justify-self: center;
}

.product-meta > label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.product-meta select,
.product-meta input,
.shop-products-toolbar select,
.shop-products-toolbar input {
  max-width: 100%;
  min-height: 2.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fffefa;
  color: var(--text);
  font: inherit;
}

.product-meta .shop-options {
  --shop-option-selected-bg: var(--menu);
  --shop-option-selected-color: var(--on-accent);
  --shop-option-focus-color: var(--heading);
}

.product-meta .shop-options legend {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.product-meta .shop-option-tag span {
  border-color: var(--border);
  background: #fffefa;
}

.product-meta .shop-option-tag input:checked + span {
  border-color: var(--menu);
  background: var(--menu);
  color: var(--on-accent);
}

.product-meta #price_wrap {
  width: fit-content;
  max-width: 100%;
  margin-block: 1.1rem 1rem;
  padding: 0.7rem 1rem;
  border-left: 4px solid var(--menu);
  border-radius: 0 10px 10px 0;
  background: #fffefa;
}

.product-meta #price_wrap .price,
.product-meta #price_wrap .sale-price {
  color: var(--heading);
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
}

.product-meta .short {
  max-width: 42ch;
  margin: 0.25rem 0 1.4rem;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.65;
}

.product-meta > [data-wishlist-add],
.product-meta .external-links {
  margin-block: 0.2rem 1rem;
}

.product-meta .shop-product-details > div {
  width: fit-content;
  max-width: 100%;
  margin: 0.55rem 0 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(24, 58, 41, 0.1);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.78);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

#tab-attributes table.attributes {
  table-layout: fixed;
}

#tab-attributes table.attributes th,
#tab-attributes table.attributes td {
  overflow-wrap: break-word;
  word-break: normal;
}

#tab-attributes table.attributes th {
  width: 36%;
}

#shop-products-ui .shop-products-toolbar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0.8rem;
}

#shop-products-ui .shop-products-toolbar #shop-filters-details {
  display: block;
  flex: 1 1 8rem;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.shop-products-toolbar .sorter {
  flex: 0 0 auto;
}

.shop-products-toolbar #shop-filters-details > summary {
  display: inline-flex;
  width: max-content;
  height: 2.7rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.shop-products-toolbar #shop-filters-details > summary::-webkit-details-marker {
  display: none;
}

.shop-products-toolbar #shop-filters-details > summary::after {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.shop-products-toolbar #shop-filters-details[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.shop-products-toolbar #shop-filters-details > summary:hover {
  border-color: var(--button);
  color: var(--button-hover);
}

.shop-products-toolbar #shop-filters-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.shop-products-toolbar #shop-filters-form .filter-group {
  min-width: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--subtle-border);
  border-radius: 10px;
  background: #fffefa;
}

.shop-products-toolbar #shop-filters-form .filter-group:not(:has(.check, .price-row)) {
  display: none;
}

.shop-products-toolbar #shop-filters-form .filter-group legend {
  padding-inline: 0.35rem;
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-products-toolbar #shop-filters-form .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  color: var(--text);
  line-height: 1.35;
}

.shop-products-toolbar #shop-filters-form .check label {
  margin: 0;
}

.shop-products-toolbar #shop-filters-form input[type="checkbox"] {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin: 0;
  accent-color: var(--menu);
}

.shop-products-toolbar #shop-filters-form .price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  gap: 0.6rem;
}

.shop-products-toolbar #shop-filters-form .price-row label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.shop-products-toolbar #shop-filters-form .price-row input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.3rem;
}

.shop-products-toolbar #shop-filters-form .filters-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.shop-products-toolbar #shop-filters-form button,
.shop-products-toolbar #shop-clear-filters {
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--button);
  border-radius: 999px;
  background: var(--button);
  color: var(--on-accent);
  font: inherit;
  font-weight: 750;
}

.shop-products-toolbar #shop-filters-form button:hover,
.shop-products-toolbar #shop-clear-filters:hover {
  border-color: var(--button-hover);
  background: var(--button-hover);
}

.shop-products-toolbar #shop-clear-filters {
  background: transparent;
  color: var(--heading);
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.product-tabs a {
  font-weight: 700;
  text-decoration: none;
}

.price {
  font-weight: 700;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.sale-badge {
  border-radius: 999px;
}

/* Shop, search, and shared frontend controls */
.button,
button.button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid #d65d38;
  border-radius: 999px;
  background: #d65d38;
  color: #fffdf6;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  border-color: #b94729;
  background: #b94729;
  color: #fffdf6;
}

.button.secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--heading);
}

input,
select,
textarea {
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fffefa;
  color: var(--text);
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 8rem;
}

label {
  font-weight: 700;
}

.site-search-widget {
  display: flex;
  width: 100%;
  max-width: 24rem;
  min-width: 0;
}

.site-search-widget input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
  border-radius: 7px 0 0 7px;
}

.site-search-widget button {
  min-width: 2.7rem;
  border-radius: 0 7px 7px 0;
}

.search-icon {
  display: block;
  width: 1em;
  height: 1em;
}

.search-bar-row select {
  flex: 0 0 auto;
  margin-right: -0.5rem;
  border-right: 0;
  border-radius: 7px 0 0 7px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 2rem;
}

.pagination a,
.pagination strong,
.pagination .current,
.pagination .ellipsis {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}

.pagination strong,
.pagination .current {
  border-color: var(--menu);
  background: var(--menu);
  color: var(--on-accent);
}

.breadcrumbs {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  margin: 0.7rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li::after {
  margin-left: 0.4rem;
  color: #a1a998;
  content: "/";
}

.breadcrumbs li:last-child::after {
  content: "";
}

.category-header,
.author-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-block: 1.5rem;
}

.category-image,
.author-image {
  flex: 0 0 auto;
}

.category-name,
.author-name {
  margin: 0;
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.author-avatar img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.author-meta,
.author-biography,
.category-description {
  min-width: 0;
  flex: 1;
}

.author-bio {
  line-height: 1.65;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-tag {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  text-decoration: none;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1.5rem;
}

.post-nav .prev-post {
  text-align: left;
}

.post-nav .next-post {
  text-align: right;
}

.widgets-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget-block {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffefa;
}

.widgets-section ul {
  padding-left: 1.2rem;
}

.site-copyright {
  margin: 0;
  text-align: center;
}

footer {
  width: 100%;
  margin: 0;
  padding-block: 1.4rem;
  border-top: 1px solid var(--border);
  background: #f0f1e8;
  color: #65715f;
  font-size: 0.82rem;
}

.error-container {
  max-width: 44rem;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffefa;
  text-align: center;
}

@media (max-width: 900px) {
  .content-wrap.has-widgets {
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(var(--shop-grid-cols-md, 3), minmax(0, 1fr));
  }

  .product-showcase .product-grid.shortcode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-products-toolbar #shop-filters-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .widgets-section {
    margin-top: var(--space-xl);
  }

  .post-container-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  :root {
    --page-gutter: 0.75rem;
  }

  .content-wrap {
    padding-block: 1rem 3rem;
  }

  .content-wrap .page-article,
  .content-wrap .post-article {
    padding: 1rem;
  }

  .content-wrap main > article.product-detail {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .product-detail .pd-wrap--with-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-detail .pd-gallery,
  .product-detail .pd-mainblock,
  .product-detail .pd-stage,
  .product-detail .pd-single-stage,
  .product-detail .product-meta {
    min-width: 0;
    width: 100%;
  }

  .story-panel__copy {
    padding: 1rem;
  }

  .content-wrap.has-widgets {
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(var(--shop-grid-cols-sm, 2), minmax(0, 1fr));
  }

  .product-showcase .product-grid.shortcode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-container,
  .post-container-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-header,
  .author-header,
  .author-box {
    flex-direction: column;
  }

  .author-avatar img {
    width: 92px;
    height: 92px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav .prev-post,
  .post-nav .next-post {
    text-align: left;
  }
}

@media (max-width: 520px) {
  :root {
    --page-gutter: 0.625rem;
  }

  .content-wrap .page-article,
  .content-wrap .post-article {
    padding: 0.75rem;
  }

  .product-detail .product-meta {
    padding: 0.85rem;
  }

  .story-panel__copy {
    padding: 0.8rem;
  }

  .post-container > article,
  .related-posts article {
    padding: 0.9rem;
  }

  .product-grid .product-card > :not(.featured-image-link) {
    margin-inline: 0.85rem;
  }

  .product-grid .product-card h2,
  .product-grid .product-card h3 {
    margin-block: 0.75rem 0.35rem;
    font-size: 1.3rem;
  }

  .product-grid .product-card .short {
    margin-bottom: 0.9rem;
  }

  .product-grid,
  .seed-card-grid {
    gap: 0.85rem;
  }

  .shop-products-toolbar #shop-filters-form {
    grid-template-columns: 1fr;
  }

  .product-showcase > .section-header {
    align-items: flex-start;
  }

  [data-cart-root]:has(.shop-cart-items) > .shop-cart-summary {
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    gap: 0.65rem;
    padding: 0.7rem;
  }

  [data-cart-root]:has(.shop-cart-items) > .shop-cart-summary > p {
    font-size: 1.05rem;
  }

  [data-cart-root]:has(.shop-cart-items) > .shop-cart-summary > .button {
    flex: 0 1 auto;
    min-width: 0;
    padding-inline: 1rem;
  }
}

@media (max-width: 360px) {
  .shop-cart-items > li > button {
    grid-row: 3;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.home-page p {
  line-height: 1.75;
}
.home-page a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 47vw, 610px);
  overflow: hidden;
  border-radius: 18px;
  color: #fffdf6;
  background: #284731;
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 39, 27, 0.86) 0%,
    rgba(18, 43, 29, 0.72) 39%,
    rgba(18, 43, 29, 0.12) 100%
  );
  content: "";
}
.hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__copy {
  width: min(650px, 72%);
  padding: clamp(2rem, 7vw, 6.5rem);
}
.eyebrow {
  margin: 0 0 1rem !important;
  color: #e5bd72;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 1.2rem;
  color: #fffdf6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.8vw, 6.15rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero__intro {
  max-width: 32rem;
  margin: 0 0 1.8rem !important;
  color: rgba(255, 253, 246, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid #dc6842;
  border-radius: 999px;
  background: #dc6842;
  color: #fffdf6;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: background 160ms ease;
}
.button:hover {
  background: #bf4e30;
}
.button--quiet {
  border-color: rgba(255, 253, 246, 0.54);
  background: rgba(255, 253, 246, 0.08);
}
.button--quiet:hover {
  background: rgba(255, 253, 246, 0.18);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.proof-list span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #54624e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.proof-list span::before {
  color: #cf6844;
  content: "✳";
  font-size: 1rem;
}

.content-section {
  padding-block: clamp(4rem, 8vw, 7.2rem);
}
.content-section--seedbank {
  scroll-margin-top: 1rem;
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-header__copy {
  max-width: 690px;
}
.content-section h2 {
  margin: 0 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.5vw, 3.65rem);
  font-weight: 500;
  line-height: 1.06;
}
.section-header p:not(.eyebrow) {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
}
.status-pill {
  flex: none;
  padding: 0.62rem 0.85rem;
  border: 1px solid #d7dfcd;
  border-radius: 999px;
  color: #466146;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seed-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.seed-card {
  overflow: hidden;
  border: 1px solid #e3e5d9;
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 9px 28px rgba(34, 55, 37, 0.05);
}
.seed-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1.36;
  object-fit: cover;
  background: #e6eadc;
}
.seed-card__body {
  padding: 1.2rem 1.25rem 1.35rem;
}
.seed-card__tag {
  margin: 0 0 0.55rem !important;
  color: #8b6544;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.seed-card h3 {
  margin: 0 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1.15;
}
.seed-card__body > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: 18px;
  background: #e9eddf;
}
.story-panel__photo {
  min-height: 380px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-panel__copy {
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem);
}
.story-panel__copy h2 {
  max-width: 530px;
}
.story-panel__copy > p:not(.eyebrow) {
  max-width: 510px;
  color: #566451;
}
.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.value-list span {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5c4;
  border-radius: 999px;
  color: #496047;
  font-size: 0.76rem;
  font-weight: 700;
}

.about-page {
  max-width: 72rem;
  margin-inline: auto;
}
.about-page .story-panel {
  margin-block: 2.5rem;
}
.about-page .content-section {
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.value-card {
  padding: 1.4rem;
  border: 1px solid var(--subtle-border);
  border-radius: 14px;
  background: #fffefa;
}
.value-card h3 {
  margin: 0 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}
.value-card p {
  margin: 0;
  color: var(--muted);
}
.about-page .callout {
  margin-top: 2rem;
}

.support-page {
  max-width: 68rem;
  margin-inline: auto;
}
.support-intro {
  max-width: 54rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-block: 1.5rem 2.5rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid #d7dfcd;
  border-inline-start: 4px solid var(--button);
  border-radius: 12px;
  background: var(--surface);
}
.status-banner strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--heading);
}
.status-banner p {
  margin: 0;
  color: var(--muted);
}
.support-page .content-section {
  padding-block: 2rem;
}
.support-page .value-card h3 {
  font-size: 1.3rem;
}
.support-page .callout {
  margin-top: 1.5rem;
}
.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.faq-item {
  overflow: hidden;
  border: 1px solid var(--subtle-border);
  border-radius: 12px;
  background: #fffefa;
}
.faq-item summary {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  color: var(--heading);
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  flex: none;
  color: var(--button);
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 1rem 1.2rem;
  color: var(--muted);
}
.faq-answer > :last-child {
  margin-bottom: 0;
}
.support-page .value-card a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.policy-page {
  max-width: 68rem;
  margin-inline: auto;
}
.policy-intro {
  max-width: 56rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.policy-meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.policy-section {
  padding-block: 1.6rem;
  border-top: 1px solid var(--border);
}
.policy-section h2 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.policy-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 750;
}
.policy-section > :last-child {
  margin-bottom: 0;
}
.policy-section li + li {
  margin-top: 0.5rem;
}

.notes-section {
  padding-top: 0;
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.2rem;
}
.note-card {
  padding-top: 1rem;
  border-top: 2px solid #cad5c5;
}
.note-card__number {
  margin: 0 0 0.9rem !important;
  color: #c45e3d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.note-card h3 {
  margin: 0 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}
.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 16px;
  background: #1e432e;
  color: #fffdf6;
}
.callout h2 {
  max-width: 620px;
  margin: 0 0 0.55rem;
  color: #fffdf6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 500;
}
.callout h3 {
  margin: 0 0 0.55rem;
  color: #fffdf6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
  font-weight: 500;
}
.callout p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 253, 246, 0.76);
}
.callout .button {
  flex: none;
}

footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: #f0f1e8;
  color: #65715f;
  font-size: 0.82rem;
}
footer .site-copyright {
  margin: 0;
}

@media (max-width: 800px) {
  .hero {
    min-height: 520px;
  }
  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(16, 39, 27, 0.82),
      rgba(18, 43, 29, 0.43)
    );
  }
  .hero__copy {
    width: 90%;
  }
  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
  .story-panel {
    grid-template-columns: 1fr;
  }
  .story-panel__photo {
    min-height: 300px;
    max-height: 400px;
  }
  .note-grid {
    gap: 1.2rem;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .callout {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  .hero {
    min-height: 540px;
    border-radius: 12px;
  }
  .hero__image {
    object-position: 60% center;
  }
  .hero__copy {
    width: 100%;
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: clamp(3.1rem, 14vw, 4.6rem);
  }
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .actions .button {
    width: 100%;
  }
  .proof-list {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-block: 1.1rem;
  }
  .proof-list span {
    justify-content: flex-start;
  }
  .seed-card-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }
  .seed-card__image {
    aspect-ratio: 1.55;
  }
  .seed-card-grid {
    gap: 0.85rem;
  }
  .seed-card__body {
    padding: 0.9rem;
  }
  .story-panel__photo {
    min-height: 240px;
  }
  .content-section {
    padding-block: 3.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Shop brand and collection directories */
.shop-taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(var(--shop-grid-cols-xl, 5), minmax(0, 1fr));
  gap: var(--shop-grid-gap, 1.2rem);
  margin-block: 1.5rem;
}
.shop-taxonomy-card {
  padding: 1rem;
  border: 1px solid var(--subtle-border);
  border-radius: 14px;
  background: #fffefa;
  box-shadow: var(--shop-card-shadow);
}
.shop-taxonomy-card h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.shop-taxonomy-card h2 a { color: var(--heading); text-decoration: none; }
.shop-taxonomy-card h2 a:hover { color: var(--link-hover); }
.shop-taxonomy-card .short, .shop-taxonomy-count { color: var(--muted); }

@media (max-width: 1200px) {
  .shop-taxonomy-grid { grid-template-columns: repeat(var(--shop-grid-cols-lg, 4), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shop-taxonomy-grid { grid-template-columns: repeat(var(--shop-grid-cols-md, 3), minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shop-taxonomy-grid { grid-template-columns: repeat(var(--shop-grid-cols-sm, 2), minmax(0, 1fr)); }
}
.shop-directory-toolbar input, .shop-directory-toolbar select {
  min-height: 2.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fffefa;
  color: var(--text);
}

/* Sticky purchasing and quieter collection navigation */
.product-detail { --shop-purchase-bg: var(--surface); --shop-purchase-color: var(--text); }
.product-meta .shop-product-details > .shop-product-collections {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.product-meta .shop-product-collections dt {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.product-meta .shop-product-collections dd { font-size: 0; }
.product-meta .shop-product-collections .shop-taxonomy-link {
  display: inline-block;
  margin: 0.2rem 0.3rem 0.2rem 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fffefa;
  font-size: 0.82rem;
  text-decoration: none;
}
.shop-option-sheet { --shop-option-selected-bg: var(--menu); --shop-option-selected-color: var(--on-accent); }
.shop-sticky-purchase .button { padding: 0.6rem 0.8rem; font-size: 0.9rem; }
.shop-sticky-purchase > .shop-sticky-option { border: 1px solid var(--border); background: #fffefa; color: var(--text); }
.shop-sticky-price .price, .shop-sticky-price .sale-price { font-size: 1rem; }
.shop-sticky-purchase input { border: 1px solid var(--border); border-radius: 7px; background: #fffefa; color: var(--text); }

/* Keep anchor destinations and the purchase panel below the sticky menu. */
html { scroll-padding-top: calc(var(--grass-main-menu-height, var(--main-menu-height)) + 1rem); }
.product-detail { --shop-purchase-sticky-top: calc(var(--grass-main-menu-height, var(--main-menu-height)) + 1rem); }
@media (max-width: 700px) {
  .main-menu { max-height: 100dvh; overflow-y: auto; }
}

@media (max-width: 700px) {
  .main-menu[data-mobile-hamburger="1"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .main-menu[data-mobile-hamburger="1"] > .menu-mobile-toggle {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    min-width: 0;
  }
  .main-menu[data-mobile-hamburger="1"] > .main-menu-elements {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    padding: 0.4rem 0.75rem 0.4rem 0;
    gap: 0.5rem;
  }
  .main-menu[data-mobile-hamburger="1"] > .menu-level-0 {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .main-menu[data-mobile-hamburger="1"] .main-menu-elements :is(.shop-wishlist-link, .shop-cart-link) {
    flex: 0 0 auto;
    min-height: 44px;
  }
  .main-menu[data-mobile-hamburger="1"] .main-menu-elements .shop-wishlist-link {
    min-width: 44px;
    padding: 0.65rem;
  }
  .main-menu .main-menu-elements .shop-wishlist-link::after { content: none; }
}

.main-menu .main-menu-elements :is(.shop-wishlist-link, .shop-cart-link) svg { order: 0; }
.main-menu .main-menu-elements :is(.shop-wishlist-link, .shop-cart-link)::after { order: 1; }
.main-menu .main-menu-elements .shop-link-count {
  inset-block-start: -0.3rem;
  inset-inline-end: -0.3rem;
  border: 2px solid var(--menu);
  background: #f5efd9;
  color: var(--heading);
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 1.35rem;
  min-height: 1.35rem;
}

/* Shop loading and empty states follow the theme's product layouts. */
:root { --shop-skeleton-color: #e8ecdf; }
.shop-empty-state { border-color: var(--subtle-border); background: #fffefa; color: var(--muted); }
.product-grid .shop-skeleton-card > .shop-skeleton-image { width: 100%; margin: 0; }


/* Links page table of contents */
.toc {
    background: WhiteSmoke;
    max-width: 300px;
    padding: var(--space-sm) var(--space-md);
    margin: 0 auto;
}
.toc-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-block: 0.5rem;
}
