/* TR Motion — overrides distilled from the previous static-site `assets/css/cart.css`
   (padding scales) plus a few WordPress/WooCommerce-shaped adjustments. */

:root {
  --tr-page-pad: 16px;
}
@media (min-width: 750px) { :root { --tr-page-pad: 24px; } }
@media (min-width: 990px) { :root { --tr-page-pad: 32px; } }

.page-width,
.main-content,
.site-header__wrapper,
.site-footer .grid,
.hero__inner {
  padding-left: var(--tr-page-pad) !important;
  padding-right: var(--tr-page-pad) !important;
}

/* Inter font (only the woff/woff2 widths SiteSucker grabbed for us). */
@font-face {
  font-family: Inter;
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/inter/inter_n8.d15c916037fee1656886aab64725534609d62cc8.woff2') format('woff2'),
       url('../fonts/inter/inter_n8.c88637171fecf10ab2d88c89dbf06f41a1ae8be5.woff') format('woff');
}
:root {
  --typeHeaderPrimary: Inter;
  --typeHeaderFallback: sans-serif;
  --typeHeaderSize: 27px;
  --typeHeaderWeight: 800;
  --typeHeaderLineHeight: 1.2;
  --typeHeaderSpacing: 0.0em;
  --typeBasePrimary: Helvetica;
  --typeBaseFallback: Arial, sans-serif;
  --typeBaseSize: 14px;
  --typeBaseWeight: 400;
  --typeBaseLineHeight: 1.6;
  --typeBaseSpacing: 0.025em;
  --iconWeight: 3px;
  --iconLinecaps: miter;
}

