:root {
  --ks-ink: #1b2e3b;
  --ks-blue: #315f86;
  --ks-blue-dark: #244a69;
  --ks-sky: #edf4fa;
  --ks-border: #dce6ee;
  --ks-soft: #f7f9fb;
  --ks-success: #2f7657;
}

.ks-cart-status {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 18px;
  border: 1px solid #c8d9e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(27, 46, 59, .16);
  color: var(--ks-ink);
  font: 600 14px/1.45 Poppins, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.ks-cart-status.is-visible { opacity: 1; transform: translateY(0); }
.ks-cart-status[data-state="success"] { border-color: #a8cfbb; color: #205c40; }
.ks-cart-status[data-state="error"] { border-color: #e3b2b2; color: #8a2d2d; }
.ks-cart-is-adding { opacity: .72; }
.is-adding { pointer-events: none !important; }
.ks-cart-added { outline: 2px solid rgba(47, 118, 87, .34); outline-offset: 5px; }
a[data-ks-state="added"].elementor-icon { color: var(--ks-success) !important; border-color: #a8cfbb !important; }

/* The shared Elementor archive contains the empty-search panel on every
 * product archive. It may only be exposed for an actual empty search. */
body:not(.search-no-results) .ks-search-empty { display: none !important; }

.ks-shop-hero {
  padding: 50px 24px 34px;
  background: var(--ks-sky);
  color: var(--ks-ink);
}

.ks-shop-hero__inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.ks-shop-hero__intro { max-width: 760px; }
.ks-shop-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--ks-blue);
  font: 700 13px/1.4 Poppins, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ks-shop-hero h1 {
  margin: 0;
  color: var(--ks-ink);
  font: 700 clamp(34px, 4.4vw, 58px)/1.08 Poppins, sans-serif;
  letter-spacing: -.04em;
}

.ks-shop-hero__lead {
  max-width: 690px;
  margin: 18px 0 24px;
  color: #405462;
  font: 400 clamp(16px, 1.6vw, 19px)/1.65 Poppins, sans-serif;
}

.ks-shop-hero__button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 9px;
  background: var(--ks-blue);
  color: #fff !important;
  font: 600 15px/1.4 Poppins, sans-serif;
  text-decoration: none !important;
}
.ks-shop-hero__button:hover, .ks-shop-hero__button:focus-visible { background: var(--ks-blue-dark); }

.ks-shop-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 30px 0 24px;
  padding-top: 22px;
  border-top: 1px solid #d3e1ec;
  color: #334957;
  font: 500 13px/1.5 Poppins, sans-serif;
}
.ks-shop-hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.ks-shop-hero__trust b {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ks-success);
  font-size: 12px;
}

.ks-shop-categories {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.ks-shop-category {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--ks-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ks-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(27, 46, 59, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ks-shop-category:hover, .ks-shop-category:focus-visible {
  border-color: #9cb8cc;
  box-shadow: 0 5px 14px rgba(27, 46, 59, .08);
  transform: translateY(-1px);
}
.ks-shop-category__copy { display: grid; gap: 4px; }
.ks-shop-category strong { font: 650 13px/1.3 Poppins, sans-serif; }
.ks-shop-category small { color: #687984; font: 400 10.5px/1.3 Poppins, sans-serif; }
.ks-shop-category__arrow { flex: 0 0 auto; color: var(--ks-blue); font-size: 18px; }

body.woocommerce-shop .ks-shop-old-intro { display: none !important; }
body.woocommerce-shop .elementor-location-archive { padding-top: 0; }
body.woocommerce-shop #ks-shop-assortiment { scroll-margin-top: 110px; }

@media (max-width: 1024px) {
  .ks-shop-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ks-cart-status { right: 16px; bottom: 16px; }
  .ks-shop-hero { padding: 32px 16px 24px; }
  .ks-shop-hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .ks-shop-hero__lead { margin-top: 14px; font-size: 15px; }
  .ks-shop-hero__trust { display: grid; gap: 10px; margin-top: 24px; padding-top: 18px; }
  .ks-shop-categories { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 10px; }
  .ks-shop-categories::-webkit-scrollbar { display: none; }
  .ks-shop-category { flex: 0 0 58%; min-height: 68px; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .ks-cart-status, .ks-shop-category { transition: none; }
}
