/* Dölj på alla enheter */
.hide-on-all-pages{
  display: none !important;
}


.zw-products{
  --zw-text: var(--theme-text-color, #0B2A52);
  --zw-muted: rgba(11,42,82,.75);
  --zw-border: rgba(11,42,82,.18);
  --zw-palette-1: var(--theme-palette-color-1, #0B2A52);
}

/* layout */
.zw-products__layout{
  display:grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items:start;
}
@media (max-width: 980px){
  .zw-products__layout{ grid-template-columns: 1fr; }
}

/* filter “flyter in” */
.zw-products__filters-inner{
  background: transparent;
  padding: 0;
  color: var(--zw-text);
}

.zw-products__filters-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.zw-products__count{ font-weight: 800; }
.zw-products__reset{
  text-decoration:none;
  font-weight:700;
  color: var(--zw-text);
  opacity:.9;
}
.zw-products__reset:hover{ text-decoration: underline; opacity:1; }

/* close knapp: bara mobil */
.zw-products__close{
  display:none;
  border:0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}
@media (max-width: 980px){
  .zw-products__close{ display:inline-flex; }
}

/* facets */
.zw-products__facet{
  border-top: 1px solid var(--zw-border);
  padding-top: 10px;
  margin-top: 10px;
}
.zw-products__facet-summary{
  list-style:none;
  cursor:pointer;
  font-weight:800;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.zw-products__facet-summary::-webkit-details-marker{ display:none; }
.zw-products__facet-summary::after{
  content:"›";
  transform: rotate(90deg);
  font-size: 22px;
  opacity:.75;
}
.zw-products__facet[open] .zw-products__facet-summary::after{
  transform: rotate(-90deg);
}

/* checks */
.zw-products__checks{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding: 6px 0 10px;
}
.zw-products__check{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 0;
  cursor:pointer;
}

/* custom checkbox */
.zw-products__check input[type="checkbox"]{
  -webkit-appearance:none;
  appearance:none;
  width:18px; height:18px;
  border:2px solid var(--zw-palette-1);
  border-radius:4px;
  background:transparent;
  display:grid;
  place-content:center;
  margin:0;
  cursor:pointer;
}
.zw-products__check input[type="checkbox"]::before{
  content:"";
  width:10px; height:6px;
  border-left:2px solid var(--zw-palette-1);
  border-bottom:2px solid var(--zw-palette-1);
  transform: rotate(-45deg) scale(0);
}
.zw-products__check input[type="checkbox"]:checked::before{
  transform: rotate(-45deg) scale(1);
}
.zw-products__check input[type="checkbox"]:focus-visible{
  outline:2px solid var(--zw-palette-1);
  outline-offset:2px;
}

/* actions */
.zw-products__actions{
  border-top: 1px solid var(--zw-border);
  padding-top: 14px;
  margin-top: 6px;
}
.zw-products__btn{
  border:0;
  border-radius:10px;
  padding:10px 16px;
  font-weight:800;
  cursor:pointer;
  background: var(--zw-palette-1);
  color:#fff;
}

/* results top (mobil knapp) */
.zw-products__results-top{ display:none; margin-bottom:10px; }
@media (max-width: 980px){
  .zw-products__results-top{ display:flex; }
}
.zw-products__filter-toggle{
  border:1px solid rgba(11,42,82,.25);
  border-radius:999px;
  padding:10px 14px;
  background:transparent;
  color:var(--zw-text);
  font-weight:800;
  cursor:pointer;
}

/* grid */
.zw-products__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:34px;
}
@media (max-width: 900px){
  .zw-products__grid{ grid-template-columns: 1fr; }
}

/* card */
.zw-products__card{ background:transparent; border:0; padding:0; }

.zw-pcard__main{ display:block; width:100%; text-decoration:none; }
.zw-pcard__mainimg{
  width:100%;
  display:block;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:10px;
}

/* thumbs – 6 slots */
.zw-pcard__thumbs{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
  margin-top:12px;
}
.zw-pcard__thumb{
  border:1px solid rgba(11,42,82,.25);
  background:transparent;
  border-radius:6px;
  padding:0;
  aspect-ratio:1/1;
  overflow:hidden;
  cursor:pointer;
  display:block;
}
.zw-pcard__thumb img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.zw-pcard__thumb--more{
  font-weight:800;
  color:var(--zw-text);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.zw-pcard__meta{ margin-top:12px; color:var(--zw-text); }
.zw-pcard__title{ font-weight:800; margin:0 0 6px; font-size:20px; }
.zw-pcard__title a{ color:var(--zw-text); text-decoration:none; }
.zw-pcard__title a:hover{ text-decoration:underline; }
.zw-pcard__excerpt{ margin:0 0 6px; font-size:14px; color:var(--zw-muted); }
.zw-pcard__link{ font-weight:800; text-decoration:underline; color:var(--zw-text); }

/* pagination */
.zw-products__pagination ul{
  list-style:none; display:flex; gap:10px;
  padding:16px 0 0; margin:0; flex-wrap:wrap;
}
.zw-products__pagination a,
.zw-products__pagination span{
  display:inline-block;
  padding:8px 12px;
  border-radius:10px;
  background: rgba(0,0,0,.04);
  color: var(--zw-text);
  text-decoration:none;
}
.zw-products__pagination .current{
  background: var(--zw-palette-1);
  color:#fff;
}

/* overlay DOM-element */
.zw-products__overlay{
  display:none;
}

/* ===== MOBIL SLIDE-IN ===== */
@media (max-width: 980px){

  body.zw-filters-open{ overflow:hidden; }

  .zw-products__overlay{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    pointer-events:none;
    transition: opacity .18s ease;
    z-index: 99990;
  }

  .zw-products__filters{
    position:fixed;
    top:16px;
    bottom:16px;
    left:16px;

    width:min(420px, calc(100vw - 56px)); /* luft till höger */
    z-index: 99999;

    transform: translateX(calc(-100% - 16px));
    transition: transform .22s ease;

    background:#fff;
    border-radius:18px;
    box-shadow: 0 16px 50px rgba(0,0,0,.25);
    overflow:hidden;
  }

  .zw-products__filters-inner{
    height:100%;
    overflow:auto;
    padding:16px;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .zw-products__filters-inner::-webkit-scrollbar{ display:none; }

  body.zw-filters-open .zw-products__overlay{
    opacity:1;
    pointer-events:auto;
  }

  body.zw-filters-open .zw-products__filters{
    transform: translateX(0);
  }
}


/* Wrap för horisontell scroll på mobil */
.spec-table-wrap{
  overflow-x:auto;
  border-radius:0px;
}

.spec-table{
  width:100%;
  min-width:900px;
  border-collapse:separate;
  border-spacing:0;
  color:var(--theme-palette-color-5);
}

/* Header */
.spec-table thead th{
  background: var(--theme-palette-color-9);
  color:#b8ff2c;
  padding:14px;
  border-bottom:0;              /* bort – vi löser linjen på thead istället */
  white-space:nowrap;
}

/* EN linje under hela rubrikraden (stabil variant för WP/Blocksy) */
.spec-table thead{
  position:relative;
  border-bottom:2px solid var(--theme-palette-color-5) !important;
  /* vid behov för att vinna över tema:
     border-bottom:2px solid var(--theme-palette-color-5) !important; */
}

/* Celler */
.spec-table tbody td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:transparent;
  color:var(--theme-palette-color-5);
}

/* Odd/Even bakgrund – sätt på både tr och td */
.spec-table tbody tr:nth-child(odd),
.spec-table tbody tr:nth-child(odd) > td{
  background:var(--theme-palette-color-9);
}

.spec-table tbody tr:nth-child(even),
.spec-table tbody tr:nth-child(even) > td{
  background:var(--theme-palette-color-1);
}

/* Första kolumnen accent */
.spec-table tbody td:first-child{
  color:#b8ff2c;
  font-weight:700;
}



.zw-products__head{ margin-bottom: 18px; }
.zw-products__eyebrow{
  font-size: 14px;
  opacity: .75;
  margin-bottom: 6px;
}
.zw-products__h1{ margin: 0 0 10px; }

.zw-products__active{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.zw-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:inherit;
  line-height:1;
}
.zw-pill__x{ opacity:.65; }

.zw-pill--reset{
  border-style:dashed;
  opacity:.9;
}


.zw-products__head{ margin-bottom: 18px; }
.zw-products__eyebrow{
  font-size: 14px;
  opacity: .75;
  margin-bottom: 8px;
}

/* Wrapper i H1 */
.zw-h1chips{
  display:flex;
  flex-wrap:wrap;
  gap: 0.5ch 0.9ch;           /* lite luft mellan orden */
  align-items:flex-start;
}

/* Själva "ordet" ska se ut som text */
.zw-h1chip{
  display:inline-flex;
  align-items:flex-start;
  gap: 0.45ch;
  text-decoration:none;
  color: inherit;
  border: 0;
  padding: 0;
  position: relative;
}

/* Göm din inre X-span om du har kvar den i HTML */
.zw-h1chip__x{ display:none !important; }

/* Rund X-ikon före ordet */
.zw-h1chip::before{
  content: "✕";
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width: 1.05em;
  height: 1.05em;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,.16);
  background: rgba(255,255,255,.35);

  font-size: .42em;           /* liten, skalar med H1 */
  line-height: 1;

  /* “sitter vid toppen av ordet” */
  transform: translateY(.18em);
  opacity: .55;
}

.zw-h1chip:hover::before{ opacity: .95; }