/* =====================================================================
   Thabico website header: top bar (contact, language, social), main bar
   (logo, menu, search, mobile menu button) and product listing tools.
   Every row sits in Bootstrap's .container, so the logo, the menu and the
   page content share the same left and right edges at all screen sizes.
   ===================================================================== */
:root {
  --tg-green: #8cc63f;
  --tg-green-dark: #6fab1f;
  --tg-green-ink: #3f6d12;
  --tg-green-soft: #f1f7e8;
  --tg-blue: #228ccc;
  --tg-ink: #1f2a37;
  --tg-muted: #6b7785;
  --tg-line: #e3e8ed;
  --tg-shadow: 0 12px 32px rgba(15, 42, 61, .16), 0 2px 6px rgba(15, 42, 61, .06);
}

.tg-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-site-header {
  position: relative;
  z-index: 1001;
}
/* The off-canvas menu (and its dimmed backdrop) must cover the header. */
.offcanvas-overlay.overlay-open {
  z-index: 1010;
}
.offcanvas-area {
  z-index: 1020;
}

/* ---------- Top bar ---------- */
.tg-topbar {
  background: var(--tg-green);
  color: #fff;
  font-size: 14px;
}
.tg-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
.tg-topbar ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tg-topbar__contact {
  gap: 24px;
  min-width: 0;
}
.tg-topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.tg-topbar__contact i {
  font-size: 16px;
}
.tg-topbar a:hover {
  color: #fff;
}
.tg-topbar__contact a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tg-topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.tg-topbar__social {
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .45);
}
.tg-topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  transition: background-color .2s ease, color .2s ease;
}
.tg-topbar__social a:hover,
.tg-topbar__social a:focus-visible {
  background: #fff;
  color: var(--tg-green-dark);
}

/* ---------- Language switcher ---------- */
.tg-lang {
  position: relative;
}
.tg-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px 0 8px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tg-lang__toggle:hover,
.tg-lang.is-open .tg-lang__toggle {
  background: #fff;
  border-color: #fff;
  color: var(--tg-green-ink);
}
.tg-lang__toggle:focus-visible,
.tg-topbar a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.tg-lang__toggle .tg-icon {
  width: 17px;
  height: 17px;
}
.tg-lang__toggle .tg-icon--caret {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
  transition: transform .2s ease;
}
.tg-lang.is-open .tg-icon--caret {
  transform: rotate(180deg);
}
.tg-lang__code {
  min-width: 18px;
  text-align: center;
}
.tg-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  min-width: 224px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--tg-shadow);
  display: block !important;
}
.tg-lang__menu[hidden] {
  display: none !important;
}
.tg-lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tg-ink);
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.tg-lang__item:hover,
.tg-lang__item:focus-visible {
  background: #f4f7f9;
  outline: none;
}
.tg-lang__item.is-active {
  background: var(--tg-green-soft);
  color: var(--tg-green-ink);
  font-weight: 600;
}
.tg-lang__item .fi {
  flex: none;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  background-size: cover;
  box-shadow: 0 0 0 1px rgba(15, 42, 61, .08);
}
.tg-lang__name {
  flex: 1 1 auto;
}
.tg-lang__short {
  color: #8a96a3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}
.tg-lang__item .tg-icon--check {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
  color: var(--tg-green-dark);
  visibility: hidden;
}
.tg-lang__item.is-active .tg-icon--check {
  visibility: visible;
}
html.tg-lang-switching body {
  cursor: progress;
}

/* ---------- Main bar ---------- */
.tg-mainbar.header-style-three,
.tg-mainbar.header-style-three.bd-sticky {
  max-width: none;
  padding: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid #eef1f4;
}
.tg-mainbar.header-style-three::before {
  display: none;
}
.tg-mainbar .header-menu-wrapper.tg-mainbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 0 !important;
  position: relative;
}
.tg-mainbar .tg-mainbar__logo.header-logo {
  flex: none;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}
