/* Kretslagret Swappie-Style Storefront Grid */
.swp-head {
  padding-top: 28px;
}

.swp-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 18px 0 22px;
}

.swp-title-row h1 {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.06;
  margin: 0 0 6px;
  color: var(--navy);
}

.swp-title-row p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.swp-search {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  flex: 0 1 380px;
  background: #f4f6fa;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  padding: 4px;
}

.swp-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 12.5px;
  outline: none;
  color: var(--navy);
}

.swp-search button {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #1a357e;
  color: #ffffff;
  display: grid;
  place-items: center;
}

.swp-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.swp-cat-tabs a {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid #dce4ef;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  transition: all 0.16s ease;
}

.swp-cat-tabs a:hover {
  border-color: #93b4e8;
}

.swp-cat-tabs a[aria-current] {
  background: #1a357e;
  border-color: #1a357e;
  color: #ffffff;
}

/* Top 4 Visual Quick-Selector Tier Cards */
.swp-tier-section {
  padding-top: 22px;
}

.swp-tier-section h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 13px;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.swp-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.swp-tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1.5px solid #e3e8f0;
  background: #ffffff;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.swp-tier-card:hover {
  transform: translateY(-2px);
  border-color: #9cb7e8;
  box-shadow: 0 10px 24px rgba(26, 53, 126, 0.07);
}

.swp-tier-card.is-active {
  border-color: #1a357e;
  background: #f3f6fe;
  box-shadow: 0 0 0 1px #1a357e;
}

.swp-tier-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
}

.swp-tier-ico.is-kompakt { background: #fde8ef; color: #c81e5a; }
.swp-tier-ico.is-standard { background: #fef3c7; color: #b45309; }
.swp-tier-ico.is-pro { background: #e8edff; color: #1a357e; }
.swp-tier-ico.is-promax { background: #dcfce7; color: #15803d; }

.swp-tier-card strong {
  font-size: 13.5px;
  color: var(--navy);
}

.swp-tier-card small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Main Body Grid (Sidebar + 3-Col Products) */
.swp-body {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 26px;
  padding-top: 26px;
  padding-bottom: 90px;
  align-items: start;
}

.swp-filters-box {
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.swp-filters-box summary {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

.swp-filters-box summary::-webkit-details-marker {
  display: none;
}

.swp-sidebar-inner {
  padding: 18px;
}

.swp-sort-wrap {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}

.swp-sort-wrap label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.swp-sort-wrap select {
  width: 100%;
  border: 1px solid #d2dce9;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12px;
  background: #ffffff;
  color: var(--navy);
}

.swp-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.swp-filter-header strong {
  font-size: 13px;
  color: var(--navy);
}

.swp-filter-header a {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
}

.swp-filter-group {
  padding: 13px 0;
  border-top: 1px solid #eef2f7;
}

.swp-filter-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 9px;
}

/* Price Histogram */
.swp-histogram {
  height: 44px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 2px;
  margin-bottom: 10px;
  border-bottom: 2px solid #cbd5e1;
}

.swp-histogram span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: #1a357e;
  opacity: 0.78;
}

.swp-price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.swp-price-inputs input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d2dce9;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 11.5px;
  color: var(--navy);
}

.swp-price-inputs span {
  font-size: 12px;
  color: var(--muted);
}

.swp-apply-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d2dce9;
  background: #f5f8fd;
  color: #1a357e;
  font-size: 11px;
  font-weight: 700;
}

.swp-apply-btn:hover {
  background: #e6eefc;
}

/* Pill Filter Buttons */
.swp-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.swp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #dce4ef;
  background: #ffffff;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  transition: all 0.14s ease;
}

.swp-pill:hover {
  border-color: #93b4e8;
  color: var(--navy);
}

.swp-pill.is-active {
  background: #1a357e;
  border-color: #1a357e;
  color: #ffffff;
}

.swp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.22);
  display: inline-block;
  flex-shrink: 0;
}

/* Active Filters Chips */
.swp-active-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.swp-active-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1a357e;
  font-size: 11.5px;
  font-weight: 600;
}

/* 3-Column Swappie Product Grid */
.swp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.swp-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.swp-card:hover {
  transform: translateY(-3px);
  border-color: #b4c8ec;
  box-shadow: 0 14px 32px rgba(21, 43, 71, 0.08);
}

.swp-card.is-spotlight {
  background: linear-gradient(180deg, #f3f1fe 0%, #ffffff 65%);
  border-color: #dcd6fb;
}

.swp-card-top {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.swp-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 122px;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
}

.swp-card.is-spotlight .swp-card-img {
  background: rgba(255, 255, 255, 0.85);
}

.swp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  display: block;
}

.swp-card-meta {
  min-width: 0;
}

