/* General Cart Styles */
.cart-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.title {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  color: black;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 40px 0;
  position: relative;
  font-family: 'Arial Black', Impact, sans-serif;
}

.title::after {
  content: '';
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, #00c800, #66bb6a);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Cart Items Table */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    gap: 20px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    flex-basis: 100px;
}

.cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.cart-item-details p {
    margin: 0;
    color: #555;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity button {
    background-color: #ddd;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.cart-item-price, .cart-item-total {
    flex-basis: 100px;
    text-align: right;
    font-weight: bold;
    font-size: 18px;
}

.cart-item-remove button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart-item-remove button:hover {
    background-color: #c0392b;
}

/* Cart Summary */
.cart-summary {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cart-summary h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 18px;
}

.summary-row span:last-child {
    font-weight: bold;
    color: #00c800;
}

.checkout-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #00c800;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.checkout-button:hover {
    background-color: #00a000;
}

#emptyCartMessage {
    text-align: center;
    font-size: 1.2em;
    padding: 40px;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-button {
    position: fixed; /* Fixa o botão na tela */
    bottom: 20px; /* Distância da borda inferior */
    right: 20px; /* Distância da borda direita */
    background-color: #00c800; /* Cor verde do WhatsApp */
    color: white; /* Cor do ícone */
    width: 60px; /* Largura do botão */
    height: 60px; /* Altura do botão (para ser um círculo) */
    border-radius: 50%; /* Transforma o botão em um círculo */
    display: flex; /* Permite centralizar o ícone */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    font-size: 30px; /* Tamanho do ícone do WhatsApp */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* Sombra para profundidade */
    z-index: 1000; /* Garante que o botão fique acima de outros elementos */
    transition: all 0.3s ease; /* Transição suave para efeitos de hover e scroll */
    text-decoration: none; /* Remove sublinhado do link */
}

.whatsapp-button:hover {
    background-color: #fff; /* Cor verde mais escura ao passar o mouse */
    color: #00c800;
    transform: scale(1.08); /* Aumenta ligeiramente o tamanho no hover */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); /* Sombra mais pronunciada no hover */
}

/* Media Queries para responsividade em telas menores */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px; /* Tamanho menor em tablets */
        height: 50px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        width: 45px; /* Tamanho ainda menor em celulares */
        height: 45px;
        font-size: 24px;
        bottom: 10px;
        right: 10px;
    }
}