/* ==========================================================================
   TEES & TALES — STOREFRONT COMPONENTS
   Depends on the tokens declared in style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CINEMATIC HOMEPAGE HERO
   Click-driven campaign. Video sources stay persistent and never participate
   in layout, so frame handoffs cannot shift the interface.
   -------------------------------------------------------------------------- */

.tt-cinematic {
  --tt-brand: var(--tt-campaign);
}

.tt-cinematic-hero,
.tt-cinematic-stage {
  position: relative;
  background: var(--tt-ink);
  color: var(--tt-paper);
}

.tt-cinematic-stage {
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 2.875rem);
}

.tt-cinematic-poster,
.tt-cinematic-videos,
.tt-cinematic-video,
.tt-cinematic-shade {
  position: absolute;
  inset: 0;
}

.tt-cinematic-poster img,
.tt-cinematic-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
}

.tt-cinematic-poster { z-index: 0; }

.tt-cinematic-videos {
  z-index: 1;
  pointer-events: none;
}

.tt-cinematic-video {
  visibility: hidden;
  opacity: 0;
}

.tt-cinematic-video[data-visible="true"] {
  visibility: visible;
  opacity: 1;
}

.tt-cinematic-shade {
  z-index: 2;
  background: rgb(0 0 0 / 0.48);
  pointer-events: none;
}

.tt-cinematic-upper-third {
  position: relative;
  width: 100%;
  height: 2.875rem;
  overflow: hidden;
  border-block: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(0 0 0 / 0.88);
  color: var(--tt-paper);
  pointer-events: none;
}

.tt-cinematic-upper-third-track {
  display: flex;
  width: max-content;
  animation: tt-marquee 24s linear infinite;
  will-change: transform;
}

.tt-cinematic-upper-third-set {
  display: flex;
  min-width: 100vw;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-around;
  gap: clamp(2.5rem, 7vw, 8rem);
  padding-inline: clamp(1.5rem, 4vw, 5rem);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tt-cinematic-copy {
  position: absolute;
  z-index: 3;
  left: max(2rem, calc((100vw - 90rem) / 2));
  /* Never start above the floating header + announcement bar, however short
     the viewport is. --tt-header-offset is measured in JS. */
  top: max(36%, calc(var(--tt-header-offset, 5rem) + 3rem));
  width: min(43rem, calc(100% - 4rem));
  transform: translateY(-50%);
}

.tt-cinematic-eyebrow,
.tt-cinematic-question,
.tt-cinematic-media-status {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tt-cinematic-eyebrow {
  color: rgb(255 255 255 / 0.78);
}

.tt-cinematic-title {
  max-width: 10ch;
  margin-top: 1rem;
  font-family: var(--tt-font-display);
  font-size: clamp(4.5rem, 8vw, 8.5rem);
  line-height: 0.88;
  color: var(--tt-paper);
}

.tt-cinematic-supporting {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.84);
}

.tt-cinematic-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}

.tt-cinematic-primary-cta,
.tt-cinematic-secondary-cta {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tt-cinematic-primary-cta {
  padding: 0.8rem 1.35rem;
  background: var(--tt-ink);
  color: var(--tt-cream);
  border: 1px solid rgb(255 255 255 / 0.22);
  transition: background-color 240ms ease, color 240ms ease;
}

.tt-cinematic-primary-cta:hover {
  background: var(--tt-cream);
  color: var(--tt-ink);
}

.tt-cinematic-secondary-cta {
  gap: 0.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.65);
  color: var(--tt-paper);
}

.tt-cinematic-controller-wrap {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 2.25rem;
  width: min(72rem, calc(100% - 4rem));
  transform: translateX(-50%);
  text-align: center;
}

