/* Marketplace design system. Keep workflow selectors and Bootstrap behavior intact.
   This final layer controls visual hierarchy across customer and operational pages. */
:root {
  --ink: #172f21;
  --muted: #537461;
  --paper: #f3f7f5;
  --line: #d9e7df;
  --accent: #ffd267;
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --brand: #153b2e;
  --brand-navigation: #214c3b;
  --brand-footer: #123326;
  --brand-footer-hover: #2b604a;
  --link: #236342;
  --surface: #fff;
  --radius: 12px;
  --shadow: 0 3px 14px #153b2e08;
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
  --bs-link-color: var(--link);
}

html {
  scroll-padding-top: 130px;
}

body {
  font-family: var(--bs-body-font-family);
  font-size: 15px;
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
.page-title {
  font-family: var(--bs-body-font-family);
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.025em;
}

h1,
.page-title {
  font-size: clamp(27px, 2.7vw, 36px);
  line-height: 1.2;
  margin-bottom: 16px;
}

h2 {
  font-size: 25px;
  line-height: 1.3;
}

h3 {
  font-size: 19px;
  line-height: 1.4;
}

p {
  margin-bottom: 16px;
}

a:hover {
  color: var(--link);
}

main a:not(.btn):not(.btn-market):not(.product-image):not(.category-tile):not(.workspace-action):not(.category-showcase-product):not(.category-showcase-heading):not(.category-showcase-browse):not(.catalog-view-button):not(.store-name-link) {
  color: var(--link);
}

.shell {
  max-width: 1480px;
  padding-left: 40px;
  padding-right: 40px;
}

.section-space {
  padding-top: 32px;
  padding-bottom: 40px;
}

.section-heading {
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.underlined-link {
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}

.underlined-link:hover {
  text-decoration: underline;
}

.field-help,
.field-error,
.muted,
.stock-status {
  font-size: 13px;
  line-height: 1.5;
}

:focus-visible {
  outline: 3px solid #28784d !important;
  outline-offset: 3px;
}

.skip-link {
  color: var(--ink);
  border-radius: 0 0 8px 0;
}

/* Search and primary destinations remain easy to reach on every screen. */
.site-header {
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1020;
  border: 0;
  box-shadow: 0 2px 8px #153b2e18;
}

.site-header .header-inner {
  min-height: 76px;
  gap: 28px;
}

.wordmark {
  color: #fff;
  font-size: 23px;
  letter-spacing: -.8px;
}

.wordmark:hover {
  color: #fff;
}

.wordmark>span:last-child {
  font-weight: 650;
}

.brand-mark {
  font-family: inherit;
  font-size: 18px;
  letter-spacing: -1px;
  transform: none;
  background: var(--accent);
  color: var(--brand);
  padding: 6px 7px;
  border-radius: 9px;
  margin-right: 6px;
}

.site-header .header-search {
  padding: 0;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #ffd26744;
}

.site-header .header-search input {
  padding: 12px 16px;
  height: 46px;
  color: var(--ink);
  font-size: 16px;
  outline: none !important;
}

.header-search button {
  width: 52px;
  min-height: 46px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--brand);
  flex-shrink: 0;
}

.header-actions {
  gap: 14px;
}

.icon-link,
.header-orders {
  color: #fff;
  border-radius: 6px;
  min-height: 44px;
  padding: 9px 6px;
  font-weight: 600;
  white-space: nowrap;
}

.icon-link:hover,
.header-orders:hover {
  color: #fff;
  background: #ffffff12;
}

.icon-count {
  background: var(--accent);
  color: var(--brand);
  font-weight: 750;
}

.header-orders {
  font-size: 13px;
}

.shop-navigation {
  background: var(--brand-navigation);
  max-width: none;
  gap: 24px;
  min-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}

.shop-navigation a,
.shop-navigation button {
  color: #fff;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 8px 0;
  flex-shrink: 0;
}

.shop-navigation a:hover,
.shop-navigation button:hover {
  color: var(--accent);
}

.shop-navigation .nav-icon {
  width: 20px;
  height: 20px;
}

.offcanvas {
  color: var(--ink);
  background: #fff;
}

.offcanvas-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.offcanvas-header h2 {
  margin: 0;
  font-size: 22px;
}

.offcanvas-body {
  padding: 16px 24px 24px;
}

.category-navigation.shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
}

.category-navigation a,
.category-navigation summary {
  padding: 12px 0;
  font-size: 15px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.category-navigation-panel {
  position: static;
  box-shadow: none;
  padding: 0 0 0 14px;
  width: auto;
}

.account-menu-links>a {
  color: var(--ink);
  border-color: var(--line);
}

.account-menu-links>a:hover {
  color: var(--link);
  background: #f4fbf7;
}

/* One button hierarchy: primary action, secondary action, destructive action. */
.btn,
.btn-market,
.catalog-layout-switch a {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  min-height: 44px;
  padding: 11px 18px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color .15s, box-shadow .15s;
  text-decoration: none;
  letter-spacing: 0;
}

.btn-dark,
.btn-primary,
.btn-market {
  background: var(--accent);
  color: #172f21;
  border: 1px solid #e5b449;
  box-shadow: 0 1px 2px #172f210c;
}

.btn-dark:hover,
.btn-primary:hover,
.btn-market:hover {
  background: #f7bf40;
  color: #172f21;
  border-color: #cf9e2f;
}

.btn-outline-dark,
.btn-outline-secondary,
.btn-market.light {
  background: #fff;
  border: 1px solid #b5ccbf;
  color: var(--ink);
}

.btn-outline-dark:hover,
.btn-outline-secondary:hover,
.btn-market.light:hover {
  background: #edf8f2;
  color: var(--ink);
  border-color: #89ab97;
}

.btn-outline-danger {
  background: #fff;
  border-color: #e7b2b2;
  color: #a32222;
}

.btn:disabled,
.btn.disabled,
button:disabled {
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 12px;
}

.text-button {
  min-height: 44px;
  color: var(--link);
}

.btn-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

/* Inputs share shape, size and visible error/focus treatment. Radios stay native. */
main input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]),
main select,
main textarea {
  border: 1px solid #aec8b9;
  border-radius: 8px;
  background-color: #fff;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  max-width: 100%;
  font-size: 15px;
}

