.product {
width: calc(24% - -1px);
    float: left;
    margin-right: 10px;
    margin-bottom: 30px;
    text-align: center;
}
.product img{    
	width: 100%;
    max-height: 350px;
    object-fit: cover;
    -o-object-fit: cover;
    object-position: top;}

/* An cac anh phu voi thong tin di */
.product .product-images,
.product .product-form {
  display: none;
}
.product-form  h3{
	font-size: 20px
}
.product-form  p{
	font-size: 18px
}
/* This elements contains both blocks */
.fancybox-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  max-width: 800px;
  max-height: 600px;
}

/* Left block will contain the gallery */
.fancybox-stage {
 width: 53%;
    background: #dddcdb;
}

/* Right block - close button and the form */
.fancybox-form-wrap {
  position: absolute;
  top: 0px;
  right: 0;
  bottom: 0px;
  width: 48%; 
  background: #fff;
}

/* Add vertical lines */
.fancybox-form-wrap::before, 
.fancybox-form-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
}

.fancybox-form-wrap::before {
  width: 8px;
  background: #f4f4f4;
}

.fancybox-form-wrap::after {
  width: 1px;
  background: #e9e9e9;
}

/* Set position and colors for close button */
.fancybox-button--close {
  position: absolute;
  top: 0;
  right: 0;
  background: #F0F0F0;
  color: #222;
  padding: 7px;
}

.fancybox-button:hover {
  color: #111;
  background: #e4e4e4;
}

.fancybox-button svg path {
  stroke-width: 1;
}

/* Set position of the form */
.fancybox-inner .product-form {
  overflow: auto;
  position: absolute;
  top: 40%;
  right: 0;
  bottom: 50px;
  left: 0;
  padding: 0 50px;
  text-align: center;
}


.fancybox-inner {
  opacity: 0;
  transition: opacity .3s;
}

.fancybox-is-open .fancybox-inner {
  opacity: 1;
}

.fancybox-is-closing .fancybox-fx-fade {
  opacity: 1 !important; /* Prevent double-fading */
}


.product-bullets {
  list-style: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
  z-index: 99999;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.product-bullets li {
  display: inline-block;
  vertical-align: top;
}

.product-bullets li a {
  display: block;
  height: 30px;
  width: 20px;
  position: relative;
}

.product-bullets li a span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 10px;
  height: 10px;
  border-radius: 99px;
  text-indent: -99999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0px 0px 2px rgba(0,0,0,0.5);
}

.product-bullets li.active a span {
  background: #FF6666;
}

@media screen and (max-width:500px) and (min-width:320px) {

	.product {
	width: calc(48% - 0px);
    float: left;
    margin-right: 0px;
    margin-left: 5px;
    margin-bottom: -2px;
    text-align: center;
}
	
	.fancybox-inner{
		
	position: relative;
   top: 15%;
     margin: auto;
    width: 100%;
    height: 100%;
   
			}
	
	
	.fancybox-stage {
		width: 100%;
	height: 64%;
	}
	
	.fancybox-form-wrap {
    position: absolute;
    /* top: 0px; */
    /* right: 0; */
    bottom: 0px;
    width: 100%;
    height: 220px;
    /* padding-top: 57px; */
    background: #fff;
		top:auto;

}
	
	.product-form {
	position:relative !important;
    top: 36% !important;
	}
	
}	