.tt-cinematic-controller {
  position: relative;
  display: grid;
  grid-template-columns: minmax(14rem, 1.35fr) minmax(30rem, 3fr);
  align-items: center;
  min-height: 4.5rem;
  overflow: hidden;
  border: 1px solid var(--tt-glass-rear-border);
  background: var(--tt-glass-rear);
  box-shadow: inset 0 1px rgb(255 255 255 / 0.14), 0 1rem 3rem rgb(0 0 0 / 0.22);
  -webkit-backdrop-filter: blur(9px) saturate(120%) contrast(106%);
  backdrop-filter: blur(9px) saturate(120%) contrast(106%);
  transition: width 560ms var(--tt-ease-brand), grid-template-columns 560ms var(--tt-ease-brand);
}

.tt-cinematic-controller[data-collapsed="true"] {
  display: flex;
  width: 9rem;
  min-width: 9rem;
  margin-inline: auto;
  justify-content: center;
  border-color: var(--tt-glass-front-border);
  background: var(--tt-glass-front);
  -webkit-backdrop-filter: blur(13px) saturate(120%);
  backdrop-filter: blur(13px) saturate(120%);
}

.tt-cinematic-question {
  padding-inline: 1.75rem;
  text-align: left;
  color: rgb(255 255 255 / 0.68);
}

.tt-cinematic-options {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 100%;
}

.tt-cinematic-option,
.tt-cinematic-reset {
  position: relative;
  min-height: 4.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tt-paper);
}

.tt-cinematic-option::before {
  position: absolute;
  inset: 0.55rem 0.35rem;
  z-index: -1;
  content: "";
  border: 1px solid transparent;
  background: transparent;
  -webkit-backdrop-filter: blur(13px) saturate(120%);
  backdrop-filter: blur(13px) saturate(120%);
  transition: background-color 240ms ease, border-color 240ms ease;
}

.tt-cinematic-option:hover::before,
.tt-cinematic-option:focus-visible::before {
  border-color: var(--tt-glass-front-border);
  background: var(--tt-glass-front);
}

