/* Shopping Cart Styles */

.cart-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 80vh;
}

.cart-header {
  margin-bottom: 2rem;
}

.cart-header h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
}

.cart-header p {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  transition: all 0.2s ease;
  align-items: center;
}

.cart-item:hover {
  border-color: #a5b4fc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cart-item-img {
  width: 100px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-info h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.cart-item-info h4 a:hover {
  color: #4f46e5;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cart-item-meta span {
  color: #6b7280;
  font-weight: 500;
}

.cart-item-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  padding: 2px 0;
}

.cart-item-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0;
}

.cart-item-remove:hover {
  color: #ef4444;
}

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

/* Summary Panel */
.cart-summary {
  position: sticky;
  top: 2rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
}

.cart-summary h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.summary-row .val {
  font-weight: 600;
  color: #374151;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  border-top: 2px solid #e5e7eb;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.summary-total .val {
  color: #4f46e5;
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  margin-top: 1.25rem;
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-checkout:hover {
  background: #4338ca;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-checkout svg {
  width: 18px;
  height: 18px;
}

.continue-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.continue-link:hover {
  color: #4f46e5;
}

/* States */
.cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  text-align: center;
}

.cart-state .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cart-state h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}

.cart-state p {
  color: #6b7280;
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.btn-explore {
  display: inline-block;
  padding: 12px 24px;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-explore:hover {
  background: #4338ca;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .cart-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-right {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.25rem;
  }
}
