/* 
 ## Shop Startseite
*/


/* 
 ## Produkt Liste
*/

.shop-container {
    display: flex;
    margin-top: 100px;
    gap: 5vw;
}

.product-grid {
    flex: 1;
    font-size: 1.1em;

    > .woocommerce {
        place-items: center;
    }

    .woocommerce-result-count {
        display: none;
    }

    form.woocommerce-ordering select {
        background-color: var(--TGT_hellblau);
        border: none;
        color: white;
        padding: 5px;
        font-weight: 800;
        margin-bottom: 2em;
        text-align: center;
    }

    .woocommerce .columns-1{
        max-width: 300px;
    }

    .woocommerce .columns-2{
        max-width: 600px;
    }

    .woocommerce ul.products{
        width: 100%;
    }

    .woocommerce ul.products li.product span.price {
        margin-bottom: 1em;
    }

    .woocommerce ul.products li.product a img {
        border-bottom: 5px solid var(--TGT_dunkelblau);
        margin-bottom: 0.5em;
    }

    .wc-gzd-additional-info{
        display: none;
    }


    .qty-controls {
        display: flex;
        gap: 5px;

        width: 80%;
        margin-top: 10px;
        justify-content: center;
        justify-self: center;
        flex-wrap: wrap;
        align-content: center;
        align-items: center;
    }

    .qty-control {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--TGT_hellblau);
        width: 100%;
    }

    .qty-controls button {
        padding: 3% 7%;
        background: var(--TGT_hellblau);
        color: #fff;
        border: none;
        border-inline: 1px white solid;
        cursor: pointer;
        font-size: 1.2em;
        height: 100%;
    }

    .qty-controls input {
        background-color: var(--TGT_hellblau);
        border: none;
        color: white;
        width: 100%;
        text-align: center;
    }

    .qty-controls input:hover {
        cursor: default;
    }

    .qty-controls button:hover {
        background: var(--TGT_dunkelblau);
    }


    .add_to_cart_button {
        display: none !important;
    }

    .woocommerce-loop-product__link {
        text-align: center;

        .short-description {
            display: none;
        }
    }

    .woocommerce-loop-product__title {
        padding: 0 0 0.5em 0;
    }

    a:any-link {
        text-decoration: none;
        color: inherit;
    }


    /* 
    Product Hover Animation
    */

    .product a{
        transition: transform 0.5s ease, background-color 1s ease;
    }

    .product:hover a {
        transform: translateY(-8px);
    }

}



/* 
 ## Mini Warenkorb
*/

.fixed-cart {
    width: 300px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    background: #f8f8f8;
    padding: 15px;
    border: 1px solid #ddd;
    height: fit-content;
    text-align: -webkit-center;

    h3 {
        margin: 20px;
    }

    .cart_list {
        padding: 0 1.5em 0 1.4em;

        .mini_cart_item {
            list-style: none;
            display: flex;
            flex-direction: row-reverse;
            justify-content: space-between;
            max-height: 50px;
            min-height: fit-content;
            margin-top: 10px;
            padding-bottom: 10px;
            border-bottom: solid 1px black;

            .infos {
                align-content: center;
            }

            a:has(img) {
                width: 50px;
                font-size: 0;
                max-height: inherit;
                align-self: center;

                img {
                    width: auto;
                    max-height: inherit;
                }
            }


            .remove {
                display: none;
            }

            .remove-item {
                color: var(--TGT_dunkelblau);
                font-weight: bold;
                text-decoration: none;
                height: fit-content;
            }

            .remove-item:hover {
                color: red;
            }
        }
    }


    .total {
        strong {
            margin-right: 7px;
        }
    }

    .total-cart-tax{
        display: none;
    }

    .buttons {
        display: grid;

        .wc-forward {
            margin-top: 10px;
            background-color: var(--TGT_hellblau);
            color: white;
            text-decoration: none;
            padding: 8px;
            transition: transform 0.2s ease, background-color 0.2s ease;
        }

        .checkout {
            background-color: var(--TGT_dunkelblau);
        }

        .wc-forward:hover{
            background-color: var(--TGT_dunkelblau);
            transform: scale(1.05);
        }

        .checkout:hover{
            background-color: var(--TGT_hellblau);
        }
    }
}



@media screen and (max-width: 1030px) {
    .shop-container {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        width: 100%;
        max-width: 600px;
    }

    .fixed-cart {
        width: 100%;
        position: relative;
        margin-top: 20px;
    }

    .qty-controls {
        width: 100%;
    }
    
}