/* =============================================================================
   THAT BRAND — GLOBAL STYLES
   ============================================================================= */

/* Custom Properties
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  --tb-dark:      #16150F;
  --tb-light:     #EAE7DF;
  --tb-font-body: 'Archivo', sans-serif;
  --tb-font-mono: 'Space Mono', monospace;

  /* Override Bootstrap/Picostrap colour variables so their components
     inherit the brand palette instead of Bootstrap's default blue.        */
  --bs-font-sans-serif:    'Archivo', sans-serif !important;
  --bs-body-font-family:   'Archivo', sans-serif !important;
  --bs-primary:            #16150F;
  --bs-primary-rgb:        22, 21, 15;
  --bs-link-color:         #16150F;
  --bs-link-color-rgb:     22, 21, 15;
  --bs-link-hover-color:   #16150F;
  --bs-focus-ring-color:   rgba(22, 21, 15, 0.25);
  --bs-focus-ring-width:   2px;
}

/* Base
   ─────────────────────────────────────────────────────────────────────────── */
html,
body {
  background-color: var(--tb-light);
  color: var(--tb-dark);
  font-family: var(--tb-font-body) !important;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--tb-dark);
  color: var(--tb-light);
}

/* Headings — Archivo, always
   ─────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.tb-display-heading {
  font-family: var(--tb-font-body) !important;
}

/* Logo — Archivo 900, defeats any Picostrap/Bootstrap navbar override
   ─────────────────────────────────────────────────────────────────────────── */
.tb-logo,
.tb-logo a,
header .navbar-brand,
.site-title,
.site-title a {
  font-family: var(--tb-font-body) !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em;
  font-size: 21px;
  text-decoration: none;
  color: var(--tb-dark) !important;
}

/* Nav links — Space Mono
   ─────────────────────────────────────────────────────────────────────────── */
.navbar-nav .nav-link,
header nav a,
.tb-nav-link {
  font-family: var(--tb-font-mono) !important;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Global link reset — kill Bootstrap/browser default blue
   ─────────────────────────────────────────────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

/* Kill default blue border/outline on linked images
   ─────────────────────────────────────────────────────────────────────────── */
a img,
a picture {
  border: none;
  outline: none;
  display: block;
}

/* Focus — replace browser blue with brand dark
   ─────────────────────────────────────────────────────────────────────────── */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--tb-dark);
  outline-offset: 2px;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
}

/* Navbar toggler — kill Bootstrap's default blue focus ring
   ─────────────────────────────────────────────────────────────────────────── */
.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none;
}

/* Navbar
   ─────────────────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(234, 231, 223, 0.82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tb-dark) !important;
}

.navbar-brand {
  font-family: var(--tb-font-body) !important;
  font-weight: 900 !important;
  font-size: 21px !important;
  letter-spacing: 0.14em !important;
  color: var(--tb-dark) !important;
  text-transform: uppercase;
}

.navbar .nav-link {
  font-family: var(--tb-font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: var(--tb-dark) !important;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  padding-left: 0;
  padding-right: 0;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  opacity: 1 !important;
  color: var(--tb-dark) !important;
  background-color: transparent !important;
}

/* Header layout
   ─────────────────────────────────────────────────────────────────────────── */

/* Three-column flex row that sits inside .navbar */
.tb-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
  padding: 0 52px;
  gap: 24px;
}

/* Left col — flex: 1 so it balances the right col */
.tb-header__left {
  flex: 1;
}

/* Logo is already .tb-logo; force it centered between the two sides */
.tb-header .tb-logo {
  flex-shrink: 0;
}

/* Right col — flex: 1, content pushed to the right edge */
.tb-header__right {
  flex: 1;
  justify-content: flex-end;
}

/* Bag button — unstyled, inherits nav-link look */
.tb-header__bag {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

/* Hamburger toggle — visible on mobile only
   ─────────────────────────────────────────────────────────────────────────── */
.tb-header__toggle {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  display: none; /* hidden on desktop */
}

/* Three-line hamburger icon */
.tb-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.tb-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--tb-dark);
  border-radius: 0;
  transition: opacity 0.15s ease;
}

/* ── MOBILE BREAKPOINT (< 992px) ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .tb-header__inner {
    padding: 0 20px;
    position: relative; /* anchor absolute logo */
  }

  /* Show toggle */
  .tb-header__toggle {
    display: flex;
    align-items: center;
    order: -1; /* always first */
  }

  /* Hide desktop nav */
  .tb-header__left {
    display: none !important;
  }

  /* Logo: absolute centre between toggle + bag */
  .tb-header .tb-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .tb-header__right {
    flex: 0;
    margin-left: auto;
    gap: 12px;
  }

  /* Hide "Search" text on mobile */
  .tb-header__search-link {
    display: none;
  }
}

/* ── LEFT-SIDE MOBILE NAVIGATION PANEL ──────────────────────────────────── */

#tb-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 21, 15, 0.5);
  z-index: 9996;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#tb-mobile-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#tb-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--tb-light);
  border-right: 1px solid var(--tb-dark);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

#tb-mobile-menu.is-open {
  transform: translateX(0);
}

.tb-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--tb-dark);
  flex-shrink: 0;
}

.tb-mobile-menu__label {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tb-dark);
  opacity: 0.55;
}

.tb-mobile-menu__close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--tb-dark);
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.tb-mobile-menu__close:hover {
  opacity: 1;
}

.tb-mobile-menu__nav {
  flex: 1;
  padding: 32px 24px;
}

.tb-mobile-menu__list {
  display: flex;
  flex-direction: column;
}

/* Nav items */
.tb-mobile-menu__list li {
  border-bottom: 1px solid rgba(22, 21, 15, 0.1);
}

.tb-mobile-menu__list a {
  display: block;
  font-family: var(--tb-font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-dark);
  padding: 16px 0;
  opacity: 0.75;
  transition: opacity 0.15s ease;
  text-decoration: none;
}

.tb-mobile-menu__list a:hover {
  opacity: 1;
}

/* Sub-menu items (depth 2) */
.tb-mobile-menu__list .sub-menu {
  list-style: none;
  padding: 0 0 8px 16px;
}

.tb-mobile-menu__list .sub-menu a {
  font-size: 12px;
  padding: 10px 0;
  opacity: 0.55;
}

/* Prevent body scroll while menu open */
body.tb-nav-open {
  overflow: hidden;
}

/* Announcement bar
   ─────────────────────────────────────────────────────────────────────────── */
.tb-announcement {
  background: var(--tb-dark);
  color: var(--tb-light);
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 16px;
  text-align: center;
  width: 100%;
}

/* Buttons
   ─────────────────────────────────────────────────────────────────────────── */