main select.form-select {
  padding-right: 40px;
}

main input[type=checkbox],
main input[type=radio] {
  width: 18px;
  height: 18px;
  accent-color: var(--link);
  flex-shrink: 0;
}

main label {
  color: var(--ink);
  font-size: 14px;
}

.form-field label,
.operations-form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field {
  margin-bottom: 20px;
}

main [aria-invalid=true]:not([type=hidden]) {
  border-color: #b12a2a;
}

.errorlist,
.field-error,
.form-errors {
  color: #a32222;
}

.form-errors,
.filter-errors {
  border-radius: 8px;
  padding: 16px;
  background: #fff0ef;
}

.guided-editor {
  border-color: var(--line);
  background: #f8fcfa;
  border-radius: var(--radius);
  padding: 20px;
}

.guided-editor button {
  min-height: 44px;
  color: var(--ink);
  background: #fff;
  border-color: #b5ccbf;
  font-weight: 600;
}

form label:has(input[type=radio]) {
  border-color: #b5ccbf;
  min-height: 44px;
  border-radius: 8px;
}

form label:has(input[type=radio]:checked) {
  background: #f1fbf5;
  border-color: var(--link);
  color: #194e33;
}

summary {
  cursor: pointer;
  min-height: 40px;
  padding: 8px 0;
}

/* Product-first merchandising uses actual approved listings, not decorative stock claims. */
.market-hero {
  background: linear-gradient(110deg, #e5f7ec, #f5eee3);
}

.market-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: 360px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.market-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  max-width: 650px;
  line-height: 1.12;
}

.market-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.hero-product {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 12px 35px #153b2e0c;
  text-align: center;
  color: var(--ink) !important;
}

.hero-product:nth-child(2) {
  transform: translateY(-16px);
}

.hero-product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.hero-product strong {
  display: block;
  font-size: 12px;
  margin-top: 12px;
}

.home-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}

.home-content {
  padding-bottom: 32px;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.category-tile {
  background: #f3faf6;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 108px;
  padding: 20px;
  color: var(--ink) !important;
}

.category-tile h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 28px 12px 0;
}

.category-tile:hover {
  border-color: var(--link);
  background: #edfbf3;
}

.category-tile>span:last-child {
  bottom: 18px;
  right: 18px;
  font-size: 13px;
  font-weight: 600;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-width: 0;
}

/* All collections share this frame so portrait and landscape photos fill equal tiles. */
.product-image {
  background: #f8fbf9;
  aspect-ratio: auto;
  height: 200px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.product-image:hover img {
  transform: scale(1.025);
}

.product-arrow {
  display: none;
}

.product-card-copy {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  font-size: 12px;
  margin: 0 0 4px;
}

.product-meta span:last-child {
  display: none;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
}

.product-card h3 a {
  color: var(--ink) !important;
}

.product-card .price {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 6px;
}

.product-card .product-rating {
  margin-bottom: 4px;
}

.product-card-summary {
  min-width: 0;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.product-card-actions form {
  margin-top: 0;
}

.product-card-actions>form,
.product-card-actions>.btn {
  margin-bottom: 0 !important;
}

.product-card .btn {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
}

.product-card .wishlist-button {
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  box-shadow: none;
}

.product-card .wishlist-button:hover {
  background: #fff7df;
  border-color: #d8b65b;
}

.product-card .wishlist-button .nav-icon {
  width: 17px;
  height: 17px;
}

/* Reset the older list padding/gap; center the photo against the complete item summary. */
.product-list {
  gap: 14px;
}

.product-list .product-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  align-items: center;
}

.product-list .product-card.empty-state {
  display: block;
}

.product-list .product-card .product-image {
  width: 100%;
  min-width: 0;
  aspect-ratio: auto;
  height: 160px;
  min-height: 0;
  border-radius: 8px;
  align-self: center;
}

.product-list .product-card-copy {
  padding: 0 20px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 20px;
  align-items: center;
}

.product-list .product-card-actions {
  margin-top: 0;
  align-items: stretch;
}

@media (min-width: 1100px) {

  .product-grid.new-arrivals,
  .recommendation-section .product-grid,
  .product-grid.buy-again-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.product-list .product-card-copy form {
  margin-top: 0;
}

.product-list .product-card-copy>form {
  margin-right: 0;
}

.product-list .product-card .btn:not(.wishlist-button) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.storefront-card {
  height: 100%;
  background: #f8fcfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.storefront-card h3 {
  font-size: 21px;
}

.store-profile-image {
  display: block;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8fcfa;
}

.store-profile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff5d8;
}

.store-profile-placeholder svg {
  width: 40%;
  height: 40%;
}

.store-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.store-profile-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.store-profile-copy {
  min-width: 0;
}

.store-profile-copy .eyebrow {
  margin: 0 0 6px;
}

.store-profile-copy .page-title {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 36px);
  overflow-wrap: anywhere;
}

