/* Стилі для відображення товарів на головній сторінці */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.free-delivery {
	padding: 10px 15px;
	background: lightcoral;
	font-weight: bold;
	font-size: 16px;
	color: white;
	margin-top: 20px;
}

/*.product-item {
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
    padding-bottom: 10px;
    background-color: #F3FCFE;
}*/

.product-item {
    background: #F3FCFE;
}
.slick-slide img {
    display: block;
    width: 100%;
    height: auto;
}


.product-category {
    background-color: #e75e66;
    color: white;
    padding: 5px 15px;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 14px;
    z-index: 2;
}

.product-link {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.product-link img {
    max-width: 100%;
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}






.product-price .amount {
    font-weight: bold;
    color: #333;
}

.product-weight {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}



/* Стилі для повідомлень WooCommerce */
.woocommerce-message {
    background-color: #f8f9fa;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.woocommerce-message::before {
    content: "✓";
    color: #4caf50;
    margin-right: 10px;
    font-weight: bold;
}

.woocommerce-message a.button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    margin-left: 15px;
}

.woocommerce-message a.button:hover {
    background-color: #3d8b40;
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .df {
        flex-direction: column;
    }
    .left_side, .right_side {
        width: 100%;
        padding-right: 0;
    }
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Стилі для галереї товарів на слік слайдері */
.product-thumb-carousel {
    position: relative;
    margin-bottom: 20px;
}

.product-thumb-carousel .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.product-thumb-carousel .slick-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
}

.product-thumb-carousel .slick-prev {
    left: 10px;
}

.product-thumb-carousel .slick-next {
    right: 10px;
}

.product-thumbnail-nav {
    margin: 0 -5px;
}

.product-thumbnail-nav .product-thumb-item {
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
    cursor: pointer;
}

.product-thumbnail-nav .product-thumb-item.slick-current {
    opacity: 1;
}

@media (max-width: 767px) {
    .product-thumb-carousel .slick-arrow {
        width: 30px;
        height: 30px;
    }
}


.category-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

/* Анімація для завантаження */
.loading:after {
    content: "";
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
}
