/* ============================================================
   KeroRong — mobile app shell
   Bottom tab bar · category rail · product cards · new arrivals
   Accent stays #e2503b (marketplace orange), brand navy #14417b.
   ============================================================ */

:root {
  --kr-app-accent: #e2503b;
  --kr-app-accent-dark: #c8422e;
  --kr-app-ink: #1a2230;
  --kr-app-muted: #7a8593;
  --kr-app-line: #e9edf3;
  --kr-app-soft: #f5f7fa;
}

/* ---------- bottom tab bar ---------- */
.kr-appbar {
  display: none;
}

@media (max-width: 860px) {
  .kr-appbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--kr-app-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.06);
  }

  .kr-appbar__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px 7px;
    text-decoration: none;
    color: #8b95a3;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1px;
    -webkit-tap-highlight-color: transparent;
  }

  .kr-appbar__item.is-on {
    color: var(--kr-app-accent);
    font-weight: 700;
  }

  .kr-appbar__item.is-on .kr-ico {
    stroke-width: 2.1;
  }

  .kr-appbar__ico {
    position: relative;
    line-height: 0;
  }

  .kr-appbar__badge {
    position: absolute;
    top: -5px;
    right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 9px;
    background: var(--kr-app-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

  .kr-appbar__badge.is-empty {
    display: none;
  }

  /* keep the tab bar from covering the last row of content */
  body {
    padding-bottom: 66px;
  }

  /* pages that already had their own bottom margin */
  body.kr-cart-empty-page {
    padding-bottom: 66px;
  }
}

/* ---------- generic empty state ---------- */
.kr-app-empty {
  text-align: center;
  padding: 34px 20px;
  background: #fff;
  border: 1px solid var(--kr-app-line);
  border-radius: 14px;
  margin: 12px 0;
}

.kr-app-empty__ico {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--kr-app-soft);
  align-items: center;
  justify-content: center;
  color: #9aa4b2;
  margin-bottom: 12px;
}

.kr-app-empty h2 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--kr-app-ink);
}

.kr-app-empty p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--kr-app-muted);
  margin: 0 0 16px;
}

.kr-app-btn {
  display: inline-block;
  background: var(--kr-app-accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
}

.kr-app-btn:active {
  background: var(--kr-app-accent-dark);
}

/* ---------- product grid card ---------- */
.kr-pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kr-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--kr-app-line);
  border-radius: 12px;
  overflow: hidden;
}

.kr-pcard__media {
  display: block;
  background: var(--kr-app-soft);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.kr-pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kr-pcard__off {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--kr-app-accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.kr-pcard__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 9px 10px;
  flex: 1 1 auto;
}

.kr-pcard__name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--kr-app-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.kr-pcard__cat {
  font-size: 10.5px;
  color: var(--kr-app-muted);
}

.kr-pcard__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 4px;
}

.kr-pcard__price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--kr-app-ink);
  line-height: 1.2;
}

.kr-pcard__price del {
  font-size: 11px;
  font-weight: 500;
  color: #a7b0bd;
  margin-right: 3px;
}

.kr-pcard__price ins {
  text-decoration: none;
}

.kr-pcard__buy {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--kr-primary, #14417b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- product row card ---------- */
.kr-rcard {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--kr-app-line);
  border-radius: 12px;
  padding: 10px;
}

.kr-rcard + .kr-rcard {
  margin-top: 10px;
}

.kr-rcard__media {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: var(--kr-app-soft);
  overflow: hidden;
  display: block;
}

.kr-rcard__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kr-rcard__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kr-rcard__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--kr-app-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kr-rcard__cat {
  align-self: flex-start;
  font-size: 10.5px;
  line-height: 1.5;
  color: #b35c2a;
  background: #fdf1ec;
  border-radius: 4px;
  padding: 0 6px;
}

.kr-rcard__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--kr-app-ink);
}

.kr-rcard__price del {
  font-size: 11px;
  font-weight: 500;
  color: #a7b0bd;
  margin-right: 4px;
}

.kr-rcard__price ins {
  text-decoration: none;
}

