/* HAUGETUN BUNDLE STYLING */
.haugetun-meny-oversikt h2{
    font-size: 1.3rem !important;
    @media screen and (min-width: 850px){
        font-size: 1.5rem !important;
    }
}
.haugetun-bundle-order-form, .meny-produkt{
    margin-bottom: 20px;
    box-shadow: rgb(79 79 79 / 17%) 0px 1px 3px 0px;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    .product-header{
        border-bottom: 1px solid #f3f4f6;
        display: flex;
        justify-content: space-between;
        padding: 20px;
        padding-bottom: 1.1rem;
        margin-bottom: 1.1rem;
        align-items: start;
        gap: 40px;

        &.product-has-image{
            min-height: 250px;
            align-items: end;
            box-shadow: inset 0 0 0 2000px rgb(0 0 0 / 56%);
            h2{
                margin-bottom: 3px !important;
            }
            h2, .haugetun-product-short-description p, span{
                color: #fff !important;
            }
        }
        span.pris{
            font-size: 1.2rem;
            padding: 5px 5px 0px 0px;
        }
        .header-left{
            h2{
                color: #000;
                font-size: 1.8rem;
                margin-bottom: 10px;

                @media screen and (min-width: 850px){
                    font-size: 2.4rem;
                }
            }
            p{
                margin: 0px;
                color: rgb(107 114 128) !important;
                &.allergener-etikett{
                    font-style: italic;
                }
            }
        }
    }
    .haugetun-product-description{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
        margin-bottom: 1.1rem;
        padding: 0px 20px;
        @media screen and (min-width: 850px){
            grid-template-columns: repeat(2, 1fr);
        }
        h3{
            margin-bottom: 0px;
            color: #000;
            font-size: 1.2rem;
            @media screen and (min-width: 850px){
                grid-column: 1 / 3;
                font-size: 1.4rem;
            }
        }
        p{
            color: #1f2937;
            margin: 0px;
            &:has(strong){
                @media screen and (min-width: 850px){
                    grid-column: 1/3;
                }
            }
        }
        span{
            color: rgb(107 114 128) !important;
            font-size: 0.95rem;
            font-style: italic;
        }
    }
}

.meny-produkt .product-header{
    border: none;
    margin-bottom: 0px;
}

.meny-produkt{
    .meny-produkt-bilde{
        display: none;
    }
    
    &:has(.product_has_image){
        display: flex;
        flex-direction: column;
        @media screen and (min-width: 850px){
            flex-direction: row;
        }
        .product_has_image{
            display: block;
            width: 100%;
            max-height: 200px;
            height: 200px;
            @media screen and (min-width: 850px){
                width: 200px;
            }
            img{
                box-shadow: inset 0 0 0 2000px rgb(0 0 0 / 20%);
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        .meny-produkt-info{
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
    }
}

form#fw-haugetun{
    display: flex;
    gap: 20px;
    margin: 0px;
    border-top: 1px solid #ddd;
    justify-content: space-between;
    flex-direction: column;
    /* background: #f3f4f6; */

    @media screen and (min-width: 850px){
        flex-direction: row;
    }

}
form#fw-haugetun .form-left{
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    
    label{
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    margin: 0px;
    }
    .tillegg-product-description{
        font-size: 0.95rem;
        color: rgb(107 114 128) !important;
        margin-top: 0px;
    }
}

form#fw-haugetun .quantity-input{
        display: flex;
        align-items: center;
        margin-top: 10px;
        input{
            text-align: center;
            margin: 0px;
            width: 60px;
            height: 40px;
            box-shadow: none;
            border-radius: 10px 0px 0px 10px;
            border: 1px solid #ccc;
            border-right: none;
            color: #000;
            font-size: 1.1rem;
        }
        button{
            margin: 0px;
            padding: 0px;
            height: 40px;
            width: 40px;
            border-top: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
            align-items: center;
            display: flex;
            justify-content: center;
            color: #95949a;
            background: #fff;
            transition: all 0.1s ease-in-out;
            &:hover{
                color: #000;
                background-color: #f9f9f9;
            }
            &.minus-btn{
                border-right: 1px solid #ddd;
                border-left: 1px solid #ddd
            }
            &.plus-btn{
                border-radius: 0px 10px 10px 0px;;
                border-right: 1px solid #ccc;
            }
        }
        
    }

form#fw-haugetun:has(.form-content){
    border: none;
}
form#fw-haugetun .form-content{
    display: flex;
    padding: 0px 20px 20px;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    label{
        display: none;
    }
    .quantity-input{
        margin: 0px;;
    }
}

form#fw-haugetun .form-right{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
    flex-grow: 1;
    border-top: 1px solid #ddd;
    @media screen and (min-width: 850px){
        width: 50% !important;
        border-left: 1px solid #ddd;
        border-top: none;
    }
    @media screen and (min-width: 550px) {
        width: 100%;
    }
    h3{
        color: #000;
        font-size: 1.2rem;
        @media screen and (min-width: 850px){
            font-size: 1.4rem;
        }
    }
    .summary-row{
        font-size: 1.1rem;
        display: flex;
        justify-content: space-between;
        gap: 20px;
        &.total{
            padding-top: 10px;
            border-top: 1px solid #ddd;
            margin-top: 10px;
            color: #1f2937
        }
        .item-subtotal{
            text-wrap: nowrap;
        }
    }
}

form#fw-haugetun .form-actions{
    text-align: end;
    .add-to-cart-button{
        margin: 0px;
        background: #ff881a;
        border-radius: 7px;
        text-transform: none !important;
    }
}

.group-order-summary{
    display: flex;
    border-radius: 10px;
    box-shadow: rgb(79 79 79 / 17%) 0px 1px 3px 0px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    border: 1px solid #ffe0b5;
    position: sticky;
    bottom: 10px;
    background: #fff7ed;

    .group-order-stats{
        .group-order-price{
            font-size: 1.2rem;
            color: #000;
            font-weight: 600;
        }

    }
    @media (max-width: 849px){
        .group-order-actions {
            padding-top: 20px;
            border-top: 1px solid #eee;
            width: 100%;
            .button{
                width: 100%;
            }
        }
    }
    .group-order-actions{
        .button{
            background: #ff881a !important;
            border-radius: 7px;
            margin: 0px;
            text-transform: none !important;
        }
    }
    .group-order-info{
        width: 100%;
        padding-top: 5px;
        text-align: center;
        font-size: 0.8rem;
    }
}


/* Filtreringsstiler */
.haugetun-meny-filter {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: rgb(79 79 79 / 17%) 0px 1px 3px 0px;
}

.haugetun-meny-filter .filter-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.filter-categories label {
    display: block;
    margin-bottom: 8px;
}

.price-slider-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.price-slider {
    flex: 1;
    margin: 0 10px;
}

.price-display {
    min-width: 60px;
    text-align: center;
}

.price-range-separator {
    margin: 0 5px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.apply-filters {
    background-color: #4CAF50;
    color: white;
}

.reset-filters {
    background-color: #f1f1f1;
}

/* Skjul filtrerte menyer */
.filterable-menu.filtered-out {
    display: none;
}