/* =========================================================
   SONALIKA — TRACTORS · PREMIUM DARK SHOWROOM
   Full dark navy theme. Filter on the RIGHT.
   Blur-backdrop on mobile filter open.
   Rides on home.css + site.css + redesign.css + hero-section.css.
   ========================================================= */

:root {
  --tt-navy:    #16224d;
  --tt-navy-d:  #0d1530;
  --tt-card:    #1c2d5e;
  --tt-bd:      rgba(255,255,255,.12);
  --tt-bd-2:    rgba(255,255,255,.08);
  --tt-gold:    var(--gold, #f4b400);
  --tt-gold-2:  var(--gold-2, #ffce5c);
  --tt-ease:    cubic-bezier(.16,1,.3,1);
  --tt-radius:  18px;
  --tt-shadow:  0 20px 50px -18px rgba(0,0,0,.5);
  --tt-shadow-hov: 0 36px 70px -20px rgba(0,0,0,.65);
}

/* =========================================================
   PAGE BASE
   ========================================================= */
body.tt-page {
  background: #0d1530;
  color: #fff;
}

/* =========================================================
   SECTION HEADS (shared)
   ========================================================= */
.tt-sec { position: relative; padding: clamp(56px,7vw,100px) 0; }
.tt-sec.tight { padding-top: clamp(22px,3vw,40px); }
.tt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(26px,3.2vw,42px); }
.tt-head .l { max-width: 60ch; }
.tt-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 800; font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--tt-gold-2);
}
.tt-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--tt-gold); }
.tt-h2 {
  font-family: var(--display); font-weight: 900; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(30px,3.6vw,50px); color: #fff; margin: 14px 0 0;
}
.tt-h2 .serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--tt-gold-2); letter-spacing: -.01em; }
.tt-lead { color: rgba(255,255,255,.6); font-size: clamp(14.5px,1.3vw,17px); line-height: 1.55; margin-top: 13px; max-width: 52ch; }

/* =========================================================
   TRACTORS HERO — unique deep-indigo + cyan accent
   Layered over shared .phero style from hero-section.css
   ========================================================= */
/* ── Tractors hero overrides ─────────────────────────────── */
#ttHero.phero {
  background: linear-gradient(180deg, #141c44 0%, #0e1638 50%, #0b1030 100%);
}
/* tractor photo — show the machine prominently on the right */
#ttHero .phero-photo {
  object-position: 66% center;
  filter: brightness(.80) contrast(1.08) saturate(1.1);
}
/* deep cyan-blue bloom (field/sky atmosphere) */
#ttHero.phero::before {
  background: radial-gradient(circle,
    rgba(30,100,255,.24), rgba(20,60,200,.07) 44%, transparent 68%) !important;
  right: 18%; bottom: 10%; top: auto !important; filter: blur(20px);
}
#ttHero .phero-h { letter-spacing: -.038em; }
#ttHero .phero-stats { border-top-color: rgba(80,140,255,.28); }

@media (max-width: 560px) {
  #ttHero .phero-photo {
    object-position: 62% center;
    filter: brightness(.70) contrast(1.1) saturate(1.1);
  }
}

/* =========================================================
   CATALOGUE SECTION — clean light background
   ========================================================= */