.kr-rcard__buy {
  align-self: flex-start;
  margin-top: 3px;
  background: var(--kr-app-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
}

/* ---------- category browser ---------- */
.kr-catwrap {
  display: flex;
  align-items: flex-start;
  background: #fff;
}

.kr-catrail {
  flex: 0 0 21%;
  width: 21%;
  background: #f1f3f6;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.kr-catrail::-webkit-scrollbar {
  display: none;
}

.kr-catrail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px 9px;
  text-decoration: none;
  color: #5b6676;
  border-left: 3px solid transparent;
}

.kr-catrail__item.is-on {
  background: #fff;
  border-left-color: var(--kr-app-accent);
  color: var(--kr-app-ink);
  font-weight: 700;
}

.kr-catrail__ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #42506a;
  flex: 0 0 auto;
}

.kr-catrail__item.is-on .kr-catrail__ico {
  background: #eef2f8;
  color: var(--kr-primary, #14417b);
}

.kr-catrail__name {
  font-size: 10.5px;
  line-height: 1.25;
  text-align: center;
  font-weight: 600;
}

.kr-catrail__count {
  font-size: 9.5px;
  line-height: 1;
  color: #9aa4b2;
  background: #e7ebf1;
  border-radius: 999px;
  padding: 2px 6px;
}

.kr-catrail__item.is-on .kr-catrail__count {
  background: #fdece8;
  color: #b35c2a;
}

.kr-catpane {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 10px 24px;
  background: #fff;
}

.kr-catpane__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.kr-catpane__title {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 3px;
  color: #14171c;
}

.kr-catpane__sub {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--kr-app-muted);
}

.kr-catpane__all {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--kr-primary, #14417b);
  text-decoration: none;
  white-space: nowrap;
  padding-top: 4px;
}

.kr-catpane__sect {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #14171c;
}

.kr-catpane__sect--split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
}

.kr-catpane__more {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--kr-primary, #14417b);
  text-decoration: none;
}

.kr-catgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.kr-catgrid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.kr-catgrid__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--kr-app-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa4b2;
  overflow: hidden;
}

.kr-catgrid__media img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.kr-catgrid__name {
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  font-weight: 600;
  color: #2b3441;
}

.kr-catgrid__count {
  font-size: 10px;
  line-height: 1;
  color: #9aa4b2;
}

/* ---------- new arrivals ---------- */
.kr-newwrap {
  padding: 0 12px 24px;
}

.kr-newtabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 0;
  border-bottom: 1px solid var(--kr-app-line);
  scrollbar-width: none;
}

.kr-newtabs::-webkit-scrollbar {
  display: none;
}

.kr-newtabs__tab {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--kr-app-muted);
  text-decoration: none;
  padding: 0 0 10px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.kr-newtabs__tab.is-on {
  color: var(--kr-app-accent);
  border-bottom-color: var(--kr-app-accent);
}

.kr-newhero {
  margin-top: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #17263d 0%, #24405f 100%);
  color: #fff;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kr-newhero__eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb59f;
  margin-bottom: 5px;
}

.kr-newhero__title {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
}

.kr-newhero__sub {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 190px;
}

.kr-newhero__timer {
  flex: 0 0 auto;
  text-align: right;
}

.kr-newhero__timer-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

.kr-newsec {
  margin-top: 18px;
}

.kr-newsec__title {
  font-size: 14.5px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #14171c;
}

.kr-newchips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.kr-newchips::-webkit-scrollbar {
  display: none;
}

.kr-newchips__chip {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e3e8ef;
  background: #f7f9fc;
  color: #3b4757;
  text-decoration: none;
  white-space: nowrap;
}

.kr-newchips__chip.is-on {
  border-color: var(--kr-app-accent);
  background: #fdeee9;
  color: var(--kr-app-accent);
}

.kr-newlist {
  margin-top: 12px;
}

/* ---------- countdown ---------- */
.kr-count {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.kr-count__seg {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 4px 5px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  min-width: 24px;
  text-align: center;
  color: #fff;
}

.kr-count i {
  font-style: normal;
  font-size: 9.5px;
  line-height: 1;
  opacity: 0.55;
  margin: 0 2px 0 1px;
  color: #fff;
}

/* ---------- desktop: wider rail, denser grids ---------- */
@media (min-width: 861px) {
  .kr-catwrap {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--kr-app-line);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 16px;
  }

  .kr-catrail {
    flex: 0 0 210px;
    width: 210px;
    max-height: none;
  }

  .kr-catrail__item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .kr-catrail__ico {
    width: 34px;
    height: 34px;
  }

  .kr-catrail__name {
    font-size: 12.5px;
    text-align: left;
  }

  .kr-catrail__count {
    margin-left: auto;
  }

  .kr-catpane {
    padding: 20px 22px 28px;
  }

  .kr-catgrid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .kr-pgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .kr-newwrap {
    max-width: 1100px;
    margin: 0 auto;
  }

  .kr-newhero__sub {
    max-width: 420px;
  }

  .kr-newlist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .kr-rcard + .kr-rcard {
    margin-top: 0;
  }
}

