/****** GLOBAL ******/
body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  height: 100%;
  margin: 0;
}

h1, h2, h3 {
  font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
  font-weight: 300;
}
h1, h2 {
  font-size: 28px;
}

ul {
  padding-left: 0;
}

li {
  list-style: none;
}

a {
  color: #aaa;
  text-decoration: none;
}

nav {
  font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
}

.desktop {
  display: none;
}

/****** HEADER ******/
#panel header {
  align-items: center;
  border-bottom: 1px solid #000;
  display: flex;
  font-size: 1.2em;
  height: 100px;
  justify-content: space-between;
  padding: 0 1rem;
}

#panel header a {
  color: #000;
}

#panel header img {
  height: 85px;
}

#panel .menu-toggle {
  height: 25px;
}

#panel .cart {
  height: 33px;
}

.cart-recap {
  background-color: #eee;
  display: flex;
  justify-content: space-around;
  padding: 20px 0px;
  width: 100%;
}

.payment-recap-item {
  align-items: center;
  border-bottom: 1px solid #ddd;
  display: flex;
  padding-bottom: 10px;
  padding-left: 10px;
  width: 100%;
}

.card-icons {
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

.card-icons > img {
  margin: 0 5px;
}

.payment-recap-item-center {
  padding: 10px;
}

.payment-recap-item-end {
  border-bottom: none;
  padding: 10px 0 0 10px;
}

.payment-recap {
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 440px;
  width: 100%;
}

.recap-cart {
  display: flex;
  justify-content: center;
  margin: auto;
  margin-top: 20px;
  width: 90%;
}

#recap-coupon.hidden {
  display: none;
}

.recap-items, .recap-subtotal, .recap-shipping, .recap-total, #recap-coupon {
  display: flex;
  align-items: center;
}

.cart-link {
  position: relative;
}

.hidden {
  display: none;
}

.cart-item-count.hidden {
  display: none;
}

.cart-item-count.cart-item-count-big {
  font-size: 11px;
}

.cart-item-count {
  background-color: #71cc98;
  border-radius: 10px;
  color: #fff;
  display: inline-block;
  font-family: helvetica, sans-serif;
  font-size: 14px;
  height: 20px;
  line-height: 20px;
  position: absolute;
  left: -5px;
  bottom: -3px;
  text-align: center;
  width: 20px;
}

.cat_bottom {
  border-top: 1px solid #000;
  display: flex;
  flex-direction: column-reverse;
  margin-top: 2rem;
  padding-top: 2rem;
}

.cat_bottom_txt {
  background-color: #3D5DA8;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
  line-height: 25px;
  justify-content: center;
  padding: 2rem 10%;
  margin-right: 2rem;
  text-align: justify;
  width: 80%;
}

.cat_bottom_txt > h3 {
  font-size: 24px;
  font-weight: bold;
}

.cat_bottom_img {
  width: 100%;
}

.cat_bottom_img > img {
  width: 100%;
}

/****** PRODUCT ******/
.head-img img {
  width: 100%;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.category-grid > div {
  position: relative;
  margin: 0;
  width: 100%;
}

.category-grid > div img {
  width: 100%;
}

.category-grid .inside{
  align-items: center;
  background-color: rgba(255, 255, 255, 0.65);
  bottom: 10%;
  color: #000;
  display: flex;
  height: 55px;
  line-height: 55px;
  flex-direction: column;
  font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
  font-size: 26px;
  left: 0%;
  position: absolute;
  width: 60%;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin: auto;
  max-width: 1000px;
}

.product-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  width: 100%;
}

.product-card a {
  align-items: center;
  color: #000;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 14px;
  font-family: sans-serif;
  font-weight: 400;
  margin-top: 1.5rem;
  text-align: center;
  width: 100%;
}

.product-page .product-name {
  font-size: 24px;
}

.product-price {
  font-size: 20px;
  margin: 0.5rem 0 1rem 0;
}
/****************** product view *****************/
.product-type-price {
  font-size: 14px;
  font-family: sans-serif;
  font-weight: 400;
  margin-top: 1rem;
}

.preview {
  width: 100%;
}