.tt-cinematic-option[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.tt-cinematic-reset {
  width: 100%;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.tt-cinematic-media-status {
  display: inline-block;
  margin-top: 0.75rem;
  color: rgb(255 255 255 / 0.62);
}

@media (max-width: 900px) {
  .tt-cinematic-copy { top: max(40%, calc(var(--tt-header-offset, 5rem) + 2rem)); width: min(38rem, calc(100% - 3rem)); }
  .tt-cinematic-title { font-size: clamp(4rem, 11vw, 6.5rem); }
  .tt-cinematic-controller-wrap { width: min(50rem, calc(100% - 3rem)); }
}

@media (min-width: 701px) and (max-height: 650px) {
  .tt-cinematic-copy { top: 7.75rem; transform: none; }
  .tt-cinematic-title { font-size: 3.75rem; }
  .tt-cinematic-supporting { margin-top: 0.75rem; font-size: 0.875rem; }
  .tt-cinematic-actions { margin-top: 1rem; }
  .tt-cinematic-controller-wrap { bottom: 1rem; }
}

@media (max-width: 700px) {
  .tt-cinematic-stage { min-height: 100svh; }

  .tt-cinematic-upper-third {
    position: absolute;
    z-index: 4;
    top: var(--tt-header-offset, 4.75rem);
    height: 2.5rem;
  }

  .tt-cinematic-upper-third-set {
    min-height: 2.5rem;
    gap: 2.75rem;
    padding-inline: 1.4rem;
    font-size: 0.625rem;
  }

  .tt-cinematic-poster img,
  .tt-cinematic-video { object-position: 54% center; }

  .tt-cinematic-shade { background: rgb(0 0 0 / 0.5); }

  .tt-cinematic-copy {
    top: max(35%, calc(var(--tt-header-offset, 5rem) + 1.5rem));
    left: 1.35rem;
    width: calc(100% - 2.7rem);
    transform: none;
  }

  .tt-cinematic-title {
    max-width: 8ch;
    margin-top: 0.65rem;
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .tt-cinematic-supporting {
    max-width: 32ch;
    margin-top: 0.9rem;
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .tt-cinematic-actions { gap: 0.85rem 1.35rem; margin-top: 1.15rem; }

  .tt-cinematic-primary-cta,
  .tt-cinematic-secondary-cta { min-height: 2.75rem; font-size: 0.625rem; }

  .tt-cinematic-controller-wrap { bottom: 1rem; width: calc(100% - 2rem); }

  .tt-cinematic-controller {
    display: block;
    min-height: 0;
    padding: 0.85rem;
  }

  .tt-cinematic-question { padding: 0 0 0.65rem; text-align: center; }

  .tt-cinematic-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgb(255 255 255 / 0.18);
  }

  .tt-cinematic-option {
    min-height: 2.75rem;
    background: rgb(0 0 0 / 0.68);
  }

  .tt-cinematic-option::before,
  .tt-cinematic-controller::before { display: none; }

  .tt-cinematic-controller[data-collapsed="true"] { display: flex; padding: 0; }
}

@media (max-width: 700px) and (max-height: 700px) {
  .tt-cinematic-copy { top: 8.25rem; }
  .tt-cinematic-title { font-size: 3rem; }
  .tt-cinematic-supporting { max-width: 40ch; margin-top: 0.55rem; }
  .tt-cinematic-actions { margin-top: 0.75rem; }
  .tt-cinematic-secondary-cta { display: none; }
  .tt-cinematic-controller-wrap { bottom: 0.55rem; }
  .tt-cinematic-controller { padding: 0.55rem; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .tt-cinematic-upper-third { top: var(--tt-header-offset, 3.75rem); }
  .tt-cinematic-copy { top: 6.75rem; left: 1.5rem; width: min(38rem, 56vw); transform: none; }
  .tt-cinematic-title { margin-top: 0.4rem; font-size: 3.25rem; }
  .tt-cinematic-supporting { margin-top: 0.5rem; font-size: 0.75rem; }
  .tt-cinematic-actions { margin-top: 0.65rem; }
  .tt-cinematic-secondary-cta { display: none; }
  .tt-cinematic-controller-wrap { right: 1rem; bottom: 1rem; left: auto; width: min(25rem, 39vw); transform: none; }
  .tt-cinematic-controller { display: block; padding: 0.55rem; }
  .tt-cinematic-question { padding: 0 0 0.35rem; text-align: center; }
  .tt-cinematic-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgb(255 255 255 / 0.18); }
  .tt-cinematic-option { min-height: 2.75rem; background: rgb(0 0 0 / 0.68); }
}

@media (prefers-reduced-motion: reduce) {
  .tt-cinematic-upper-third-track { animation: none; transform: none; }
  .tt-cinematic-controller,
  .tt-cinematic-option::before,
  .tt-cinematic-primary-cta { transition: none; }
}

/* --------------------------------------------------------------------------
   STATIC HERO (fallback when no cinematic films are uploaded)
   -------------------------------------------------------------------------- */

.tt-hero {
  position: relative;
  min-height: 80svh;
  overflow: hidden;
  background: var(--tt-ink);
  color: var(--tt-paper);
  display: flex;
  align-items: center;
}

.tt-hero__media {
  position: absolute;
  inset: 0;
}

.tt-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.tt-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.35) 60%, rgb(0 0 0 / 0.2) 100%);
}

.tt-hero__content {
  position: relative;
  z-index: 2;
  padding-block: 6rem;
  max-width: 44rem;
}

.tt-hero__title {
  margin-top: 1rem;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.88;
}

.tt-hero__sub {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.84);
}

.tt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   SHOPPING PATHS — the four pillars
   -------------------------------------------------------------------------- */

.tt-paths {
  display: flex;
  gap: 0.75rem;
  margin-inline: calc(var(--tt-gutter) * -1);
  padding-inline: var(--tt-gutter);
  padding-bottom: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.tt-paths::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .tt-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--tt-border-subtle);
    background: var(--tt-border-subtle);
  }
}

