@import '../../../../../assets/scss/variables';

.card-container {
  display: grid;
  grid-template-columns: min-content auto;
  grid-gap: 3vh;
  background-color: white;
  border-radius: 5px;
  margin-top: 10px;
  padding: 15px 20px;
  // Virtual Scroll Item Height is set to 220px based on maring/paddings => 220 - (10 + 2 * 15) = 180
  min-height: 140px;
  cursor: pointer;
}

.recommanded {
  background-color: $important-notification;
  color: white;
}

.product-icon {
  max-width: 69px;
  max-height: 111px;
  box-shadow: 0 0 18px 0 #b8b3b7;
  border-radius: 6px;
}

.icon-container {
  width: 69px;
  height: 111px;
  text-align: center;
}

.content-container {
  // display: grid;
  grid-template-columns: auto;
}

.author span {
  font-size: 16px;
  font-weight: bold;
  height: 21px;
  color: #1f466c;
}

.filter-icon {
  margin-top: 2px;
  margin-left: 4px;
  position: absolute;
}

.title-price {
  display: grid;
  grid-template-columns: auto max-content;
  grid-gap: 8vh;
}

.title span {
  font-size: 26px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 2px;

  &.multi-line {
    font-size: 22px;
    transition: font-size 0.05s ease-out;
    margin-bottom: 6px;
  }
}

.price span {
  font-size: 20px;
  font-weight: bold;
}

.title-grid {
  display: grid;
  grid-template-columns: min-content auto;
  grid-gap: 2vh;
}

.rec-icon-container {
  padding-top: 11px;
}

.currency {
  margin-left: 5px;
}

.type-stock {
  display: grid;
  grid-template-columns: auto max-content;
  // margin-top: 10px;
  align-items: baseline;
}

.avalability-text {
  font-family: 'Open Sans';
  font-size: 16px;
  font-weight: bold;
  line-height: 21px;
  color: #000000;
  max-width: 220px;
  text-align: end;
}

.type {
  display: grid;
  grid-template-columns: min-content auto;
  grid-gap: 1vh;
}

.type-text {
  font-size: 18px;
  font-weight: bold;
  height: 26px;
  overflow: hidden;
}

.available-stock {
  display: grid;
  grid-template-columns: auto min-content;
  grid-gap: 10px;
}

.store-availability {
  display: grid;
  grid-template-columns: 1fr auto;
}

.store-availability > :nth-child(2) {
  max-width: 185px;
}

.availability-image {
  padding-top: 3px;
}

.available-icon-container {
  padding-top: 2px;
}

.stock-icon {
  position: relative;
  top: 2px;
}

.available-text span {
  font-size: 18px;
  font-weight: bold;
  position: relative;
  right: 7px;
}

.stock span {
  font-size: 18px;
  font-weight: bold;
}

.publisher-order {
  display: grid;
  grid-template-columns: auto max-content;
  // margin-top: 5px;
}

.publisher-serial {
  display: grid;
  grid-template-columns: max-content min-content auto;

  // grid-gap: 1vh;
  position: relative;
}

.publisher-serial span {
  font-size: 16px;
}

.order {
  font-size: 16px;
  color: #557596;
  position: relative;
}

.type-icon-container {
  padding-top: 3px;
}

.publisher {
  max-width: 210px;
  margin-right: 10px;
}

.serial {
  margin-left: 10px;
}

.no-quantity-container {
  display: grid;
  grid-template-columns: auto min-content;
  width: 50px;
}

.volume-edition {
  grid-column: 1 / span 3;
  display: grid;
  grid-template-columns: auto max-content;
}

/* Portrait */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
  .title span {
    max-width: 370px;
  }
}

/* Landscape */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
  .title span {
    max-width: 810px;
  }
}

/* Portrait */
/* Declare the same value for min- and max-width to avoid colliding with desktops */
/* Source: https://medium.com/connect-the-dots/css-media-queries-for-ipad-pro-8cad10e17106*/
@media only screen and (min-device-width: 1024px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
  .title span {
    max-width: 565px;
  }
}

/* Landscape */
/* Declare the same value for min- and max-width to avoid colliding with desktops */
/* Source: https://medium.com/connect-the-dots/css-media-queries-for-ipad-pro-8cad10e17106*/
@media only screen and (min-device-width: 1366px) and (max-device-width: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
  .title span {
    max-width: 900px;
  }
}
