/* 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: 'Orbitron', 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: transparent; /* Fundo transparente */
    border: 1px solid #ddd; /* Borda cinza suave */
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    color: #555; /* Cor do texto cinza */
    transition: all 0.3s ease;
}

.cart-item-quantity input[type="number"] {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    -moz-appearance: textfield; /* Para Firefox */
    appearance: none;
}
.cart-item-quantity input::-webkit-inner-spin-button,
.cart-item-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.cart-item-price, .cart-item-total {
    flex-basis: 100px;
    text-align: right;
    font-weight: bold;
    font-size: 18px;
}

.cart-item-quantity button:hover {
    background-color: rgba(0, 200, 0, 0.1); /* Transparência fosca verde no hover */
    border-color: #00c800; /* Borda verde */
    color: #00c800; /* Texto verde */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cart-item-remove button {
    background-color: #e74c3c; /* Fundo transparente */
    color: #fff; /* Texto vermelho de aviso */
    border: 1px solid #e74c3c; /* Borda vermelha */
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-item-remove button:hover {
    background-color: #fff; /* Vermelho semi-transparente no hover */
    color: #e74c3c;
    box-shadow: 0 4px 8px #e74c3c; 
    border-color: #fff;
    transform: scale(1.05);
}

/* 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;
}

/* ----------- CUPOM FORM ----------- */
/* Input refinado, mas compacto */
.coupon-form input {
    width: 220px; /* largura controlada */
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.coupon-form input:focus {
    border-color: #00c800;
    box-shadow: 0 0 6px rgba(0, 200, 0, 0.4);
}

/* Botão moderno */
.coupon-form button {
    padding: 10px 18px;
    background-color: #00c800; /* Fundo verde sólido por padrão (ação principal) */
    color: white;
    border: 1px solid #00c800; /* Borda verde */
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,200,0,0.2);
}

.coupon-form button:hover {
    background-color: #fff;
    border: 1px solid #fff;
    color: #00c800;
    box-shadow: 0 4px 8px rgba(0, 200, 0, 0.2);
}

/* ----------- RESUMO ----------- */
.summary-row.total-row {
    font-size: 1.5rem;
    font-weight: 700;
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

#discountRow span:last-child {
    color: #00c800; /* Verde principal para valor do desconto */
    font-weight: 600;
}

/* Estilos para a mensagem do cupom */
.coupon-message {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: left;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.coupon-message.show {
    opacity: 1;
}

.coupon-message.success {
    color: #00c800;
}

.coupon-message.error {
    color: #cc0000;
}

.checkout-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #00c800; /* Fundo verde sólido por padrão (ação principal) */
    color: white;
    border: 1px solid #00c800; /* Borda verde */
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
}

.checkout-button:hover {
    background-color: #fff;
    border: 1px solid #fff;
    color: #00c800;
    box-shadow: 0 4px 8px rgba(0, 200, 0, 0.2);
}

.checkout-button.secondary-button {
    background-color: #fff;
    border-color: #fff;
    color: #00c800;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.checkout-button.secondary-button:hover {
    background-color: #fff;
    border-color: #fff;
    color: #00c800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 0, 0.1); /* Sombra suave no hover */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#emptyCartMessage {
    text-align: center;
    font-size: 1.2em;
    padding: 40px;
}

@media (max-width: 480px) {
    .coupon-form button {
        margin-left: 0;   /* remove margem horizontal */
        margin-top: 20px; /* adiciona "respiro" acima do botão */
        width: 100%;      /* opcional: botão ocupa largura total */
    }

    .coupon-form input {
        width: 100%;      /* input também ocupa largura total */
    }
}

/* Botão Flutuante do WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00c800; /* Verde sólido por padrão */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent; /* Adicione uma borda transparente para consistência */
}

.whatsapp-button:hover {
    background-color: rgba(0, 200, 0, 0.1); /* Transparência fosca verde no hover */
    color: #00c800; /* Texto verde no hover */
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-color: #00c800; /* Borda verde 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;
    }
}