/* ---------- Header (TR Motion port) ---------- */
.tr-header { background: #025bcd; color: #fff; }
.tr-header a { color: inherit; text-decoration: none; }
.tr-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 16px;
}
.tr-header__logo img { display: block; height: 42px; width: auto; }
.tr-header__icons { display: flex; align-items: center; gap: 16px; }
.tr-header__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: #fff; border: 0; background: transparent;
  cursor: pointer; padding: 0; position: relative;
}
.tr-header__cart-count {
  position: absolute; top: -2px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #111; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
}
.tr-nav { background: #fff; border-bottom: 1px solid #e5e7eb; }
.tr-nav__list {
  list-style: none; margin: 0; padding: 14px 0;
  display: flex; flex-wrap: wrap; gap: 22px;
  font-weight: 700; font-size: 15px;
}
.tr-nav__list a { color: #111827; text-decoration: none; }
.tr-nav__list a:hover { color: #1962cd; }
@media (max-width: 600px) {
  .tr-nav__list { gap: 14px; font-size: 13px; padding: 10px 0; }
  .tr-header__logo img { height: 34px; }
}

.tr-search { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 14px 0; }
.tr-search__form { display: flex; gap: 8px; }
.tr-search__input {
  flex: 1; padding: 10px 14px; border: 1px solid #d1d5db;
  border-radius: 6px; font-size: 15px;
}
.tr-search__submit {
  padding: 10px 18px; border: 0; border-radius: 6px;
  background: #111827; color: #fff; font-weight: 700; cursor: pointer;
}

/* ---------- Product cards (Motion fc-card) ---------- */
.products.columns-4, ul.products { list-style: none; padding: 0; margin: 0; }
.grid.grid--uniform {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 750px) {
  .grid.grid--uniform { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.grid.grid--uniform > .grid__item,
.grid.grid--uniform > li.grid__item {
  width: auto !important; float: none !important; margin: 0 !important;
  padding: 0 !important; list-style: none;
}
.fc-card { padding: 0; background: #fff; border-radius: 8px; overflow: hidden; }
.fc-card__content { display: flex; flex-direction: column; height: 100%; }
.fc-card__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.fc-card__media {
  aspect-ratio: 1 / 1; overflow: hidden; background: #f3f4f6;
}
.fc-card__media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.fc-card__meta { padding: 10px 12px 16px; }
.fc-card__title {
  font-weight: 800; line-height: 1.25; margin: 6px 0 10px;
  font-size: 14px; color: #0f172a;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.fc-badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  background: #eff6ff; color: #1962cd; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.fc-card__price { font-weight: 800; font-size: 14px; color: #0f172a; }
.fc-card__price .woocommerce-Price-amount { color: inherit; font-weight: 800; }

/* Kill Woo default wrappers that don't belong here. */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .woocommerce-loop-product__title { display: none !important; }

/* ---------- Single product (Motion-style) ---------- */
.tr-product { padding: 24px 0 48px; }
.tr-product__layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .tr-product__layout { grid-template-columns: 5fr 7fr; gap: 40px; } }
.tr-product__hero { display: block; width: 100%; height: auto; border-radius: 6px; }
.tr-product__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tr-product__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }

.product-single__title { font-size: 26px; font-weight: 900; margin: 0 0 12px; color: #0f172a; }
.pt-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.pt-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; background: #eff6ff; color: #1962cd; font-size: 12px; font-weight: 700; }

.ev-mini { margin: 14px 0 18px; padding: 14px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.ev-mini__price { font-size: 22px; font-weight: 900; color: #0f172a; }
.ev-mini__price .woocommerce-Price-amount { font-weight: 900; color: inherit; }

.tr-variant-form { display: flex; flex-direction: column; gap: 16px; }
.tr-variant { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; margin: 0; }
.tr-variant__legend { font-weight: 800; font-size: 14px; color: #0f172a; padding: 0 6px; }
.tr-variant__options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tr-variant__opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1.5px solid #d1d5db; border-radius: 999px;
  cursor: pointer; font-size: 13px; font-weight: 700; color: #0f172a;
  background: #fff; transition: border-color .12s, background .12s, color .12s;
}
.tr-variant__opt input { position: absolute; opacity: 0; pointer-events: none; }
.tr-variant__opt:has(input:checked),
.tr-variant__opt.is-selected { border-color: #1962cd; background: #1962cd; color: #fff; }
.tr-variant__opt.is-unavailable { opacity: .4; cursor: not-allowed; }
.tr-variant__opt-price { font-weight: 800; color: inherit; font-size: 12px; }

.tr-variant__cta { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tr-variant__total { font-size: 16px; color: #0f172a; }
.tr-variant__total strong { font-weight: 900; }
.tr-add-to-cart {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border: 0; border-radius: 10px; background: #111827; color: #fff;
  font-weight: 900; font-size: 16px; letter-spacing: .2px;
  cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,.16);
  transition: transform .08s, filter .18s, box-shadow .18s;
}
.tr-add-to-cart:hover { filter: brightness(1.05); }
.tr-add-to-cart:active { transform: translateY(1px); }
.tr-add-to-cart:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; }
.tr-variant__hint { color: #64748b; font-size: 13px; margin: 4px 0 0; }
.tr-product__description, .tr-product__long { margin: 22px 0; color: #334155; font-size: 15px; line-height: 1.6; }
.tr-product__long h2, .tr-product__long h3 { color: #0f172a; }

/* ---------- Sticky bottom add-to-cart (always visible when inline CTA is off-screen) ---------- */
.tr-sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #fff; border-top: 1px solid #e5e7eb;
  box-shadow: 0 -8px 22px rgba(0,0,0,.10);
  transform: translateY(100%); transition: transform .25s ease;
  pointer-events: none;
}
.tr-sticky-atc.is-visible { transform: translateY(0); pointer-events: auto; }
.tr-sticky-atc__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 10px; padding-bottom: 10px;
}
.tr-sticky-atc__info { flex: 1; min-width: 0; }
.tr-sticky-atc__title {
  font-size: 12px; font-weight: 700; color: #475569;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tr-sticky-atc__price { font-size: 14px; color: #0f172a; }
.tr-sticky-atc__price strong { font-weight: 900; }
.tr-sticky-atc__btn { width: auto; min-width: 200px; padding: 12px 22px; flex: 0 0 auto; }
@media (max-width: 600px) {
  .tr-sticky-atc__btn { min-width: 0; padding: 12px 16px; font-size: 14px; }
  .tr-sticky-atc__title { font-size: 11px; }
}
/* Leave room at the bottom of the page so the sticky bar doesn't cover content. */
body.single-product { padding-bottom: 80px; }

/* Sections on front page. */
.tr-section { margin: 32px 0 48px; }
.tr-section__title { font-size: 24px; font-weight: 800; margin: 12px 0 16px; }
.tr-section__more { text-align: center; margin-top: 16px; }

/* Page (legal). */
.tr-page__title { margin: 28px 0 18px; }
.tr-page__body p { margin: 10px 0; }

/* Cart bubble. */
.cart-link__bubble { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: #111; color: #fff; font-size: 12px; line-height: 18px; text-align: center; }

/* ---------- Cart drawer ---------- */
html.tr-no-scroll, html.tr-no-scroll body { overflow: hidden; }
.tr-drawer {
  position: fixed; inset: 0; z-index: 99999;
  pointer-events: none; visibility: hidden;
}
.tr-drawer.is-open { pointer-events: auto; visibility: visible; }
.tr-drawer__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity .25s ease;
}
.tr-drawer.is-open .tr-drawer__backdrop { opacity: 1; }
.tr-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,.18);
}
.tr-drawer.is-open .tr-drawer__panel { transform: translateX(0); }
.tr-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #e5e7eb;
}
.tr-drawer__title { font-weight: 800; font-size: 17px; color: #0f172a; }
.tr-drawer__close {
  background: transparent; border: 0; cursor: pointer; color: #0f172a;
  padding: 6px; line-height: 0;
}
.tr-drawer__body { flex: 1; overflow-y: auto; padding: 12px 16px; }

/* Woo mini-cart inside the drawer. Scoped to .tr-drawer so it survives Woo's
   fragment-replacement of the inner .widget_shopping_cart_content node. */
.tr-drawer ul.woocommerce-mini-cart,
.tr-drawer .woocommerce-mini-cart { list-style: none; padding: 0; margin: 0; }
.tr-drawer .woocommerce-mini-cart__empty-message { color: #475569; padding: 24px 8px; text-align: center; }

.tr-drawer li.woocommerce-mini-cart-item {
  position: relative !important;
  display: block !important;
  padding: 14px 26px 16px 96px !important;
  margin: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  min-height: 86px !important;
  list-style: none !important;
}
.tr-drawer li.woocommerce-mini-cart-item > a.remove {
  position: absolute !important;
  top: 16px !important;
  left: 0 !important;
  right: auto !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #94a3b8 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  z-index: 2;
}
.tr-drawer li.woocommerce-mini-cart-item > a.remove:hover { color: #ef4444 !important; }

.tr-drawer li.woocommerce-mini-cart-item > a:not(.remove) {
  display: block !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  padding: 0 !important;
}
.tr-drawer li.woocommerce-mini-cart-item > a:not(.remove) img {
  position: absolute !important;
  left: 28px !important;
  top: 14px !important;
  width: 56px !important;
  height: 56px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  float: none !important;
  max-width: none !important;
}

.tr-drawer .woocommerce-mini-cart-item .variation {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.tr-drawer .woocommerce-mini-cart-item .variation dt,
.tr-drawer .woocommerce-mini-cart-item .variation dd {
  display: inline;
  margin: 0;
  font-weight: 400;
}
.tr-drawer .woocommerce-mini-cart-item .variation dt { font-weight: 700; color: #475569; }
.tr-drawer .woocommerce-mini-cart-item .variation dt::after { content: " "; }
.tr-drawer .woocommerce-mini-cart-item .variation dd { margin-right: 2px; }
.tr-drawer .woocommerce-mini-cart-item .variation dd::after { content: " · "; color: #cbd5e1; padding: 0 2px; }
.tr-drawer .woocommerce-mini-cart-item .variation dd:last-child::after { content: ""; }
.tr-drawer .woocommerce-mini-cart-item .variation dd p { display: inline; margin: 0; }

.tr-drawer .woocommerce-mini-cart-item .quantity {
  display: block;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.tr-drawer .woocommerce-mini-cart-item .quantity .woocommerce-Price-amount,
.tr-drawer .woocommerce-mini-cart-item .quantity .amount {
  color: #1962cd;
  font-weight: 800;
}

.tr-drawer .woocommerce-mini-cart__total,
.tr-drawer .woocommerce-mini-cart__buttons {
  margin-left: 0;
  margin-right: 0;
}
.tr-drawer__body .woocommerce-mini-cart__total {
  display: flex; justify-content: space-between; padding: 14px 0;
  font-weight: 800; color: #0f172a; border-top: 1px solid #e5e7eb; margin-top: 6px;
}
.tr-drawer__body .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.tr-drawer__body .woocommerce-mini-cart__buttons .button {
  display: block; text-align: center; padding: 12px 14px; border-radius: 10px;
  background: #111827; color: #fff; font-weight: 800; text-decoration: none;
  border: 0;
}
.tr-drawer__body .woocommerce-mini-cart__buttons .button.checkout { background: #1962cd; }
.tr-drawer__body .woocommerce-mini-cart__buttons .wc-forward { background: #fff; color: #0f172a; border: 1.5px solid #0f172a; }
