/*
Theme Name: Astra Child
Theme URI: https://www.xkah.com.ua/
Description: Child theme for Astra
Author: Xkah
Template: astra
Version: 1.0.0
*/

/*  */

.custom-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.custom-product-item {
    text-align: center;
}

.product-image {
    position: relative;
    display: block;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* друге фото */
.product-image .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-image .hover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

/* При наведенні */
.product-image:hover > img {
    opacity: 0;
}

.product-image:hover .hover-image img {
    opacity: 1;
}

.product-title {
    font-size: 16px;
    margin: 10px 0 5px;
	color: 000 !important;
}
.product-title a{
	color: 000 !important;
}

.product-price {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
    .custom-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
/* Контейнер */
.product-button {
    margin-top: 15px;
}

/* Сама кнопка */
.product-button .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 14px 24px;
    width: 100%;

    background-color: #fff !important;
    border: 1.5px solid #000 !important;
    border-radius: 16px;

    font-size: 16px;
    font-weight: 500;
    color: #000 !important;

    text-decoration: none;
    transition: all 0.3s ease;
}

/* Іконка + */
.product-button .button::before {
    content: "+";
    font-size: 18px;
    font-weight: 400;
}
/* Іконка + */
.product-button .button::before {
    content: "+";
    font-size: 18px;
    font-weight: 400;
	color: #000;
}

/* Hover */
.product-button .button:hover {
    background-color: #f3f3f3 !important;
    color: #fff;
}

/* При hover міняємо колір іконки */
.product-button .button:hover::before {
    color: #000;
}
