/*
Theme Name:     Sklep grzybiarzy
Theme URI:      https://example.com/
Description:    Motyw potomny dla Twenty Twenty-Four – idealny dla miłośników grzybobrania
Author:         Twoja Nazwa
Author URI:     https://example.com/
Template:       twentytwentyfour
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    sklep-grzybiarzy
*/

@import url("../twentytwentyfour/style.css");

/* menu */
:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover) {
    text-decoration: none;
    color: #D8613C !important;
}

/* header */
.header-mobile {
    display: none;
}

@media (max-width:1024px) {
    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
    }
}

/* mini-cart */
.wc-block-mini-cart__badge {
    font-size: .570em;
}

.wp-block-search__button svg {
    height: 1.25em;
    min-height: 33px;
    min-width: 33px;
    width: 1.25em;
    fill: currentColor;
    vertical-align: text-bottom;
}

.header-mobile .wp-element-button,
.header-mobile .wp-block-button__link {
    padding-right: 0px;
    padding-left: 0px;
}

.wc-block-mini-cart__button {
    padding-left: 0px;
}

/* dodaj do koszyka */
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart button[name=add-to-cart] {
    display: inline-block;
    float: none;
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle;
    width: 100%;
}

/* breadcrumps */
.woocommerce .woocommerce-breadcrumb {
    font-size: 12px;
}

/* gallery nav */
.woocommerce-product-gallery__wrapper {
    position: relative;
}

.prev-slide,
.next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    z-index: 10;
    cursor: pointer;
    transition: background 0.3s;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-slide {
    left: 0px;
}

.next-slide {
    right: 0px;
}

/* Ustaw każdy produkt jako elastyczną kolumnę */
li.wc-block-product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* wyrównaj przycisk add to cart */
.wp-block-woocommerce-product-button {
    margin-top: auto;
}

/* Opcjonalnie – ustal minimalną wysokość tytułu i ceny, by ustabilizować siatkę */
.wp-block-post-title,
.wp-block-woocommerce-product-price {
    min-height: 1rem;
}

/* Stylizuj sam przycisk, jeśli chcesz go wyśrodkować */
.wp-block-woocommerce-product-button .wp-block-button__link {
    width: 100%;
    text-align: center;
}

:root :where(.wp-block-post-title a:where(:not(.wp-element-button)):hover) {
    text-decoration: none;
}

/* info box */
.info-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.info-box.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.info-box:nth-child(1) {
    transition-delay: 0.4s;
}

.info-box:nth-child(2) {
    transition-delay: 0.6s;
}

.info-box:nth-child(3) {
    transition-delay: 0.8s;
}

/* banner home page */
.banner-mobile {
    display: none;
}

@media (max-width:768px) {
    .banner-mobile {
        display: block;
    }
    .banner-desktop {
        display: none;
    }
}