/* ---------- empty cart ---------- */
.kr-cartempty {
  text-align: center;
  padding: 22px 16px 6px;
}

.kr-cartempty__art {
  line-height: 0;
  margin-bottom: 14px;
}

.kr-cartempty__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--kr-app-muted);
  margin: 0 0 16px;
}

.kr-cartempty__cta {
  min-width: 186px;
  text-align: center;
  padding: 12px 24px;
}

.kr-jfy {
  margin-top: 26px;
}

.kr-jfy__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #14171c;
  margin: 0 0 14px;
}

.kr-jfy__title::before,
.kr-jfy__title::after {
  content: "";
  height: 1px;
  width: 26px;
  background: #e2e8f0;
}

/* ---------- my account ---------- */
.kr-acc {
  background: #f4f6f9;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kr-acc__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--kr-app-line);
  border-radius: 14px;
  padding: 16px 14px;
}

.kr-acc__avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff2ec;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kr-app-accent);
}

.kr-acc__avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.kr-acc__id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kr-acc__name {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: #14171c;
}

.kr-acc__meta {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--kr-app-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kr-acc__quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--kr-app-line);
  border-radius: 14px;
  overflow: hidden;
}

.kr-acc__quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 8px;
  text-decoration: none;
  color: #2b3441;
  font-size: 12px;
  font-weight: 600;
}

.kr-acc__quick a + a {
  border-left: 1px solid var(--kr-app-line);
}

.kr-acc__quick-ico {
  line-height: 0;
  color: var(--kr-primary, #14417b);
}

.kr-acc__orders,
.kr-acc__service {
  background: #fff;
  border: 1px solid var(--kr-app-line);
  border-radius: 14px;
  padding: 14px 14px 12px;
}

.kr-acc__orders-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.kr-acc .kr-acc__sect-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0;
  color: #14171c;
}

.kr-acc__viewall {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--kr-app-muted);
  text-decoration: none;
}

.kr-acc__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}

.kr-acc__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 2px 2px;
  text-decoration: none;
  color: #3b4757;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

.kr-acc__stat-ico {
  position: relative;
  line-height: 0;
  color: #42506a;
}

.kr-acc__stat-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--kr-app-accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

.kr-acc__service {
  padding-bottom: 4px;
}

.kr-acc__sect-title + .kr-acc__list {
  margin-top: 6px;
}

.kr-acc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kr-acc__list li + li {
  border-top: 1px solid #f1f4f8;
}

.kr-acc__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 2px;
  text-decoration: none;
  color: #2b3441;
  font-size: 13px;
  font-weight: 500;
}

.kr-acc__list-ico {
  line-height: 0;
  color: #6b7787;
  flex: 0 0 auto;
}

.kr-acc__list-label {
  flex: 1 1 auto;
  min-width: 0;
}

.kr-acc__list a > .kr-ico:last-child {
  color: #b3bcc8;
  flex: 0 0 auto;
}

/* login screen sits inside the same grey shell */
.kr-acc__hero--guest {
  margin-bottom: 14px;
}

.kr-acc__hero--guest .kr-acc__meta {
  white-space: normal;
}

@media (max-width: 860px) {
  /* the service list above replaces the sidebar menu */
  .woocommerce-account .woocommerce-MyAccount-navigation {
    display: none;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
  }
}

/* ---------- guest account blocks ---------- */
.kr-acc--guest {
  background: transparent;
  padding: 0;
  margin-top: 16px;
}

