/* ==========================================================
   THETEKCOFFEE_RETAIL_PREMIUM — GLOBAL BREADCRUMB 2.2
   Isolated component: does not reuse Flatsome page-title DOM.
   ========================================================== */

:root {
  --ttc-rp-bc-max: 1180px;
  --ttc-rp-bc-h: 46px;
  --ttc-rp-bc-bg: #f8faf9;
  --ttc-rp-bc-line: #e4ebe7;
  --ttc-rp-bc-text: #647069;
  --ttc-rp-bc-current: #10281f;
  --ttc-rp-bc-brand: #087a45;
  --ttc-rp-bc-separator: #a9b4ae;
}

/* ----------------------------------------------------------
   CRITICAL: remove the native Flatsome/Woo title shell only
   on pages where our isolated breadcrumb is active.
   This eliminates the 200px+ flex/featured-title conflict.
   ---------------------------------------------------------- */
body.ttc-rp-breadcrumb-active.woocommerce .page-title.shop-page-title,
body.ttc-rp-breadcrumb-active.woocommerce .page-title.product-page-title,
body.ttc-rp-breadcrumb-active.woocommerce .shop-page-title.product-page-title {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* New isolated shell */
.ttc-rp-breadcrumb-shell {
  position: relative;
  z-index: 4;
  width: 100%;
  height: var(--ttc-rp-bc-h);
  min-height: var(--ttc-rp-bc-h);
  margin: 0;
  padding: 0;
  background: var(--ttc-rp-bc-bg);
  border: 0;
  border-bottom: 1px solid var(--ttc-rp-bc-line);
  box-shadow: none;
  overflow: hidden;
}

.ttc-rp-breadcrumb-container {
  width: min(calc(100% - 30px), var(--ttc-rp-bc-max));
  height: 100%;
  margin: 0 auto;
  padding: 0;
}

.ttc-rp-breadcrumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  color: var(--ttc-rp-bc-text);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ttc-rp-breadcrumb::-webkit-scrollbar {
  display: none;
}

.ttc-rp-breadcrumb-list {
  width: max-content;
  min-width: max-content;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  list-style: none !important;
}

.ttc-rp-breadcrumb-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  white-space: nowrap;
}

.ttc-rp-breadcrumb-item + .ttc-rp-breadcrumb-item::before {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0 9px;
  color: var(--ttc-rp-bc-separator);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transform: translateY(-1px);
}

.ttc-rp-breadcrumb a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0 1px;
  color: var(--ttc-rp-bc-text) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font: inherit !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
  transition: color .18s ease;
}

.ttc-rp-breadcrumb a:hover {
  color: var(--ttc-rp-bc-brand) !important;
}

.ttc-rp-breadcrumb-current {
  display: inline-block;
  flex: 0 0 auto;
  max-width: min(38vw, 440px);
  margin: 0;
  padding: 0 1px;
  overflow: hidden;
  color: var(--ttc-rp-bc-current) !important;
  font: inherit !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-overflow: ellipsis;
  text-transform: none !important;
  vertical-align: middle;
  white-space: nowrap;
}

.ttc-rp-breadcrumb-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0 7px 0 0;
  color: var(--ttc-rp-bc-current);
}

.ttc-rp-breadcrumb-home-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.ttc-rp-breadcrumb a:focus-visible {
  outline: 2px solid rgba(8, 122, 69, .35);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 849px) {
  :root {
    --ttc-rp-bc-h: 42px;
  }

  .ttc-rp-breadcrumb-container {
    width: calc(100% - 24px);
  }

  .ttc-rp-breadcrumb {
    font-size: 11.5px;
  }

  .ttc-rp-breadcrumb-item + .ttc-rp-breadcrumb-item::before {
    margin-left: 7px;
    margin-right: 7px;
  }

  .ttc-rp-breadcrumb-current {
    max-width: 62vw;
  }
}

@media (max-width: 480px) {
  .ttc-rp-breadcrumb {
    font-size: 11px;
  }

  .ttc-rp-breadcrumb-current {
    max-width: 70vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttc-rp-breadcrumb a {
    transition: none;
  }
}
