/* Estilos para o carrinho - Responsivo */

/* Container do carrinho */
.cart-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  padding: 36px 60px 60px;
  margin: 0 auto;
  min-height: 400px;
}

/* Header do carrinho */
.cart-header {
  width: 100%;
  text-align: left;
  margin-bottom: 32px;
}

.cart-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1.93px;
  margin: 24px 0 40px;
  color: rgb(74, 74, 74);
}

/* Estado vazio do carrinho */
.cart-empty {
  width: 100%;
  padding: 40px 0;
  font-size: 16px;
  text-align: center;
  color: rgb(74, 74, 74);
  font-weight: 500;
}

/* Itens do carrinho */
.cart-items {
  flex: 1;
  margin-bottom: 32px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(74, 74, 74, 0.1);
  gap: 16px;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 4px;
  flex-shrink: 0;
}

.item-details {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 16px;
  font-weight: 600;
  color: rgb(74, 74, 74);
  margin-bottom: 4px;
}

.item-description {
  font-size: 12px;
  color: rgba(74, 74, 74, 0.8);
  line-height: 1.4;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(74, 74, 74, 0.3);
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: rgb(74, 74, 74);
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background-color: rgb(254, 241, 244);
  border-color: rgb(228, 135, 156);
}

.quantity-input {
  width: 50px;
  height: 32px;
  text-align: center;
  border: 1px solid rgba(74, 74, 74, 0.3);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(74, 74, 74);
}

.item-price {
  font-size: 16px;
  font-weight: 600;
  color: rgb(74, 74, 74);
  text-align: right;
  min-width: 80px;
}

.remove-item {
  background: none;
  border: none;
  color: rgb(228, 135, 156);
  cursor: pointer;
  padding: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.remove-item:hover {
  opacity: 0.7;
}

/* Total do carrinho */
.cart-total {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 2px solid rgba(74, 74, 74, 0.1);
  margin-bottom: 32px;
}

.total-label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.03px;
  color: rgb(74, 74, 74);
}

.total-amount {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.03px;
  color: rgb(124, 58, 0);
}

/* Ações do carrinho */
.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.continue-shopping {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background-image: url('https://order.sprinkles.com/assets/images/wavyLine.svg');
  background-position: 0 32.96px;
  background-repeat: repeat-x;
  background-size: 28px 9px;
  text-decoration: none;
  color: rgb(124, 58, 0);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.05px;
  transition: opacity 0.3s ease;
}

.continue-shopping:hover {
  opacity: 0.8;
}

.checkout-btn {
  background-color: rgb(124, 58, 0);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.05px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.checkout-btn:hover {
  background-color: rgb(100, 46, 0);
  transform: translateY(-1px);
}

.checkout-btn:disabled {
  background-color: rgba(74, 74, 74, 0.3);
  cursor: not-allowed;
  transform: none;
}

/* Media Queries para Responsividade */

/* Tablets */
@media (max-width: 768px) {
  .cart-container {
    padding: 24px 30px 40px;
  }
  
  .cart-title {
    font-size: 24px;
    text-align: center;
    margin: 20px 0 32px;
  }
  
  .cart-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .item-image {
    width: 60px;
    height: 60px;
  }
  
  .item-name {
    font-size: 15px;
  }
  
  .item-description {
    font-size: 11px;
  }
  
  .total-amount {
    font-size: 20px;
  }
  
  .cart-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .checkout-btn {
    min-width: auto;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .cart-container {
    padding: 20px 16px 30px;
  }
  
  .cart-title {
    font-size: 20px;
    margin: 16px 0 24px;
  }
  
  .cart-item {
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .item-image {
    width: 100%;
    height: 120px;
    max-width: 200px;
    align-self: center;
  }
  
  .item-details {
    width: 100%;
    text-align: center;
  }
  
  .item-quantity {
    justify-content: center;
  }
  
  .item-price {
    text-align: center;
    font-size: 18px;
  }
  
  .cart-total {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .total-label {
    font-size: 16px;
  }
  
  .total-amount {
    font-size: 22px;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .cart-container {
    padding: 16px 12px 24px;
  }
  
  .cart-title {
    font-size: 18px;
    margin: 12px 0 20px;
  }
  
  .cart-empty {
    padding: 32px 0;
    font-size: 14px;
  }
  
  .cart-item {
    padding: 12px 0;
  }
  
  .item-image {
    height: 100px;
  }
  
  .item-name {
    font-size: 14px;
  }
  
  .item-description {
    font-size: 10px;
  }
  
  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .quantity-input {
    width: 45px;
    height: 28px;
    font-size: 12px;
  }
  
  .item-price {
    font-size: 16px;
  }
  
  .total-label {
    font-size: 15px;
  }
  
  .total-amount {
    font-size: 20px;
  }
  
  .checkout-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
  
  .continue-shopping {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
  .cart-container {
    padding: 12px 8px 20px;
  }
  
  .cart-title {
    font-size: 16px;
    margin: 10px 0 16px;
  }
  
  .cart-empty {
    padding: 24px 0;
    font-size: 13px;
  }
  
  .item-image {
    height: 80px;
  }
  
  .item-name {
    font-size: 13px;
  }
  
  .quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  
  .quantity-input {
    width: 40px;
    height: 26px;
    font-size: 11px;
  }
  
  .item-price {
    font-size: 15px;
  }
  
  .total-label {
    font-size: 14px;
  }
  
  .total-amount {
    font-size: 18px;
  }
  
  .checkout-btn {
    padding: 12px 20px;
    font-size: 13px;
  }
  
  .continue-shopping {
    font-size: 11px;
    padding: 6px 10px;
  }
}

