@charset "UTF-8";

/* 最近見た商品のレコメンド */

section.recentlyViewed .product__lists {
  display: flex;
  flex-wrap: wrap;
}

section.recentlyViewed .recent-item {
  width: 22%;
  margin: 0 4% 4% 0;
}

section.recentlyViewed .recent-item:nth-child(4n) {
  margin: 0 0 4% 0;
}

section.recentlyViewed p.item-img {
  margin: 0 0 15px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

section.recentlyViewed h2.section__title {
  background-image: url(https://pet-dining.jp/pic-labo/responsive2_contents_coffee_icon.png), url(https://pet-dining.jp/images/responsive2_contents_line_1000.png);
  border: none;
  font-size: 1.5rem;
  font-weight: normal;
  padding: 25px 0 20px 55px !important;
  background-repeat: no-repeat, no-repeat;
  background-position: left 3px, bottom left;
  min-height: auto;
  margin: 0 0 40px;
  border: none;
  border: none !important;
}

section.recentlyViewed h2.section__title span {
  font-size: 75%;
  margin: 0 0 0 5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

section.recentlyViewed p.item-name {
  font-size: 14px;
  margin: 0 0 10px;
  line-height: 150%;
  color: #521e10;
}

section.recentlyViewed p.item-price {
  display: flex;
  align-items: center;
  line-height: 150%;
  font-size: 12px;
  justify-content: flex-end;
}

section.recentlyViewed .recentlyViewed__inner {
  width: 750px;
  margin: 0 auto;
  padding: 0 0;
}

section.recentlyViewed {
  padding: 0;
  margin: 40px 0;
}

section.recentlyViewed .selling_price {
  font-size: 12px;
  color: #e12233;
}

section.recentlyViewed .discount-icon {
  background: #d90000;
  color: #fff;
  font-size: 10px;
  padding: 0px 5px;
  margin: 0 0 0 5px;
  border-radius: 3px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

section.recentlyViewed span.selling_price.discount-price {
  color: #D90000;
}

#itemList_wrap+section section.recentlyViewed {
    margin: 0 0 40px;
}

#EST_SPS_cart section.recentlyViewed .recentlyViewed__inner {
    width: 1000px;
}

/* スマートフォン専用サイト(S-ホワイト調整) */

#page section.recentlyViewed .recentlyViewed__inner {
  width: auto;
  padding: 0 0 10px !important;
}

#page section.recentlyViewed {
  width: auto;
  margin: 0;
  padding: 0;
}

#page section.recentlyViewed h2.section__title {
    color: #FFFFFF;
    vertical-align: middle;
    background: url(https://pet-dining.jp/hpgen/smp/img/red_icon2.png) #573e21 no-repeat 4px 50%;
    font-weight: normal;
    display: block;
    font-size: 110% !important;
    margin: 0 0 10px;
    padding: 10px 0px 10px 37px !important;
    text-align: left;
    text-indent: -1em;
    width: auto;
}

#page section.recentlyViewed .recent-item {
  width: 48%;
  margin: 0 0 20px;
}

#page section.recentlyViewed .recent-item:nth-child(4n) {
  margin: 0 0 20px;
}

#page section.recentlyViewed .recent-item:last-child {
  margin: 0;
}

#page section.recentlyViewed .product__lists {
  width: 95%;
  margin: 0 auto;
  padding: 0;
}

#page section.recentlyViewed .recent-item a {
  color: #282828;
  text-decoration: none;
}

#page section.recentlyViewed p.item-name {
  margin: 0;
}

#page section.recentlyViewed p.item-price {
  margin: 0;
}

#page section.recentlyViewed .recent-item a {
  width: 100%;
}

@media screen and (max-width: 768px) {

  section.recentlyViewed .product__lists {
    padding: 0 0 10px 0;
    width: 100%;
    margin: 0;
    justify-content: space-between;
  }

  section.recentlyViewed .recent-item {
    width: auto;
    margin: 0 0 20px;
    width: 47%;
  }

  section.recentlyViewed .recent-item:nth-child(4n) {
    margin: 0 0 20px;
  }

  section.recentlyViewed .recent-item:last-child {
    margin: 0;
  }

  section.recentlyViewed .recent-item a {
    width: 100%;
    display: block;
  }
  section.recentlyViewed .recent-item a:hover p{
    background: unset;
  }

  section.recentlyViewed .recentlyViewed__inner {
    width: 100%;
    padding: 20px 0 0;
  }

  section.recentlyViewed {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  section.recentlyViewed h2.section__title {
    border: none  !important;
    font-weight: bold;
    padding: 25px 0 20px 55px  !important;
    background-repeat: no-repeat, no-repeat;
    background-position: left 3px, bottom left;
    min-height: auto;
    font-size: 1.4rem !important;
    margin: 0 0 20px;
  }

  section.recentlyViewed p.item-name {
    font-size: 13px !important;
    margin: 0 0 5px;
  }
  
  section.recentlyViewed p.item-img{
    margin: 0 0 10px;
}

  section.recentlyViewed .selling_price {
    font-size: 13px !important;
  }

}