.lili-top-sales-section {
    padding: 4.5rem 0 6.25rem 0;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.lili-sales-container {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.lili-sales-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}
.lili-sales-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0;
    opacity: 0.8;
    line-height: 1.2em;
}
.lili-slider-relative-wrapper {
    position: relative;
    width: 100%;
}

.layout--grid .lili-pure-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.layout--grid .product-item.one-quarter {
    width: 25%;
}

.layout--slider .lili-products-swiper.swiper {
    overflow: hidden;
    width: 100%;
}

.lili-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    height: auto; 
    box-sizing: border-box;
    border-right: 1px solid #f2f2f2;
}

.layout--grid .product-item.one-quarter:nth-child(4) {
    border-right: none;
}

/* МОДИФІКАЦІЯ: Ефект двох зображень (Hover Image) */
.lili-product-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; 
    overflow: hidden;
    background-color: #fcfcfc;
}

.lili-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.lili-product-thumb .hover-img {
    opacity: 0;
    z-index: 1;
}

.lili-product-thumb .main-img {
    opacity: 1;
    z-index: 2;
}

/* Стан при наведенні (Hover) */
.lili-product-card:hover .lili-product-thumb.has-hover-image .main-img {
    opacity: 0;
}

.lili-product-card:hover .lili-product-thumb.has-hover-image .hover-img {
    opacity: 1;
    transform: scale(1.02);
}

/* Якщо другого зображення немає, злегка масштабуємо перше */
.lili-product-card:hover .lili-product-thumb:not(.has-hover-image) .main-img {
    transform: scale(1.02);
}

.lili-product-overlay-link {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3; /* Вище зображень */
}

.lili-product-info {
    padding: 1.75rem 1rem 1.5rem 1rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lili-product-name {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.lili-product-name a {
    text-decoration: none;
    color: inherit;
}
.lili-product-price {
    font-size: 1rem;
    color: #111111;
    margin-bottom: 0.9rem;
}
.lili-product-info {
    padding: 1.75rem 1rem 1.5rem 1rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    position: relative; /* Важливо для позиціонування кружечків */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px; /* Фіксована висота, щоб сусідні картки не гуляли */
    box-sizing: border-box;
}

/* Блок з текстовою інформацією */
.lili-product-text-meta {
    width: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.lili-product-name {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lili-product-name a {
    text-decoration: none;
    color: inherit;
}

.lili-product-price {
    font-size: 1rem;
    color: #111111;
    margin-bottom: 0.4rem;
}

.lili-product-colors {
    font-style: italic;
    font-size: 0.95rem;
    color: #666666;
}

/* Блок кружечків кольорів (Swatches) */
.lili-card-swatches {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%); /* Зсунуто трохи вниз за замовчуванням */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 90%;
    opacity: 0;
    pointer-events: none; /* Щоб не заважало клікати по картці */
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.swatch-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}

.lili-product-card:hover .lili-product-text-meta {
    opacity: 0;
    transform: translateY(-8px);
}

.lili-product-card:hover .lili-card-swatches {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.swatch-placeholder {
    display: inline-block;
    height: 14px;
}

.lili-arrow {
    position: absolute;
    top: calc(50% - 45px); 
    transform: translateY(-50%);
    width: 2.85rem;
    height: 2.85rem;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000000;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
    transition: opacity 0.2s, background-color 0.2s;
}
.lili-arrow.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}
.lili-swiper-button-prev { left: 20px; }
.lili-swiper-button-next { right: 20px; }
.lili-arrow svg { width: 1.5rem; height: 1.5rem; }

@media screen and (max-width: 768px) {
    .lili-pure-grid-wrapper.lili-mobile-scroll-inner {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    .lili-mobile-scroll .product-item.small--one-whole {
        width: 70% !important;
        flex-shrink: 0 !important;
        box-sizing: border-box;
    }
    .lili-mobile-scroll,
    .lili-mobile-scroll-inner,
    .lili-products-swiper {
        -webkit-overflow-scrolling: touch;
    }
    .lili-mobile-scroll::-webkit-scrollbar,
    .lili-mobile-scroll-inner::-webkit-scrollbar,
    .lili-products-swiper::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    .lili-mobile-scroll,
    .lili-mobile-scroll-inner,
    .lili-products-swiper {
        scrollbar-width: none !important;
    }
    .lili-mobile-scroll,
    .lili-mobile-scroll-inner,
    .lili-products-swiper {
        -ms-overflow-style: none !important;
    }
    .lili-card-swatches {
       display: none;
    }
}