.btn-tb-primary,
.btn-tb-outline {
  display: inline-block;
  padding: 14px 24px;
  font-family: var(--tb-font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}

.btn-tb-primary {
  background: var(--tb-dark);
  color: var(--tb-light) !important;
  border: none;
}

.btn-tb-primary:hover,
.btn-tb-primary:focus {
  opacity: 0.85;
  color: var(--tb-light) !important;
  text-decoration: none;
}

.btn-tb-outline {
  background: transparent;
  color: var(--tb-dark) !important;
  border: 1px solid var(--tb-dark);
}

.btn-tb-outline:hover,
.btn-tb-outline:focus {
  opacity: 0.65;
  color: var(--tb-dark) !important;
  text-decoration: none;
}

/* Typography utilities
   ─────────────────────────────────────────────────────────────────────────── */
.tb-section-label {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  display: block;
}

.tb-display-heading {
  font-family: var(--tb-font-body);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(34px, 4.8vw, 68px);
  color: inherit;
}

/* Section dividers
   ─────────────────────────────────────────────────────────────────────────── */
.tb-section {
  border-bottom: 1px solid var(--tb-dark);
  padding-top:    clamp(48px, 5vw, 60px);
  padding-bottom: clamp(48px, 5vw, 60px);
}

/* WooCommerce — notices (remove default WC blue)
   ─────────────────────────────────────────────────────────────────────────── */
@keyframes tb-notice-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  background:   rgba(22, 21, 15, 0.05) !important;
  color:        var(--tb-dark)  !important;
  border-top:   none !important;
  border-left:  5px solid var(--tb-dark) !important;
  padding:      18px 24px 18px 44px !important;
  font-family:  var(--tb-font-mono);
  font-size:    13px;
  font-weight:  700;
  letter-spacing: 0.04em;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: tb-notice-in 0.3s ease;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--tb-dark) !important;
  top: 1.1em !important;
}

.woocommerce-error::before {
  color: var(--tb-dark) !important;
}

/* WooCommerce info notice — override default teal/blue border */
.woocommerce-info {
  border-top-color: var(--tb-dark) !important;
}
.woocommerce-info::before {
  color: var(--tb-dark) !important;
}

/* "Undo?" link on the removed-from-cart notice — make it read as a clear
   call to action rather than blending into the message text. */
.woocommerce-message .restore-item {
  color: var(--tb-dark) !important;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
}

.woocommerce-message .restore-item:hover {
  opacity: 0.65;
}

/* WooCommerce — buttons (override WC defaults to match brand)
   ─────────────────────────────────────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.woocommerce .cart input.button,
.woocommerce #place_order,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button {
  background:      var(--tb-dark)  !important;
  color:           var(--tb-light) !important;
  font-family:     var(--tb-font-mono) !important;
  font-size:       12px !important;
  font-weight:     400 !important;
  letter-spacing:  0.08em !important;
  text-transform:  uppercase !important;
  border-radius:   0 !important;
  padding:         14px 24px !important;
  border:          none !important;
  transition:      opacity 0.15s ease !important;
  box-shadow:      none !important;
  text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .cart .button:hover,
.woocommerce #place_order:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover {
  background: var(--tb-dark)  !important;
  color:      var(--tb-light) !important;
  opacity:    0.85;
}

/* WooCommerce — alt/secondary button (e.g. "View Cart")
   ─────────────────────────────────────────────────────────────────────────── */
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--tb-dark)  !important;
  color:      var(--tb-light) !important;
}

/* Footer — brand column
   ─────────────────────────────────────────────────────────────────────────── */

.tb-footer__logo {
  display: block;
  max-width: 80px;
  height: auto;
  margin-bottom: 16px;
  opacity: 0.85;
}

.tb-footer__brand-name {
  font-family: var(--tb-font-body);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tb-light);
  margin: 0 0 6px;
}

.tb-footer__tagline {
  font-family: var(--tb-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-light);
  opacity: 0.45;
  margin: 0;
}

/* Footer nav links
   wp_nav_menu outputs <ul class="tb-footer__nav"><li><a class="tb-nav-link">
   Override opacity and colour so they read on the dark background.          */

.tb-footer__nav li {
  margin-bottom: 10px;
}

.tb-footer__nav .tb-nav-link {
  color: var(--tb-light) !important;
  opacity: 0.7;
  font-size: 13px;
}

.tb-footer__nav .tb-nav-link:hover {
  opacity: 1;
  color: var(--tb-light) !important;
}

/* Footer grid — responsive columns
   4-col desktop → 2-col tablet → 1-col mobile                              */

@media (max-width: 900px) {
  .tb-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tb-footer__grid {
    grid-template-columns: 1fr;
    padding-left:  20px;
    padding-right: 20px;
  }
}

/* =============================================================================
   CART DRAWER
   ============================================================================= */

#tb-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 21, 15, 0.48);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#tb-cart-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#tb-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 75vw;
  height: 100vh;
  background: var(--tb-light);
  border-left: 1px solid var(--tb-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

#tb-cart-drawer.is-open {
  transform: translateX(0);
}

.tb-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--tb-dark);
  flex-shrink: 0;
}

.tb-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-drawer__title {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-dark);
}

.tb-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tb-dark);
  color: var(--tb-light);
  border-radius: 9px;
  min-width: 18px;
  height: 18px;
  font-family: var(--tb-font-mono);
  font-size: 10px;
  line-height: 1;
  padding: 0 4px;
}

.tb-drawer__close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--tb-dark);
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.tb-drawer__close:hover {
  opacity: 1;
}

.tb-drawer__items {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tb-drawer__empty {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
  text-align: center;
  padding: 48px 24px;
  margin: 0;
}

/* Drawer item */
.tb-drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr 24px;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--tb-dark);
  align-items: start;
}

.tb-drawer-item__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(22, 21, 15, 0.04);
  flex-shrink: 0;
}

.tb-drawer-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tb-drawer-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tb-drawer-item__name {
  font-family: var(--tb-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--tb-dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-drawer-item__variant {
  font-family: var(--tb-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

.tb-drawer-item__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.tb-drawer-item__qty,
.tb-drawer-item__price {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  opacity: 0.65;
  color: var(--tb-dark);
}

.tb-drawer-remove {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--tb-dark);
  cursor: pointer;
  padding: 0;
  opacity: 0.35;
  transition: opacity 0.15s ease;
  justify-self: end;
  align-self: start;
  margin-top: 2px;
}

.tb-drawer-remove:hover {
  opacity: 1;
}

/* Drawer footer */
.tb-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--tb-dark);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.tb-drawer__subtotal-label {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--tb-dark);
}

.tb-drawer__subtotal-value {
  font-family: var(--tb-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--tb-dark);
}

.tb-drawer__checkout {
  display: block;
  text-align: center;
  width: 100%;
  padding: 16px 24px !important;
}

.tb-drawer__continue {
  background: none;
  border: none;
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-dark);
  opacity: 0.5;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  transition: opacity 0.15s ease;
  width: 100%;
}

.tb-drawer__continue:hover {
  opacity: 1;
}

body.tb-drawer-open {
  overflow: hidden;
}

/* =============================================================================
   HOMEPAGE — SECTION 1: HERO
   ============================================================================= */

