/* CSS Single-product */
section.single-product{
    border: 1px solid var(--border);
    border-radius: 15px;
    background-color: white;
    overflow:hidden;
}

section.single-product .main-info-product{
	display:flex;
	width:100%;
	padding: 20px;
}

section.single-product .product-images{
	width: calc(60% + 3px);
	display: flex;
    flex-direction: column;
    align-items: center;
}

section.single-product .product-images .product-images-gallery {
    display: flex;
	gap:10px;
	width:100%;
}

.product-gallery__item img {
    width: 80px;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 10px;
}

.product-main-image{
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.product-main-image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-gallery__item{
	opacity:0.6;
	transition:0.3s;
	cursor:pointer;
}

.product-gallery__item.active{
	opacity:1;
}

.info-product{
    border-left: 1px solid var(--border);
    padding-left: 25px;
	width: calc(40% - 3px);
}

.info-product .product-name {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.info-product .product-name h1{
	margin: 10px 0;
	width:100%;
}

.info-product h3{
	font-weight:500;
	margin-bottom: 10px;
	width:100%;
}

.product-attribute-row {
    border-bottom: 1px dotted #d9d9d9;
    padding: 5px 0 5px;
}

.links-product {
    display: flex;
    width: 100%;
	border-top:1px solid var(--border);
}

.links-product a{
	flex: 1;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--secondary-color);
	font-weight: 600;
	border-right: 1px solid var(--border);
	transition:0.3s;
	background-color:white;
}

.links-product a:last-child{
	border:none;
}

.links-product a:hover{
	background-color: var(--bg);
}

/* Ãâ€ºÃÂ°ÃÂ¹Ã‘â€šÃÂ±ÃÂ¾ÃÂºÃ‘Â */
#image-lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
    padding: 40px 80px;
    box-sizing: border-box;
}

#image-lightbox.open{
    display: flex;
}

#lightbox-image{
    display: block;
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 80px);
    width: auto;
    height: auto;
    cursor: zoom-in;
    transform-origin: center center;
    transition: transform .2s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    will-change: transform;
}

#lightbox-image.zoomed{
    cursor: grab;
}

#lightbox-image.dragging{
    cursor: grabbing;
    transition: none;
}

#lb-prev,
#lb-next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100001;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    line-height: 1;
    color: #fff;
    background: rgba(0,0,0,.28);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#lb-prev{
    left: 20px;
}

#lb-next{
    right: 20px;
}

#lb-prev:hover,
#lb-next:hover{
    background: rgba(255,255,255,.14);
}

body.lightbox-open{
    overflow: hidden;
}

@media (max-width: 768px){
    #image-lightbox{
        padding: 20px 50px;
    }

    #lightbox-image{
        max-width: calc(100vw - 100px);
        max-height: calc(100vh - 40px);
    }

    #lb-prev,
    #lb-next{
        width: 44px;
        height: 44px;
        font-size: 34px;
    }

    #lb-prev{
        left: 10px;
    }

    #lb-next{
        right: 10px;
    }
}


.product-main-image{
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    margin-bottom: 16px;
}

.product-main-image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-images-gallery{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-gallery__item{
    width: 72px;
    height: 72px;
    cursor: pointer;
    overflow: hidden;
}

.product-gallery__item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-variation-cards{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.variation-card{
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 5px 9px;
    cursor: pointer;
    transition: .2s ease;
    background: #fff;
    display: flex;
}

.variation-card:hover{
    border-color: #999;
}

.variation-card.active{
    border-color: #111;
    box-shadow: 0 0 0 1px #111 inset;
}

.variation-card__title{
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 5px;
    width: 80%;
}

.variation-card__colors{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 20%;
}

.variation-color{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #bfbfbf;
    display: inline-block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    text-align: center;
    font-weight: 500;
    color: #979797;
}

.custom-variation-cards.mm {
    display: flex;
    flex-wrap: wrap;
}

.product-attributes h3{
    border-top: 1px solid var(--border);
    padding-top: 10px;
    color: var(--primary-color);
}