/* =========================================================
   ALIBARBAR INGOT 9000 — CLEAN WHITE / GOLD FLAVOUR GUIDE
   Visual language aligned with the product detail page.
   All styles remain scoped to .tr-page.
   ========================================================= */
.tr-page {
  --tr-bg: #ffffff;
  --tr-bg-soft: #fffaf1;
  --tr-panel: #ffffff;
  --tr-panel-soft: #fff8e8;
  --tr-text: #151515;
  --tr-muted: #686868;
  --tr-gold: #d6a92c;
  --tr-gold-light: #b8860b;
  --tr-gold-dark: #9a6b12;
  --tr-border: rgba(214, 169, 44, 0.24);
  --tr-red: #ff3b30;
  --tr-pink: #ff4778;
  width: min(1400px, calc(100% - 32px));
  margin: 20px auto;
  overflow: hidden;
  border: 1px solid rgba(214, 169, 44, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
  color: var(--tr-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  padding-bottom: 92px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.06);
}

.tr-page *,
.tr-page *::before,
.tr-page *::after {
  box-sizing: border-box;
}

.tr-page button,
.tr-page input {
  font: inherit;
}

.tr-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.tr-hero {
  text-align: center;
  padding: 62px 16px 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 169, 44, 0.15), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
  border-bottom: 1px solid rgba(154, 107, 18, 0.13);
}

.tr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border: 1px solid rgba(214, 169, 44, 0.32);
  border-radius: 999px;
  background: #fff8e8;
  color: var(--tr-gold-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(154, 107, 18, 0.08);
}

.tr-hero h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2.05rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #151515 18%, #d6a92c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tr-hero-subtitle {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--tr-muted);
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
}

.tr-disclaimer {
  max-width: 850px;
  margin: 20px auto 0;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(214, 169, 44, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #737373;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
}

.tr-section {
  padding: 44px 0 0;
}

.tr-section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.tr-section-heading h2 {
  margin: 0;
  color: #151515;
  font-family: inherit;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.4px;
  background: linear-gradient(90deg, #151515 15%, #d6a92c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tr-section-heading p {
  max-width: 680px;
  margin: 9px auto 0;
  color: var(--tr-muted);
  font-size: 14px;
}

.tr-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tr-pick-card {
  appearance: none;
  width: 100%;
  min-height: 154px;
  padding: 20px;
  text-align: left;
  color: var(--tr-text);
  background: linear-gradient(135deg, #ffffff 0%, #fff8e8 100%);
  border: 1px solid rgba(214, 169, 44, 0.24);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.045);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.tr-pick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 169, 44, 0.62);
  box-shadow: 0 14px 32px rgba(154, 107, 18, 0.12);
}

.tr-pick-label {
  display: block;
  margin-bottom: 9px;
  color: var(--tr-gold-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.tr-pick-card strong {
  display: block;
  color: #151515;
  font-size: 16px;
  line-height: 1.3;
}

.tr-pick-card small {
  display: block;
  margin-top: 7px;
  color: var(--tr-muted);
  line-height: 1.45;
}

.tr-pick-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--tr-gold-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tr-tools {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 42px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(214, 169, 44, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.tr-search-wrap {
  position: relative;
}

.tr-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tr-gold-dark);
  font-size: 18px;
  pointer-events: none;
}

.tr-search {
  width: 100%;
  height: 48px;
  padding: 0 42px;
  color: #151515;
  background: #ffffff;
  border: 1px solid rgba(214, 169, 44, 0.24);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tr-search:focus {
  border-color: rgba(214, 169, 44, 0.76);
  box-shadow: 0 0 0 3px rgba(214, 169, 44, 0.12);
}

.tr-search::placeholder {
  color: #999;
}

.tr-clear-search {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #777;
  background: transparent;
  cursor: pointer;
  display: none;
}

.tr-filter-row {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tr-filter-row::-webkit-scrollbar {
  display: none;
}

.tr-filter-btn {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #686868;
  background: #fffaf1;
  border: 1px solid rgba(214, 169, 44, 0.20);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}

.tr-filter-btn:hover {
  border-color: rgba(214, 169, 44, 0.55);
  color: var(--tr-gold-dark);
}

.tr-filter-btn.is-active {
  color: #000;
  background: var(--tr-gold);
  border-color: var(--tr-gold);
  box-shadow: 0 6px 14px rgba(214, 169, 44, 0.20);
}

.tr-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 2px 14px;
  color: var(--tr-muted);
  font-size: 12px;
}

.tr-results-meta strong {
  color: var(--tr-gold-dark);
}

.tr-flavour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tr-flavour-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(214, 169, 44, 0.22);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
  scroll-margin-top: 155px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tr-flavour-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 169, 44, 0.58);
  box-shadow: 0 18px 38px rgba(154, 107, 18, 0.12);
}

.tr-flavour-card.is-hidden {
  display: none;
}

.tr-flavour-card.is-highlighted {
  animation: tr-highlight 1.4s ease;
}

@keyframes tr-highlight {
  0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055); }
  35% { box-shadow: 0 0 0 3px rgba(214, 169, 44, 0.34), 0 20px 42px rgba(154, 107, 18, 0.16); }
}

