/* Accessories page (accessories.html only). Builds on styles.css, pages.css, site.css and refresh.css. */

/* ---------- Page head: title and intro, as on Kia India's page ---------- */
.acc-head { padding: calc(var(--nav-h, 72px) + clamp(28px, 4vw, 48px)) var(--pad) 0; }
.acc-head .h2 { margin-top: 0; max-width: 18ch; }
.acc-head__lede { margin-top: clamp(14px, 1.6vw, 20px); max-width: 68ch; color: var(--graphite); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.6; }
.acc-head__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 2.4vw, 28px); }
.acc-head__acts .btn--ghost .ico { width: 18px; height: 18px; }
.acc-head__acts .btn--ghost:hover .ico { transform: none; }

/* ---------- Catalogue ---------- */
.acc { padding: clamp(44px, 5vw, 72px) var(--pad) 0; }
.acc__step { margin-bottom: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }

/* Model picker: the site's tab track, wrapping on wide screens and scrolling sideways on phones */
.acc__models { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--tint); border-radius: var(--r-lg); }
.acc__model {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 clamp(14px, 1.6vw, 22px);
  background: transparent; border: 0; border-radius: var(--r); cursor: pointer;
  font: inherit; font-stretch: 104%; font-size: 1rem; font-weight: 500; color: var(--graphite); white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.acc__model:hover { color: var(--ink); }
.acc__model.is-active { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 23, 26, .1), 0 6px 16px -8px rgba(20, 23, 26, .3); }
.acc__model:focus-visible, .acc__cats .tab:focus-visible, .acc-card__open:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.acc__panel { margin-top: clamp(32px, 4vw, 52px); }
.acc__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.acc__head .h2 { max-width: 24ch; }
.acc__count { margin-top: 8px; font-size: .95rem; color: var(--graphite); }
.acc__ask { white-space: normal; text-align: left; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }

.acc__cats { margin-top: clamp(20px, 2.4vw, 28px); }
.acc__cats .tab { min-height: 44px; font-size: .98rem; }
.acc__n { font-size: .82rem; font-weight: 500; color: var(--graphite); font-variant-numeric: tabular-nums; }
.acc__n:empty { display: none; }

