/* Quiet, product-first UI. Original brand, icons and assets; shared home/shop layer. */
body:has(> .site-header),
body.storefront-page {
  --qx-ink: #1d1d1f;
  --qx-secondary: #626267;
  --qx-surface: #f5f5f7;
  --qx-line: #dedee3;
  --qx-radius: 28px;
  --qx-shadow: 0 4px 18px rgba(0, 0, 0, .035);
  --qx-hover-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  --qx-ease: cubic-bezier(.2, .7, .2, 1);
  --ink: var(--qx-ink);
  --muted: var(--qx-secondary);
  --cream: var(--qx-surface);
  --line: var(--qx-line);
  --shadow: var(--qx-shadow);
  background: var(--qx-surface);
  color: var(--qx-ink);
}

/* A compact, translucent navigation bar with complete, labelled controls. */
.site-header,
.storefront-page .shop-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
}
.nav-shell { min-height: 72px; }
.desktop-nav { font-size: .875rem; font-weight: 500; gap: clamp(.75rem, 1.35vw, 1.5rem); }
.desktop-nav > a { padding-block: .25rem; }
.site-header .nav-cta { padding: .45rem 1.1rem; }
.storefront-page .shop-header { min-height: 78px; padding-block: 12px; }
.storefront-page .shop-header nav { gap: 16px; font-size: 14px; }
.storefront-page .home-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.mobile-menu summary { border-color: transparent; border-radius: 999px; background: transparent; }
.mobile-menu nav { background: rgba(255, 255, 255, .98); border-color: var(--qx-line); box-shadow: 0 16px 30px rgba(0, 0, 0, .06); }
.mobile-menu nav a { border-radius: 14px; font-weight: 500; }

