/* ============================================================
   TBRANDS — Portfolio / Product catalog
   ============================================================ */

body { padding-top: 0 !important; }

.ptf-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: #e05a00; margin: 0 0 1.4rem;
}
.ptf-eyebrow--light { color: rgba(255,255,255,.4); }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.ptf-hero {
  position: relative;
  min-height: 52svh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: #080604;
}

.ptf-hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.ptf-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(.45) saturate(.65);
  animation: ptf-zoom 16s ease-in-out infinite alternate;
}
.ptf-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,   rgba(6,4,2,.98) 0%,  rgba(6,4,2,.5) 45%, transparent 75%),
    linear-gradient(to right, rgba(6,4,2,.3)  0%, transparent 55%);
}

.ptf-hero__content {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; width: 100%;
  padding: calc(var(--tbh-h, 72px) + 2rem) clamp(1.5rem,5vw,7rem) 3.5rem;
}

.ptf-hero__h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(4rem,12vw,13rem);
  font-weight: 900; line-height: .82;
  letter-spacing: -.04em; text-transform: uppercase;
  color: #fff; margin: 0 0 2rem;
  animation: ptf-fade-up .9s .1s both;
}
.ptf-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(.85rem,1.2vw,1rem);
  line-height: 1.8; color: rgba(255,255,255,.5);
  max-width: 50ch; margin: 0 0 2.5rem;
  animation: ptf-fade-up .9s .22s both;
}
.ptf-hero__count {
  display: flex; align-items: baseline; gap: .55rem;
  font-family: 'Inter', sans-serif;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
  animation: ptf-fade-up .9s .35s both;
}
.ptf-hero__count-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem,2.8vw,2.6rem);
  font-weight: 300; color: #fff; line-height: 1;
}

.ptf-hero__scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1; cursor: pointer;
}
.ptf-hero__scroll span {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.35));
  animation: ptf-grow .9s 1s both;
  transform-origin: top;
}

/* ════════════════════════════════════════════════════════════
   CATALOG
   ════════════════════════════════════════════════════════════ */
.ptf-catalog {
  background: #f8f6f2;
  padding-bottom: clamp(5rem,9vw,10rem);
}

/* Sidebar + grid layout */
.ptf-catalog__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem,5vw,7rem);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 clamp(2rem,4vw,5rem);
  align-items: start;
}

/* ════════════════════════════════════════════════════════════
   LEFT SIDEBAR FILTERS
   ════════════════════════════════════════════════════════════ */
.ptf-filters {
  position: sticky;
  top: calc(var(--tbh-h, 72px) + 2rem);
  padding-top: clamp(2rem,4vw,3.5rem);
}

/* Group: one parent + its subs */
.ptf-filters__group {
  border-bottom: 1px solid #e0dbd2;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.ptf-filters__group:first-child { border-top: 1px solid #e0dbd2; padding-top: 1rem; }
.ptf-filters__group:last-child { border-bottom: none; margin-bottom: 0; }

.ptf-filter-pill {
  display: block; width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(13,11,9,.38);
  padding: .5rem 0;
  border: none; background: transparent; cursor: pointer;
  transition: color .18s;
}
.ptf-filter-pill:hover { color: #0d0b09; }
.ptf-filter-pill.is-active { color: #0d0b09; }
.ptf-filter-pill.is-active::before {
  content: '— ';
  color: #e05a00;
}

/* Subcategory list — vertical, indented */
.ptf-filters__subs {
  display: flex; flex-direction: column;
  gap: 0; padding: .3rem 0 .5rem 0;
}
.ptf-filters__subs[hidden] { display: none; }

.ptf-filter-sub {
  display: block; width: 100%; text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(13,11,9,.35);
  padding: .35rem 0 .35rem 1rem;
  border: none; background: transparent; cursor: pointer;
  transition: color .18s;
  position: relative;
}
.ptf-filter-sub::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 5px; height: 1px;
  background: #d8d2c8;
  transform: translateY(-50%);
}
.ptf-filter-sub:hover { color: #0d0b09; }
.ptf-filter-sub.is-active {
  color: #e05a00;
}
.ptf-filter-sub.is-active::before { background: #e05a00; }

/* ════════════════════════════════════════════════════════════
   PRODUCT GRID
   ════════════════════════════════════════════════════════════ */
.ptf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(3rem,4vw,5rem) clamp(2rem,3vw,4rem);
  padding-top: clamp(2rem,4vw,3.5rem);
}

/* ── Card ── */
.ptf-card {
  position: relative;
  cursor: pointer;
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.ptf-card.is-visible { opacity: 1; transform: none; }

/* Hover border via inset outline */
.ptf-card::after {
  content: '';
  position: absolute;
  inset: -1rem -.8rem calc(2.4rem - 1rem);  /* above button row */
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .35s cubic-bezier(.22,.61,.36,1);
}
.ptf-card:hover::after { border-color: #0d0b09; }

/* ── Image area ── */
.ptf-card__media {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: transparent;
  margin-bottom: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.ptf-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.ptf-card:hover .ptf-card__media img { transform: scale(1.04); }

.ptf-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #c8c2b8;
  transition: color .3s;
}
.ptf-card:hover .ptf-card__placeholder { color: #a09890; }
.ptf-card__placeholder svg { width: 52px; height: 80px; }

/* ── Text ── */
.ptf-card__info { padding: 0 0 .8rem; }

.ptf-card__cat {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .54rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: #e05a00; margin-bottom: .55rem;
}
.ptf-card__name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(.9rem,1.2vw,1.05rem);
  font-weight: 800; line-height: 1.1;
  text-transform: uppercase; letter-spacing: -.01em;
  color: #0d0b09; margin: 0 0 .5rem;
}
.ptf-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; line-height: 1.6;
  color: rgba(13,11,9,.4); margin: 0;
}

/* ── Hover button — hidden until hover ── */
.ptf-card__hover {
  height: 2rem;
  display: flex; align-items: center;
}
.ptf-card__btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Inter', sans-serif;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: #0d0b09; text-decoration: none;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .3s, visibility .3s, transform .3s cubic-bezier(.22,.61,.36,1), gap .2s;
  white-space: nowrap;
}
.ptf-card:hover .ptf-card__btn {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.ptf-card__btn:hover { gap: .9rem; }
.ptf-card__btn svg { flex-shrink: 0; }

.ptf-card[hidden] { display: none; }

/* Empty */
.ptf-empty {
  font-family: 'Inter', sans-serif;
  font-size: .85rem; color: rgba(13,11,9,.35);
  text-align: center; padding: 5rem 0;
  letter-spacing: .1em; grid-column: 1/-1;
}

/* ════════════════════════════════════════════════════════════
   CTA
   ════════════════════════════════════════════════════════════ */
.ptf-cta {
  background: #0a0806;
  padding: clamp(5rem,9vw,10rem) 0;
}
.ptf-cta__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem,5vw,7rem);
  display: flex; flex-direction: column; align-items: flex-start;
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s, transform .9s;
}
.ptf-cta__inner.is-visible { opacity: 1; transform: none; }
.ptf-cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem,6vw,6rem);
  font-weight: 400; line-height: 1.05;
  color: #fff; margin: 0 0 3rem; max-width: 16ch;
}
.ptf-cta__title em { font-style: italic; color: #e05a00; }
.ptf-cta__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.ptf-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 2.4rem;
  background: #e05a00; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, gap .2s;
}
.ptf-btn:hover { background: #c94f00; gap: 1.1rem; }
.ptf-btn--ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.ptf-btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.6); }

