/* Meu Catálogo PWA */
body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
}
header {
  background-color: #007bff;
  color: white;
  padding: 1rem;
  text-align: center;
}
.produto-card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1rem;
  margin: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================= */
/* CARRINHO - MOBILE FIRST */
/* ========================================= */
.cart-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cart-item-container {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cart-item-image {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: contain;
  background-color: #f9fafb;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}

.cart-item-image img[src*="data:image/svg"] {
  object-fit: contain;
}

/* --- MODO SOCIAL --- */
.social-check {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(124, 58, 237, 0.1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.social-check div {
  background: #7c3aed;
  color: white;
  border-radius: 50%;
  padding: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.modo-social .cart-btn-overlay {
  display: none !important;
}
body.modo-social [onclick*="abrirModalQuantidade"] {
  pointer-events: none;
  opacity: 0.5;
}
body.modo-social [data-produto-card] {
  cursor: pointer;
}

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

.cart-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 8px 0;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.qty-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-value {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.cart-item-total {
  text-align: right;
  margin-top: 8px;
}

.cart-item-subtotal {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 2px 0;
}

.cart-item-total-price {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  margin: 0;
}

.cart-item-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.cart-item-remove:hover {
  background: #fecaca;
  border-color: #fca5a5;
  transform: scale(1.05);
}

.cart-item-remove:active {
  transform: scale(0.95);
}

.cart-item-remove svg {
  width: 18px;
  height: 18px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .cart-item-image {
    width: 100px;
    height: 100px;
  }
  .cart-item-name {
    font-size: 16px;
  }
  .cart-item-total-price {
    font-size: 20px;
  }
}