/* ---------- strip duplicated theme chrome on app pages ---------- */
@media (max-width: 860px) {
  body.kr-app-page .entry-header,
  body.woocommerce-cart .entry-header,
  body.woocommerce-account .entry-header {
    margin: 0;
    padding: 0;
    border: 0;
    min-height: 0;
  }

  /* keep the h1 in the DOM for SEO, just not on screen */
  body.kr-app-page .entry-header .entry-title,
  body.woocommerce-cart .entry-header .entry-title,
  body.woocommerce-account .entry-header .entry-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* WooCommerce prints its own "cart is empty" notice above our block */
  body.woocommerce-cart .cart-empty.woocommerce-info {
    display: none;
  }

  /* app pages are full-bleed */
  body.kr-app-page .site-content .ast-container,
  body.kr-app-page .ast-container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------- "can't find it" filler card ---------- */
.kr-askcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  background: #fbfcfe;
  border: 1px dashed #cfdae7;
  border-radius: 12px;
  min-height: 100%;
}

.kr-askcard__ico {
  line-height: 0;
  color: var(--kr-app-accent);
  margin-bottom: 2px;
}

.kr-askcard__title {
  font-size: 12.5px;
  font-weight: 700;
  color: #22303f;
  line-height: 1.3;
}

.kr-askcard__sub {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--kr-app-muted);
}

.kr-askcard--wide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  text-align: left;
  padding: 15px 14px;
  margin-top: 10px;
  min-height: 0;
}

.kr-askcard--wide .kr-askcard__ico {
  grid-row: 1 / span 2;
  margin: 0;
}

.kr-askcard--wide .kr-askcard__title {
  font-size: 13px;
}

.kr-askcard--wide .kr-askcard__sub {
  font-size: 11px;
}

/* ---------- collapsible facet block on archives ---------- */
@media (min-width: 861px) {
  /* the wrapper must not break the archive grid */
  .kr-facets {
    display: contents;
  }

  .kr-facets__sum {
    display: none;
  }
}

@media (max-width: 860px) {
  .kr-facets {
    display: block;
    margin: 0 0 10px;
  }

  .kr-facets__sum {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid #e6ecf3;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #2f3f52;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .kr-facets__sum::-webkit-details-marker {
    display: none;
  }

  .kr-facets__sum-ico {
    line-height: 0;
    color: var(--kr-primary, #14417b);
    flex: 0 0 auto;
  }

  .kr-facets__sum-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .kr-facets__chev {
    flex: 0 0 auto;
    color: #9aa4b2;
    transition: transform 0.2s ease;
  }

  .kr-facets[open] .kr-facets__chev {
    transform: rotate(180deg);
  }

  .kr-facets[open] .kr-facets__sum {
    border-radius: 12px 12px 0 0;
    border-bottom-color: transparent;
  }

  .kr-facets[open] .kr-archive__side {
    margin-top: -1px;
    border-radius: 0 0 14px 14px;
    border-top-color: transparent;
  }
}

/* ---------- login / register forms: same card language ---------- */
/* Astra renders <h2>Login</h2> and the form as siblings (no .u-column
   wrapper), so the form itself carries the card. */
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register {
  background: #fff;
  border: 1px solid var(--kr-app-line);
  border-radius: 14px;
  padding: 16px 16px 18px;
  margin: 0 0 14px;
}

/* "Login" / "Register" repeat what the hero card already says — keep the
   heading in the DOM for semantics, drop it from the screen. */
body.woocommerce-account .woocommerce > h2,
body.woocommerce-account #customer_login h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.woocommerce-account #customer_login h2,
.woocommerce-account .u-column1 h2,
.woocommerce-account .u-column2 h2 {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  color: #14171c;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.woocommerce-account form.woocommerce-form-login label,
.woocommerce-account form.woocommerce-form-register label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #3b4757;
  margin: 0 0 6px;
  line-height: 1.4;
}

.woocommerce-account form.woocommerce-form-login .input-text,
.woocommerce-account form.woocommerce-form-register .input-text {
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: #1a2230;
  background: #fbfcfe;
  border: 1px solid #dfe6ee;
  border-radius: 9px;
  box-shadow: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.woocommerce-account form.woocommerce-form-login .input-text:focus,
.woocommerce-account form.woocommerce-form-register .input-text:focus {
  background: #fff;
  border-color: var(--kr-primary, #14417b);
  outline: none;
}

.woocommerce-account form.woocommerce-form-login .form-row,
.woocommerce-account form.woocommerce-form-register .form-row {
  margin: 0 0 12px;
  padding: 0;
}

.woocommerce-account form.woocommerce-form-login .form-row-first,
.woocommerce-account form.woocommerce-form-login .form-row-last {
  width: 100%;
  float: none;
}

/* remember-me row reads as a quiet checkbox line */
.woocommerce-account form.woocommerce-form-login .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #5b6676;
  margin: 0 0 14px;
}

.woocommerce-account form.woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--kr-app-accent);
}

