.variation-preview {
    margin-top: 8px;
    min-height: 22px;
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    z-index: 5;
}

.color-swatches {
    display: flex;
    gap: 6px;
    align-items: center;
}

.swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(184, 169, 188, 0.7);
    display: inline-block;
}

.swatch:nth-child(1) { background: #e4d3c5; }
.swatch:nth-child(2) { background: #bfa091; }
.swatch:nth-child(3) { background: #d2b8a3; }
.swatch:nth-child(4) { background: #a98f7a; }

.size-preview {
    font-size: 13px;
    color: black;
    line-height: 1.4;
}

.color-more {
    font-size: 16px;
    color: rgba(138, 134, 134, 0.6);
}

.size-more {
    font-size: 13px;
    color: black;
}

.product-element-bottom {
    position: relative;
}

.single-product .variation-preview {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: auto;
    z-index: 50;
}

.linked-giftset-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 100%;
    margin: 20px 0 50px;
}

.linked-giftset-simple .linked-giftset-title {
    grid-column: 1 / -1;
}

#selected-variation-title,
.linked-giftset-simple .linked-giftset-title {
	padding-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
	color: black;
	border-bottom: 2px solid #D4CCD8;
}

#custom-variation-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
	margin-bottom: 50px;
}

#custom-variation-tiles .variation-tile,
.linked-giftset-simple .giftset-tile {
    border: 1px solid #ddd;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    height: 220px;
    display: flex;
    flex-direction: column;
}

#custom-variation-tiles .variation-tile img,
.linked-giftset-simple .giftset-tile img {
    width: auto;
    max-width: 120px;
    margin-left: auto;
	margin-right: auto;
    height: 120px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

#custom-variation-tiles .variation-tile .title,
.linked-giftset-simple .giftset-tile .title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
	margin-bottom: 0;
}

#custom-variation-tiles .variation-tile .price,
.linked-giftset-simple .giftset-tile .price {
    width: 100%;
    padding: 10px;
    margin-top: auto;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}

#custom-variation-tiles .variation-tile .price del {
    margin-right: 4px;
    font-weight: 700;
}

#custom-variation-tiles .variation-tile .price strong {
    font-weight: 700;
}

#custom-variation-tiles .variation-tile.active,
.linked-giftset-simple .giftset-tile.active {
    border: 2px solid #000 !important;
}

#custom-variation-tiles .variation-tile.active .price,
.linked-giftset-simple .giftset-tile.active .price {
    background: #000;
    color: #ffffff !important;
    border-top: 1px solid #000;
}

#custom-variation-tiles .variation-tile.active .price del {
    color: rgba(255,255,255,0.7);
}


.linked-giftset-simple .linked-giftset-title{
   border-bottom: 2px solid #D4CCD8; 
}

.linked-giftset-simple .giftset-tile .price del *,
#custom-variation-tiles .giftset-tile .price del * {
    color: #bbb !important;
    font-weight: 700 !important;
    font-size: 100% !important;
}

#custom-variation-tiles .giftset-tile.active .price del *,
.linked-giftset-simple .giftset-tile.active .price del * {
    color: #bbb !important;
}

#custom-variation-tiles .giftset-tile.active .price ins *,
.linked-giftset-simple .giftset-tile.active .price ins * {
    color: #fff !important;
}

#custom-variation-tiles .giftset-tile {
    text-decoration: none;
    color: inherit;
}

.front-product-carousel .size-preview{
    margin-top: -10px;
    margin-left: 15px;
}

.home-product-carousel .product-element-bottom {
    width: calc(100% - 50px);
    margin-left: auto;
    margin-right: auto;
}

.recommendations-section .variation-preview {
    left: 10px;
    bottom: 1px;
}

.similar-category .variation-preview{
    bottom: 5px;
    left: 0;
}

.variation-tile.active .price,
.variation-tile.active .price *,
.giftset-tile.active .price,
.giftset-tile.active .price * {
    color: #fff !important;
}

@media (max-width: 768px) {
    .variation-preview {
        bottom: -12px;
    }

    .swatch {
        width: 8px;
        height: 8px;
    }

    .size-preview {
        display: none;
    }

    #custom-variation-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #custom-variation-tiles .variation-tile {
        height: 180px;
    }

    #custom-variation-tiles .variation-tile img {
        height: 90px;
    }

    .linked-giftset-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;

    }

     .home-product-carousel .product-element-bottom {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
