/* NORRPACK – jämna produktkort i Abicarts rutnätsvy.
   Lägg till LÄNGST NED i temats Egen CSS. Behåll befintlig CSS.
   Påverkar bara produktkort. Innehåller ingen offertbanner.
   Produktbilder och produktbeskrivningar inne på produktsidan ändras inte.
*/

.tws-article-list--list .tws-list--type-grid .tws-list--grid-item > .thumbnail > .caption {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 2.8em 6em minmax(2.6em, auto) auto minmax(3em, 1fr) auto;
  gap: 8px;
  align-items: start !important;
  justify-content: stretch !important;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tws-article-list--list .tws-list--type-grid .tws-list--grid-item > .thumbnail > .caption > .tws-article-list--article-name {
  grid-column: 1;
  grid-row: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.8em;
  margin: 0 !important;
  min-width: 0;
}

.tws-article-list--list .tws-list--type-grid .tws-list--grid-item > .thumbnail > .caption > .tws-article-list--introduction-text {
  grid-column: 1;
  grid-row: 2;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden !important;
  flex: none !important;
  line-height: 1.5 !important;
  height: 6em !important;
  min-height: 0 !important;
  max-height: 6em !important;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.tws-article-list--list .tws-list--type-grid .tws-list--grid-item > .thumbnail > .caption > .tws-article-list--price {
  grid-column: 1;
  grid-row: 3;
  height: auto !important;
  min-height: 2.6em;
  margin: 0 !important;
  align-self: end;
}

.tws-article-list--list .tws-list--type-grid .tws-list--grid-item > .thumbnail > .caption > .tws-article-list--item-stock-wrap {
  grid-column: 1;
  grid-row: 4;
  margin: 0 !important;
  min-width: 0;
}

.tws-article-list--list .tws-list--type-grid .tws-list--grid-item > .thumbnail > .caption > .tws-article-list--delivery-info {
  grid-column: 1;
  grid-row: 5;
  margin: 0 !important;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tws-article-list--list .tws-list--type-grid .tws-list--grid-item > .thumbnail > .caption > :is(.tws-article-list--buy-button, .tws-article-list--show-more-button) {
  grid-column: 1;
  grid-row: 6;
  align-self: end;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .tws-article-list--list .tws-list--type-grid .tws-list--grid-item > .thumbnail > .caption {
    grid-template-rows: 2.8em 4.5em minmax(2.6em, auto) auto minmax(3em, 1fr) auto;
    gap: 6px;
  }
  .tws-article-list--list .tws-list--type-grid .tws-list--grid-item > .thumbnail > .caption > .tws-article-list--introduction-text {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    height: 4.5em !important;
    max-height: 4.5em !important;
  }
}
/* =========================================================
   NORRPACK – KOMPAKTA PRODUKTKORT
   ========================================================= */

/* Gör korten kompakta */
.product-list-item,
.product-item,
.article-item,
.product-box,
.article-box,
[class*="product-list-item"],
[class*="article-item"] {
    height: auto !important;
    min-height: 0 !important;
}

/* Produktens textområde */
.product-list-item .content,
.product-item .content,
.article-item .content,
.product-box .content,
.article-box .content,
[class*="product"] [class*="content"] {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Produktnamn */
.product-list-item h2,
.product-list-item h3,
.product-item h2,
.product-item h3,
.article-item h2,
.article-item h3,
.product-box h2,
.product-box h3,
.article-box h2,
.article-box h3 {
    margin: 3px 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}

/* All brödtext */
.product-list-item p,
.product-item p,
.article-item p,
.product-box p,
.article-box p {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;

    line-height: 1.15 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
    text-overflow: initial !important;

    white-space: normal !important;

    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

/* Beskrivning / dimensioner */
.product-description,
.article-description,
.product-short-description,
.article-short-description,
[class*="description"] {
    margin: 3px 0 5px 0 !important;
    padding: 0 !important;

    line-height: 1.15 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
    text-overflow: initial !important;

    white-space: normal !important;

    display: block !important;
    -webkit-line-clamp: unset !important;
}

/* Behåll separata rader */
.product-description br,
.article-description br,
.product-short-description br,
.article-short-description br {
    display: block !important;
    content: "" !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Pris */
.product-price,
.article-price,
.price,
[class*="price"] {
    margin: 7px 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
    min-height: 0 !important;
}

/* Lagerstatus */
.product-stock,
.article-stock,
.stock,
[class*="stock"] {
    margin: 5px 0 6px 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
    min-height: 0 !important;
}

/* Ta bort element som skapar artificiell höjd */
.product-list-item .spacer,
.product-item .spacer,
.article-item .spacer,
.product-box .spacer,
.article-box .spacer {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Köpsektion */
.product-buy,
.article-buy,
.buy,
[class*="buy"] {
    margin-top: 5px !important;
    padding-top: 0 !important;
    position: static !important;
}

/* Köpknapp */
.product-buy button,
.article-buy button,
.product-item button,
.article-item button,
.product-box button,
.article-box button {
    margin-top: 3px !important;
    margin-bottom: 4px !important;
}

/* Om korten kör Flexbox */
.product-list-item,
.product-item,
.article-item,
.product-box,
.article-box {
    justify-content: flex-start !important;
}

/* Förhindra att köpknappen tvingas längst ner */
.product-list-item > *,
.product-item > *,
.article-item > *,
.product-box > *,
.article-box > * {
    flex-grow: 0 !important;
}

/* Viktigt – ingen text ska kapas */
.product-list-item [class*="description"],
.product-item [class*="description"],
.article-item [class*="description"] {
    max-height: none !important;
    overflow: visible !important;
}

/* Mobil */
@media (max-width: 768px) {

    .product-list-item .content,
    .product-item .content,
    .article-item .content {
        padding-top: 3px !important;
        padding-bottom: 3px !important;
    }

    .product-list-item p,
    .product-item p,
    .article-item p,
    .product-description,
    .article-description {
        line-height: 1.12 !important;
        margin-bottom: 1px !important;
    }

    .product-price,
    .article-price,
    [class*="price"] {
        margin-top: 5px !important;
        margin-bottom: 4px !important;
    }

    .product-stock,
    .article-stock,
    [class*="stock"] {
        margin-top: 3px !important;
        margin-bottom: 4px !important;
    }
}

/* NORRPACK ny startsida 2026-11 - allt avgransat till #np-home */
#np-home{--ink:#16201a;--muted:#5d6a60;--line:#e3e8e2;--accent:#527448;--accent2:#70a066;--plate:#eef1ec;--dark:#0c1311;font-family:inherit;color:var(--ink);line-height:1.5;text-align:left}
#np-home *{box-sizing:border-box}
#np-home a{text-decoration:none;color:inherit}
#np-home .np-btns{display:flex;flex-wrap:wrap;gap:12px}
#np-home .np-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:14px 24px;font-weight:700;font-size:15px;border:2px solid transparent;line-height:1.2}
#np-home .np-btn.p{background:var(--accent2);color:#fff}
#np-home .np-btn.p:hover{background:#5f8f55}
#np-home .np-btn.g{border-color:rgba(255,255,255,.45);color:#fff}
#np-home .np-btn.g:hover{border-color:#fff}
#np-home .np-btn.d{background:var(--ink);color:#fff}
#np-home .np-eyebrow{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#a9d39d;font-weight:700}
#np-home .np-hero{position:relative;color:#fff;border-radius:20px;overflow:hidden;background:radial-gradient(900px 500px at 78% 45%,rgba(112,160,102,.28),transparent 60%),linear-gradient(180deg,#0c1311,#101a16)}
#np-home .np-hero-in{display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:center;padding:60px 48px}
#np-home .np-hero h1{font-size:clamp(30px,4.2vw,52px);line-height:1.08;margin:12px 0 16px;font-weight:800;color:#fff}
#np-home .np-hero p{font-size:18px;color:#d7e0d8;margin:0 0 28px}
#np-home .np-proof{display:flex;gap:20px;margin-top:30px;font-size:14px;color:#c9d4ca;flex-wrap:wrap}
#np-home .np-proof span:before{content:"\2713  ";color:#a9d39d;font-weight:800}
#np-home .np-vis{position:relative;display:block;aspect-ratio:1/.86;border-radius:24px;overflow:hidden;background:var(--plate);box-shadow:0 30px 60px rgba(0,0,0,.4)}
#np-home .np-vis img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:14% 10% 18%;mix-blend-mode:multiply}
#np-home .np-chip{position:absolute;display:flex;align-items:center;gap:10px;background:#fff;color:var(--ink);border-radius:14px;padding:10px 14px;font-size:13px;box-shadow:0 14px 30px rgba(0,0,0,.2)}
#np-home .np-chip b{display:block;font-size:14px}
#np-home .np-chip.c1{left:16px;bottom:16px}
#np-home .np-chip.c2{right:16px;top:16px}
#np-home .np-chip .pr{font-weight:800;color:var(--accent)}
#np-home .np-ico{width:34px;height:34px;border-radius:10px;background:#eef4ec;display:grid;place-items:center;flex:none}
#np-home svg{width:22px;height:22px;fill:none;stroke:var(--accent);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#np-home .np-usp{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:16px;margin:18px 0 0}
#np-home .np-usp>div{padding:18px 16px;display:flex;gap:12px;align-items:center;font-size:14px;border-right:1px solid var(--line)}
#np-home .np-usp>div:last-child{border-right:0}
#np-home .np-usp .np-ico{width:44px;height:44px;border-radius:12px}
#np-home .np-usp svg{width:24px;height:24px}
#np-home .np-usp b{display:block;font-size:15px}
#np-home .np-sec{padding:56px 0 0}
#np-home .np-sh{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
#np-home .np-sh h2{font-size:clamp(24px,2.6vw,34px);margin:0;line-height:1.15}
#np-home .np-sh p{margin:6px 0 0;color:var(--muted)}
#np-home .np-sh a{font-weight:700;color:var(--accent);white-space:nowrap}
#np-home .np-needs{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
#np-home .np-need{border-radius:16px;overflow:hidden;background:#fff;border:1px solid var(--line);display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
#np-home .np-need:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(20,40,25,.1)}
#np-home .np-im{position:relative;display:block;aspect-ratio:4/3;background:var(--plate);overflow:hidden}
#np-home .np-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:14px;mix-blend-mode:multiply}
#np-home .np-need .np-tx{display:block;padding:16px 18px 18px}
#np-home .np-need h3{margin:0 0 4px;font-size:18px}
#np-home .np-need p{margin:0;color:var(--muted);font-size:14px}
#np-home .np-go{display:block;margin-top:10px;font-weight:700;color:var(--accent);font-size:14px}
#np-home .np-foam{margin-top:56px;background:var(--dark);color:#fff;border-radius:20px;padding:48px}
#np-home .np-foam-in{display:grid;grid-template-columns:1.05fr 1fr;gap:44px;align-items:center}
#np-home .np-foam h2{font-size:clamp(26px,3vw,40px);margin:8px 0 14px;line-height:1.12;color:#fff}
#np-home .np-foam p{color:#c9d4ca;margin:0}
#np-home .np-steps{list-style:none;padding:0;margin:22px 0 28px;display:grid;gap:14px}
#np-home .np-steps li{display:flex;gap:14px;align-items:flex-start}
#np-home .np-steps b.n{flex:none;width:32px;height:32px;border-radius:50%;background:var(--accent2);display:grid;place-items:center}
#np-home .np-ba{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:1/1;background:var(--plate);user-select:none}
#np-home .np-ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:20px;mix-blend-mode:multiply}
#np-home .np-ba .af{clip-path:inset(0 0 0 50%)}
#np-home .np-ba .bf{clip-path:inset(0 50% 0 0)}
#np-home .np-ba .hd{position:absolute;top:0;bottom:0;left:50%;width:3px;background:var(--accent2);pointer-events:none}
#np-home .np-ba .hd:after{content:"\21C6";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--accent2);color:#fff;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:800}
#np-home .np-ba .lb{position:absolute;top:12px;font-size:12px;font-weight:700;background:rgba(12,19,17,.8);color:#fff;padding:4px 10px;border-radius:999px}
#np-home .np-ba .l{left:12px}
#np-home .np-ba .r{right:12px}
#np-home .np-ba input{position:absolute;inset:0;opacity:0;cursor:ew-resize;width:100%;height:100%;margin:0}
#np-home .np-b2b{margin:24px 0 8px;background:#eef4ec;border-radius:16px;padding:26px 30px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
#np-home .np-b2b h3{margin:0 0 4px;font-size:22px}
#np-home .np-b2b p{margin:0;color:var(--muted)}
@media (max-width:960px){#np-home .np-hero-in,#np-home .np-foam-in{grid-template-columns:1fr} #np-home .np-vis{max-width:560px;width:100%;margin:0 auto} #np-home .np-usp{grid-template-columns:repeat(2,1fr)} #np-home .np-usp>div:nth-child(2){border-right:0} #np-home .np-needs{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){#np-home .np-hero-in{padding:36px 18px 40px;gap:26px} #np-home .np-hero p{font-size:16px} #np-home .np-hero .np-btn{flex:1 1 100%} #np-home .np-chip{padding:8px 10px;font-size:12px} #np-home .np-chip.c1{left:10px;bottom:10px} #np-home .np-chip.c2{right:10px;top:10px} #np-home .np-usp{grid-template-columns:1fr} #np-home .np-usp>div{border-right:0;border-bottom:1px solid var(--line)} #np-home .np-needs{gap:10px} #np-home .np-need .np-tx{padding:12px} #np-home .np-need p{display:none} #np-home .np-foam{padding:28px 18px} #np-home .np-sh{flex-direction:column;align-items:flex-start}}
#np-home .np-need .np-h3{display:block;margin:0 0 4px;font-size:18px;font-weight:700;line-height:1.25;color:var(--ink)}
#np-home .np-need .np-p{display:block;margin:0;color:var(--muted);font-size:14px}
@media (max-width:600px){#np-home .np-need .np-p{display:none}}