@media (min-width: 1024px) {
  .tt-paths { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tt-path {
  flex: 0 0 78vw;
  scroll-snap-align: start;
  background: var(--tt-surface);
  transition: opacity 400ms var(--tt-ease-brand);
}

@media (min-width: 640px) {
  .tt-path { flex: initial; }
}

.tt-paths:hover .tt-path:not(:hover) {
  opacity: 0.55;
}

.tt-path__link {
  display: block;
  height: 100%;
  padding: 1.5rem;
}

.tt-path__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--tt-cream);
}

.tt-path__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--tt-ease-brand);
}

.tt-path__link:hover .tt-path__media img {
  transform: scale(1.04);
}

.tt-path__eyebrow {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tt-text-muted);
}

.tt-path__title {
  margin-top: 0.5rem;
  font-family: var(--tt-font-display);
  font-size: 1.75rem;
  line-height: 1.05;
  color: var(--tt-ink);
}

.tt-path__line {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--tt-text-muted);
}

.tt-path__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tt-brand);
}

/* --------------------------------------------------------------------------
   MERCHANDISE DISCOVERY — circular category stories
   -------------------------------------------------------------------------- */

.tt-discovery {
  display: flex;
  gap: 1.5rem;
  margin-inline: calc(var(--tt-gutter) * -1);
  padding: 0 var(--tt-gutter) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.tt-discovery::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .tt-discovery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.75rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

.tt-discovery__item {
  flex: 0 0 42vw;
  scroll-snap-align: start;
  text-align: center;
}

@media (min-width: 768px) {
  .tt-discovery__item { flex: initial; }
}

.tt-discovery__media {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 50% !important;
  background: var(--tt-paper);
  border: 1px solid var(--tt-border-subtle);
}

.tt-discovery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
  transition: transform 700ms var(--tt-ease-brand);
}

.tt-discovery__item:hover .tt-discovery__media img {
  transform: scale(1.06);
}

.tt-discovery__name {
  margin-top: 1rem;
  font-family: var(--tt-font-display);
  font-size: 1.375rem;
  line-height: 1.1;
  color: var(--tt-ink);
}

.tt-discovery__desc {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--tt-text-muted);
}

/* --------------------------------------------------------------------------
   BRAND STORY BAND
   -------------------------------------------------------------------------- */

.tt-storyband {
  position: relative;
  min-height: 36rem;
  overflow: hidden;
  background: var(--tt-ink);
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--tt-paper);
}

.tt-storyband__media {
  position: absolute;
  inset: 0;
}

.tt-storyband__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.tt-storyband__shade {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.35);
}

.tt-storyband__inner {
  position: relative;
  z-index: 2;
  margin-inline: auto;
  max-width: 48rem;
  padding-block: 4rem;
}

.tt-storyband__title {
  margin-top: 1.25rem;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
}

.tt-storyband__copy {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.8);
}

/* --------------------------------------------------------------------------
   CAMPAIGN PANELS (custom / corporate)
   -------------------------------------------------------------------------- */

.tt-campaign {
  display: grid;
  min-height: 36rem;
  background: var(--tt-campaign);
  color: var(--tt-paper);
}

@media (min-width: 768px) {
  .tt-campaign { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-campaign--flip .tt-campaign__media { order: 2; }
}

.tt-campaign__media {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .tt-campaign__media { min-height: 100%; }
}

.tt-campaign__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-campaign__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.2);
}

.tt-campaign__body {
  display: flex;
  align-items: center;
  padding: 3.5rem 1.75rem;
}

@media (min-width: 768px) {
  .tt-campaign__body { padding: 3.5rem; }
}

@media (min-width: 1024px) {
  .tt-campaign__body { padding: 3.5rem 5rem; }
}

.tt-campaign__inner { max-width: 36rem; }

.tt-campaign__eyebrow { color: rgb(255 255 255 / 0.7); }

