body.tbg-site {
  padding-top: 0;
}

body.tbg-site > .wp-site-blocks {
  box-sizing: border-box;
  min-height: 100vh;
  padding-top: var(--wp--custom--header-height, 72px);
}

body.tbg-site.tbg-shell-is-open {
  overflow: hidden;
}

.tbg-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.tbg-skip-link:focus {
  position: fixed !important;
  z-index: 100000;
}

.tbg-site-header {
  position: fixed !important;
  z-index: 900;
  top: var(--tbg-admin-offset, 0px) !important;
  right: 0;
  left: 0;
  height: var(--wp--custom--header-height, 72px);
  border-bottom: 1px solid var(--tbg-border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(4, 60, 40, 0.08);
  backdrop-filter: blur(14px);
}

.tbg-site-header__inner {
  width: min(calc(100% - 2rem), var(--wp--style--global--wide-size, 1320px));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(155px, 190px) auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: clamp(0.65rem, 1.6vw, 1.35rem);
}

.tbg-brand {
  width: 100%;
  height: 64px;
  display: inline-grid;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: var(--tbg-dark);
  text-decoration: none;
}

.tbg-brand__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tbg-brand__image--landscape {
  width: 100% !important;
  height: 100% !important;
  max-height: 64px;
  object-position: left center;
}

.tbg-desktop-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.75rem, 2.5vw, 1.8rem);
}

.tbg-header-search {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}

.tbg-header-search > .tbg-icon {
  position: absolute;
  z-index: 1;
  left: 0.8rem;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--tbg-muted);
  pointer-events: none;
}

.tbg-header-search input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  border: 1px solid var(--tbg-border);
  border-radius: var(--tbg-radius-pill);
  padding: 0.55rem 0.9rem 0.55rem 2.45rem;
  background: var(--tbg-cream);
  color: var(--tbg-dark);
  font: inherit;
  font-size: 0.82rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tbg-header-search input[type="search"]:hover,
.tbg-header-search input[type="search"]:focus {
  border-color: var(--tbg-forest);
  outline: 0;
  background: var(--tbg-surface);
  box-shadow: 0 0 0 3px rgba(23, 79, 55, 0.12);
}