.tt-shop {
  background: linear-gradient(180deg, #f4f7fc 0%, #eef2fb 100%) !important;
  color: #16224d !important;
}
.tt-shop .sec-head h2 { color: #16224d !important; }
.tt-shop .eyebrow { color: var(--gold-d, #c08e0d) !important; }
.tt-shop .lead { color: #51618f !important; }

/* =========================================================
   TOOLBAR — light theme
   ========================================================= */
.tt-toolbar {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  background: #fff; border: 1.5px solid #dde4f4;
  border-radius: 100px; padding: 8px 8px 8px 24px;
  box-shadow: 0 4px 24px -8px rgba(20,30,70,.12);
  margin-bottom: 28px;
}
.tt-search { position: relative; flex: 1; display: flex; align-items: center; }
.tt-search .s-ico { width: 20px; height: 20px; color: #9298bb; margin-right: 12px; }
.tt-search input {
  flex: 1; border: none; background: none;
  font-family: var(--body); font-size: 15.5px; color: #16224d; outline: none; padding: 12px 0;
}
.tt-search input::placeholder { color: #9298bb; }

.s-tools { display: flex; align-items: center; gap: 4px; }
.s-tool {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: none; background: none; color: #9298bb; cursor: pointer; transition: .2s;
}
.s-tool:hover { background: #f0f4ff; color: #1b3f9c; }
.s-tool svg { width: 18px; height: 18px; }

.tt-sort { position: relative; }
.tt-sort select {
  appearance: none; background: #f4f7fc; border: none; border-radius: 100px;
  padding: 12px 42px 12px 20px; font-family: var(--display); font-weight: 800; font-size: 13.5px;
  color: #16224d; cursor: pointer; outline: none;
}
.tt-sort select option { background: #fff; color: #16224d; }
.tt-sort .chev {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; pointer-events: none; color: #9298bb;
}

.tt-filter-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: #16224d;
  color: #fff; border: none; border-radius: 100px;
  padding: 12px 22px; font-family: var(--display); font-weight: 800; font-size: 14px;
  cursor: pointer; transition: .2s; white-space: nowrap; flex-shrink: 0;
}
.tt-filter-toggle:hover { background: #1b3f9c; box-shadow: 0 8px 20px -8px rgba(27,63,156,.5); }
.tt-filter-toggle svg { width: 18px; height: 18px; opacity: .8; }
#ttFilterCount { font-size: 12px; background: rgba(255,255,255,.2); border-radius: 100px; padding: 2px 7px; margin-left: 2px; }

.tt-count-row { margin-bottom: 16px; }
.tt-count { font-family: var(--display); font-weight: 700; font-size: 14px; color: #9298bb; }
.tt-count b { color: #16224d; font-weight: 900; }

/* quick filter chips — light */
.tt-quick {
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px;
  margin-bottom: 24px; padding-bottom: 8px; scrollbar-width: none;
}
.tt-quick::-webkit-scrollbar { display: none; }
.tt-qchip {
  flex: none; font-family: var(--display); font-weight: 700; font-size: 13.5px;
  color: #51618f; background: #fff; border: 1.5px solid #dde4f4;
  padding: 10px 22px; border-radius: 100px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.tt-qchip:hover { color: #1b3f9c; border-color: #1b3f9c; background: #f0f4ff; }
.tt-qchip.on {
  color: #fff; background: #1b3f9c; border-color: #1b3f9c;
  box-shadow: 0 8px 20px -8px rgba(27,63,156,.4);
}

/* =========================================================
   LAYOUT — single column (sidebar removed, filter is drawer)
   ========================================================= */
.tt-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

/* =========================================================
   FILTER SIDEBAR — hidden (filter lives in the right drawer)
   ========================================================= */
.tt-side { display: none; }
.tt-side-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.tt-side-head h3 { font-family: var(--display); font-weight: 800; font-size: 18px; color: #16224d; }
.tt-clear {
  font-family: var(--display); font-weight: 700; font-size: 12px; color: #9298bb;
  background: none; border: none; cursor: pointer; transition: .2s;
}
.tt-clear:hover { color: #df241b; }

/* sidebar search */
.tt-fsearch { position: relative; margin-bottom: 10px; }
.tt-fsearch input {
  width: 100%; height: 42px; border-radius: 10px;
  border: 1.5px solid #dde4f4; background: #f4f7fc;
  padding: 0 16px 0 40px; font-family: var(--body); font-size: 13.5px; color: #16224d; outline: none; transition: .2s;
}
.tt-fsearch input::placeholder { color: #9298bb; }
.tt-fsearch input:focus { border-color: #1b3f9c; background: #fff; }
.tt-fsearch .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #9298bb; }
.tt-fsearch .clr { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: none; place-items: center; color: #9298bb; background: #f4f7fc; }
.tt-fsearch.has-val .clr { display: grid; }
.tt-fsearch .clr svg { width: 12px; height: 12px; }

/* filter groups */
.tt-fgroup { border-top: 1px solid #eef1f8; padding: 16px 0 4px; }
.tt-fgroup:first-of-type { border-top: none; padding-top: 0; }
.tt-fgroup-head {
  font-family: var(--display); font-weight: 800; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; color: #16224d; margin-bottom: 12px;
}
.tt-fgroup-body { width: 100%; }

/* pill filters */
.tt-pillwrap { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 10px; }
.tt-pillf {
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  color: #51618f; background: #fff; border: 1.5px solid #dde4f4;
  padding: 7px 14px; border-radius: 100px; cursor: pointer; transition: .18s; white-space: nowrap;
}
.tt-pillf:hover { color: #1b3f9c; border-color: #1b3f9c; background: #f0f4ff; transform: translateY(-1px); }
.tt-pillf.on {
  color: #fff; background: #1b3f9c; border-color: #1b3f9c;
  box-shadow: 0 6px 16px -6px rgba(27,63,156,.45);
}

/* sort rows */
.tt-sortlist { display: flex; flex-direction: column; gap: 0; padding-bottom: 8px; }
.tt-sortrow {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 2px; font-family: var(--body); font-size: 13.5px; font-weight: 500;
  color: #51618f; background: none; border: none; cursor: pointer; transition: .18s;
}
.tt-sortrow:hover { color: #16224d; }
.tt-sortrow.on { color: #1b3f9c; font-weight: 600; }
.tt-radio {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid #dde4f4; position: relative; transition: .18s;
}
.tt-sortrow.on .tt-radio { border-color: #1b3f9c; }
.tt-sortrow.on .tt-radio::after {
  content: ""; position: absolute; inset: 3px; background: #1b3f9c; border-radius: 50%;
}

/* apply button */
.tt-side-apply { margin-top: 16px; padding-top: 16px; border-top: 1px solid #eef1f8; }
.tt-side-apply .apply {
  width: 100%; padding: 13px; border-radius: 10px;
  font-family: var(--display); font-weight: 800; font-size: 14px;
  color: #fff; background: #16224d; transition: .2s;
}
.tt-side-apply .apply:hover { background: #1b3f9c; }

/* =========================================================
   ACTIVE FILTER TAGS — light
   ========================================================= */
.tt-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.tt-active .lbl { font-family: var(--display); font-weight: 700; font-size: 12px; color: #9298bb; }
.tt-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  color: #16224d; background: #fff; border: 1.5px solid #dde4f4;
  padding: 7px 13px; border-radius: 100px; cursor: pointer; transition: .2s;
  box-shadow: 0 2px 8px -4px rgba(20,30,70,.1);
}
.tt-tag:hover { border-color: #df241b; color: #df241b; background: #fff5f5; }
.tt-tag svg { width: 13px; height: 13px; }
.tt-active .cl-all {
  font-family: var(--display); font-weight: 700; font-size: 12.5px; color: #9298bb;
  background: none; cursor: pointer; transition: .2s;
}
.tt-active .cl-all:hover { color: #df241b; }

/* =========================================================
   TRACTOR CARDS — PREMIUM CINEMATIC
   ========================================================= */
.tt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.tt-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: #fff;
  border: 1.5px solid #e4eaf6;
  box-shadow: 0 4px 20px -6px rgba(20,30,70,.1);
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .65s var(--tt-ease), transform .65s var(--tt-ease),
              box-shadow .45s var(--tt-ease), border-color .35s;
  cursor: pointer;
}
.tt-card.in { opacity: 1; transform: none; }
.tt-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244,180,0,.55);
  box-shadow:
    0 20px 50px -10px rgba(20,30,70,.18),
    0 0 0 1px rgba(244,180,0,.25);
}
@media (prefers-reduced-motion:reduce) { .tt-card { opacity:1; transform:none; } }

/* ── Cinematic photo area ── */
.tt-card-media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: radial-gradient(120% 100% at 50% 0%, #243470, #0f1838);
}
.tt-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--tt-ease);
  filter: saturate(1.1) brightness(.95);
}
.tt-card:hover .tt-card-media img { transform: scale(1.08); filter: saturate(1.2) brightness(1.0); }

/* cinematic gradient layers over the image */
.tt-card-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9,15,38,.12) 0%,
    rgba(9,15,38,.0)  38%,
    rgba(9,15,38,.55) 72%,
    rgba(9,15,38,.90) 100%
  );
}
.tt-card-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(50% 40% at 80% 80%, rgba(244,180,0,.12), transparent 60%),
    radial-gradient(35% 30% at 20% 20%, rgba(80,120,255,.12), transparent 55%);
  opacity: 0; transition: opacity .5s;
}
.tt-card:hover .tt-card-media::after { opacity: 1; }

/* ── Diagonal ribbon badge ── */
.tt-ribbon {
  position: absolute; top: 0; left: 0; z-index: 5;
  width: 92px; height: 92px; overflow: hidden; pointer-events: none;
}
.tt-ribbon::after {
  position: absolute; top: 20px; left: -24px; width: 110px;
  text-align: center; transform: rotate(-45deg);
  font-family: var(--display); font-weight: 900; font-size: 9.5px;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 0;
}
.tt-ribbon.pop::after  { content:"POPULAR";     background:linear-gradient(90deg,#122a6e,#1b3f9c); color:var(--tt-gold-2); }
.tt-ribbon.best::after { content:"BEST SELLER"; background:linear-gradient(90deg,var(--tt-gold),var(--tt-gold-2)); color:#0f1838; }
.tt-ribbon.new::after  { content:"NEW";          background:linear-gradient(90deg,#1e7a12,#2e8a1a); color:#fff; }

/* ── HP badge — prominent, gold glow ── */
.tt-card-hp {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--display); font-weight: 900; color: #fff;
  background: rgba(9,15,38,.72); border: 1px solid rgba(255,206,92,.35);
  padding: 8px 13px; border-radius: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 18px -4px rgba(244,180,0,.4);
  transition: box-shadow .3s;
}
.tt-card:hover .tt-card-hp { box-shadow: 0 0 28px -4px rgba(244,180,0,.65); }
.tt-card-hp b { font-size: 22px; line-height: 1; color: var(--tt-gold-2); }
.tt-card-hp i { font-style: normal; font-size: 11px; color: rgba(255,255,255,.65); font-weight: 700; margin-left:1px; }

/* ── Fav button ── */
.tt-fav {
  position: absolute; right: 14px; top: 14px; z-index: 5; width: 38px; height: 38px;
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(9,15,38,.5); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px); transition: .25s;
}
.tt-fav svg { width: 17px; height: 17px; transition: .25s; }
.tt-fav:hover { background: #fff; color: #df241b; }
.tt-fav.on { background: #fff; color: #df241b; }
.tt-fav.on svg { fill: #df241b; }

/* ── Card body — light background ── */
.tt-card-body {
  padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 0; flex: 1;
  background: #fff;
}
.tt-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.tt-card-name {
  font-family: var(--display); font-weight: 900; font-size: 18px;
  color: #16224d; line-height: 1.1; letter-spacing: -.02em; margin: 0;
}
.tt-rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--display); font-weight: 800; font-size: 13px;
  color: #16224d; white-space: nowrap; flex: none; margin-top: 2px;
}
.tt-tagline { font-size: 12.5px; color: #51618f; margin: 0; line-height: 1.4; }
.tt-reviews { font-size: 11px; color: #9298bb; margin-top: 3px; }

/* ── Spec strip ── */
.tt-specs {
  display: flex;
  border-top: 1px solid #eef1f8; border-bottom: 1px solid #eef1f8;
  padding: 12px 8px; margin: 12px 0 8px;
  background: #f4f7fc; border-radius: 10px;
}
.tt-spec-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; text-align: center; padding: 4px 0;
}
.tt-spec-col + .tt-spec-col { border-left: 1px solid #eef1f8; }
.tt-spec-lbl {
  font-family: var(--display); font-weight: 700; font-size: 8px;
  color: #9298bb; text-transform: uppercase; letter-spacing: .12em;
}
.tt-spec-val {
  font-family: var(--display); font-weight: 900; font-size: 19px;
  color: #16224d; line-height: 1;
}

/* ── Price row ── */
.tt-pricerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.tt-price {
  font-family: var(--display); font-weight: 900; font-size: 21px;
  color: #1b3f9c; letter-spacing: -.01em; line-height: 1;
}
.tt-price i { font-style: normal; color: #1b3f9c; }
.tt-price-ast { font-size: .55em; color: #9298bb; font-weight: 600; vertical-align: super; }

/* ── Footer buttons ── */
.tt-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.tt-btn-view {
  flex: 1; padding: 13px 0; border-radius: 14px;
  font-family: var(--display); font-weight: 800; font-size: 14px;
  color: #0f1838;
  background: linear-gradient(135deg, var(--tt-gold-2), var(--tt-gold));
  border: none; text-align: center; cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(244,180,0,.55);
  transition: transform .28s var(--tt-ease), box-shadow .28s, filter .28s;
}
.tt-btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(244,180,0,.75);
  filter: brightness(1.06);
}
.tt-btn-cmp {
  flex: none; padding: 12px 14px; border-radius: 14px;
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  color: #51618f;
  background: #f4f7fc;
  border: 1.5px solid #dde4f4;
  cursor: pointer; white-space: nowrap; transition: .22s;
}
.tt-btn-cmp:hover { color: #1b3f9c; border-color: #1b3f9c; background: #eef2fb; }
.tt-btn-cmp.on  { color: #fff; background: #1b3f9c; border-color: #1b3f9c; }

/* chips below card */
.tt-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.tt-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--display); font-weight: 700; font-size: 10.5px;
  color: rgba(255,255,255,.5); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 7px; padding: 5px 8px; line-height: 1;
}
.tt-chip svg { width: 11px; height: 11px; color: rgba(255,255,255,.4); flex: none; }

/* empty state */
.tt-empty {
  grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 80px 20px; text-align: center;
  background: rgba(255,255,255,.04); border: 1.5px dashed rgba(255,255,255,.12); border-radius: 18px;
}
.tt-empty svg { width: 46px; height: 46px; color: rgba(255,255,255,.25); }
.tt-empty p { font-family: var(--display); font-weight: 700; font-size: 17px; color: rgba(255,255,255,.6); }
.tt-empty button {
  font-family: var(--display); font-weight: 800; font-size: 13px;
  color: #16224d; padding: 12px 24px; border-radius: 100px; background: var(--tt-gold);
}

/* =========================================================
   PAGINATION — light
   ========================================================= */
.tt-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: clamp(30px,4vw,48px); }
.tt-pg {
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 14px; color: #51618f;
  background: #fff; border: 1.5px solid #dde4f4; transition: .25s;
}
.tt-pg:hover { color: #1b3f9c; border-color: #1b3f9c; background: #f0f4ff; }
.tt-pg.on { color: #fff; background: #1b3f9c; border-color: #1b3f9c; box-shadow: 0 8px 20px -8px rgba(27,63,156,.5); }
.tt-pg.nav svg { width: 18px; height: 18px; }
.tt-pg:disabled { opacity: .3; pointer-events: none; }
.tt-pg.dots { border: none; background: none; pointer-events: none; color: #9298bb; }

/* =========================================================
   WHY SONALIKA (dark glass cards)
   ========================================================= */
.tt-why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tt-why {
  position: relative; padding: 28px 24px; border-radius: 20px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--tt-shadow); overflow: hidden;
  transition: transform .45s var(--tt-ease), background .3s, border-color .3s, box-shadow .45s;
}
.tt-why:hover {
  transform: translateY(-6px); background: rgba(255,255,255,.09);
  border-color: rgba(244,180,0,.35); box-shadow: var(--tt-shadow-hov);
}
.tt-why .wic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  color: var(--tt-gold-2); background: rgba(244,180,0,.15); transition: .45s var(--tt-ease);
}
.tt-why:hover .wic { background: linear-gradient(150deg,var(--tt-gold-2),var(--tt-gold)); color: #16224d; transform: scale(1.06); }
.tt-why .wic svg { width: 27px; height: 27px; }
.tt-why h3 { font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; margin-top: 18px; }
.tt-why p { color: rgba(255,255,255,.62); font-size: 13.5px; line-height: 1.55; margin-top: 7px; }

/* =========================================================
   CATEGORY SHOWCASE
   ========================================================= */
.tt-cat-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.tt-catcard {
  position: relative; min-height: 240px; border-radius: 20px; overflow: hidden;
  cursor: pointer; border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--tt-shadow); display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .45s var(--tt-ease), box-shadow .45s, border-color .3s;
}
.tt-catcard:hover { transform: translateY(-6px); box-shadow: var(--tt-shadow-hov); border-color: rgba(244,180,0,.35); }
.tt-catcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--tt-ease); }
.tt-catcard:hover img { transform: scale(1.08); }
.tt-catcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,18,46,.92) 12%, rgba(11,18,46,.35) 55%, rgba(11,18,46,.1)); }
.tt-catcard .cc-body { position: relative; z-index: 2; padding: 20px; }
.tt-catcard h3 { font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; letter-spacing: -.01em; }
.tt-catcard .cc-exp { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: 12.5px; color: var(--tt-gold-2); }
.tt-catcard .cc-exp svg { width: 14px; height: 14px; transition: transform .3s var(--tt-ease); }
.tt-catcard:hover .cc-exp svg { transform: translateX(4px); }

/* =========================================================
   FLOATING COMPARE BAR (unchanged)
   ========================================================= */
.tt-cbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8500; transform: translateY(120%); transition: transform .5s var(--tt-ease); pointer-events: none; }
.tt-cbar.show { transform: none; pointer-events: auto; }
.tt-cbar-in {
  max-width: var(--maxw); margin: 0 auto; margin-bottom: 16px; padding: 14px 18px;
  display: flex; align-items: center; gap: 16px; border-radius: 20px;
  background: rgba(16,24,58,.92); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.tt-cbar-label { font-family: var(--display); font-weight: 800; font-size: 13px; color: #fff; flex: none; }
.tt-cbar-label span { color: var(--tt-gold-2); }
.tt-cbar-items { display: flex; gap: 10px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tt-cbar-items::-webkit-scrollbar { display: none; }
.tt-cbar-item { position: relative; flex: none; width: 120px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.tt-cbar-item img { width: 42px; height: 32px; object-fit: cover; border-radius: 7px; flex: none; }
.tt-cbar-item .nm { font-family: var(--display); font-weight: 700; font-size: 11.5px; color: #fff; line-height: 1.15; overflow: hidden; }
.tt-cbar-item .rm { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #df241b; color: #fff; }
.tt-cbar-item .rm svg { width: 11px; height: 11px; }
.tt-cbar-slot { flex: none; width: 120px; height: 46px; border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.2); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 11px; color: rgba(255,255,255,.4); }
.tt-cbar-actions { flex: none; display: flex; align-items: center; gap: 10px; }
.tt-cbar-clear { font-family: var(--display); font-weight: 700; font-size: 12.5px; color: rgba(255,255,255,.6); background: none; }
.tt-cbar-clear:hover { color: #fff; }
.tt-cbar-go {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 100px;
  font-family: var(--display); font-weight: 800; font-size: 14px; color: #16224d;
  background: linear-gradient(150deg,var(--tt-gold-2),var(--tt-gold));
  box-shadow: 0 14px 28px -14px rgba(244,180,0,.7); transition: transform .3s var(--tt-ease);
}
.tt-cbar-go:hover { transform: translateY(-2px); }
.tt-cbar-go:disabled { opacity: .4; pointer-events: none; }
.tt-cbar-go svg { width: 16px; height: 16px; }

/* =========================================================
   COMPARE MODAL & QUICK VIEW (dark)
   ========================================================= */
.tt-cmp-modal { position: fixed; inset: 0; z-index: 9400; display: none; padding: 20px; align-items: center; justify-content: center; }
.tt-cmp-modal.open { display: flex; }
.tt-cmp-back { position: absolute; inset: 0; background: rgba(8,12,30,.8); backdrop-filter: blur(8px); }
.tt-cmp-card { position: relative; width: min(1000px,100%); max-height: 90vh; overflow-y: auto; background: #16224d; border-radius: 24px; box-shadow: 0 60px 130px -40px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.14); }
.tt-cmp-close { position: absolute; top: 14px; right: 14px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); display: grid; place-items: center; }
.tt-cmp-close svg { width: 18px; height: 18px; }
.tt-cmp-head { padding: 24px clamp(20px,3vw,32px); border-bottom: 1px solid rgba(255,255,255,.1); }
.tt-cmp-head h2 { font-family: var(--display); font-weight: 900; font-size: 24px; color: #fff; }
.tt-cmp-rowh { display: grid; padding: 20px clamp(20px,3vw,32px); gap: 16px; }
.tt-cmp-col img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: 14px; }
.tt-cmp-col .cn { font-family: var(--display); font-weight: 800; font-size: 16px; color: #fff; margin-top: 10px; }
.tt-cmp-col .cp { font-family: var(--display); font-weight: 900; font-size: 16px; color: var(--tt-gold-2); margin-top: 4px; }
.tt-cmp-row { display: grid; padding: 14px clamp(20px,3vw,32px); gap: 16px; align-items: center; }
.tt-cmp-row:nth-child(even) { background: rgba(255,255,255,.04); }
.tt-cmp-row .rk { font-family: var(--display); font-weight: 700; font-size: 13px; color: rgba(255,255,255,.5); }
.tt-cmp-row .rv { font-family: var(--display); font-weight: 800; font-size: 15px; color: rgba(255,255,255,.9); }
.tt-cmp-row .rv.best { color: var(--tt-gold-2); }

.tt-qv { position: fixed; inset: 0; z-index: 9400; display: none; padding: 20px; align-items: center; justify-content: center; }
.tt-qv.open { display: flex; }
.tt-qv-back { position: absolute; inset: 0; background: rgba(8,12,30,.8); backdrop-filter: blur(8px); }
.tt-qv-card { position: relative; width: min(840px,100%); max-height: 90vh; overflow-y: auto; background: #16224d; border-radius: 24px; overflow: hidden; box-shadow: 0 60px 130px -40px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.14); }
.tt-qv-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.tt-qv-media { position: relative; background: linear-gradient(135deg,#1e305e,#16244d); min-height: 300px; }
.tt-qv-media img { width: 100%; height: 100%; object-fit: cover; }
.tt-qv-close { position: absolute; top: 14px; right: 14px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); display: grid; place-items: center; }
.tt-qv-close svg { width: 18px; height: 18px; }
.tt-qv-hp { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: baseline; gap: 3px; color: #fff; background: rgba(13,21,48,.65); padding: 8px 14px; border-radius: 12px; backdrop-filter: blur(8px); }
.tt-qv-hp b { font-family: var(--display); font-weight: 900; font-size: 22px; }
.tt-qv-hp i { font-style: normal; font-size: 11px; color: var(--tt-gold-2); font-weight: 800; }
.tt-qv-body { padding: clamp(22px,3vw,34px); }
.tt-qv-series { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tt-gold-2); }
.tt-qv-name { font-family: var(--display); font-weight: 900; font-size: 28px; color: #fff; margin-top: 6px; letter-spacing: -.02em; }
.tt-qv-sub { color: rgba(255,255,255,.6); margin-top: 8px; font-size: 14.5px; }
.tt-qv-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.tt-qv-spec { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; padding: 14px 16px; }
.tt-qv-spec .k { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.tt-qv-spec .v { font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; margin-top: 4px; }
.tt-qv-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.tt-qv-actions .gp {
  flex: 1; min-width: 160px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border-radius: 100px; font-family: var(--display); font-weight: 800; font-size: 14.5px;
  color: #16224d; background: linear-gradient(150deg,var(--tt-gold-2),var(--tt-gold));
  box-shadow: 0 16px 30px -14px rgba(244,180,0,.7); transition: transform .3s;
}
.tt-qv-actions .gp:hover { transform: translateY(-2px); }
.tt-qv-actions .gp svg { width: 16px; height: 16px; }
.tt-qv-actions .fd {
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 22px;
  border-radius: 100px; font-family: var(--display); font-weight: 800; font-size: 14.5px;
  color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18);
}
.tt-qv-actions .fd:hover { border-color: rgba(244,180,0,.4); color: var(--tt-gold-2); }

/* =========================================================
   MOBILE FILTER DRAWER — RIGHT-SIDE PANEL (1/3 screen from right)
   ========================================================= */
.tt-drawer { position: fixed; inset: 0; z-index: 9200; display: none; }
.tt-drawer.open { display: block; }

/* Blurred backdrop — lets content show dimmed on the left */
.tt-drawer-back {
  position: absolute; inset: 0;
  background: rgba(8,12,30,.45); backdrop-filter: blur(6px);
}

/* Right-side sliding panel */
.tt-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(92vw, 440px);
  background: #fff;
  border-radius: 24px 0 0 24px;
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column;
  box-shadow: -24px 0 70px -12px rgba(0,0,0,.35);
}
.tt-drawer.open .tt-drawer-panel { transform: none; }

/* Header */
.tt-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid #eef1f8;
  flex-shrink: 0;
}
.tt-drawer-head h3 {
  font-family: var(--display); font-weight: 800; font-size: 17px; color: #16224d;
}
.tt-drawer-head-right { display: flex; align-items: center; gap: 10px; }
.tt-drawer-clrall {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  color: #9298bb; background: none; border: none; cursor: pointer; padding: 0; transition: .2s;
}
.tt-drawer-clrall:hover { color: #df241b; }
.tt-drawer-head .x {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f0f3fb; color: #51618f;
  display: grid; place-items: center; border: none; cursor: pointer; flex-shrink: 0; transition: .2s;
}
.tt-drawer-head .x:hover { background: #fdeaea; color: #df241b; }
.tt-drawer-head .x svg { width: 16px; height: 16px; }

/* Scrollable body */
.tt-drawer-body {
  flex: 1; overflow-y: auto; padding: 8px 24px 8px;
  scrollbar-width: thin; scrollbar-color: #dde4f4 transparent;
}

/* Sticky Apply + Cancel footer */
.tt-drawer-foot {
  display: flex; gap: 10px; padding: 14px 24px 24px;
  border-top: 1px solid #eef1f8; flex-shrink: 0;
  background: #fff;
}
.tt-drawer-reset {
  flex: 1; padding: 14px 0; border-radius: 14px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: #51618f; background: #f4f7fc; border: 1.5px solid #dee3ef;
  cursor: pointer; transition: .2s;
}
.tt-drawer-reset:hover { color: #16224d; border-color: #9298bb; background: #eef1f8; }
.tt-drawer-apply {
  flex: 2; padding: 14px 0; border-radius: 14px;
  font-family: var(--display); font-weight: 800; font-size: 14px;
  color: #fff; background: #16224d; border: none; cursor: pointer; transition: .2s;
}
.tt-drawer-apply:hover { background: #1b3f9c; box-shadow: 0 8px 20px -8px rgba(27,63,156,.5); }

/* Light theme overrides inside the drawer */
.tt-drawer-body .tt-fgroup { border-top: 1px solid #eef1f8; padding: 14px 0 4px; }
.tt-drawer-body .tt-fgroup:first-child { border-top: none; padding-top: 0; }
.tt-drawer-body .tt-fgroup-head {
  font-family: var(--display); font-weight: 800; font-size: 13px;
  text-transform: none; letter-spacing: .02em; color: #16224d; margin-bottom: 12px;
}
.tt-drawer-body .tt-fsearch input { background: #f4f7fc; border-color: #dee3ef; color: #16224d; }
.tt-drawer-body .tt-fsearch input::placeholder { color: #9298bb; }
.tt-drawer-body .tt-fsearch input:focus { border-color: #1b3f9c; background: #fff; }
.tt-drawer-body .tt-fsearch .ico { color: #9298bb; }
.tt-drawer-body .tt-pillwrap { gap: 8px; }
.tt-drawer-body .tt-pillf {
  font-size: 13px; color: #16224d; background: #fff;
  border: 1.5px solid #dee3ef; padding: 8px 14px;
}
.tt-drawer-body .tt-pillf:hover { color: #1b3f9c; border-color: #1b3f9c; background: #f0f4ff; }
.tt-drawer-body .tt-pillf.on { color: #fff; background: #16224d; border-color: #16224d; }
.tt-drawer-body .tt-sortrow { color: #51618f; }
.tt-drawer-body .tt-sortrow:hover { color: #16224d; }
.tt-drawer-body .tt-sortrow.on { color: #1b3f9c; font-weight: 700; }
.tt-drawer-body .tt-radio { border-color: #dee3ef; }
.tt-drawer-body .tt-sortrow.on .tt-radio { border-color: #1b3f9c; }
.tt-drawer-body .tt-sortrow.on .tt-radio::after { background: #1b3f9c; }
.tt-drawer-body .tt-clear { color: #9298bb; }
.tt-drawer-body .tt-clear:hover { color: #df241b; }

/* Blur the grid content when drawer is open */
.tt-drawer.open ~ .tt-shop .tt-grid,
body.tt-filter-blur .tt-grid {
  filter: blur(4px);
  pointer-events: none;
  transition: filter .35s;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1080px) {
  /* sidebar is gone — layout stays single column */
  .tt-cat-grid { grid-template-columns: repeat(3,1fr); }
  .tt-why-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width:960px) {
  .tt-grid { grid-template-columns: repeat(2,1fr); }
  .tt-qv-grid { grid-template-columns: 1fr; }
  .tt-qv-media { min-height: 220px; }
  .tt-cat-grid { grid-template-columns: repeat(2,1fr); }
}
/* ── Mobile: strip toolbar card, show only Filter button on right ── */
@media (max-width:768px) {
  .tt-toolbar {
    background: none; border: none; box-shadow: none;
    padding: 0; border-radius: 0; margin-bottom: 20px;
    display: flex; justify-content: flex-end; align-items: center;
  }
  .tt-search { display: none; } /* search lives inside the drawer */
  .tt-sort   { display: none; } /* sort lives inside the drawer   */
  .tt-filter-toggle { flex: none; width: auto; justify-content: center; gap: 10px; }
  .tt-why-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:640px) {
  .tt-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .tt-why-grid { grid-template-columns: 1fr; }
  .tt-cat-grid { grid-template-columns: 1fr; }
}
@media (max-width:480px) {
  .tt-grid { grid-template-columns: 1fr; }
  .tt-card { border-radius: 14px; }
  .tt-cbar-label { display: none; }
}