.tt-campaign__title {
  margin-top: 1.25rem;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.94;
}

.tt-campaign__copy {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.8);
}

.tt-campaign__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin-top: 2.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--tt-paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   TRUST STRIP
   -------------------------------------------------------------------------- */

.tt-trust {
  background: var(--tt-paper);
  border-block: 1px solid var(--tt-border-subtle);
}

.tt-trust__list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.tt-trust__list::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
  .tt-trust__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
}

.tt-trust__item {
  display: flex;
  flex: 0 0 72vw;
  min-height: 5rem;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-left: 1px solid var(--tt-border-subtle);
  scroll-snap-align: start;
}

.tt-trust__item:first-child {
  border-left: 0;
  padding-left: 0;
}

@media (min-width: 1024px) {
  .tt-trust__item {
    flex: initial;
    min-height: 6rem;
    padding: 1.25rem 1.5rem;
  }
}

.tt-trust__icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  color: var(--tt-brand);
}

.tt-trust__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tt-ink);
}

.tt-trust__detail {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--tt-text-muted);
}

/* --------------------------------------------------------------------------
   PRODUCT CARD + GRID + RAIL
   -------------------------------------------------------------------------- */

.tt-products {
  display: grid;
  gap: 1.75rem 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .tt-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .tt-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tt-rail {
  display: flex;
  gap: 1.25rem;
  margin-inline: calc(var(--tt-gutter) * -1);
  padding: 0 var(--tt-gutter) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.tt-rail::-webkit-scrollbar { display: none; }

.tt-rail > .tt-card {
  flex: 0 0 62vw;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .tt-rail > .tt-card { flex: 0 0 38vw; }
}

@media (min-width: 1024px) {
  .tt-rail > .tt-card { flex: 0 0 22vw; }
}

.tt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.tt-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--tt-paper);
}

.tt-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--tt-ease-brand), opacity 400ms ease;
}

.tt-card:hover .tt-card__media img {
  transform: scale(1.04);
}

.tt-card__media--hover-swap .tt-card__img-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.tt-card:hover .tt-card__img-alt { opacity: 1; }

.tt-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.tt-badge {
  padding: 0.3rem 0.55rem;
  background: var(--tt-ink);
  color: var(--tt-cream);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.tt-badge--brand { background: var(--tt-brand); color: var(--tt-paper); }
.tt-badge--cream { background: var(--tt-cream); color: var(--tt-ink); }
.tt-badge--out { background: rgb(0 0 0 / 0.6); color: var(--tt-paper); }

.tt-card__wish {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgb(255 255 255 / 0.9);
  color: var(--tt-ink);
  transition: background-color var(--tt-motion-micro) ease, color var(--tt-motion-micro) ease;
}

.tt-card__wish:hover,
.tt-card__wish[aria-pressed="true"] {
  background: var(--tt-brand);
  color: var(--tt-paper);
}

.tt-card__quick {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.85rem;
  background: rgb(0 0 0 / 0.82);
  color: var(--tt-cream);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(100%);
  transition: transform 360ms var(--tt-ease-brand);
}

.tt-card:hover .tt-card__quick,
.tt-card:focus-within .tt-card__quick {
  transform: translateY(0);
}

@media (hover: none) {
  .tt-card__quick { display: none; }
}

.tt-card__body {
  padding-top: 0.9rem;
}

.tt-card__cat {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tt-text-muted);
}

.tt-card__title {
  margin-top: 0.35rem;
  font-family: var(--tt-font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tt-ink);
}

.tt-card__title a:hover { color: var(--tt-brand); }

.tt-card__price {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tt-ink);
}

.tt-card__price del {
  margin-right: 0.5rem;
  font-weight: 400;
  color: var(--tt-text-muted);
}

.tt-card__price ins {
  text-decoration: none;
  color: var(--tt-brand);
}

.tt-card__meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--tt-text-muted);
}

/* --------------------------------------------------------------------------
   COLLECTION TILES
   -------------------------------------------------------------------------- */