.tbg-desktop-nav a {
  position: relative;
  padding: 0.75rem 0.2rem;
  color: var(--tbg-ink);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.tbg-desktop-nav a::after {
  position: absolute;
  right: 0.2rem;
  bottom: 0.38rem;
  left: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--tbg-leaf);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tbg-desktop-nav a:hover,
.tbg-desktop-nav a[aria-current="page"] {
  color: var(--tbg-forest);
}

.tbg-desktop-nav a:hover::after,
.tbg-desktop-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.tbg-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

body.tbg-site :where(.tbg-header-action, .tbg-cart-button, .tbg-panel-close, .tbg-bottom-nav__item) {
  min-height: var(--tbg-touch);
  border: 0;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
}

.tbg-header-action {
  min-width: var(--tbg-touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  background: transparent;
  color: var(--tbg-dark);
  cursor: pointer;
}

.tbg-header-action:hover {
  background: var(--tbg-sage);
  color: var(--tbg-forest);
}

.tbg-header-action--account.is-authenticated .tbg-icon,
.tbg-bottom-nav__item.is-authenticated .tbg-icon {
  box-sizing: content-box;
  padding: 0.22rem;
  border-radius: 50%;
  background: var(--tbg-forest);
  color: var(--tbg-surface);
}

.tbg-header-action--account.is-authenticated {
  color: var(--tbg-forest);
}

.tbg-header-action span {
  font-size: 0.78rem;
}

.tbg-cart-button {
  min-width: 9.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem 0.35rem 0.7rem;
  background: var(--tbg-sage);
  color: var(--tbg-dark);
  cursor: pointer;
}

.tbg-cart-button:hover,
.tbg-cart-button[aria-expanded="true"] {
  background: var(--tbg-forest);
  color: var(--tbg-surface);
}

.tbg-cart-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tbg-cart-summary__copy {
  display: grid;
  text-align: left;
}

.tbg-cart-summary__copy span {
  font-size: 0.66rem;
  line-height: 1.1;
}

.tbg-cart-summary__copy strong {
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
}

.tbg-cart-summary__count {
  min-width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  padding-inline: 0.25rem;
  border-radius: var(--tbg-radius-pill);
  background: var(--tbg-harvest);
  color: var(--tbg-dark);
  font-size: 0.7rem;
  font-weight: 700;
}

.tbg-bottom-nav {
  display: none;
}

.tbg-shell-scrim {
  position: fixed;
  z-index: 920;
  inset: calc(var(--wp--custom--header-height, 72px) + var(--tbg-admin-offset, 0px)) 0 0;
  background: rgba(3, 32, 19, 0.58);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tbg-shell-scrim.is-open {
  opacity: 1;
}

.tbg-search-panel,
.tbg-cart-drawer {
  position: fixed;
  z-index: 930;
  top: calc(var(--wp--custom--header-height, 72px) + var(--tbg-admin-offset, 0px));
  right: 0;
  bottom: 0;
  border-left: 1px solid var(--tbg-border);
  background: var(--tbg-surface);
  box-shadow: -16px 0 44px rgba(11, 51, 36, 0.18);
  transform: translateX(102%);
  transition: transform 200ms ease;
}

.tbg-search-panel.is-open,
.tbg-cart-drawer.is-open {
  transform: translateX(0);
}

.tbg-search-panel {
  width: min(760px, 100%);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.tbg-cart-drawer {
  width: min(500px, 100%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.tbg-panel-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--tbg-border);
  background: var(--tbg-surface);
}

.tbg-panel-header :where(.tbg-eyebrow, h2) {
  margin-block: 0;
}

.tbg-panel-header h2 {
  margin-top: 0.15rem;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

.tbg-panel-close {
  width: var(--tbg-touch);
  flex: 0 0 var(--tbg-touch);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--tbg-border) !important;
  background: var(--tbg-surface);
  color: var(--tbg-dark);
  cursor: pointer;
}

.tbg-panel-close:hover {
  border-color: var(--tbg-forest) !important;
  background: var(--tbg-sage);
}

.tbg-search-form {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1rem, 3vw, 1.35rem) clamp(1rem, 3vw, 1.35rem) 0.75rem;
}

.tbg-search-results {
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem clamp(1rem, 3vw, 1.35rem) 1.5rem;
  overscroll-behavior: contain;
}

.tbg-search-results[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}

.tbg-search-results__prompt,
.tbg-search-results__empty {
  margin: 0;
  padding: 1.1rem;
  border: 1px dashed var(--tbg-border);
  border-radius: var(--tbg-radius-md);
  background: var(--tbg-cream);
  color: var(--tbg-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tbg-search-results__empty {
  display: grid;
  gap: 0.25rem;
}

.tbg-search-results__empty strong {
  color: var(--tbg-dark);
}

.tbg-search-results__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.tbg-search-results .tbg-home-product {
  height: 100%;
}

.tbg-search-results .tbg-home-product__body {
  min-height: 178px;
  padding: 0.65rem;
}

.tbg-search-results .tbg-home-product h3 {
  font-size: 0.86rem;
}

.tbg-search-results__all {
  min-height: var(--tbg-touch);
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tbg-forest);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  background: var(--tbg-sage);
  color: var(--tbg-forest);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.tbg-search-form > label {
  color: var(--tbg-dark);
  font-size: 0.88rem;
  font-weight: 650;
}

.tbg-search-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.tbg-search-form__row input[type="search"] {
  min-height: 48px;
  border: 2px solid var(--tbg-dark);
  border-radius: var(--tbg-radius-pill);
  padding-inline: 1rem;
}

.tbg-search-form > p {
  margin: 0;
  color: var(--tbg-muted);
  font-size: 0.78rem;
}

.tbg-cart-drawer__body {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 0;
}

.tbg-cart-drawer__products {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.2rem 1.1rem 0.4rem;
  scrollbar-gutter: stable;
}

.tbg-cart-drawer__footer {
  position: relative;
  z-index: 2;
  padding: 0.55rem 1.1rem 0.9rem;
  border-top: 1px solid var(--tbg-border);
  background: var(--tbg-surface);
  box-shadow: 0 -12px 28px rgba(11, 51, 36, 0.08);
}

.tbg-cart-drawer__body[aria-busy="true"] {
  cursor: progress;
  opacity: 0.72;
}

.tbg-cart-drawer .woocommerce-mini-cart {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tbg-cart-drawer .woocommerce-mini-cart-item {
  position: relative;
  min-height: 76px;
  padding: 0.7rem 2.6rem 0.7rem 0;
  border-bottom: 1px solid var(--tbg-border);
}

.tbg-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--tbg-dark);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.tbg-cart-drawer .woocommerce-mini-cart-item img {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  float: none;
  margin: 0;
  border-radius: var(--tbg-radius-sm);
  object-fit: cover;
}

.tbg-cart-drawer .woocommerce-mini-cart-item .remove {
  position: absolute;
  top: 50%;
  right: 0;
  width: var(--tbg-touch);
  height: var(--tbg-touch);
  display: grid;
  place-items: center;
  border: 1px solid var(--tbg-border);
  border-radius: 9px;
  color: var(--tbg-error) !important;
  font-size: 1.2rem;
  text-decoration: none;
  transform: translateY(-50%);
}

.tbg-cart-drawer .woocommerce-mini-cart-item .remove:hover {
  border-color: var(--tbg-error);
  background: #fff1f1;
}

.tbg-cart-drawer .woocommerce-mini-cart-item .quantity {
  display: block;
  margin: 0.25rem 0 0 calc(60px + 0.75rem);
  color: var(--tbg-muted);
  font-size: 0.76rem;
}

.tbg-cart-drawer .woocommerce-mini-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--tbg-border);
  color: var(--tbg-dark);
}

.tbg-cart-drawer .woocommerce-mini-cart__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.9rem 0 0;
}

.tbg-cart-drawer .woocommerce-mini-cart__buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tbg-cart-drawer .woocommerce-mini-cart__empty-message {
  margin: 1rem 0;
  padding: 2rem 1rem;
  border: 1px dashed var(--tbg-border);
  border-radius: var(--tbg-radius-lg);
  background: var(--tbg-cream);
  color: var(--tbg-muted);
  text-align: center;
}

/* Phase 5 fragment-safe cart drawer. */
.tbg-cart-lines {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tbg-cart-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tbg-border);
}

.tbg-cart-line.is-loading {
  opacity: 0.62;
}

.tbg-cart-line__media img {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: var(--tbg-radius-sm);
  object-fit: contain;
  background: var(--tbg-surface);
}

.tbg-product-image.is-missing {
  opacity: 0.45;
}

.tbg-cart-line__main,
.tbg-cart-line__heading > div {
  min-width: 0;
}

.tbg-cart-line__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(124px, auto);
  align-items: center;
  gap: 0.6rem;
}