/* ════════════════════════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════════════════════════ */
@keyframes ptf-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ptf-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
@keyframes ptf-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 900px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ptf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
  .ptf-hero__h1 { font-size: clamp(3.5rem,14vw,7rem); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 860px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .ptf-catalog__inner { grid-template-columns: 180px 1fr; gap: 0 2rem; }
  .ptf-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 600px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Hero */
  .ptf-hero { min-height: 90svh; }
  .ptf-hero__content { padding: calc(var(--tbh-h, 72px) + 3rem) 1.25rem 4.5rem; }
  .ptf-hero__h1 { font-size: clamp(3.2rem,16vw,6rem); margin-bottom: 1.4rem; }
  .ptf-hero__sub { font-size: .88rem; }
  .ptf-hero__scroll { display: none; }

  /* Filters — collapse to horizontal on mobile */
  .ptf-catalog__inner {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  }
  .ptf-filters {
    position: static;
    display: flex; flex-wrap: wrap; gap: .5rem;
    padding-top: 1.5rem; margin-bottom: 1.5rem;
  }
  .ptf-filters__group {
    border: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: .4rem;
  }
  .ptf-filters__group:first-child { border-top: none; padding-top: 0; }
  .ptf-filter-pill {
    display: inline-block; width: auto;
    padding: .5rem 1.1rem;
    border: 1px solid #d8d2c8; font-size: .6rem;
  }
  .ptf-filter-pill.is-active { border-color: #0d0b09; }
  .ptf-filter-pill.is-active::before { content: none; }
  .ptf-filters__subs { flex-direction: row; flex-wrap: wrap; }
  .ptf-filter-sub { display: inline-block; width: auto; padding: .35rem .8rem; border: 1px solid #d8d2c8; }
  .ptf-filter-sub::before { display: none; }
  .ptf-grid { padding-top: 0; }

  /* Grid — single column, bigger cards */
  .ptf-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Mobile cards — horizontal layout */
  .ptf-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1.2rem;
    align-items: center;
    padding: 1.4rem 0;
    border-bottom: 1px solid #e0dbd2;
    opacity: 1 !important; transform: none !important;
  }
  .ptf-card::after { display: none; }
  .ptf-card__media {
    grid-row: 1 / 3;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
    background: transparent;
    flex-shrink: 0;
  }
  .ptf-card__media img { padding: 0; }
  .ptf-card__info { grid-column: 2; padding: 0; align-self: center; }
  .ptf-card__hover {
    grid-column: 2;
    height: auto;
    margin-top: .6rem;
    align-items: flex-start;
  }
  .ptf-card__btn {
    transform: none;
    font-size: .58rem;
    color: #e05a00;
  }
  .ptf-card__btn::after { display: none; }
  .ptf-card__name { font-size: .9rem; }
  .ptf-card__desc { display: none; }

  /* CTA */
  .ptf-cta__btns { flex-direction: column; }
  .ptf-btn { width: 100%; justify-content: center; }
}