.tt-collection {
  display: block;
}

.tt-collection__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--tt-ink);
}

.tt-collection__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--tt-ease-brand);
}

.tt-collection:hover .tt-collection__media img { transform: scale(1.03); }

.tt-collection__eyebrow {
  margin-top: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tt-text-muted);
}

.tt-collection__title {
  margin-top: 0.5rem;
  font-family: var(--tt-font-display);
  font-size: 1.875rem;
  line-height: 1;
  color: var(--tt-ink);
}

/* --------------------------------------------------------------------------
   PAGE HEADER (archives, shop, inner pages)
   -------------------------------------------------------------------------- */

.tt-pagehead {
  padding-block: 3rem 2rem;
  border-bottom: 1px solid var(--tt-border-subtle);
  background: var(--tt-cream);
}

.tt-pagehead__title {
  margin-top: 0.75rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  color: var(--tt-ink);
}

.tt-pagehead__intro {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tt-text-muted);
}

.tt-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tt-text-muted);
}

.tt-breadcrumbs a:hover { color: var(--tt-brand); }

/* --------------------------------------------------------------------------
   SHOP FILTERS
   -------------------------------------------------------------------------- */

.tt-shop {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem 5rem;
}

@media (min-width: 1024px) {
  .tt-shop {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.tt-filters__group + .tt-filters__group {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tt-border-subtle);
}

.tt-filters__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tt-ink);
  margin-bottom: 1rem;
}

.tt-filters__list > li + li { margin-top: 0.6rem; }

.tt-filters__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--tt-text-muted);
  transition: color var(--tt-motion-micro) ease;
}

.tt-filters__link:hover,
.tt-filters__link[aria-current="true"] {
  color: var(--tt-brand);
  font-weight: 700;
}

.tt-shop__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tt-border-subtle);
}

.tt-shop__count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tt-text-muted);
}

.tt-filters-toggle {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .tt-filters-toggle { display: none; }
  .tt-filters { display: block !important; }
}

@media (max-width: 1023px) {
  .tt-filters[hidden] { display: none; }
}

/* --------------------------------------------------------------------------
   SINGLE PRODUCT
   -------------------------------------------------------------------------- */

.tt-product {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 4rem;
}

@media (min-width: 1024px) {
  .tt-product {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
  }
}

.tt-gallery__main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--tt-paper);
}

.tt-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.tt-gallery__thumb {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: var(--tt-paper);
}

.tt-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.tt-gallery__thumb[aria-current="true"] { border-color: var(--tt-brand); }

.tt-product__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tt-text-muted);
}

.tt-product__title {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
  color: var(--tt-ink);
}

.tt-product__tagline {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tt-text-muted);
}

.tt-product__price {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tt-ink);
}

.tt-product__price del { margin-right: 0.6rem; font-weight: 400; color: var(--tt-text-muted); }
.tt-product__price ins { text-decoration: none; color: var(--tt-brand); }

.tt-options { margin-top: 1.75rem; }

.tt-options__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tt-options__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tt-option {
  min-width: 3rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--tt-border-strong);
  background: var(--tt-paper);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--tt-motion-micro) ease;
}

.tt-option:hover { border-color: var(--tt-ink); }

.tt-option[aria-pressed="true"],
.tt-option[data-selected="true"] {
  background: var(--tt-ink);
  color: var(--tt-cream);
  border-color: var(--tt-ink);
}

.tt-option--swatch {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  position: relative;
}

.tt-option--swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--tt-ink);
}

.tt-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--tt-border-strong);
  background: var(--tt-paper);
}

.tt-qty button {
  width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color var(--tt-motion-micro) ease;
}

.tt-qty button:hover { background: var(--tt-cream); }

.tt-qty input {
  width: 3rem;
  border: 0;
  border-inline: 1px solid var(--tt-border-strong);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: transparent;
}

.tt-qty input:focus { outline: none; }

