@charset "utf-8";
/* CSS Document */
/* =========================================================
   CRANE PARTNER – FALLSIKRING PRODUKTSIDER
   Felles CSS for fallseler, liner, fallblokker m.m.
   ========================================================= */

:root {
  --cp-green: #18872B;
  --cp-green-dark: #11651f;
  --cp-ink: #222;
  --cp-muted: #666;
  --cp-line: #dedede;
  --cp-soft: #f6f7f7;
  --cp-white: #fff;
}


/* =========================================================
   PRODUKTARK / HOVEDOMRÅDE
   ========================================================= */

#p7HMY_2 {
  background: #eef1f2 !important;
  padding: 30px 0 42px;
}

#p7HMY_2 > .hmy-section > .hmy-content-wrapper {
  background: transparent !important;
}

.cp-product-page,
.cp-product-page * {
  box-sizing: border-box;
}

.cp-product-page {
  width: calc(100% - 32px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 30px 46px;
  color: var(--cp-ink);
  background: var(--cp-white);
  border: 1px solid #e1e4e5;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.cp-product-page a {
  color: inherit;
}


/* =========================================================
   BRØDSMULER
   ========================================================= */

.cp-breadcrumb {
  margin: 0 0 16px;
  font-size: .92rem;
  color: var(--cp-muted);
}

.cp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 7px;
  color: #999;
}

.cp-breadcrumb a {
  text-decoration: none;
}

.cp-breadcrumb a:hover {
  text-decoration: underline;
}


/* =========================================================
   TITTEL / INTRO
   ========================================================= */

.cp-product-title {
  margin: 0 0 7px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.15;
  font-weight: 600;
}

.cp-product-intro {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--cp-muted);
  font-size: 1.04rem;
  line-height: 1.6;
}


/* =========================================================
   HERO – BILDE + PRODUKTINFO
   ========================================================= */

.cp-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
}


/* Produktbilde */

.cp-product-image-card {
  position: relative;
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  background: var(--cp-white);
  padding: 20px;
  text-align: center;
}

.cp-product-image-card > a {
  display: block;
  text-decoration: none;
}

.cp-product-main-image {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 610px;
  margin: 0 auto;
  object-fit: contain;
}

.cp-image-hint {
  display: inline-block;
  margin-top: 12px;
  color: var(--cp-muted);
  font-size: .88rem;
}


/* Produktinformasjon */

.cp-product-summary {
  border-top: 4px solid var(--cp-green);
  border-radius: 10px;
  background: var(--cp-soft);
  padding: 25px;
}

.cp-product-summary h2 {
  margin: 0 0 18px;
  font-size: 1.32rem;
  font-weight: 600;
}


/* =========================================================
   NØKKELFAKTA / IKONBOKSER
   Standard = 3 kolonner
   ========================================================= */

.cp-key-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

/* Produkter med kun 2 fakta */
.cp-key-facts--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Standard eksplisitt */
.cp-key-facts--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Fire fakta vises som 2 x 2 */
.cp-key-facts--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-fact {
  min-height: 110px;
  border: 1px solid var(--cp-line);
  border-radius: 9px;
  background: var(--cp-white);
  padding: 12px 8px;
  text-align: center;
}

.cp-fact img {
  display: block;
  width: auto;
  max-width: 76px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.cp-fact strong {
  display: block;
  font-size: .92rem;
  line-height: 1.25;
}

.cp-fact span {
  display: block;
  margin-top: 3px;
  color: var(--cp-muted);
  font-size: .80rem;
  line-height: 1.3;
}


/* =========================================================
   PRODUKTNUMMER / REF / INDEX
   ========================================================= */

.cp-product-codes {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  line-height: 1.6;
}

.cp-product-codes strong {
  font-weight: 600;
}

.cp-product-codes .cp-code-small {
  color: var(--cp-muted);
  font-size: .87rem;
}


/* =========================================================
   KONTAKTKNAPP
   ========================================================= */

.cp-product-summary .kontaktboks-wrapper {
  margin: 0 !important;
}

.cp-product-summary .btn-kontakt {
  width: 100%;
  max-width: 360px;
}


/* =========================================================
   BESKRIVELSESBOKS
   Brukes bl.a. på fallblokker
   ========================================================= */

.cp-description-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--cp-green);
  background: var(--cp-white);
  border-radius: 7px;
  color: var(--cp-ink);
  line-height: 1.55;
}

.cp-description-box p {
  margin: 0 0 10px;
}

.cp-description-box p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   SEKSJONER
   ========================================================= */

.cp-section {
  margin-top: 34px;
}

.cp-section-heading {
  margin: 0 0 15px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--cp-green);
  font-size: 1.38rem;
  font-weight: 600;
}


/* =========================================================
   GENERELL SPESIFIKASJONSTABELL
   Brukes bl.a. på seler
   ========================================================= */

.cp-specs-wrap {
  overflow: hidden;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  background: var(--cp-white);
}

.cp-specs {
  width: 100%;
  border-collapse: collapse;
}

.cp-specs th,
.cp-specs td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--cp-line);
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
}

.cp-specs tr:last-child th,
.cp-specs tr:last-child td {
  border-bottom: 0;
}

.cp-specs th {
  width: 38%;
  background: var(--cp-soft);
  font-weight: 600;
}


/* =========================================================
   TEKNISKE DETALJBOKSER
   Liner / fallblokker
   ========================================================= */

.cp-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cp-detail-card {
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  background: var(--cp-white);
  overflow: hidden;
}

