/* ==========================================================================
   THREADS & TREND — main stylesheet
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--tt-black);
  color: var(--tt-white);
  font-family: var(--tt-font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--tt-red); color: var(--tt-white); }

:focus-visible {
  outline: 2px solid var(--tt-red);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}
.tt-skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 9999;
  background: var(--tt-red); color: #fff; padding: 10px 16px; width: auto; height: auto; clip: auto;
}

.tt-container {
  max-width: var(--tt-container);
  margin: 0 auto;
  padding: 0 24px;
}

.tt-red { color: var(--tt-red); }

.tt-eyebrow {
  font-family: var(--tt-font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tt-gray);
  margin: 0 0 10px;
}
.tt-eyebrow::before { content: '> '; color: var(--tt-red); }
.tt-eyebrow::after { content: ' <'; color: var(--tt-red); }

/* ==========================================================================
   HEADER — logo pinned top-left, sticky
   ========================================================================== */

.tt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
}

.tt-header-inner {
  max-width: var(--tt-container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--tt-header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.tt-header-hairline {
  height: 2px;
  background: linear-gradient(90deg, var(--tt-red) 0%, var(--tt-red) 33%, var(--tt-black-soft) 33%);
}

/* Logo — always anchored to the far left */
.tt-logo-corner {
  flex: 0 0 auto;
  margin-right: auto;
  display: flex;
  align-items: center;
}
.tt-logo-link { display: block; }
.tt-logo-img,
.tt-logo-corner img {
  height: 56px;
  width: auto;
  display: block;
}

.tt-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.tt-nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
}
.tt-nav-list li a {
  font-family: var(--tt-font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 2px;
  position: relative;
}
.tt-nav-list li a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--tt-red);
  transition: right 0.25s ease;
}
.tt-nav-list li a:hover::after,
.tt-nav-list li.current-menu-item a::after { right: 0; }

.tt-header-icons {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tt-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--tt-line);
  background: transparent;
  color: var(--tt-white);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tt-icon-btn:hover { border-color: var(--tt-red); color: var(--tt-red); }

.tt-cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--tt-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

.tt-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  margin-left: auto;
}
.tt-nav-toggle-bar { width: 24px; height: 2px; background: var(--tt-white); }

.tt-search-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
}
.tt-search-panel.is-open {
  max-height: 90px;
  border-top-color: var(--tt-line);
}
.tt-search-form {
  max-width: var(--tt-container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  gap: 10px;
}
.tt-search-input {
  flex: 1;
  background: var(--tt-black-soft);
  border: 1px solid var(--tt-line);
  color: var(--tt-white);
  padding: 12px 16px;
  font-family: var(--tt-font-body);
}
.tt-search-submit {
  background: var(--tt-red);
  border: none;
  color: #fff;
  width: 46px;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.tt-hero {
  position: relative;
  padding: 120px 0 160px;
  overflow: hidden;
  background: radial-gradient(circle at 82% 20%, rgba(226,21,27,0.16), transparent 55%), var(--tt-black);
}
.tt-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(10,10,10,0) 0%, var(--tt-black) 92%),
    repeating-linear-gradient(115deg, rgba(226,21,27,0.05) 0 2px, transparent 2px 120px);
  pointer-events: none;
}
.tt-hero-inner { position: relative; z-index: 2; text-align: center; }

.tt-hero-title {
  font-family: var(--tt-font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.tt-hero-title .tt-amp { color: var(--tt-gray); font-size: 0.7em; }

.tt-hero-sub {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--tt-white);
  max-width: 520px;
  margin: 0 auto 6px;
}
.tt-hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tt-gray);
  margin: 0 0 40px;
}

.tt-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  font-family: var(--tt-font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--tt-red);
  border-radius: var(--tt-radius);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.tt-btn-primary { background: var(--tt-red); color: #fff; }
.tt-btn-primary:hover { background: var(--tt-red-dark); transform: translateY(-2px); }
.tt-btn-ghost { background: transparent; color: var(--tt-white); border-color: var(--tt-line); }
.tt-btn-ghost:hover { border-color: var(--tt-white); transform: translateY(-2px); }

/* signature element: angled black/red slash divider, echoing the two
   angled T strokes in the mark */
.tt-hero-slash,
.tt-footer-slash {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: linear-gradient(100deg, var(--tt-black) 46%, var(--tt-red) 46%, var(--tt-red) 48%, var(--tt-black) 48%);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0% 100%);
}
.tt-footer-slash {
  position: relative;
  bottom: auto;
  height: 60px;
}

/* ==========================================================================
   FEATURE STRIP
   ========================================================================== */

