/* Animação do slide do carrinho */
@keyframes slideIn {
    from {
        right: -300px;
    }

    to {
        right: 0;
    }
}

/* Animação do slide do carrinho saindo */
@keyframes slideOut {
    from {
        right: 0;
    }

    to {
        right: -300px;
    }
}

/* Resetando o estilo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos Globais */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Garante que o body ocupe 100% da altura da tela */
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

main {
    flex: 1;
    /* Isso faz com que o conteúdo principal ocupe o restante da altura disponível */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #333;
    color: white;
}

header .logo {
    font-size: 1.5em;
}

header .cart-button {
    background-color: #ff6347;
    border: none;
    padding: 10px;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

header .cart-button:hover {
    background-color: #e5533e;
}

/* Products */
.products {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.product-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-card h3 {
    margin: 15px 0;
    font-size: 1.2em;
}

.product-card .price {
    color: #ff6347;
    font-weight: bold;
}

.product-card .add-to-cart {
    background-color: #ff6347;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-card .add-to-cart:hover {
    background-color: #e5533e;
}

/* Cart */
.cart {
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: none;
    flex-direction: column;
    animation: slideIn 0.5s ease-out forwards;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cart-header button {
    background-color: #ff6347;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
}

.cart-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

.cart-footer .checkout-btn {
    background-color: #ff6347;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.cart-footer .checkout-btn:hover {
    background-color: #e5533e;
}

/* Animação do slide do carrinho */
@keyframes slideIn {
    from {
        right: -300px;
    }

    to {
        right: 0;
    }
}

/* Estilos do Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-info {
    flex: 1;
}

.footer-info h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.footer-info p {
    font-size: 1em;
    color: #ddd;
}

.footer-products {
    flex: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-product {
    text-align: center;
}

.footer-product img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.footer-product p {
    color: #ddd;
    font-size: 1em;
}