.tbtf-widget {
  --tbtf-accent: #176B48;
  --tbtf-text: #202820;
  --tbtf-surface: #fff;
  color: var(--tbtf-text);
  background: var(--tbtf-surface);
  border: 1px solid #e7ebe7;
  border-radius: 14px;
  padding: clamp(16px, 3vw, 30px);
  box-shadow: 0 12px 34px rgba(23, 43, 32, .07);
}
.tbtf-widget * { box-sizing: border-box; }
.tbtf-header { margin-bottom: 20px; }
.tbtf-header h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; font-weight: 700; color: var(--tbtf-text); }
.tbtf-header p { margin: 0; color: #69736c; font-size: 15px; }
.tbtf-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; margin-bottom: 22px; background: #f2f5f2; border-radius: 10px; }
.tbtf-tab { appearance: none; border: 1px solid transparent; background: transparent; color: #526057; border-radius: 8px; padding: 13px 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.tbtf-tab:hover { color: var(--tbtf-accent); }
.tbtf-tab.is-active { background: #fff; color: var(--tbtf-accent); border-color: #e2e9e3; box-shadow: 0 2px 8px rgba(20, 50, 30, .06); }
.tbtf-tab:focus-visible, .tbtf-search-button:focus-visible, .tbtf-pagination button:focus-visible { outline: 2px solid var(--tbtf-accent); outline-offset: 2px; }
.tbtf-form[hidden] { display: none !important; }
.tbtf-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tbtf-form[data-mode="bike"] .tbtf-fields, .tbtf-form[data-mode="car"] .tbtf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tbtf-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.tbtf-field label { font-size: 13px; font-weight: 650; }
.tbtf-field select { appearance: auto; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #d9e0da; border-radius: 8px; background: #fff; color: #243128; font: inherit; font-size: 14px; }
.tbtf-field select:focus { outline: 2px solid rgba(23,107,72,.18); border-color: var(--tbtf-accent); }
.tbtf-field select[aria-invalid="true"] { border-color: #b42318; }
.tbtf-field select:disabled { opacity: .65; cursor: wait; }
.tbtf-search-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; width: 100%; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--tbtf-accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .2s ease, transform .2s ease; }
.tbtf-search-button:hover { opacity: .92; transform: translateY(-1px); }
.tbtf-search-button:disabled { opacity: .65; cursor: wait; transform: none; }
.tbtf-status { min-height: 0; margin-top: 12px; font-size: 13px; color: #59665d; }
.tbtf-status:empty { display: none; }
.tbtf-status.is-error { color: #b42318; }
.tbtf-status.is-loading { color: var(--tbtf-accent); }
.tbtf-results { margin-top: 24px; }
.tbtf-results-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tbtf-product-card { min-width: 0; overflow: hidden; border: 1px solid #e5e9e5; border-radius: 12px; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.tbtf-product-card:hover { box-shadow: 0 8px 24px rgba(20,40,25,.09); transform: translateY(-2px); }
.tbtf-product-image-link { display: block; aspect-ratio: 1 / 1; background: #f6f7f6; overflow: hidden; }
.tbtf-product-image-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tbtf-product-body { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 14px; flex: 1; }
.tbtf-product-body h3 { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 650; }
.tbtf-product-body h3 a { color: var(--tbtf-text); text-decoration: none; }
.tbtf-product-price { font-weight: 700; color: var(--tbtf-accent); }
.tbtf-product-price del { opacity: .6; color: #707870; font-weight: 400; }
.tbtf-product-price ins { text-decoration: none; }
.tbtf-product-stock { font-size: 12px; color: #35734d; }
.tbtf-product-stock.is-out-of-stock { color: #a13c34; }
.tbtf-view-product { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 10px 12px; border-radius: 7px; background: #f0f5f1; color: var(--tbtf-accent); text-decoration: none; font-size: 13px; font-weight: 700; }
.tbtf-view-product:hover { background: var(--tbtf-accent); color: #fff; }
.tbtf-empty { padding: 24px; margin: 0; border-radius: 10px; background: #f7f9f7; text-align: center; color: #58645b; }
.tbtf-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; font-size: 13px; }
.tbtf-pagination button { border: 1px solid #d9e0da; border-radius: 7px; background: #fff; padding: 9px 13px; cursor: pointer; color: var(--tbtf-text); }
@media (max-width: 767px) {
  .tbtf-widget { padding: 16px; }
  .tbtf-tabs { gap: 3px; }
  .tbtf-tab { padding: 11px 4px; font-size: 12px; }
  .tbtf-fields, .tbtf-form[data-mode="bike"] .tbtf-fields, .tbtf-form[data-mode="car"] .tbtf-fields { grid-template-columns: 1fr; gap: 12px; }
  .tbtf-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tbtf-product-body { padding: 10px; gap: 7px; }
  .tbtf-product-body h3 { font-size: 13px; }
}
@media (max-width: 360px) {
  .tbtf-tabs { grid-template-columns: 1fr; }
  .tbtf-results-grid { grid-template-columns: 1fr; }
}