.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-align: start;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  font-size: 0.875rem;
  word-wrap: break-word;
  opacity: 0;
}

.tooltip.show {
  opacity: 0.9;
}

.tooltip .arrow {
  position: absolute;
  display: block;
  width: 0.8rem;
  height: 0.4rem;
}

.tooltip .arrow::before {
  position: absolute;
  content: "";
  border-color: transparent;
  border-style: solid;
}

.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^="bottom"] {
  padding: 0.4rem 0;
}

.bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^="bottom"] .arrow {
  top: 0;
}

.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
  bottom: 0;
  border-width: 0 0.4rem 0.4rem;
  border-bottom-color: #000;
}

.tooltip-inner {
  max-width: 200px;
  padding: 0.25rem 0.5rem;
  color: #fff;
  text-align: center;
  background-color: #000;
  border-radius: 0.25rem;
}
.main-content {
    margin: 0 auto;
    width: 80%;
    font-size: 0; /* remove inline-block extra space */
    padding: 10px; /* remove list padding */
	justify-content:center;
}

.item {
    display: inline-block;
    font-size: 18px; /* restore font size removed in container */
    list-style-type: none;
    width: 300px;
    height: 300px;
    margin:15px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid gray;
	position:relative;
    display:inline-block;
}

.itemimage{
	display: inline-block;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid gray;
	position:relative;
	flex: 1;
}

.itemimage img{
	width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: top;
}

.iteminfo{
	display:inline-block;
	overflow: hidden;
	flex: 1;
}

.info {
    display:none;
}
.item:hover .info {
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    position:absolute;
    top:0;
    left:0;
    display:inline-block;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    text-align:center;
    color:white;
    padding:12px;
    font-size:20px;
	z-index:5;
}

.item:hover .category{
	height:40%;
}

.item:hover .price-box{
	height:20%;
}

.item:hover .title-text{
	height:80%;
	display:block;
	overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
	font-size:26px;
	word-wrap: break-word;
}

.item:hover .coupon-box{
	visibility: visible;
	opacity: 1;
}

.title-text{
	height:20%;
	display:none;
	transition: .5s ease;
}

.item img {
	width: 100%;
	height: 100%;
  object-fit: cover;
  vertical-align:top;
}

.category{
	display:inline-block;
	position:absolute;
    top:0;
    left:0;
	width:100%;
	height:30px;
	line-height:30px;
	background:white;
	vertical-align: middle;
	transition: .5s ease;
	z-index:6;
}

.category-text{
	position: absolute;
	bottom: 0;
	line-height: 15px;
	transform: translate(-50%, -50%);
}

.price-box{
	display:inline-block;
	position:absolute;
    bottom:0;
    left:0;
	width:100%;
	height:30px;
	line-height:30px;
	background:white;
	vertical-align: middle;
	transition: .5s ease;
	text-align:center;
	z-index:6;
}

.sale-price{
	color:red;
	font-weight: bold;
}

.orig-price{
	color:grey;
	text-decoration: line-through;
	font-size:14px;
	padding-left:5px;
}

.coupon-box{
	visibility: hidden;
	opacity:0;
    font-size: 16px;
    font-weight: bold;
    border: 1px dashed #1068af;
    background-color: #e2ecf5;
    color: #00314c;
    border-radius: 5px;
	transition: visibility 0s, opacity 0.5s ease-in;
	display:block;
	height:40%;
	line-height:20px;
	margin: 0 auto;
	cursor: pointer;
}

.icons{
	margin-top:55%;
	font-size:40px;
}
.spacer{
	padding-left:20px;
	padding-right:20px;
	cursor: pointer;
}
.modal-large .modal-content{
	width:80%;
	padding:0;
}
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 12; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.modal-body {padding: 2px 16px;}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  text-align: center;
}

.socialspacer{
	font-size:50px;
	width:33%;
	text-align: center;
}
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

@media screen and (max-width: 750px) { .main-content { width:360px;  } }
@media screen and (min-width: 750px) and (max-width: 1070px) { .main-content { width: 660px; } }
@media screen and (min-width: 1070px) and (max-width: 1390px) { .main-content { width: 990px; } }
@media screen and (min-width: 1390px) { .main-content { width: 1320px; } }