/* full-width orange CTA, same as Buy Now */
.woocommerce-account form.woocommerce-form-login button.button,
.woocommerce-account form.woocommerce-form-register button.button {
  width: 100%;
  display: block;
  height: auto;
  padding: 13px 18px;
  background: var(--kr-app-accent);
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: none;
}

.woocommerce-account form.woocommerce-form-login button.button:hover,
.woocommerce-account form.woocommerce-form-register button.button:hover {
  background: var(--kr-app-accent-dark);
  color: #fff;
}

.woocommerce-account .lost_password {
  margin: 12px 0 0;
  font-size: 12.5px;
  text-align: center;
}

.woocommerce-account .lost_password a {
  color: #7a8593;
  text-decoration: none;
}

.woocommerce-account .lost_password a:hover {
  color: var(--kr-app-accent);
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
  float: none;
  width: 100%;
}

/* ============================================================
   Home page — app shell alignment
   ============================================================ */

.kr-catalogs__more {
  float: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--kr-app-muted);
  text-decoration: none;
  letter-spacing: 0;
}

.kr-catalogs__more:hover {
  color: var(--kr-app-accent);
}

/* Latest arrivals -> square app cards, same feed look as /shop/ */
.kr-home__latest-list {
  margin-top: 2px;
}

@media (max-width: 860px) {
  /* brand strip: exactly two full columns fit, the rest is dragged in */
  .kr-brands-slider .kr-catalogs__items.kr-brands-track {
    grid-auto-columns: var(--colw, 150px);
    grid-template-columns: none;
    gap: 10px;
  }

  .kr-brands-slider .kr-catalogs__item {
    min-width: 0;
  }

  .kr-brands-slider .kr-catalogs__name,
  .kr-brands-slider .kr-catalogs__origin {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* the icon grid above already covers every category */
  .kr-home__latest .kr-pcard__body {
    padding: 8px 9px 9px;
  }

  .kr-catalogs.kr-categories {
    display: none;
  }

  .kr-home__brands {
    margin-top: 4px;
  }
}

/* ---------- quick category tiles (Banggood-style icon grid) ---------- */
.kr-quicknav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 4px;
  margin: 0 0 14px;
  padding: 14px 6px 12px;
  background: #fff;
  border: 1px solid var(--kr-app-line);
  border-radius: 14px;
}

.kr-quicknav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.kr-quicknav__ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf1ec;
  color: var(--kr-app-accent);
  transition: background 0.15s ease, transform 0.15s ease;
}

.kr-quicknav__item:active .kr-quicknav__ico {
  background: #fbe3db;
  transform: scale(0.94);
}

.kr-quicknav__label {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--kr-app-ink);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ---------- weekly deals strip ---------- */
.kr-hpromo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, #14417b 0%, #2059a6 100%);
  color: #fff;
}

.kr-hpromo__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kr-hpromo__copy strong {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
}