.tg-mainbar__logo a {
  display: flex;
  align-items: center;
}
.tg-mainbar__logo img.logo-header {
  display: block;
  width: auto;
  height: 52px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.tg-mainbar .tg-mainbar__nav.header-menu {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}
.tg-mainbar .bd-main-menu.menu-is-white > ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.tg-mainbar .bd-main-menu.menu-is-white > ul > li > a {
  padding: 34px 13px;
  color: var(--tg-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s ease;
}
.tg-mainbar .bd-main-menu > ul > li > a::before {
  display: none;
}
.tg-mainbar .bd-main-menu > ul > li:hover > a,
.tg-mainbar .bd-main-menu > ul > li > a:focus-visible {
  color: var(--tg-blue);
}
.tg-mainbar .bd-main-menu .dp-menu {
  left: 0;
  width: 290px;
  border: 1px solid #eef1f4;
  box-shadow: var(--tg-shadow);
}
/* Customer portal: outlined call to action */
.tg-mainbar .bd-main-menu.menu-is-white > ul > li.tg-portal-link {
  margin-left: 10px;
}
.tg-mainbar .bd-main-menu.menu-is-white > ul > li.tg-portal-link > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1.5px solid var(--tg-green);
  border-radius: 999px;
  color: var(--tg-green-ink);
  transition: background-color .2s ease, color .2s ease;
}
.tg-mainbar .bd-main-menu.menu-is-white > ul > li.tg-portal-link > a:hover {
  background: var(--tg-green);
  color: #fff;
}
.tg-mainbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-right: -10px; /* line the visible icon up with the container edge */
}
.tg-search-toggle,
.tg-mainbar .hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tg-ink);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.tg-search-toggle:hover,
.tg-search-toggle.is-active,
.tg-mainbar .hamburger-btn:hover {
  background: var(--tg-green-soft);
  color: var(--tg-green-ink);
}
.tg-search-toggle:focus-visible,
.tg-mainbar .hamburger-btn:focus-visible {
  outline: 2px solid var(--tg-green);
  outline-offset: 1px;
}
.tg-search-toggle .tg-icon {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}
.tg-mainbar .tg-mainbar__burger.header-hamburger,
.tg-mainbar.bd-sticky .tg-mainbar__burger.header-hamburger {
  display: none !important;
  position: static !important;
}

/* ---------- Search panel ---------- */
.tg-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 16px 0;
  background: #fff;
  border-top: 1px solid #eef1f4;
  box-shadow: 0 18px 32px rgba(15, 42, 61, .12);
}
.tg-search-panel[hidden] {
  display: none;
}
.tg-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tg-search-form > .tg-icon {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  color: #8a96a3;
  pointer-events: none;
}
.tg-search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px 0 48px;
  border: 1.5px solid #dfe5ea;
  border-radius: 999px;
  background: #f8fafb;
  color: var(--tg-ink);
  font-size: 16px;
}
.tg-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--tg-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(140, 198, 63, .18);
}
.tg-search-form__submit,
.tg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tg-green), var(--tg-green-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .2s ease, box-shadow .2s ease;
}
.tg-search-form__submit:hover,
.tg-btn-primary:hover {
  color: #fff;
  filter: brightness(.95);
  box-shadow: 0 8px 18px rgba(111, 171, 31, .3);
}
.tg-search-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tg-muted);
}
.tg-search-panel__close:hover {
  background: #f4f7f9;
  color: var(--tg-ink);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .tg-mainbar__logo img.logo-header {
    height: 46px;
  }
  .tg-mainbar .bd-main-menu.menu-is-white > ul > li > a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 13.5px;
  }
  .tg-mainbar .bd-main-menu.menu-is-white > ul > li.tg-portal-link {
    margin-left: 6px;
  }
  .tg-mainbar .bd-main-menu.menu-is-white > ul > li.tg-portal-link > a {
    padding: 9px 13px;
  }
}
/* Below 1200px the menu moves into the off-canvas panel (meanmenu breakpoint 1199px). */
@media (max-width: 1199.98px) {
  .tg-mainbar .tg-mainbar__nav.header-menu {
    display: none !important;
  }
  .tg-mainbar .tg-mainbar__burger.header-hamburger,
  .tg-mainbar.bd-sticky .tg-mainbar__burger.header-hamburger {
    display: block !important;
  }
  .tg-mainbar .header-menu-wrapper.tg-mainbar__inner {
    min-height: 72px;
  }
  .tg-mainbar__logo img.logo-header {
    height: 46px;
  }
}
@media (max-width: 767.98px) {
  .tg-topbar__contact {
    gap: 16px;
  }
  .tg-topbar__text {
    display: none;
  }
  .tg-topbar__contact i {
    font-size: 17px;
  }
}
@media (max-width: 575.98px) {
  .tg-topbar__social {
    display: none !important;
  }
  .tg-topbar__inner {
    min-height: 42px;
  }
  .tg-mainbar .header-menu-wrapper.tg-mainbar__inner {
    min-height: 64px;
  }
  .tg-mainbar__logo img.logo-header {
    height: 40px;
  }
  .tg-search-panel {
    padding: 12px 0;
  }
  .tg-search-form input[type="search"],
  .tg-search-form__submit {
    height: 46px;
  }
  .tg-search-form__submit {
    padding: 0 16px;
  }
  .tg-search-panel__close {
    display: none;
  }
}

/* =====================================================================
   Product listing tools: search, category filter, sort, result summary
   ===================================================================== */
