body {
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    height: 100%;
}

header {
    background-color: #1343de;
    color: #fff;
    padding: 10px 20px;
}

.text {
    overflow: hidden;
}

.text h3 img {
    margin-left: 10px;
}

.text a {
    color: white;
    text-decoration: none;
}

.text a:hover {
    color: #000;
}

.text {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem; 
}

.about-product {
    display: inline-flex;
}

.about-product h3 a {
    padding: 10px;
}

.section-product {
    text-align: center;
    font-size: 1.5rem; 
}

.product-description {
    margin: 20px;
    text-align: center;
    padding: 10px;
}

.cta-button {
    display: block;
    width: 50%; 
    margin: 20px auto;
    padding: 10px;
    background-color: #1343de;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
}

.products {
    text-align: center;
    padding: 2% 0; 
}

.product-card {
    display: inline-block;
    width: 30%; 
    margin: 1.5%;
    padding: 0 2%; 
    transition: 0.3s;
    border-radius: 10px;
    vertical-align: top;
}

.product-card img {
    max-width: 100%; 
    height: auto; 
    border-radius: 5px;
}

.product-card:hover {
    box-shadow: 0 10px 16px rgba(0,0,0,0.2);
}

.product-card a {
    background-color: #1343de;
    padding: 15px;
    color: white;
    border: none;
    border-radius: 10px;
    text-decoration: none;
}

.button-container {
    padding: 20px;
}

.button-container button {
    margin-left: 10px;
}

.contact {
    background-color: #eee;
    padding: 2%;
    clear: both;
}

.contact h3 {
    padding: 15px;
    width: 190px;
    margin: auto;
    font-size: 20px;
}

.contact form {
    width: 250px;
    margin: auto;
    font-size: 22px;
    padding: 10px;
}

.contact label,
.contact input,
.contact textarea {
    display: block;
    width: 90%;
    margin: 10px auto;
}

.contact input,
.contact textarea {
    padding: 10px;
}

.contact button {
    display: block;
    padding: 10px;
    background-color: #1343de;
    color: #fff;
    cursor: pointer;
    width: 100%;
    border: none;
    border-radius: 8px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 9998;
    display: none;
}

#result {
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 5%; 
    border: 1px solid #ccc;
    z-index: 9999;
}

main {
    text-align: center;
}

.imagem-produto {
    max-width: 100%; 
    height: auto; 
}

#list:hover {
    box-shadow: 0 10px 16px rgba(0,0,0,0.2);
    border-radius: 10px;
}

.new-products {
    display: inline-block;
    align-items: center;
    text-align: center;
    width: 30%; 
    margin: 1.5%;
    padding: 0 2%; 
}

.new-products button {
    background-color: #1343de;
    color: #fff;
    border: none;
    padding: 15px;
    margin-top: 1px;
    border-radius: 12px;
}

.new-products button:hover {
    background-color: #112566;
}

.product-price {
    color: green;
    font-weight: bold;
    font-size: 22px;
}

#list {
    margin-top: 30px;
    display: flex;
    align-items: center;
    text-align: center;
    transition: 0.3s;
    border-radius: 10px;
    vertical-align: top;
}

#cartItems {
    background-color: #f8f9fa;
    padding: 20px;
    border: 1px solid #ddd;
    margin: 20px;
    position: relative;
    text-align: center; 
}

#cartItems h2 {
    font-size: 1.5rem; 
    margin-bottom: 20px; 
}

#cartItems p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.about-product button {
    background-color: transparent;
    border: none;
    display: flex;
    cursor: pointer;
}

#cartItems img {
    max-width: 10%;
    margin-right: 10px;
}

.closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    background-color: red;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 5px 10px;
}

#setItem {
    background-color: transparent;
    border: none;
    position: relative;
    top: 12px;
    cursor: pointer;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.quantity-buttons button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 12px;
    cursor: pointer;
}

.itemQuantity {
    margin: 0 10px;
}

.decreaseButton {
    font-size: 22px;
}

.increaseButton {
    font-size: 20px;
}

#cartTotal {
    background-color: #f8f9fa;
    padding: 20px;
    border: 1px solid #ddd;
    margin: 20px;
}

.btn-close {
    background-color: red;
    color: white;
    font-weight: bold;
    padding: 5%; 
    border: none;
    border-radius: 10px;
    font-size: 1rem; 
}

@media (max-width: 1200px) {
    .product-card, .new-products {
        width: 45%; 
    }

    .text {
        font-size: 1rem;
    }

    .cta-button {
        width: 70%;
    }

    #cartItems {
        padding: 15px; 
    }

    #cartItems h2 {
        font-size: 1.3rem; 
    }

    #cartTotal {
        padding: 20px; 
    }
}

@media (max-width: 768px) {
    .product-card, .new-products {
        width: 80%; 
    }

    .cta-button {
        width: 90%;
    }

    .text {
        font-size: 0.9rem;
    }

    header {
        padding: 10px 15px;
    }

    #cartItems {
        margin: 10px; 
        padding: 10px; 
    }

    #cartItems h2 {
        font-size: 1.2rem; 
    }


    #cartItems img {
        max-width: 20%;
        margin: 0 auto; 
        align-items: center;
    }

    .quantity-buttons {
        margin: 10px 0; 
    }

    #cartTotal {
        margin: 10px; 
        padding: 20px; 
    }
    .closeButton {
        padding: 3px 6px; 
    }
}

@media (max-width: 576px) {
    .product-card, .new-products {
        width: 80%;
    }

    .text {
        display: block;
        text-align: center;
    }

    .about-product, .section-product, .product-description {
        margin: 10px 0;
    }

    .cta-button {
        width: 80%;
    }

    #cartItems {
        margin: 5px; 
        padding: 5px;
    }

    #cartItems h2 {
        font-size: 1rem; 
    }

    #cartTotal {
        margin: 5px; 
        padding: 20px; 
    }
}

@media (max-width: 480px) {
    #cartItems p {
        font-size: 0.9rem; 
    }

    #cartItems img {
        max-width: 20%;
    }

    .quantity-buttons button {
        padding: 3px 5px; 
    }

    #cartTotal {
        padding: 20px; 
        margin: 5px; 
    }
}