.kr-hpromo__copy span {
  font-size: 10.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kr-hpromo .kr-count {
  margin-left: auto;
  flex: 0 0 auto;
}

.kr-hpromo__cta {
  flex: 0 0 auto;
  background: var(--kr-app-accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 13px;
  border-radius: 999px;
  text-decoration: none;
}

@media (min-width: 861px) {
  .kr-quicknav {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    padding: 18px 14px 16px;
    gap: 14px;
  }

  .kr-quicknav__label {
    font-size: 11.5px;
  }

  .kr-quicknav__ico {
    width: 46px;
    height: 46px;
  }

  .kr-hpromo__copy strong {
    font-size: 15px;
  }
}

/* ---------- mobile footer: drop the duplicate category list ---------- */
/* The bottom "Category" tab already covers /product-category/*, so on phones
   the footer keeps only Customer Care, Company & Legal and the brand block. */
@media (max-width: 860px) {
  .kr-footer .kr-footer__col--cats {
    display: none;
  }
}

/* inquiry tile that fills the odd slot of the home product feed */
.kr-askcard--home {
  border-radius: 12px;
  min-height: 100%;
  padding: 18px 14px;
  gap: 7px;
}

.kr-askcard--home .kr-askcard__title {
  font-size: 13px;
}

.kr-askcard--home .kr-askcard__sub {
  font-size: 11px;
  max-width: 150px;
}

@media (min-width: 861px) {
  /* the feed is 4-up on shop pages, but on the home page two wide cards read
     better — and the inquiry tile then closes the row instead of floating */
  .kr-home__latest-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- brand block: accordion on phones, plain block on desktop ---------- */
.kr-brandfold > summary {
  display: none;
}

@media (max-width: 860px) {
  .kr-footer .kr-footer__col--brand {
    padding: 16px 0 0;
  }

  .kr-footer__col--brand .kr-footer__brand {
    padding: 0 18px;
    margin-bottom: 12px;
  }

  .kr-brandfold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 18px;
    border-top: 1px solid #eef1f5;
    cursor: pointer;
    list-style: none;
  }

  .kr-brandfold > summary::-webkit-details-marker {
    display: none;
  }

  .kr-brandfold > summary h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2b2f38;
  }

  .kr-brandfold > summary .kr-chev {
    color: #9aa0a8;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
  }

  .kr-brandfold[open] > summary {
    border-bottom: 1px solid #f0f1f3;
  }

  .kr-brandfold[open] > summary .kr-chev {
    transform: rotate(180deg);
  }

  .kr-brandfold__body {
    padding: 4px 18px 14px;
  }

  .kr-footer__col--brand .kr-footer__pay-title {
    padding: 0 18px;
  }

  .kr-footer__col--brand .kr-footer__pay {
    padding: 8px 18px 18px;
  }
}

/* ---------- archive intro copy: kept for crawlers & screen readers, not shown ---------- */
/* AIOSEO still emits the same sentence as the meta description + CollectionPage
   schema, so hiding the on-page block costs nothing in SEO. */
.woocommerce .term-description,
.woocommerce .page-description,
.woocommerce .taxonomy-description,
.woocommerce .archive-description,
.woocommerce-archive-description {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- login / register cards: never wider than the page column ---------- */
body.woocommerce-account .woocommerce form.woocommerce-form-login,
body.woocommerce-account .woocommerce form.woocommerce-form-register {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

/* ============================================================
   Guest login: the heading and the fields live in one card
   woocommerce/myaccount/form-login.php is overridden in this theme and
   renders .kr-login-card > __head + __body. The promo card that used to be
   printed above the form is gone, so nothing is repeated on the screen.
   ============================================================ */
.kr-login-card {
  margin: 0 0 14px;
  background: #fff;
  border: 1px solid var(--kr-app-line);
  border-radius: 14px;
  overflow: hidden;
}

.kr-login-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--kr-app-line);
}

.kr-login-card__avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff2ec;
  color: var(--kr-app-accent);
}

.kr-login-card__title {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.3;
  font-weight: 800;
  color: #14171c;
  letter-spacing: 0;
}

.kr-login-card__sub {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--kr-app-muted);
}

.kr-login-card__body {
  padding: 16px;
}

/* the form must not draw a card of its own inside the card */
body.woocommerce-account .woocommerce .kr-login-card form.woocommerce-form-login,
body.woocommerce-account .woocommerce .kr-login-card form.woocommerce-form-register {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
}

.kr-login-card__alt {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef1f5;
}

.kr-login-card__alt-title {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  color: #14171c;
  letter-spacing: 0;
}