.swp-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #e9eff8;
  color: #1e3a6d;
  margin-bottom: 6px;
}

.swp-badge.is-sale {
  background: #1a357e;
  color: #ffffff;
}

.swp-card-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--navy);
  margin-bottom: 8px;
}

.swp-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 9px;
}

.swp-spec-pills span {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #e1e7f0;
  background: #fbfcfe;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
}

.swp-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
}

.swp-swatches i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.22);
  display: inline-block;
}

.swp-swatch-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #dce4ef;
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
}

.swp-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f3f8;
}

.swp-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swp-buy-form {
  margin: 0;
}

.swp-btn-view,
.swp-btn-choose,
.swp-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.swp-btn-view,
.swp-btn-choose {
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1a357e;
}

.swp-btn-view:hover,
.swp-btn-choose:hover {
  border-color: #1a357e;
  background: #f4f8ff;
}

.swp-btn-choose.is-oos {
  border-color: #e2e8f0;
  color: #94a3b8;
  background: #f8fafc;
}

.swp-btn-buy {
  border: 0;
  background: #1a357e;
  color: #ffffff;
}

.swp-btn-buy:hover:not(:disabled) {
  background: #0d2343;
}

.swp-btn-buy:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.swp-card-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.swp-price-from {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
}

.swp-card-price strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0d2343;
}

.swp-save-pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: #1a357e;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
}

.swp-card-price small {
  font-size: 10px;
  color: #64748b;
}

/* In-Grid "Byt in & spara pengar" Promo Card */
.swp-promo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1d3b8b 0%, #0d2343 100%);
  color: #ffffff;
  min-height: 220px;
}

.swp-promo-kicker {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #93c5fd;
  margin-bottom: 8px;
}

.swp-promo-copy h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #ffffff;
}

.swp-promo-copy p {
  font-size: 12px;
  line-height: 1.55;
  color: #dbeafe;
  margin: 0 0 12px;
}

.swp-promo-link {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.swp-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #0d2343;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.16s ease;
}

.swp-promo-cta:hover {
  transform: translateY(-2px);
  color: #1a357e;
}

.swp-empty-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items: stretch;
}

#lager-produkter {
  scroll-margin-top: 16px;
}

.scroll-stock-cue--shop {
  margin-top: 12px;
}

.swp-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #1a357e;
  color: #ffffff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.swp-search-result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #f3f7fe;
  border: 1px solid #d5e3f7;
  font-size: 13px;
  color: var(--navy);
}

.swp-search-result-bar a {
  font-weight: 700;
  color: #1a357e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.swp-dym-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #eef5ff;
  border: 1.5px solid #bfd7fa;
}

.swp-dym-box h2 {
  margin: 0 0 4px;
  font-size: 19px;
  color: var(--navy);
}

.swp-dym-box p {
  margin: 0;
  font-size: 13px;
  color: #364f6b;
}

/* Responsive Breakpoints */
@media (max-width: 1140px) {
  .swp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .swp-head {
    padding-top: 12px;
  }
  .swp-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 10px 0 12px;
  }
  .swp-title-row h1 {
    font-size: 23px;
    line-height: 1.15;
  }
  .swp-title-row p {
    font-size: 11.5px;
    line-height: 1.45;
  }
  .swp-search {
    flex: none;
    width: 100%;
  }
  .swp-cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 12px;
  }
  .swp-cat-tabs::-webkit-scrollbar {
    display: none;
  }
  .swp-cat-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .swp-tier-section {
    padding-top: 12px;
  }
  .swp-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .swp-tier-card {
    flex-direction: row;
    text-align: left;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 12px;
  }
  .swp-tier-ico {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .swp-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 12px;
  }
  .swp-filters-box summary {
    display: flex;
    padding: 11px 14px;
  }
  .swp-empty-wrap {
    grid-template-columns: 1fr;
  }
  .swp-card-bottom {
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .swp-search {
    display: none;
  }
}

@media (max-width: 560px) {
  .swp-grid {
    grid-template-columns: 1fr;
  }
  .swp-tier-card small {
    display: none;
  }
  .swp-card-bottom {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .swp-card-price {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    text-align: left;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f4f8ff;
    border: 1px solid #e1ebf9;
  }
  .swp-card-price strong {
    font-size: 21px;
    font-weight: 700;
    color: #0d2343;
  }
  .swp-card-actions {
    width: 100%;
    gap: 8px;
  }
  .swp-card-actions .swp-btn-view,
  .swp-card-actions .swp-btn-choose,
  .swp-card-actions .swp-buy-form {
    flex: 1 1 0;
  }
  .swp-card-actions .swp-btn-view,
  .swp-card-actions .swp-btn-choose,
  .swp-card-actions .swp-btn-buy {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
  }
}
