﻿:root {
    /* Input Group */
    --olionovello-input-field-bgcolor: #f7444e;
    --olionovello-input-field-bgcolor-disabled: #f7444e;
    --olionovello-input-field-text-color: white;
    --olionovello-spin-button-bgcolor: #f7444e;
    --olionovello-spin-button-text-color: white;
    /* Buttons */
    --olionovello-button-bgcolor: #f7444e;
    --olionovello-button-text-color: white;
    --olionovello-button-hover-bgcolor: green;
    --olionovello-button-hover-text-color: white;
    --olionovello-button-bgcolor-disabled: gainsboro;
    --olionovello-button-text-color-disabled: white;
    --olionovello-button-myorder-bgcolor: white;
    --olionovello-button-myorder-border-color: #e3e0e0;
    --olionovello-button-myorder-text-color: black; /*#877f7f*/
    --olionovello-button-myorder-hover-bgcolor: #fff3cd;
    --olionovello-button-myorder-hover-border-color: black;
    --olionovello-button-myorder-hover-text-color: black;
    /* Price */
    --olionovello-price-bgcolor: #ffe600;
    --olionovello-price-text-color: #f7444e;
    --olionovello-available-quantity-text-color: black;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

/*body {
    margin-bottom: 60px;
}*/

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card {
    text-align: center;
    margin-top: 20px;
    flex: 0 1 calc(25% - 1em);
}

tr {
    vertical-align: middle;
}

th, td {
    text-align: left;
}

th:last-child, td:last-child {
    text-align-last: right;
}

tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

/*.checkbox > .form-label {
    margin-top: 1em;
}*/

.form-check-input {
    margin-top: -.25em;
    margin-right: .5em;
}

/*.form-check-label {
    margin-top: .5em;
}*/

.pfs-btn-inline {
    display: inline !important;
}

.pfs-a-btn-inline {
    height: 50px;
    padding-top: 13px;
}

.pfs-app {
    position: relative;
}

.pfs-form-centered {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

.pfs-quantity {
    width: 100px
}

.pfs-table-header {
    background-color: #000000;
    color: #ffffff;
}

.pfs-admin-title-up {
    margin-top: -40px;
}

.empty_footer_section {
    text-align: center;
}

    .empty_footer_section .box {
        padding: 75px 45px;
    }

.pfs-row-template {
    display: none;
}

pfs-disabled-link {
    pointer-events: none;
    cursor: default;
}

input.pfs-input-full-cell {
    width: 100%;
    height: 100%;
}

/* ***** PRODOTTI ***** */

/* @media (max-width: 768px) {
    .card-prod__image {
        float: left;
      }
      .card-prod__content .prod-name {
        font-size: 0.75rem;
      }
    
    .card-prod {
        flex: 0 1 auto;
        justify-content: space-between;
    }
  } 
  */

.cards-prod {
    margin: 0 auto;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    grid-auto-rows: auto;
    gap: 20px;
    font-family: Verdana, Geneva, sans-serif;
    padding-top: 30px;
}

    .cards-prod * {
        box-sizing: border-box;
    }

.card-prod-cart {
    padding: 0.5rem;
    justify-items: center;
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
}

    .card-prod-cart .card-prod-cart__content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.card-prod-cart__content_button button {
    background-color: var(--olionovello-button-bgcolor);
    color: var(--olionovello-button-text-color);
    min-width: 38px;
    width: 250px;
    height: 50px;
    transition: all 300ms ease;
    border-radius: 1rem;
    font-size: 1.5rem;
    transition: 0.5s;
}

    .card-prod-cart__content_button button:hover {
        background-color: var(--olionovello-button-hover-bgcolor);
        color: var(--olionovello-button-hover-text-color);
    }

        .card-prod-cart__content_button button:hover:after {
            width: 100%;
        }

    .card-prod-cart__content_button button:disabled {
        background-color: var(--olionovello-button-bgcolor-disabled);
        color: var(--olionovello-button-text-color-disabled);
    }

/*.card-prod-cart__myorder_button a {
    background-color: var(--olionovello-button-myorder-bgcolor);
    color: var(--olionovello-button-myorder-text-color);
    min-width: 38px;*/
    /*width: 250px;*/
    /*height: 50px;*/
    /*transition: all 300ms ease;
    padding: 0.8rem;
    border: 0.02rem solid;
    border-color: var(--olionovello-button-myorder-border-color);
    border-radius: 1rem;
    font-size: 1rem;
    transition: 0.5s;
}

    .card-prod-cart__myorder_button a:hover {
        background-color: var(--olionovello-button-myorder-hover-bgcolor);
        color: var(--olionovello-button-myorder-hover-text-color);
        border-color: var(--olionovello-button-myorder-hover-border-color);
    }

        .card-prod-cart__myorder_button a:hover:after {
            width: 100%;
        }*/

.card-prod-cart__content__price {
    font-size: 1rem;
    font-weight: 550;
    margin-right: 10px;
}

.card-prod {
    height: 100%; /* ← QUESTO MANCAVA */
    display: flex; /* ← AGGIUNGI */
    flex-direction: column; /* ← AGGIUNGI */
    /*
    justify-items: center;
    flex: 0 1 calc(25% - 1em);
    */

    padding: 0.5rem;
    border-radius: 0.9rem;
    border-style: solid;
    border-width: .05rem;
    box-shadow: 0px 0px 15px 0px rgb(0 0 0 / 25%);
    transition: transform 250ms;
}

    .card-prod:hover {
        transform: translateY(-10px);
    }

.card-prod__image {
    height: 100px;
    margin: 0.3rem auto;
    border-top-right-radius: 0.9rem;
    border-top-left-radius: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-prod__content {
    display: flex; /* ← AGGIUNGI */
    flex-direction: column; /* ← AGGIUNGI */
    flex-grow: 1; /* ← AGGIUNGI */

    line-height: 1.5;
    font-size: 1rem;
    /*flex: 0 1 calc(25% - 1em);*/ /* inutile in grid */
    /*justify-items: center;*/ /* inutile in grid */
}

    .card-prod__content .prod-title {
        text-align: center;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .card-prod__content .prod-name {
        margin-bottom: 1rem;
    }

    .card-prod__content .prod-price {
        margin-top: auto; /* ← CHIAVE */

        font-size: 1rem;
        font-weight: 800;
        background-color: var(--olionovello-price-bgcolor);
        padding: .5rem;
        color: var(--olionovello-price-text-color);
        border-radius: 0.4rem;
    }

        .card-prod__content .prod-price .available-quantity {
            font-size: 0.8rem;
            font-style: italic;
            font-weight: 800;
            padding-top: .3rem;
            color: var(--olionovello-available-quantity-text-color);
        }

.card-prod__info {
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    border-bottom-right-radius: 0.9rem;
    border-bottom-left-radius: 0.9rem;
}

    .card-prod__info input {
        border: 1px solid var(--olionovello-input-field-bgcolor);
        box-sizing: border-box;
        margin: 0;
        outline: none;
        padding: 10px;
        background-color: var(--olionovello-input-field-bgcolor);
        color: var(--olionovello-input-field-text-color);
    }

        .card-prod__info input:disabled {
            background-color: var(--olionovello-input-field-disabled-bgcolor);
        }

        .card-prod__info input::-webkit-outer-spin-button,
        .card-prod__info input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

    .card-prod__info .input-group {
        justify-content: center;
    }

        .card-prod__info .input-group input[type='button'] {
            background-color: var(--olionovello-spin-button-bgcolor);
            color: var(--olionovello-spin-button-text-color);
            min-width: 38px;
            width: auto;
            transition: all 300ms ease;
            border-radius: 1rem;
        }

        .card-prod__info .input-group .button-minus,
        .card-prod__info .input-group .button-plus {
            font-weight: bold;
            height: 38px;
            padding: 0;
            width: 38px;
            position: relative;
            font-size: 1rem;
        }


        .card-prod__info .input-group .quantity-field {
            position: relative;
            height: 38px;
            /* left: -6px; */
            text-align: center;
            width: 62px;
            display: inline-block;
            font-size: 13px;
            margin: 0 0 5px;
            resize: vertical;
        }

            .card-prod__info .input-group .quantity-field:disabled,
            .card-prod__info .input-group .button-minus:disabled,
            .card-prod__info .input-group .button-plus:disabled {
                background-color: var(--olionovello-button-text-color-disabled);
                color: var(--olionovello-button-bgcolor-disabled);
                border-color: var(--olionovello-button-bgcolor-disabled);
            }

        /*   .card-prod__info .button-plus {
    left: -13px;
  } */

        .card-prod__info .input-group input[type="number"] {
            -moz-appearance: textfield;
            /* -webkit-appearance: none; */
            font-size: 1.2rem;
        }

/* PRODUCTS NAVIGATION */

.nav-tabs .nav-link {
    border-top-left-radius: .7rem;
    border-top-right-radius: .7rem;
}

    .nav-tabs .nav-link.active {
        background-color: var(--olionovello-button-bgcolor);
        color: var(--olionovello-button-text-color);
    }

.nav-link {
    transition: color 1s ease-in-out, background-color 1s ease-in-out, border-color 1s ease-in-out !important;
}

.nav-link-text {
    font-size: 1.3rem;
    border-style: solid;
}

.tab-pane.active {
    animation: fadein 2s !important;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
