/* Shared, progressively enhanced vehicle category carousel. */
.tn-categories { padding: 68px 0 62px; background: #fff; }
.tn-categories__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.tn-categories__intro { min-width: 0; }
.tn-categories__eyebrow { margin: 0 0 10px; color: #8b6927; font-size: .71rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.tn-categories__head h2 { margin: 0; color: #14161a; font-size: clamp(1.45rem, 1rem + 1.6vw, 2.15rem); line-height: 1.23; letter-spacing: -.035em; }
.tn-categories__description { margin: 12px 0 0; color: #6b7178; font-size: .96rem; }
.tn-categories__controls { display: flex; flex: 0 0 auto; gap: 9px; padding-bottom: 3px; }
.tn-categories [hidden] { display: none !important; }
.tn-categories__control { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; color: #14161a; background: #fff; border: 1px solid #d6d7d9; border-radius: 50%; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.tn-categories__control:hover:not(:disabled) { background: #f4dfad; border-color: #c8a24b; }
.tn-categories__control:disabled { opacity: .32; cursor: default; }
.tn-categories__track { --category-gap: 16px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--category-gap)) / 4.3); gap: var(--category-gap); margin: 0; padding: 5px 3px 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 3px; scrollbar-width: thin; scrollbar-color: #c8a24b #eae8e2; list-style: none; -webkit-overflow-scrolling: touch; }
.tn-categories__track::-webkit-scrollbar { height: 4px; }
.tn-categories__track::-webkit-scrollbar-track { background: #eae8e2; border-radius: 3px; }
.tn-categories__track::-webkit-scrollbar-thumb { background: #c8a24b; border-radius: 3px; }
.tn-categories__item { min-width: 0; scroll-snap-align: start; }
.tn-categories__card { display: flex; position: relative; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid #e6e3dc; border-radius: 12px; background: #f8f7f4; color: #14161a; text-decoration: none; transition: border-color .2s, background .2s; }
.tn-categories__card:hover, .tn-categories__card.is-active { border-color: #b58b37; background: linear-gradient(140deg, #faf4e5, #efe2c4); }
.tn-categories__card.is-active { box-shadow: inset 0 0 0 1px #b58b37; }
.tn-categories__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; margin: 0; object-fit: cover; background: #deddd7; transition: filter .25s ease; }
.tn-categories__card:hover .tn-categories__image { filter: brightness(1.05); }
.tn-categories__caption { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 6px; padding: 15px 16px; }
.tn-categories__name { font-size: .97rem; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.tn-categories__arrow { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid #d5c9b0; border-radius: 50%; font-size: 1.1rem; line-height: 1; transition: background .2s, border-color .2s; }
.tn-categories__card:hover .tn-categories__arrow, .tn-categories__card.is-active .tn-categories__arrow { background: #c8a24b; border-color: #c8a24b; }
.tn-categories__control:focus-visible, .tn-categories__card:focus-visible, .tn-categories__track:focus-visible { outline: 2px solid #806021; outline-offset: 3px; }
.tn-categories__foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 13px; color: #74706a; font-size: .71rem; letter-spacing: .035em; }
.tn-categories__foot b { color: #14161a; font-weight: 600; }
.tn-categories__sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tn-categories--stock { padding: 32px 0 30px; border-bottom: 1px solid #e9e7e2; }
.tn-categories--stock .tn-categories__head { margin-bottom: 17px; }
.tn-categories--stock .tn-categories__eyebrow { margin-bottom: 6px; }
.tn-categories--stock .tn-categories__head h2 { font-size: 1.45rem; }
.tn-categories--stock .tn-categories__caption { padding-block: 12px; }
.tn-categories--stock .tn-categories__foot { margin-top: 9px; }
@media (max-width: 1000px) {
  .tn-categories__track { grid-auto-columns: calc((100% - 2 * var(--category-gap)) / 3.2); }
}
@media (max-width: 760px) {
  .tn-categories { padding: 44px 0 38px; }
  .tn-categories__head { gap: 16px; margin-bottom: 23px; }
  .tn-categories__track { grid-auto-columns: calc((100% - var(--category-gap)) / 2.2); }
  .tn-categories__control { width: 40px; height: 40px; }
  .tn-categories__description { font-size: .88rem; }
  .tn-categories--stock { padding: 25px 0; }
}
@media (max-width: 520px) {
  .tn-categories__head { align-items: flex-start; gap: 15px; }
  .tn-categories__eyebrow { font-size: .62rem; letter-spacing: .12em; }
  .tn-categories__head h2 { font-size: 1.43rem; }
  .tn-categories__description { line-height: 1.65; }
  .tn-categories__controls { gap: 6px; margin-top: 25px; }
  .tn-categories__control { width: 36px; height: 36px; }
  .tn-categories__control svg { width: 19px; height: 19px; }
  .tn-categories__track { --category-gap: 12px; grid-auto-columns: calc((100% - var(--category-gap)) / 1.5); }
  .tn-categories__caption { padding: 13px 14px; }
  .tn-categories__name { font-size: .89rem; }
  .tn-categories__arrow { width: 26px; height: 26px; }
  .tn-categories--stock .tn-categories__head h2 { font-size: 1.2rem; }
  .tn-categories--stock .tn-categories__controls { margin-top: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-categories__control, .tn-categories__card, .tn-categories__image, .tn-categories__arrow { transition: none; }
}

/* Arrow buttons, keyboard, native touch and direct mouse dragging. */
.tn-categories__track {
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: default;
  user-select: none;
}
.tn-categories__track::-webkit-scrollbar { display: none; }
.tn-categories__card { cursor: pointer; }
.tn-categories__image { -webkit-user-drag: none; user-select: none; }

.tn-categories .tn-categories__track { scrollbar-width:none; padding-bottom:5px; cursor:grab; }
.tn-categories .tn-categories__track::-webkit-scrollbar { display:none; width:0; height:0; }
.tn-categories .tn-categories__track.is-dragging { cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto; user-select:none; }
.tn-categories .tn-categories__track.is-dragging * { cursor:grabbing; }
.tn-categories__track a { -webkit-user-drag:none; }
