/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

label[for="search-field"] {
    margin-left: 10px;
}
.fairy-tale-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fairy-tale-header {
    text-align: center;
    margin-bottom: 30px;
}

.fairy-tale-title {
    color: #046bd2;
    font-size: 42px;
    font-size: 2.625rem;
    font-weight: 400;
    font-family: 'Roboto Slab', serif;
    line-height: 1.3em;
    margin: 0;
}

.fairy-tale-content {
    width: 100%;
}

.fairy-tale-image-wrapper {
    float: left; /* Зображення зліва */
    margin-right: 30px;
    margin-bottom: 20px;
    max-width: 700px; /* Відповідає розміру зображення 700x700 */
}

.fairy-tale-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fairy-tale-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
}

.fairy-tale-text p {
    margin: 0 0 15px;
}

.fairy-tale-text a {
    color: #046bd2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fairy-tale-text a:hover {
    color: #034a99;
    text-decoration: underline;
}

.clear {
    clear: both; /* Очищення float, щоб текст під зображенням йшов на всю ширину */
}

/* Адаптивність */
@media (max-width: 768px) {
    .fairy-tale-container {
        padding: 20px 15px;
    }

    .fairy-tale-title {
        font-size: 2rem;
    }

    .fairy-tale-image-wrapper {
        float: none; /* Прибираємо обтікання на малих екранах */
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .fairy-tale-text {
        font-size: 1rem;
    }
}
.fairy-tale-back-btn-wrapper {
    margin-top: 20px;

}

.fairy-tale-back-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6a5acd; /* Лавандовий */
    color: #fff;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;

}

.fairy-tale-back-btn:hover {
    background-color: #483d8b; /* Темніший відтінок */
    transform: translateY(-2px);
}

.fairy-tale-back-btn:active {
    transform: translateY(0);
}

.collection-in-cart-message {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    font-weight: bold;
}

.collection-back-btn-wrapper {
    margin-top: 15px;
}

.collection-back-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6a5acd;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.collection-back-btn:hover {
    background-color: #483d8b;
    transform: translateY(-2px);
}


 .custom-shop-products-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 20px;
     background-color: #ffffff;
     border-radius: 10px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 }

.custom-shop-products-container .products {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 товари в рядку для десктопу */
    gap: 20px;
    padding: 0;
    list-style: none;
}

.custom-shop-products-container .product {
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.custom-shop-products-container .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.custom-shop-products-container .product a img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.custom-shop-products-container .product .woocommerce-loop-product__title {
    font-size: 1.2rem;
    color: #333;
    margin: 10px 0;
    font-weight: 500;
}

.custom-shop-products-container .product .price {
    font-size: 1.1rem;
    color: #27ae60;
    margin-bottom: 10px;
}

.custom-shop-products-container .product .button {
    background-color: #046bd2;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.custom-shop-products-container .product .button:hover {
    background-color: #034a99;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .custom-shop-products-container .products {
        grid-template-columns: 1fr; /* 1 товар у рядку для мобільних */
    }

    .custom-shop-products-container .product a img {
        height: 150px;
        object-fit: cover;
    }

    .custom-shop-products-container .product .woocommerce-loop-product__title {
        font-size: 1rem;
    }

    .custom-shop-products-container .product .price {
        font-size: 1rem;
    }
}


.woocommerce-loop-product__title-top {
    text-align:center;
}
.astra-shop-summary-wrap .price{
    color: #77a464 !important;
}
.ast-loop-product__link{
    text-decoration: underline;
}
.astra-shop-summary-wrap{
    text-align: left !important;
}
.custom-shop-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.products li{
    padding: 15px !important;
    background-color: #f9f9f9  !important;
    border-radius: 8px  !important;
    transition: transform 0.3s ease  !important;
}

.custom-shop-products-container .products {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 товари в рядку для десктопу */
    gap: 20px;
    padding: 0;
    list-style: none;
}

.custom-shop-products-container .product {
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.custom-shop-products-container .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.custom-shop-products-container .product a img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.custom-shop-products-container .product .woocommerce-loop-product__title {
    font-size: 1.2rem;
    color: #333;
    margin: 10px 0;
    font-weight: 500;
}

.custom-shop-products-container .product .price {
    font-size: 1.1rem;
    color: #27ae60;
    margin-bottom: 10px;
}

.custom-shop-products-container .product .button {
    background-color: #046bd2;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.custom-shop-products-container .product .button:hover {
    background-color: #034a99;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .custom-shop-products-container .products {
        grid-template-columns: 1fr; /* 1 товар у рядку для мобільних */
    }

    .custom-shop-products-container .product a img {
        height: 150px;
        object-fit: cover;
    }

    .custom-shop-products-container .product .woocommerce-loop-product__title {
        font-size: 1rem;
    }

    .custom-shop-products-container .product .price {
        font-size: 1rem;
    }
}

.custom-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
    flex-wrap: wrap;
    font-family: inherit;
}

.custom-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
}

.custom-pagination .page-numbers.current {
    background-color: #333;
    color: #fff;
    font-weight: bold;
    border-color: #333;
}

.custom-pagination .page-numbers:hover {
    background-color: #f3f3f3;
    color: #000;
}

.custom-pagination .next.page-numbers,
.custom-pagination .prev.page-numbers {
    font-weight: bold;
}