/* Keep existing layouts and product-balance.css package dimensions intact. */
.product-catalog { gap: 24px; }
.product-catalog .product-tile,
.product-catalog .product-tile-main,
.product-catalog .product-tile-editorial,
.product-catalog .product-tile-portrait,
.product-catalog .product-tile-landscape,
.storefront-page .product-card {
  border: 1px solid rgba(0, 0, 0, .025);
  border-radius: var(--qx-radius);
  background: #fff;
  box-shadow: var(--qx-shadow);
  transform: none;
  transition: box-shadow .32s var(--qx-ease), transform .32s var(--qx-ease);
}
.product-catalog .product-card-home:hover,
.storefront-page .product-card:hover { transform: none; box-shadow: var(--qx-shadow); }
.product-catalog .product-art { background: #f5f5f7; }
.product-catalog .product-info { padding: 26px; gap: 12px; border-top: 0; }
.product-catalog .product-info > p { color: var(--forest); font-size: .75rem; font-weight: 600; letter-spacing: .025em; }
.product-catalog .product-info h3 { color: var(--qx-ink); font-size: clamp(1.5rem, 2vw, 1.85rem); font-weight: 700; line-height: 1.35; }
.product-catalog .product-info > span { color: var(--qx-secondary); font-size: .9375rem; line-height: 1.8; }
.product-catalog .product-info > span b { color: var(--qx-ink); font-weight: 600; }
.product-catalog .product-info dl div { border-color: #e8e8ed; padding-top: 10px; }
.product-catalog .product-info dd { font-weight: 500; }
.product-catalog .product-info .button { align-self: flex-start; width: auto; margin-top: auto; padding-inline: 18px; }
.product-catalog .product-art-note {
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 94px);
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #505055;
  font-size: .6875rem;
  line-height: 1.55;
  white-space: normal;
}
.product-stage .qx-card-details {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e3e3e8;
  color: #363639;
  cursor: pointer;
  transition: background .22s ease, transform .22s var(--qx-ease);
}

.hero-gallery, .academy-panel, .origin-heading, .root-reassurance,
.elder-guide-grid article, .diagnosis-card, .plant-notes article,
.evidence-summary article, .document-card, .contact-card, .formula-card,
.use-notes, .origin-belief { border-radius: var(--qx-radius); }
.elder-guide-grid article, .diagnosis-card, .plant-notes article,
.evidence-summary article, .document-card, .contact-card, .formula-card,
.use-notes { border-color: rgba(0, 0, 0, .035); background: #fff; box-shadow: var(--qx-shadow); }
.diagnosis-card { color: var(--qx-ink); }
.diagnosis-card p, .diagnosis-card strong { color: var(--qx-secondary); }
.diagnosis-card > span { color: var(--forest); border-color: #d4ded7; }
.plant-notes { gap: 20px; border: 0; }
.plant-notes article { border: 1px solid rgba(0, 0, 0, .035); }
.plant-notes article:hover { background: #fff; color: var(--qx-ink); }
.plant-notes article:hover p { color: var(--qx-secondary); }
.plant-notes article:hover > span { color: var(--forest); }
.document-card { transition: box-shadow .3s var(--qx-ease), transform .3s var(--qx-ease); }
.document-card img { background: #f5f5f7; border-bottom: 0; }
.document-card:hover img, .document-card:focus-visible img { transform: none; }
.document-card > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px; font-weight: 600; color: var(--qx-ink); }
.document-card .qx-document-open { flex: 0 0 30px; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: #ededf0; color: #505055; }
.fit-check { border-color: var(--qx-line); border-radius: 24px; box-shadow: none; }
.fit-check a { border-radius: 0; }
.root-reassurance-grid article { border-radius: 20px; }
.evidence-summary article { padding: 24px; }

/* A restrained action system, still unmistakably green rather than Apple blue. */
body:has(> .site-header) :is(.button, .nav-cta, .mini-header-shop, .mini-product-buy, .mini-contact a, .mini-retry, .mini-welcome > a),
.storefront-page :is(.button, .secondary, .danger, .text-button) {
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transform: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
/* Display stays separate so responsive and hidden controls are never resurrected. */
body:has(> .site-header) :is(.button, .nav-cta, .mini-product-buy, .mini-contact a, .mini-retry, .mini-welcome > a),
.storefront-page :is(.button, .secondary, .danger, .text-button) { display: inline-flex; }
.site-header .mini-header-shop { display: none; }
body:has(> .site-header) [hidden], .storefront-page [hidden] { display: none !important; }
.storefront-page .product-buy-actions button { border-radius: 999px; }
body:has(> .site-header) :is(.button-ghost, .button-light, .button-outline),
.storefront-page :is(.secondary, .text-button) { border-color: #bfc0c5 !important; background: #fff !important; color: var(--forest) !important; }
.storefront-page .icon-button,
.image-dialog .dialog-close,
#qx-product-dialog .qx-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0 !important;
  border-radius: 999px;
  background: #ededf0 !important;
  color: #39393d !important;
}
.qx-icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.qx-inline-icon, .qx-icon-inline { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.qx-has-icon { gap: 7px; }
.qx-action-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--forest); }
.mini-product-buy small.qx-action-link, .mini-bag-link small.qx-action-link { min-height: 0; color: inherit; }
.qx-control-label { min-width: 0; }
.storefront-page .product-controls > .button > .qx-control-label { font: inherit; }
.product-stage .qx-card-details .qx-icon { width: 20px; height: 20px; }
.academy-link .qx-inline-icon, .help-link .qx-inline-icon { font-size: inherit; }
body:has(> .site-header) :is(a, button, summary, [tabindex]):focus-visible,
.storefront-page :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #198456;
  outline-offset: 4px;
}

/* Legible, quiet shop surfaces; no change to catalogue data or purchase logic. */
.storefront-page .shop-shell { background: var(--qx-surface); }
.storefront-page .shop-heading { border-bottom: 0; padding-bottom: 12px; }
.storefront-page .shopping-steps, .storefront-page .buy-notes { border-color: rgba(0, 0, 0, .035); border-radius: 24px; background: #fff; }
.storefront-page .shopping-steps strong { font-weight: 600; }
.storefront-page .notice { border: 0; border-radius: 18px; background: #ececf0; color: #45454a; }
.storefront-page .product-info h2 { color: var(--qx-ink); }
.storefront-page .product-content { border-top: 0; padding: 26px; }
.storefront-page .product-description, .storefront-page .product-subtitle { color: var(--qx-secondary); }
.storefront-page .product-image-note { border: 0; border-radius: 12px; background: var(--qx-surface); color: var(--qx-secondary); }
.storefront-page .product-controls { border-color: #e8e8ed; }
.storefront-page .field input, .storefront-page .field select,
.storefront-page .field textarea, .storefront-page .variant-select { border-color: #bfc0c5; border-radius: 12px; color: var(--qx-ink); }
.storefront-page .stepper { border-color: #d7d7dc; border-radius: 999px; }
.storefront-page .stepper button { background: #f5f5f7; color: var(--qx-ink); }
.storefront-page .stepper button:first-child, .storefront-page .stepper button:last-child { border-color: #e3e3e8; }
.storefront-page .product-card.product-selected { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(11, 90, 56, .12); }
.storefront-page .badge { border-radius: 999px; }
.storefront-page .toast { border-radius: 999px; background: #262629; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }

/* Details open in calm, spacious sheets; native dialog keeps focus and Escape. */
.image-dialog, #qx-product-dialog, .storefront-page #shop-dialog {
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: var(--qx-ink);
  box-shadow: 0 24px 100px rgba(0, 0, 0, .2);
  overscroll-behavior: contain;
}
.image-dialog::backdrop, #qx-product-dialog::backdrop, .storefront-page #shop-dialog::backdrop { background: rgba(20, 20, 23, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.image-dialog[open], #qx-product-dialog[open], .storefront-page #shop-dialog[open] { animation: qx-sheet-open 200ms var(--qx-ease); }
.image-dialog[open]::backdrop, #qx-product-dialog[open]::backdrop, .storefront-page #shop-dialog[open]::backdrop { animation: qx-backdrop-open 180ms ease-out; }
@keyframes qx-sheet-open { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes qx-backdrop-open { from { opacity: 0; } to { opacity: 1; } }
.image-dialog { padding: 70px 24px 24px; }
.image-dialog .dialog-close, #qx-product-dialog .qx-detail-close { position: absolute; top: 14px; right: 14px; z-index: 2; cursor: pointer; }
html.qx-detail-open, html.qx-detail-open body { overflow: hidden; }
#qx-product-dialog { position: fixed; width: min(960px, calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto; }
#qx-product-dialog .qx-product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-width: 0; }
#qx-product-dialog .qx-detail-media { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 400px; padding: 56px 32px 32px; background: var(--qx-surface); border-radius: 28px 0 0 28px; }
#qx-product-dialog .qx-detail-media img { width: 100%; height: 340px; object-fit: contain; mix-blend-mode: multiply; }
#qx-product-dialog .qx-detail-spec { margin: 0; color: var(--qx-secondary); font-size: 14px; text-align: center; }
#qx-product-dialog .qx-detail-copy { min-width: 0; padding: 64px 36px 36px; }
#qx-product-dialog .qx-detail-copy h2 { margin: 0 0 20px; color: var(--qx-ink); font-size: clamp(26px, 3vw, 36px); line-height: 1.35; }
#qx-product-dialog .qx-detail-copy > p, #qx-product-dialog .qx-detail-copy > span { display: block; margin: 0 0 18px; color: var(--qx-secondary); font-size: 16px; line-height: 1.85; }
#qx-product-dialog .qx-detail-copy b { color: var(--qx-ink); font-weight: 600; }
#qx-product-dialog dl { margin: 24px 0; }
#qx-product-dialog dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--qx-line); }
#qx-product-dialog dt { color: var(--qx-secondary); }
#qx-product-dialog dd { margin: 0; }
#qx-product-dialog .button { margin-top: 14px; }
.storefront-page .dialog-head { padding: 20px 24px; background: rgba(255, 255, 255, .94); border-color: #e8e8ed; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.storefront-page .dialog-head h2 { font-weight: 600; }
.storefront-page .order-card { border-color: #e4e4e9; border-radius: 20px; }

.faq-list details, .mini-help details { border: 0; border-bottom: 1px solid var(--qx-line); }
.faq-list details:first-child { border-top: 1px solid var(--qx-line); }
.faq-list summary, .mini-help summary { min-height: 58px; font-weight: 600; color: var(--qx-ink); }
.faq-list summary::after, .mini-help summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: linear-gradient(#626267, #626267) center / 14px 1.5px no-repeat,
    linear-gradient(#626267, #626267) center / 1.5px 14px no-repeat;
  transform: translateY(-50%);
  transition: transform .22s var(--qx-ease);
}
.faq-list details[open] summary::after, .mini-help details[open] summary::after { content: ""; transform: translateY(-50%) rotate(45deg); }
.faq-list summary > .qx-icon, .mini-help summary > .qx-icon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); transition: transform .22s ease; }
.faq-list details[open] summary > .qx-icon, .mini-help details[open] summary > .qx-icon { transform: translateY(-50%) rotate(45deg); }
.faq-list details p, .mini-help details p { color: var(--qx-secondary); }

@media (hover: hover) and (pointer: fine) {
  .product-catalog .product-card-home:hover, .storefront-page .product-card:hover, .document-card:hover { transform: translateY(-3px); box-shadow: var(--qx-hover-shadow); }
  .product-stage .qx-card-details:hover { background: #d8d8de; transform: scale(1.06); }
  .desktop-nav > a:not(.nav-cta):hover { color: var(--forest); }
  .qx-action-link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .qx-action-link > .qx-inline-icon { transition: transform .22s var(--qx-ease); }
  .qx-action-link:hover > .qx-inline-icon { transform: translateX(2px); }
}
.product-stage .qx-card-details:active { transform: scale(.96); }

@media (min-width: 768px) {
  .product-catalog .product-info .button { font-size: .875rem; }
  .storefront-page .product-image { background: #f5f5f7; }
}
@media (max-width: 767px) {
  .nav-shell, html:not(.full-site) .nav-shell { min-height: 64px; }
  html:not(.full-site) .site-header .mini-header-shop { display: inline-flex; }
  .site-header .mini-header-shop { padding-inline: 14px; font-size: .9375rem; }
  .hero-gallery, .academy-panel, .origin-heading, .root-reassurance,
  .elder-guide-grid article, .diagnosis-card, .plant-notes article,
  .evidence-summary article, .document-card, .contact-card, .formula-card,
  .use-notes, .origin-belief { border-radius: 24px; }
  .product-catalog .product-info { padding: 22px; }
  .product-catalog .product-info .button { width: auto; max-width: 100%; }
  .mini-catalog { gap: 16px; }
  .mini-product { border-color: rgba(0, 0, 0, .035); border-radius: 24px; box-shadow: var(--qx-shadow); padding: 16px; }
  .mini-product-buy { grid-column: 1 / -1; width: 100%; }
  .mini-contact { border-color: #e8e8ed; border-radius: 24px; padding: 18px; }
  .mini-status { border: 0; border-radius: 14px; background: #eaeef0; color: #4b4b50; padding: 12px 14px; }
  html:not(.full-site) .mini-bottom-nav, .mobile-shortcuts, .storefront-page .mobile-shop-nav {
    border-top: 1px solid rgba(0, 0, 0, .075);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 -5px 24px rgba(0, 0, 0, .035);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .mini-bottom-nav a:not(.mini-bag-link), .mobile-shortcuts a:not(.shortcut-shop),
  .storefront-page .mobile-shop-nav a, .storefront-page .mobile-shop-nav button:not(.mobile-cart-button) { border: 0; border-radius: 14px; background: transparent; color: #55555a; font-weight: 500; }
  nav.mini-bottom-nav a { gap: 3px; font-size: .75rem; }
  .mini-bottom-nav .qx-icon { width: 22px; height: 22px; }
  nav.mini-bottom-nav a > .qx-control-label { font-size: .75rem; }
  nav.mobile-shortcuts a {
    flex-direction: column;
    gap: 3px;
    min-height: 54px;
    font-size: .75rem;
    line-height: 1.4;
    white-space: nowrap;
  }
  nav.mini-bottom-nav .mini-bag-link, .mobile-shortcuts .shortcut-shop { border-radius: 999px; }
  nav.mini-bottom-nav .mini-bag-link {
    display: grid;
    grid-template-columns: 18px max-content max-content;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: center;
    gap: 1px 3px;
    padding-inline: 5px;
  }
  nav.mini-bottom-nav .mini-bag-link > .qx-icon { width: 18px; height: 18px; }
  nav.mini-bottom-nav .mini-bag-link > .qx-control-label { color: inherit; font-size: .75rem; line-height: 1.4; white-space: nowrap; }
  nav.mini-bottom-nav .mini-bag-link > b { min-width: 17px; padding: 1px 3px; font-size: .6875rem; line-height: 1.4; white-space: nowrap; }
  nav.mini-bottom-nav .mini-bag-link > small { grid-column: 1 / -1; justify-self: center; justify-content: center; gap: 3px; font-size: .6875rem; line-height: 1.4; white-space: nowrap; }
  nav.mini-bottom-nav .mini-bag-link > small .qx-icon { width: 14px; height: 14px; }
  #qx-product-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); margin: auto; border-radius: 24px; }
  #qx-product-dialog .qx-product-detail { grid-template-columns: minmax(0, 1fr); }
  #qx-product-dialog .qx-detail-media { min-height: 0; padding: 55px 28px 20px; border-radius: 24px 24px 0 0; }
  #qx-product-dialog .qx-detail-media img { height: 235px; }
  #qx-product-dialog .qx-detail-copy { padding: 24px; }
  #qx-product-dialog .qx-detail-copy h2 { font-size: 28px; }
}
@media (max-width: 740px) {
  .storefront-page .shop-header { min-height: 68px; padding-block: 10px; }
  .storefront-page .shop-header nav { font-size: 13px; }
  .storefront-page .product-card { border-radius: 24px; padding: 18px; }
  .storefront-page .product-content { padding: 0; }
  .storefront-page .product-image { border-color: transparent; border-radius: 14px; }
  .storefront-page .product-buy-actions button { min-height: 48px; font-size: 15px; }
  .storefront-page .product-buy-actions .button { font-size: 16px; }
  .storefront-page .mobile-shop-nav .mobile-cart-button { border-radius: 22px; }
  .storefront-page #shop-dialog { border-radius: 26px 26px 0 0; }
  .storefront-page .dialog-head { border-radius: 26px 26px 0 0; padding: 16px 18px; }
  .storefront-page .shopping-steps, .storefront-page .buy-notes { border-radius: 24px; }
}
@media (max-width: 370px) {
  .storefront-page .product-card { padding: 14px; }
  .storefront-page .product-buy-actions button { padding-inline: 5px; }
  .mini-contact { gap: 8px; padding: 14px; }
  .mini-contact a { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .image-dialog[open], #qx-product-dialog[open], .storefront-page #shop-dialog[open],
  .image-dialog[open]::backdrop, #qx-product-dialog[open]::backdrop, .storefront-page #shop-dialog[open]::backdrop { animation: none; }
  .product-catalog .product-card-home, .storefront-page .product-card, .document-card,
  .product-stage .qx-card-details, .faq-list summary > .qx-icon, .mini-help summary > .qx-icon,
  .faq-list summary::after, .mini-help summary::after { transition: none; }
  .product-catalog .product-card-home:hover, .storefront-page .product-card:hover,
  .document-card:hover, .product-stage .qx-card-details:hover, .product-stage .qx-card-details:active { transform: none; }
}

/* r24 desktop typography: a small reduction, without scaling layout or touch targets.
   Mobile/tablet reading sizes and small captions/navigation remain unchanged. */
@media (min-width: 1200px) {
  .hero-content h1 { font-size: clamp(2.4rem, 3.5vw, 3.35rem); }
  .academy-heading h2, .purchase-intro h2, .elder-guide-heading h2,
  .diagnosis-intro h2, .section-heading h2, .manual-heading h2,
  .story-copy h2, .care-heading h2, .guide-title h2,
  .faq-intro h2, .contact-grid h2 { font-size: clamp(1.875rem, 3vw, 3rem); }
  .origin-heading h2 { font-size: clamp(2.75rem, 4.6vw, 4.8rem); }
  .hero-copy { font-size: 1rem; }
  .academy-panel > p { font-size: clamp(1.7rem, 3vw, 2.8rem); }
  .origin-belief strong { font-size: clamp(1.6rem, 2.8vw, 2.6rem); }
  .elder-guide-grid h3 { font-size: 1.85rem; }
  .diagnosis-card h3 { font-size: 2rem; }
  .product-catalog .product-info h3 { font-size: clamp(1.375rem, 1.85vw, 1.7rem); }
  .storefront-page .shop-heading h1 { font-size: clamp(30px, 2.8vw, 40px); }
  .storefront-page .shop-heading-copy > p:not(.eyebrow) { font-size: 17px; }
  .storefront-page .catalog-heading h2 { font-size: 24px; }
  .storefront-page .product-info h2 { font-size: 20px; }
  .storefront-page .price { font-size: 26px; }
}