.tbg-cart-line__end {
  display: grid;
  justify-items: end;
  gap: 0.18rem;
}

.tbg-cart-line__heading :where(h3, p) {
  margin: 0;
}

.tbg-cart-line__heading h3 {
  overflow-wrap: anywhere;
  color: var(--tbg-dark);
  font-family: var(--wp--preset--font-family--sans, Aptos, "Segoe UI", system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
}

.tbg-cart-line__heading p {
  margin-top: 0.18rem;
  color: var(--tbg-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.tbg-cart-line__total {
  color: var(--tbg-dark);
  font-size: 0.82rem;
  white-space: nowrap;
}

.tbg-cart-line__controls {
  display: grid;
  grid-template-columns: 32px minmax(28px, auto) 32px 32px;
  align-items: center;
  gap: 0.18rem;
}

.tbg-cart-line__controls > button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--tbg-border);
  border-radius: 9px;
  background: var(--tbg-surface);
  color: var(--tbg-dark);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.tbg-cart-line__controls > button:hover {
  border-color: var(--tbg-forest);
  background: var(--tbg-sage);
}

.tbg-cart-line__controls output {
  min-width: 2.4rem;
  color: var(--tbg-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.tbg-cart-line__remove {
  grid-column: 4;
  color: var(--tbg-error) !important;
}

.tbg-cart-line__remove:hover {
  border-color: var(--tbg-error) !important;
  background: #fff1f1 !important;
}

.tbg-cart-drawer__summary {
  padding: 0.1rem 0 0.55rem;
}

.tbg-cart-drawer__summary p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  color: var(--tbg-dark);
}

.tbg-cart-drawer__summary small {
  display: block;
  margin-top: 0.28rem;
  color: var(--tbg-muted);
  line-height: 1.35;
}

.tbg-cart-drawer__utility-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.tbg-cart-drawer__utility-actions :where(button, a) {
  min-height: var(--tbg-touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border: 1.5px solid var(--tbg-forest) !important;
  border-radius: 10px;
  background: var(--tbg-surface) !important;
  color: var(--tbg-forest);
  font-size: 0.86rem !important;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.tbg-cart-drawer__utility-actions :where(button, a):hover {
  border-color: var(--tbg-forest);
  background: var(--tbg-sage);
}

.tbg-cart-drawer__utility-actions button:disabled,
.tbg-cart-drawer__reset:disabled {
  cursor: wait;
  opacity: 0.6;
}

.tbg-cart-drawer__status {
  min-height: 0;
  margin: 0.25rem 0;
  color: var(--tbg-forest);
  font-size: 0.76rem;
  font-weight: 600;
}

.tbg-cart-drawer__status.is-error {
  color: var(--tbg-error);
}

.tbg-cart-drawer__status a {
  color: inherit;
  font-weight: 700;
}

.tbg-cart-drawer__buttons,
.tbg-cart-drawer__empty-actions {
  display: grid;
  grid-template-columns: minmax(118px, 0.58fr) minmax(0, 1.42fr);
  gap: 0.55rem;
}

.tbg-cart-drawer__buttons .tbg-cart-drawer__reset {
  gap: 0.35rem;
  border: 1.5px solid rgba(176, 47, 47, 0.48);
  background: #fff1f1;
  color: #a52e2e;
  font-size: 0.86rem !important;
}

.tbg-cart-drawer__buttons .tbg-cart-drawer__reset:hover {
  border-color: #a52e2e;
  background: #ffe3e3;
}

.tbg-cart-drawer__buttons .tbg-cart-drawer__reset .tbg-icon {
  width: 1rem;
  height: 1rem;
}

.tbg-cart-drawer__buttons .tbg-cart-drawer__checkout {
  min-height: 54px;
  padding-inline: 1rem;
  font-size: 0.86rem !important;
}

.tbg-cart-drawer__buttons .tbg-button,
.tbg-cart-drawer__empty-actions .tbg-button {
  min-height: var(--tbg-touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
  text-align: center;
}

.tbg-cart-drawer__saved-link {
  min-height: var(--tbg-touch);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  color: var(--tbg-forest);
  font-size: 0.78rem;
  font-weight: 650;
}

.tbg-cart-drawer__empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 7vw, 3rem) 0.5rem;
  text-align: center;
}

.tbg-cart-drawer__empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tbg-sage);
  color: var(--tbg-forest);
}

.tbg-cart-drawer__empty-icon .tbg-icon {
  width: 1.8rem;
  height: 1.8rem;
}

.tbg-cart-drawer__empty :where(h3, p) {
  margin: 0;
}

.tbg-cart-drawer__empty h3 {
  margin-top: 0.8rem;
}

.tbg-cart-drawer__empty p {
  max-width: 32rem;
  margin: 0.4rem auto 1rem;
  color: var(--tbg-muted);
}

body.tbg-quickview-is-open {
  overflow: hidden;
}

.tbg-quickview {
  position: fixed;
  z-index: 100004;
  inset: 0;
  display: grid;
  align-items: end;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tbg-quickview[hidden] {
  display: none;
}

.tbg-quickview__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(8, 28, 19, 0.62);
  cursor: pointer;
}

.tbg-quickview__panel {
  position: relative;
  width: min(100%, 920px);
  max-height: none;
  margin-inline: auto;
  overflow: visible;
  border-radius: 22px 22px 0 0;
  background: var(--tbg-surface);
  box-shadow: 0 -20px 50px rgba(8, 28, 19, 0.24);
}

.tbg-quickview__close {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  right: 0.75rem;
  width: var(--tbg-touch);
  min-height: var(--tbg-touch);
  display: grid;
  place-items: center;
  border: 1px solid var(--tbg-border) !important;
  border-radius: 999px !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--tbg-dark);
  cursor: pointer;
}

.tbg-quickview-product {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
}

.tbg-quickview-product__media {
  min-height: 360px;
  background: var(--tbg-sage);
}

.tbg-quickview-product__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tbg-quickview-product__content {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 3vw, 2rem);
}

