/*!
* Iconic Pharmacy
* https://www.iconicpharmacy.co.th
* @license Copyright 2020, Iconic Pharmacy. All rights reserved.
* @author: atthaphon@dnaagency.co.th
*/


#highlight{
  max-width: 1680px;
  position: relative;
  margin: 0 auto;
  padding-bottom: 40px;
  overflow: hidden;
}

.content{
  max-width: 1280px;
  position: relative;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 60px;
}
.content h2{
  text-align: center;
  font-size: min(7vw,36px);
  font-family: 'promptmedium', 'NotoSansSC-Bold', 'amiribold', 'padaukbold', 'hanumanbold', 'NotoSansJP-Bold', 'open_sansbold';
  width: 100%;
  display: block;
  margin-bottom: 30px;
}
.view_all{
  float: right;
  margin-top: -50px;
  margin-right: 15px;
}
#banner_sub img{
  display: block;
  margin-bottom: 3%;
}
#banner_sub a:hover img{
  box-shadow: 5px 3px 12px #ccc;
}
#banner_sub.content{
  padding: 20px 5px 0px;
  font-size: min(1.8vw,14px);
}
#banner_sub .swiper-slide{
  padding: 10px;
  text-align: center;
}
#article .thumb{
  margin-bottom: 30px;
}
#article.content{
  padding: 0 5px 0 20px;
}
#article .thumb_content_holder{
  background-color: #f9f9f9;
  width: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}
#article .swiper-wrapper{
  /*padding-bottom: 40px;*/
}
#article .swiper-slide{
  padding-right: 15px;
  padding-bottom: 15px;
}
#article .thumb_content_holder:hover{
  box-shadow: 5px 3px 12px #ccc;
}
#article .thumb_content_holder img{
  max-width: 250px;
  display: inline-block;
  float: left;
  width: 39%;
}
#article .thumb_content_holder .thumb_content{
  display: inline-block;
  text-align: left;
  float: right;
  font-size: min(1.6vw, 18px);
  width: 57%;
  padding-right: 20px;
}
#article .thumb_content_holder b{
  color: #af976d;
  display: block;
  padding: 6% 0 5px;
  font-size: min(1.5vw, 18px);
}
#article .thumb_content_holder span{
  color: #333;
  padding: 4% 6%;
  border: 1px solid #ddd;
  display: block;
  width: fit-content;
  margin-top: 7%;
  font-family: 'promptbold', 'NotoSansSC-Black', 'amiribold', 'padaukbold', 'hanumanbold', 'NotoSansJP-Black', 'open_sansextrabold';
  font-size: min(1.2vw, 12px);
  cursor: pointer;
}
#article .thumb_content_holder span:hover{
  color: #fff;
  background-color: #3f98cc;
}
#article .thumb_content_holder:hover span{
  color: #fff;
  background-color: #3f98cc;
}
/*
.discount{
  padding-left: 5px;
  font-size: min(3vw, 16px);
  color: red;
  text-decoration: line-through;
}
.ribbon{
  width: 45px;
  height: 45px;
  position: absolute;
  right: 20px;
  top: 0;
  font-size: min(3vw, 12px);
  font-family: 'promptbold', 'NotoSansSC-Black', 'amiribold', 'padaukbold', 'hanumanbold', 'NotoSansJP-Black', 'open_sansextrabold';
  color: #fff;
  padding: 0;
  padding-top: 13px;
  background-image: url(../images/ribbon_hot.png);
  background-repeat: no-repeat;
  background-position: bottom;
}
.ribbon.hot{
  background-image: url(../images/ribbon_hot.png);
}
.ribbon.new{
  background-image: url(../images/ribbon_new.png);
}
.ribbon.discount{
  text-decoration: none;
  padding-top: 7px;
  font-size: min(2vw, 10px);
  background-image: url(../images/ribbon_discount.png);
}
.ribbon.discount i{
  font-size: min(3vw, 12px);
  display: block;
  padding: 0;
  margin: 0;
  font-style: normal;
}
.product .thumb .thumb_content_holder{
  border: 1px solid #ddd;
  margin-bottom: 15px;
}
.product .thumb .thumb_content{
  padding: 0 10px;
}
.product .thumb div{
  display: block;
  font-size: min(1.6vw, 18px);
  text-align: center;
  min-height: 100px;
}
.product .thumb div img{
  padding-bottom: 10px;
}
.product .thumb div b{
  display: block;
  font-weight: normal;
  font-family: 'promptmedium', 'NotoSansSC-Bold', 'amiribold', 'padaukbold', 'hanumanbold', 'NotoSansJP-Bold', 'open_sansbold';
  font-size: min(2.4vw, 22px);
  padding: 5px 10px 15px 10px;
}
.product .thumb div .buy{
  display: inline-block;
  width: 50%;
  font-family: 'promptbold', 'NotoSansSC-Black', 'amiribold', 'padaukbold', 'hanumanbold', 'NotoSansJP-Black', 'open_sansextrabold';
  font-size: min(1.2vw, 12px);
  padding: 15px 0;
  border-top: 1px solid #ddd;
  cursor: pointer;
  padding-left: 15%;
  float: left;
  background-image: url(../images/ic_cart.png);
  background-size: 13%;
  background-position: 12% 45%;
  background-repeat: no-repeat;
  text-align: left;
}
.product .thumb div .buy:hover{
  background-image: url(../images/ic_cart_over.png);
}
.product .thumb .thumb_content_holder:hover{
  box-shadow: 5px 3px 15px #ccc;
  cursor: pointer;
}
.product .thumb .thumb_content_holder:hover .buy{
  color: #fff;
  background-color: #3f98cc;
  background-image: url(../images/ic_cart_over.png);
}
.product .thumb div .view{
  display: inline-block;
  width: 50%;
  font-family: 'promptbold', 'NotoSansSC-Black', 'amiribold', 'padaukbold', 'hanumanbold', 'NotoSansJP-Black', 'open_sansextrabold';
  font-size: min(1.2vw, 12px);
  padding: 15px 0;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  cursor: pointer;
}

.product .thumb div .buy:hover, .product .thumb div .view:hover{
  color: #fff;
  background-color: #3f98cc;
}
.buy_fix .buy {
  color: #000!important;
  background-color: #fff!important;
  background-image: url(../images/ic_cart.png)!important;
}
*/
#category.content{
  max-width: 1260px;
  padding: 0 40px;
}
#category.content .content{
  padding: 30px;
}
#category.content h2{
  margin-bottom: 0;
}
#category .swiper-slide{
  font-size: min(1.8vw, 12px);
  padding: 10px;
  text-align: center;
}

