@import "../snippets/product.css";



/* PRODUCT MAIN */

#product_images {
  --span: 6;
}
#product_details {
  --span: 4;
}
.product .column.filler {

}





/* PRODUCT STOCK INFO */

#product_stock_list {
  list-style: none;
  color: var(--color-text-toned);
}
#product_stock_list li + li {
  margin-top: .2em;
}
#product_in_stock .indicator {
  color: rgb(255, 135, 88);
  width: 1em;
  display: inline-block;
}
#product_in_stock .indicator.stocked {
  color: rgb(0, 212, 0);
}
#product_stock_list .icon {
  width: 1em;
  height: 1em;
  margin-bottom: -.15em;
  display: inline-block;
  box-sizing: border-box;
}
#product_stock_list .icon.star {
  padding-left: .12em;
}

.error {
  display: none;
}





/* ACCORDION */

#product_accordion {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: var(--light-border);
  margin-bottom: 3rem;
}
.product_accordion_row {
  border-top: var(--light-border);
  padding: 0 2rem;
}
.product_accordion_row_header {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.product_accordion_row_plus:after {
  content: '-';
  font-weight: 200;
  font-size: 2.5em;
  color: var(--color-h2);
  line-height: var(--line-height-h3);
}
.product_accordion_row.expanded .product_accordion_row_plus:after {
  content: '+';
}
.product_accordion_row.expanded .product_accordion_row_body {
  display: block;
}
.product_accordion_row_body {
  padding-bottom: 2rem;
  display: none;
}
.product_accordion_row_title {
  color: var(--color);
  font-size: var(--font-size-h3);
  font-weight: 550;
}

/* CROSS SELLING */

#crossselling_wrapper {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  margin-bottom: 3rem;
}
#crossselling {
  margin-top: 1rem;
  overflow-x: scroll;
  overflow-y: hidden;
  display: flex;
  align-items: stretch;
}
#crossselling .product_card {
  width: 20rem;
  flex-shrink: 0;
  flex-grow: 0;
  margin-top: 0;
}
#crossselling .product_card + .product_card {
  margin-left: var(--site-padding);
}
#crossselling_wrapper.has_many_products:after, #crossselling_wrapper.has_many_products:before {
  position: absolute;
  content: '←◯';
  width: 3rem;
  top: 3rem;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(-90deg, transparent, rgba(255,255,255,.8));
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  text-align: center;
  letter-spacing: -120%;
}
#crossselling_wrapper.has_many_products:before {
  left: unset;
  content: '→◯';
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8));
}






/* PERSONS */

#shop_persons {
  color: white;
  display: flex;
  max-height: 35rem;
  min-height: 20rem;
}
#shop_persons h3 {
  margin-bottom: 1em;
}
#shop_persons_left {
  background-color: var(--color);
  border-top-left-radius: var(--regular-border-radius);
  border-bottom-left-radius: var(--regular-border-radius);
  display: flex;
  padding-top: 2em;
  flex: 1;
  align-items: center;
}
#shop_persons_right {
  background-color: var(--color);
  border-top-right-radius: var(--regular-border-radius);
  border-bottom-right-radius: var(--regular-border-radius);
  flex: 1;
  flex-basis: 10%;
}
#shop_persons_left_inner {
  margin: 0 auto;
  padding-right: 3rem;
}
.shop_persons_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.shop_person {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
#shop_persons_name {
  display: block;
}
#shop_persons .icon {
  vertical-align: bottom;
  margin-right: .5em;
}
.shop_persons_portrait {
  width: 10rem;
  margin-right: var(--block-margin-top);
}
.shop_persons_role {
  font-size: var(--font-size-small);
}
.shop_persons_phone {
  margin-top: 1em;
}
.shop_persons_email {
  margin-top: 1em;
}
#shop_persons_image {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  height: 100%;
}


@media (max-width: 1280px) {

  .product_accordion_row {
    padding: 0;
  }
  #shop_persons_right {
    flex-basis: 0;
  }

}

@media (max-width: 1100px) {

  #product_details {
    --span: 6;
  }
  .product .column.filler {
    display: none;
  }
  #shop_persons_left {
    flex-basis: 10%;
  }

}

@media (max-width: 900px) {

  #crossselling .product_card {
    width: 16rem;
  }
  #crossselling .product_card_image_wrapper {
    height: 12rem;
  }
  #shop_persons {
    max-height: unset;
  }
  #shop_persons_left {
    border-top-right-radius: var(--regular-border-radius);
    border-bottom-right-radius: var(--regular-border-radius);
  }
  #shop_persons_left_inner {
    padding: 0;
  }
  #shop_persons_right {
    display: none;
  }

}

@media (max-width: 600px) {

  .shop_person {
    flex-direction: column;
  }
  .shop_persons_phone, .shop_persons_email {
    margin-top: .2em;
  }

}