.cp-detail-card h3 {
  margin: 0;
  padding: 13px 15px;
  background: var(--cp-soft);
  border-bottom: 1px solid var(--cp-line);
  font-size: 1.05rem;
  font-weight: 600;
}

.cp-detail-card table {
  width: 100%;
  border-collapse: collapse;
}

.cp-detail-card th,
.cp-detail-card td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--cp-line);
  vertical-align: middle;
  text-align: left;
  line-height: 1.4;
}

.cp-detail-card tr:last-child th,
.cp-detail-card tr:last-child td {
  border-bottom: 0;
}

.cp-detail-card th {
  width: 44%;
  font-weight: 600;
}


/* Små bilder av kroker / koblinger */

.cp-connector-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-connector-name img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
}


/* =========================================================
   STØRRELSESGUIDE – FALLSELER
   ========================================================= */

.cp-size-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.cp-size-image {
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: var(--cp-white);
}

.cp-size-image img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}

.cp-size-table {
  display: grid;
  grid-template-columns: 90px 1fr;
  overflow: hidden;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
}

.cp-size-table div {
  padding: 12px 15px;
  border-bottom: 1px solid var(--cp-line);
}

.cp-size-table div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.cp-size-table .cp-size-key {
  background: var(--cp-soft);
  font-weight: 600;
  text-align: center;
}


/* =========================================================
   VARIANTTABELL
   Brukes f.eks. CR250-HV
   ========================================================= */

.cp-variant-table {
  width: 100%;
  border-collapse: collapse;
}

.cp-variant-table th,
.cp-variant-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--cp-line);
  text-align: left;
  vertical-align: top;
}

.cp-variant-table thead th {
  background: var(--cp-soft);
  font-weight: 600;
}

.cp-variant-table tbody tr:last-child td {
  border-bottom: 0;
}


/* =========================================================
   WIRELENGDER / VARIANT-"CHIPS"
   Brukes f.eks. IKAR HWPS
   ========================================================= */

.cp-length-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.cp-length-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 9px 12px;
  border: 1px solid var(--cp-line);
  border-radius: 999px;
  background: var(--cp-soft);
  font-weight: 600;
}


/* =========================================================
   RELATERTE PRODUKTER
   ========================================================= */

.cp-related-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--cp-green);
}

.cp-related-header .cp-section-heading {
  margin: 0;
  border: 0;
}

.cp-related-all {
  margin-bottom: 10px;
  color: var(--cp-green-dark);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}

.cp-related-all:hover {
  text-decoration: underline;
}

.cp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cp-related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  background: var(--cp-white);
  overflow: hidden;
  text-decoration: none;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

.cp-related-card:hover {
  transform: translateY(-2px);
  border-color: #bbb;
  box-shadow: 0 5px 16px rgba(0,0,0,.08);
}

.cp-related-image {
  aspect-ratio: 4 / 3;
  padding: 12px;
  background: var(--cp-white);
}

.cp-related-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cp-related-name {
  padding: 11px 12px 14px;
  border-top: 1px solid var(--cp-line);
  font-size: .92rem;
  line-height: 1.35;
  font-weight: 600;
}


/* =========================================================
   DISKRET PRIS NEDERST
   ========================================================= */

.cp-price-discreet {
  margin-top: 34px;
  padding-top: 15px;
  border-top: 1px solid var(--cp-line);
  color: var(--cp-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.cp-price-discreet .prisboks {
  font-size: .86rem !important;
}

.cp-price-discreet .pris-avslutning {
  margin-top: 3px;
}


/* =========================================================
   SKAFFEVARE – UTEN ÅPEN PRIS
   ========================================================= */

.cp-special-order {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  background: var(--cp-soft);
  font-size: .95rem;
  line-height: 1.5;
}

.cp-special-order strong {
  color: var(--cp-green-dark);
}


/* =========================================================
   FANCYBOX – CLASSIC THUMBS 4:3
   ========================================================= */

.f-thumbs__slide {
  width: 96px;
  height: 72px;
}

.f-thumbs__slide__button {
  width: 96px;
  height: 72px;
}

.f-thumbs__slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================================
   RESPONSIVE – TABLET
   ========================================================= */

@media (max-width: 900px) {

  #p7HMY_2 {
    padding: 18px 0 28px;
  }

  .cp-product-page {
    width: calc(100% - 20px);
    padding: 20px 15px 34px;
    border-radius: 10px;
  }

  .cp-product-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cp-product-summary {
    padding: 20px;
  }

  .cp-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   RESPONSIVE – TEKNISKE KORT
   ========================================================= */

@media (max-width: 760px) {

  .cp-detail-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   RESPONSIVE – MOBIL
   ========================================================= */

@media (max-width: 560px) {

  .cp-key-facts,
  .cp-key-facts--2,
  .cp-key-facts--3,
  .cp-key-facts--4 {
    grid-template-columns: 1fr;
  }

  .cp-fact {
    min-height: 0;
    display: grid;
    grid-template-columns: 68px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    text-align: left;
    align-items: center;
  }

  .cp-fact img {
    grid-row: 1 / 3;
    margin: 0 auto;
  }

  .cp-size-grid {
    grid-template-columns: 1fr;
  }

  .cp-specs th,
  .cp-specs td {
    padding: 10px 11px;
  }

  .cp-specs th {
    width: 44%;
  }

  .cp-related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cp-related-name {
    font-size: .84rem;
  }

}