.tg-catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px 190px auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 42, 61, .06);
}
.tg-catalog-tools--compact {
  grid-template-columns: minmax(0, 1fr) 190px auto;
}
.tg-catalog-tools__search {
  position: relative;
  min-width: 0;
}
.tg-catalog-tools__search .tg-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  height: 19px;
  color: #8a96a3;
  transform: translateY(-50%);
  pointer-events: none;
}
.tg-catalog-tools input[type="search"],
.tg-catalog-tools select {
  width: 100%;
  height: 48px;
  border: 1.5px solid #dfe5ea;
  border-radius: 12px;
  background-color: #f8fafb;
  color: var(--tg-ink);
  font-size: 15px;
}
.tg-catalog-tools input[type="search"] {
  padding: 0 16px 0 44px;
}
.tg-catalog-tools select {
  padding: 0 40px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7785' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.tg-catalog-tools input[type="search"]:focus,
.tg-catalog-tools select:focus {
  outline: none;
  border-color: var(--tg-green);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(140, 198, 63, .18);
}
.tg-catalog-tools__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}
.tg-catalog-tools__label {
  color: var(--tg-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tg-catalog-tools__submit {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
}
.tg-catalog-tools__submit .tg-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.tg-catalog-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 2px 22px;
  color: var(--tg-muted);
  font-size: 14.5px;
}
.tg-catalog-summary strong {
  color: var(--tg-ink);
}
.tg-catalog-summary__q {
  color: var(--tg-ink);
  font-weight: 600;
}
.tg-catalog-summary__reset {
  color: var(--tg-blue);
  font-weight: 600;
}
.tg-catalog-summary__reset:hover {
  color: var(--tg-green-dark);
}
.tg-catalog-empty {
  padding: 44px 20px;
  text-align: center;
  background: #fbfcfd;
  border: 1px dashed #d5dde4;
  border-radius: 16px;
}
.tg-catalog-empty h3 {
  margin-bottom: 8px;
  color: var(--tg-ink);
  font-size: 20px;
}
.tg-catalog-empty p {
  max-width: 540px;
  margin: 0 auto 18px;
  color: var(--tg-muted);
}
.tg-catalog-empty p:last-child {
  margin-bottom: 0;
}
.tg-catalog-empty .tg-btn-primary {
  height: 44px;
}

/* ---------- Homepage search ---------- */
.tg-home-search {
  margin: 28px 0 56px;
}
.tg-home-search__box {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 18px 36px;
  padding: 26px 30px;
  background: linear-gradient(120deg, #f3f9ea 0%, #eef6fb 100%);
  border: 1px solid #e1edd2;
  border-radius: 20px;
}
.tg-home-search__title {
  margin: 0 0 4px;
  color: var(--tg-ink);
  font-size: 24px;
  line-height: 1.25;
}
.tg-home-search__intro p {
  margin: 0;
  color: var(--tg-muted);
  font-size: 15px;
}
.tg-home-search__form input[type="search"] {
  background: #fff;
}
.tg-home-search__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.tg-home-search__chips-label {
  margin-right: 2px;
  color: var(--tg-muted);
  font-size: 13px;
}
.tg-home-search__chips a {
  padding: 6px 13px;
  background: #fff;
  border: 1px solid #d9e6cb;
  border-radius: 999px;
  color: var(--tg-green-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tg-home-search__chips a:hover {
  background: var(--tg-green);
  border-color: var(--tg-green);
  color: #fff;
}

@media (max-width: 1199.98px) {
  .tg-catalog-tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
  .tg-catalog-tools .tg-catalog-tools__search {
    grid-column: 1 / -1;
  }
  .tg-catalog-tools--compact {
    grid-template-columns: minmax(0, 1fr) 180px auto;
  }
  .tg-catalog-tools--compact .tg-catalog-tools__search {
    grid-column: auto;
  }
}
@media (max-width: 991.98px) {
  .tg-home-search__box {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
@media (max-width: 767.98px) {
  .tg-catalog-tools,
  .tg-catalog-tools--compact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px;
    border-radius: 14px;
  }
  .tg-catalog-tools .tg-catalog-tools__search,
  .tg-catalog-tools--compact .tg-catalog-tools__search {
    grid-column: 1 / -1;
  }
  .tg-catalog-tools--compact .tg-catalog-tools__field {
    grid-column: 1 / 2;
  }
  .tg-catalog-tools:not(.tg-catalog-tools--compact) .tg-catalog-tools__submit {
    grid-column: 1 / -1;
  }
  .tg-catalog-tools input[type="search"],
  .tg-catalog-tools select,
  .tg-catalog-tools__submit {
    height: 46px;
  }
  .tg-catalog-tools input[type="search"],
  .tg-catalog-tools select {
    font-size: 16px; /* stops iOS zooming into the field */
  }
}
@media (max-width: 575.98px) {
  .tg-home-search {
    margin: 18px 0 36px;
  }
  .tg-home-search__box {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .tg-home-search__title {
    font-size: 20px;
  }
  .tg-home-search__chips-label {
    width: 100%;
  }
  .tg-search-form input[type="search"] {
    font-size: 16px;
  }
}