/* Accessory cards */
.acc__grid { list-style: none; margin: clamp(22px, 2.4vw, 32px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.acc-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; animation: acc-in .45s var(--ease) both; }
@keyframes acc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.acc-card__open { display: block; width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.acc-card__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint); }
.acc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.acc-card__open:hover .acc-card__img img { transform: scale(1.04); }
.acc-card__cat { display: block; padding: 14px 16px 0; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.acc-card__name { display: block; padding: 6px 16px 0; font-size: 1rem; font-weight: 500; line-height: 1.32; overflow-wrap: anywhere; }
.acc-card__open:hover .acc-card__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.acc-card__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding: 12px 16px 14px; }
.acc-card__price { font-size: 1.02rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-card__row .more { font-size: .92rem; padding: 6px 0; }
.acc-card__row .more .ico { width: 16px; height: 16px; }

.acc__more { margin-top: clamp(26px, 3vw, 40px); text-align: center; }
.acc__more[hidden] { display: none; }
.acc__more .btn { min-width: min(100%, 280px); }
.acc__more span { font-weight: 500; color: var(--graphite); }
.acc__empty { margin-top: 24px; color: var(--graphite); }
.acc__empty a { text-decoration: underline; }

.acc__disc { margin-top: clamp(32px, 3.6vw, 48px); max-width: 96ch; font-size: .8rem; line-height: 1.55; color: var(--graphite); }
.acc__disc a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- MyKia app strip ---------- */
.acc-app { padding: clamp(48px, 5vw, 80px) var(--pad) 0; }
.acc-app__inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px); background: var(--ink); color: #fff; border-radius: var(--r-lg);
}
.acc-app .label { color: rgba(255, 255, 255, .66); }
.acc-app .h2 { max-width: 22ch; }
.acc-app__feats { list-style: none; margin: clamp(20px, 2.4vw, 28px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.acc-app__feats li { display: flex; align-items: center; gap: 14px; font-size: 1rem; font-weight: 500; line-height: 1.35; }
.acc-app__ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 50%; }
.acc-app__ico .ico { width: 22px; height: 22px; }
.acc-app__tc { margin-top: 16px; font-size: .8rem; color: rgba(255, 255, 255, .66); }
.acc-app__dl { font-size: 1.05rem; font-weight: 600; }
.acc-app__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.acc-app__stores a { display: block; border-radius: var(--r); transition: opacity .25s var(--ease); }
.acc-app__stores a:hover { opacity: .85; }
.acc-app__stores img { display: block; width: 153px; height: auto; }

/* ---------- Accessory detail pop-up ---------- */
.acc-dlg { width: min(900px, calc(100vw - 32px)); padding: 0; overflow: auto; }
.acc-dlg__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.acc-dlg__img { margin: 0; background: var(--tint); aspect-ratio: 1 / 1; }
.acc-dlg__img img { width: 100%; height: 100%; object-fit: cover; }
.acc-dlg__body { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 36px); padding-top: clamp(28px, 3vw, 40px); }
.acc-dlg__body .label { padding-right: 52px; font-size: .78rem; }
.acc-dlg .emi__title { overflow-wrap: anywhere; }
.acc-dlg__desc { margin-top: 14px; color: var(--graphite); line-height: 1.6; }
.acc-dlg__desc:empty { display: none; }
.acc-dlg__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.acc-dlg__price span { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.acc-dlg__price b { font-stretch: 108%; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.acc-dlg__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.acc-dlg__acts .btn { flex: 1 1 160px; }
.acc-dlg .note { margin-top: auto; padding-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .acc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 859px) {
  .acc-app__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .acc-dlg__grid { grid-template-columns: minmax(0, 1fr); }
  .acc-dlg__img { aspect-ratio: auto; height: min(38vh, 380px); }
  .acc-dlg__img img { object-fit: contain; }
  .acc-dlg .note { margin-top: 0; }
}
@media (max-width: 699px) {
  .acc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .acc-card__cat { padding: 12px 12px 0; font-size: .68rem; }
  .acc-card__name { padding: 4px 12px 0; font-size: .94rem; }
  .acc-card__row { padding: 10px 12px 12px; }
  .acc-card__price { font-size: .96rem; }
  .acc-app__feats { grid-template-columns: minmax(0, 1fr); }
  .acc__head .acc__ask { width: 100%; justify-content: space-between; }
}
@media (max-width: 599px) {
  /* One sideways-scrolling row of models inside the page width, never a page-wide scroll */
  .acc__models { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
  .acc__models::-webkit-scrollbar { display: none; }
  .acc__model { flex: none; scroll-snap-align: start; min-height: 44px; font-size: .95rem; }
  .acc__cats .tabs { display: flex; width: 100%; }
  .acc__cats .tab { flex: 1 1 0; min-width: 0; padding: 0 8px; gap: 6px; font-size: .92rem; }
}
@media (max-width: 379px) {
  .acc__grid { gap: 10px; }
  .acc-card__name { font-size: .9rem; }
  .acc-card__row .more { font-size: .86rem; }
  .acc__cats .tab { font-size: .86rem; }
  .acc__n { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .acc-card { animation: none; }
  .acc-card__img img { transition: none; }
}

/* The enquiry block follows the app strip without a second full section gap */
.acc-app + .lead { margin-top: clamp(56px, 6vw, 96px); }

/* =====================================================================
   Catalogue, reorganised (user: make it better UX): every Kia as a small photo card to pick from,
   then one row that names the choice, counts it and filters it, kept in view while the cards scroll
   ===================================================================== */
.acc { padding-top: clamp(36px, 4vw, 56px); }
.acc__step { margin-bottom: 12px; }
.acc__models { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; padding: 0; background: none; border-radius: 0; }
.acc__model {
  flex-direction: column; justify-content: flex-start; gap: 8px; min-height: 0; padding: 8px 8px 12px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); white-space: normal; text-align: center; line-height: 1.25; font-size: .9rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.acc__model:hover { border-color: #b3b7bc; }
.acc__model.is-active { background: var(--white); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.acc__pic { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--tint); }
.acc__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.acc__model:hover .acc__pic img { transform: scale(1.05); }
.acc__mname { display: block; }

.acc__panel { margin-top: clamp(28px, 3vw, 40px); }
.acc__tools {
  position: sticky; top: var(--nav-h, 72px); z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 14px 32px; flex-wrap: wrap;
  margin: 0 calc(-1 * var(--pad)); padding: 14px var(--pad); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule);
}
.acc__h { margin: 0; font-stretch: 106%; font-size: clamp(1.3rem, 1.8vw, 1.7rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.acc__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.acc__meta .acc__count { margin: 0; font-size: .92rem; }
.acc__meta .acc__ask { padding: 0; font-size: .92rem; white-space: nowrap; line-height: 1.4; }
.acc__cats { margin-top: 0; }
.acc__grid { margin-top: clamp(20px, 2.2vw, 28px); }

@media (max-width: 1199px) {
  /* Fewer columns than models: one row of cards to swipe or scroll across */
  .acc__models { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; }
  .acc__models::-webkit-scrollbar { display: none; }
  .acc__model { flex: 0 0 140px; scroll-snap-align: start; }
}
@media (max-width: 599px) {
  .acc__model { flex-basis: 116px; min-height: 0; font-size: .84rem; }
  /* On a phone the row is not held in place, so the cards keep the screen */
  .acc__tools { position: static; margin: 0; padding: 0 0 14px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .acc__cats { width: 100%; }
}

/* =====================================================================
   Catalogue as one section: filters on the left (car, category), accessories on the right (user, 31 Oct 2026).
   Supersedes the photo-card picker above; no car photographs here.
   ===================================================================== */
.acc__layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); align-items: start; }
.acc__side {
  position: sticky; top: calc(var(--nav-h, 72px) + 20px); display: grid; gap: 26px;
  max-height: calc(100vh - var(--nav-h, 72px) - 40px); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
.acc__group .acc__step { margin: 0 0 10px; padding: 0 10px; }
.acc .acc__models { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 0; overflow: visible; background: none; border-radius: 0; }
.acc .acc__model, .acc__cat {
  display: flex; flex: none; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 42px; padding: 0 12px; margin: 0; background: none; border: 0; border-radius: var(--r); box-shadow: none;
  font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.25; text-align: left; white-space: normal; color: var(--graphite); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.acc .acc__model:hover:not(.is-active), .acc__cat:hover:not(.is-active) { background: var(--tint); color: var(--ink); }
.acc .acc__model.is-active { background: var(--ink); color: #fff; font-weight: 600; box-shadow: none; }
.acc__cats { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.acc__cat.is-active { background: var(--tint); color: var(--ink); font-weight: 600; }
.acc__cat .acc__n { font-size: .82rem; }
.acc__cat:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.acc__help { padding: 18px 10px 0; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--graphite); }
.acc__help .acc__ask { margin-top: 6px; padding: 0; font-size: .92rem; line-height: 1.35; white-space: normal; }

.acc__layout .acc__panel { margin-top: 0; }
.acc__title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.acc__title .acc__count { margin: 0; font-size: .95rem; color: var(--graphite); }
.acc__layout .acc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }

@media (max-width: 1199px) and (min-width: 860px) {
  .acc__layout { grid-template-columns: 220px minmax(0, 1fr); }
  .acc__layout .acc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 859px) {
  /* Filters above the list: car names in one sideways row, the three categories side by side */
  .acc__layout { display: block; }
  .acc__side { position: static; max-height: none; overflow: visible; gap: 16px; padding: 0; border: 0; background: none; }
  .acc__group .acc__step { padding: 0; }
  .acc .acc__models { flex-direction: row; gap: 8px; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 4px; overflow-x: auto; scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .acc .acc__models::-webkit-scrollbar { display: none; }
  .acc .acc__model { width: auto; flex: none; min-height: 42px; padding: 0 16px; border: 1px solid var(--rule); white-space: nowrap; }
  .acc .acc__model.is-active { border-color: var(--ink); }
  .acc__cats { flex-direction: row; gap: 4px; padding: 4px; background: var(--tint); border-radius: var(--r-lg); }
  .acc__cat { flex: 1 1 0; justify-content: center; gap: 6px; min-height: 42px; padding: 0 8px; }
  .acc__cat.is-active { background: var(--white); box-shadow: 0 1px 2px rgba(20, 23, 26, .1), 0 6px 16px -8px rgba(20, 23, 26, .3); }
  .acc__help { padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .acc__help .acc__ask { margin-top: 0; }
  .acc__layout .acc__panel { margin-top: 26px; }
  .acc__layout .acc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The filter column never grows wider than the page (the car row scrolls inside it) */
.acc__side { grid-template-columns: minmax(0, 1fr); }
.acc__side, .acc__group, .acc__layout > * { min-width: 0; }
.acc__help .acc__ask { display: inline; }
.acc__help .acc__ask .ico { width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; }

/* ---------- Banner, filters and app strip (user, 31 Oct 2026) ---------- */
#catalogue { scroll-margin-top: var(--nav-h, 72px); }
/* The chosen car and category: a light highlight with a dark edge, not a solid black block */
.acc .acc__model.is-active { background: var(--tint); color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.acc__cat.is-active { box-shadow: inset 3px 0 0 var(--ink); }
@media (max-width: 859px) {
  .acc .acc__model.is-active { box-shadow: none; border-color: var(--ink); background: var(--white); }
  .acc__cat.is-active { box-shadow: 0 1px 2px rgba(20, 23, 26, .1), 0 6px 16px -8px rgba(20, 23, 26, .3); }
}
/* MyKia: words and store badges on the left, the app on a phone on the right */
.acc-app__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; padding-bottom: 0; }
.acc-app__text { padding-bottom: clamp(28px, 4vw, 56px); }
.acc-app .h2 { max-width: none; }
.acc-app__stores { margin-top: clamp(22px, 2.4vw, 30px); }
.acc-app__phone { margin: 0; align-self: end; width: clamp(180px, 18vw, 250px); }
.acc-app__phone img { display: block; width: 100%; height: auto; }
@media (max-width: 859px) {
  .acc-app__inner { grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; }
  .acc-app__phone { width: 150px; }
}
@media (max-width: 599px) {
  .acc-app__inner { grid-template-columns: minmax(0, 1fr); }
  .acc-app .h2 br { display: none; }
  .acc-app__phone { justify-self: center; width: 170px; }
  .acc-app__text { padding-bottom: 0; }
}
.acc-app__feats { max-width: 640px; }
@media (max-width: 599px) {
  .acc-app__stores { flex-wrap: nowrap; gap: 10px; }
  .acc-app__stores a { flex: 1 1 0; max-width: 153px; }
  .acc-app__stores img { width: 100%; }
}

/* Phones: the car row and the category tabs travel with you as one compact bar under the menu,
   so you can switch car or category from anywhere in the list */
@media (max-width: 859px) {
  .acc__side {
    position: sticky; top: var(--nav-h, 64px); z-index: 6;
    gap: 8px; margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad) 10px;
    background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule); border-radius: 0;
  }
  .acc__side .acc__step, .acc__side .acc__help { display: none; }
  .acc .acc__model { min-height: 38px; padding: 0 14px; font-size: .9rem; }
  .acc__cat { min-height: 38px; }
  .acc__layout .acc__panel { margin-top: 18px; }
}
/* MyKia box: a contained card, not edge to edge; the phone sits close to the words */
@media (min-width: 860px) {
  .acc-app__inner { max-width: 1160px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) auto; justify-content: center; gap: clamp(28px, 4vw, 56px); padding: clamp(32px, 3.6vw, 48px) clamp(32px, 4vw, 56px) 0; }
  .acc-app__text { padding-bottom: clamp(32px, 3.6vw, 48px); }
  .acc-app__phone { width: clamp(170px, 16vw, 220px); }
}
/* Desktop filter panel, compact: every car and category visible at once, even on a short laptop screen */
@media (min-width: 860px) {
  .acc__side { gap: 18px; padding: 18px 14px; max-height: none; overflow: visible; }
  .acc__group .acc__step { margin-bottom: 8px; padding: 0 6px; font-size: .72rem; }
  .acc .acc__models { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
  .acc .acc__model { min-height: 36px; padding: 6px 10px; font-size: .88rem; }
  .acc__cats { flex-direction: row; gap: 4px; padding: 4px; background: var(--tint); border-radius: var(--r); }
  .acc__cat { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 0; min-height: 44px; padding: 4px 2px; font-size: .84rem; text-align: center; }
  .acc__cat .acc__n { font-size: .72rem; }
  .acc__cat.is-active { background: var(--white); box-shadow: 0 1px 2px rgba(20, 23, 26, .1), 0 6px 16px -8px rgba(20, 23, 26, .3); }
  .acc__help { padding: 14px 6px 0; font-size: .82rem; }
}

/* Filter panel, desktop (user: the two-column list looked scattered): one clean column of cars, the
   categories listed below with their counts; the help link sits by the title, so the panel fits one screen */
@media (min-width: 860px) {
  .acc__side { gap: 20px; padding: 18px 12px; }
  .acc .acc__models { display: flex; flex-direction: column; gap: 1px; }
  .acc .acc__model { min-height: 34px; padding: 0 12px; font-size: .9rem; white-space: nowrap; }
  .acc__cats { flex-direction: column; gap: 1px; padding: 0; background: none; border-radius: 0; }
  .acc__cat { flex: none; flex-direction: row; justify-content: space-between; min-height: 34px; padding: 0 12px; font-size: .9rem; text-align: left; }
  .acc__cat .acc__n { font-size: .78rem; }
  .acc__cat.is-active { background: var(--tint); box-shadow: inset 3px 0 0 var(--ink); }
  .acc__title { align-items: center; }
}
.acc__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; margin: 0; }
.acc__meta .acc__count { margin: 0; }
.acc__meta .acc__ask { display: inline-flex; padding: 0; font-size: .92rem; white-space: nowrap; }
@media (min-width: 860px) {
  .acc .acc__model, .acc__cat { min-height: 31px; font-size: .88rem; }
  .acc__side { gap: 14px; padding: 14px 12px; }
  .acc__group .acc__step { margin-bottom: 6px; }
}
.acc__meta .acc__ask { display: inline; }
.acc__meta .acc__ask .ico { width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; }
/* Cars as a drop-down only where the list cannot fit the window (short laptop screens, high zoom) */
.acc__pick { display: none; }
@media (min-width: 860px) and (max-height: 560px) {
  .acc__pick { display: flex; min-height: 52px; margin: 0 6px; border-bottom: 1px solid #c9ccd1; }
  .acc__pick .field__label { flex: 0 0 100%; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--graphite); }
  .acc__pick select { height: 32px; background: transparent; font-size: .95rem; font-weight: 600; }
  .acc .acc__models, .acc__group:first-child .acc__step { display: none; }
}
@media (min-width: 860px) and (max-height: 560px) {
  .acc__pick { position: relative; display: grid; align-content: end; gap: 2px; min-height: 54px; padding: 6px 28px 4px 2px; }
  .acc__pick > .ico { position: absolute; right: 2px; bottom: 10px; }
  .acc__pick select { display: block; width: 100%; height: 30px; padding: 0; border: 0; appearance: none; -webkit-appearance: none; color: var(--ink); cursor: pointer; }
}
/* Filter panel, a little roomier (user): wider, taller rows, larger names; still one screen on a laptop */
@media (min-width: 860px) {
  .acc__layout { grid-template-columns: 280px minmax(0, 1fr); }
  .acc__side { gap: 20px; padding: 22px 16px; }
  .acc__group .acc__step { margin-bottom: 10px; font-size: .76rem; }
  .acc .acc__model, .acc__cat { min-height: 38px; padding: 0 14px; font-size: .96rem; }
  .acc__cat .acc__n { font-size: .82rem; }
}
@media (min-width: 860px) and (max-width: 1199px) { .acc__layout { grid-template-columns: 240px minmax(0, 1fr); } }
@media (min-width: 860px) and (max-height: 660px) {
  .acc .acc__model, .acc__cat { min-height: 33px; font-size: .92rem; }
  .acc__side { gap: 14px; padding: 16px 14px; }
}
/* Row height follows the window: as large as the screen allows (up to 42px), the whole panel always in view */
@media (min-width: 860px) {
  .acc .acc__model, .acc__cat { min-height: clamp(30px, calc((100svh - var(--nav-h, 72px) - 240px) / 12), 42px); }
}
/* Phones: room between the car row and the category tabs */
@media (max-width: 859px) { .acc__side { gap: 18px; padding-top: 12px; padding-bottom: 14px; } }

/* =====================================================================
   Phones: one sticky "Filter" bar naming the choice; it opens into a vertical list of cars and categories
   ===================================================================== */
.acc__toggle { display: none; }
@media (max-width: 859px) {
  .acc__side { display: block; padding: 10px var(--pad); gap: 0; }
  .acc__toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px;
    background: var(--white); border: 1px solid var(--ink); border-radius: var(--r); font: inherit; color: var(--ink); cursor: pointer; text-align: left;
  }
  .acc__toggle-k { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
  .acc__toggle-v { flex: 1 1 auto; min-width: 0; font-size: .98rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .acc__toggle .ico { flex: none; width: 18px; height: 18px; transition: transform .25s var(--ease); }
  .acc__side.is-open .acc__toggle .ico { transform: rotate(180deg); }
  .acc__filters { display: none; max-height: calc(100svh - var(--nav-h, 64px) - 90px); overflow-y: auto; overscroll-behavior: contain; margin-top: 10px; padding: 14px 4px 6px; border-top: 1px solid var(--rule); }
  .acc__side.is-open .acc__filters { display: grid; gap: 18px; }
  .acc__side .acc__step { display: block; margin: 0 0 6px; padding: 0 10px; }
  .acc__side .acc__pick { display: none; }
  .acc .acc__models, .acc__cats { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; background: none; border-radius: 0; }
  .acc .acc__models { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .acc .acc__model, .acc__cat { width: 100%; flex: none; justify-content: space-between; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r); background: none; box-shadow: none; font-size: .96rem; white-space: normal; }
  .acc .acc__model.is-active, .acc__cat.is-active { background: var(--tint); border: 0; box-shadow: inset 3px 0 0 var(--ink); color: var(--ink); font-weight: 600; }
}
@media (min-width: 860px) { .acc__filters { display: grid; gap: 20px; } }

/* Phones, refined: [ Your Kia: Sonet ▾ ] beside [ All | Interior | Exterior ]. The car opens a vertical list;
   the categories are always in view as tabs, so what you are looking at is plain without counting anything */
@media (max-width: 859px) {
  .acc__side { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; }
  .acc__toggle { grid-column: 1; grid-row: 1; width: auto; min-width: 118px; min-height: 46px; padding: 4px 12px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; position: relative; padding-right: 32px; border-color: #c9ccd1; }
  .acc__toggle-k { font-size: .6rem; letter-spacing: .1em; line-height: 1.2; }
  .acc__toggle-v { font-size: .95rem; line-height: 1.25; }
  .acc__toggle .ico { position: absolute; right: 10px; top: 50%; margin-top: -9px; }
  .acc__filters { display: contents !important; }
  .acc__filters > .acc__group:last-child { grid-column: 2; grid-row: 1; }
  .acc__filters > .acc__group:last-child .acc__step { display: none; }
  .acc__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; background: var(--tint); border-radius: var(--r); }
  .acc__cat { justify-content: center; min-height: 40px; padding: 0 4px; font-size: .86rem; }
  .acc__cat .acc__n { display: none; }
  .acc__cat.is-active { background: var(--white); box-shadow: 0 1px 2px rgba(20, 23, 26, .1), 0 4px 10px -6px rgba(20, 23, 26, .3); }
  .acc__filters > .acc__group:first-child { display: none; grid-column: 1 / -1; grid-row: 2; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rule); max-height: calc(100svh - var(--nav-h, 64px) - 100px); overflow-y: auto; }
  .acc__side.is-open .acc__filters > .acc__group:first-child { display: block; }
  .acc__side.is-open .acc__toggle { border-color: var(--ink); }
}
@media (max-width: 379px) {
  .acc__side { column-gap: 6px; }
  .acc__toggle { min-width: 0; padding-left: 10px; padding-right: 26px; }
  .acc__toggle .ico { right: 6px; }
  .acc__cat { font-size: .8rem; padding: 0 2px; }
}
/* "Your Kia" drop-down on short screens: a tidy box, the name on the left, the arrow on the right of the same line */
@media (min-width: 860px) and (max-height: 560px) {
  .acc__pick { position: relative; display: block !important; min-height: 0; margin: 0 2px; padding: 8px 36px 8px 12px; border: 1px solid #c9ccd1; border-radius: var(--r); background: var(--white); cursor: pointer; }
  .acc__pick:hover, .acc__pick:focus-within { border-color: var(--ink); }
  .acc__pick .field__label { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
  .acc__pick select { display: block; width: 100%; height: 26px; padding: 0; border: 0; background: transparent; font-size: .98rem; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
  .acc__pick::after { position: absolute !important; right: 14px; top: 50% !important; bottom: auto !important; left: auto !important; margin: 0 !important; grid-area: auto !important; transform: translateY(2px) !important; }
}

/* Room between the banner and the catalogue (client, 2 Nov 2026) */
#catalogue.acc { padding-top: clamp(56px, 6vw, 96px) !important; }
@media (min-width: 860px) and (max-height: 820px) and (orientation: landscape) { #catalogue.acc { padding-top: clamp(64px, 11vh, 88px) !important; } }
@media (max-width: 859px) { #catalogue.acc { padding-top: 40px !important; } }