.tbg-quickview-product__content h2 {
  margin: 0.25rem 2.7rem 0.65rem 0;
  color: var(--tbg-dark);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.tbg-quickview-product__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--tbg-dark);
  font-size: 1.35rem;
  font-weight: 750;
}

.tbg-quickview-product__price > span:last-child {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: var(--tbg-sage);
  color: var(--tbg-forest);
  font-size: 0.72rem;
}

.tbg-quickview-product__description {
  color: var(--tbg-muted);
  line-height: 1.55;
}

.tbg-quickview-product__facts {
  display: grid;
  gap: 0;
  margin-block: 0.5rem 1rem;
}

.tbg-quickview-product__facts > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.55rem;
  border-top: 1px solid var(--tbg-border);
}

.tbg-quickview-product__facts :where(dt, dd) {
  margin: 0;
  font-size: 0.78rem;
}

.tbg-quickview-product__facts dt {
  color: var(--tbg-muted);
  font-weight: 650;
}

.tbg-quickview-product__content .tbg-home-product__controls {
  margin-top: auto;
  padding-top: 0.75rem;
}

@media (min-width: 781px) {
  .tbg-quickview {
    align-items: center;
    padding: 1rem;
  }

  .tbg-quickview__panel {
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .tbg-quickview {
    align-items: center;
    padding: .5rem;
  }

  .tbg-quickview__panel {
    width: 100%;
    border-radius: 18px;
  }

  .tbg-quickview-product {
    grid-template-columns: 1fr;
  }

  .tbg-quickview-product__media {
    display: none;
  }

  .tbg-quickview-product__content {
    padding: .85rem .85rem calc(.85rem + env(safe-area-inset-bottom));
  }

  .tbg-quickview-product__content h2 {
    margin: .15rem 2.6rem .4rem 0;
    font-size: clamp(1.35rem, 7vw, 1.7rem);
    line-height: 1.08;
  }

  .tbg-quickview-product__price {
    gap: .35rem;
    font-size: 1.05rem;
  }

  .tbg-quickview-product__description {
    margin: .45rem 0 0;
    font-size: .78rem;
    line-height: 1.35;
  }

  .tbg-quickview-product__content .tbg-home-product__controls {
    margin-top: 0;
    padding-top: 0;
  }
}

.tbg-confirm-dialog {
	position: fixed;
	z-index: 980;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.tbg-confirm-dialog__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 0;
	background: rgba(3, 32, 19, 0.62);
	backdrop-filter: blur(4px);
	cursor: default;
}

.tbg-confirm-dialog__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 410px);
	padding: clamp(1.1rem, 4vw, 1.5rem);
	border: 1px solid var(--tbg-border);
	border-radius: var(--tbg-radius-lg);
	background: var(--tbg-surface);
	box-shadow: 0 24px 70px rgba(3, 32, 19, 0.28);
	text-align: center;
}