.tt-features {
  padding: 56px 0;
  border-top: 1px solid var(--tt-line);
  border-bottom: 1px solid var(--tt-line);
  background: var(--tt-black-soft);
}
.tt-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.tt-feature { text-align: center; }
.tt-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--tt-red);
  color: var(--tt-red);
  margin-bottom: 16px;
}
.tt-feature h3 {
  font-family: var(--tt-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.tt-feature p {
  font-size: 0.85rem;
  color: var(--tt-gray);
  margin: 0;
}

/* ==========================================================================
   SECTION HEADS / PRODUCT GRID
   ========================================================================== */

.tt-shop-teaser, .tt-shop-main { padding: 90px 0; }
.tt-shop-main { padding-top: 60px; }

.tt-section-head { text-align: center; margin-bottom: 48px; }
.tt-section-title {
  font-family: var(--tt-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.01em;
}

.tt-product-grid,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 28px !important;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

ul.products li.product,
.tt-product-card {
  background: var(--tt-black-card);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  padding: 0 0 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
ul.products li.product:hover,
.tt-product-card:hover {
  border-color: var(--tt-red);
  transform: translateY(-4px);
}
ul.products li.product img { aspect-ratio: 4/5; object-fit: cover; }
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--tt-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  padding: 16px 16px 4px;
  color: var(--tt-white);
}
ul.products li.product .price {
  padding: 0 16px;
  color: var(--tt-red);
  font-weight: 700;
}
ul.products li.product .price del { color: var(--tt-gray); opacity: 0.6; }
ul.products li.product .button {
  margin: 14px 16px 0;
  display: inline-block;
  background: transparent;
  border: 1px solid var(--tt-red);
  color: var(--tt-white);
  padding: 10px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--tt-radius);
}
ul.products li.product .button:hover { background: var(--tt-red); }

.tt-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--tt-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--tt-radius);
  z-index: 2;
}

.tt-center { text-align: center; }
.tt-empty-note { text-align: center; color: var(--tt-gray); }

/* ==========================================================================
   COMING SOON / ABOUT
   ========================================================================== */

.tt-coming-soon {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: var(--tt-black-soft);
  border-top: 1px solid var(--tt-line);
}
.tt-cs-title { margin-bottom: 12px; }
.tt-cs-social { justify-content: center; margin-top: 30px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.tt-footer {
  background: #050505;
  padding-top: 0;
  border-top: 1px solid var(--tt-line);
}
.tt-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 64px 24px 48px;
}
.tt-footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.tt-footer-tag { color: var(--tt-gray); font-size: 0.9rem; max-width: 260px; }
.tt-footer-heading {
  font-family: var(--tt-font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--tt-white);
}
.tt-footer-list li { margin-bottom: 10px; }
.tt-footer-list a { color: var(--tt-gray); font-size: 0.9rem; }
.tt-footer-list a:hover { color: var(--tt-red); }
.tt-footer-text { color: var(--tt-gray); font-size: 0.9rem; }

.tt-newsletter-form { display: flex; margin: 16px 0 20px; }
.tt-newsletter-form input {
  flex: 1;
  background: var(--tt-black-soft);
  border: 1px solid var(--tt-line);
  color: var(--tt-white);
  padding: 12px 14px;
  font-size: 0.85rem;
}
.tt-newsletter-form button {
  background: var(--tt-red);
  border: none;
  color: #fff;
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tt-social-row { display: flex; gap: 10px; }
.tt-social-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--tt-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tt-white);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tt-social-btn:hover { border-color: var(--tt-red); color: var(--tt-red); }

.tt-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid var(--tt-line);
  font-size: 0.78rem;
  color: var(--tt-gray);
}

/* ==========================================================================
   BLOG / PAGE / 404
   ========================================================================== */

.tt-page-title-bar {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--tt-line);
  background: var(--tt-black-soft);
}
.tt-page-title {
  font-family: var(--tt-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  margin: 0;
}
.tt-page-body { padding: 60px 0; }
.tt-content { font-size: 1rem; color: #d9d9d6; }
.tt-content a { color: var(--tt-red); text-decoration: underline; }

.tt-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tt-post-card { background: var(--tt-black-card); border: 1px solid var(--tt-line); }
.tt-post-body { padding: 20px; }
.tt-post-title { font-size: 1.1rem; margin: 0 0 8px; }
.tt-post-meta { font-size: 0.75rem; color: var(--tt-gray); margin: 0 0 10px; }
.tt-post-excerpt { font-size: 0.9rem; color: #cfcfcc; }
.tt-link-arrow { color: var(--tt-red); font-weight: 600; font-size: 0.85rem; }

.tt-404 { padding: 140px 0; text-align: center; }
.tt-404-inner .tt-hero-title { margin-bottom: 20px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .tt-features-grid { grid-template-columns: repeat(2, 1fr); }
  .tt-product-grid, ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .tt-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
  .tt-nav-toggle { display: flex; }
  .tt-nav {
    position: fixed;
    top: var(--tt-header-h); left: 0; right: 0;
    background: var(--tt-black);
    border-top: 1px solid var(--tt-line);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    justify-content: flex-start;
    z-index: 99;
  }
  .tt-nav.is-open { transform: translateY(0); }
  .tt-nav-list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .tt-nav-list li { width: 100%; border-bottom: 1px solid var(--tt-line); }
  .tt-nav-list li a { display: block; padding: 16px 24px; }

  .tt-product-grid, ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .tt-blog-grid { grid-template-columns: 1fr; }
  .tt-footer-top { grid-template-columns: 1fr; padding-top: 44px; }
  .tt-footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .tt-features-grid { grid-template-columns: 1fr; }
  .tt-product-grid, ul.products { grid-template-columns: 1fr !important; }
  .tt-hero { padding: 90px 0 120px; }
  .tt-logo-img, .tt-logo-corner img { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