.store-profile-description p {
  margin: 8px 0 0;
  color: var(--muted);
}

.store-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.store-profile-actions form {
  margin: 0;
}

.store-profile-content {
  min-width: 0;
}

.store-profile-header.has-store-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 28px;
}

.store-profile-content .store-profile-actions {
  margin-top: 20px;
}

.store-profile-actions .btn-market,
.store-profile-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-height: 52px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.2;
  gap: 8px;
}

.store-header-banner {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f8fcfa;
}

.store-header-banner img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {

  .store-profile-header.has-store-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .store-header-banner img {
    height: auto;
    aspect-ratio: 3 / 1;
  }
}

.store-message-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.store-message-button svg {
  width: 20px;
  height: 20px;
}

.store-card-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  min-width: 0;
}

.store-card-identity .store-profile-image {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-radius: 12px;
}

.store-card-identity h2,
.store-card-identity h3 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-card-identity :is(h2, h3),
.store-card-identity :is(h2, h3) a {
  color: #000;
}

@media (max-width: 1100px) {

  .store-profile-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {

  .store-profile-header {
    padding: 18px;
    gap: 18px;
  }

  .store-profile-identity {
    align-items: flex-start;
    gap: 14px;
  }

  .store-profile-identity .store-profile-image {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
    border-radius: 14px;
  }

  .store-profile-actions {
    width: 100%;
  }

  .store-profile-actions>*,
  .store-profile-actions form button {
    flex: 1;
    width: 100%;
  }

  .store-card-identity .store-profile-image {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
}

/* Filters occupy a compact sidebar on desktop and a native disclosure on mobile. */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-filters {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
}

.catalog-filters>summary {
  font-weight: 700;
  font-size: 16px;
}

.catalog-filters .filter-bar {
  display: block;
  background: none;
  padding: 0;
  margin: 12px 0 0;
}

.catalog-filters .filter-primary,
.catalog-filters .filter-essentials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.catalog-filters .filter-primary {
  margin-bottom: 16px;
}

.catalog-filters select {
  width: 100%;
  max-width: none;
}

.catalog-filters .filter-search {
  width: 100%;
}

.catalog-filters .btn {
  width: 100%;
  margin-top: 16px;
}

.catalog-filters .field-help {
  margin: 12px 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.catalog-layout-switch {
  margin: 0 0 18px;
  gap: 8px;
}

.catalog-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-heading-actions .catalog-layout-switch {
  margin: 0;
}

.catalog-layout-switch a {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.catalog-layout-switch a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.catalog-layout-switch a:hover {
  background: #fff7df;
  border-color: #d8b65b;
  color: var(--ink);
}

.catalog-layout-switch a[aria-current] {
  background: var(--accent);
  color: var(--ink);
  border-color: #d8b65b;
}

.applied-filters a {
  border-radius: 20px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.pagination-nav {
  padding-top: 28px;
  align-items: center;
  gap: 16px;
}

.pagination-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: #fff;
}

.market-breadcrumbs {
  font-size: 13px;
  margin-bottom: 20px;
}

.empty-state,
.quiet-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.empty-state h2,
.empty-state h3 {
  font-family: inherit;
  font-weight: 650;
  font-size: 24px;
}

/* Gallery, readable product information and a dedicated purchase panel. */
.detail-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 144px;
  min-width: 0;
}

.gallery-stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 24px;
}

.gallery-stage img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  margin: 0;
}

.gallery-stage img[hidden] {
  display: none;
}

.gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbnails button {
  width: 68px;
  height: 68px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-thumbnails button[aria-pressed=true] {
  border: 2px solid var(--link);
}

.gallery-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.detail-copy h1 {
  font-size: 29px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.025em;
}

.product-store-panel {
  padding: 16px;
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

main a.product-store-link {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.product-store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff5d8;
}

.product-store-icon .nav-icon {
  width: 26px;
  height: 26px;
}

.product-store-link strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.product-store-label,
.product-store-visit {
  display: block;
  font-size: 12px;
}

.product-store-label {
  color: var(--muted);
}

.product-store-visit {
  color: var(--link);
  font-weight: 600;
}

.product-message-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.product-message-button .nav-icon {
  width: 20px;
  height: 20px;
}

.product-message-button:hover {
  background: #fff7df;
  border-color: #d8b65b;
}

.detail-description {
  line-height: 1.65;
  margin-top: 24px;
  padding-top: 20px;
}

.purchase-panel {
  background: #fff;
  border: 1px solid #c8ddd1;
  border-radius: var(--radius);
  padding: 22px;
}

.variant-list {
  margin: 0;
}

.variant-list>div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
}

.variant-list>div:first-child {
  border-top: 0;
  padding-top: 0;
}

.variant-list strong {
  font-size: 27px;
  font-weight: 650;
}

.variant-list form .btn {
  width: 100%;
}

.stock-status {
  color: #18703c;
  font-weight: 600;
  font-size: 14px;
}

.delivery-summary {
  background: none;
  padding: 20px 0 0;
  margin: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.delivery-summary h2 {
  font-size: 17px;
}

.delivery-summary p {
  font-size: 13px;
}

.purchase-dock {
  background: #fff;
  border-color: var(--line);
  padding: 12px 0;
  box-shadow: 0 -3px 16px #153b2e0c;
}

.purchase-dock-help {
  display: none;
}

.purchase-dock-summary {
  font-size: 14px;
}

.purchase-dock-form {
  align-items: center;
  gap: 16px;
}

.purchase-dock-actions {
  display: flex;
  gap: 16px;
}

.purchase-dock-field {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
  min-width: 0;
}

.purchase-dock-form .purchase-dock-field label {
  flex-shrink: 0;
  margin: 0;
  padding-left: 12px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--muted);
}

.purchase-dock-field .form-select,
.purchase-dock-field .form-control {
  flex: 1;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  background-color: transparent;
}

.purchase-dock-field .form-select {
  padding: 8px 30px 8px 10px;
  text-align-last: center;
}

.purchase-dock-form .purchase-dock-field .form-control {
  padding: 8px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.purchase-dock-form>.purchase-dock-field:nth-of-type(2) {
  width: 120px;
}

.purchase-dock-form .btn {
  min-width: 120px;
  height: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
}

.purchase-dock-form select {
  max-width: 260px;
}

/* Shared dashboard, account, cart, support and reporting surfaces. */
main .border,
.workspace-panel,
.operations-card,
.admin-overview-section,
.report-summary>article,
.report-summary>div,
.account-content,
.auth-card {
  background: #fff;
  border-color: var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
}

.workspace-panel,
.admin-overview-section {
  padding: 24px;
}

.seller-workspace {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}

.seller-workspace-nav {
  top: 140px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.seller-workspace-nav a {
  border-radius: 7px;
  min-height: 42px;
  font-size: 14px;
  line-height: 1.4;
}

.seller-workspace-nav a:hover {
  background: #f0fbf5;
}

.seller-workspace-nav a[aria-current] {
  background: #ecfaf2;
  color: var(--link);
}

.workspace-menu {
  min-width: 0;
}

.workspace-menu>summary {
  display: none;
}

.workspace-action,
.report-summary>article,
.report-summary>div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: #fff;
}

.workspace-action:hover {
  background: #f3fcf7;
  border-color: #90ddb0;
}

.workspace-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.workspace-action strong {
  color: var(--ink);
  font-size: 26px;
}

.workspace-action>span {
  font-size: 13px;
  line-height: 1.4;
}

.workspace-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operations-links {
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.operations-links .btn {
  justify-content: flex-start;
}

.operations-form {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.operations-form input[type=radio] {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.operations-facts {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 24px;
}

.operations-facts:empty {
  display: none;
}

.metric-notes,
.report-method {
  color: var(--muted);
  background: #eef7f2;
  border-radius: 8px;
  padding: 0 14px;
}

.report-filter-form {
  border: 1px solid var(--line);
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  gap: 16px;
}

.workspace-table,
.table {
  font-size: 14px;
  border-color: var(--line);
}

.table>thead>tr>th,
.workspace-table thead th {
  background: #f1f9f4;
  font-size: 13px;
  font-weight: 650;
  padding: 14px;
}

.table>tbody>tr>td,
.workspace-table td {
  padding: 14px;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f6fcf9;
}

.table-scroll,
.report-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.status-pill,
.status-badge,
.badge {
  font-size: 12px;
  line-height: 1.3;
  border-radius: 6px;
  letter-spacing: 0;
  padding: 5px 8px;
}

.alert,
.workspace-notice {
  border-radius: 10px;
  padding: 16px 20px;
}

.auth-layout {
  display: block;
  max-width: 520px;
  min-height: 480px;
  padding-top: 40px;
}

.auth-intro {
  display: none;
}

.auth-intro h1 {
  font-family: inherit;
  font-size: 40px;
  font-weight: 650;
  line-height: 1.2;
}

.auth-card {
  padding: 32px;
  max-width: none;
}

.account-content {
  padding: 28px;
  min-width: 0;
}

.account-sidebar nav a {
  border-radius: 7px;
  padding: 12px;
  min-height: 44px;
}

.account-sidebar nav a.active {
  background: #ecfaf2;
  color: var(--link);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
}

.cart-item-image {
  width: 120px;
  height: 130px;
  object-fit: cover;
  background: #f8fcfa;
  border-radius: 8px;
}

.checkout-steps {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  counter-reset: checkout;
}

.checkout-steps span {
  border-bottom: 3px solid #d1e5d9;
  padding: 10px 12px;
  color: var(--muted);
  flex: 1;
  text-align: center;
}

.checkout-steps span[aria-current] {
  color: var(--ink);
  font-weight: 700;
  border-color: #d99d22;
  background: #fff8e7;
  border-radius: 8px 8px 0 0;
}

.order-summary {
  position: sticky;
  top: 140px;
}

.order-summary .btn {
  width: 100%;
}

.support-message,
.message-bubble {
  border-radius: 12px;
}

.selling-section {
  margin-top: 8px;
  margin-bottom: 24px;
}

.selling-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.selling-banner-copy {
  min-width: 0;
}

.selling-banner h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.selling-banner p {
  margin: 0;
  font-size: 14px;
}

.selling-banner .btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Activity and operational pages favor compact rows over oversized repeated cards. */
.activity-page {
  max-width: 1240px;
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.list-tabs {
  display: flex;
  gap: 8px;
}

.list-tabs a {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
}

.list-tabs a[aria-current] {
  background: #e8f9ef;
  color: var(--link);
}

.activity-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.notification-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.notification-row:last-child {
  border: 0;
}

.notification-row.is-unread {
  background: #f2fcf6;
  box-shadow: inset 3px 0 0 var(--link);
}

.activity-icon {
  width: 36px;
  height: 36px;
  background: #e7f8ee;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.activity-icon .nav-icon {
  width: 18px;
  height: 18px;
  color: var(--link);
}

.activity-copy h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.activity-copy p {
  margin: 0 0 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.activity-copy .activity-meta {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.activity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-actions .btn {
  padding: 10px 12px;
  font-size: 13px;
}

.compact-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 6px;
}

.compact-record h2 {
  font-size: 17px;
  margin: 0;
}

.compact-record p {
  margin: 0;
  font-size: 13px;
}

.compact-record>p:last-child {
  grid-column: 1/-1;
}

.admin-overview-grid {
  gap: 20px;
  margin: 24px 0;
}

.admin-overview-section h2 {
  font-size: 21px;
}

.admin-overview-section h3 {
  font-size: 17px;
}

.admin-overview-section ul {
  padding-left: 18px;
  font-size: 13px;
  margin-bottom: 0;
}

.admin-overview-section>p {
  margin-bottom: 8px;
}

.admin-attention-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-attention-grid .admin-overview-section {
  padding: 18px;
}

.admin-attention-grid ul {
  margin-top: 12px;
}

.operations-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.operations-card {
  padding: 18px;
}

.operations-card h2 {
  font-size: 17px;
  margin: 0 0 8px;
}

.operations-card p {
  font-size: 13px;
  margin-bottom: 8px;
}

.operations-form {
  gap: 16px;
}

.operations-form>div,
.operations-form>fieldset {
  margin-bottom: 0;
}

.operations-facts>div {
  padding: 10px 0;
  font-size: 14px;
}

.workspace-records {
  margin-top: 12px;
}

.workspace-records li {
  padding: 12px 0;
}

.report-summary strong,
.report-kpis strong {
  font-size: 28px;
}

.report-kpi-label {
  font-size: 14px;
}

.metric-explanation summary {
  font-size: 12px;
  color: var(--muted);
  min-height: 32px;
  padding: 6px 0;
}

.product-reviews-layout {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.8fr);
  gap: 24px;
  align-items: stretch;
}

.review-summary-panel,
.review-results-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.review-summary-panel h3 {
  font-size: 17px;
  margin-bottom: 16px;
}

.review-average {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.review-average small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.review-rating-distribution {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.review-rating-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
}

.review-rating-row span:last-child {
  text-align: right;
  color: var(--muted);
}

.review-rating-row progress {
  appearance: none;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 6px;
  background: #eef5f1;
  overflow: hidden;
}

.review-rating-row progress::-webkit-progress-bar {
  background: #eef5f1;
  border-radius: 6px;
}

.review-rating-row progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 6px;
}

.review-rating-row progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 6px;
}

.review-write-button {
  display: block;
  width: 100%;
}

.review-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.review-filter-field {
  flex: 1 1 140px;
  min-width: 0;
}

.review-filter-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.review-filter-field select {
  width: 100%;
  min-height: 42px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #f8fbf9;
}

.review-media-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.review-media-filter:hover {
  background: #fff7df;
  border-color: #d8b65b;
}

.review-media-filter:has(input:checked) {
  background: #fff5d8;
  border-color: #d8b65b;
}

.review-media-filter input {
  margin: 0;
  flex-shrink: 0;
}

.review-filter-actions {
  display: flex;
  gap: 8px;
}

.review-filter-actions .btn {
  min-height: 42px;
  font-size: 13px;
  padding: 8px 12px;
}

.review-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  min-height: 200px;
  text-align: center;
  background: #f8fbf9;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.review-empty-state .nav-icon {
  width: 32px;
  height: 32px;
  color: var(--muted);
  margin-bottom: 14px;
}

.review-empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.review-empty-state p {
  margin: 0;
}

.review-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
}

.review-results>article {
  border-radius: 10px;
  background: #fff;
}

.review-results-panel {
  display: flex;
  flex-direction: column;
}

.review-results {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.review-results .review-empty-state {
  flex: 1;
}

.review-filter-toolbar {
  flex-shrink: 0;
}

@media (max-width: 900px) {

  .product-reviews-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {

  .review-summary-panel,
  .review-results-panel {
    padding: 16px;
  }

  .review-filter-actions {
    width: 100%;
  }

  .review-filter-actions .btn {
    flex: 1;
  }
}

.review-extras {
  margin: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review-extras>summary {
  font-size: 15px;
  font-weight: 600;
}

.review-extras section {
  padding: 8px 0 16px;
}

@media (min-width: 901px) {

  .operations-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-form>fieldset,
  .operations-form>button,
  .operations-form>div:has(.guided-editor),
  .operations-form>div:has(textarea),
  .operations-form>div:has(.errorlist),
  .operations-form>h2 {
    grid-column: 1/-1;
  }
}

.site-footer {
  padding: 0 0 16px;
  background: var(--brand-footer);
  color: #fff;
  margin-top: 20px;
  border: 0;
}

.back-to-top {
  display: block;
  text-align: center;
  background: var(--brand-navigation);
  padding: 10px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.back-to-top:hover {
  background: var(--brand-footer-hover);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 16px;
}

.footer-brand span {
  margin-top: 5px;
}

.footer-inner p {
  margin: 0;
  line-height: 1.5;
}

.footer-inner>div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13px;
}

.footer-inner a,
.footer-inner a:hover {
  color: #fff;
}

.footer-inner p,
.footer-brand span {
  color: #c9d9ce;
  font-size: 12px;
}

.footer-inner details {
  grid-column: 1/-1;
  font-size: 12px;
  color: #c9d9ce;
}

@media (min-width: 901px) {

  .catalog-filters>summary {
    pointer-events: none;
    list-style: none;
  }
}

@media (max-width: 1150px) {

  .shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-orders {
    display: none;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .purchase-panel {
    grid-column: 2;
  }

  .detail-gallery {
    grid-row: 1/3;
  }

  .hero-products {
    gap: 8px;
  }
}

@media (max-width: 900px) {

  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .catalog-filters {
    padding: 12px 20px;
  }

  .catalog-filters .filter-primary,
  .catalog-filters .filter-essentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-workspace-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .seller-workspace-nav .eyebrow {
    width: 100%;
  }

  .workspace-menu>summary {
    display: list-item;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 650;
  }

  .workspace-menu[open]>summary {
    margin-bottom: 12px;
  }

  .market-hero-inner {
    gap: 24px;
  }

  .admin-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {

  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header .header-inner {
    min-height: 0;
    padding: 12px 16px;
    gap: 10px;
  }

  .wordmark {
    font-size: 19px;
  }

  .brand-mark {
    font-size: 15px;
    margin-right: 2px;
    padding: 5px;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-link {
    min-width: 44px;
    padding: 8px 4px;
  }

  .shop-navigation {
    padding-left: 16px;
    padding-right: 16px;
    gap: 22px;
  }

  html {
    scroll-padding-top: 160px;
  }

  .section-space {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .section-heading {
    flex-wrap: wrap;
    align-items: center;
  }

  .market-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 28px;
    gap: 28px;
  }

  .market-hero h1 {
    font-size: 35px;
  }

  .market-hero p {
    font-size: 15px;
  }

  .hero-product img {
    aspect-ratio: 1/1;
  }

  .hero-product strong {
    font-size: 10px;
  }

  .hero-product:nth-child(2) {
    transform: none;
  }

  .home-section {
    padding: 20px 16px;
    margin-top: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-tile {
    min-height: 100px;
    padding: 16px;
  }

  .category-tile h3 {
    font-size: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 145px;
    padding: 0;
  }

  .product-card-copy {
    padding: 12px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .product-card .price {
    font-size: 20px;
  }

  .product-card .btn {
    min-height: 44px;
    padding: 8px;
    font-size: 12px;
  }

  .product-card .wishlist-button {
    min-height: 40px;
  }

  .product-list .product-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .product-list .product-card .product-image {
    height: 120px;
    min-height: 0;
  }

  .product-list .product-card-copy {
    padding: 0 8px 0 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .product-list .product-card-actions {
    align-items: flex-end;
  }

  .product-list .product-card-actions>form,
  .product-list .product-card-actions>.btn {
    max-width: 100%;
  }

  .catalog-toolbar {
    font-size: 13px;
  }

  .catalog-layout-switch a {
    font-size: 12px;
    padding: 8px 10px;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .detail-gallery {
    position: static;
    grid-row: auto;
  }

  .purchase-panel {
    grid-column: auto;
  }

  .gallery-stage {
    padding: 16px;
  }

  .gallery-stage img {
    height: 310px;
  }

  .detail-copy h1 {
    font-size: 26px;
  }

  .has-purchase-dock {
    padding-bottom: 190px;
  }

  .purchase-dock-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
  }

  .purchase-dock-form>div {
    width: auto !important;
    max-width: none !important;
  }

  .purchase-dock-form>div:first-of-type {
    max-width: none;
  }

  .purchase-dock-form select {
    max-width: none;
  }

  .purchase-dock-form button {
    min-width: 0;
    width: 100%;
  }

  .purchase-dock-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .purchase-dock-form .purchase-dock-field label {
    padding-left: 8px;
    font-size: 10px;
  }

  .purchase-dock-summary strong {
    max-width: 230px;
  }

  .purchase-dock-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .purchase-dock-inner {
    gap: 8px;
  }

  .operations-form,
  .operations-facts,
  .account-content,
  .workspace-panel {
    padding: 20px;
  }

  .operations-links .btn {
    flex: 1 1 140px;
  }

  .report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .report-summary>article {
    padding: 14px;
  }

  .report-summary strong {
    font-size: 24px;
  }

  .admin-attention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-attention-grid .admin-overview-section {
    padding: 14px;
  }

  .admin-attention-grid h3 {
    font-size: 14px;
  }

  .admin-attention-grid p,
  .admin-attention-grid a,
  .admin-attention-grid li {
    font-size: 12px;
  }

  .workspace-action {
    padding: 12px;
    min-height: 74px;
  }

  .workspace-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .report-filter-form {
    gap: 12px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }

  .auth-intro h1 {
    font-size: 30px;
  }

  .auth-card {
    max-width: none;
    padding: 24px;
  }

  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
  }

  .cart-item-image {
    width: 80px;
    height: 100px;
  }

  .checkout-steps {
    gap: 4px;
    font-size: 12px;
  }

  .checkout-steps span {
    padding: 10px 4px;
  }

  .order-summary {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .selling-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }

  .selling-banner h2 {
    font-size: 20px;
  }

  .list-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .notification-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .activity-icon {
    width: 30px;
    height: 30px;
  }

  .activity-actions {
    grid-column: 2;
  }

  .compact-record {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-width: 360px) {

  .wordmark {
    font-size: 17px;
  }

  .brand-mark {
    display: none;
  }

  .header-actions {
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Persistent shopping tab and owned cart drawer; workspaces never render these. */
.floating-cart {
  position: fixed;
  z-index: 1035;
  right: 0;
  top: 52%;
  transform: translateY(-50%);
  width: 88px;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 6px 24px #153b2e26;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}

.floating-cart-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--primary, #ffd267);
  color: #153b2e;
  padding: 12px 6px;
}

.floating-cart-top .nav-icon {
  width: 26px;
  height: 26px;
}

.floating-cart-total {
  display: block;
  padding: 9px 4px;
  background: white;
  color: #153b2e;
  border: 1px solid var(--line);
  border-top: 0;
}

.cart-drawer {
  --bs-offcanvas-width: 470px;
  max-width: 100vw;
}

.cart-drawer .offcanvas-header {
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.cart-drawer .offcanvas-header h2 {
  font-size: 23px;
  margin: 0;
}

.cart-drawer .offcanvas-body {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cart-preview-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.cart-preview-content>.alert {
  margin: 12px 16px 0;
}

.cart-preview-items {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 0 20px;
}

.cart-preview-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cart-preview-photo img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: #f8fcfa;
  border-radius: 6px;
}

.cart-preview-info {
  min-width: 0;
}

.cart-preview-info h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 4px;
}

.cart-preview-option {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}

.cart-preview-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-quantity {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.cart-quantity button {
  background: #f8fcfa;
  border: 0;
  min-width: 36px;
  min-height: 40px;
  font-size: 18px;
  padding: 4px;
}

.cart-quantity input {
  width: 43px;
  min-height: 40px;
  padding: 4px;
  text-align: center;
  border: 0;
  border-radius: 0;
  -moz-appearance: textfield;
}

.cart-quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.cart-preview-remove,
.cart-preview-update {
  background: none;
  border: 0;
  font-size: 12px;
  min-height: 40px;
  padding: 5px;
  color: var(--link);
}

.cart-preview-price {
  grid-column: 2;
  font-size: 15px;
  margin-top: 8px;
}

.cart-preview-warning {
  color: #9b311d;
  font-size: 12px;
  margin: 6px 0;
}

.cart-preview-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: white;
}

.cart-preview-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
}

.cart-preview-footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 12px;
}

.cart-preview-footer .btn {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.cart-preview-empty {
  padding: 32px 12px;
  text-align: center;
}

.cart-preview-empty h3 {
  font-size: 20px;
}

.cart-preview-empty p {
  font-size: 14px;
  color: var(--muted);
}

.cart-preview-empty .btn {
  margin: 4px;
}

@media (max-width: 600px) {

  .floating-cart {
    top: auto;
    bottom: 100px;
    transform: none;
    width: 76px;
    font-size: 11px;
  }

  .floating-cart-top {
    padding: 8px 4px;
  }

  .floating-cart-total {
    padding: 7px 3px;
  }

  .cart-drawer .offcanvas-header {
    padding: 16px;
  }

  .cart-preview-items {
    padding: 0 16px;
  }

  .cart-preview-footer {
    padding: 12px 16px 16px;
  }
}

/* Hearts reflect confirmed wishlist membership, including the initial page render. */
.wishlist-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.wishlist-button.is-saved,
.product-card .wishlist-button.is-saved {
  color: #b42338;
}

.wishlist-button.is-saved .nav-icon {
  fill: currentColor;
}

.wishlist-button:disabled {
  opacity: .6;
  cursor: wait;
}

.wishlist-feedback {
  display: block;
  font-size: 12px;
  color: #9b311d;
  margin-top: 6px;
}

/* Category scope and accessible product-name suggestions share the search field. */
.site-header .header-search {
  position: relative;
  overflow: visible;
}

.site-header .header-search select {
  field-sizing: content;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  height: 46px;
  min-width: 70px;
  padding: 0 24px 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 6px 0 0 6px;
  background-color: #eef5f1;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: clip;
}

.site-header .header-search input {
  min-width: 0;
  flex: 1;
}

.site-header .header-search>button {
  border-radius: 0 6px 6px 0;
}

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1040;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px #153b2e26;
  max-height: min(340px, 55vh);
  overflow-y: auto;
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestions li {
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 16px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.search-suggestions li:hover,
.search-suggestions li[aria-selected=true] {
  background: #edfaf2;
  color: #236342;
}

@media (max-width: 600px) {

  .site-header .header-search select {
    width: auto;
    max-width: none;
    padding-left: 8px;
    font-size: 10.5px;
  }

  .site-header .header-search input {
    padding-left: 10px;
    padding-right: 4px;
    font-size: 14px;
  }

  .header-search>button {
    width: 44px;
  }
}

/* Purchase-backed stars and compact customer-facing catalogue controls. */
.product-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  margin: 0 0 12px;
  text-decoration: none;
}

.rating-stars {
  position: relative;
  display: inline-block;
  color: #c3cec8;
  font-size: 19px;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.rating-stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #c5680a;
}

.rating-value {
  font-weight: 700;
  color: var(--ink);
}

.rating-count {
  color: #236342;
}

.product-rating-empty .rating-count {
  color: var(--muted);
}

.price-filter,
.rating-filter {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 8px 0 16px;
}

.price-filter legend,
.rating-filter legend {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.price-range-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.price-slider {
  position: relative;
  height: 44px;
  margin-bottom: 12px;
}

.price-slider[hidden] {
  display: none;
}

.price-slider-track {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 19px;
  height: 6px;
  background: #c7cbd0;
  border-radius: 3px;
  pointer-events: none;
}

.price-slider-selected {
  position: absolute;
  left: var(--price-low, 0%);
  right: calc(100% - var(--price-high, 100%));
  height: 100%;
  background: #367052;
  border-radius: inherit;
}

.catalog-filters .price-slider input[type=range] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 44px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  background: transparent;
  appearance: none;
  pointer-events: none;
}

.price-slider input::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.price-slider input::-webkit-slider-thumb {
  appearance: none;
  width: 30px;
  height: 30px;
  border: 7px solid #367052;
  background: white;
  border-radius: 50%;
  margin-top: -12px;
  box-shadow: 0 2px 8px #153b2e30;
  pointer-events: auto;
  cursor: grab;
}

.price-slider input::-moz-range-track {
  height: 6px;
  background: transparent;
}

.price-slider input::-moz-range-thumb {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border: 7px solid #367052;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px #153b2e30;
  pointer-events: auto;
  cursor: grab;
}

.price-slider input:focus-visible {
  outline: 2px solid #236342;
  outline-offset: 3px;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-inputs>div {
  min-width: 0;
}

.price-inputs label {
  font-size: 12px;
}

.catalog-filters .price-inputs input {
  width: 100%;
  min-width: 0;
  padding: 8px;
}

.price-presets {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  font-size: 13px;
}

.price-presets a {
  padding: 3px 0;
  text-decoration: none;
}

.rating-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  font-size: 13px;
  cursor: pointer;
}

.catalog-filters .rating-choice input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}

.filter-stars {
  color: #c5680a;
  font-size: 19px;
  letter-spacing: 1px;
}

/* Navbar actions share typography, hit areas and icon alignment. The cart count
   stays visible above the basket, including zero and multi-digit quantities. */
.site-header .header-actions {
  gap: 10px;
  flex-shrink: 0;
}

.site-header .header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 600 14px/1.2 var(--bs-body-font-family);
  min-height: 48px;
  padding: 8px 5px;
}

.site-header .header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 38px;
}

.site-header .header-icon .nav-icon {
  width: 29px;
  height: 29px;
}

.site-header .header-label {
  display: inline;
}

.site-header .header-cart-icon {
  width: 48px;
}

.site-header .header-cart-icon .nav-icon {
  width: 38.88px;
  height: 30.78px;
  margin-top: 7px;
}

.site-header .header-cart-count {
  display: block;
  position: absolute;
  top: -5px;
  left: 14px;
  right: 0;
  text-align: center;
  color: #ffad45;
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
}

@media (min-width: 1251px) {

  .site-header .header-inner:not(.workspace-header-inner) {
    gap: 16px;
  }

  .site-header .header-inner:not(.workspace-header-inner) .header-actions {
    gap: 4px;
  }

  .site-header .header-inner:not(.workspace-header-inner) .header-action {
    gap: 4px;
    padding-left: 3px;
    padding-right: 3px;
  }

}

@media (max-width: 1250px) and (min-width: 768px) {

  .site-header .header-inner {
    gap: 14px;
    flex-wrap: wrap;
  }

  .site-header .header-search {
    order: 3;
    flex-basis: 100%;
    margin-bottom: 12px;
  }

  .site-header .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 767px) {

  .site-header .header-inner {
    grid-template-columns: 1fr;
  }

  .site-header .header-search {
    grid-row: 3;
  }

  .site-header .header-actions {
    grid-column: 1/-1;
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }

  .site-header .header-action {
    flex-direction: column;
    gap: 2px;
    padding: 5px 2px;
    font-size: 11px;
    min-width: 48px;
  }

  .site-header .header-action .header-label {
    display: inline;
  }

  .site-header .header-action .header-icon {
    display: inline-flex;
  }

  .site-header .header-action .header-cart-count {
    display: block;
  }

  .site-header .header-icon {
    height: 34px;
  }
}

/* Keep a small restore button on screen while the shopping shortcut slides away. */
.floating-cart-control {
  --cart-tab-width: 88px;
  position: fixed;
  z-index: 1035;
  right: 0;
  top: 52%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.floating-cart-control .floating-cart {
  position: relative;
  top: auto;
  bottom: auto;
  right: auto;
  transform: none;
  width: var(--cart-tab-width);
  transition: width .22s ease, opacity .22s ease;
  white-space: nowrap;
}

.floating-cart-toggle {
  width: 18px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 5px 0 0 5px;
  background: #fff;
  color: var(--ink);
  box-shadow: -3px 3px 12px #153b2e15;
  font-size: 18px;
  line-height: 1;
}

.floating-cart-toggle:hover {
  background: #f1fbf5;
}

.floating-cart-control.is-collapsed .floating-cart {
  width: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

@media (max-width: 767px) {

  .floating-cart-control {
    --cart-tab-width: 76px;
    top: auto;
    bottom: 100px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .floating-cart-control .floating-cart {
    transition: none;
  }
}

/* Six category collections per desktop row, each with separate product cards. */
.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.category-showcase {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f7f4;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
}

.category-showcase h3 {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.3;
  min-height: 2.6em;
}

.category-showcase h3 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.category-showcase h3 span {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.category-showcase-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.category-showcase-product {
  display: flex;
  flex-direction: column;
  padding: 7px;
  background: #fff;
  border: 1px solid #e0e7e1;
  border-radius: 10px;
  box-shadow: 0 2px 5px #153b2e06;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

/* Contain products within individual white cards without cropping packaging. */
.category-showcase-photo {
  height: clamp(66px, 5.2vw, 82px);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 6px;
}

.category-showcase-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.category-showcase-product>span {
  display: block;
  min-height: 1.35em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-showcase-product:hover span,
.category-showcase h3 a:hover {
  color: var(--link);
  text-decoration: underline;
}

.category-showcase-browse {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 5px 0;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.category-showcase-browse svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.category-showcase-browse:hover {
  color: #111;
  text-decoration: underline;
}

@media (max-width: 1199px) {

  .category-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .category-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {

  .category-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-showcase {
    padding: 14px;
  }
}