/* ---------- password visibility toggle: real eye instead of the icon-font wedge ---------- */
body.woocommerce-account .kr-login-card .show-password-input {
  top: 50% !important;
  right: 12px !important;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

body.woocommerce-account .kr-login-card .show-password-input:hover,
body.woocommerce-account .kr-login-card .show-password-input:focus-visible {
  opacity: 0.9;
}

body.woocommerce-account .kr-login-card .show-password-input::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 2px;
  font-family: inherit;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 12S5.8 6.2 12 6.2 21.8 12 21.8 12 18.2 17.8 12 17.8 2.2 12 2.2 12z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 12S5.8 6.2 12 6.2 21.8 12 21.8 12 18.2 17.8 12 17.8 2.2 12 2.2 12z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.woocommerce-account .kr-login-card .show-password-input.display-password::after {
  -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 12S5.8 6.2 12 6.2 21.8 12 21.8 12 18.2 17.8 12 17.8 2.2 12 2.2 12z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M3.5 20.5 20.5 3.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 12S5.8 6.2 12 6.2 21.8 12 21.8 12 18.2 17.8 12 17.8 2.2 12 2.2 12z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M3.5 20.5 20.5 3.5'/%3E%3C/svg%3E");
}

/* ---------- account notices follow the card language ---------- */
body.woocommerce-account .woocommerce .woocommerce-error,
body.woocommerce-account .woocommerce .woocommerce-message,
body.woocommerce-account .woocommerce .woocommerce-info {
  margin: 0 0 14px;
  padding: 12px 14px 12px 38px;
  background: #fff6f4;
  border: 1px solid #f7d9d2;
  border-radius: 12px;
  color: #8f3323;
  font-size: 13px;
  line-height: 1.5;
  list-style: none;
}

body.woocommerce-account .woocommerce .woocommerce-message,
body.woocommerce-account .woocommerce .woocommerce-info {
  background: #f4f8ff;
  border-color: #d8e5f7;
  color: #1c3f6e;
}

body.woocommerce-account .woocommerce .woocommerce-error::before,
body.woocommerce-account .woocommerce .woocommerce-message::before,
body.woocommerce-account .woocommerce .woocommerce-info::before {
  top: 12px;
  left: 13px;
}

/* On desktop the whole guest area (login card + orders + service) shares one
   column width, so the three cards line up under the "My account" heading. */
@media (min-width: 861px) {
  body.woocommerce-account .woocommerce:has(.kr-login-card) {
    max-width: 560px;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}

/* ---------- login card: Sign In / Register switch ---------- */
.kr-login-card__tabs {
  display: flex;
  gap: 4px;
  margin: 14px 16px 0;
  padding: 4px;
  background: #f2f5f9;
  border-radius: 11px;
}

.kr-login-card__tab {
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  color: #657183;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.kr-login-card__tab.is-on {
  background: #fff;
  color: #14171c;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.14);
}

.kr-login-card__tab:focus-visible {
  outline: 2px solid var(--kr-app-accent);
  outline-offset: 2px;
}

/* once the switch is wired up by JS only the active pane shows */
.kr-login-card.kr-tabs-ready .kr-login-card__pane {
  display: none;
}

.kr-login-card.kr-tabs-ready[data-kr-active="login"] > .kr-login-card__body > .kr-login-card__pane[data-kr-pane="login"],
.kr-login-card.kr-tabs-ready[data-kr-active="register"] > .kr-login-card__body > .kr-login-card__pane[data-kr-pane="register"] {
  display: block;
}

.kr-login-card__hint {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--kr-app-muted);
}

/* the register pane ends on a button, no lost-password line underneath */
body.woocommerce-account .kr-login-card__pane[data-kr-pane="register"] .form-row:last-child {
  margin-bottom: 0;
}

/* privacy note inside the register pane: small print, not body copy */
body.woocommerce-account .kr-login-card .woocommerce-privacy-policy-text,
body.woocommerce-account .kr-login-card .woocommerce-privacy-policy-text p {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #7a8593;
}

body.woocommerce-account .kr-login-card .woocommerce-privacy-policy-text a {
  color: var(--kr-app-accent);
  text-decoration: none;
}

/* ============================================================
   DESKTOP ARCHIVE SIDEBAR  v2  (2026-10-27)
   Three bare link columns -> grouped cards with counts,
   collapse and a current-term highlight.
   Phones keep the horizontally scrolling chips from
   enhancements.css, everything here is >= 861px only.
   ============================================================ */
@media (min-width: 861px) {

  .kr-wrap.kr-archive {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 26px;
    padding: 22px 16px 56px;
    align-items: start;
  }

  .kr-archive__side {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
  }

  /* ---------- group card ---------- */
  .kr-archive__side .kr-facet {
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e6ecf3;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
  }

  .kr-archive__side .kr-facet__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    background: #fbfcfe;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2f3f52;
  }

  .kr-facet__ico {
    flex: 0 0 auto;
    line-height: 0;
    color: #14417b;
  }

  .kr-facet__label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .kr-facet__n {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef3fa;
    color: #14417b;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }

  /* ---------- inline filter ---------- */
  .kr-facet__search {
    padding: 9px 11px 1px;
  }

  .kr-facet__search input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e3e9f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 12.5px;
    color: #26333f;
    -webkit-appearance: none;
    appearance: none;
  }

  .kr-facet__search input::placeholder {
    color: #9aa5b3;
  }

  .kr-facet__search input:focus {
    outline: 0;
    border-color: #14417b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 65, 123, 0.08);
  }

  /* ---------- list rows ---------- */
  .kr-archive__side .kr-facet__list {
    display: block;
    margin: 0;
    padding: 6px;
    font-size: 13px;
  }

  .kr-archive__side .kr-facet__list li {
    display: block;
    margin: 0;
    list-style: none;
  }

  .kr-archive__side .kr-facet__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    color: #26333f;
    text-decoration: none;
    transition: background-color 0.14s ease, color 0.14s ease;
  }

  .kr-archive__side .kr-facet__list a:hover {
    background: #f2f6fb;
    color: #14417b;
  }

  .kr-archive__side .kr-facet__list a:focus-visible {
    outline: 2px solid #14417b;
    outline-offset: -2px;
  }

  .kr-facet__term {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .kr-facet__c {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    color: #98a3b1;
    font-variant-numeric: tabular-nums;
  }

  .kr-archive__side .kr-facet__list a.is-off .kr-facet__term {
    color: #8b96a4;
  }

  .kr-archive__side .kr-facet__list a.is-off:hover .kr-facet__term {
    color: #14417b;
  }

  .kr-archive__side .kr-facet__list a.is-current {
    background: #14417b;
    color: #fff;
  }

  .kr-archive__side .kr-facet__list a.is-current .kr-facet__term {
    color: #fff;
    font-weight: 600;
  }

  .kr-archive__side .kr-facet__list a.is-current .kr-facet__c {
    color: rgba(255, 255, 255, 0.72);
  }

  /* ---------- collapse ---------- */
  .kr-facet__list.is-cut > li:nth-child(n + 11) {
    display: none;
  }

  .kr-facet__list.is-cut.is-open > li:nth-child(n + 11) {
    display: block;
  }

  button.kr-facet__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-top: 1px solid #eef2f7;
    background: #fff;
    color: #14417b;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  button.kr-facet__more:hover {
    background: #f7fafd;
  }

  button.kr-facet__more svg {
    transform: rotate(90deg);
    transition: transform 0.2s ease;
  }

  button.kr-facet__more.is-open svg {
    transform: rotate(-90deg);
  }

  .kr-facet__none {
    padding: 8px 9px;
    font-size: 12.5px;
    color: #98a3b1;
    list-style: none;
  }
}