.preview img {
  width: 100%;
}

.outofstock {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding: 20px 10%;
}

.outofstock * {
  width: 80%;
}

.product-choice {
  display: flex;
  flex-wrap: wrap;
  min-width: 40%;
}

.img-products {
  background: none;
  border: none;
  margin: 0;
  position: relative;
  width: 33.3%
}

.preview-product-name {
  background-color: rgb(255, 255, 255);
  background-color: rgba(255, 255, 255, 0.6);
  bottom: 26%;
  font-size: 16px;
  height: 30px;
  left: 13px;
  line-height: 30px;
  position: absolute;
  width: calc(100% - 16px);
}

.img-products > img {
  padding: 5px;
  width: 100%;
}

.img-products.selected > img {
  border: 5px solid #71cc98;
  padding: 0;
}

.img-products.selected div {
  font-weight: bold;
}
/****************** END product view *****************/

.home .top_img img {
  width: 100%;
}

.home .top_img {
  position: relative;
}

.home .top_img .inside{
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans Condensed", Helvetica, Arial, sans-serif;
  font-size: 26px;
  left: 50%;
  position: absolute;
  top: 15px;
  transform: translateX(-50%);
}

.home .top_img .inside img{
  max-width: 400px;
}

.home .top_txt {
  display: flex;
  flex-direction: column-reverse;
  border-bottom: 1px solid #000;
}

.home .top_txt > div {
  margin: 15px;
  text-align: center;
}

.home .top_txt > div > p{
  text-align: justify;
}

.home .top_txt img {
  width: 100%;
}

.side {
  margin: 20px;
  text-align: justify;
}

.sticky-add-to-cart-btn {
  background-color: #eee;
  border: 1px solid #999;
  height: 55px;
  line-height: 45px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  position: sticky;
  top: 0%;
  z-index: 5;
}

.add-to-cart-btn {
  background-color: #eee;
  border: 1px solid #999;
  height: 45px;
  line-height: 45px;
  margin-top: 1rem;
  padding: 0 2rem;
  text-align: center;
  text-transform: uppercase;
}

.our-products-title {
  text-align: center;
  text-transform: uppercase;
}
.top_category {
  align-items: center;
  border-bottom: 1px solid #000;
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-bottom: 2rem;
}
.top_cat_img {
  width: 100%;
}
.top_cat_img > img {
  width: 100%;
}
.top_cat_txt {
  font-size: 14px;
  line-height: 35px;
  margin: auto;
  text-align: justify;
  width: 90%;
}
.top_cat_txt h1 {
  text-align: center;
  text-transform: uppercase;
}

.categories {
  color: #aaa;
  display: flex;
  flex-wrap: wrap;
  font-size: 20px;
  justify-content: center;
}

.categories > div {
  border-bottom: 1px solid #aaa;
  padding: 10px 20px;
  text-transform: uppercase;
}

.categories > div.selected {
  border-bottom: 2px solid #333;
}

.categories > div.selected a {
  color: #333;
  font-weight: bold;
}

/****** FOOTER ******/
.footer-instagram {
  border-bottom: 1px solid #000;
  border-top: 1px solid #000;
  height: 500px;
  margin-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}
.footer-instagram iframe {
  height: 450px;
  width: 90%;
  margin: 0 5%;
}

.bottom-footer {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

/****** MENU ******/
.submenu {
  margin-left: 2rem;
}

nav#menu ul {
  margin-left: 1.5rem;
}

nav#menu > header > ul:first-child {
  margin-top: 3rem;
}

nav#menu li{
  font-size: 1.15em;
  margin-top: 1rem;
}

nav#menu li{
  font-size: 1em;
}

#panel header .menu-spacer {
  width: 12rem;
}

#panel:before {
  content: '';
  display: block;
  background-color: rgba(0,0,0,0);
  transition: background-color 0.5s ease-in-out;
}

#panel.panel-open:before {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  background-color: rgba(0,0,0,.5);
  z-index: 99;
}

.no-products {
  text-align: center;
}

.cart-table {
  width: 100%;
}

.cart-table tbody tr {  /* TODO fix for desktop */
  border-bottom: 1px solid #ccc;
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  min-height: 180px;
}