#category .swiper-slide span{
  max-width: 100px;
  display: block;
  margin: auto;
  padding: 10px;
  background-color: #f1f2f4;
  border-radius: 999px;
  margin-bottom: 10px;
}
#category .swiper-slide span:hover{
  background-color: #3f98cc;
}
#category .swiper-slide span:hover img{
  filter: grayscale(100%) brightness(1000%);
}
#category .swiper-slide span img{
  padding: 15px;
}
#category .swiper-button-next, #category .swiper-container-rtl .swiper-button-prev  {
  right: 10px;
  top: 50%;
}
#category .swiper-button-prev, #category .swiper-container-rtl .swiper-button-next {
  left: 10px;
  top: 50%;
}
#category .swiper-container-horizontal>.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction,#brand .swiper-container-horizontal>.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 0px;
}
#brand.content{
  max-width: 1260px;
  padding: 0 40px;
}
#brand.content .content{
  padding: 30px;
}
#brand.content h2{
  margin-bottom: 0;
}
#brand .swiper-slide{
  font-size: min(1.8vw, 12px);
  padding: 10px;
}
#brand .swiper-button-next, #brand .swiper-container-rtl .swiper-button-prev  {
  right: 10px;
  top: 55%;
}
#brand .swiper-button-prev, #brand .swiper-container-rtl .swiper-button-next {
  left: 10px;
  top: 55%;
}
/* fix break mobile */
.break_mobile {
  margin: 0;
}
@media only screen and (max-width: 1080px) {

}
@media only screen and (max-width: 900px) {
  .product .thumb div {
    min-height: 90px;
  }
}
@media only screen and (max-width: 768px) {
  .content {
    margin-bottom: 40px;
  }
  #banner_sub.content {
    padding: 20px 5px 10px;
    font-size: min(3vw,12px);
  }
  #article.content {
    padding: 0;
    padding-left: 15px;
    /*padding-right: 15px;*/
  }
  #article .thumb_content_holder {
    margin-bottom: 0;
  }
  #article .thumb_content_holder img {
    max-width: 400px;
    width: 100%;
  }
  #article .thumb_content_holder div b {
    font-size: min(2.5vw, 18px);
  }
  #article .thumb_content_holder div {
    width: 100%;
    padding: 0 3% 0% 5%;
    font-size: min(3.5vw, 24px);
    padding-bottom: 30px;
  }
  #article .thumb_content_holder div span {
    font-size: min(3.1vw, 14px);
    padding: 5% 10%;
  }
  #article .thumb_content_holder .thumb_content {
    width: 100%;
    padding-right: 20px;
    font-size: min(4.6vw, 16px);
  }
}
@media only screen and (max-width: 640px) {
  .content {
    margin-bottom: 40px;
  }
  #banner_sub.content {
    padding: 20px 5px 10px;
    font-size: min(3vw,12px);
  }
  /*
  #article.content {
    padding: 0;
    padding-left: 15px;
  }
  #article .thumb_content_holder {
    margin-bottom: 0;
  }
  #article .thumb_content_holder img {
    max-width: 400px;
    width: 100%;
  }
  #article .thumb_content_holder div b {
    font-size: min(2.5vw, 18px);
  }
  #article .thumb_content_holder div {
    width: 100%;
    padding: 0 3% 0% 5%;
    font-size: min(3.5vw, 24px);
    padding-bottom: 30px;
  }
  #article .thumb_content_holder div span {
    font-size: min(3.1vw, 14px);
    padding: 5% 10%;
  }
  #article .thumb_content_holder .thumb_content {
    width: 100%;
    padding-right: 20px;
    font-size: min(4.6vw, 16px);
  }
*/
/*
  .product .thumb div .buy,.product .thumb div .view {
    font-size: min(3.4vw, 14px);
    width: 100%;
    border-left: 0px;
  }
  .product .thumb div .buy{
    color: #fff;
    padding-left: 40%;
    background-color: #3f98cc;
    background-image: url(../images/ic_cart_over.png);
    background-size: 8%;
    background-position: 30% 45%;
  }
  .product .thumb div {
    font-size: min(4.6vw, 16px);
  }
  .product .thumb div b {
    font-size: min(4.4vw, 22px);
  }
  */
  #recommend, #product, #article.content{
    padding-top: 20px;
  }
  #category.content {
    padding: 0 20px;
    padding-top: 20px;
  }
  #category.content h2 {
    margin-bottom: 20px;
  }
  #category .swiper-slide{
    font-size: min(3.6vw, 16px);
    padding: 10px;
  }
  #category.content .content {
    padding: 0;
    padding-bottom: 20px;
  }

  #highlight{
    /*margin-top: 50px;*/
  }
  #brand.content {
    padding: 0;
  }
  #brand.content h2{
    padding-left: 20px;
    padding-top: 10px;
  }
  #brand.content .content {
    padding: 30px 0;
  }
  #brand .swiper-slide {
    padding: 5px;
  }
  #brand .swiper-button-next, #brand .swiper-container-rtl .swiper-button-prev  {
    top: 65%;
  }
  #brand .swiper-button-prev, #brand .swiper-container-rtl .swiper-button-next {
    top: 65%;
  }
  .content h2 {
    text-align: left;
    font-size: min(7vw,36px);
    margin-left: -7px;
    margin-right: -7px;
    margin-bottom: 20px;
  }
  .view_all {
    margin-top: -40px;
  }

  /* Fix Mouse Over on Mobile */
  #article .thumb_content_holder:hover{
    box-shadow: none;
  }
  .product .thumb .thumb_content_holder:hover{
    box-shadow: none;
  }
  .buy_fix .buy {
    color: #fff!important;
    background-color: #3f98cc!important;
    background-image: url(../images/ic_cart_over.png)!important;
  }
  .product .thumb div .buy:hover, .product .thumb div .view:hover{
    color: inherit;
    background-color: inherit;
  }
  #article .thumb_content_holder span:hover{
    color: inherit;
    background-color: inherit;
  }
  #article .thumb_content_holder:hover span{
    color: inherit;
    background-color: inherit;
  }
  #banner_sub a:hover img{
    box-shadow: none;
  }
}
@media only screen and (max-width: 375px) {
  .product .thumb div .buy {
    padding-left: 30%;
    background-size: 12%;
    background-position: 15% 45%;
  }
}