.tbg-confirm-dialog__icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	margin: 0 auto;
	border-radius: 50%;
	background: #fff1f1;
	color: var(--tbg-error);
}

.tbg-confirm-dialog__icon .tbg-icon {
	width: 1.6rem;
	height: 1.6rem;
}

.tbg-confirm-dialog__panel :where(h2, p) {
	margin: 0;
}

.tbg-confirm-dialog__panel h2 {
	margin-top: 0.75rem;
	font-size: clamp(1.35rem, 5vw, 1.7rem);
}

.tbg-confirm-dialog__panel p {
	margin-top: 0.4rem;
	color: var(--tbg-muted);
	font-size: 0.9rem;
}

.tbg-confirm-dialog__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
	margin-top: 1.1rem;
}

.tbg-confirm-dialog__actions .tbg-button {
	min-height: var(--tbg-touch);
	width: 100%;
}

.tbg-confirm-dialog__confirm {
	background: var(--tbg-error) !important;
	color: #fff !important;
}

.tbg-confirm-dialog__confirm:hover {
	background: #9f2f2f !important;
}

.tbg-site-footer {
  border-top: 3px solid #69b8e8;
  background: #0b3d2e;
  color: #fff;
}

.tbg-site-footer__inner {
  width: min(calc(100% - 2rem), var(--wp--style--global--wide-size, 1320px));
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-inline: auto;
  padding-block: clamp(1.4rem, 3vw, 2.25rem);
}

