﻿@import url('global.css');

/* ===================================================================
                CONTENT SECTION - Contenitore principale
=================================================================== */
.content {
    background-color: var(--main-gray);
}

.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

    .content-section .content-middle {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding-bottom:60px;
    }

        .content-section .content-middle h1 {
            font-size: 3rem;
            line-height: 3.5rem;
            padding-bottom: 20px;
        }

        .content-section .content-middle h2 {
            font-size: 2rem;
            line-height: 2.5rem;
            padding-bottom: 20px;
        }

/* ===================================================================
                CART
=================================================================== */

.cart-tabs-container {
    margin: 0 auto;
}

    .cart-tabs-container > input {
        display: none;
    }

.cart-tab-nav {
    display: flex;
    justify-content: center;
}

    .cart-tab-nav div.discover {
        display: flex;
        flex-direction: column;
    }

    .cart-tab-nav .discover img {
        width: 25px;
        margin-left:10px;
        margin-right:10px;
    }

    .cart-tab-nav label {
        cursor: pointer;
        border: 1px solid transparent;
        border-bottom: none;
        display: none;
        align-items: center;
    }


.cart-tab-content {
    padding-bottom: 50px;
}

    .cart-tab-content > div {
        display: none;
        border-top: none;
    }


#cart-tab1:checked ~ .cart-tab-nav {
    justify-content: center;
}

    #cart-tab1:checked ~ .cart-tab-nav label[for="cart-tab2"] {
        display: inline-flex;
    }

#cart-tab2:checked ~ .cart-tab-nav label[for="cart-tab1"] {
    display: inline-flex;
}

#cart-tab1:checked ~ .cart-tab-content #cart-content1,
#cart-tab2:checked ~ .cart-tab-content #cart-content2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
}

#cart-tab2:checked ~ .cart-tab-content #cart-content2 {
    align-items: center;
}

.cart-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 50px;
}





.cart-product-info {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding-bottom: 50px;
    border-top: 1px solid black;
    margin-top: 20px;
}

.cart-product-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
}

.cart-product-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
/*    max-width: 450px;
*/}

    .cart-product-detail div:nth-child(-n+2) {
        border-bottom: 1px solid black;
    }

.cart-detail-model, .cart-detail-code, .cart-detail-note {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    width: 100%;
    align-items: flex-start;
    padding: 10px;
}

.cart-detail-label {
    width: 100px;
    flex-shrink: 0;
}

.cart-value-label {
    font-weight: 300;
}

.cart-product-action {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 10px;
    min-width: 400px;
/*    max-width: 450px;
*/    align-items: flex-start;
}

    .cart-product-action span {
        text-align: right;
        flex: 1;
        align-content: space-evenly;
        height: 45px;
    }

    .cart-product-action .cart-product-qty {
        display: flex;
        flex-direction: row;
        padding: 0 20px 0 20px;
        gap: 5px
    }

        .cart-product-action .cart-product-qty .cart-product-qty-change img {
            width: 19px;
        }

    .cart-product-action input[type=text] {
        border: 1px solid #ccc;
        font-size: 2rem;
        text-align: right;
        background-color: transparent;
        width: 100px;
    }

    .cart-product-action button {
        flex: 1;
    }




.cart-user {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

    .cart-user input[type=text],
    .cart-user input[type=email],
    .cart-user textarea {
        width: 100%;
    }

    .cart-user input[type=text], .cart-user input[type=email] {
        height: 40px;
        background-color: transparent;
        border: 1px solid var(--main-black);
        padding: 10px;
    }

    .cart-user textarea {
        height: 100px;
        background-color: transparent;
        border: 1px solid var(--main-black);
        padding: 10px;
        font-size: 0.8rem;
    }

    .cart-user input[type=checkbox] {
        padding: 20px;
        margin: 20px;
    }


.inputValidationError {
    font-size: 0.6rem;
    color: red;
    padding-left: 10px;
}

@keyframes pulse-red {
    0% {
        border-color: #f5c6cb;
        box-shadow: 0 0 3px #f5c6cb;
    }

    50% {
        border-color: #dc3545;
        box-shadow: 0 0 7px #dc3545;
    }

    100% {
        border-color: #f5c6cb;
        box-shadow: 0 0 3px #f5c6cb;
    }
}

input.input-validation-error {
    border-width: 1px;
    border-style: solid;
    animation: pulse-red 2s ease-in-out infinite;
}

.cart-privacy {
    display: flex;
    flex-direction: row;
    padding: 20px;
}

    .cart-privacy label {
        font-size: 0.8rem;
    }

@media (max-width: 1100px) {
    .cart-product-info {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
}

@media (max-width: 600px) {
}