.tb-hero {
  position: relative;
  height: 94vh;
  min-height: 600px;
  background: var(--tb-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 52px;
  /* Override .tb-section vertical padding */
  padding-top: 0;
}

.tb-about-hero {
  height: 90vh;
}

.tb-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 21, 15, 0.40) 0%,
    rgba(22, 21, 15, 0.78) 100%
  );
}

/* Corner labels */
.tb-hero__label-tl,
.tb-hero__label-tr {
  position: absolute;
  top: 28px;
  color: var(--tb-light);
  opacity: 0.65;
  z-index: 2;
}

.tb-hero__label-tl { left: 52px; }
.tb-hero__label-tr { right: 52px; }

.tb-hero__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tb-hero__headline {
  font-family: var(--tb-font-body);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(54px, 14vw, 210px);
  color: var(--tb-light);
  margin: 0;
}

.tb-hero__bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.tb-hero__sub {
  font-family: var(--tb-font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--tb-light);
  opacity: 0.7;
  margin: 0;
}

/* Outline button reversed on dark bg */
.tb-hero__cta {
  color:        var(--tb-light) !important;
  border-color: var(--tb-light);
  flex-shrink: 0;
}

.tb-hero__cta:hover {
  opacity: 0.75;
  color: var(--tb-light) !important;
}

@media (max-width: 767px) {
  .tb-hero {
    padding: 0 20px 40px;
    height: 88vh;
  }

  .tb-hero__label-tl { left: 20px; }
  .tb-hero__label-tr { right: 20px; }

  .tb-hero__bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* =============================================================================
   HOMEPAGE — SECTION 2: SPREAD
   ============================================================================= */

.tb-spread {
  position: relative;
  height: 96vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 48px 52px;
  padding-top: 0;
}

.tb-spread__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tb-spread__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 21, 15, 0.40) 0%,
    rgba(22, 21, 15, 0.78) 100%
  );
}

.tb-spread__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 24px;
}

.tb-spread__heading {
  font-family: var(--tb-font-body);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(34px, 5.2vw, 82px);
  color: var(--tb-light);
  margin: 0;
}

.tb-spread__label {
  color: var(--tb-light);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .tb-spread {
    padding: 0 20px 40px;
    height: 80vh;
  }
}

/* =============================================================================
   HOMEPAGE — SECTION 3: COLLECTION SELECTOR
   Grid is full-width; only the header row gets horizontal padding.
   ============================================================================= */

.tb-collections-section {
  padding-left:  0;
  padding-right: 0;
}

/* Shared header row (reused by catalog-header, as-worn header, etc.) */
.tb-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 52px clamp(32px, 3vw, 40px);
}

/* Border-box grid */
.tb-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top:  1px solid var(--tb-dark);
  border-left: 1px solid var(--tb-dark);
}

.tb-collection-tile {
  border-right:  1px solid var(--tb-dark);
  border-bottom: 1px solid var(--tb-dark);
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* Image */
.tb-collection-tile__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(22, 21, 15, 0.04);
}

.tb-collection-tile__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.tb-collection-tile:hover .tb-collection-tile__image-wrap img {
  transform: scale(1.03);
  opacity: 0.88;
}

/* Gradient overlay — darkens bottom so info bar reads well */
.tb-collection-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(22, 21, 15, 0.5) 100%
  );
  pointer-events: none;
}

/* Info bar below image */
.tb-collection-tile__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 20px;
  gap: 12px;
}

.tb-collection-tile__name {
  font-family: var(--tb-font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--tb-dark);
  line-height: 1.3;
}

.tb-collection-tile__meta {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--tb-dark);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tb-collection-tile:hover .tb-collection-tile__meta {
  opacity: 1;
}

.tb-collection-tile__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.tb-collection-tile:hover .tb-collection-tile__arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .tb-collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tb-collections-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .tb-catalog-header {
    padding-left:  20px;
    padding-right: 20px;
  }
}

/* =============================================================================
   HOMEPAGE — SECTION 3b: FEATURED PRODUCTS ROW
   data-cols="3|4"         controls desktop column count
   data-cols-mobile="1|2"  controls mobile column count
   Card styling reuses .tb-shop-card rules from the shop section below.
   ============================================================================= */

.tb-fp-section {
  padding-left:  0;
  padding-right: 0;
}

/* Base grid — 3 columns, same border-box pattern as the shop grid */
.tb-fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top:  1px solid var(--tb-dark);
  border-left: 1px solid var(--tb-dark);
}

.tb-fp-grid[data-cols="4"] {
  grid-template-columns: repeat(4, 1fr);
}

/* Tablet: auto-collapse 4-col to 2 so cards don't get too narrow */
@media (min-width: 541px) and (max-width: 900px) {
  .tb-fp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: data-cols-mobile drives layout */
@media (max-width: 540px) {
  .tb-fp-grid {
    grid-template-columns: 1fr; /* default: 1 column */
  }

  .tb-fp-grid[data-cols-mobile="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================================================
   HOMEPAGE — SECTION 4: BRAND SPLIT
   ============================================================================= */

.tb-brand-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  padding: 0;
}

.tb-brand-split__image-col {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--tb-dark);
}

.tb-brand-split__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 4 / 3;
}

.tb-brand-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  gap: 20px;
}

.tb-brand-split__body {
  font-size: 15.5px;
  line-height: 1.65;
  opacity: 0.8;
  max-width: 36ch;
}

.tb-brand-split__cta {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .tb-brand-split {
    grid-template-columns: 1fr;
  }

  .tb-brand-split__image-col {
    border-right: none;
    border-bottom: 1px solid var(--tb-dark);
  }

  .tb-brand-split__image {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .tb-brand-split__content {
    padding: 40px 20px;
  }
}

/* =============================================================================
   HOMEPAGE — SECTION 5: AS WORN
   ============================================================================= */

.tb-as-worn-section {
  padding-left:  0;
  padding-right: 0;
}

.tb-as-worn__ig-link {
  text-decoration: none;
  display: block;
  transition: opacity 0.15s ease;
}

.tb-as-worn__ig-link:hover {
  opacity: 1;
  color: var(--tb-dark);
}

.tb-as-worn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top:  1px solid var(--tb-dark);
  border-left: 1px solid var(--tb-dark);
}

.tb-as-worn-grid__cell {
  border-right:  1px solid var(--tb-dark);
  border-bottom: 1px solid var(--tb-dark);
  overflow: hidden;
  aspect-ratio: 1;
}

.tb-as-worn-grid__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.tb-as-worn-grid__cell:hover img {
  opacity: 0.88;
}

