.cart-page-main {
    max-width: 800px;
    margin: 100px auto;
    padding: 20px;
}

/* ------------------------------------------- */
/* 1. ESTILOS DO CARD DE CADA ITEM */
/* ------------------------------------------- */

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os cards */
    margin-bottom: 40px;
}

.cart-item-card {
    display: flex;
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #c0c0c0; /* Borda mais suave */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08); /* Sombra para destacar */
}

.item-left {
    flex-shrink: 0;
    margin-right: 20px;
}

/* Caixa da Imagem (Exatamente como na imagem) */
.item-image-box {
    width: 100px;
    height: 100px;
    border: 1px solid black;
    background-color: #ffffff;
}

.item-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Nome do Produto */
.item-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #7b4f3b; /* Cor marrom */
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Label de Preço */
.item-price-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #f08080; /* Cor pêssego/rosa claro */
    margin-bottom: 15px;
}

/* Controles (Lixo e Quantidade) */
.item-controls {
    display: flex;
    align-items: flex-end; /* Alinha os controles à base */
    justify-content: space-between;
    margin-top: auto; /* Empurra para o fundo do .item-right */
    width: 100%;
}

/* Botão Lixo/Remover */
.remove-btn {
    background-color: #ff6384; /* Rosa forte, similar ao ícone da imagem */
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 3px 0 #d95471; /* Efeito 3D */
    transition: transform 0.1s;
}

.remove-btn:active {
    transform: translateY(3px);
    box-shadow: none;
}

/* Controles de Quantidade (Pixel Art Box) */
.quantity-control-box {
    display: flex;
    align-items: center;
    background-color: #7b4f3b; /* Marrom escuro da caixa */
    color: white;
    border-radius: 5px;
    overflow: hidden; /* Garante que os botões fiquem dentro */
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
}

.quantity-arrow {
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px 8px;
    cursor: pointer;
    transition: background-color 0.1s;
}

.quantity-arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.quantity-value {
    padding: 0 10px;
    /* Linhas verticais para separar visualmente */
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* ------------------------------------------- */
/* 2. BOTÕES DE AÇÃO INFERIORES */
/* ------------------------------------------- */

.cart-bottom-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    margin-top: 30px;
}

.action-btn {
    flex-grow: 1;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    padding: 12px 10px;
    border: 2px solid #333; /* Borda visível */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.1s;
}

/* Estilo para os botões brancos/claros */
.action-btn.white-btn {
    background-color: #ffffff;
    color: #333;
    box-shadow: 0 4px 0 #cccccc; /* Sombra retrô */
}

.action-btn.white-btn:hover {
    background-color: #f0f0f0;
}

.action-btn.white-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  font-family: "Press Start 2P", cursive;
}

.popup-box {
  background: #fff8ef;
  border: 3px solid #6b3c2a;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  width: 420px;
  padding: 30px;
  text-align: center;
  position: relative;
  animation: pop-in 0.3s ease;
}

@keyframes pop-in {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-fechar {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6b3c2a;
}

.popup-box h2 {
  color: #6b3c2a;
  font-size: 18px;
  margin-bottom: 20px;
}

.popup-text {
  font-size: 12px;
  color: #5e4a3c;
  margin-bottom: 25px;
}

.popup-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.popup-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  transition: 0.2s;
}

.popup-btn.confirmar {
  background: #ff8ca3;
  color: #fff;
}

.popup-btn.cancelar {
  background: #e6e4d4;
  color: #333;
}

.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.popup-feedback {
  font-size: 11px;
  color: #6b3c2a;
  margin-top: 15px;
}