.tr-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.tr-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.tr-flavour-card:hover .tr-image-wrap img {
  transform: scale(1.035);
}

.tr-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: rgba(255, 248, 232, 0.96);
  border: 1px solid rgba(214, 169, 44, 0.34);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.10);
}

.tr-popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  color: #fff;
  background: linear-gradient(90deg, var(--tr-red), var(--tr-pink));
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(255, 45, 85, .24);
}

.tr-card-body {
  padding: 21px;
}

.tr-flavour-name {
  margin: 0;
  min-height: 46px;
  color: #151515;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
}

.tr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 29px;
  margin: 11px 0 13px;
}

.tr-tag {
  padding: 5px 8px;
  color: var(--tr-gold-dark);
  background: #fff8e8;
  border: 1px solid rgba(214, 169, 44, 0.22);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.tr-profile {
  min-height: 72px;
  margin: 0;
  color: #5f5f5f;
  font-size: 13px;
  line-height: 1.65;
}

.tr-ratings {
  margin-top: 17px;
  padding: 14px;
  background: #fffaf1;
  border: 1px solid rgba(214, 169, 44, 0.18);
  border-radius: 12px;
}

.tr-rating-row {
  display: grid;
  grid-template-columns: 78px 1fr 30px;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #686868;
  font-size: 11px;
}

.tr-rating-row:last-child {
  margin-bottom: 0;
}

.tr-rating-row strong {
  color: #4f4f4f;
  text-align: right;
  font-size: 10px;
}

.tr-rating-dots {
  display: flex;
  gap: 5px;
}

.tr-rating-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e7e7e7;
  border: 1px solid #d7d7d7;
}

.tr-rating-dot.is-filled {
  background: var(--tr-gold);
  border-color: var(--tr-gold);
  box-shadow: 0 0 7px rgba(214, 169, 44, 0.22);
}

.tr-best-for,
.tr-quick-take {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 11px;
}

.tr-best-for {
  background: linear-gradient(135deg, #ffffff 0%, #fff8e8 100%);
  border: 1px solid rgba(214, 169, 44, 0.18);
  border-left: 3px solid var(--tr-gold-dark);
}

.tr-quick-take {
  background: #ffffff;
  border: 1px solid #ececec;
}

.tr-best-for span,
.tr-quick-take span {
  display: block;
  margin-bottom: 4px;
  color: var(--tr-gold-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .8px;
}

.tr-best-for p,
.tr-quick-take p {
  margin: 0;
  color: #686868;
  font-size: 11px;
  line-height: 1.55;
}

.tr-empty {
  display: none;
  padding: 45px 20px;
  text-align: center;
  color: var(--tr-muted);
  background: #ffffff;
  border: 1px dashed rgba(214, 169, 44, 0.36);
  border-radius: 16px;
}

.tr-bottom-cta {
  max-width: 850px;
  margin: 54px auto 0;
  padding: 36px 24px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff8e8 100%);
  border: 1px solid rgba(214, 169, 44, 0.24);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.tr-bottom-cta h2 {
  margin: 0;
  color: #151515;
  font-family: inherit;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  background: linear-gradient(90deg, #151515 15%, #d6a92c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tr-bottom-cta p {
  margin: 10px auto 22px;
  color: var(--tr-muted);
}

.tr-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  color: #fff !important;
  background: linear-gradient(90deg, var(--tr-red), var(--tr-pink));
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .65px;
  text-transform: uppercase;
  box-shadow: 0 9px 22px rgba(255, 45, 85, 0.26);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tr-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 27px rgba(255, 45, 85, 0.36);
}

.tr-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(214, 169, 44, 0.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.10);
}

.tr-sticky-buy a {
  width: min(420px, 100%);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: linear-gradient(90deg, var(--tr-red), var(--tr-pink));
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .55px;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(255, 45, 85, .26);
}

@media (max-width: 1050px) {
  .tr-flavour-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-picks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tr-page {
    width: 100%;
    margin: 0 auto;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding-bottom: 82px;
  }

  .tr-shell {
    width: min(100% - 22px, 1220px);
  }

  .tr-hero {
    padding: 46px 10px 30px;
  }

  .tr-disclaimer {
    font-size: 11px;
    text-align: left;
  }

  .tr-section {
    padding-top: 34px;
  }

  .tr-picks-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tr-pick-card {
    min-height: 0;
    padding: 17px;
  }

  .tr-tools {
    margin-top: 32px;
    padding: 10px;
    border-radius: 13px;
  }

  .tr-filter-row {
    margin-top: 9px;
  }

  .tr-flavour-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tr-card-body {
    padding: 18px;
  }

  .tr-flavour-name,
  .tr-profile {
    min-height: 0;
  }

  .tr-results-meta {
    margin-top: 15px;
  }

  .tr-bottom-cta {
    margin-top: 38px;
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tr-page *,
  .tr-page *::before,
  .tr-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}