html {
    position: relative;
    min-height: 100%;
}
body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    left:0;
    height: 60px;
    background-color: #f5f5f5;
}

.container .text-muted {
    margin: 20px 0;
}


.table tr.vmiddle td{
    vertical-align: middle;
}


.product{
    border:1px solid #ddd;
    border-radius: 12px;
    margin: 5px;
    padding: 12px 15px 15px;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.product:hover{
 border-color:#aaa;
 box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.product.product-cart{
  background: #f5f5f5;
  border-color:#777;
  overflow: hidden;
}

.product .thumbnail{
  border-radius: 8px;
  overflow: hidden;
}

span.badget-cart{
  position: absolute;
    left: -16px;
    top: 0;
    background: #F00;
    color: #FFF;
    transform: rotate(315deg);
    font-size: 12px;
    padding: 3px;
    width: 50px;
}

.product h2{
    padding: 0;
}

.title-section{
	padding:0;
	margin:0;
	border-bottom:3px solid #333;
	font-size:25px;
	margin-bottom:30px;
}

.title-first{
	font-size:30px;
}

.box-product{
	padding-bottom:10px;
  clear: both;
}

.description-section{
	text-align:center;
}
.box-product h2{
  font-size:20px;
}


.stock{
  font-style: italic;
}

.m-0{
  margin:0 !important
}
.p-0{
  padding: 0 !important;
}

.d-flex{
  display: flex;
  justify-content:start;
  flex-wrap: wrap;
  align-items: stretch;
}

.d-flex > div{
  width:23%;
  flex:0 0 23%;
  display: flex;
  flex-direction: column;
  
}

.d-flex > div > .product-header{
  flex:0 0 85%;
}


@media (max-width:640px) {

  .title-first{
    text-align: center;
    font-size: 20px;
    padding:0 15px;
  }
  .title-section{
    text-align: center;
    border-bottom: 2px solid #333;
    margin:10px 0 20px
  }
  .d-flex{
    flex-direction:column;
  }

  .d-flex > div{
    width: 100%;
    flex: 0 0 100%;
  }

  /* Carrinho: em vez de rolar a tabela pro lado pra ver Preço/SubTotal/Excluir,
     cada linha vira um cartão empilhado, com o nome da coluna antes do valor. */
  .table-mobile-stack thead{
    display: none;
  }
  .table-mobile-stack,
  .table-mobile-stack tbody,
  .table-mobile-stack tfoot,
  .table-mobile-stack tr,
  .table-mobile-stack td{
    display: block;
    width: 100%;
  }
  .table-mobile-stack{
    border: none;
  }
  .table-mobile-stack tr{
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 12px;
  }
  .table-mobile-stack tfoot tr{
    background: #f7f9fa;
  }
  .table-mobile-stack td{
    border: none !important;
    padding: 6px 0 !important;
    text-align: left !important;
  }
  .table-mobile-stack td:empty{
    display: none;
    padding: 0 !important;
  }
  .table-mobile-stack td[data-label]::before{
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
  }
}

/*!
 * bootstrap-vertical-tabs - v1.2.1
 * https://dbtek.github.io/bootstrap-vertical-tabs
 * 2014-11-07
 * Copyright (c) 2014 İsmail Demirbilek
 * License: MIT
 */
.tabs-left, .tabs-right {
  border-bottom: none;
  padding-top: 2px;
}
.tabs-left {
  border-right: 1px solid #ddd;
}
.tabs-right {
  border-left: 1px solid #ddd;
}
.tabs-left>li, .tabs-right>li {
  float: none;
  margin-bottom: 2px;
}
.tabs-left>li {
  margin-right: -1px;
}
.tabs-right>li {
  margin-left: -1px;
}
.tabs-left>li.active>a,
.tabs-left>li.active>a:hover,
.tabs-left>li.active>a:focus {
  border-bottom-color: #ddd;
  border-right-color: transparent;
}

.tabs-right>li.active>a,
.tabs-right>li.active>a:hover,
.tabs-right>li.active>a:focus {
  border-bottom: 1px solid #ddd;
  border-left-color: transparent;
}
.tabs-left>li>a {
  border-radius: 4px 0 0 4px;
  margin-right: 0;
  display:block;
}
.tabs-right>li>a {
  border-radius: 0 4px 4px 0;
  margin-right: 0;
}
.sideways {
  margin-top:50px;
  border: none;
  position: relative;
}
.sideways>li {
  height: 20px;
  width: 120px;
  margin-bottom: 100px;
}
.sideways>li>a {
  border-bottom: 1px solid #ddd;
  border-right-color: transparent;
  text-align: center;
  border-radius: 4px 4px 0px 0px;
}
.sideways>li.active>a,
.sideways>li.active>a:hover,
.sideways>li.active>a:focus {
  border-bottom-color: transparent;
  border-right-color: #ddd;
  border-left-color: #ddd;
}
.sideways.tabs-left {
  left: -50px;
}
.sideways.tabs-right {
  right: -50px;
}
.sideways.tabs-right>li {
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}
.sideways.tabs-left>li {
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.block-note{
  border: 1px solid #ccc;
  background: #F5F5F5;
  padding: 10px;
}

.block-note p{
  margin:0;
}

.input-group-flex{
	display: flex !important;
	justify-content:space-between;
}
.input-group-flex .input-group-btn{
	width: 25% !important;
    padding: 0;
    display: block;
    margin: 0;
}

.btn-info-update{
		margin-top:5px;
	}

.input-group-flex input{
	width:50%;
}

@media (max-width:640px) {
	.input-group-flex .input-group-btn .btn{
		padding:5px 0;
	}
	
}
.gallery-thumbnail{
  position: relative;
  display: block;
}
.gallery-thumbnail::after{
  content: "";
  display: block;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top:0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  transition: opacity 1s;
  z-index: 1;
}

.gallery-thumbnail i{
  opacity: 0;
  font-size:30px;
  transform: translate(-50%, -50%);
  position: absolute;
  top:50%;
  left: 50%;
  color:#fff;
  transition: opacity 1s;
  z-index: 2;
  
}

.gallery-thumbnail:hover i{
  opacity: 1;
}

.gallery-thumbnail:hover::after{
  opacity: 1;
}

.checkout-overlay{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  z-index: 9999;
  text-align: center;
}

.checkout-overlay-content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 20px;
}

.checkout-overlay-content i{
  font-size: 48px;
  color: #5cb85c;
}

.checkout-overlay-content p{
  margin-top: 15px;
  font-size: 16px;
  color: #333;
}