.tbg-site-footer :where(p, address, ul) {
  margin: 0;
}

.tbg-site-footer a {
  color: inherit;
  text-decoration: none;
}

.tbg-site-footer a:hover {
  color: #9bd7fa;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.tbg-site-footer__brand {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.tbg-site-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.tbg-site-footer__logo .tbg-brand__image {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #fff;
}

.tbg-site-footer__brand > p,
.tbg-site-footer__brand address {
  max-width: 31ch;
  color: #d8e5ea;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.55;
}

.tbg-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.tbg-site-footer__social a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.74rem;
  font-weight: 650;
}

.tbg-site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 3.5rem);
}

.tbg-site-footer__column {
  min-width: 0;
}

.tbg-site-footer__column summary {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  list-style: none;
}

.tbg-site-footer__column summary::-webkit-details-marker {
  display: none;
}

.tbg-site-footer__column ul {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.65rem;
  padding: 0;
  list-style: none;
}

.tbg-site-footer__column li {
  font-size: 0.76rem;
  line-height: 1.35;
}

.tbg-site-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tbg-site-footer__bottom p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: #e7f0f3;
  font-size: 0.68rem;
}

.tbg-site-footer__payments {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e7f0f3;
}

.tbg-site-footer__payments small {
  font-size: 0.64rem;
}

.tbg-site-footer__payments b {
  min-width: 38px;
  padding: 0.28rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.63rem;
  text-align: center;
}

@media (min-width: 981px) {
  .tbg-site-footer__column > :not(summary) {
    display: grid !important;
  }

  .tbg-site-footer__column summary {
    pointer-events: none;
  }
}