.tt-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.tt-product__actions .tt-btn { flex: 1 1 12rem; }

.tt-accordion {
  margin-top: 2.5rem;
  border-top: 1px solid var(--tt-border-subtle);
}

.tt-accordion__item { border-bottom: 1px solid var(--tt-border-subtle); }

.tt-accordion__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tt-accordion__icon { transition: transform 300ms var(--tt-ease-brand); }
.tt-accordion__trigger[aria-expanded="true"] .tt-accordion__icon { transform: rotate(180deg); }

.tt-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--tt-ease-brand);
}

.tt-accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.tt-accordion__panel > div { overflow: hidden; }
.tt-accordion__body { padding-bottom: 1.25rem; font-size: 0.9375rem; line-height: 1.7; color: var(--tt-text-muted); }
.tt-accordion__body ul { list-style: disc; padding-left: 1.25rem; }
.tt-accordion__body li + li { margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   REVIEWS
   -------------------------------------------------------------------------- */

.tt-stars {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--tt-brand);
}

.tt-review {
  padding-block: 1.5rem;
  border-top: 1px solid var(--tt-border-subtle);
}

.tt-review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.tt-review__name { font-weight: 700; font-size: 0.9375rem; }

.tt-review__verified {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  background: var(--tt-cream);
  color: var(--tt-brand);
}

.tt-review__body { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   CART DRAWER
   -------------------------------------------------------------------------- */

.tt-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.tt-cart-drawer[data-open="true"] { pointer-events: auto; }

.tt-cart-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
  opacity: 0;
  transition: opacity 360ms var(--tt-ease-brand);
}

.tt-cart-drawer[data-open="true"] .tt-cart-drawer__scrim { opacity: 1; }

.tt-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(28rem, 100%);
  display: flex;
  flex-direction: column;
  background: var(--tt-surface);
  transform: translateX(100%);
  transition: transform 420ms var(--tt-ease-brand);
}

.tt-cart-drawer[data-open="true"] .tt-cart-drawer__panel { transform: translateX(0); }

.tt-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--tt-border-subtle);
}

.tt-cart-drawer__title {
  font-family: var(--tt-font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.tt-cart-drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.tt-cart-drawer__foot { padding: 1.25rem; border-top: 1px solid var(--tt-border-subtle); background: var(--tt-paper); }

.tt-cart-line {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--tt-border-subtle);
}

.tt-cart-line__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tt-paper); }
.tt-cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.tt-cart-line__name { font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
.tt-cart-line__meta { margin-top: 0.3rem; font-size: 0.75rem; color: var(--tt-text-muted); }
.tt-cart-line__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; }
.tt-cart-line__price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.tt-cart-line__remove { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tt-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.tt-cart-line__remove:hover { color: var(--tt-brand); }

.tt-cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tt-cart-empty { text-align: center; padding-block: 3rem; color: var(--tt-text-muted); }

/* --------------------------------------------------------------------------
   MOCKUP STUDIO
   -------------------------------------------------------------------------- */

.tt-mockup {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .tt-mockup { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; }
}

.tt-mockup__stage {
  position: relative;
  aspect-ratio: 1;
  background: var(--tt-paper);
  border: 1px solid var(--tt-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-mockup__canvas { width: 100%; height: 100%; }

.tt-mockup__panel > * + * { margin-top: 1.25rem; }

.tt-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tt-swatch {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--tt-border-strong);
}

.tt-swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--tt-ink);
}

.tt-mockup__status {
  font-size: 0.8125rem;
  color: var(--tt-text-muted);
}

/* --------------------------------------------------------------------------
   GIFT FINDER
   -------------------------------------------------------------------------- */

.tt-giftnav {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .tt-giftnav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tt-giftnav__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tt-text-muted);
  margin-bottom: 1rem;
}

.tt-giftnav__list > li + li { margin-top: 0.65rem; }

