/* Enhanced Styles from JavaScript */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: #6b7280;
}

.product-category,
.product-brand {
  text-transform: capitalize;
}

.multi-image-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stock-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-badge.out-of-stock {
  background: #fee2e2;
  color: #dc2626;
}

.stock-badge.low-stock {
  background: #fef3c7;
  color: #d97706;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.quantity-btn:hover {
  background: #f7fafc;
}

.quantity {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.cart-item-total {
  font-weight: 600;
  color: #4a6cf7;
  margin-top: 5px;
}

.stock-warning {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 5px;
}

.quick-view-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.quick-view-image {
  position: relative;
}

.quick-view-image img {
  width: 100%;
  border-radius: 10px;
}

.image-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.quick-view-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-price-quick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
}

.discount-percent {
  background: #ef4444;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.product-specs {
  margin-top: 15px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}

.spec-key {
  font-weight: 500;
  color: #6b7280;
}

.spec-value {
  font-weight: 600;
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.product-stock.in-stock {
  background: #f0fdf4;
  color: #166534;
}

.product-stock.low-stock {
  background: #fffbeb;
  color: #92400e;
}

.product-stock.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
}

.quick-view-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.quick-view-actions .btn {
  flex: 1;
}

.view-details-btn {
  margin-top: 10px;
}

/* Product card hover effect for clickable indication */
.product-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Make sure buttons don't trigger card click */
.product-card button {
  cursor: pointer;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-left: 4px solid #4a6cf7;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 15px 20px;
  z-index: 10000;
  transition: all 0.3s ease;
  max-width: 300px;
}

.notification.error {
  border-left-color: #ef4444;
}

.notification.success {
  border-left-color: #10b981;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification i {
  font-size: 18px;
}

.notification.success i {
  color: #10b981;
}

.notification.error i {
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .quick-view-content {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .quick-view-actions {
    flex-direction: column;
  }

  .notification {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}
