/* //// CARRINHO //// */

.carrinho {
  padding: 1rem;
  position: relative;
  z-index: 1000;
}

.carrinho img {
  width: 180px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.carrinho img:hover {
  cursor: pointer;
}

.carrinho img:active {
  transform: scale(0.9);
}

.carrinho img {
  transition: ease-in-out 0.3s;
}

.carrinho img:hover {
  transform: scale(1.1);
}

/* ///// CARRINHO LATERAL //// */


.carrinho-float {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  width: 100%;
}

.carrinho-float img {
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: transform 0.3s;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.carrinho-float img:hover {
  transform: scale(1.2) rotate(-10deg);
}

.carrinho.floating {
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carrinho.floating img {
  width: 75px;
  height: 75px;
  background: var(--pink-light);
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 3px solid white;
  object-fit: contain;
}


.cart-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 360px;
  height: 500px;
  z-index: 2500;
  background: rgba(184, 116, 127, 0.342);
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(240, 170, 170, 0.103);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transform-origin: top right;
  transition: transform 0.4s ease, opacity 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.cart-panel.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cart-panel .cart-items {
  flex: 1;
  padding: 0 1rem;
  overflow-y: auto;
}

.cart-panel p {
  font-family: 'Monomaniac One', cursive;
  color: var(--text);
  font-size: 20px;
  text-align: center;
  margin-top: 2rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(236, 156, 156, 0.089);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  font-family: 'Mate', serif;
  font-size: 30px;
  align-items: center;
  padding: 1.2rem;
  color: var(--text);
}

.close-cart {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
}

.cart-content {
  flex: 1;
  padding: 1rem;
  font-family: 'Monomaniac One', cursive;
  color: var(--text);
  overflow-y: auto;
}

.cart-footer {
  padding: 1rem;
}

.checkout {
  width: 100%;
  padding: 0.9rem;
  border-radius: 20px;
  border: none;
  background-color: var(--pink-light);
  font-family: 'Monomaniac One', cursive;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.checkout:hover {
  transform: scale(1.05);
}

.checkout:active {
  transform: scale(0.95);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.082);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  font-family: 'Mate', cursive;
  font-size: 16px;
}

.cart-item span {
  color: #fff;
}

.cart-qty {
  font-size: 13px;
  opacity: 0.7;
}

.remove-item {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.remove-item:hover {
  opacity: 1;
  transform: scale(1.2);
}

.cart-total {
  font-family: 'Monomaniac One', cursive;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
}


/* /// ABA PAGAMENTO /// */

.checkout-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(201, 117, 117);
  border-radius: 35px;
  color: #fff;
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 9999;
}

.checkout-page.active {
  display: flex;
}

.checkout-summary,
.checkout-form {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.checkout-section label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}


.checkout-summary h2,
.checkout-form h2 {
  font-size: 20px;
  margin-bottom: 1rem;
}

.checkout-form input,
.checkout-form button {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
}