/* ==========================================================================
   Team Seeds design system (values taken from the teamseeds.com Divi build)
   Shared by every public page. Plain CSS so it does not depend on the
   Tailwind build; Tailwind utilities can still be combined with it.
   ========================================================================== */

/* Self-hosted fonts: Plus Jakarta Sans (body/UI) + Poppins (headings). */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/jakarta/jakarta-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/jakarta/jakarta-var-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('../fonts/jakarta/jakarta-var-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins/poppins-700.woff2') format('woff2'); }

:root {
  /* Every colour below is taken from teamseeds.com (Divi customizer + page CSS). */
  --ts-green: #068f3f;          /* primary: links, buttons, headings, top bar, footer, cards */
  --ts-purple: #2c1678;         /* secondary: menu text, button hover, slider controls */
  --ts-form-green: rgba(26,168,50,0.88); /* contact form fields */
  --ts-text: #666;              /* body text */
  --ts-text-muted: #808080;     /* italic intro copy */
  --ts-heading: #333;           /* headings / strong */
  --ts-grey-bg: #ebebeb;        /* FEATURED PRODUCTS section */
  --ts-field-bg: #eee;          /* Divi form field background */
  --ts-field-text: #4e4e4e;     /* Divi form field text */
  --ts-border: #ddd;
  --ts-shadow: rgba(0,0,0,.1);
  --ts-danger: #cf2e2e;         /* site palette "vivid red" */
  --ts-warning: #fcb900;        /* site palette "vivid amber" */
  --ts-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ts-font-heading: 'Poppins', 'Plus Jakarta Sans', system-ui, Helvetica, Arial, sans-serif;
  --ts-font-banner: 'Poppins', 'Plus Jakarta Sans', system-ui, Helvetica, Arial, sans-serif;
  --ts-font-lato: 'Plus Jakarta Sans', system-ui, Helvetica, Arial, sans-serif;
}

