/* Kareva One World: product listing, product cards and product page.
   Uses Kareva's colours (--cream, --ink, --red …), type and buttons. */

.kp-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- hero ---------- */

.kp-hero {
  padding-bottom: 96px;
}

.kp-title {
  max-width: 14ch;
}

/* ---------- listing section ---------- */

.kp-list {
  position: relative;
  padding: 72px 0 9vw;
  background: var(--cream, #f7f4ed);
  color: var(--ink, #161513);
}

/* ---------- filters ---------- */

.kp-filters {
  display: grid;
  gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-light, rgba(22, 21, 19, .12));
}

.kp-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.kp-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 460px;
}

.kp-search svg {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: rgba(22, 21, 19, .5);
  pointer-events: none;
}

.kp-search input {
  width: 100%;
  height: 56px;
  padding: 0 22px 0 52px;
  border: 1px solid var(--line-light, rgba(22, 21, 19, .12));
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #161513);
  font: 400 17px/1 "Figtree", sans-serif;
  outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.kp-search input::placeholder {
  color: rgba(22, 21, 19, .5);
}

.kp-search input:focus-visible {
  border-color: var(--ink, #161513);
  box-shadow: 0 0 0 4px rgba(22, 21, 19, .08);
}

.kp-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kp-select {
  display: grid;
  gap: 6px;
}

.kp-select > span {
  padding-left: 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(22, 21, 19, .6);
}

.kp-select select {
  height: 56px;
  min-width: 190px;
  padding: 0 48px 0 20px;
  border: 1px solid var(--line-light, rgba(22, 21, 19, .12));
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23161513' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 22px center / 11px 7px;
  color: var(--ink, #161513);
  font: 500 16px/1 "Figtree", sans-serif;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.kp-select select:focus-visible,
.kp-chip input:focus-visible + span,
.kp-apply:focus-visible,
.kp-clear:focus-visible,
.kp-card-link:focus-visible {
  outline: 2px solid var(--red, #e2333d);
  outline-offset: 3px;
}

.kp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.kp-chip {
  position: relative;
  cursor: pointer;
}

.kp-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.kp-chip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(22, 21, 19, .2);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink, #161513);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.kp-chip span i {
  font-style: normal;
  font-size: 15px;
  color: rgba(22, 21, 19, .55);
  transition: color .3s ease;
}

.kp-chip:hover span {
  border-color: var(--ink, #161513);
}

.kp-chip input:checked + span {
  background: var(--ink, #161513);
  border-color: var(--ink, #161513);
  color: #fff;
}

.kp-chip input:checked + span i {
  color: rgba(255, 255, 255, .7);
}

.kp-apply {
  justify-self: start;
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink, #161513);
  color: #fff;
  font: 500 16px/1 "Figtree", sans-serif;
  cursor: pointer;
}

.kp-js .kp-apply {
  display: none;
}

/* ---------- result bar ---------- */

.kp-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 26px 0 28px;
}

.kp-count {
  margin: 0;
  font-size: 16px;
  color: rgba(22, 21, 19, .7);
}

.kp-count b {
  color: var(--ink, #161513);
  font-weight: 600;
}

.kp-clear {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink, #161513);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--red, #e2333d);
}

.kp-results {
  transition: opacity .25s ease;
}

.kp-results[aria-busy="true"] {
  opacity: .45;
}

/* ---------- product grid and cards ---------- */

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

.kp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 26px;
  border: 1px solid var(--line-light, rgba(22, 21, 19, .12));
  border-radius: 26px;
  background: var(--paper, #fffdf9);
  color: var(--ink, #161513);
  transition: transform .5s var(--ease-out, ease), box-shadow .5s var(--ease-out, ease), border-color .3s ease;
  animation: kpIn .6s var(--ease-out, ease) both;
}

.kp-card:hover,
.kp-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(22, 21, 19, .2);
  box-shadow: 0 30px 60px -30px rgba(22, 21, 19, .35);
}

.kp-card.is-featured {
  border-color: rgba(226, 51, 61, .35);
}

@keyframes kpIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.kp-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.kp-icon {
  flex: 0 0 auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.kp-icon--tile {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Parkinsans", sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}

.kp-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.kp-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: var(--sand, #ede7db);
  color: var(--ink, #161513);
}

.kp-tag--free {
  background: #e3f1e8;
  color: #17603a;
}

.kp-tag--paid {
  background: #151354;
  color: #fff;
}

.kp-tag--badge {
  background: var(--red, #e2333d);
  color: #fff;
}

.kp-card-title {
  margin: 0 0 10px;
  font-family: "Parkinsans", sans-serif;
  font-size: clamp(24px, 1.9vw, 30px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.kp-card-link {
  color: inherit;
  text-decoration: none;
}

/* the whole card is the link */
.kp-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.kp-card-tagline {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(22, 21, 19, .72);
}

.kp-card-feats {
  display: grid;
  gap: 9px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.kp-card-feats li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(22, 21, 19, .8);
}

.kp-card-feats li::before,
.kp-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--red, #e2333d);
  border-bottom: 2px solid var(--red, #e2333d);
  transform: rotate(-45deg);
}

.kp-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-light, rgba(22, 21, 19, .12));
}

.kp-card-price {
  font-size: 16px;
  font-weight: 600;
}

.kp-card-cat {
  font-size: 15px;
  color: rgba(22, 21, 19, .6);
}

.kp-card-go {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--ink, #161513);
  color: #fff;
  transition: transform .6s var(--ease-spring, ease), background .3s ease;
}

.kp-card-go svg {
  width: 13px;
  height: 13px;
}

.kp-card:hover .kp-card-go {
  background: var(--red, #e2333d);
  transform: rotate(45deg);
}

/* ---------- empty state ---------- */

.kp-empty {
  max-width: 560px;
  padding: 4vw 0 2vw;
}

.kp-empty h2 {
  margin: 0 0 12px;
  font-family: "Parkinsans", sans-serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.kp-empty p {
  margin: 0 0 28px;
  font-size: 17px;
  color: rgba(22, 21, 19, .7);
}

.kp-list .pagination {
  margin-top: 56px;
}

/* ---------- product page ---------- */

.kp-phero {
  padding-bottom: 110px;
}

.kp-phero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 48px 6vw;
  align-items: end;
}

.kp-ptitle {
  max-width: 16ch;
  font-size: clamp(48px, 5.6vw, 100px);
}

.kicker a {
  color: inherit;
  text-decoration: none;
}

.kicker a:hover {
  color: #fff;
}

.kp-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.kp-pcard {
  padding: 34px;
  border: 1px solid var(--line-dark, rgba(255, 255, 255, .12));
  border-radius: 28px;
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.kp-pcard .kp-icon {
  margin-bottom: 26px;
  border-radius: 22px;
}

.kp-pcard-type {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.kp-pcard-price {
  margin: 0;
  font-family: "Parkinsans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.kp-details {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
}

.kp-details div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-dark, rgba(255, 255, 255, .12));
  font-size: 15px;
}

.kp-details dt {
  color: rgba(255, 255, 255, .6);
}

.kp-details dd {
  margin: 0;
  text-align: right;
}

.kp-body {
  padding: 8vw 0;
  background: var(--cream, #f7f4ed);
  color: var(--ink, #161513);
}

.kp-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 56px 7vw;
  align-items: start;
}

.kp-content {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(22, 21, 19, .82);
}

.kp-content > * + * {
  margin-top: 1.1em;
}

.kp-content h2,
.kp-content h3 {
  margin-top: 1.8em;
  font-family: "Parkinsans", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink, #161513);
}

.kp-content h2 {
  font-size: clamp(30px, 2.6vw, 42px);
}

.kp-content h3 {
  font-size: clamp(23px, 1.8vw, 28px);
}

.kp-content a {
  color: var(--ink, #161513);
  text-decoration-color: var(--red, #e2333d);
  text-underline-offset: 3px;
}

.kp-content ul,
.kp-content ol {
  padding-left: 1.3em;
}

.kp-content img,
.kp-content video,
.kp-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.kp-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 120px;
}

.kp-side-box {
  padding: 28px;
  border: 1px solid var(--line-light, rgba(22, 21, 19, .12));
  border-radius: 24px;
  background: var(--paper, #fffdf9);
}

.kp-side-box h2 {
  margin: 0 0 16px;
  font-family: "Parkinsans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.kp-check {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-check li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.5;
}

.kp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-pills a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(22, 21, 19, .2);
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink, #161513);
  text-decoration: none;
  transition: border-color .3s ease;
}

.kp-pills a:hover {
  border-color: var(--ink, #161513);
}

.kp-side-link a,
.kp-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

.kp-side-link svg,
.kp-all svg {
  width: 12px;
  height: 12px;
}

.kp-more {
  padding: 8vw 0;
  background: var(--night, #0d0d0d);
  color: #fff;
}

.kp-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.kp-more .kp-all {
  color: rgba(255, 255, 255, .8);
}

.kp-more .kp-all:hover {
  color: #fff;
}

.kp-own {
  min-height: 40vh;
}

/* shortcode grid on any page */
.kp-grid--short {
  margin: 0;
}

/* ---------- responsive ---------- */

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

  .kp-phero-grid,
  .kp-body-grid {
    grid-template-columns: 1fr;
  }

  .kp-side {
    position: static;
  }
}

@media (max-width: 900px) {
  .kp-filters-row {
    align-items: stretch;
  }

  .kp-search {
    max-width: none;
    flex-basis: 100%;
  }

  .kp-selects {
    width: 100%;
  }

  .kp-select {
    flex: 1 1 140px;
  }

  .kp-select select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .kp-grid {
    grid-template-columns: 1fr;
  }

  .kp-list {
    padding-top: 48px;
  }

  /* category chips scroll sideways instead of wrapping into many rows */
  .kp-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(50% - 50vw);
    padding: 0 calc(50vw - 50%) 4px;
    scrollbar-width: none;
  }

  .kp-chips::-webkit-scrollbar {
    display: none;
  }

  .kp-chip span {
    white-space: nowrap;
  }

  .kp-card {
    padding: 26px 22px 22px;
  }

  .kp-pcard {
    padding: 26px;
  }

  .kp-ctas .btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kp-card,
  .kp-card-go,
  .kp-results {
    animation: none;
    transition: none;
  }

  .kp-card:hover,
  .kp-card:focus-within {
    transform: none;
  }
}
