/* One difficulty scale in the catalogue cards, filters and partition details. */
.cc-difficulty-meter {
  display: inline-flex;
  gap: .22rem;
  align-items: center;
  white-space: nowrap;
}

.cc-difficulty-meter__dot {
  display: block;
  width: .5rem;
  height: .5rem;
  flex: 0 0 .5rem;
  background: #d4dddf;
  border-radius: 50%;
}

.cc-difficulty-meter__dot.is-active {
  background: #757575;
}

.cc-score-level .cc-difficulty-meter__dot {
  width: .4rem;
  height: .4rem;
  flex-basis: .4rem;
}

.cc-catalogue-filter-panel [id^="filter_values_container_Baremededificulte_2"] label {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  min-height: 1.25rem;
  color: #4c4c4c;
  font-weight: 700;
}

.cc-score-product-layout .cc-difficulty-readout {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  min-height: 1.25rem;
  color: #202020;
}

.cc-difficulty-name {
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.3;
}

.cc-score-card .cc-score-level {
  display: inline-flex;
  gap: .35rem;
}

.cc-score-product-layout #hikashop_product_right_part.hikashop_product_right_part {
  min-height: 0;
  align-self: center;
  justify-content: flex-start;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(155deg, #fff 45%, #fbf9fd);
  box-shadow: 0 .6rem 1.8rem rgba(69, 69, 69, .055);
}

.cc-score-product-layout #hikashop_product_right_part > br,
.cc-score-product-layout #hikashop_product_right_part .hikashop_product_custom_info_main h4 {
  display: none;
}

.cc-score-specification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dcf1f5;
}

.cc-score-specification-header h2 {
  margin: 0;
  color: #202020;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.cc-score-product-layout .cc-score-product-difficulty {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
}

.cc-score-product-difficulty__label {
  color: #878787;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cc-score-product-layout #hikashop_product_right_part .hikashop_product_custom_info_main_table tbody {
  gap: .65rem;
}

.cc-score-product-layout #hikashop_product_right_part .hikashop_product_custom_info_main_table tr {
  padding: .8rem .85rem;
  background: #f3fafb;
  border: 1px solid #e3f4f7;
  border-radius: .7rem;
}

.cc-score-product-layout #hikashop_product_right_part .hikashop_product_custom_name,
.cc-score-product-layout #hikashop_product_right_part .hikashop_product_custom_name label {
  color: #858585;
  font-size: .6rem;
}

.cc-score-product-layout #hikashop_product_right_part .hikashop_product_custom_value {
  margin-top: .3rem;
  color: #4c4c4c;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* The specification content sets the height of both desktop tiles.
   The preview fits that height rather than enlarging the whole row. */
@media (min-width: 992px) {
  .cc-score-product-layout > div.hk-row-fluid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
  }

  .cc-score-product-layout #hikashop_product_right_part.hikashop_product_right_part {
    align-self: stretch;
  }

  .cc-score-product-layout #hikashop_product_left_part.hikashop_product_left_part {
    position: relative;
    min-height: 0;
    align-self: stretch;
    padding: 0;
  }

  .cc-score-product-layout #hikashop_product_left_part #hikashop_product_image_main {
    position: absolute;
    inset: .8rem;
    display: flex;
    flex-direction: column;
    width: auto;
    padding: .45rem;
  }

  .cc-score-product-layout #hikashop_product_left_part #hikashop_main_image_div {
    container-type: size;
    flex: 1;
    min-height: 0;
  }

  .cc-score-product-layout #hikashop_product_left_part .hikashop_product_main_image_thumb,
  .cc-score-product-layout #hikashop_product_left_part .hikashop_product_main_image,
  .cc-score-product-layout #hikashop_product_left_part .hikashop_product_main_image_subdiv {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .cc-score-product-layout #hikashop_product_left_part #hikashop_main_image {
    width: auto !important;
    height: min(100cqh, calc(100cqw * 297 / 210)) !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .cc-score-product-layout #hikashop_small_image_div:empty {
    display: none;
  }
}

/* Without forced square thumbnails, HikaShop sets an inline preview height.
   On stacked layouts the sheet itself, not that desktop-sized box, sets it. */
@media (max-width: 991.98px) {
  .cc-score-product-layout #hikashop_main_image_div,
  .cc-score-product-layout .hikashop_product_main_image_thumb,
  .cc-score-product-layout .hikashop_product_main_image,
  .cc-score-product-layout .hikashop_product_main_image_subdiv {
    height: auto !important;
    min-height: 0;
  }

  .cc-score-product-layout .hikashop_product_main_image_subdiv > a {
    display: block;
  }

  .cc-score-product-layout #hikashop_main_image {
    display: block !important;
    margin-inline: auto !important;
  }

  .cc-score-product-layout #hikashop_small_image_div:empty {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .cc-score-product-layout #hikashop_product_right_part.hikashop_product_right_part {
    padding: 1.1rem;
  }

  .cc-score-specification-header {
    gap: .65rem;
    margin-bottom: 1rem;
  }

  .cc-score-specification-header h2 {
    font-size: .95rem;
  }

  .cc-score-specification-header .cc-difficulty-readout {
    flex-direction: column;
    align-items: flex-end;
    gap: .3rem;
  }

  .cc-score-product-layout #hikashop_product_right_part .hikashop_product_custom_info_main_table tr {
    padding: .65rem .75rem;
  }
}

.cc-catalogue-filter-panel [id^="filter_values_container_Baremededificulte_2"] label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .4rem;
}

/* Keep the five-dot readout legible on very narrow phones. */
@media (max-width: 360px) {
  .cc-score-specification-header {
    gap: .4rem;
  }

  .cc-score-specification-header h2 {
    font-size: .85rem;
  }

  .cc-score-specification-header .cc-difficulty-readout {
    gap: .4rem;
  }

  .cc-score-specification-header .cc-difficulty-name {
    font-size: .7rem;
  }

  .cc-score-specification-header .cc-score-product-difficulty__label {
    font-size: .56rem;
  }

  body.itemid-238.layout-listing .cc-score-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body.itemid-238.layout-listing .cc-score-card__preview {
    width: min(100%, 8rem);
    justify-self: center;
    padding-top: .8rem;
  }
}
