/* The Black Friday Top 100 (mobile first). Uses the tokens from styles.css. */

.t100 {
  --chips-top: 76px;
}

/* ---------- hero ---------- */

.t-hero {
  padding: 18px 0 10px;
  background: linear-gradient(180deg, var(--tint) 0%, #fff 100%);
}

.t-hero__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.t-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  letter-spacing: 0.06em;
}

.t-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: t-pulse 1.6s ease-in-out infinite;
}

@keyframes t-pulse {
  50% {
    opacity: 0.3;
  }
}

.t-hero h1 {
  margin-top: 8px;
  font: 800 clamp(1.9rem, 8.2vw, 4.4rem) / 1 var(--display);
  letter-spacing: -0.045em;
  color: var(--navy);
}

.t-hero h1 span {
  color: var(--blue);
}

.t-hero__sub {
  max-width: 36rem;
  margin-top: 8px;
  font-size: clamp(0.95rem, 2.6vw, 1.12rem);
  color: var(--soft);
}

.t-hero__yeti {
  flex: none;
  width: clamp(84px, 22vw, 190px);
  margin-left: auto;
}

/* ---------- category toggles ---------- */

.t-cats {
  position: sticky;
  top: var(--header-h, var(--chips-top));
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.t-cats__row {
  display: flex;
  gap: 8px;
  padding-block: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.t-cats__row::-webkit-scrollbar {
  display: none;
}

.chip-t {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.chip-t:hover {
  border-color: var(--blue);
}

.chip-t__icon {
  font-size: 1.1rem;
  line-height: 1;
}

.chip-t__n {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.chip-t.is-on {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.chip-t.is-on .chip-t__n {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---------- list ---------- */

.t-list {
  padding: 14px 0 32px;
}

.t-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 0.95rem;
}

.t-status b {
  color: var(--navy);
}

.t-status a {
  color: var(--blue);
  font-weight: 600;
}

.t-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.t-grid {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

/* Phone: a horizontal card. Image left, text right, button full width. */
.t-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: t-in 0.35s ease both;
}

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

@keyframes t-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.t-card__link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.t-card__img {
  position: relative;
  grid-row: span 2;
  align-self: start;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tint);
}

.t-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.t-card:hover .t-card__img img {
  transform: scale(1.04);
}

.t-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: 800 0.92rem/1 var(--display);
  letter-spacing: -0.02em;
  box-shadow: 0 4px 10px -4px rgba(11, 31, 77, 0.6);
}

.t-rank::before {
  content: "#";
  margin-right: 1px;
  font-size: 0.72em;
  opacity: 0.7;
}

.t-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.t-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}

.t-cat {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.t-off {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.t-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font: 700 1rem/1.25 var(--sans);
  color: var(--navy);
}

.t-card__why {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--soft);
}

.t-buy {
  grid-column: 2;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  margin-top: 10px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.t-buy:hover {
  background: var(--blue-deep);
}

.t-buy svg,
.t-detail__buy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-fine {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Tablet and up: vertical cards in a grid. */
@media (min-width: 700px) {
  .t-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
  }

  .t-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .t-card__img {
    grid-row: auto;
    margin-bottom: 12px;
  }

  .t-rank {
    top: 10px;
    left: 10px;
    height: 34px;
    min-width: 34px;
    font-size: 1.05rem;
  }

  .t-buy {
    grid-column: 1;
  }

  .t-card__why {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

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

  .t-grid--mini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- product detail ---------- */

.t-item {
  padding: 18px 0 110px;
}

.t-item .crumbs {
  margin-bottom: 14px;
}

.t-detail {
  display: grid;
  gap: 20px;
}

.t-detail__media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--tint);
}

.t-detail__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.t-rank--lg {
  top: 14px;
  left: 14px;
  height: 44px;
  min-width: 44px;
  font-size: 1.3rem;
}

.t-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.t-detail__meta .t-cat {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy);
}

.t-detail h1 {
  margin-top: 10px;
  font: 800 clamp(1.8rem, 6vw, 2.8rem) / 1.05 var(--display);
  letter-spacing: -0.035em;
  color: var(--navy);
}

.t-detail__off {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--soft);
}

.t-detail__off b {
  display: inline-block;
  margin-right: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font: 800 1.35rem/1 var(--display);
}

.t-detail__h {
  margin-top: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.t-detail__why {
  margin-top: 6px;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--navy);
}

.t-detail__list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.t-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--soft);
}

.t-detail__list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--tint-2);
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-detail__buy {
  width: 100%;
  height: 56px;
  margin-top: 24px;
  font-size: 1.05rem;
}

.t-video {
  margin-top: 36px;
}

.t-video h2,
.t-more h2 {
  margin-bottom: 14px;
  font: 800 clamp(1.4rem, 4vw, 1.9rem) / 1.1 var(--display);
  letter-spacing: -0.03em;
}

.t-video__frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 20px;
  background: var(--navy);
  box-shadow: var(--shadow-lift);
}

.t-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.t-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}

.t-pager a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
}

.t-pager a:hover {
  border-color: var(--blue);
}

.t-pager small {
  color: var(--blue);
  font-weight: 700;
}

.t-pager__next {
  text-align: right;
}

.t-more {
  margin-top: 36px;
}

/* Phone: the buy button follows you down the page. */
.t-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -10px 24px -18px rgba(11, 31, 77, 0.4);
}

.t-sticky span {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.t-sticky b {
  color: var(--coral);
  font-weight: 800;
}

.t-sticky small {
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--soft);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.t-sticky .btn {
  height: 46px;
  padding: 0 18px;
}

@media (min-width: 860px) {
  .t-item {
    padding-bottom: 40px;
  }

  .t-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 44px;
  }

  .t-detail__media {
    position: sticky;
    top: 96px;
  }

  .t-detail__buy {
    width: auto;
    padding: 0 34px;
  }

  .t-sticky {
    display: none;
  }

  .t-video {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 28px;
  }

  .t-video h2 {
    grid-column: 1 / -1;
  }

  .t-video__frame {
    margin-inline: 0;
  }
}

@media (max-width: 640px) {
  .t100 {
    --chips-top: 64px;
  }
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 760px;
  padding-block: 32px 24px;
  color: var(--soft);
}

.legal h1 {
  font: 800 clamp(2rem, 5vw, 2.8rem) / 1.05 var(--display);
  letter-spacing: -0.035em;
  color: var(--navy);
}

.legal__updated {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.legal h2 {
  margin: 28px 0 8px;
  font: 700 1.2rem/1.25 var(--display);
  color: var(--navy);
}

.legal p,
.legal li {
  line-height: 1.65;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--blue);
}

/* footer policy links (all pages) */
.footer__policy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer__policy a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.footer__policy a:hover {
  color: var(--blue);
}

/* ---------- primary nav: three items, also on phones ---------- */

.nav a[aria-current="page"]:not(.nav__bf) {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.nav a {
  padding-block: 6px;
}

@media (max-width: 1180px) {
  .nav a:nth-child(n + 4) {
    display: inline;
  }
}

@media (max-width: 960px) {
  .header__row {
    flex-wrap: wrap;
    height: auto;
    row-gap: 0;
    padding-top: 10px;
  }

  .nav {
    order: 3;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav a {
    flex: 1;
    padding: 11px 4px;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }

  .search {
    flex: 1 1 140px;
  }

  .t100 {
    --chips-top: 112px;
  }
}

@media (max-width: 640px) {
  .t100 {
    --chips-top: 104px;
  }
}
