/* ==========================================================================
   Secondary pages: contact, accessories, wishlist, reviews, about, warranty, returns.
   Built on the --tb-* tokens from ui.css. Light mode is the default (html.light-mode).
   ========================================================================== */

.tb-page { background: var(--tb-canvas); color: var(--tb-ink); padding: var(--tb-s5) 0 var(--tb-s8); overflow-x: clip; }
/* Same canvas on html/body/main, so short pages show no two-tone band above the footer */
html:has(.tb-page), html:has(.tb-page) body, html:has(.tb-page) .main-content { background: var(--tb-canvas); }
.tb-page > .container { overflow-x: clip; }
@media (min-width: 1024px) { .tb-page { padding-top: var(--tb-s6); } }
.tb-page h1, .tb-page h2, .tb-page h3 { font-family: var(--tb-font-display); color: var(--tb-ink); letter-spacing: -0.01em; }
.tb-page h3 { font-family: var(--tb-font); letter-spacing: -0.006em; }

/* ---------- Page heading ---------- */
.tb-page-head { display: grid; gap: var(--tb-s2); margin: 0 0 var(--tb-s5); max-width: 720px; }
.tb-page-head__title { margin: 0; font-family: var(--tb-font-display); font-size: var(--tb-fs-3xl); font-weight: 700; line-height: 1.12; color: var(--tb-ink); letter-spacing: -0.015em; }
.tb-page-head__lead { margin: 0; font-size: var(--tb-fs-md); line-height: 1.55; color: var(--tb-ink-2); }

/* ---------- Notices ---------- */
.tb-page-notice { display: flex; gap: var(--tb-s3); align-items: flex-start; margin: 0 0 var(--tb-s4); padding: var(--tb-s3) var(--tb-s4); border-radius: var(--tb-r-md); background: var(--tb-info-soft); color: var(--tb-ink); font-size: var(--tb-fs-sm); line-height: 1.5; }
.tb-page-notice p { margin: 0; }
.tb-page-notice > i { margin-top: 3px; color: var(--tb-info); }
.tb-page-notice--ok { background: var(--tb-ok-soft); }
.tb-page-notice--ok > i { color: var(--tb-ok); }
.tb-page-notice--bad { background: var(--tb-bad-soft); }
.tb-page-notice--bad > i { color: var(--tb-bad); }

/* ---------- Empty state ---------- */
.tb-page-empty {
  display: grid; justify-items: center; gap: var(--tb-s3); padding: var(--tb-s7) var(--tb-s5); text-align: center;
  background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg);
}
.tb-page-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tb-surface-2); color: var(--tb-ink-3); font-size: 1.35rem; }
.tb-page-empty__title { margin: var(--tb-s2) 0 0; font-family: var(--tb-font); font-size: var(--tb-fs-xl); font-weight: 700; color: var(--tb-ink); }
.tb-page-empty__text { margin: 0 0 var(--tb-s2); max-width: 44ch; color: var(--tb-ink-3); line-height: 1.5; }
.tb-page-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--tb-s2); }

/* ---------- Simple form fields ---------- */
.tb-page-field { display: grid; gap: 6px; margin: 0 0 var(--tb-s4); }
.tb-page-field label { font-size: var(--tb-fs-sm); font-weight: 600; color: var(--tb-ink); }
.tb-page-field input,
.tb-page-field textarea,
.tb-page-field select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--tb-r-md);
  border: 1px solid var(--tb-line-strong); background: var(--tb-surface); color: var(--tb-ink);
  font: 400 var(--tb-fs-md)/1.3 var(--tb-font); outline: none; box-shadow: none;
  transition: border-color .15s var(--tb-ease), box-shadow .15s var(--tb-ease);
}
.tb-page-field textarea { padding: 12px 14px; min-height: 140px; resize: vertical; line-height: 1.5; }
.tb-page-field input::placeholder, .tb-page-field textarea::placeholder { color: var(--tb-ink-3); opacity: .8; }
.tb-page-field input:focus, .tb-page-field textarea:focus, .tb-page-field select:focus { border-color: var(--tb-brand); box-shadow: 0 0 0 3px var(--tb-brand-soft); }

/* ---------- Contact ---------- */
.tb-contact { display: grid; gap: var(--tb-s5); align-items: start; }
@media (min-width: 1024px) { .tb-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--tb-s6); } }
.tb-contact__list { list-style: none; margin: 0; padding: 0; background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: var(--tb-r-lg); overflow: hidden; }
.tb-contact__list li + li { border-top: 1px solid var(--tb-line); }
.tb-contact__item { display: flex; align-items: center; gap: var(--tb-s4); min-height: 64px; padding: var(--tb-s3) var(--tb-s4); color: var(--tb-ink); text-decoration: none; transition: background-color .15s var(--tb-ease); }
a.tb-contact__item:hover { background: var(--tb-surface-2); }
.tb-contact__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--tb-r-md); background: var(--tb-surface-2); color: var(--tb-ink-2); font-size: 1rem; }
.tb-contact__text { display: grid; gap: 2px; min-width: 0; }
.tb-contact__label { font-size: var(--tb-fs-xs); color: var(--tb-ink-3); font-weight: 500; }
.tb-contact__text strong { font-size: var(--tb-fs-md); font-weight: 600; color: var(--tb-ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tb-contact__hint { font-size: var(--tb-fs-xs); color: var(--tb-brand-text); font-weight: 500; }
.tb-contact__company { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--tb-s4); margin: var(--tb-s4) 0 0; padding: 0 var(--tb-s4); font-size: var(--tb-fs-xs); color: var(--tb-ink-3); }
.tb-contact__company dt { margin: 0; }
.tb-contact__company dd { margin: 0; color: var(--tb-ink-2); }
.tb-contact__form { padding: var(--tb-s5); }
@media (min-width: 640px) { .tb-contact__form { padding: var(--tb-s6); } }
.tb-contact__form-title { margin: 0 0 var(--tb-s4); font-size: var(--tb-fs-lg); font-weight: 700; }
.tb-contact__form .tb-btn { width: 100%; }
@media (min-width: 640px) { .tb-contact__form .tb-btn { width: auto; min-width: 200px; } }

.tb-page-faq { margin-top: var(--tb-s6); padding: var(--tb-s5); }
.tb-page-faq h2 { margin: 0 0 var(--tb-s3); font-size: var(--tb-fs-lg); }
.tb-page-faq details { border-top: 1px solid var(--tb-line); }
.tb-page-faq summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--tb-ink); padding: var(--tb-s2) 0; }
.tb-page-faq details p { margin: 0 0 var(--tb-s3); color: var(--tb-ink-2); line-height: 1.6; }

/* ---------- Accessories ---------- */
.accessories-page .tb-page-head { margin-top: var(--tb-s2); }
.products-layout.tb-acc-none { display: block; }
.products-layout.tb-acc-none .filters-sidebar-sticky-wrap,
.products-layout.tb-acc-none .products-toolbar { display: none; }
/* store.css pads .products-layout by 1rem on phones; the container already gives the 16px gutter,
   so drop the extra inset to match the redesigned listings. */
@media (max-width: 768px) {
  .accessories-page .products-layout { padding-left: 0; padding-right: 0; }
}