/* ── Base ────────────────────────────────────────────────────────────── */
.ts-page { font-family: var(--ts-font-body); font-size: 15px; line-height: 1.75; color: var(--ts-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.ts-container { width: 80%; max-width: 1080px; margin-left: auto; margin-right: auto; }
@media (max-width: 479px) { .ts-container { width: 90%; } }
.ts-section { background: #fff; padding: 20px 0 50px; }
@media (min-width: 981px) { .ts-section { padding-bottom: 4%; } }
.ts-section--grey { background: var(--ts-grey-bg); padding: 4% 0; }

/* ── Headings + divider ──────────────────────────────────────────────── */
.ts-h2 { font-family: var(--ts-font-heading); font-size: 28px; line-height: 1.25; letter-spacing: -.01em; padding-bottom: 10px; font-weight: 700; color: var(--ts-green); }
.ts-h3 { font-family: var(--ts-font-heading); font-size: 22px; line-height: 1.25; padding-bottom: 10px; font-weight: 700; color: var(--ts-green); }
.ts-h4 { font-family: var(--ts-font-heading); font-size: 18px; line-height: 1.3; padding-bottom: 10px; font-weight: 600; color: var(--ts-heading); }
.ts-divider { height: 4px; border-top: 3px solid var(--ts-green); max-width: 35%; margin-bottom: 30px; }
@media (min-width: 768px) { .ts-divider { max-width: 25%; } }
@media (min-width: 981px) { .ts-divider { max-width: 13%; margin-bottom: 4.242%; } }
.ts-center { text-align: center; }
.ts-center .ts-divider { margin-left: auto; margin-right: auto; }
.ts-muted { color: var(--ts-text-muted); }

/* ── Page banner (fullwidth header) ─────────────────────────────────── */
.ts-banner { background-size: cover; background-position: center; background-color: var(--ts-heading); padding: 5px 0; }
@media (min-width: 768px) { .ts-banner { padding: 50px 0; } }
@media (min-width: 981px) { .ts-banner { padding: 0; } }
.ts-banner__inner { padding: 50px 0; }
.ts-banner__text { margin: 20px 2%; padding: 10px 10px 10px 0; text-align: left; }
@media (min-width: 768px) { .ts-banner__text { margin: 0; } }
.ts-banner h1 { font-family: var(--ts-font-banner); font-weight: 700; color: #fff; font-size: 30px; line-height: 1.2; letter-spacing: .01em; padding-bottom: 10px; text-transform: uppercase; }
.ts-banner p { color: #fff; text-transform: uppercase; }
.ts-banner a { color: var(--ts-green); text-decoration: none; }
.ts-banner a:hover { opacity: .8; }

/* ── Two-column layout with PRODUCT CATEGORY sidebar ─────────────────── */
@media (min-width: 981px) {
  .ts-cols { display: flex; column-gap: 5.5%; }
  .ts-cols__main { width: 64.833%; min-width: 0; }
  .ts-cols__side { width: 29.6667%; }
}
.ts-cols__side { margin-top: 30px; }
@media (min-width: 981px) { .ts-cols__side { margin-top: 0; } }
.ts-side-title { margin-bottom: 8px; background: var(--ts-green); border-radius: 6px; padding: 8px 14px; text-align: center; color: #fff; font-family: var(--ts-font-banner); font-size: 15px; letter-spacing: 1px; }
.ts-side-item { display: flex; align-items: center; gap: 10px; margin: 0; padding: 5px 8px; border-radius: 6px; }
.ts-side-item:hover, .ts-side-item.is-current { background: var(--ts-field-bg); }
.ts-side-item__icon { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--ts-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ts-side-item__icon svg { width: 11px; height: 11px; }
.ts-side-item h4 { flex: 1; text-align: left; font-family: var(--ts-font-heading); font-size: 14px; line-height: 1.25; font-weight: 500; letter-spacing: .4px; padding: 0; margin: 0; }
.ts-side-item a { color: var(--ts-green); text-decoration: none; transition: opacity .3s; }
.ts-side-item a:hover, .ts-side-item.is-current a { opacity: .75; }
.ts-side-item.is-current h4 { font-weight: 700; }
/* Desktop: the list scrolls inside its own box and follows the page, so it never makes the page taller. */
@media (min-width: 981px) {
  .ts-cols__side { align-self: flex-start; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
  .ts-side-title { position: sticky; top: 0; z-index: 1; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.ts-button { position: relative; display: inline-block; color: #fff; background: var(--ts-green); border: 0; border-radius: 3px; font-size: 18px; line-height: 1.7em; padding: .3em 1em; text-decoration: none; cursor: pointer; transition: all .3s ease; font-family: inherit; }
.ts-button::after { content: ''; position: absolute; right: .55em; top: 50%; width: .45em; height: .45em; margin-top: -.25em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: 0; transition: all .2s; }
.ts-button:hover { background: var(--ts-purple); padding: .3em 2em .3em .7em; color: #fff; }
.ts-button:hover::after { opacity: 1; }
.ts-button--purple { background: var(--ts-purple); }
.ts-button--purple:hover { background: var(--ts-green); }
.ts-button--sm { font-size: 14px; }
.ts-button--block { display: block; width: 100%; text-align: center; }
.ts-button--block:hover { padding: .3em 1em; }
.ts-button--block::after { display: none; }
.ts-button:disabled, .ts-button[aria-disabled="true"] { background: #999; cursor: not-allowed; padding: .3em 1em; }
.ts-button:disabled::after { display: none; }
.ts-button--outline { background: #fff; color: var(--ts-green); box-shadow: inset 0 0 0 2px var(--ts-green); }
.ts-button--outline:hover { background: var(--ts-green); color: #fff; }

/* ── Product / crop cards (FEATURED PRODUCTS style) ──────────────────── */
.ts-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 768px) { .ts-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 981px) { .ts-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 479px) { .ts-card-grid { gap: 14px; } }
.ts-card { position: relative; isolation: isolate; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ts-border); border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.12); overflow: hidden; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.ts-card:hover, .ts-card:focus-visible { transform: translateY(-5px); border-color: var(--ts-green); box-shadow: 0 14px 28px rgba(0,0,0,.2); }
/* Catalogue photos are mostly portrait (~0.78-0.84), so a 4:5 frame filled edge-to-edge shows them almost whole.
   Landscape photos (added by the script in base.html) are shown whole with `contain` instead of being cropped. */
.ts-card__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: var(--ts-field-bg); transition: transform .4s ease; }
.ts-card__img.is-wide { object-fit: contain; object-position: center; }
.ts-card__ph { width: 100%; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; background: var(--ts-field-bg); color: var(--ts-green); font-size: 40px; font-weight: 800; font-family: var(--ts-font-heading); }
.ts-card__title { flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ts-green); color: #fff; font-family: var(--ts-font-heading); font-weight: 600; font-size: 15px; line-height: 1.3em; text-align: left; padding: 14px 16px; text-transform: uppercase; letter-spacing: .06em; transition: background .3s ease; }
.ts-card__title::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23068f3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 14px 14px no-repeat; transition: transform .3s ease; }
.ts-card:hover .ts-card__img { transform: scale(1.04); }
.ts-card:hover .ts-card__title { background: var(--ts-purple); }
.ts-card:hover .ts-card__title::after { transform: translateX(4px); }

/* Category listing intro (products page) */
.ts-intro { max-width: 860px; margin: 8px auto 36px; text-align: center; font-family: var(--ts-font-body); font-size: 16px; line-height: 1.8; color: var(--ts-text); }
.ts-intro p { padding-bottom: 0; }
@media (max-width: 479px) { .ts-intro { font-size: 14px; margin-bottom: 24px; text-align: left; } }

/* ── Shop product tiles ──────────────────────────────────────────────── */
.ts-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ts-prod { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ts-border); border-radius: 8px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.ts-prod:hover { box-shadow: 0 4px 14px var(--ts-shadow); border-color: var(--ts-green); }
.ts-prod__img-link { display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--ts-border); overflow: hidden; }
.ts-prod__img-link img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .4s; }
.ts-prod:hover .ts-prod__img-link img { transform: scale(1.04); }
.ts-prod__body { padding: 8px 10px 10px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.ts-prod__cat { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--ts-green); line-height: 1.2; }
.ts-prod__name { font-family: var(--ts-font-heading); font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--ts-heading); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ts-prod__name:hover { color: var(--ts-green); }
.ts-prod__price { font-weight: 700; color: var(--ts-purple); font-size: 14px; }
.ts-prod__price small { font-weight: 400; color: var(--ts-text-muted); font-size: 11px; }
/* Compact cart controls inside listing cards: pack size + Add to Cart (quantity is changed in the cart) */
.ts-prod .ts-badge { font-size: 10px; padding: 0 6px; }
.ts-prod .ts-muted { font-size: 11px; line-height: 1.35; }
.ts-prod .ts-field { margin-bottom: 6px !important; }
.ts-prod .ts-label { display: none; }
.ts-prod .ts-select--sm { font-size: 12px; padding: 4px 6px; text-overflow: ellipsis; }
.ts-prod .ts-qty { display: none; }
.ts-prod .ts-variety__buy { margin-top: 0 !important; gap: 6px; }
.ts-prod .ts-button--sm { width: 100%; font-size: 12px; padding: 6px 8px; }
.ts-prod__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }

/* ── Badges ──────────────────────────────────────────────────────────── */
.ts-badge { display: inline-block; font-size: 12px; line-height: 1.5em; padding: 1px 8px; border-radius: 3px; font-weight: 700; }
.ts-badge--in { background: var(--ts-green); color: #fff; }
.ts-badge--out { background: var(--ts-danger); color: #fff; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.ts-input, .ts-select, .ts-textarea { width: 100%; background: var(--ts-field-bg); border: 0; border-radius: 0; padding: 16px; font-size: 14px; color: var(--ts-field-text); font-family: var(--ts-font-body); outline: none; transition: box-shadow .2s; }
.ts-input:focus, .ts-select:focus, .ts-textarea:focus { box-shadow: inset 0 0 0 2px var(--ts-green); }
.ts-input--sm, .ts-select--sm { padding: 8px 10px; }
.ts-select { appearance: auto; }
.ts-label { display: block; font-weight: 700; color: var(--ts-heading); margin-bottom: 6px; }
.ts-field { margin-bottom: 18px; }
.ts-field-error { color: var(--ts-danger); font-size: 13px; margin-top: 4px; }
.ts-form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3%; }
@media (min-width: 768px) { .ts-form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ts-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ts-captcha img { height: 50px; border: 1px solid var(--ts-border); }
.ts-captcha input[type=text] { max-width: 180px; background: var(--ts-field-bg); color: var(--ts-field-text); border: 0; padding: 14px; }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.ts-alert { padding: 12px 16px; border-left: 4px solid var(--ts-green); background: var(--ts-field-bg); color: var(--ts-heading); margin-bottom: 16px; }
.ts-alert--error { border-left-color: var(--ts-danger); }
.ts-alert--warning { border-left-color: var(--ts-warning); }
.ts-flash-wrap { padding-top: 16px; }

/* ── Rich content imported from WordPress (crop pages, PoP, policies) ── */
.ts-content { color: var(--ts-text); }
.ts-content p { padding-bottom: 1em; }
.ts-content p:empty { display: none; }
.ts-content h2 { font-family: var(--ts-font-heading); font-size: 24px; line-height: 1.2em; font-weight: 700; color: var(--ts-green); padding: 10px 0; }
.ts-content h3 { font-family: var(--ts-font-heading); font-size: 20px; line-height: 1.2em; font-weight: 700; color: var(--ts-green); padding: 10px 0; }
.ts-content h4 { font-family: var(--ts-font-heading); font-size: 17px; font-weight: 700; color: var(--ts-heading); padding: 8px 0; }
.ts-content strong, .ts-content b { color: var(--ts-heading); font-weight: 700; }
.ts-content a { color: var(--ts-green); text-decoration: none; }
.ts-content a:hover { color: var(--ts-purple); }
.ts-content ul { list-style: disc; padding: 0 0 23px 1em; line-height: 26px; }
.ts-content ol { list-style: decimal; padding: 0 0 23px 1.4em; line-height: 26px; }
.ts-content li { padding-bottom: 4px; }
.ts-content img { max-width: 100%; height: auto; display: inline-block; }
.ts-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.ts-content th, .ts-content td { border: 1px solid var(--ts-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.ts-content th { background: var(--ts-grey-bg); color: var(--ts-heading); }
.ts-content blockquote { border-left: 4px solid var(--ts-green); padding-left: 1rem; font-style: italic; margin: 1rem 0; }
.ts-content hr { border: 0; border-top: 1px solid var(--ts-border); margin: 1.5rem 0; }

/* ── Package of Practices index list ─────────────────────────────────── */
.ts-pop-list { columns: 1; column-gap: 40px; list-style: decimal; padding-left: 1.4em; line-height: 2em; }
@media (min-width: 768px) { .ts-pop-list { columns: 2; } }
@media (min-width: 981px) { .ts-pop-list { columns: 3; } }
.ts-pop-list a { color: var(--ts-green); text-decoration: none; font-weight: 700; }
.ts-pop-list a:hover { color: var(--ts-purple); }
.ts-pop-tabs { border: 1px solid #d9d9d9; margin-bottom: 30px; }
.ts-pop-tabs__controls { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; background: #f4f4f4; border-bottom: 1px solid #d9d9d9; }
.ts-pop-tabs__controls li { border-right: 1px solid #d9d9d9; }
.ts-pop-tabs__controls a { display: block; padding: 4px 30px; font-weight: 600; color: var(--ts-text); text-decoration: none; font-size: 14px; line-height: 1.7em; }
.ts-pop-tabs__controls li.is-active { background: var(--ts-green); }
.ts-pop-tabs__controls li.is-active a { color: #fff; }
.ts-pop-tabs__panel { display: none; padding: 24px 30px; min-height: 40px; }
.ts-pop-tabs__panel.is-active { display: block; }
.ts-pop-table { border-collapse: collapse; border: 1px solid var(--ts-field-bg); margin: 0 0 15px; width: 194px; max-width: 100%; height: 805px; text-align: left; }
.ts-pop-table td { border-top: 1px solid var(--ts-field-bg); padding: 6px 24px; height: 23px; }
.ts-pop-table td:first-child { width: 61px; }
.ts-pop-table a { color: var(--ts-green); text-decoration: none; }
.ts-pop-table a:hover { color: var(--ts-purple); }
.ts-pop-grid { list-style: none; margin: 0 0 15px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .ts-pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ts-pop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ts-pop-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ts-pop-grid a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px; border: 1px solid var(--ts-field-bg); border-radius: 3px; color: var(--ts-green); font-weight: 700; text-decoration: none; transition: all .2s; }
.ts-pop-grid a:hover { border-color: var(--ts-green); background: var(--ts-green); color: #fff; }
.ts-pop-grid__num { flex: none; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ts-field-bg); color: var(--ts-green); font-size: 13px; }
.ts-pop-grid__name { min-width: 0; overflow-wrap: anywhere; }
.ts-lang-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ts-lang-bar button { border: 2px solid var(--ts-green); background: #fff; color: var(--ts-green); border-radius: 3px; padding: 4px 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .2s; }
.ts-lang-bar button.is-active, .ts-lang-bar button:hover { background: var(--ts-green); color: #fff; }

/* ── Variety list (crop page) ────────────────────────────────────────── */
.ts-variety { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--ts-border); }
.ts-variety:first-child { padding-top: 0; }
.ts-variety:last-child { border-bottom: 0; }
@media (min-width: 600px) { .ts-variety { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; } }
.ts-variety__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; box-shadow: 6px 6px 18px 0 rgba(0,0,0,.3); background: var(--ts-field-bg); }
.ts-variety__name { font-family: var(--ts-font-heading); font-size: 22px; line-height: 1.2em; font-weight: 700; color: var(--ts-green); padding-bottom: 10px; text-decoration: underline; text-underline-offset: 3px; }
.ts-variety__name a { color: inherit; text-decoration: none; }
.ts-variety__name a:hover { color: var(--ts-purple); }
.ts-variety__specs p { padding-bottom: .4em; }
.ts-variety__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }

/* ── Variety cards on redesigned crop pages (text-only varieties, no Product row to link to) ── */
.ts-redesign .ts-variety { display: flex; flex-direction: column; grid-template-columns: none; align-items: flex-start; gap: 20px; padding: 20px; margin-bottom: 20px; border: 1px solid #BECABB; border-bottom: 1px solid #BECABB; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.ts-redesign .ts-variety:last-child { margin-bottom: 0; }
@media (min-width: 600px) { .ts-redesign .ts-variety { flex-direction: row; align-items: center; } }
.ts-redesign .ts-variety__img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: center; border-radius: 8px; box-shadow: none; background: #EAF0E5; padding: 6px; }
@media (min-width: 600px) { .ts-redesign .ts-variety__img { width: 176px; flex-shrink: 0; } }
.ts-redesign .ts-variety__name { font-family: 'Instrument Sans', sans-serif; font-size: 18px; line-height: 26px; font-weight: 600; color: #006B2C; padding-bottom: 6px; text-decoration: none; cursor: default; }
.ts-redesign .ts-variety__specs { font-size: 14px; line-height: 22px; color: #3E4A3E; }
.ts-redesign .ts-variety__specs p { padding-bottom: .4em; }
.ts-redesign .ts-variety__specs strong { color: #171D17; font-weight: 600; }

/* ── Crop/category archive pages ─────────────────────────────────────── */
.ts-category-page .ts-variety {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e6e9e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.ts-category-page .ts-variety:last-child { margin-bottom: 0; }
.ts-category-page .ts-variety__img { border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.ts-category-page .ts-variety__name { font-size: 19px; }
.ts-category-page .ts-variety__specs { font-size: 14px; line-height: 1.65; }
.ts-category-page .ts-variety__buy { gap: 10px; }

@media (min-width: 600px) {
  .ts-category-page .ts-variety { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 20px; }
  .ts-category-page .ts-variety__name { font-size: 21px; }
}
@media (min-width: 981px) {
  .ts-category-page .ts-variety { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .ts-category-page .ts-cols__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
  .ts-category-page .ts-side-title { grid-column: 1 / -1; margin: 0 0 8px; border-width: 0; }
  .ts-category-page .ts-side-item { align-items: center; gap: 8px; max-width: none; margin: 0; padding: 9px 10px; border: 1px solid var(--ts-border); border-radius: 8px; }
  .ts-category-page .ts-side-item__icon { flex-basis: 26px; width: 26px; height: 26px; }
  .ts-category-page .ts-side-item h4 { padding: 0; text-align: left; font-size: 13px; letter-spacing: 0; }
}
@media (max-width: 479px) {
  .ts-category-page .ts-variety { gap: 12px; padding: 12px; }
  .ts-category-page .ts-variety__name { font-size: 17px; }
  .ts-category-page .ts-side-item { padding: 8px; }
}

/* ── Product detail ──────────────────────────────────────────────────── */
.ts-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ts-text-muted); margin-bottom: 22px; }
.ts-crumbs a { color: var(--ts-green); text-decoration: none; }
.ts-crumbs a:hover { color: var(--ts-purple); }
.ts-crumbs [aria-current] { color: var(--ts-heading); }
.ts-pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 981px) { .ts-pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } .ts-pd__gallery { position: sticky; top: 24px; } }
.ts-pd__frame { line-height: 0; }
.ts-pd__main-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; box-shadow: 6px 6px 18px 0 rgba(0,0,0,.3); background: var(--ts-field-bg); }
.ts-pd__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ts-pd__thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid var(--ts-border); padding: 0; cursor: pointer; background: #fff; transition: border-color .2s; }
.ts-pd__thumb:hover { border-color: var(--ts-purple); }
.ts-pd__thumb.is-active { border-color: var(--ts-green); }
.ts-pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ts-pd__eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ts-green); text-decoration: none; }
.ts-pd__eyebrow:hover { color: var(--ts-purple); }
.ts-pd__title { font-family: var(--ts-font-heading); font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--ts-heading); margin: 6px 0 0; }
@media (max-width: 479px) { .ts-pd__title { font-size: 26px; } }
.ts-pd__rating { font-size: 13px; margin-bottom: 12px; }
.ts-pd__rating a { color: var(--ts-text-muted); margin-left: 8px; text-decoration: none; }
.ts-pd__title::after { content: ''; display: block; width: 60px; border-top: 3px solid var(--ts-green); margin-top: 12px; }
.ts-pd__pricebar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.ts-pd__price { font-size: 32px; font-weight: 800; color: var(--ts-purple); line-height: 1.1; }
.ts-pd__price del { font-size: 16px; color: var(--ts-text-muted); font-weight: 400; margin-left: 8px; }
.ts-pd__short { margin-top: 16px; }
.ts-pd__buy { margin-top: 22px; }
.ts-pd__buy .ts-label { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.ts-pd__buy .ts-field { margin-bottom: 16px !important; }
.ts-pd__buy .ts-variety__buy { gap: 10px; }
.ts-pd__buy .ts-qty { border-radius: 4px; }
.ts-pd__buy .ts-qty button, .ts-pd__buy .ts-qty input { height: 46px; }
.ts-pd__buy .ts-button { flex: 1 1 130px; text-align: center; font-size: 15px; font-weight: 600; padding: 0 1em; height: 46px; border-radius: 4px; max-width: 200px; }
.ts-pd__buy .ts-button::after { display: none; }
.ts-pd__buy .ts-button:hover { padding: 0 1em; }
.ts-pd__facts { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ts-border); display: grid; gap: 10px; font-size: 14px; }
.ts-pd__facts > div { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.ts-pd__facts dt { flex: 0 0 90px; font-weight: 700; color: var(--ts-heading); }
.ts-pd__facts dd { flex: 1; min-width: 0; margin: 0; }
.ts-pd__tabs { margin-top: 56px; }
.ts-pd__tabs .ts-tab-panel { padding: 28px 0; max-width: 860px; }
.ts-pd__specs { margin: 20px 0 0; display: grid; gap: 0; font-size: 14px; line-height: 1.55; }
.ts-pd__specs > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--ts-border); }
.ts-pd__specs > div:first-child { border-top: 1px dashed var(--ts-border); }
.ts-pd__specs dt { font-weight: 700; color: var(--ts-heading); }
.ts-pd__specs dd { margin: 0; color: var(--ts-text); }
.ts-pd__related { margin-top: 56px; }
.ts-review strong { color: var(--ts-heading); }
.ts-review .ts-stars, .ts-review .ts-muted { margin-left: 8px; font-size: 12px; }
.ts-pd__meta { font-size: 13px; color: var(--ts-text-muted); }
.ts-pack-options { display: flex; flex-wrap: wrap; gap: 10px; }
.ts-pack-option { position: relative; }
.ts-pack-option input { position: absolute; opacity: 0; pointer-events: none; }
.ts-pack-option label { display: block; cursor: pointer; border: 2px solid var(--ts-border); border-radius: 4px; padding: 8px 12px; font-size: 13px; line-height: 1.4em; color: var(--ts-heading); background: #fff; transition: border-color .2s, background .2s; }
.ts-pack-option label strong { display: block; color: var(--ts-purple); font-size: 15px; }
.ts-pack-option input:checked + label { border-color: var(--ts-green); background: var(--ts-grey-bg); }
.ts-pack-option input:focus-visible + label { outline: 2px solid var(--ts-purple); outline-offset: 2px; }
.ts-pack-option input:disabled + label { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.ts-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--ts-border); border-radius: 3px; overflow: hidden; }
.ts-qty button { width: 36px; background: var(--ts-field-bg); border: 0; font-size: 18px; cursor: pointer; color: var(--ts-heading); }
.ts-qty button:hover { background: var(--ts-grey-bg); }
.ts-qty input { width: 52px; text-align: center; border: 0; border-left: 1px solid var(--ts-border); border-right: 1px solid var(--ts-border); font-size: 15px; -moz-appearance: textfield; }
.ts-qty input::-webkit-outer-spin-button, .ts-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ts-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-tag { display: inline-block; padding: 2px 10px; border-radius: 3px; background: var(--ts-grey-bg); color: var(--ts-green); font-size: 13px; text-decoration: none; }
.ts-tag:hover { background: var(--ts-green); color: #fff; }
.ts-tabs { border-bottom: 2px solid var(--ts-border); display: flex; gap: 4px; flex-wrap: wrap; }
.ts-tabs button { background: none; border: 0; padding: 10px 18px; font-family: var(--ts-font-heading); font-weight: 700; font-size: 15px; color: var(--ts-text-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ts-tabs button.is-active { color: var(--ts-green); border-bottom-color: var(--ts-green); }
.ts-tab-panel { padding: 24px 0; }
.ts-tab-panel[hidden] { display: none; }
.ts-review { padding: 16px 0; border-bottom: 1px solid var(--ts-border); }
.ts-review:last-child { border-bottom: 0; }
.ts-stars { color: var(--ts-warning); letter-spacing: 2px; }
.ts-stars .is-off { color: var(--ts-border); }

/* ── Shop toolbar + filters ─────────────────────────────────────────── */
.ts-shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.ts-search { display: flex; width: 100%; }
.ts-search input { flex: 1; min-width: 0; }
.ts-search button { border-radius: 0; }
.ts-filter-box { background: var(--ts-field-bg); padding: 18px; margin-bottom: 24px; }
.ts-filter-box h4 { font-family: var(--ts-font-banner); font-size: 16px; letter-spacing: 1px; color: var(--ts-heading); margin-bottom: 10px; text-transform: uppercase; }
.ts-filter-list a { display: block; padding: 3px 0; color: var(--ts-text); text-decoration: none; }
.ts-filter-list a:hover, .ts-filter-list a.is-current { color: var(--ts-green); font-weight: 700; }
.ts-price-inputs { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.ts-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.ts-pagination a, .ts-pagination span { min-width: 36px; text-align: center; padding: 4px 10px; border: 1px solid var(--ts-border); color: var(--ts-text); text-decoration: none; border-radius: 3px; }
.ts-pagination a:hover { border-color: var(--ts-green); color: var(--ts-green); }
.ts-pagination .is-current { background: var(--ts-green); border-color: var(--ts-green); color: #fff; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.ts-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 981px) { .ts-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 5.5%; } }
.ts-contact-block { display: flex; gap: 15px; margin-bottom: 24px; }
.ts-contact-block__icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--ts-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ts-contact-block h4 { font-family: var(--ts-font-heading); font-weight: 700; color: var(--ts-heading); font-size: 17px; padding-bottom: 4px; }
.ts-contact-block a { color: var(--ts-text); text-decoration: none; }
.ts-contact-block a:hover { color: var(--ts-green); }

/* Contact form fields exactly as on teamseeds.com/contact-us (green fields, white text). */
.ts-input--brand, .ts-textarea--brand { background: var(--ts-form-green); color: #fff; }
.ts-input--brand::placeholder, .ts-textarea--brand::placeholder { color: #fff; opacity: 1; }
.ts-input--brand:focus, .ts-textarea--brand:focus { background: var(--ts-form-green); box-shadow: inset 0 0 0 2px var(--ts-purple); }
.ts-captcha--brand input[type=text] { background: var(--ts-form-green); color: #fff; }
.ts-captcha--brand input[type=text]::placeholder { color: #fff; }
.ts-button--comfortaa { font-family: var(--ts-font-heading); }

/* Off-canvas panels: no shadow bleeding into the viewport while closed. */
#checkout-sidebar.translate-x-full, #mobile-drawer.translate-x-full { box-shadow: none; visibility: hidden; }
#checkout-sidebar, #mobile-drawer { transition-property: transform, visibility; }

/* Imported crop-page varieties (text-based crop pages): image + name like teamseeds.com. */
.ts-crop-body img { width: 100%; max-width: 300px; height: auto; border-radius: 8px; box-shadow: 6px 6px 18px 0 rgba(0,0,0,.3); margin-top: 24px; }
.ts-crop-body h4 { font-family: var(--ts-font-heading); font-size: 22px; font-weight: 700; color: var(--ts-green); text-decoration: underline; text-underline-offset: 3px; padding: 14px 0 8px; }


/* ==========================================================================
   Home page polish (typography + spacing only; colours unchanged)
   ========================================================================== */
.ts-home { font-size: 16px; }
.ts-home .ts-divider { max-width: none; width: 56px; margin-bottom: 28px; border-top-width: 4px; border-radius: 2px; }
.ts-home .ts-h2 { font-size: 30px; letter-spacing: .01em; padding-bottom: 12px; }
@media (max-width: 767px) { .ts-home .ts-h2 { font-size: 24px; } }

/* Hero slider: Poppins headline, soft scrim for legibility, tidy CTA */
.ts-home .ts-slide { position: relative; }
.ts-home .ts-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,0) 80%); pointer-events: none; }
.ts-home .ts-slide > div { position: relative; }
.ts-home .ts-desc p { font-family: var(--ts-font-heading); line-height: 1.15; letter-spacing: -.015em; }
.ts-home .ts-desc p span { font-weight: 500; }
.ts-home .ts-desc p strong { font-weight: 700; }
.ts-home .ts-btn { font-family: var(--ts-font-heading); font-style: normal; font-weight: 500; letter-spacing: .04em; border-radius: 6px; font-size: 15px; padding: .55em 1.3em; }
.ts-home .ts-btn:hover { padding: .55em 2em .55em .9em; }
.ts-home .ts-slider .ts-ctrl { width: 9px; height: 9px; border-radius: 9px; }

/* Feature strip */
.ts-strip { font-family: var(--ts-font-heading); }
.ts-strip em { font-style: normal; }
.ts-strip strong { font-weight: 600; letter-spacing: -.005em; }
.ts-strip .text-\[22px\] { font-size: 17px; line-height: 1.35; display: flex; align-items: center; }
.ts-strip .text-\[22px\] p { display: flex; align-items: center; gap: 15px; }
.ts-strip .text-\[22px\] img { float: none; margin: 0; flex: none; }
.ts-strip .text-\[32px\] { font-size: 30px; line-height: 1.2; }
.ts-strip .text-\[32px\] strong { font-weight: 700; }

/* About / Why us: readable body copy, no wall of italics */
.ts-prose { padding: 56px 0; font-size: 16px; line-height: 1.85; color: var(--ts-text); font-family: var(--ts-font-body); }
@media (min-width: 981px) { .ts-prose { padding: 88px 0; } }
.ts-prose p { padding-bottom: 1.2em; }
.ts-prose em { font-style: normal; }
.ts-prose strong { font-weight: 600; color: var(--ts-heading); }
.ts-prose a { color: var(--ts-green); text-decoration: none; font-weight: 700; transition: color .2s; }
.ts-prose a:hover { color: var(--ts-purple); }
.ts-prose a strong, .ts-prose a em { color: inherit; font-weight: inherit; font-style: normal; }
.ts-dropcap { float: left; color: var(--ts-green); font-family: var(--ts-font-heading); font-weight: 700; font-size: 86px; line-height: .78; margin: 9px 14px 0 0; }
.ts-prose .mb-\[5\.82\%\] { margin-bottom: 14px; }
.ts-prose a.ts-btn, .ts-prose a.ts-btn:hover { color: #fff; }
.ts-prose .ts-btn { font-family: var(--ts-font-heading); font-weight: 500; font-size: 15px; letter-spacing: .03em; border-radius: 6px; padding: .65em 1.5em; margin-top: 8px; }
.ts-prose .ts-btn:hover { padding: .65em 2.3em .65em .9em; }

/* Why us: stacked cards */
.ts-why { position: relative; background: #fff; border: 1px solid var(--ts-border); border-top: 4px solid var(--ts-green); border-radius: 12px; padding: 24px 26px 18px; margin-bottom: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.07); transition: box-shadow .3s ease, transform .3s ease; font-size: 15px; line-height: 1.75; }
.ts-why:hover { box-shadow: 0 12px 28px rgba(0,0,0,.13); transform: translateY(-2px); }
.ts-why:last-child { margin-bottom: 0; }
.ts-why__title { font-family: var(--ts-font-heading); font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ts-green); padding-bottom: 10px; }
.ts-why__body { padding-bottom: 6px; }

/* Featured products cards */
.ts-section--grey .ts-card-grid { gap: 28px; }
@media (max-width: 479px) { .ts-section--grey .ts-card-grid { gap: 14px; } }
.ts-section--grey { padding: 64px 0 72px; }
@media (min-width: 981px) { .ts-section--grey { padding: 80px 0 90px; } }

/* ── Custom scrollbars (site palette only) ───────────────────────────────────
   Chrome/Edge/Safari use the ::-webkit-scrollbar pieces; Firefox uses scrollbar-color. Setting the
   standard properties in Chrome would switch the pieces off, so they are fenced to Firefox. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ts-grey-bg); }
::-webkit-scrollbar-thumb { background: var(--ts-green); border-radius: 999px; border: 3px solid var(--ts-grey-bg); min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background: var(--ts-purple); }
::-webkit-scrollbar-thumb:active { background: var(--ts-heading); }
::-webkit-scrollbar-corner { background: var(--ts-grey-bg); }
/* The page itself has no visible scrollbar (it still scrolls); only inner scroll areas show one. */
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Inner scroll areas (category sidebar, cart drawer, menus, tables): slimmer, transparent track */
.ts-cols__side::-webkit-scrollbar, #cart-checkout-panel *::-webkit-scrollbar, #mobile-drawer *::-webkit-scrollbar { width: 8px; height: 8px; }
.ts-cols__side::-webkit-scrollbar-track, #cart-checkout-panel *::-webkit-scrollbar-track, #mobile-drawer *::-webkit-scrollbar-track { background: transparent; }
.ts-cols__side::-webkit-scrollbar-thumb, #cart-checkout-panel *::-webkit-scrollbar-thumb, #mobile-drawer *::-webkit-scrollbar-thumb { border: 2px solid #fff; background: var(--ts-green); }
.ts-cols__side::-webkit-scrollbar-thumb:hover { background: var(--ts-purple); }
@supports (-moz-appearance: none) {
  html { scrollbar-width: none; }
  .ts-cols__side, #cart-checkout-panel *, #mobile-drawer * { scrollbar-width: thin; scrollbar-color: var(--ts-green) transparent; }
}

/* Shop filters: follow the page on desktop, scroll inside their own box when taller than the screen. */
@media (min-width: 981px) {
  .ts-shop-side { align-self: flex-start; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
}
.ts-shop-side::-webkit-scrollbar { width: 8px; height: 8px; }
.ts-shop-side::-webkit-scrollbar-track { background: transparent; }
.ts-shop-side::-webkit-scrollbar-thumb { border: 2px solid #fff; background: var(--ts-green); }
.ts-shop-side::-webkit-scrollbar-thumb:hover { background: var(--ts-purple); }
@supports (-moz-appearance: none) { .ts-shop-side { scrollbar-width: thin; scrollbar-color: var(--ts-green) transparent; } }

/* "More categories" toggle in the shop filter (button sits after the list, in both states) */
.ts-filter-list.is-collapsible:not(.is-expanded) .ts-more-item { display: none; }
.ts-more-toggle { margin-top: 8px; padding: 3px 0; background: none; border: 0; cursor: pointer; color: var(--ts-green); font-weight: 700; font-size: 14px; font-family: inherit; }
.ts-more-toggle:hover { color: var(--ts-purple); }
.ts-more-toggle::after { content: ' ▾'; }
.ts-filter-list.is-expanded + .ts-more-toggle::after { content: ' ▴'; }
@media (min-width: 981px) {
  /* Collapsed (the usual case): no inner scrolling at all. Only the expanded full list may scroll. */
  .ts-shop-side:not(:has(.ts-filter-list.is-expanded)) { max-height: none; overflow: visible; }
}

/* ── Custom dropdowns (static/js/ts-dropdown.js) ─────────────────────────────── */
.ts-dd { position: relative; display: block; width: 100%; }
.ts-dd[style*="auto"] { display: inline-block; width: auto; min-width: 150px; }
.ts-dd__native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ts-dd__btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: var(--ts-field-bg); border: 0; border-radius: 4px; padding: 8px 10px; font-family: var(--ts-font-body); font-size: 14px; line-height: 1.3; color: var(--ts-field-text); text-align: left; cursor: pointer; transition: box-shadow .2s; }
.ts-dd__btn:hover { box-shadow: inset 0 0 0 1px var(--ts-green); }
.ts-dd__btn:focus-visible, .ts-dd.is-open .ts-dd__btn { outline: none; box-shadow: inset 0 0 0 2px var(--ts-green); }
.ts-dd__btn:disabled { opacity: .6; cursor: not-allowed; }
.ts-dd__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-dd__chev { flex: 0 0 auto; color: var(--ts-green); transition: transform .2s; }
.ts-dd.is-open .ts-dd__chev { transform: rotate(180deg); }
.ts-prod .ts-dd__btn { font-size: 12px; padding: 6px 8px; }
.ts-dd__list { position: fixed; z-index: 9999; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--ts-border); border-radius: 6px; box-shadow: 0 6px 18px var(--ts-shadow); overflow-y: auto; overscroll-behavior: contain; font-family: var(--ts-font-body); font-size: 13px; line-height: 1.35; }
.ts-dd__list::-webkit-scrollbar { width: 8px; }
.ts-dd__list::-webkit-scrollbar-track { background: transparent; }
.ts-dd__list::-webkit-scrollbar-thumb { background: var(--ts-green); border: 2px solid #fff; border-radius: 999px; }
.ts-dd__opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 4px; color: var(--ts-field-text); cursor: pointer; }
.ts-dd__label { flex: 1; min-width: 0; }
.ts-dd__extra { flex: 0 0 auto; font-weight: 700; color: var(--ts-purple); white-space: nowrap; }
.ts-dd__check { flex: 0 0 auto; width: 11px; color: var(--ts-green); visibility: hidden; }
.ts-dd__opt.is-active { background: var(--ts-field-bg); }
.ts-dd__opt.is-selected { color: var(--ts-green); font-weight: 700; }
.ts-dd__opt.is-selected .ts-dd__check { visibility: visible; }
.ts-dd__opt.is-disabled { color: var(--ts-text-muted); opacity: .55; cursor: not-allowed; }

/* Redesign skin (shop/product selects) — matches the Tailwind field look used on .ts-redesign pages. */
.ts-dd--redesign .ts-dd__btn { background: #fff; border: 1px solid #BECABB; border-radius: 8px; padding: 10px 14px; font-family: 'Instrument Sans', sans-serif; font-size: 14px; color: #171D17; }
.ts-dd--redesign .ts-dd__btn:hover { box-shadow: none; border-color: #006B2C; }
.ts-dd--redesign.is-open .ts-dd__btn, .ts-dd--redesign .ts-dd__btn:focus-visible { box-shadow: 0 0 0 2px rgba(0,107,44,.2); border-color: #006B2C; outline: none; }
.ts-dd--redesign .ts-dd__chev { color: #006B2C; }
.ts-dd__list.ts-dd--redesign { border-color: #BECABB; border-radius: 8px; font-family: 'Instrument Sans', sans-serif; }
.ts-dd__list.ts-dd--redesign .ts-dd__opt.is-active { background: #EFF5EB; }
.ts-dd__list.ts-dd--redesign .ts-dd__opt.is-selected { color: #006B2C; }
.ts-dd__list.ts-dd--redesign .ts-dd__extra { color: #006B2C; }
.ts-dd__list.ts-dd--redesign .ts-dd__check { color: #006B2C; }

/* Captcha widget (django-simple-captcha) skinned to match the redesign's field look. */
.ts-captcha-redesign img.captcha { height: 44px; border-radius: 8px; border: 1px solid #BECABB; background: #EAF0E5; }
.ts-captcha-redesign input[type="text"] { flex: 1; min-width: 180px; padding: 10px 14px; border-radius: 8px; border: 1px solid #BECABB; background: #fff; color: #171D17; font-family: 'Instrument Sans', sans-serif; font-size: 14px; outline: none; transition: box-shadow .2s, border-color .2s; }
.ts-captcha-redesign input[type="text"]:focus { border-color: #006B2C; box-shadow: 0 0 0 2px rgba(0,107,44,.2); }
.ts-dd__opt.is-disabled.is-active { background: transparent; }

/* ── Listing buttons + pack-size modal ───────────────────────────────────────── */
.ts-modal { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ts-modal[hidden] { display: none; }
.ts-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.ts-modal__dialog { position: relative; width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-family: var(--ts-font-body); }
.ts-modal__close { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ts-text-muted); cursor: pointer; }
.ts-modal__close:hover { color: var(--ts-green); }
.ts-opt__head { display: flex; align-items: center; gap: 12px; padding-right: 22px; margin-bottom: 14px; }
.ts-opt__head img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--ts-border); border-radius: 6px; background: #fff; flex: 0 0 auto; }
.ts-opt__name { font-family: var(--ts-font-heading); font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ts-heading); }
.ts-opt__ask { font-size: 13px; font-weight: 700; color: var(--ts-heading); margin-bottom: 6px; }
.ts-modal .ts-field { margin-bottom: 12px !important; }
.ts-modal .ts-label { display: none; }
.ts-modal .ts-variety__buy { margin-top: 0 !important; flex-wrap: nowrap; gap: 10px; }
.ts-modal .ts-variety__buy > .ts-button { flex: 1; }
.ts-opt__more { display: block; margin-top: 12px; text-align: center; font-size: 13px; color: var(--ts-green); text-decoration: none; }
.ts-opt__more:hover { color: var(--ts-purple); }

/* ── Responsive fixes ──────────────────────────────────────────────────────── */
/* Top bar: use the width on phones (80% left too little room for phone + email) and wrap instead of overflowing */
#ts-topbar > div { width: 92%; }
@media (min-width: 981px) { #ts-topbar > div { width: 80%; } }
#ts-topbar > div > div:first-child { flex-wrap: wrap; row-gap: 2px; }
#ts-topbar a, #ts-topbar span { overflow-wrap: anywhere; }
/* Shop filters fold behind a "Filters" button below 981px so the products come first */
.ts-filters-toggle { display: none; }
@media (max-width: 980px) {
  .ts-shop-side.is-collapsible .ts-filters-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 14px; padding: 10px 14px; background: var(--ts-field-bg); border: 0; border-radius: 4px; font-family: var(--ts-font-heading); font-size: 14px; font-weight: 600; letter-spacing: .5px; color: var(--ts-heading); cursor: pointer; }
  .ts-shop-side.is-collapsible .ts-filters-toggle svg { color: var(--ts-green); transition: transform .2s; }
  .ts-shop-side.is-open .ts-filters-toggle svg { transform: rotate(180deg); }
  .ts-shop-side.is-collapsible:not(.is-open) .ts-filters-body { display: none; }
  .ts-shop-side .ts-search { margin-bottom: 12px; }
}
.ts-filters-count { font-style: normal; display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--ts-green); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
/* Shop header row and cards on narrow screens */
@media (max-width: 600px) {
  .ts-shop-bar { gap: 8px; margin-bottom: 16px; }
  .ts-prod-grid { gap: 10px; }
  .ts-prod__body { padding: 8px; }
}

/* ── Listing buttons: Add to Cart (primary) + Buy (outlined) ───────────────────
   The default .ts-button hover shrinks the padding and adds an arrow, which clipped the label here,
   so these buttons keep a fixed box and only change colour / lift. */
.ts-listing-cta { display: flex; gap: 6px; }
.ts-prod .ts-listing-cta .ts-button { display: flex; align-items: center; justify-content: center; width: auto; min-width: 0; padding: 8px 6px; font-family: var(--ts-font-body); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; border-radius: 5px; text-align: center; transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
.ts-prod .ts-listing-cta .ts-button::after { display: none; }
.ts-prod .ts-listing-cta .ts-button:hover { padding: 8px 6px; transform: translateY(-1px); box-shadow: 0 3px 8px var(--ts-shadow); }
.ts-prod .ts-listing-cta .ts-button:active { transform: translateY(0); box-shadow: none; }
.ts-prod .ts-listing-cta .ts-button:focus-visible { outline: 2px solid var(--ts-purple); outline-offset: 2px; }
.ts-prod .ts-cta-add { flex: 1.7 1 0; background: var(--ts-green); color: #fff; }
.ts-prod .ts-cta-add:hover { background: var(--ts-purple); }
.ts-prod .ts-cta-buy { flex: 1 1 0; background: #fff; color: var(--ts-purple); box-shadow: inset 0 0 0 2px var(--ts-purple); }
.ts-prod .ts-cta-buy:hover { background: var(--ts-purple); color: #fff; }
.ts-prod .ts-cta-solo { flex: 1; background: #fff; color: var(--ts-green); box-shadow: inset 0 0 0 2px var(--ts-green); }
.ts-prod .ts-cta-solo:hover { background: var(--ts-green); color: #fff; }
.ts-prod__body span:empty { display: none; }   /* no price → badge sits left, not floating right */
@media (max-width: 479px) {
  .ts-listing-cta { flex-direction: column; }
  .ts-prod .ts-listing-cta .ts-button { flex: none; width: 100%; padding: 9px 8px; }
}

/* ── Wider shop layout: use the screen instead of a 1080px column ────────────── */
body:has(.ts-shop-wide) .ts-container { width: 94%; max-width: 1360px; }
@media (min-width: 981px) {
  body:has(.ts-shop-wide) #ts-topbar > div,
  body:has(.ts-shop-wide) #ts-main-header > div,
  body:has(.ts-shop-wide) #main-footer > div > div { width: 94%; max-width: 1360px; }
}
.ts-shop-wide .ts-prod-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
@media (max-width: 600px) { .ts-shop-wide .ts-prod-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } }
@media (min-width: 981px) { .ts-shop-wide { column-gap: 40px; } }

/* ── About Us / Infrastructure / R&D pages ───────────────────────────── */
.ts-stats { list-style: none; margin: 30px 0 34px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .ts-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.ts-stats li { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 14px; background: #fff; border: 1px solid var(--ts-border); border-top: 3px solid var(--ts-green); border-radius: 6px; text-align: center; transition: box-shadow .2s, transform .2s; }
.ts-stats li:hover { box-shadow: 0 6px 18px var(--ts-shadow); transform: translateY(-2px); }
.ts-stats strong { font-family: var(--ts-font-heading); font-size: 30px; line-height: 1.1; font-weight: 700; color: var(--ts-green); }
.ts-stats span { font-size: 12.5px; line-height: 1.4; color: var(--ts-text); }

.ts-about { color: var(--ts-text); font-size: 15.5px; line-height: 1.85; }
.ts-about > :first-child { margin-top: 0; }
.ts-about h2 { position: relative; font-family: var(--ts-font-heading); font-size: 28px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; color: var(--ts-green); padding-bottom: 14px; margin: 0 0 22px; }
.ts-about h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; border-top: 3px solid var(--ts-green); }
.ts-about h3 { font-family: var(--ts-font-heading); font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ts-green); margin: 44px 0 16px; padding: 4px 0 4px 14px; border-left: 4px solid var(--ts-green); }
.ts-about p { padding: 0 0 1.1em; margin: 0; }
.ts-about > h2 + p { font-size: 17px; line-height: 1.8; color: var(--ts-heading); }
.ts-about strong, .ts-about b { color: var(--ts-heading); font-weight: 700; }
.ts-about h2 strong, .ts-about h3 strong, .ts-about h2 b, .ts-about h3 b, .ts-about h3 em { color: inherit; font-style: normal; }
.ts-about em, .ts-about i { font-style: normal; }
.ts-about a { color: var(--ts-green); text-decoration: none; }
.ts-about a:hover { color: var(--ts-purple); }

.ts-about ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.ts-about li { position: relative; padding: 14px 16px 14px 44px; background: var(--ts-grey-bg); border-radius: 6px; line-height: 1.6; color: var(--ts-heading); }
.ts-about li::before { content: ''; position: absolute; left: 16px; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--ts-green); box-shadow: inset 0 0 0 3px var(--ts-grey-bg), 0 0 0 1.5px var(--ts-green); }
.ts-about li h5 { font-family: var(--ts-font-heading); font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ts-heading); margin: 0; padding: 0; }
.ts-about li p { padding: 0; }

.ts-about__figures { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 12px; }
.ts-about figure { margin: 0; flex: 1 1 220px; display: flex; align-items: center; justify-content: center; padding: 18px; background: #fff; border: 1px solid var(--ts-border); border-radius: 8px; transition: box-shadow .2s; }
.ts-about figure:hover { box-shadow: 0 6px 18px var(--ts-shadow); }
.ts-about figure img { display: block; max-width: 100%; height: auto; }
.ts-about__figures--single figure { flex: 0 1 460px; }
.ts-about > p > img { max-width: 100%; height: auto; }

/* Product page: horizontally scrolling review strip */
.ts-rv { margin-top: 40px; }
.ts-rv__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ts-rv__sub { margin: 4px 0 0; font-size: 14px; }
.ts-rv__actions { display: flex; align-items: center; gap: 8px; }
.ts-rv__write { display: inline-block; padding: 8px 16px; border-radius: 3px; background: var(--ts-green); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.ts-rv__write:hover { background: var(--ts-purple); color: #fff; }
.ts-rv__nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ts-border); background: #fff; color: var(--ts-green); font-size: 22px; line-height: 1; cursor: pointer; }
.ts-rv__nav:hover { background: var(--ts-green); color: #fff; border-color: var(--ts-green); }
.ts-rv__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.ts-rv__track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ts-rv__track:focus-visible { outline: 2px solid var(--ts-purple); outline-offset: 2px; }
.ts-rv__card { flex: 0 0 min(300px, 82%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--ts-border); border-top: 3px solid var(--ts-green); border-radius: 4px; background: #fff; }
.ts-rv__card .ts-stars { margin: 0; font-size: 15px; }
.ts-rv__text { margin: 0; flex: 1; color: var(--ts-text); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ts-rv__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; }
.ts-rv__meta strong { color: var(--ts-heading); }
.ts-rv__badge { color: var(--ts-green); font-size: 12px; font-weight: 600; }
.ts-rv__product { flex-basis: 100%; color: var(--ts-green); font-size: 12px; }
