/* Reference: 1776217.png — warm paper, peach curves, charcoal, clear edges.
 * Presentation only. Existing content, photographs, controls and handlers stay intact.
 * Keep the main element in selectors so this wins over the lazy-loaded base theme.
 */
main.goodseed-marketplace-theme {
  --paper: #f5f0ea;
  --paper-light: #fffcf8;
  --peach: #dfb7a6;
  --peach-light: #efdbcf;
  --charcoal: #303132;
  --warm-muted: #726862;
  --warm-line: #dcd1c8;
  --marketplace-forest: #303132;
  --marketplace-brand: #4b4541;
  --marketplace-leaf: #b67e66;
  --marketplace-teal: #8a6251;
  --marketplace-mint: #dcd1c8;
  --marketplace-orange: #dfb7a6;
  --marketplace-ivory: #fffcf8;
  --marketplace-body: #726862;
  background: linear-gradient(135deg, #e8e2dc 0%, #f5f0ea 38%, #eee7df 100%);
  color: var(--charcoal);
  scrollbar-color: #a49a92 #eee7df;
}

/* Reuse the original decorative layers without adding a new image. */
main.goodseed-marketplace-theme > [aria-hidden="true"] > div:first-child {
  background: #d6b09d;
  opacity: .2;
}
main.goodseed-marketplace-theme > [aria-hidden="true"] > div:last-child {
  background: #9e958e;
  opacity: .16;
}

main.goodseed-marketplace-theme .marketplace-header-surface {
  border-color: rgb(110 95 82 / 15%);
  background: rgb(249 245 239 / 92%);
  box-shadow: 0 4px 24px rgb(66 53 44 / 5%);
}
main.goodseed-marketplace-theme .marketplace-header-surface nav {
  font-weight: 500;
}

main.goodseed-marketplace-theme .marketplace-hero-shell {
  isolation: isolate;
  margin-top: 24px;
  margin-bottom: 30px;
}
main.goodseed-marketplace-theme .marketplace-hero-shell::before {
  inset: 0 -12px;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 30px;
  background:
    radial-gradient(ellipse 48% 115% at 108% -5%, #dfb9a7 0%, #e9ccbb 61%, transparent 61.3%),
    linear-gradient(115deg, #fbf7f1 0%, #f2ebe4 100%);
  box-shadow: 0 18px 44px rgb(66 53 44 / 9%), inset 0 0 0 7px rgb(255 255 255 / 24%);
}
main.goodseed-marketplace-theme .marketplace-hero-shell h1 {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 700 !important;
  letter-spacing: -.035em;
  line-height: 1.23;
}
main.goodseed-marketplace-theme .marketplace-hero-shell h1::before {
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 24px;
  background: var(--charcoal);
  content: "";
}
main.goodseed-marketplace-theme .marketplace-hero-shell h1 > span {
  color: #76645b;
  text-wrap: wrap;
}
main.goodseed-marketplace-theme .marketplace-hero-shell > div > p {
  font-weight: 400;
  line-height: 1.85;
}
main.goodseed-marketplace-theme .marketplace-search-shell {
  border-color: var(--warm-line);
  background: var(--paper-light);
  box-shadow: 0 8px 22px rgb(77 61 49 / 7%);
}
main.goodseed-marketplace-theme .marketplace-search-shell:focus-within {
  border-color: #a16e58;
  box-shadow: 0 0 0 3px rgb(182 126 102 / 18%);
}
main.goodseed-marketplace-theme [data-testid="marketplace-global-search"]::placeholder {
  color: #82756a;
}

/* The circular hero photograph and both original photo collections are retained. */
main.goodseed-marketplace-theme .marketplace-hero-shell aside > div:first-child {
  border: 6px solid #f7f2ec;
  outline: 1px solid rgb(110 95 82 / 20%);
  box-shadow: 0 22px 30px rgb(55 46 38 / 16%);
}
main.goodseed-marketplace-theme .marketplace-hero-shell aside > div:nth-child(3) {
  border-color: rgb(255 255 255 / 80%);
  background: #e4d9cd;
  box-shadow: 0 12px 22px rgb(61 49 39 / 14%);
}
main.goodseed-marketplace-theme .marketplace-hero-shell aside > div:has(> div > button) {
  border: 1px solid rgb(255 255 255 / 95%);
  background: rgb(250 246 240 / 94%);
  box-shadow: 0 15px 35px rgb(61 49 39 / 17%), 0 0 0 5px rgb(255 255 255 / 24%);
}

main.goodseed-marketplace-theme .marketplace-category-band {
  padding: 24px 16px 18px;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 26px;
  background: rgb(255 252 248 / 67%);
  box-shadow: 0 12px 35px rgb(66 53 44 / 5%);
}
main.goodseed-marketplace-theme .marketplace-category-band > h2,
main.goodseed-marketplace-theme #marketplace-shops h2,
main.goodseed-marketplace-theme #marketplace-listings h2 {
  font-weight: 650;
  letter-spacing: -.015em;
}
main.goodseed-marketplace-theme .marketplace-category-card,
main.goodseed-marketplace-theme .marketplace-card-surface {
  border-color: var(--warm-line) !important;
  background: var(--paper-light) !important;
  box-shadow: 0 6px 18px rgb(66 53 44 / 6%);
}
main.goodseed-marketplace-theme .marketplace-category-footer {
  border-color: var(--warm-line);
  background: linear-gradient(180deg, #fffcf8, #f0e5dc) !important;
}
main.goodseed-marketplace-theme .marketplace-category-card:hover {
  border-color: #b67e66 !important;
  box-shadow: 0 10px 25px rgb(66 53 44 / 12%);
}

main.goodseed-marketplace-theme .marketplace-cloud-garden-card {
  border-color: var(--warm-line);
  background: var(--paper-light);
  box-shadow: 0 8px 24px rgb(66 53 44 / 7%);
}
main.goodseed-marketplace-theme .marketplace-cloud-garden-card:hover {
  border-color: #b67e66;
  box-shadow: 0 12px 30px rgb(66 53 44 / 12%);
}
main.goodseed-marketplace-theme .marketplace-cloud-garden-placeholder {
  background: linear-gradient(140deg, #f0e3d9, #e4d7cc);
  color: #726862;
}
main.goodseed-marketplace-theme .marketplace-cloud-garden-placeholder b,
main.goodseed-marketplace-theme .marketplace-cloud-garden-copy > strong {
  color: var(--charcoal);
}
main.goodseed-marketplace-theme .marketplace-cloud-garden-copy > span,
main.goodseed-marketplace-theme .marketplace-cloud-garden-placeholder em {
  color: var(--warm-muted);
}
main.goodseed-marketplace-theme #marketplace-trust > div {
  border-color: var(--warm-line);
  background: linear-gradient(110deg, #f9f3ec, #f0e2d8);
  box-shadow: inset 0 0 0 4px rgb(255 255 255 / 28%);
}

/* The dark lower corner of the reference becomes the network panel. */
main.goodseed-marketplace-theme .marketplace-network-panel {
  border-color: #5b5550 !important;
  background:
    radial-gradient(ellipse 34% 140% at 110% 125%, #b98c76 0%, #b98c76 62%, transparent 62.5%),
    linear-gradient(125deg, #303132, #444342) !important;
  box-shadow: 0 16px 40px rgb(45 42 38 / 16%);
}
main.goodseed-marketplace-theme .marketplace-network-panel p,
main.goodseed-marketplace-theme .marketplace-network-panel .text-seed-100,
main.goodseed-marketplace-theme .marketplace-network-panel .text-seed-200,
main.goodseed-marketplace-theme .marketplace-network-panel [class*="text-[#"] {
  color: #e9d9cc;
}
main.goodseed-marketplace-theme .marketplace-network-panel h3 {
  color: #fffcf8;
}
main.goodseed-marketplace-theme .marketplace-network-panel [aria-label="ขั้นตอนลงทะเบียนสวน"] span {
  background: #dfb7a6;
  color: #303132;
}

main.goodseed-marketplace-theme .marketplace-catalog-search > span,
main.goodseed-marketplace-theme .marketplace-cloud-product-count {
  color: var(--warm-muted) !important;
}
main.goodseed-marketplace-theme .marketplace-catalog-search > input {
  border-color: var(--warm-line);
  background: var(--paper-light);
  color: var(--charcoal);
}
main.goodseed-marketplace-theme .marketplace-catalog-search > input:focus {
  border-color: #a16e58;
  box-shadow: 0 0 0 3px rgb(182 126 102 / 18%);
}
main.goodseed-marketplace-theme .marketplace-cloud-product-card {
  --product-ink: #303132;
  --product-muted: #726862;
  --product-line: #ded2c7;
  --product-peach: #ead1c2;
  --product-soft: #f0e8df;
  border-color: var(--product-line) !important;
  background: #fffcf8 !important;
  box-shadow: 0 10px 28px rgb(66 53 44 / 8%) !important;
}
main.goodseed-marketplace-theme .marketplace-cloud-product-card > img {
  box-sizing: border-box;
  border: 11px solid #ead1c2;
}
main.goodseed-marketplace-theme .marketplace-cloud-product-card-body header span,
main.goodseed-marketplace-theme .marketplace-cloud-product-card-body header em {
  background: #eee1d6;
  color: #755542;
}
main.goodseed-marketplace-theme .marketplace-cloud-product-card-body > section {
  border-color: var(--warm-line);
}
main.goodseed-marketplace-theme .marketplace-cloud-product-card-body > section strong,
main.goodseed-marketplace-theme .marketplace-cloud-product-card-body > footer b {
  color: var(--charcoal);
}
main.goodseed-marketplace-theme .marketplace-cloud-product-card-body > section small,
main.goodseed-marketplace-theme .marketplace-cloud-product-card-body > footer small {
  color: var(--warm-muted);
}
main.goodseed-marketplace-theme .marketplace-card-specs dt,
main.goodseed-marketplace-theme .marketplace-card-category {
  color: #795642;
}

main.goodseed-marketplace-theme .marketplace-footer-surface {
  border-color: var(--warm-line);
  background: #e9e0d7;
}
main.goodseed-marketplace-theme .text-seed-950,
main.goodseed-marketplace-theme .text-seed-900 { color: var(--marketplace-forest); }
main.goodseed-marketplace-theme .text-seed-800,
main.goodseed-marketplace-theme .text-seed-700 { color: var(--marketplace-brand); }
main.goodseed-marketplace-theme .text-seed-600 { color: var(--marketplace-body); }
main.goodseed-marketplace-theme .text-seed-500,
main.goodseed-marketplace-theme .text-seed-400 { color: var(--marketplace-teal); }
main.goodseed-marketplace-theme .bg-seed-100 { background-color: #eee1d6; }
main.goodseed-marketplace-theme .bg-seed-50 { background-color: #f6ede5; }
main.goodseed-marketplace-theme .border-seed-100,
main.goodseed-marketplace-theme .border-seed-200 { border-color: var(--marketplace-mint); }
main.goodseed-marketplace-theme .ring-seed-100,
main.goodseed-marketplace-theme .ring-seed-200 { --tw-ring-color: rgb(182 126 102 / 22%); }
main.goodseed-marketplace-theme .hover\:bg-seed-50:hover,
main.goodseed-marketplace-theme .hover\:bg-seed-100:hover { background-color: #efdfd2; }
main.goodseed-marketplace-theme::-webkit-scrollbar-track { background: #eee7df; }
main.goodseed-marketplace-theme::-webkit-scrollbar-thumb {
  border-color: #eee7df;
  background: #a49a92;
}

/* Preserve original action button appearance, spacing and all click targets. */
main.goodseed-marketplace-theme button:not(.marketplace-category-card):not(.marketplace-cloud-garden-card) {
  --marketplace-forest: #123d2b;
  --marketplace-brand: #1f7048;
  --marketplace-leaf: #55a95a;
  --marketplace-teal: #2fa59b;
  --marketplace-mint: #bfe8d0;
  --marketplace-orange: #f39a25;
  --marketplace-body: #386650;
}
main.goodseed-marketplace-theme button.bg-seed-50 { background-color: #eff9f3; }
main.goodseed-marketplace-theme button.text-seed-950 { color: #123d2b; }
main.goodseed-marketplace-theme button.text-seed-600 { color: #386650; }
main.goodseed-marketplace-theme button.hover\:bg-seed-50:hover,
main.goodseed-marketplace-theme button.hover\:bg-seed-100:hover { background-color: #bfe8d06b; }

/* Public detail dialogs are appended to body by the existing storefront. */
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-overlay,
body:has(main.goodseed-marketplace-theme) .marketplace-cloud-garden-detail {
  background: rgb(48 45 42 / 60%);
}
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-card,
body:has(main.goodseed-marketplace-theme) .marketplace-cloud-garden-detail > section {
  border-color: #ded2c7;
  background: #fffcf8;
  color: #303132;
  box-shadow: 0 30px 90px rgb(48 45 42 / 25%);
}
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-hero > div {
  background: linear-gradient(130deg, #f5ece3, #eed9c9);
}
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-hero p {
  color: #8a6251;
}
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-hero span,
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-specs small,
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-full article small,
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-full > p,
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-full > small {
  color: #726862;
}
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-specs > div,
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-full,
body:has(main.goodseed-marketplace-theme) .marketplace-cloud-detail-products article {
  border-color: #ded2c7;
}
body:has(main.goodseed-marketplace-theme) .marketplace-product-detail-full {
  background: #f5eee7;
}

@media (max-width: 639px) {
  main.goodseed-marketplace-theme .marketplace-hero-shell { margin-top: 14px; margin-bottom: 22px; }
  main.goodseed-marketplace-theme .marketplace-hero-shell::before {
    inset-inline: -6px;
    border-radius: 24px;
    background:
      radial-gradient(ellipse 100% 55% at 115% 100%, #dfb9a7 0%, #e9ccbb 61%, transparent 61.4%),
      linear-gradient(115deg, #fbf7f1, #f2ebe4);
  }
  main.goodseed-marketplace-theme .marketplace-hero-shell h1 { font-size: clamp(1.9rem, 7.6vw, 2.4rem); }
  main.goodseed-marketplace-theme .marketplace-hero-shell h1::before { margin-bottom: 18px; }
  main.goodseed-marketplace-theme .marketplace-category-band { padding: 20px 12px 14px; }
}