@media (max-width: 767px) {
  .tb-as-worn-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   HOMEPAGE — SECTION 6: NEWSLETTER
   ============================================================================= */

.tb-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.tb-newsletter__copy {
  padding-right: 52px;
  border-right: 1px solid var(--tb-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tb-newsletter__sub {
  font-size: 14px;
  opacity: 0.65;
  margin: 0;
  max-width: 36ch;
}

.tb-newsletter__form-col {
  padding-left: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tb-newsletter-form__row {
  display: flex;
  gap: 0;
}

.tb-newsletter-form__row .tb-input {
  flex: 1 1 auto;
  border-right: none;
}

.tb-newsletter-form__row .btn-tb-primary {
  flex-shrink: 0;
}

.tb-newsletter__success {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

@media (max-width: 767px) {
  .tb-newsletter {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tb-newsletter__copy {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--tb-dark);
    padding-bottom: 40px;
  }

  .tb-newsletter__form-col {
    padding-left: 0;
  }

  .tb-newsletter-form__row {
    flex-direction: column;
    gap: 12px;
  }

  .tb-newsletter-form__row .tb-input {
    border-right: 1px solid var(--tb-dark);
  }
}

/* =============================================================================
   ABOUT PAGE — SECTION 2: BRAND STATEMENT (wysiwyg)
   ============================================================================= */

.tb-brand-statement {
  display: flex;
  justify-content: center;
}

.tb-brand-statement__inner {
  width: 100%;
  max-width: 820px;
}

/* Consistent typography for ACF wysiwyg output */
.tb-wysiwyg h2 {
  font-family: var(--tb-font-body);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(28px, 3.8vw, 52px);
  color: var(--tb-dark);
  margin: 0 0 0.5em;
}

.tb-wysiwyg h3 {
  font-family: var(--tb-font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 2.4vw, 32px);
  margin: 1.5em 0 0.4em;
}

.tb-wysiwyg p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--tb-dark);
  opacity: 0.85;
  margin: 0 0 1.2em;
}

.tb-wysiwyg a {
  color: var(--tb-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tb-wysiwyg ul,
.tb-wysiwyg ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

.tb-wysiwyg li {
  line-height: 1.65;
  margin-bottom: 0.3em;
}

/* =============================================================================
   ABOUT PAGE — SECTION 3: VALUES GRID
   ============================================================================= */

.tb-values-header {
  padding-bottom: clamp(32px, 3vw, 40px);
}

.tb-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top:  1px solid var(--tb-dark);
  border-left: 1px solid var(--tb-dark);
}

.tb-value-cell {
  border-right:  1px solid var(--tb-dark);
  border-bottom: 1px solid var(--tb-dark);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Even cells: dark background */
.tb-value-cell--dark {
  background: var(--tb-dark);
  color: var(--tb-light);
}

.tb-value-cell--dark .tb-section-label {
  color: var(--tb-light);
}

.tb-value-cell__body {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .tb-values-grid {
    grid-template-columns: 1fr;
  }

  /* Reset alternating on mobile (every other row would look broken) */
  .tb-value-cell--dark {
    background: var(--tb-dark);
  }

  .tb-value-cell {
    padding: 28px 20px;
  }
}

/* =============================================================================
   ABOUT PAGE — SECTION 4: FULL-BLEED SPREAD (no overlay)
   ============================================================================= */

.tb-about-spread {
  overflow: hidden;
  padding: 0;
  display: block;
}

.tb-about-spread__image {
  display: block;
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center;
}

/* =============================================================================
   ABOUT PAGE — SECTION 5: TEAM
   ============================================================================= */

.tb-team-section {
  padding-left:  0;
  padding-right: 0;
}

.tb-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top:  1px solid var(--tb-dark);
  border-left: 1px solid var(--tb-dark);
}

.tb-team-card {
  border-right:  1px solid var(--tb-dark);
  border-bottom: 1px solid var(--tb-dark);
}

.tb-team-card__image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(22, 21, 15, 0.04);
}

.tb-team-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tb-team-card__info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tb-team-card__name {
  font-family: var(--tb-font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--tb-dark);
}

.tb-team-card__role {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  color: var(--tb-dark);
}

@media (max-width: 900px) {
  .tb-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tb-team-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   ABOUT PAGE — SECTION 6: CTA BANNER
   ============================================================================= */

.tb-cta-banner {
  background: var(--tb-dark);
  color: var(--tb-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 52px;
  gap: 36px;
  border-bottom: none;
}

.tb-cta-banner__heading {
  font-family: var(--tb-font-body);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(34px, 4.8vw, 68px);
  color: var(--tb-light);
  margin: 0;
  max-width: 16ch;
}

/* Reversed outline button: border + text light; hover fills light */
.tb-cta-banner__btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tb-light) !important;
  border: 1px solid var(--tb-light);
  background: transparent;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.tb-cta-banner__btn:hover {
  background: var(--tb-light);
  color: var(--tb-dark) !important;
}

@media (max-width: 767px) {
  .tb-cta-banner {
    padding: 60px 20px;
  }
}

/* =============================================================================
   PARALLAX BANNER
   ============================================================================= */

.tb-parallax-banner {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--tb-dark);
}

/* The actual image layer — inset beyond the section so translateY has room */
.tb-parallax-banner__bg {
  position: absolute;
  inset: -25% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  pointer-events: none;
}

.tb-parallax-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 21, 15, 0.35) 0%,
    rgba(22, 21, 15, 0.72) 100%
  );
  pointer-events: none;
}

.tb-parallax-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--tb-light);
  padding: 80px 52px;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.tb-parallax-banner__content .tb-section-label {
  color: var(--tb-light);
  opacity: 0.65;
}

.tb-parallax-banner__content .tb-display-heading {
  color: var(--tb-light);
}

.tb-parallax-banner__content .btn-tb-outline {
  color:        var(--tb-light) !important;
  border-color: var(--tb-light);
}

.tb-parallax-banner__content .btn-tb-outline:hover {
  opacity: 0.75;
}

/* =============================================================================
   CONTACT PAGE — SECTION 1: PAGE HEADER
   ============================================================================= */

.tb-contact-page-header {
  position: relative;
  height: 40vh;
  min-height: 320px;
  background: var(--tb-dark);
  color: var(--tb-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

/* CSS-only grid texture */
.tb-contact-page-header__texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(234, 231, 223, 0.04) 0px, rgba(234, 231, 223, 0.04) 1px,
      transparent 1px, transparent 48px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(234, 231, 223, 0.04) 0px, rgba(234, 231, 223, 0.04) 1px,
      transparent 1px, transparent 48px
    );
  pointer-events: none;
}

.tb-contact-page-header__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

.tb-contact-page-header__label {
  color: var(--tb-light);
}

.tb-contact-page-header__heading {
  font-family: var(--tb-font-body);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--tb-light);
  margin: 0;
}

/* =============================================================================
   CONTACT PAGE — SECTION 2: CONTACT SPLIT
   ============================================================================= */

.tb-contact-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 0;
}

.tb-contact-split__left,
.tb-contact-split__right {
  padding: 64px 52px;
}

