.aq-marketplace {
  --market-bg: var(--ug-surface, #f6f4ea);
  --market-card: var(--ug-surface-white, #fff);
  --market-ink: var(--ug-text, #14201e);
  --market-muted: var(--ug-text-muted, #52645f);
  --market-border: var(--ug-border, #cad8d2);
  --market-green: var(--ug-deep, #063f36);
  --market-panel: var(--ug-deep, #063f36);
  --market-accent: var(--ug-plant, #baf598);
  color: var(--market-ink);
  font-family: var(--ug-font-body, sans-serif);
  font-size: var(--ug-text-base);
  line-height: 1.6;
}
.aq-marketplace *, .aq-marketplace *::before, .aq-marketplace *::after { box-sizing: border-box; }
.aq-marketplace a { color: inherit; }
.aq-marketplace h1, .aq-marketplace h2, .aq-marketplace h3 { color: inherit; font-family: var(--ug-font-heading, sans-serif); text-transform: none; }
.aq-marketplace h1 { font-size: var(--ug-type-h1); line-height: var(--ug-leading-h1); }
.aq-marketplace h2 { font-size: var(--ug-type-h2); line-height: var(--ug-leading-h2); }
.aq-marketplace h3 { font-size: var(--ug-type-card-title); line-height: var(--ug-leading-h3); }
.aq-marketplace p { margin: 0 0 1rem; }
.aq-marketplace :focus-visible, .aq-market-hero-buy:focus-visible { outline: 3px solid var(--ug-focus-ring, #087861); outline-offset: 4px; }
.aq-marketplace a, .aq-marketplace button { -webkit-tap-highlight-color: transparent; }
.aq-market-page { background: var(--market-bg); padding: 24px 0 72px; }
.aq-market-container { width: min(100% - 2rem, var(--mero-header-width, 1280px)); margin-inline: auto; }
.aq-market-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .35rem; font-size: var(--ug-text-sm); color: var(--market-muted); margin-bottom: .5rem; }
.aq-market-breadcrumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.aq-market-breadcrumbs a:hover { text-decoration: underline; }
.aq-market-eyebrow { color: var(--market-muted); font-family: var(--ug-font-heading, sans-serif); font-size: var(--ug-text-xs); font-weight: var(--ug-weight-bold); letter-spacing: var(--ug-tracking-label); line-height: 1.5; margin-bottom: 10px !important; text-transform: uppercase; }
.aq-market-directory-hero { background: var(--market-panel); color: var(--ug-text-inverse, #fff); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.aq-market-directory-hero .aq-market-eyebrow { color: var(--market-accent); }
.aq-market-directory-hero h1 { margin: 0 0 6px; }
.aq-market-directory-hero > p:not(.aq-market-eyebrow) { color: var(--ug-text-inverse-muted, #b5c5c0); margin: 0; }
.aq-market-directory { margin-top: 24px; }
.aq-market-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.aq-market-section-heading h2 { margin: 0; }
.aq-market-section-heading p:not(.aq-market-eyebrow) { color: var(--market-muted); margin: 8px 0 0; }
.aq-market-filters { align-items: end; background: var(--market-card); display: flex; flex-wrap: wrap; gap: 16px; padding: 20px; border: 1px solid var(--market-border); border-radius: 16px; margin-bottom: 28px; }
.aq-market-filters > div:first-child { flex: 1 1 280px; }
.aq-market-filters > div:nth-child(2) { flex: 0 1 220px; }
.aq-market-filters label { display: block; font-weight: var(--ug-weight-semibold); font-size: var(--ug-text-sm); margin-bottom: 6px; }
.aq-marketplace input, .aq-marketplace select { color: var(--market-ink); background: var(--market-card); border: 1px solid var(--market-border); border-radius: 8px; min-height: 48px; padding: 10px 14px; font: inherit; max-width: 100%; width: 100%; }
.aq-marketplace .aq-market-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ug-button-height); border: 1px solid transparent; border-radius: var(--ug-control-radius); background: var(--ug-button-primary-bg); color: var(--ug-button-primary-text); cursor: pointer; font: var(--ug-button-font); padding: var(--ug-button-padding); text-align: center; text-decoration: none; transition: background-color 160ms, border-color 160ms; }
.aq-marketplace .aq-market-button:hover { background: var(--ug-button-primary-hover-bg); color: var(--ug-button-primary-hover-text); }
.aq-marketplace .aq-market-button--outline { background: transparent; border-color: var(--ug-button-secondary-border); color: var(--ug-button-secondary-text); }
.aq-marketplace .aq-market-button--outline:hover { background: var(--ug-button-secondary-hover-bg); color: var(--ug-button-secondary-text); }
.aq-market-text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font: var(--ug-button-font-compact); text-decoration: none; }
.aq-market-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.aq-market-reset { display: inline-flex; align-items: center; min-height: 48px; font-size: var(--ug-text-sm); text-underline-offset: 3px; }
.aq-market-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aq-market-shop-card { background: var(--market-card); border: 1px solid var(--market-border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.aq-market-shop-cover { position: relative; display: block; height: 220px; background: var(--market-panel); }
.aq-market-shop-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aq-market-cover-label, .aq-market-demo-label { position: absolute; bottom: 16px; left: 16px; border-radius: 5px; padding: 4px 9px; background: rgb(7 21 18 / 85%); color: #fff; font-size: var(--ug-text-xs); font-weight: var(--ug-weight-bold); letter-spacing: .02em; }
.aq-market-demo-label { bottom: auto; top: 16px; background: var(--ug-surface, #f6f4ea); color: var(--ug-deep, #063f36); }
.aq-market-shop-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.aq-market-shop-body h2 { font-size: var(--ug-type-card-title); margin: 16px 0 8px; }
.aq-market-shop-body h2 a { text-decoration: none; }
.aq-market-shop-body > p:not(.aq-market-muted) { font-size: var(--ug-text-sm); color: var(--market-muted); }
.aq-market-shop-byline { display: flex; gap: 12px; align-items: center; }
.aq-market-shop-byline .aq-market-eyebrow { margin: 0 !important; }
.aq-market-avatar { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--ug-surface-soft, #eaf3ef); color: var(--ug-deep, #063f36); font-weight: 700; font-family: var(--ug-font-heading, sans-serif); font-size: 1rem; }
.aq-market-avatar--large { width: 56px; height: 56px; flex-basis: 56px; font-size: 1.25rem; }
/* An uploaded logo fills the tile on white, so logos drawn on a transparent background stay legible. */
.aq-market-avatar--logo { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--market-border); }
.aq-market-avatar--logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aq-market-avatar--large.aq-market-avatar--logo { width: 72px; height: 72px; flex-basis: 72px; border-radius: 16px; }
.aq-market-muted { color: var(--market-muted); font-size: var(--ug-text-sm); }
.aq-market-card-footer { border-top: 1px solid var(--market-border); padding-top: 16px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--ug-text-sm); }
.aq-market-footnote { display: flex; align-items: start; gap: 32px; border-top: 1px solid var(--market-border); margin-top: 48px; padding-top: 28px; }
.aq-market-footnote strong { flex: 1; font-size: var(--ug-text-lg); }
.aq-market-footnote p { flex: 1; max-width: 570px; color: var(--market-muted); }
.aq-market-shop-hero { display: grid; grid-template-columns: 1.5fr 1fr; border-radius: 22px; overflow: hidden; background: var(--market-panel); color: var(--ug-text-inverse, #fff); }
.aq-market-shop-intro { padding: clamp(24px, 4vw, 52px); }
.aq-market-shop-intro .aq-market-eyebrow { color: var(--market-accent); }
.aq-market-shop-intro h1 { font-size: var(--ug-type-h1); margin: 24px 0 12px; max-width: 620px; }
.aq-market-shop-location { color: var(--market-accent); }
.aq-market-shop-description { color: var(--ug-text-inverse-muted, #b5c5c0); max-width: 520px; }
.aq-market-shop-fulfilment { max-width: 520px; color: var(--ug-text-inverse-muted, #b5c5c0); font-size: var(--ug-text-sm); }
.aq-market-shop-fulfilment strong { color: var(--ug-text-inverse, #fff); font-weight: var(--ug-weight-semibold); }
.aq-market-shop-hero-image { position: relative; min-height: 330px; background: var(--ug-forest, #0d2b25); }
.aq-market-shop-hero-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.aq-market-contact-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.aq-marketplace .aq-market-button svg { flex: none; }
.aq-market-shop-hero .aq-market-contact-group .aq-market-button { padding-inline: 1.125rem; }
.aq-market-contact-note { display: inline-block; font-size: var(--ug-text-xs); color: var(--market-muted); }
.aq-market-shop-hero .aq-market-contact-note { color: var(--ug-text-inverse-muted, #b5c5c0); }
.aq-market-demo-notice { display: flex; gap: 16px; padding: 18px 24px; margin-top: 18px; border: 1px solid var(--market-border); background: var(--ug-surface-soft, #eaf3ef); color: var(--ug-deep, #063f36); border-radius: 12px; font-size: var(--ug-text-sm); }
.aq-market-demo-notice strong { flex-shrink: 0; }
[data-aq-theme="dark"] .aq-market-item-image { background: var(--ug-forest, #0d2b25); }
.aq-market-shop-catalog { margin-top: 48px; }
.aq-market-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.aq-market-tabs a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 8px; font-size: var(--ug-text-sm); font-weight: var(--ug-weight-semibold); text-decoration: none; }
.aq-market-tabs a span { font-size: var(--ug-text-xs); font-weight: var(--ug-weight-regular); }
.aq-market-tabs a[aria-current] { background: var(--market-panel); color: #fff; }
.aq-market-tabs a:hover { box-shadow: inset 0 0 0 1px var(--market-border); }
.aq-market-catalog-search { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.aq-market-catalog-search input { width: auto; flex: 1 1 180px; }
.aq-market-item-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.aq-market-item-card { border-radius: 14px; border: 1px solid var(--market-border); overflow: hidden; background: var(--market-card); display: flex; flex-direction: column; }
.aq-market-item-image { display: block; aspect-ratio: 4 / 3; position: relative; background: var(--ug-surface-soft, #eaf3ef); }
.aq-market-item-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.aq-market-image-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--market-green); font-size: var(--ug-text-base); }
.aq-market-stock { position: absolute; bottom: 10px; left: 10px; background: #eaf3ef; color: #063f36; padding: 4px 8px; border-radius: 5px; font-size: var(--ug-text-xs); font-weight: var(--ug-weight-bold); }
.aq-market-stock--limited { background: #fff0cc; color: #725000; }
.aq-market-stock--sold_out { background: #f0edeb; color: #615b57; }
.aq-market-item-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.aq-market-item-body .aq-market-eyebrow { font-size: var(--ug-text-xs); }
.aq-market-item-body h3 { margin: 0 0 8px; }
.aq-market-item-body h3 a { text-decoration: none; }
.aq-market-item-body h3 a:hover { text-decoration: underline; }
.aq-market-scientific { font-style: italic; font-size: var(--ug-text-sm); color: var(--market-muted); }
.aq-market-stock-note { font-size: var(--ug-text-sm); color: var(--market-muted); }
.aq-market-item-contact { margin-top: auto; border-top: 1px solid var(--market-border); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.aq-market-item-contact .aq-market-button { width: 100%; min-height: var(--ug-button-height-compact); font: var(--ug-button-font-compact); padding: var(--ug-button-padding-compact); }
.aq-market-empty { background: var(--market-card); border: 1px dashed var(--market-border); border-radius: 12px; padding: 32px; grid-column: 1 / -1; }
.aq-market-empty h3 { margin-bottom: 10px; }
.aq-market-empty p { margin: 0; color: var(--market-muted); }
.aq-market-sellers-section { margin: 48px 0; scroll-margin-top: 32px; }
.aq-market-seller-rows { display: grid; gap: 12px; }
.aq-market-seller-row { display: flex; flex-wrap: wrap; gap: 12px 16px; padding: 18px 20px; background: var(--market-card); border: 1px solid var(--market-border); border-radius: 14px; align-items: start; }
.aq-market-seller-info { flex: 1 1 calc(100% - 60px); min-width: 0; }
.aq-market-seller-info .aq-market-eyebrow { margin-bottom: 2px !important; }
.aq-market-seller-info h3 { font-size: var(--ug-type-card-title); margin-bottom: 4px; }
.aq-market-seller-info h3 a { text-decoration: none; }
@media (max-width: 767px) { .aq-market-seller-info h3 a { align-items: center; display: inline-flex; min-height: 2.75rem; } }
.aq-market-seller-info p:not(.aq-market-eyebrow) { margin: 4px 0; color: var(--market-muted); font-size: var(--ug-text-sm); }
.aq-market-seller-info .aq-market-confirmed { color: var(--market-green) !important; font-size: var(--ug-text-sm) !important; }
.aq-market-seller-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.aq-market-seller-actions .aq-market-button { flex: 1 1 auto; min-height: var(--ug-button-height-compact); padding: var(--ug-button-padding-compact); font: var(--ug-button-font-compact); white-space: nowrap; }
/* Two sellers to a row; one left alone spans its row, with the buttons beside its details instead of under them. */
@media (min-width: 900px) { .aq-market-seller-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aq-market-seller-row:nth-child(odd):last-child { grid-column: 1 / -1; flex-wrap: nowrap; align-items: center; } .aq-market-seller-row:nth-child(odd):last-child .aq-market-seller-info { flex-basis: 0; } .aq-market-seller-row:nth-child(odd):last-child .aq-market-seller-actions { flex: none; width: auto; } }
/* Primary compact button beside "Share profile" in profile heroes (the theme's button tokens, so it follows dark mode). */
.aq-preview .aq-market-hero-buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ug-button-height-compact, 2.75rem); padding: var(--ug-button-padding-compact, 0 1rem); border: 1px solid transparent; border-radius: var(--ug-control-radius, .5rem); background: var(--ug-button-primary-bg, #063f36); color: var(--ug-button-primary-text, #fff); font: var(--ug-button-font-compact, 700 .9375rem/1.2 sans-serif); text-decoration: none; transition: background .18s ease, color .18s ease; }
.aq-preview .aq-market-hero-buy:hover { background: var(--ug-button-primary-hover-bg, #087861); color: var(--ug-button-primary-hover-text, #fff); }
.aq-preview .aq-market-hero-buy svg { flex: none; }
[data-aq-theme="dark"] .aq-marketplace { --market-bg: var(--ug-abyss, #071512); --market-panel: var(--ug-forest, #0d2b25); --market-card: var(--ug-surface-card-dark, #142a25); --market-ink: var(--ug-text-inverse, #fff); --market-muted: var(--ug-text-inverse-muted, #b5c5c0); --market-border: var(--ug-border-dark, #28413b); --market-green: var(--ug-mint, #83dfca); }
@media (max-width: 1279px) { .aq-market-item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .aq-market-item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .aq-market-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .aq-market-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aq-market-shop-hero { grid-template-columns: 1.3fr 1fr; } .aq-market-shop-hero-image { min-height: 280px; } .aq-market-section-heading { align-items: start; flex-direction: column; gap: 12px; } }
@media (max-width: 560px) { .aq-market-container { width: calc(100% - 32px); } .aq-market-page { padding-top: 16px; } .aq-market-directory-hero { border-radius: 16px; } .aq-market-directory-hero h1 br { display: none; } .aq-market-directory { margin-top: 32px; } .aq-market-shop-grid { grid-template-columns: 1fr; } .aq-market-shop-cover { height: 210px; } .aq-market-shop-hero { grid-template-columns: 1fr; } .aq-market-shop-hero-image { min-height: 190px; order: -1; } .aq-market-demo-notice, .aq-market-footnote { flex-direction: column; gap: 8px; } .aq-market-demo-notice { padding: 16px; } .aq-market-item-grid { gap: 12px; } .aq-market-item-body { padding: 12px; } .aq-market-item-body h3 { font-size: var(--ug-type-card-title); } .aq-market-stock-note { font-size: var(--ug-text-xs); } .aq-market-item-body .aq-market-contact-note { font-size: var(--ug-text-xs); } .aq-market-filters > div:nth-child(2) { flex: 1 1 200px; } .aq-market-filters .aq-market-button { flex: 1; } .aq-market-shop-catalog { margin-top: 32px; } .aq-market-shop-hero .aq-market-contact-group .aq-market-button { flex: 1 1 100%; } .aq-market-item-contact .aq-market-button svg { display: none; } .aq-market-catalog-search input { flex: 1 1 100%; } .aq-market-catalog-search .aq-market-button { flex: 1 1 100%; white-space: nowrap; } .aq-market-item-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .aq-marketplace .aq-market-button, .aq-preview .aq-market-hero-buy { transition: none; } }

/* Phones: the shop's logo sits beside its type, name and location instead of above them. */
@media (max-width: 560px) {
  .aq-market-shop-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .aq-market-shop-intro > * { grid-column: 1 / -1; }
  .aq-market-shop-byline { display: contents; }
  .aq-market-shop-byline > :first-child { grid-column: 1; grid-row: 1 / span 3; }
  .aq-market-shop-byline > .aq-market-eyebrow { grid-column: 2; grid-row: 1; margin: 0; }
  .aq-market-shop-intro h1 { grid-column: 2; grid-row: 2; margin: 4px 0; font-size: var(--ug-type-h2, 1.75rem); overflow-wrap: anywhere; }
  .aq-market-shop-intro .aq-market-shop-location { grid-column: 2; grid-row: 3; margin: 0; }
  .aq-market-shop-intro .aq-market-shop-description { margin-top: 1.25rem; }
}
