/* ============================================================
   TBRANDS — 3D Glass Hero + Product Categories
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

.tb-hero-3d {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d0700;
}

/* Gradient backdrop */
.tb-hero-3d__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 70% 50%, #221000 0%, transparent 60%),
    radial-gradient(ellipse 60% 90% at 15% 60%, #080300 0%, transparent 70%),
    linear-gradient(160deg, #120900 0%, #060300 60%, #0e0600 100%);
}
/* Noise grain */
.tb-hero-3d__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .6;
  pointer-events: none;
}

/* Layout */
.tb-hero-3d__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 7rem 3rem 5rem;
}

/* ── Content ── */
.tb-hero-3d__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.tb-hero-3d__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #c87000;
}

.tb-hero-3d__h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  font-weight: 500;
  line-height: 1.06;
  color: #f5ede0;
  margin: 0;
}
.tb-hero-3d__h1 em {
  font-style: normal;
  color: #d4a057;
}

.tb-hero-3d__sub {
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  line-height: 1.8;
  color: rgba(245,237,224,.52);
  max-width: 40ch;
  margin: 0;
}

/* Action buttons */
.tb-hero-3d__actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  align-items: center;
}

.tb-hero-3d__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .88rem 2rem;
  background: #c87000;
  color: #0d0700;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.tb-hero-3d__btn-primary:hover { background: #e09000; transform: translateY(-1px); }

.tb-hero-3d__btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  background: transparent;
  color: rgba(245,237,224,.75);
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(245,237,224,.22);
  transition: border-color .2s, color .2s;
}
.tb-hero-3d__btn-ghost:hover { border-color: #d4a057; color: #d4a057; }

/* Stats */
.tb-hero-3d__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(212,160,87,.14);
}
.tb-hero-3d__stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #d4a057;
  line-height: 1;
}
.tb-hero-3d__stat-label {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245,237,224,.35);
  margin-top: .3rem;
}

/* ── 3D Stage ── */
.tb-hero-3d__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glow — layered for glass-caustic effect */
.tb-hero-3d__glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 70% 50% at 55% 45%, rgba(210,130,20,.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 45% 65%, rgba(100,160,230,.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(180,90,0,.08) 0%, transparent 75%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
  animation: tb3d-glow-pulse 6s ease-in-out infinite alternate;
}
@keyframes tb3d-glow-pulse {
  from { opacity: .8; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.06); }
}

#tb-hero-glass-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-height: 640px;
  display: block;
  cursor: grab;
  touch-action: none;
}
#tb-hero-glass-canvas:active { cursor: grabbing; }

/* Spinner */
.tb-hero-3d__loader {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border: 2px solid rgba(212,160,87,.2);
  border-top-color: #d4a057;
  border-radius: 50%;
  animation: tb3d-spin 0.9s linear infinite;
}
@keyframes tb3d-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Controls row: dots + hint — sits BELOW the canvas, always visible */
.tb-hero-3d__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem .5rem 0;
  width: 100%;
}

/* Dot switcher */
.tb-hero-3d__dots {
  display: flex;
  gap: .65rem;
  align-items: center;
}

.tb-hero-3d__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212,160,87,.3);
  border: 1px solid rgba(212,160,87,.5);
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s, width .3s;
  flex-shrink: 0;
}
.tb-hero-3d__dot.is-active {
  background: #d4a057;
  border-color: #d4a057;
  width: 22px;
  border-radius: 4px;
}
.tb-hero-3d__dot:hover:not(.is-active) {
  background: rgba(212,160,87,.6);
  transform: scale(1.2);
}

/* Drag hint — inline, right side of controls row */
.tb-hero-3d__hint {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(212,160,87,.5);
  pointer-events: none;
  transition: opacity .6s;
  animation: tb3d-pulse 3s ease-in-out infinite;
  white-space: nowrap;
}
.tb-hero-3d__hint svg { width: 13px; height: 13px; opacity: .5; }
@keyframes tb3d-pulse { 0%,100% { opacity:1; } 50% { opacity:.25; } }

/* ── Responsive ── */
@media (max-width: 960px) {
  .tb-hero-3d__inner {
    grid-template-columns: 1fr;
    padding: 5.5rem 1.5rem 3rem;
    gap: .5rem;
  }
  .tb-hero-3d__content { order: 2; align-items: center; text-align: center; }
  .tb-hero-3d__sub { max-width: 54ch; }
  .tb-hero-3d__stage { order: 1; }
  #tb-hero-glass-canvas { max-height: 360px; }
  .tb-hero-3d__stats { justify-content: center; }
}
@media (max-width: 480px) {
  .tb-hero-3d__actions { flex-direction: column; width: 100%; }
  .tb-hero-3d__btn-primary,
  .tb-hero-3d__btn-ghost { justify-content: center; }
  .tb-hero-3d__stats { gap: 1.5rem; }
}


/* ══════════════════════════════════════════════════════════════
   PRODUCT CATEGORIES  (matches reference screenshot)
   ══════════════════════════════════════════════════════════════ */

.tb-categories {
  background: #f0e8d8;
  padding: clamp(60px, 7vw, 100px) 0;
}

.tb-categories__container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Header row */
.tb-categories__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.tb-categories__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c87000;
  margin-bottom: .7rem;
}

.tb-categories__h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: #1c1c1a;
  line-height: 1.1;
  margin: 0;
}

.tb-categories__see-all {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: #1c1c1a;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding-bottom: .25rem;
  border-bottom: 1px solid rgba(28,28,26,.2);
  transition: color .2s, border-color .2s;
}
.tb-categories__see-all:hover { color: #c87000; border-color: #c87000; }

/* 5-column grid */
.tb-categories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

/* Individual card */
.tb-cat-card {
  display: flex;
  flex-direction: column;
  background: #1a1008;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: #f5ede0;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s;
}
.tb-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}

/* Image area */
.tb-cat-card__media {
  position: relative;
  aspect-ratio: 1 / 0.88;
  overflow: hidden;
}
.tb-cat-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.tb-cat-card:hover .tb-cat-card__media img { transform: scale(1.06); }
.tb-cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10,5,0,.65) 100%);
}

/* Body */
.tb-cat-card__body {
  padding: 1.1rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.tb-cat-card__icon {
  width: 22px; height: 22px;
  color: #c87000;
}
.tb-cat-card__icon svg { width: 100%; height: 100%; }

.tb-cat-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f5ede0;
  line-height: 1.2;
}

.tb-cat-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  line-height: 1.6;
  color: rgba(245,237,224,.5);
  flex: 1;
}

.tb-cat-card__arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: .25rem;
  color: #c87000;
  opacity: .7;
  transition: opacity .2s, transform .2s;
}
.tb-cat-card__arrow svg { width: 20px; height: 20px; }
.tb-cat-card:hover .tb-cat-card__arrow { opacity: 1; transform: translateX(3px); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .tb-categories__grid { grid-template-columns: repeat(3, 1fr); }
  .tb-categories__container { padding: 0 2rem; }
}
@media (max-width: 700px) {
  .tb-categories__grid { grid-template-columns: repeat(2, 1fr); }
  .tb-categories__head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .tb-categories__container { padding: 0 1.25rem; }
}
@media (max-width: 420px) {
  .tb-categories__grid { grid-template-columns: 1fr; }
}
