/* scope CSS? */
.items_wrap {
  width: 80%;
  margin: 0 auto;
}
.items_wrap h3 {
  font-size: 1em;
  padding: 0 .5em;
  font-weight: normal;
}
.items_listview {
  width: 100%;
  overflow: hidden !important;
  border: 1px solid #D5D5D5;
  background: white;
}
.items_listview li {
  float: left;
  width: 25%;
  list-style: none;
}
.items_listview li,
.items_listview li a {
  display: inline-block;
  border-width: 0px !important;
}
.items_listview li,
.items_listview a,
.items_listview li:hover,
.items_listview a:hover {
  background: white !important;
  color: #111 !important;
}
.items_listview li a.ui-btn {
  padding: .7em .5em !important;
  border-bottom-width: 1px;
  text-align: center;
}
.items_listview li a .img_container_items {
  display: block;
  margin: 0 auto 0 -50%;
  text-align: center;
  width: 200%;
}
.items_listview li a img {
  display: block;
  min-height: 15em;
  position: static !important;
  width: 100%;
  margin: 0 auto;
  max-height: 5em;
  max-width: none !important; /* override listview? */
  width: auto;
  color: #111 !important;
  font-size: .75em;
  text-align: center;
}
.items_listview li a .description_items {
  display: block;
  font-weight: normal;
  height: 4.5em;
  line-height: 1.25em;
  padding-top: .5em;
  white-space: normal;
  width: 100%;
  padding-bottom: 0;
  text-decoration: none;
}
/* we can safely use nth-child, because IE8- doesn't support corners anyway */

/* very first item always has top-left and bottom corners */
.items_listview li.ui-first-child:nth-child(4n+1),
.items_listview li.ui-first-child:nth-child(4n+1) a {
  -webkit-border-top-left-radius: inherit;
  border-top-left-radius: inherit;
  -webkit-border-bottom-left-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-border-top-right-radius: 0;
  border-top-right-radius: 0;
  -webkit-border-bottom-right-radius: inherit;
  border-bottom-right-radius: inherit;
}
/* if there are more than 4 items, bottom right corner need to be removed */
.items_listview li.ui-first-child:nth-last-child(n+4),
.items_listview li.ui-first-child:nth-last-child(n+4) a {
  -webkit-border-bottom-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* if there are less than 4 items, it should also have bottom right corners */
.items_listview li.ui-first-child,
.items_listview li.ui-first-child a {

}

/* last item gets bottom corners (if less than 4 items) */
.items_listview li.ui-last-child,
.items_listview li.ui-last-child a {
  -webkit-border-bottom-right-radius: inherit;
  border-bottom-right-radius: inherit;
}
/* very last item that is 4th item gets bottom corners */
.items_listview li.ui-last-child:nth-child(4n+4),
.items_listview li.ui-last-child:nth-child(4n+4) a {
  -webkit-border-bottom-left-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-border-top-left-radius: 0;
  border-top-left-radius: 0;
  -webkit-border-top-right-radius: 0;
  border-top-right-radius: 0;
  -webkit-border-bottom-right-radius: inherit;
  border-bottom-right-radius: inherit;
}
/* if there are only 4 items, it also gets top corners */
.items_listview li:nth-child(4),
.items_listview li:nth-child(4) a {
  -webkit-border-top-right-radius: inherit;
  border-top-right-radius: inherit;
}
/* if it's not a 4th item, it should not get bottom right corners */
.items_listview li.ui-last-child:not(:nth-child(4n+4)),
.items_listview li.ui-last-child:not(:nth-child(4n+4)) a {
  -webkit-border-bottom-right-radius: 0;
  border-bottom-right-radius: 0;
}

.items_listview .description_items {
  font-size: .75em;
  font-weight: normal;
}
.items_listview .description_items .rebate {
  color: red !important;
}
.items_show {
  clear: both;
  color: #111111 !important;
  display: inline-block;
  float: right;
  font-size: .75em;
  font-weight: normal !important;
  margin-left: auto;
  margin-right: auto;
  padding: .75em;
  text-decoration: none !important;
}
/* Responsive CSS */
@media (max-width: 45em) {
  .items_listview li a img {
    min-height: 9em;
  }
  .items_wrap h3 {
    font-size: .75em;
  }
  .items_show {
    font-size: .5em;
  }
}
@media (max-width: 40em) {
  .items_wrap {
    width: 100%;
  }
  .items_listview li a img {
    min-height: 8em;
  }
  .items_listview li a.ui-btn {
    padding: .5em .25em !important;
  }
}
@media (max-width: 30em) {
  .items_listview li a img {
    min-height: 7em;
  }
  .items_listview li a.ui-btn {
    padding: .5em .25em !important;
  }
  .items_listview li a .description_items {
    font-size: .5em;
    padding-bottom: .5em;
  }
}
@media (max-width: 20em) {
  .items_listview li {
    display: inline-block;
    min-width: 3.75em;
    padding: 0;
    width: 24%;
  }
  .items_listview li a.ui-btn {
    padding: 0.25em 0.1em !important;
  }
  .items_listview li a img {
    min-height: 5em;
  }
  .items_listview li a .description_items {
    font-size: .5em;
    padding-bottom: .5em;
  }
}


    /* UPPER boundaries "up to" */
    @media (max-width: 20em) {}     /* 320px */
    @media (max-width: 30em) {}     /* 480px */
    @media (max-width: 40em) {}     /* 640px */
    @media (max-width: 45em) {}     /* 720px */
    @media (max-width: 77.5em) {}   /* 1240px */

    /* LOWER boundaries "from" */
    @media (min-width: 20em) {}
    @media (min-width: 30em) {}
    @media (min-width: 40em) {}
    @media (min-width: 45em) {}
    @media (max-width: 77.5em) {}

    /* RANGES */
    @media (min-width: 20.01em) and (max-width: 30em) {}
    @media (min-width: 30.01em) and (max-width: 40em) {}
    @media (min-width: 40.01em) and (max-width: 45em) {}
    @media (min-width: 45.01em) and (max-width: 77.5em) {}

