@charset "UTF-8";

main{
    /* color: var(--white); */
    color:var(--font);
    padding-top: max(12vh, 80px);
}

h1{
    text-align: center;
    font-size:3vw;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin:30px 0;
}

.product-detail{
	/* width:94%;
	max-width:900px;
	margin:0 auto; */
    display: flex;
    justify-content: center;
    gap: 28px;
}

.product-detail ul{
	margin:0;
	list-style: none;
}

.product-detail img{
	width: 100%;
	height: auto;
	vertical-align: bottom;
}

.product-main-contents {
    position: relative;
}

.product-main-img {
    /* margin:0 0 5px 0;
    position: relative; */
    width: 72vw;
    /* display: flex; */
    background-color: var(--black);
    margin-right: 28px;
    list-style: none;
    height:85vh;
    /* width:auto; */
    padding: 0;
    opacity: 1;
    transition: opacity .25s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.product-main-img img {
    width: auto;
    height: 85vh;
    margin: auto;
    object-fit:cover;
    display: flex;
    justify-content: center;
    align-items: center;    
}

/* .product-main-img.slick-initialized {
    opacity: 1;
} */

.product-sub-img {
    padding: 0 20px;
    flex-direction: column;
    /* display:flex; */
    /* flex:1 1 100px; */
    /* flex:1 1 20%; */
    height:85vh;
    width:220px;
    overflow-y: auto;
}

.product-sub-img::-webkit-scrollbar{
    display: none;
  }

/* .product-sub-img.slick-initialized {
    opacity: 1;
} */

.product-sub-img li{
    cursor: pointer;
    margin-bottom: 8px;
    flex: 0 0 10%;
}

/* fix thumbnail item height and hide overflow so scale doesn't change layout */
.product-sub-img li{
    height: 15vh;
    overflow: hidden;
}

.product-detail-title {
    position: absolute;
    top: 0%;
    right: 0%;
    font-size: 1.5em;
    color: var(--white);
    margin: 20px;
    padding: 10px;
    z-index: 3;
}

.product-detail-info {
    position: absolute;
    bottom: 0%;
    right: 10%;
    width: 30%;
    /* transform:translate(-80%,-10%); */
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    z-index: 3;
    th,td{
        vertical-align: center;
        margin: 5px;
        padding: 5px;
    }
}

/* .product-main-img li {
    list-style:none;
    margin: 0 auto;
}

.product-main-img img {
    display: block;
    width: auto;
    height: 50vh;
    margin: 0 auto;
} */

/* .product-main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
} */


/* .product-sub-img img {
    width: auto;
    height: 20vh;
} */

/* .slick-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color:var(--grey-7);
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 0;
    position: absolute;
    z-index: 1;
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
}

.slick-arrow::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border: 1px solid var(--grey-1);
    border-width: 3px 3px 0 0;
    position: absolute;
    top: 10px;
} */

.product-main-img {

    .slick-arrow {
        top: 50vh;
    }

    .slick-arrow::before {
        transform: rotate(45deg);
    }
    .slick-next {
        right: 25px;
    }

    .slick-prev {
        left: 25px;
    }

    .slick-next::before {
        left: 6px;
    }

    .slick-prev::before {
        border-width: 0 0 3px 3px;
        right: 8px;
    }
}

.product-sub-img {
    /* .slick-arrow::before {
        transform: rotate(135deg);
    }
    .slick-next {
        left:50%;
        bottom: 0;
        transform:translateX(-50%);
    }

    .slick-prev {
        left:50%;
        top: 0;
        transform:translateX(-50%);
    }

    .slick-next::before {
        left:8px;
    }

    .slick-prev::before {
        border-width: 0 0 3px 3px;
        left:8px;
    } */
}
/* 
.slick-arrow {
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 0;
    transform: translateY(-50%);
    z-index: 1;
    background-color: var(--black); 
    border-radius: 50%;
    border-width: 3px 3px 0 0;

}

.slick-prev, .slick-next {
    font-size: 20px;
    color: var(--white);
    background-color: var(--black);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 40px;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    /* position: absolute;
	z-index: 3;
    top: 42%;
    cursor: pointer;
    outline: none;
    border-radius: 50%;
    background-color:var(--grey-7);
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    height: 25px;
    width: 25px;
}

.slick-prev {
    left:2.5%;
    transform: rotate(-135deg);
}

.slick-next {
    right:2.5%;
    transform: rotate(45deg);
} */

/* .product-sub-img li {
	cursor: pointer;
	outline: none;
	background:#333;
	width:20%!important;
} */

.product-sub-img li img {
    opacity:0.6;
    width: auto;
    height: 15vh;
}

.product-sub-img li img{
    transition: transform .12s ease, opacity .12s ease;
    display: block;
}

.product-sub-img li.selected img {
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.product-sub-img.slick-current img{
	opacity: 1;
}

.product-sub-img li img:hover {
    opacity:1;
}

.product-sub-img .slick-track {
    transform:unset !important;
}

.fadeInImg{
    animation-name: fadeInImgAnime;
    animation-duration:1.5s;
    animation-fill-mode:forwards;
    perspective-origin: left center;
    opacity: 0;
  }
  
  @keyframes fadeInImgAnime{
    from {
      transform: perspective(600px) translate3d(0, 0, 0) rotateY(20deg);
      /* transform:translate(-100px, -100px); */
      opacity: 0;
    }
  
    to {
      transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
      /* transform:translate(0, 0); */
      opacity: 1;
    }
  }

/* Main image prev/next navigation (PC only) */
.product-main-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}
.product-main-nav[aria-hidden="true"] {
    display: none;
}
.product-main-nav-btn {
    pointer-events: auto;
    background: rgba(0,0,0,0.45);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    margin: 0 12px;
}
.product-main-nav-btn span{
    display: block;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}
.product-main-nav-next span { border-left: 12px solid #fff; }
.product-main-nav-prev span { border-right: 12px solid #fff; }
.product-main-nav-btn:disabled,
.product-main-nav-btn[aria-disabled="true"] {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 768px) {
    /* show nav on mobile and use smaller buttons */
    .product-main-nav { display: flex; pointer-events: auto; }
    .product-main-nav-btn { width: 36px; height: 36px; margin: 0 8px; background: rgba(0,0,0,0.5); }
    .product-main-nav-btn span{ border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
    .product-main-nav-next span { border-left: 10px solid #fff; }
    .product-main-nav-prev span { border-right: 10px solid #fff; }
}

@media screen and (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    .product-detail-title {
        font-size:14px;
    }
    .product-detail-info {
        width: 50%;
        right:0%;
        bottom: 5%;
        font-size:12px;
    }
    .product-detail ul{
        padding: 0;
        margin:5% 0;
    }
    .product-main-img{
        width: 100%;
        height:50vh;
        padding: 0;
    }
    .product-main-img img{
        width: 100%;
        height:50vh;
    }

    .product-sub-img {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        li {
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }

    /* show two rows of thumbnails within the visible area */
    .product-sub-img {
        height: calc(2 * 15vh + 10px);
        overflow-y: auto;
    }
}