.tb-contact-split__left {
  border-right: 1px solid var(--tb-dark);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tb-contact-split__intro {
  font-family: var(--tb-font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 36ch;
  color: var(--tb-dark);
  margin: 0;
}

.tb-contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tb-contact-link {
  font-family: var(--tb-font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--tb-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.15s ease;
}

.tb-contact-link:hover {
  opacity: 0.6;
  color: var(--tb-dark);
}

.tb-contact-response {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-contact-response__text {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.65;
  margin: 0;
}

/* Form fields */
.tb-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tb-form-label {
  font-family: var(--tb-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--tb-dark);
}

.tb-form-label__optional {
  opacity: 0.5;
  font-size: 9px;
}

.tb-form-footer {
  margin-top: 8px;
}

/* Success / error feedback */
.tb-form-feedback {
  margin-top: 16px;
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  min-height: 1.4em;
}

.tb-form-feedback--success {
  color: var(--tb-dark);
  opacity: 0.8;
}

.tb-form-feedback--error {
  color: var(--tb-dark);
  border-left: 3px solid var(--tb-dark);
  padding-left: 12px;
}

@media (max-width: 900px) {
  .tb-contact-split {
    grid-template-columns: 1fr;
  }

  .tb-contact-split__left {
    border-right: none;
    border-bottom: 1px solid var(--tb-dark);
  }

  .tb-contact-split__left,
  .tb-contact-split__right {
    padding: 40px 20px;
  }
}

/* =============================================================================
   CONTACT PAGE — SECTION 3: FAQ ACCORDION
   ============================================================================= */

.tb-faq-section {
  padding-left:  0;
  padding-right: 0;
}

.tb-faq-header {
  padding: 0 52px clamp(32px, 3vw, 40px);
}

.tb-faq-list {
  border-top: 1px solid var(--tb-dark);
}

.tb-faq-item {
  border-bottom: 1px solid var(--tb-dark);
  transition: border-left 0.15s ease;
}

/* Open state: accent border-left */
.tb-faq-item.is-open {
  border-left: 3px solid var(--tb-dark);
}

.tb-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 52px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.tb-faq-question__text {
  font-family: var(--tb-font-body);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--tb-dark);
  line-height: 1.4;
}

.tb-faq-icon {
  font-family: var(--tb-font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--tb-dark);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tb-faq-answer {
  padding: 0 52px 28px;
}

.tb-faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.75;
  margin: 0;
  max-width: 72ch;
}

@media (max-width: 767px) {
  .tb-faq-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .tb-faq-question {
    padding-left:  20px;
    padding-right: 20px;
  }

  .tb-faq-answer {
    padding-left:  20px;
    padding-right: 20px;
  }
}

/* =============================================================================
   SHOP / COLLECTION — SECTION 1: COLLECTION HEADER
   ============================================================================= */

.tb-collection-header {
  background: var(--tb-dark);
  color: var(--tb-light);
  display: flex;
  align-items: flex-end;
  min-height: 50vh;
  padding: 0;
}

.tb-collection-header__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 52px 52px 48px;
}

.tb-collection-header__label {
  color: var(--tb-light);
  opacity: 0.55;
}

.tb-collection-header__heading {
  font-family: var(--tb-font-body);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(42px, 7vw, 96px);
  color: var(--tb-light);
  margin: 0;
}

.tb-collection-header__bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(234, 231, 223, 0.18);
}

.tb-collection-header__count {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tb-light);
  opacity: 0.55;
}

/* WC sort dropdown — restyled to match design system */
.tb-collection-header .woocommerce-ordering,
.woocommerce-ordering {
  margin: 0;
}

.woocommerce-ordering select,
select.orderby {
  appearance:      none;
  -webkit-appearance: none;
  background:      var(--tb-dark);
  color:           var(--tb-light);
  border:          1px solid rgba(234, 231, 223, 0.35);
  border-radius:   0;
  font-family:     var(--tb-font-mono);
  font-size:       11px;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  padding:         10px 36px 10px 16px;
  cursor:          pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23EAE7DF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.woocommerce-ordering select:focus,
select.orderby:focus {
  outline: 1px solid rgba(234, 231, 223, 0.6);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .tb-collection-header__inner {
    padding: 32px 20px 36px;
  }

  .tb-collection-header__bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* =============================================================================
   SHOP / COLLECTION — SECTION 2: FILTER BAR
   ============================================================================= */

.tb-filter-bar {
  position: sticky;
  top: 64px; /* matches .tb-header height */
  z-index: 40;
  background: var(--tb-light);
  border-bottom: 1px solid var(--tb-dark);
}

.tb-filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 52px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tb-filter-bar__inner::-webkit-scrollbar {
  display: none;
}

.tb-filter-btn {
  display: inline-block;
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 20px;
  border-right: 1px solid var(--tb-dark);
  color: var(--tb-dark);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tb-filter-btn:first-child {
  border-left: 1px solid var(--tb-dark);
}

.tb-filter-btn:hover {
  background: rgba(22, 21, 15, 0.06);
  color: var(--tb-dark);
}

.tb-filter-btn.is-active {
  background: var(--tb-dark);
  color: var(--tb-light) !important;
}

@media (max-width: 767px) {
  .tb-filter-bar__inner {
    padding: 0 20px;
  }

  .tb-filter-bar {
    top: 56px;
  }
}

/* =============================================================================
   SHOP / COLLECTION — SECTION 3: PRODUCT GRID
   ============================================================================= */

.tb-shop-body {
  border-bottom: 1px solid var(--tb-dark);
}

/* Override WC's default ul.products */
ul.products,
.tb-shop-grid {
  display: grid !important;
  grid-template-columns: repeat( 3, 1fr );
  list-style: none !important;
  margin:   0 !important;
  padding:  0 !important;
  border-top:  1px solid var(--tb-dark);
  border-left: 1px solid var(--tb-dark);
}

.tb-shop-card,
ul.products li.product {
  border-right:  1px solid var(--tb-dark) !important;
  border-bottom: 1px solid var(--tb-dark) !important;
  position: relative;
  /* WC core ships ul.products li.product with float:left; width:22.05%;
     margin:0 3.8% 2.992em 0 — float is ignored in a grid, but width/margin
     aren't, so cards render far narrower than their grid column without this. */
  float:  none !important;
  width:  auto !important;
  margin: 0 !important;
}

/* Image wrap */
.tb-shop-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(22, 21, 15, 0.04);
}

.tb-shop-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.tb-shop-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Primary always visible */
.tb-shop-card__image--primary {
  z-index: 1;
  transition: opacity 0.35s ease;
}

/* Hover image hidden until hover */
.tb-shop-card__image--hover {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tb-shop-card:hover .tb-shop-card__image--hover {
  opacity: 1;
}

.tb-shop-card:hover .tb-shop-card__image--primary {
  opacity: 0;
}

/* Sale badge */
.tb-sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--tb-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--tb-dark);
  color: var(--tb-light);
  padding: 4px 8px;
  z-index: 3;
}

/* Quick-add button — hidden by default, slides up on hover */
.tb-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  width: 100%;
  border-radius: 0;
  padding: 14px;
  font-size: 11px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  text-decoration: none;
}

.tb-shop-card:hover .tb-quick-add,
.tb-shop-card:focus-within .tb-quick-add {
  transform: translateY(0);
}