.cart-table tbody tr td {
  margin: auto;
}

.text-align-left {
  text-align: left;
}

.text-align-right {
  text-align: right;
}

.subtotal {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  padding: 20px 40px 0 0;
  width: 80%;
}

.subtotal-title {
  font-size: 20px;
  font-weight: bold;
}

.order-btn-container {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.order-btn {
  background-color: #f7f7f7;
  border: 1px solid #e2e2e2;
  color: #4a4a4a;
  height: 32px;
  line-height: 32px;
  margin-top: 20px;
  padding: 0 20px;
  text-align: center;
  min-width: 150px;
}

.input-block {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.input-block .error-msg {
  color: red;
  display: none;
  font-size: 12px;
}

.input-block.error .error-msg {
  display: block;
}

.input-block.error > input, .input-block.error > select {
  border-color: red;
}

.input-block > input {
  height: 40px;
}

.input-block > select {
  background-color: #fff;
  border-radius: 5px;
  height: 40px;
}

.checkout-form {
  padding: 20px;
}

.qty-txt {
  margin: 0 15px;
}

.qty-btn {
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 15px;
  height: 25px;
  width: 25px;
}

.coord {
  margin-left: 30px;
}

thead {
  border-bottom: 1px solid #eee;
}

tr {
  height: 50px;
}

td {
  min-width: 50px;
  padding: 0 10px;
  text-align: right;
}

td:nth-child(1) {
  text-align: left;
}

.order_tracking {
  padding: 20px;
}

.blog-page {
  margin: 30px;
  text-align: justify;
}

.pagination {
  display: flex;
  justify-content: space-between;
}

.blog-abstract {
  border-bottom: 1px solid #ccc;
  margin: 30px 30px 0 30px;
  padding-bottom: 30px;
}

.blog-abstract a {
  align-items: center;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.blog-abstract .abstract_text {
  text-align: justify;
}

.blog-abstract .cover_img {
  width: 100%;
}

.blog-abstract .cover_img img {
  width: 100%;
}

.disabled {
  color: #bbb;
}

#contact-form {
  align-items: center;
  display: flex;
  flex-direction: column;
}

#contact-form fieldset {
  border: none;
  max-width: 700px;
}

#contact-form fieldset > * {
  width: 100%;
}

#contact-form button {
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  height: 50px;
  width: 150px;
}

/****** MENU ******/
.slideout-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 256px;
  min-height: 100vh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  z-index: 0;
  display: none;
}

.slideout-menu-left {
  left: 0;
}

.slideout-menu-right {
  right: 0;
}

.slideout-panel {
  position: relative;
  z-index: 1;
  will-change: transform;
  background-color: #FFF; /* A background-color is required */
  min-height: 100vh;
}

.slideout-open,
.slideout-open body,
.slideout-open .slideout-panel {
  overflow: hidden;
}

.slideout-open .slideout-menu {
  display: block;
}

/* Addr suggest */
.input-block {
  position: relative;
}
.suggestions {
  background-color: #fff;
  border: 1px solid #444;
  top: 65px;
  position: absolute;
  width: 100%;
  z-index: 3;
}
.suggestion {
  border-bottom: 1px solid #eee;
  cursor: pointer;
  padding: 10px 20px;
}
.suggestion .suggestion-ctx {
  font-size: 0.9em;
  color: #888;
}
/* Addr suggest */

/****** TABS ******/
.tabs {
  display: flex;
  flex-wrap: wrap;
}
.tabs label {
  order: 1;
  border: 1px solid #eee;
  border-bottom: 0;
  display: block;
  padding: 1rem 2rem;
  margin-right: 0.2rem;
  cursor: pointer;
  background: #f4f4f4;
  font-weight: bold;
  transition: background ease 0.2s;
}
.tabs .tab {
  order: 99;
  border: 1px solid #eee;
  flex-grow: 1;
  width: 100%;
  display: none;
  padding: 1rem;
  background: #fff;
}
.tabs input[type="radio"] {
  display: none;
}
.tabs input[type="radio"]:checked + label {
  background: #fff;
}
.tabs input[type="radio"]:checked + label + .tab {
  display: block;
}