.tt-giftnav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9375rem;
  transition: color var(--tt-motion-micro) ease;
}

.tt-giftnav__link:hover { color: var(--tt-brand); }

/* --------------------------------------------------------------------------
   STORIES / EDITORIAL
   -------------------------------------------------------------------------- */

.tt-story-card__media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--tt-paper); }
.tt-story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--tt-ease-brand); }
.tt-story-card:hover .tt-story-card__media img { transform: scale(1.04); }
.tt-story-card__title { margin-top: 1rem; font-family: var(--tt-font-display); font-size: 1.625rem; line-height: 1.05; color: var(--tt-ink); }
.tt-story-card__excerpt { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.65; color: var(--tt-text-muted); }

.tt-prose {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.tt-prose > * + * { margin-top: 1.5rem; }
.tt-prose h2 { margin-top: 3rem; font-size: 2.25rem; }
.tt-prose h3 { margin-top: 2.5rem; font-size: 1.625rem; }
.tt-prose ul { list-style: disc; padding-left: 1.5rem; }
.tt-prose ol { list-style: decimal; padding-left: 1.5rem; }
.tt-prose li + li { margin-top: 0.5rem; }
.tt-prose a { color: var(--tt-brand); text-decoration: underline; text-underline-offset: 3px; }
.tt-prose blockquote {
  padding-left: 1.5rem;
  border-left: 3px solid var(--tt-brand);
  font-family: var(--tt-font-display);
  font-size: 1.5rem;
  line-height: 1.3;
}
.tt-prose img { margin-block: 2rem; }

/* --------------------------------------------------------------------------
   TESTIMONIALS + SOCIAL GALLERY
   -------------------------------------------------------------------------- */

.tt-testimonial {
  padding: 2rem;
  background: var(--tt-paper);
  border: 1px solid var(--tt-border-subtle);
}

.tt-testimonial__quote {
  font-family: var(--tt-font-display);
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--tt-ink);
}

.tt-testimonial__who { margin-top: 1.25rem; font-size: 0.8125rem; font-weight: 700; }
.tt-testimonial__detail { margin-top: 0.2rem; font-size: 0.75rem; color: var(--tt-text-muted); }

.tt-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (min-width: 768px) {
  .tt-social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tt-social-grid__item { overflow: hidden; aspect-ratio: 1; background: var(--tt-paper); }
.tt-social-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--tt-ease-brand); }
.tt-social-grid__item:hover img { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.tt-faq { max-width: 48rem; }

/* --------------------------------------------------------------------------
   PAGINATION
   -------------------------------------------------------------------------- */

.tt-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3.5rem;
}

.tt-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--tt-border-strong);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: all var(--tt-motion-micro) ease;
}

.tt-pagination .page-numbers:hover,
.tt-pagination .page-numbers.current {
  background: var(--tt-ink);
  color: var(--tt-cream);
  border-color: var(--tt-ink);
}

.tt-pagination .page-numbers.dots {
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   TOASTS
   -------------------------------------------------------------------------- */

.tt-toasts {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(22rem, calc(100vw - 2.5rem));
}

.tt-toast {
  padding: 0.9rem 1.1rem;
  background: var(--tt-ink);
  color: var(--tt-cream);
  font-size: 0.875rem;
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.25);
  animation: tt-toast-in 320ms var(--tt-ease-brand) both;
}

.tt-toast--error { background: #7a0017; color: var(--tt-paper); }
.tt-toast--success { background: #10361f; color: var(--tt-paper); }

@keyframes tt-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   REVEAL ON SCROLL
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--tt-ease-print), transform 900ms var(--tt-ease-print);
}

[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   EMPTY / NOT FOUND
   -------------------------------------------------------------------------- */

.tt-empty {
  padding-block: 5rem;
  text-align: center;
}

.tt-empty__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
}

.tt-empty__copy {
  margin: 1.25rem auto 2rem;
  max-width: 32rem;
  color: var(--tt-text-muted);
}