.tb-quick-add.is-loading {
  opacity: 0.7;
  cursor: wait;
}

/* Info row */
.tb-shop-card__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--tb-dark);
  gap: 12px;
}

.tb-shop-card__name-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tb-shop-card__name {
  font-family: var(--tb-font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--tb-dark);
  line-height: 1.3;
}

.tb-shop-card__subtitle {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.6;
  color: var(--tb-dark);
}

.tb-shop-card__price-col {
  font-family: var(--tb-font-mono);
  font-size: 13px;
  opacity: 0.6;
  white-space: nowrap;
  flex-shrink: 0;
}

/* WC price HTML — sale crossed out */
.tb-shop-card__price-col del {
  opacity: 0.5;
  margin-right: 4px;
}

.tb-shop-card__price-col ins {
  text-decoration: none;
  font-weight: 400;
}

/* =============================================================================
   SHOP / COLLECTION — SECTION 4: PAGINATION
   ============================================================================= */

.tb-shop-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 52px;
  border-top: 1px solid var(--tb-dark);
}

.tb-shop-pagination__prev,
.tb-shop-pagination__next {
  display: block;
}

.tb-shop-pagination a {
  display: block;
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-dark);
  text-decoration: none;
  padding: 20px 0;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.tb-shop-pagination a:hover {
  opacity: 1;
}

.tb-shop-pagination__next {
  margin-left: auto;
}

/* =============================================================================
   SHOP / COLLECTION — SECTION 5: EMPTY STATE
   ============================================================================= */

.tb-shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 20px;
  gap: 20px;
  min-height: 40vh;
}

.tb-shop-empty__sub {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0;
}

/* Responsive grid */
@media (max-width: 900px) {
  ul.products,
  .tb-shop-grid {
    grid-template-columns: repeat( 2, 1fr ) !important;
  }
}

@media (max-width: 540px) {
  ul.products,
  .tb-shop-grid {
    grid-template-columns: 1fr !important;
  }

  .tb-shop-pagination {
    padding: 0 20px;
  }
}

/* =============================================================================
   SINGLE PRODUCT — BREADCRUMB
   ============================================================================= */

.tb-pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 52px;
  border-bottom: 1px solid var(--tb-dark);
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.tb-pdp-breadcrumb__link {
  color: var(--tb-dark);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.tb-pdp-breadcrumb__link:hover { opacity: 1; color: var(--tb-dark); }

.tb-pdp-breadcrumb__sep {
  opacity: 0.3;
}

.tb-pdp-breadcrumb__current {
  opacity: 0.85;
  color: var(--tb-dark);
}

@media (max-width: 767px) {
  .tb-pdp-breadcrumb { padding: 14px 20px; }
}

/* =============================================================================
   SINGLE PRODUCT — 2-COL LAYOUT
   ============================================================================= */

.tb-pdp-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: start;
  border-bottom: 1px solid var(--tb-dark);
}

/* =============================================================================
   SINGLE PRODUCT — LEFT: GALLERY
   ============================================================================= */

.tb-pdp-gallery {
  position: sticky;
  top: 0; /* sticks below announcement bar + header */
  border-right: 1px solid var(--tb-dark);
}

.tb-pdp-gallery__main-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.tb-pdp-gallery__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.2s ease;
}

/* Thumbnail strip */
.tb-pdp-gallery__thumbs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid var(--tb-dark);
  scrollbar-width: none;
}

.tb-pdp-gallery__thumbs::-webkit-scrollbar { display: none; }

.tb-pdp-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: none;
  border-right: 1px solid var(--tb-dark);
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  outline-offset: -2px;
  box-sizing: border-box;
}

.tb-pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.tb-pdp-thumb:hover img { opacity: 0.75; }

.tb-pdp-thumb.is-active {
  outline: 2px solid var(--tb-dark);
  outline-offset: -2px;
}

/* =============================================================================
   SINGLE PRODUCT — RIGHT: DETAILS COLUMN
   ============================================================================= */

.tb-pdp-details {
  position: sticky;
  top: 57px; /* header height */
  padding: 48px 52px 52px 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 57px);
  overflow-y: auto;
  scrollbar-width: none;
}

.tb-pdp-details::-webkit-scrollbar { display: none; }

.tb-pdp-details__cat {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tb-dark);
  opacity: 0.55;
  text-decoration: none;
  margin-bottom: 12px;
  display: block;
  transition: opacity 0.15s ease;
}

.tb-pdp-details__cat:hover { opacity: 0.9; color: var(--tb-dark); }

.tb-pdp-details__title {
  font-family: var(--tb-font-body);
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 48px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--tb-dark);
  margin: 0 0 10px;
}

.tb-pdp-details__subtitle {
  font-family: var(--tb-font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--tb-dark);
  opacity: 0.65;
  margin: 0 0 20px;
}

.tb-pdp-details__price {
  font-family: var(--tb-font-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--tb-dark);
  margin-bottom: 4px;
}

/* WC price HTML in PDP */
.tb-pdp-details__price del {
  opacity: 0.45;
  font-weight: 400;
  margin-right: 6px;
}

.tb-pdp-details__price ins {
  text-decoration: none;
}

/* WC variation price replaces this — inherit same styles */
.tb-pdp-details__price .woocommerce-variation-price,
.tb-pdp-details__price .woocommerce-variation-price .price {
  font-family: var(--tb-font-body);
  font-weight: 700;
  font-size: 22px;
}

.tb-pdp-details__divider {
  height: 1px;
  background: var(--tb-dark);
  margin: 24px 0;
}

/* =============================================================================
   SINGLE PRODUCT — VARIATION FORM
   ============================================================================= */

/* Hide WC's default variation select table entirely */
.tb-pdp-variation-table {
  display: none !important;
}

/* Hide WC's single_variation_wrap visually but keep it for JS */
.single_variation_wrap {
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.tb-pdp-variations {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.tb-variation-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Swatches — bordered squares */
.tb-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--tb-dark);
  border: 1px solid var(--tb-dark);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-width 0.1s ease;
  position: relative;
}

.tb-swatch:hover {
  background: rgba(22, 21, 15, 0.08);
}

.tb-swatch.is-selected {
  background: var(--tb-dark);
  color: var(--tb-light);
  border-width: 2px;
}

/* Out-of-stock swatch */
.tb-swatch.is-unavailable {
  opacity: 0.3;
  cursor: not-allowed;
}

.tb-swatch.is-unavailable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.5px),
    currentColor calc(50% - 0.5px),
    currentColor calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}

/* =============================================================================
   SINGLE PRODUCT — QTY CONTROL
   ============================================================================= */

.tb-pdp-qty-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.tb-qty-control {
  display: flex;
  align-items: stretch;
  width: fit-content;
  border: 1px solid var(--tb-dark);
}

.tb-qty-btn {
  background: none;
  border: none;
  width: 40px;
  height: 44px;
  font-family: var(--tb-font-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--tb-dark);
  cursor: pointer;
  transition: background 0.12s ease;
  flex-shrink: 0;
}