/* ---------- phones: keep the chip row, drop the desktop chrome ---------- */
@media (max-width: 860px) {
  .kr-facet__ico,
  .kr-facet__n,
  .kr-facet__c {
    display: none;
  }

  .kr-facet__search,
  button.kr-facet__more {
    display: none !important;
  }

  .kr-facet__term {
    display: inline;
    overflow: visible;
    white-space: nowrap;
  }
}

/* ---------- archive pagination: one set, brand-blue ---------- */
.kr-archive .woocommerce-pagination {
  margin: 24px 0 4px;
  text-align: left;
}

.kr-archive .woocommerce-pagination ul.page-numbers,
.kr-archive .woocommerce-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.kr-archive .woocommerce-pagination ul.page-numbers li {
  border: 0;
  margin: 0;
  list-style: none;
}

.kr-archive .woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #e3e9f0;
  border-radius: 9px;
  background: #fff;
  color: #26333f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.kr-archive .woocommerce-pagination .page-numbers:hover {
  border-color: #14417b;
  background: #f4f8fd;
  color: #14417b;
}

.kr-archive .woocommerce-pagination .page-numbers.current {
  border-color: #14417b;
  background: #14417b;
  color: #fff;
}

.kr-archive .woocommerce-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
  color: #9aa5b3;
  min-width: 20px;
  padding: 0;
}

.kr-archive .woocommerce-pagination .page-numbers.prev,
.kr-archive .woocommerce-pagination .page-numbers.next {
  padding: 0 13px;
}

/* the result count already sits in the archive header — don't print it twice */
.kr-archive .kr-fbar__count {
  display: none;
}