.tbg-editor-site-shell {
  padding: 1rem;
  border: 1px dashed #738b4d;
  border-radius: 8px;
  background: #eaf2ec;
  color: #0b3324;
  font-weight: 600;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  body.tbg-site {
    padding-top: 0;
    padding-bottom: calc(var(--wp--custom--mobile-nav-height, 70px) + env(safe-area-inset-bottom));
  }

  body.tbg-site > .wp-site-blocks {
    padding-top: var(--wp--custom--mobile-header-height, 64px);
  }

  .tbg-site-header {
    height: var(--wp--custom--mobile-header-height, 64px);
  }

  .tbg-site-header__inner {
    width: calc(100% - 1.25rem);
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .tbg-brand {
    width: min(41vw, 154px);
    height: 58px;
  }

  .tbg-brand__image--landscape {
    max-height: 58px;
  }

  .tbg-desktop-nav,
  .tbg-header-search,
  .tbg-header-action--account {
    display: none;
  }

  .tbg-header-actions {
    grid-column: 2;
  }

  .tbg-cart-button {
    min-width: 0;
    padding-left: 0.55rem;
  }

  .tbg-cart-summary__copy > span:first-child {
    display: none;
  }

  .tbg-bottom-nav {
    position: fixed;
    z-index: 910;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(var(--wp--custom--mobile-nav-height, 70px) + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    padding: 0.3rem 0.2rem max(0.3rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--tbg-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -5px 20px rgba(4, 60, 40, 0.09);
    backdrop-filter: blur(14px);
  }

  .tbg-bottom-nav__item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.2rem 0.1rem;
    background: transparent;
    color: var(--tbg-muted);
    cursor: pointer;
  }

  .tbg-bottom-nav__item .tbg-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .tbg-bottom-nav__item span {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(0.58rem, 2.7vw, 0.7rem);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

	.tbg-bottom-nav__item:hover,
	.tbg-bottom-nav__item.is-current,
	.tbg-bottom-nav__item.is-panel-active {
		background: var(--tbg-sage);
		color: var(--tbg-forest);
	}

	.tbg-bottom-nav.is-search-active .tbg-bottom-nav__item:not(.is-panel-active) {
		background: transparent;
		color: var(--tbg-muted);
	}

  .tbg-shell-scrim {
    top: calc(var(--wp--custom--mobile-header-height, 64px) + var(--tbg-admin-offset, 0px));
    bottom: calc(var(--wp--custom--mobile-nav-height, 70px) + env(safe-area-inset-bottom));
  }

  .tbg-search-panel,
  .tbg-cart-drawer {
    top: calc(var(--wp--custom--mobile-header-height, 64px) + var(--tbg-admin-offset, 0px));
    bottom: calc(var(--wp--custom--mobile-nav-height, 70px) + env(safe-area-inset-bottom));
    width: 100%;
    max-width: none;
    border-left: 0;
    box-shadow: none;
  }

  .tbg-panel-header {
    min-height: 70px;
  }

  .tbg-site-footer {
    margin-bottom: calc(-1 * (var(--wp--custom--mobile-nav-height, 70px) + env(safe-area-inset-bottom)));
    padding-bottom: calc(var(--wp--custom--mobile-nav-height, 70px) + env(safe-area-inset-bottom));
  }

  .tbg-site-footer__inner {
    width: min(calc(100% - 1.25rem), 720px);
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tbg-site-footer__links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tbg-site-footer__column {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .tbg-site-footer__column summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .tbg-site-footer__column summary::before {
    content: "▸";
    margin-right: 0.5rem;
  }

  .tbg-site-footer__column[open] summary::before {
    content: "▾";
  }

  .tbg-site-footer__column ul {
    margin: 0 0 0.75rem 1.2rem;
  }

  .tbg-site-footer__bottom {
    grid-column: 1;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .tbg-search-form__row {
    grid-template-columns: 1fr;
  }

  .tbg-search-form__row .tbg-button {
    width: 100%;
  }

  .tbg-cart-drawer .woocommerce-mini-cart-item {
    padding-left: 0;
  }

  .tbg-cart-drawer .woocommerce-mini-cart-item img {
    display: none;
  }

  .tbg-cart-drawer .woocommerce-mini-cart-item .quantity {
    margin-left: 0;
  }

  .tbg-cart-drawer .woocommerce-mini-cart__buttons {
    grid-template-columns: 1fr;
  }

	.tbg-cart-line {
		grid-template-columns: 52px minmax(0, 1fr);
		align-items: start;
		gap: 0.65rem;
	}

	.tbg-cart-line__media {
		display: block;
		align-self: start;
	}

	.tbg-cart-line__media img {
		width: 52px;
		height: 52px;
		border: 1px solid var(--tbg-border);
		background: #fff;
	}

	.tbg-cart-line__heading {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		gap: 0.45rem;
	}

	.tbg-cart-line__end {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
	}

	.tbg-cart-line__controls {
		grid-template-columns: 29px minmax(25px, auto) 29px 29px;
	}

	.tbg-cart-line__controls > button {
		width: 29px;
		min-width: 29px;
		height: 29px;
	}

	.tbg-cart-line__total {
		margin-left: auto;
	}

		.tbg-cart-drawer__buttons,
		.tbg-cart-drawer__empty-actions {
			grid-template-columns: minmax(108px, 0.58fr) minmax(0, 1.42fr);
		}

		.tbg-cart-drawer__buttons .tbg-cart-drawer__reset {
			width: auto;
			justify-self: stretch;
		}

	.tbg-search-results__grid {
		gap: 0.5rem;
	}
}

/* Phase 10.8 basket, receiving strip and footer refinements. */
.tbg-cart-drawer__empty-actions {
	grid-template-columns: minmax(0, 1fr);
}

.tbg-cart-drawer .tbg-panel-header {
  min-height: 64px;
  padding-block: 0.55rem;
}

.tbg-cart-drawer__title {
  margin: 0 !important;
  color: var(--tbg-dark);
  font-size: 1.02rem !important;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.tbg-cart-drawer__products .tbg-cart-drawer__summary {
  margin-top: 0;
  padding: 0.7rem 0 0.35rem;
  border-top: 1px solid var(--tbg-border);
  font-size: 0.92rem;
}

.tbg-cart-drawer__products .tbg-cart-drawer__summary strong {
  font-size: 1.02rem;
}

.tbg-cart-drawer__footer {
  padding-top: 0.45rem;
}

.tbg-cart-drawer__footer .tbg-delivery-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.tbg-cart-drawer__footer .tbg-delivery-progress p {
  margin: 0;
  white-space: nowrap;
}

.tbg-cart-drawer__buttons {
  grid-template-columns: minmax(132px, 0.72fr) minmax(0, 1.28fr);
}

.tbg-cart-drawer__buttons .tbg-cart-drawer__reset,
.tbg-cart-drawer__buttons .tbg-cart-drawer__checkout {
  min-height: 48px;
  font-size: 0.88rem !important;
}

.tbg-journey-bar__inner {
  justify-content: flex-start;
}

.tbg-journey-bar__inner > div {
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}

.tbg-site-footer__payments b {
  display: none;
}

@media (max-width: 980px) {
  .tbg-site-footer__column summary,
  .tbg-site-footer__column ul,
  .tbg-site-footer__column li,
  .tbg-site-footer__column a {
    text-align: left !important;
  }

  .tbg-site-footer__column summary {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .tbg-cart-drawer__footer .tbg-delivery-progress {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
  }

  .tbg-cart-drawer__footer .tbg-delivery-progress p {
    font-size: 0.68rem;
  }

  .tbg-cart-drawer__buttons {
    grid-template-columns: minmax(124px, 0.72fr) minmax(0, 1.28fr);
  }
}

/* Phase 10.9 open-order badge and mobile-footer authority. */
.tbg-header-action--account,
.tbg-bottom-nav__item {
  position: relative;
}

.tbg-profile-order-badge {
  position: absolute;
  z-index: 2;
  width: 20px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--tbg-error, #b54444);
  color: #fff;
  font-size: 0.62rem !important;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(11, 51, 36, 0.2);
}

.tbg-header-action--account .tbg-profile-order-badge {
  top: 0;
  left: 1.55rem;
}

.tbg-bottom-nav__item .tbg-profile-order-badge {
  top: 0.15rem;
  left: calc(50% + 0.25rem);
}

@media (max-width: 980px) {
  .tbg-site-footer__inner,
  .tbg-site-footer__links,
  .tbg-site-footer__column,
  .tbg-site-footer__column summary,
  .tbg-site-footer__column ul,
  .tbg-site-footer__bottom,
  .tbg-site-footer__bottom p,
  .tbg-site-footer__payments {
    justify-content: flex-start !important;
    justify-items: start !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .tbg-site-footer__column,
  .tbg-site-footer__column summary,
  .tbg-site-footer__column ul,
  .tbg-site-footer__bottom,
  .tbg-site-footer__payments {
    width: 100%;
  }

  .tbg-site-footer__column summary {
    flex-direction: row !important;
  }

  .tbg-site-footer__payments {
    align-self: flex-start !important;
    margin-left: 0 !important;
  }
}
