* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* CART CONTAINER */
.cart-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: #fff;
  border-left: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

/* CABEÇALHO */
.cart-header {
  height: 60px;
  padding: 0 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.cart-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.share-cart-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-cart-btn:hover {
  background: #005bb5;
}
.share-icon {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* ÁREA DOS ITENS */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #fafafa;
}
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}
.clear-cart-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s;
}
.clear-cart-btn:hover {
  color: #1a56b0;
}

/* ITENS DO CARRINHO */
.cart-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}
.cart-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.trash-btn {
  position: absolute;
  top: 10px; 
  right: 10px;
  background: none;
  border: none;
  font-size: 1rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}
.trash-btn:hover {
  color: #e00;
}
.tag-ingresso {
  display: inline-block;
  background: #e0e5f6;
  color: #365CF5;
  border: 1px solid #365CF5;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.item-title {
  font-weight: 600;
  margin: 0.2rem 0;
  color: #333;
  font-size: 0.9rem;
}
.icon {
  width: 16px;
  height: 16px;
  fill: #666;
  vertical-align: middle;
}
.item-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #666;
  margin: 0.4rem 0;
}
.item-quantities {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  position: relative;
}
.quantities-left {
  display: flex;
  gap: 20px;
}
.quant-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quant-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  text-transform: capitalize;
}
.plusminus-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.plusminus-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.plusminus-btn:hover {
  background: #f2f2f2;
}
.divider {
  border-left: 1px solid #ccc;
  height: 40px;
  margin-top: 8px;
}
.item-price {
  position: absolute;
  right: 0.1rem;
  bottom: 0.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #333;
  text-align: right;
}
.installment-info {
  font-size: 0.7rem;
  color: #007bff;
  margin-top: 2px;
}
.pix-off {
  font-size: 0.9rem;
  color: #35b473;
  margin-top: 2px;
}

/* RODAPÉ */
.cart-footer {
  position: relative;
  flex-shrink: 0;
  border-top: 1px solid #eee;
  padding: 1rem;
  background: #fff;
}
.coupon-section {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 1rem;
  background: #fcfcfc;
}
.coupon-icon {
  width: 30px;
  height: 30px;
  fill: #666;
  flex-shrink: 0;
}
.coupon-input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.coupon-input-box label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
}
.coupon-input-box input {
  width: 100%;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 0.85rem;
  color: #333;
}
.price-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.price-line .green {
  color: #2a942f;
  font-weight: 600;
}
.total-line {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin: 0.5rem 0 1rem;
}
.checkout-btn {
  width: 100%;
  background: #35b473;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 6px;
  padding: 0.7rem;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout-btn:hover {
  background: #2d9e64;
}

/* Botão de fechar */
.close-cart-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}
.close-cart-btn:hover {
  color: #e00;
}

/* Estilos do Cabeçalho */
.cart-header {
  height: 60px;
  padding: 0 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cart-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.close-cart-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ccc; /* Cor mais suave */
  cursor: pointer;
  transition: color 0.3s;
}

.close-cart-btn:hover {
  color: #333; /* Cor mais escura no hover */
}

/* Botão Compartilhar Carrinho */
.share-cart-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-cart-btn:hover {
  background: #005bb5;
}

.share-icon {
  width: 14px;
  height: 14px;
  fill: #fff;
}