.tb-qty-btn:hover { background: rgba(22, 21, 15, 0.06); }

.tb-qty-input {
  width: 52px;
  height: 44px;
  border: none;
  border-left:  1px solid var(--tb-dark);
  border-right: 1px solid var(--tb-dark);
  background: transparent;
  font-family: var(--tb-font-mono);
  font-size: 14px;
  text-align: center;
  color: var(--tb-dark);
  -moz-appearance: textfield;
  appearance: textfield;
}

.tb-qty-input::-webkit-inner-spin-button,
.tb-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* =============================================================================
   SINGLE PRODUCT — ADD TO BAG + SHIPPING NOTE
   ============================================================================= */

.tb-pdp-form__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-pdp-atb {
  width: 100%;
  padding: 18px 24px;
  font-size: 13px;
  text-align: center;
  transition: opacity 0.15s ease;
}

.tb-pdp-atb:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tb-pdp-atb.is-loading {
  opacity: 0.6;
  cursor: wait;
}

.tb-pdp-details__shipping-note {
  font-family: var(--tb-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 16px 0 0;
}

/* =============================================================================
   SINGLE PRODUCT — ACCORDION
   ============================================================================= */

.tb-pdp-accordion {
  margin-top: 28px;
  border-top: 1px solid var(--tb-dark);
}

.tb-acc-item {
  border-bottom: 1px solid var(--tb-dark);
}

.tb-acc-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.tb-acc-trigger span:first-child {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tb-dark);
}

.tb-acc-icon {
  font-size: 16px;
  line-height: 1;
  color: var(--tb-dark);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Smooth height via max-height; JS sets the exact value using scrollHeight */
.tb-acc-body-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tb-acc-body {
  padding-bottom: 20px;
}

.tb-acc-body p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.75;
  margin: 0;
}

/* =============================================================================
   SINGLE PRODUCT — RELATED PRODUCTS
   ============================================================================= */

.tb-pdp-related {
  padding-left:  0;
  padding-right: 0;
}

/* Out-of-stock label */
.tb-pdp-out-of-stock {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 0 0 20px;
}

/* =============================================================================
   SINGLE PRODUCT — RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
  .tb-pdp-details {
    padding: 40px 40px 48px;
  }
}

@media (max-width: 900px) {
  .tb-pdp-layout {
    grid-template-columns: 1fr;
  }

  .tb-pdp-gallery {
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--tb-dark);
  }

  .tb-pdp-details {
    position: relative;
    top: 0;
    max-height: none;
    padding: 32px 20px 48px;
  }
}

/* =============================================================================
   CART PAGE — LAYOUT
   ============================================================================= */

.tb-cart-layout {
  display: grid;
  grid-template-columns: 65fr 35fr;
  align-items: start;
  border-bottom: 1px solid var(--tb-dark);
}

/* ── LEFT: LINE ITEMS ─────────────────────────────────────────────────────── */

.tb-cart-items {
  border-right: 1px solid var(--tb-dark);
}

.tb-cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: start;
  gap: 20px;
  padding: 24px 52px;
  border-bottom: 1px solid var(--tb-dark);
}

.tb-cart-item__image {
  width: 80px;
  height: 107px; /* 3:4 */
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--tb-dark);
}

.tb-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tb-cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.tb-cart-item__name {
  font-family: var(--tb-font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--tb-dark);
  line-height: 1.3;
}

.tb-cart-item__name a {
  color: var(--tb-dark);
  text-decoration: none;
}

.tb-cart-item__name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* WC variation meta */
.tb-cart-item__info .variation {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.6;
  color: var(--tb-dark);
}

.tb-cart-item__info .variation p {
  margin: 0;
}

.tb-cart-item__remove {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--tb-dark);
  opacity: 0.55;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  display: block;
  margin-top: 4px;
}

.tb-cart-item__remove:hover {
  opacity: 1;
  color: var(--tb-dark);
}

.tb-cart-item__qty {
  padding-top: 2px;
}

.tb-cart-item__qty-solo {
  font-family: var(--tb-font-mono);
  font-size: 13px;
  color: var(--tb-dark);
  opacity: 0.7;
}

.tb-cart-item__total {
  font-family: var(--tb-font-mono);
  font-size: 14px;
  color: var(--tb-dark);
  text-align: right;
  padding-top: 4px;
  white-space: nowrap;
}

/* Visually hidden but accessible (update_cart button) */
.tb-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── RIGHT: ORDER SUMMARY ─────────────────────────────────────────────────── */

.tb-cart-summary-col {
  padding: 0;
}

.tb-order-summary {
  position: sticky;
  top: 57px; /* header height */
  padding: 40px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 57px);
  overflow-y: auto;
  scrollbar-width: none;
}

.tb-order-summary::-webkit-scrollbar { display: none; }

.tb-order-summary__heading {
  margin-bottom: 24px;
}

.tb-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(22, 21, 15, 0.1);
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--tb-dark);
  gap: 16px;
}

.tb-summary-row__value {
  font-family: var(--tb-font-mono);
  font-size: 13px;
  text-align: right;
}

/* Grand total row */
.tb-summary-row--total {
  border-top: 1px solid var(--tb-dark);
  border-bottom: none;
  padding-top: 20px;
  margin-top: 8px;
  font-weight: 700;
}

.tb-summary-row--total .tb-summary-row__value {
  font-size: 16px;
  font-weight: 700;
}

/* Discount row */
.tb-summary-row--discount .tb-summary-row__value {
  color: var(--tb-dark);
}

/* WC coupon remove link */
.tb-summary-row--discount .woocommerce-remove-coupon {
  font-family: var(--tb-font-mono);
  font-size: 10px;
  display: block;
  opacity: 0.5;
  margin-top: 2px;
}

/* WC shipping HTML (includes radio inputs when multiple methods) */
.tb-summary-row--shipping td,
.shipping .shipping-calculator-form {
  font-family: var(--tb-font-mono);
  font-size: 12px;
}

/* Shipping row output via wc_cart_totals_shipping_html() wraps in <tr> — hide default */
.tb-order-summary table.shop_table { display: none; }

.tb-summary-shipping-est {
  font-family: var(--tb-font-mono);
  font-size: 11px;
  opacity: 0.55;
}

/* Coupon form */
.tb-summary-coupon {
  margin: 24px 0;
}

.tb-coupon-form__row {
  display: flex;
  gap: 0;
  margin-top: 8px;
}

.tb-coupon-form__row .tb-input {
  flex: 1;
  border-right: none;
  font-size: 13px;
  padding: 12px 14px;
}

.tb-coupon-form__btn {
  flex-shrink: 0;
  padding: 12px 18px;
  font-size: 11px;
}

/* CTA stack */
.tb-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.tb-summary-checkout,
.tb-summary-continue {
  display: block;
  text-align: center;
  width: 100%;
}

/* ── EMPTY CART ─────────────────────────────────────────────────────────────── */