.invalid {
  border: 2px solid red;
  border-radius: 3px;
}

@media (max-width: 45em) {
  .tabs .tab,
  .tabs label {
    order: initial;
  }
  .tabs label {
    width: 100%;
    margin-right: 0;
    margin-top: 0.2rem;
  }
}

/****** DESKTOP ******/
@media screen and (min-width: 780px) {
  body {
    display: flex;
    justify-content: space-around;
  }

  main {
    width: 100%;
  }

  .mobile {
    display: none;
  }

  .desktop {
    display: flex;
  }

  .toggle-button {
    display: none;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-content {
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    display: none;
    padding: 10px 20px;
    position: absolute;
    width: 200px;
    z-index: 3;
  }

  .dropdown-content ul {
    margin: 0;
  }

  .dropdown-content li {
    padding: 10px 0;
  }

  .dropdown-content li li {
    padding: 10px 20px;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
  }

  nav {
    display: flex;
    flex-direction: row;
  }

  nav > * {
    margin-left: 4rem;
    min-width: 100px;
    height: 50px;
  }

  .categories {
    font-size: 23px;
  }

  .category-grid > div {
    position: relative;
    margin-left: 0.33%;
    width: 33%;
  }

  .top_cat_img {
    width: 65%;
  }

  .top_cat_txt {
    width: 32%;
  }

  .first-level {
    line-height: 50px;
  }

  .first-level > *{
    line-height: 30px;
  }

  .cat_bottom {
    flex-direction: row;
  }

  .cat_bottom_img {
    width: 55%;
  }

  .cat_bottom_txt {
    padding: 2rem 5rem;
    width: 45%;
  }

  .bottom-footer {
    flex-direction: row-reverse;
    justify-content: space-between;
    padding: 1rem 3rem;
  }

  .bottom-footer > div {
    width: 25%;
  }

  .home .top_txt {
    flex-direction: row;
    border-bottom: 1px solid #000;
  }

  .home .top_txt div {
    margin: 20px 10% 20px 5%;
    width: 35%;
  }

  .home .top_txt img {
    margin: 20px 5%;
    width: 40%;
  }

  .home .top_img .inside{
    top: 50px;
  }

  .slider {
    display: block;
    width: 49%;
  }

  .side {
    padding: 0 20px;
    text-align: justify;
    margin: 0 20px;
    max-width: 50%;
    min-width: 33%;
  }

  .product-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0;
  }

  .product-page .product-name {
    margin-top: 0;
  }

  .product-head {
    display: flex;
  }

  .head-img {
    min-width: 60%;
  }

  .preview {
    min-width: 40%;
    padding: 5%;
  }

  .product-choice {
    margin-top: 5%;
  }

  .img-products {
    min-height: 160px;
    width: 33%;
  }

  .product-card {
    width: 33.3%;
  }

  .product-views {
    display: flex;
    width: 100%;
  }

  .slider .splide__arrow--next {
    left: 46.5%;
    right: unset;
  }

  .slider .splide__arrow {
    top: 44.5%;
  }

  .thumbs {
    margin-top: 10px;
  }

  .half, .tier {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .half > div {
    width: 48%;
  }

  .tier > div {
    width: 32%;
  }

  .cart-form-container {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
  }

  .checkout-form {
    width: 60%;
  }

  .card-icons > img {
    margin: 0 15px;
  }

  .cart-recap-wide {
    display: flex;
    flex-direction: column;
    margin-right: 30px;
    width: 45%;
  }

  .recap-items {
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .recap-subtotal, .recap-shipping, .recap-total, #recap-coupon {
    justify-content: flex-end;
    width: 100%;
  }

  .recap-total {
    font-weight: bold;
  }

  .blog-abstract a {
    flex-direction: row;
  }

  .blog-abstract h2 {
    margin-top: 0;
  }

  .blog-abstract .cover_img {
    margin-right: 2%;
    width: 25%;
  }

  .blog-abstract .abstract_text {
    width: 73%;
  }

  .order_tracking {
    margin: auto;
    max-width: 1000px;
  }
}