.tb-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
  padding: clamp(60px, 10vw, 120px) 20px;
  gap: 20px;
}

.tb-cart-empty__sub {
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .tb-cart-layout {
    grid-template-columns: 1fr;
  }

  .tb-cart-items {
    border-right: none;
  }

  .tb-cart-summary-col {
    border-top: 1px solid var(--tb-dark);
  }

  .tb-order-summary {
    position: relative;
    top: 0;
    max-height: none;
    padding: 32px 20px 48px;
  }

  .tb-cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    padding: 20px;
    gap: 14px;
  }

  .tb-cart-item__qty {
    grid-column: 2;
  }

  .tb-cart-item__total {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }
}

/* =============================================================================
   MOBILE BREAKPOINT
   ============================================================================= */

@media (max-width: 767px) {
  .container,
  .container-fluid {
    padding-left:  20px !important;
    padding-right: 20px !important;
  }

  .tb-section {
    padding-top:    40px;
    padding-bottom: 40px;
  }

  #tb-cart-drawer {
    width: 75vw;
  }
}

/* =============================================================================
   MOBILE MENU — DROPDOWN (overrides the legacy side-panel defaults above)
   Full-width panel that slides down from the top on viewports < 768 px.
   JS hooks: #tb-mobile-open, #tb-mobile-close, #tb-mobile-overlay
   ============================================================================= */

/* Hamburger toggle — hidden on desktop, shown on mobile via media query */
.tb-mob-toggle {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
  align-items: center;
  color: var(--tb-dark);
}

/* Three-line hamburger icon */
.tb-mob-toggle .tb-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.tb-mob-toggle .tb-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--tb-dark);
  transition: opacity 0.15s ease;
}

/* Override legacy side-panel positioning → top-dropdown */
#tb-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  border-right: none;
  border-bottom: 1px solid var(--tb-dark);
  background: var(--tb-light);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  overflow: visible;
}

#tb-mobile-menu.is-open {
  transform: translateY(0);
}

/* Menu header row: brand name left, × right */
.tb-mob-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(22, 21, 15, 0.1);
  flex-shrink: 0;
}

.tb-mob-menu__brand {
  font-family: var(--tb-font-body);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--tb-dark);
}

.tb-mob-menu__close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--tb-dark);
  cursor: pointer;
  padding: 0;
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

.tb-mob-menu__close:hover {
  opacity: 1;
}

/* Nav area — centered column of links */
.tb-mob-menu__nav {
  flex: 1;
  padding: 8px 0 24px;
}

.tb-mob-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tb-mob-menu__list li {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(22, 21, 15, 0.07);
}

.tb-mob-menu__list li:last-child {
  border-bottom: none;
}

.tb-mob-menu__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tb-dark);
  text-decoration: none;
  padding: 20px 24px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.tb-mob-menu__list a:hover {
  opacity: 1;
}

/* =============================================================================
   HEADER — .tb-header LAYOUT
   Three-column flex row: .tb-nav-left | .tb-logo | .tb-nav-right
   ============================================================================= */

.tb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 28px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(234, 231, 223, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tb-dark);
}

/* Left zone — flex: 1 balances right zone */
.tb-nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.tb-nav-left__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 26px;
  align-items: center;
}

.tb-nav-left .tb-nav-link {
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.tb-nav-left .tb-nav-link:hover {
  opacity: 1;
}

/* Right zone — flex: 1, content pushed to right edge */
.tb-nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.tb-nav-right .tb-nav-link {
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.tb-nav-right .tb-nav-link:hover {
  opacity: 1;
}

/* Bag link — inline-flex to sit badge next to text */
.tb-bag-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

.tb-bag-link:hover {
  opacity: 0.65 !important;
}

/* Cart count badge */
.tb-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--tb-dark);
  color: var(--tb-light);
  border-radius: 9px;
  font-family: var(--tb-font-mono);
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}

/* =============================================================================
   HEADER — MOBILE RESPONSIVE (< 768 px)
   Hamburger shows, desktop links hide, logo centres absolutely.
   ============================================================================= */

@media (max-width: 767px) {

  .tb-header {
    padding: 14px 20px;
    position: relative; /* anchor the absolute logo */
  }

  /* Show hamburger */
  .tb-mob-toggle {
    display: flex;
    order: -1;
  }

  /* Hide desktop nav links */
  .tb-nav-left__list {
    display: none;
  }

  /* Absolutely centre logo between toggle and bag */
  .tb-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  /* Right zone: shrink, only show Bag */
  .tb-nav-right {
    flex: 0;
    margin-left: auto;
    gap: 12px;
  }

  /* Hide Search text link on mobile — it lives in the mobile menu */
  .tb-search-link {
    display: none;
  }
}

/* =============================================================================
   FORM INPUTS — shared across newsletter, coupon, contact
   ============================================================================= */

.tb-input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-family: var(--tb-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--tb-dark);
  background: transparent;
  border: 1px solid var(--tb-dark);
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.tb-input::placeholder {
  color: var(--tb-dark);
  opacity: 0.35;
}

.tb-input:focus {
  border-color: var(--tb-dark);
  box-shadow: 0 0 0 2px rgba(22, 21, 15, 0.15);
}

textarea.tb-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

select.tb-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2316150F' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

/* =============================================================================
   BADGES — SKU / sale labels on product images
   ============================================================================= */

.tb-sku-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--tb-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--tb-light);
  color: var(--tb-dark);
  border: 1px solid var(--tb-dark);
  padding: 4px 8px;
  line-height: 1;
  pointer-events: none;
}

/* =============================================================================
   SINGLE PRODUCT — RELATED PRODUCTS GRID
   Simpler card than .tb-shop-card: no quick-add, no hover image swap.
   ============================================================================= */

.tb-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top:  1px solid var(--tb-dark);
  border-left: 1px solid var(--tb-dark);
}

.tb-product-card {
  border-right:  1px solid var(--tb-dark);
  border-bottom: 1px solid var(--tb-dark);
  display: block;
  text-decoration: none;
  color: var(--tb-dark);
  position: relative;
}

.tb-product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(22, 21, 15, 0.04);
}

.tb-product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.tb-product-card:hover .tb-product-card__image-wrap img {
  transform: scale(1.03);
  opacity: 0.88;
}

.tb-product-card__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px;
  gap: 12px;
}

.tb-product-card__name {
  font-family: var(--tb-font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--tb-dark);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.tb-product-card__price {
  font-family: var(--tb-font-mono);
  font-size: 13px;
  color: var(--tb-dark);
  opacity: 0.6;
  white-space: nowrap;
  flex-shrink: 0;
}

.tb-product-card__price del {
  opacity: 0.5;
  margin-right: 4px;
}

.tb-product-card__price ins {
  text-decoration: none;
  font-weight: 400;
}

@media (max-width: 900px) {
  .tb-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tb-product-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   ACCESSIBILITY UTILITIES
   ============================================================================= */

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus,
.visually-hidden-focusable:focus-within {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}
